6
6
*/
7
7
8
8
9
- ( function ( ) {
9
+ ( function ( ) {
10
10
"use strict" ;
11
11
12
12
var KEY = {
@@ -279,7 +279,7 @@ uis.controller('uiSelectCtrl',
279
279
if ( ctrl . searchInput . length !== 1 ) {
280
280
throw uiSelectMinErr ( 'searchInput' , "Expected 1 input.ui-select-search but got '{0}'." , ctrl . searchInput . length ) ;
281
281
}
282
-
282
+
283
283
ctrl . isEmpty = function ( ) {
284
284
return angular . isUndefined ( ctrl . selected ) || ctrl . selected === null || ctrl . selected === '' ;
285
285
} ;
@@ -752,7 +752,7 @@ uis.directive('uiSelect',
752
752
if ( angular . isDefined ( tAttrs . multiple ) )
753
753
tElement . append ( "<ui-select-multiple/>" ) . removeAttr ( 'multiple' ) ;
754
754
else
755
- tElement . append ( "<ui-select-single/>" ) ;
755
+ tElement . append ( "<ui-select-single/>" ) ;
756
756
757
757
return function ( scope , element , attrs , ctrls , transcludeFn ) {
758
758
@@ -774,7 +774,7 @@ uis.directive('uiSelect',
774
774
775
775
$select . onSelectCallback = $parse ( attrs . onSelect ) ;
776
776
$select . onRemoveCallback = $parse ( attrs . onRemove ) ;
777
-
777
+
778
778
//Set reference to ngModel from uiSelectCtrl
779
779
$select . ngModel = ngModel ;
780
780
@@ -1028,7 +1028,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
1028
1028
$select = $scope . $select ,
1029
1029
ngModel ;
1030
1030
1031
- //Wait for link fn to inject it
1031
+ //Wait for link fn to inject it
1032
1032
$scope . $evalAsync ( function ( ) { ngModel = $scope . ngModel ; } ) ;
1033
1033
1034
1034
ctrl . activeMatchIndex = - 1 ;
@@ -1040,7 +1040,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
1040
1040
1041
1041
ctrl . refreshComponent = function ( ) {
1042
1042
//Remove already selected items
1043
- //e.g. When user clicks on a selection, the selected array changes and
1043
+ //e.g. When user clicks on a selection, the selected array changes and
1044
1044
//the dropdown should remove that item
1045
1045
$select . refreshItems ( ) ;
1046
1046
$select . sizeSearchInput ( ) ;
@@ -1139,7 +1139,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
1139
1139
} ;
1140
1140
if ( ! inputValue ) return resultMultiple ; //If ngModel was undefined
1141
1141
for ( var k = inputValue . length - 1 ; k >= 0 ; k -- ) {
1142
- //Check model array of currently selected items
1142
+ //Check model array of currently selected items
1143
1143
if ( ! checkFnMultiple ( $select . selected , inputValue [ k ] ) ) {
1144
1144
//Check model array of all items available
1145
1145
if ( ! checkFnMultiple ( data , inputValue [ k ] ) ) {
@@ -1150,8 +1150,8 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
1150
1150
}
1151
1151
return resultMultiple ;
1152
1152
} ) ;
1153
-
1154
- //Watch for external model changes
1153
+
1154
+ //Watch for external model changes
1155
1155
scope . $watchCollection ( function ( ) { return ngModel . $modelValue ; } , function ( newValue , oldValue ) {
1156
1156
if ( oldValue != newValue ) {
1157
1157
ngModel . $modelValue = null ; //Force scope model value and ngModel value to be out of sync to re-run formatters
@@ -1743,4 +1743,4 @@ $templateCache.put("select2/select-multiple.tpl.html","<div class=\"ui-select-co
1743
1743
$templateCache . put ( "select2/select.tpl.html" , "<div class=\"ui-select-container select2 select2-container\" ng-class=\"{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}\"><div class=\"ui-select-match\"></div><div class=\"select2-drop select2-with-searchbox select2-drop-active\" ng-class=\"{\'select2-display-none\': !$select.open}\"><div class=\"select2-search\" ng-show=\"$select.searchEnabled\"><input type=\"text\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" role=\"combobox\" aria-expanded=\"true\" aria-owns=\"ui-select-choices-{{ $select.generatedId }}\" aria-label=\"{{ $select.baseTitle }}\" aria-activedescendant=\"ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}\" class=\"ui-select-search select2-input\" ng-model=\"$select.search\"></div><div class=\"ui-select-choices\"></div></div></div>" ) ;
1744
1744
$templateCache . put ( "selectize/choices.tpl.html" , "<div ng-show=\"$select.open\" class=\"ui-select-choices selectize-dropdown single\"><div class=\"ui-select-choices-content selectize-dropdown-content\"><div class=\"ui-select-choices-group optgroup\" role=\"listbox\"><div ng-show=\"$select.isGrouped\" class=\"ui-select-choices-group-label optgroup-header\" ng-bind=\"$group.name\"></div><div role=\"option\" class=\"ui-select-choices-row\" ng-class=\"{active: $select.isActive(this), disabled: $select.isDisabled(this)}\"><div class=\"option ui-select-choices-row-inner\" data-selectable=\"\"></div></div></div></div></div>" ) ;
1745
1745
$templateCache . put ( "selectize/match.tpl.html" , "<div ng-hide=\"($select.open || $select.isEmpty())\" class=\"ui-select-match\" ng-transclude=\"\"></div>" ) ;
1746
- $templateCache . put ( "selectize/select.tpl.html" , "<div class=\"ui-select-container selectize-control single\" ng-class=\"{\'open\': $select.open}\"><div class=\"selectize-input\" ng-class=\"{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}\" ng-click=\"$select.activate()\"><div class=\"ui-select-match\"></div><input type=\"text\" autocomplete=\"off\" tabindex=\"-1\" class=\"ui-select-search ui-select-toggle\" ng-click=\"$select.toggle($event)\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-hide=\"!$select.searchEnabled || ($select.selected && !$select.open)\" ng-disabled=\"$select.disabled\" aria-label=\"{{ $select.baseTitle }}\"></div><div class=\"ui-select-choices\"></div></div>" ) ; } ] ) ;
1746
+ $templateCache . put ( "selectize/select.tpl.html" , "<div class=\"ui-select-container selectize-control single\" ng-class=\"{\'open\': $select.open}\"><div class=\"selectize-input\" ng-class=\"{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}\" ng-click=\"$select.activate()\"><div class=\"ui-select-match\"></div><input type=\"text\" autocomplete=\"off\" tabindex=\"-1\" class=\"ui-select-search ui-select-toggle\" ng-click=\"$select.toggle($event)\" placeholder=\"{{$select.placeholder}}\" ng-model=\"$select.search\" ng-hide=\"!$select.searchEnabled || ($select.selected && !$select.open)\" ng-disabled=\"$select.disabled\" aria-label=\"{{ $select.baseTitle }}\"></div><div class=\"ui-select-choices\"></div></div>" ) ; } ] ) ;
0 commit comments