select2-component
Advanced tools
Comparing version 3.1.7 to 3.1.8
@@ -1,1 +0,1 @@ | ||
export declare const angularTemplateHtml = "<div [class]=\"containerStyle\"><div class=\"selection\" #selection [attr.tabindex]=\"!this.isOpen ? tabIndex : '-1'\" (click)=\"toggleOpenAndClose()\" (focus)=\"focusin()\" (blur)=\"focusout()\" (keydown)=\"openKey($event)\" [class.select2-focused]=\"focused\"><div [class]=\"selectionStyle\" role=\"combobox\"><span *ngIf=\"!multiple\" class=\"select2-selection__rendered\" [title]=\"option ? option.label : ''\"><span *ngIf=\"!option\"> </span><ng-container *ngIf=\"option\">{{option.label}}</ng-container><span [class.select2-selection__placeholder__option]=\"option\" class=\"select2-selection__placeholder\">{{placeholder}}</span></span><span *ngIf=\"!multiple\" class=\"select2-selection__arrow\" role=\"presentation\"><b role=\"presentation\"></b></span><ul *ngIf=\"multiple\" class=\"select2-selection__rendered\"><span [class.select2-selection__placeholder__option]=\"option?.length > 0\" class=\"select2-selection__placeholder\">{{placeholder}}</span><li *ngFor=\"let op of option\" class=\"select2-selection__choice\" [title]=\"op.label\"><span (click)=\"removeSelection($event, op)\" class=\"select2-selection__choice__remove\" role=\"presentation\">×</span>{{op.label}}</li></ul></div><div class=\"select2-subscript-wrapper\"><ng-content select=\"select2-hint\"></ng-content></div></div><div [class]=\"dropdownStyle\"><div class=\"select2-dropdown select2-dropdown--below\"><div [class]=\"searchStyle\"><input #searchInput [id]=\"id + '-search-field'\" [(value)]=\"searchText\" (keydown)=\"keyDown($event)\" (keyup)=\"searchUpdate($event)\" class=\"select2-search__field\" type=\"search\" role=\"textbox\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" [attr.tabindex]=\"this.isOpen ? tabIndex : '-1'\"></div><div class=\"select2-results\"><ul #results class=\"select2-results__options\" role=\"tree\" tabindex=\"-1\" (keydown)=\"keyDown($event)\"><ng-template ngFor [ngForOf]=\"filteredData\" let-groupOrOption [ngForTrackBy]=\"trackBy\"><li *ngIf=\"groupOrOption.options\" class=\"select2-results__option\" role=\"group\"><strong [attr.class]=\"'select2-results__group' + (groupOrOption.classes ? ' ' + groupOrOption.classes : '')\">{{groupOrOption.label}}</strong><ul class=\"select2-results__options select2-results__options--nested\"><li *ngFor=\"let option of groupOrOption.options; trackBy:trackBy\" [class]=\"getOptionStyle(option)\" role=\"treeitem\" [attr.aria-selected]=\"isSelected(option)\" [attr.aria-disabled]=\"isDisabled(option)\" (mouseenter)=\"mouseenter(option)\" (click)=\"click(option)\">{{option.label}}</li></ul></li><li *ngIf=\"!groupOrOption.options\" [class]=\"getOptionStyle(groupOrOption)\" role=\"treeitem\" [attr.aria-selected]=\"isSelected(groupOrOption)\" [attr.aria-disabled]=\"isDisabled(groupOrOption)\" (mouseenter)=\"mouseenter(groupOrOption)\" (click)=\"click(groupOrOption)\">{{groupOrOption.label}}</li></ng-template></ul></div></div></div></div>"; | ||
export declare const angularTemplateHtml: string; |
@@ -9,3 +9,3 @@ "use strict"; | ||
var nextUniqueId = 0; | ||
var Select2Hint = /** @class */ (function () { | ||
var Select2Hint = (function () { | ||
function Select2Hint() { | ||
@@ -21,3 +21,3 @@ } | ||
export { Select2Hint }; | ||
var Select2 = /** @class */ (function () { | ||
var Select2 = (function () { | ||
function Select2(_changeDetectorRef, _parentForm, _parentFormGroup, _control, tabIndex) { | ||
@@ -24,0 +24,0 @@ this._changeDetectorRef = _changeDetectorRef; |
@@ -8,3 +8,3 @@ "use strict"; | ||
*/ | ||
var Select2Module = /** @class */ (function () { | ||
var Select2Module = (function () { | ||
function Select2Module() { | ||
@@ -11,0 +11,0 @@ } |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"timeout":200,"getOptionByValue":{"__symbolic":"function"},"getOptionsByValue":{"__symbolic":"function"},"getFirstAvailableOption":{"__symbolic":"function"},"valueIsNotInFilteredData":{"__symbolic":"function"},"getPreviousOption":{"__symbolic":"function"},"getNextOption":{"__symbolic":"function"},"getLastScrollTopIndex":{"__symbolic":"function"},"getFilteredData":{"__symbolic":"function"},"getOptionStyle":{"__symbolic":"function","parameters":["value","hoveringValue"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","name":"hoveringValue"}},"thenExpression":"select2-results__option select2-results__option--highlighted","elseExpression":"select2-results__option"}},"getDropdownStyle":{"__symbolic":"function","parameters":["isOpen"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container select2-container--default select2-container-dropdown select2-container--open","elseExpression":"select2-container select2-container--default select2-container-dropdown"}},"getContainerStyle":{"__symbolic":"function","parameters":["disabled","isOpen"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"select2 select2-container select2-container--default ","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"disabled"},"thenExpression":"select2-container--disabled","elseExpression":""}},"right":" "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container--open","elseExpression":""},"right":" select2-container--below select2-container--focus"}}},"getSelectionStyle":{"__symbolic":"function","parameters":["multiple"],"value":{"__symbolic":"binop","operator":"+","left":"select2-selection select2-selection--","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"multiple"},"thenExpression":"multiple","elseExpression":"single"}}},"isSearchboxHiddex":{"__symbolic":"function"},"getSearchStyle":{"__symbolic":"function","parameters":["isHidden"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isHidden"},"thenExpression":"select2-search select2-search--dropdown select2-search--hide","elseExpression":"select2-search select2-search--dropdown"}},"isSelected":{"__symbolic":"function"},"removeSelection":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"timeout":200,"getOptionByValue":{"__symbolic":"function"},"getOptionsByValue":{"__symbolic":"function"},"getFirstAvailableOption":{"__symbolic":"function"},"valueIsNotInFilteredData":{"__symbolic":"function"},"getPreviousOption":{"__symbolic":"function"},"getNextOption":{"__symbolic":"function"},"getLastScrollTopIndex":{"__symbolic":"function"},"getFilteredData":{"__symbolic":"function"},"getOptionStyle":{"__symbolic":"function","parameters":["value","hoveringValue"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","name":"hoveringValue"}},"thenExpression":"select2-results__option select2-results__option--highlighted","elseExpression":"select2-results__option"}},"getDropdownStyle":{"__symbolic":"function","parameters":["isOpen"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container select2-container--default select2-container-dropdown select2-container--open","elseExpression":"select2-container select2-container--default select2-container-dropdown"}},"getContainerStyle":{"__symbolic":"function","parameters":["disabled","isOpen"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"select2 select2-container select2-container--default ","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"disabled"},"thenExpression":"select2-container--disabled","elseExpression":""}},"right":" "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container--open","elseExpression":""},"right":" select2-container--below select2-container--focus"}}},"getSelectionStyle":{"__symbolic":"function","parameters":["multiple"],"value":{"__symbolic":"binop","operator":"+","left":"select2-selection select2-selection--","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"multiple"},"thenExpression":"multiple","elseExpression":"single"}}},"isSearchboxHiddex":{"__symbolic":"function"},"getSearchStyle":{"__symbolic":"function","parameters":["isHidden"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isHidden"},"thenExpression":"select2-search select2-search--dropdown select2-search--hide","elseExpression":"select2-search select2-search--dropdown"}},"isSelected":{"__symbolic":"function"},"removeSelection":{"__symbolic":"function"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"Select2Group":{"__symbolic":"interface"},"Select2Option":{"__symbolic":"interface"},"Select2Value":{"__symbolic":"interface"},"Select2UpdateValue":{"__symbolic":"interface"},"Select2Data":{"__symbolic":"interface"},"timeout":200,"getOptionByValue":{"__symbolic":"function"},"getOptionsByValue":{"__symbolic":"function"},"getFirstAvailableOption":{"__symbolic":"function"},"valueIsNotInFilteredData":{"__symbolic":"function"},"getPreviousOption":{"__symbolic":"function"},"getNextOption":{"__symbolic":"function"},"getLastScrollTopIndex":{"__symbolic":"function"},"getFilteredData":{"__symbolic":"function"},"getOptionStyle":{"__symbolic":"function","parameters":["value","hoveringValue"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","name":"hoveringValue"}},"thenExpression":"select2-results__option select2-results__option--highlighted","elseExpression":"select2-results__option"}},"getDropdownStyle":{"__symbolic":"function","parameters":["isOpen"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container select2-container--default select2-container-dropdown select2-container--open","elseExpression":"select2-container select2-container--default select2-container-dropdown"}},"getContainerStyle":{"__symbolic":"function","parameters":["disabled","isOpen"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"select2 select2-container select2-container--default ","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"disabled"},"thenExpression":"select2-container--disabled","elseExpression":""}},"right":" "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container--open","elseExpression":""},"right":" select2-container--below select2-container--focus"}}},"getSelectionStyle":{"__symbolic":"function","parameters":["multiple"],"value":{"__symbolic":"binop","operator":"+","left":"select2-selection select2-selection--","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"multiple"},"thenExpression":"multiple","elseExpression":"single"}}},"isSearchboxHiddex":{"__symbolic":"function"},"getSearchStyle":{"__symbolic":"function","parameters":["isHidden"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isHidden"},"thenExpression":"select2-search select2-search--dropdown select2-search--hide","elseExpression":"select2-search select2-search--dropdown"}},"isSelected":{"__symbolic":"function"},"removeSelection":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"Select2Group":{"__symbolic":"interface"},"Select2Option":{"__symbolic":"interface"},"Select2Value":{"__symbolic":"interface"},"Select2UpdateValue":{"__symbolic":"interface"},"Select2Data":{"__symbolic":"interface"},"timeout":200,"getOptionByValue":{"__symbolic":"function"},"getOptionsByValue":{"__symbolic":"function"},"getFirstAvailableOption":{"__symbolic":"function"},"valueIsNotInFilteredData":{"__symbolic":"function"},"getPreviousOption":{"__symbolic":"function"},"getNextOption":{"__symbolic":"function"},"getLastScrollTopIndex":{"__symbolic":"function"},"getFilteredData":{"__symbolic":"function"},"getOptionStyle":{"__symbolic":"function","parameters":["value","hoveringValue"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","name":"hoveringValue"}},"thenExpression":"select2-results__option select2-results__option--highlighted","elseExpression":"select2-results__option"}},"getDropdownStyle":{"__symbolic":"function","parameters":["isOpen"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container select2-container--default select2-container-dropdown select2-container--open","elseExpression":"select2-container select2-container--default select2-container-dropdown"}},"getContainerStyle":{"__symbolic":"function","parameters":["disabled","isOpen"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"select2 select2-container select2-container--default ","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"disabled"},"thenExpression":"select2-container--disabled","elseExpression":""}},"right":" "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isOpen"},"thenExpression":"select2-container--open","elseExpression":""},"right":" select2-container--below select2-container--focus"}}},"getSelectionStyle":{"__symbolic":"function","parameters":["multiple"],"value":{"__symbolic":"binop","operator":"+","left":"select2-selection select2-selection--","right":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"multiple"},"thenExpression":"multiple","elseExpression":"single"}}},"isSearchboxHiddex":{"__symbolic":"function"},"getSearchStyle":{"__symbolic":"function","parameters":["isHidden"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"isHidden"},"thenExpression":"select2-search select2-search--dropdown select2-search--hide","elseExpression":"select2-search select2-search--dropdown"}},"isSelected":{"__symbolic":"function"},"removeSelection":{"__symbolic":"function"}}}] |
{ | ||
"name": "select2-component", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "A vuejs, reactjs and angular select component.", | ||
@@ -12,3 +12,4 @@ "main": "index.js", | ||
"release": "clean-scripts release", | ||
"watch": "clean-scripts watch" | ||
"watch": "clean-scripts watch", | ||
"screenshot": "clean-scripts screenshot" | ||
}, | ||
@@ -26,21 +27,22 @@ "repository": { | ||
"devDependencies": { | ||
"@angular/common": "4.4.1", | ||
"@angular/compiler": "4.4.1", | ||
"@angular/compiler-cli": "4.4.1", | ||
"@angular/core": "4.4.1", | ||
"@angular/forms": "4.4.1", | ||
"@angular/platform-browser": "4.4.1", | ||
"@angular/platform-browser-dynamic": "4.4.1", | ||
"@angular/common": "4.4.4", | ||
"@angular/compiler": "4.4.4", | ||
"@angular/compiler-cli": "4.4.4", | ||
"@angular/core": "4.4.4", | ||
"@angular/forms": "4.4.4", | ||
"@angular/platform-browser": "4.4.4", | ||
"@angular/platform-browser-dynamic": "4.4.4", | ||
"@types/jasmine": "2.6.0", | ||
"@types/react": "16.0.5", | ||
"@types/react-dom": "15.5.4", | ||
"clean-css-cli": "4.1.9", | ||
"clean-release": "1.3.4", | ||
"clean-scripts": "1.2.6", | ||
"@types/puppeteer": "0.10.2", | ||
"@types/react": "16.0.10", | ||
"@types/react-dom": "16.0.1", | ||
"autoprefixer": "7.1.5", | ||
"clean-css-cli": "4.1.10", | ||
"clean-release": "1.3.5", | ||
"clean-scripts": "1.3.3", | ||
"core-js": "2.5.1", | ||
"file2variable-cli": "1.5.2", | ||
"file2variable-cli": "1.5.4", | ||
"github-fork-ribbon-css": "0.2.1", | ||
"http-server": "0.10.0", | ||
"jasmine": "2.8.0", | ||
"js-beautify": "1.6.14", | ||
"karma": "1.7.1", | ||
@@ -53,19 +55,20 @@ "karma-chrome-launcher": "2.2.0", | ||
"mkdirp": "0.5.1", | ||
"no-unused-export": "1.2.6", | ||
"puppeteer": "0.10.2", | ||
"react": "15.6.1", | ||
"react-dom": "15.6.1", | ||
"rev-static": "3.4.0", | ||
"no-unused-export": "1.2.7", | ||
"postcss-cli": "4.1.1", | ||
"puppeteer": "0.11.0", | ||
"react": "16.0.0", | ||
"react-dom": "16.0.0", | ||
"rev-static": "3.4.1", | ||
"rimraf": "2.6.2", | ||
"rxjs": "5.4.3", | ||
"standard": "10.0.3", | ||
"stylelint": "8.1.1", | ||
"stylelint": "8.2.0", | ||
"stylelint-config-standard": "17.0.0", | ||
"tslint": "5.7.0", | ||
"typescript": "2.5.2", | ||
"typescript": "2.5.3", | ||
"vue": "2.4.4", | ||
"vue-class-component": "5.0.2", | ||
"watch-then-execute": "1.0.1", | ||
"watch-then-execute": "1.0.2", | ||
"webpack": "3.6.0", | ||
"zone.js": "0.8.17" | ||
"zone.js": "0.8.18" | ||
}, | ||
@@ -72,0 +75,0 @@ "dependencies": { |
@@ -10,3 +10,3 @@ "use strict"; | ||
*/ | ||
var Select2 = /** @class */ (function (_super) { | ||
var Select2 = (function (_super) { | ||
tslib_1.__extends(Select2, _super); | ||
@@ -13,0 +13,0 @@ function Select2() { |
@@ -1,1 +0,1 @@ | ||
export declare const vueTemplateHtml = "<div :class=\"containerStyle\"><div class=\"selection\" @click=\"toggleOpenAndClose()\"><div :class=\"selectionStyle\" role=\"combobox\"><span v-if=\"!multiple\" class=\"select2-selection__rendered\" :title=\"option ? option.label : ''\"><template v-if=\"option\"><component v-if=\"option.component\" :is=\"option.component\" :option=\"option\"></component><template v-else>{{option.label}}</template></template><span v-else class=\"select2-selection__placeholder\">{{placeholder}}</span></span><span v-if=\"!multiple\" class=\"select2-selection__arrow\" role=\"presentation\"><b role=\"presentation\"></b></span><ul v-if=\"multiple\" class=\"select2-selection__rendered\"><li v-for=\"op in option\" class=\"select2-selection__choice\" :title=\"op.label\"><span @click=\"removeSelection($event, op)\" class=\"select2-selection__choice__remove\" role=\"presentation\">×</span>{{op.label}}</li></ul></div></div><div :class=\"dropdownStyle\"><div class=\"select2-dropdown select2-dropdown--below\"><div :class=\"searchStyle\"><input ref=\"searchInput\" v-model=\"searchText\" @keydown=\"keyDown($event)\" @focusout=\"focusout()\" class=\"select2-search__field\" type=\"search\" role=\"textbox\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\"></div><div class=\"select2-results\"><ul ref=\"results\" class=\"select2-results__options\" role=\"tree\" tabindex=\"-1\" @keydown=\"keyDown($event)\" @focusout=\"focusout()\"><template v-for=\"groupOrOption in filteredData\"><li v-if=\"groupOrOption.options\" class=\"select2-results__option\" role=\"group\"><strong class=\"select2-results__group\">{{groupOrOption.label}}</strong><ul class=\"select2-results__options select2-results__options--nested\"><li v-for=\"option in groupOrOption.options\" :class=\"getOptionStyle(option.value)\" role=\"treeitem\" :aria-selected=\"isSelected(option)\" :aria-disabled=\"isDisabled(option)\" @mouseenter=\"mouseenter(option)\" @click=\"click(option)\"><component v-if=\"option.component\" :is=\"option.component\" :option=\"option\"></component><template v-else>{{option.label}}</template></li></ul></li><li v-else :class=\"getOptionStyle(groupOrOption.value)\" role=\"treeitem\" :aria-selected=\"isSelected(groupOrOption)\" :aria-disabled=\"isDisabled(groupOrOption)\" @mouseenter=\"mouseenter(groupOrOption)\" @click=\"click(groupOrOption)\"><component v-if=\"groupOrOption.component\" :is=\"groupOrOption.component\" :option=\"groupOrOption\"></component><template v-else>{{groupOrOption.label}}</template></li></template></ul></div></div></div></div>"; | ||
export declare const vueTemplateHtml: string; |
@@ -8,3 +8,3 @@ "use strict"; | ||
import { vueTemplateHtml } from "./vue-variables"; | ||
var Select2 = /** @class */ (function (_super) { | ||
var Select2 = (function (_super) { | ||
tslib_1.__extends(Select2, _super); | ||
@@ -11,0 +11,0 @@ function Select2() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2230
144561
45