66 */
77
88
9- ( function ( ) {
9+ ( function ( ) {
1010"use strict" ;
1111
1212var KEY = {
@@ -279,7 +279,7 @@ uis.controller('uiSelectCtrl',
279279 if ( ctrl . searchInput . length !== 1 ) {
280280 throw uiSelectMinErr ( 'searchInput' , "Expected 1 input.ui-select-search but got '{0}'." , ctrl . searchInput . length ) ;
281281 }
282-
282+
283283 ctrl . isEmpty = function ( ) {
284284 return angular . isUndefined ( ctrl . selected ) || ctrl . selected === null || ctrl . selected === '' ;
285285 } ;
@@ -752,7 +752,7 @@ uis.directive('uiSelect',
752752 if ( angular . isDefined ( tAttrs . multiple ) )
753753 tElement . append ( "<ui-select-multiple/>" ) . removeAttr ( 'multiple' ) ;
754754 else
755- tElement . append ( "<ui-select-single/>" ) ;
755+ tElement . append ( "<ui-select-single/>" ) ;
756756
757757 return function ( scope , element , attrs , ctrls , transcludeFn ) {
758758
@@ -774,7 +774,7 @@ uis.directive('uiSelect',
774774
775775 $select . onSelectCallback = $parse ( attrs . onSelect ) ;
776776 $select . onRemoveCallback = $parse ( attrs . onRemove ) ;
777-
777+
778778 //Set reference to ngModel from uiSelectCtrl
779779 $select . ngModel = ngModel ;
780780
@@ -1028,7 +1028,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
10281028 $select = $scope . $select ,
10291029 ngModel ;
10301030
1031- //Wait for link fn to inject it
1031+ //Wait for link fn to inject it
10321032 $scope . $evalAsync ( function ( ) { ngModel = $scope . ngModel ; } ) ;
10331033
10341034 ctrl . activeMatchIndex = - 1 ;
@@ -1040,7 +1040,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
10401040
10411041 ctrl . refreshComponent = function ( ) {
10421042 //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
10441044 //the dropdown should remove that item
10451045 $select . refreshItems ( ) ;
10461046 $select . sizeSearchInput ( ) ;
@@ -1139,7 +1139,7 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
11391139 } ;
11401140 if ( ! inputValue ) return resultMultiple ; //If ngModel was undefined
11411141 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
11431143 if ( ! checkFnMultiple ( $select . selected , inputValue [ k ] ) ) {
11441144 //Check model array of all items available
11451145 if ( ! checkFnMultiple ( data , inputValue [ k ] ) ) {
@@ -1150,8 +1150,8 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
11501150 }
11511151 return resultMultiple ;
11521152 } ) ;
1153-
1154- //Watch for external model changes
1153+
1154+ //Watch for external model changes
11551155 scope . $watchCollection ( function ( ) { return ngModel . $modelValue ; } , function ( newValue , oldValue ) {
11561156 if ( oldValue != newValue ) {
11571157 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
17431743$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>" ) ;
17441744$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>" ) ;
17451745$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