select2-component
Advanced tools
Comparing version 5.7.0 to 5.8.1
@@ -24,3 +24,3 @@ export interface Select2Group { | ||
export declare function getLastScrollTopIndex(hoveringValue: Select2Value | null | undefined, results: HTMLElement, filteredData: Select2Data, lastScrollTopIndex: number): number | null; | ||
export declare function getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): (Select2Group | Select2Option)[]; | ||
export declare function getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): Select2Data; | ||
export declare function getOptionStyle(value: Select2Value, hoveringValue: Select2Value | null | undefined): "select2-results__option select2-results__option--highlighted" | "select2-results__option"; | ||
@@ -27,0 +27,0 @@ export declare function getDropdownStyle(isOpen: boolean): "select2-container select2-container--default select2-container-dropdown select2-container--open" | "select2-container select2-container--default select2-container-dropdown"; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __values } from "tslib"; | ||
export var timeout = 200; | ||
@@ -51,3 +51,3 @@ var unicodePatterns = [ | ||
try { | ||
for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { | ||
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { | ||
var groupOrOption = data_1_1.value; | ||
@@ -87,3 +87,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var data_2 = tslib_1.__values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) { | ||
for (var data_2 = __values(data), data_2_1 = data_2.next(); !data_2_1.done; data_2_1 = data_2.next()) { | ||
var groupOrOption = data_2_1.value; | ||
@@ -93,3 +93,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var options_1 = (e_3 = void 0, tslib_1.__values(options)), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) { | ||
for (var options_1 = (e_3 = void 0, __values(options)), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) { | ||
var option = options_1_1.value; | ||
@@ -131,3 +131,3 @@ if (option.value === value) { | ||
try { | ||
for (var values_1 = tslib_1.__values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) { | ||
for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) { | ||
var v = values_1_1.value; | ||
@@ -154,3 +154,3 @@ var option = getOptionByValue(data, v); | ||
try { | ||
for (var data_3 = tslib_1.__values(data), data_3_1 = data_3.next(); !data_3_1.done; data_3_1 = data_3.next()) { | ||
for (var data_3 = __values(data), data_3_1 = data_3.next(); !data_3_1.done; data_3_1 = data_3.next()) { | ||
var groupOrOption = data_3_1.value; | ||
@@ -160,3 +160,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var options_2 = (e_6 = void 0, tslib_1.__values(options)), options_2_1 = options_2.next(); !options_2_1.done; options_2_1 = options_2.next()) { | ||
for (var options_2 = (e_6 = void 0, __values(options)), options_2_1 = options_2.next(); !options_2_1.done; options_2_1 = options_2.next()) { | ||
var option = options_2_1.value; | ||
@@ -197,3 +197,3 @@ if (!option.disabled) { | ||
try { | ||
for (var data_4 = tslib_1.__values(data), data_4_1 = data_4.next(); !data_4_1.done; data_4_1 = data_4.next()) { | ||
for (var data_4 = __values(data), data_4_1 = data_4.next(); !data_4_1.done; data_4_1 = data_4.next()) { | ||
var groupOrOption = data_4_1.value; | ||
@@ -224,3 +224,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var filteredData_1 = tslib_1.__values(filteredData), filteredData_1_1 = filteredData_1.next(); !filteredData_1_1.done; filteredData_1_1 = filteredData_1.next()) { | ||
for (var filteredData_1 = __values(filteredData), filteredData_1_1 = filteredData_1.next(); !filteredData_1_1.done; filteredData_1_1 = filteredData_1.next()) { | ||
var groupOrOption = filteredData_1_1.value; | ||
@@ -230,3 +230,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var options_3 = (e_9 = void 0, tslib_1.__values(options)), options_3_1 = options_3.next(); !options_3_1.done; options_3_1 = options_3.next()) { | ||
for (var options_3 = (e_9 = void 0, __values(options)), options_3_1 = options_3.next(); !options_3_1.done; options_3_1 = options_3.next()) { | ||
var option = options_3_1.value; | ||
@@ -290,3 +290,3 @@ if (option.value === value) { | ||
try { | ||
for (var filteredData_2 = tslib_1.__values(filteredData), filteredData_2_1 = filteredData_2.next(); !filteredData_2_1.done; filteredData_2_1 = filteredData_2.next()) { | ||
for (var filteredData_2 = __values(filteredData), filteredData_2_1 = filteredData_2.next(); !filteredData_2_1.done; filteredData_2_1 = filteredData_2.next()) { | ||
var groupOrOption = filteredData_2_1.value; | ||
@@ -296,3 +296,3 @@ var options = groupOrOption.options; | ||
try { | ||
for (var options_4 = (e_11 = void 0, tslib_1.__values(options)), options_4_1 = options_4.next(); !options_4_1.done; options_4_1 = options_4.next()) { | ||
for (var options_4 = (e_11 = void 0, __values(options)), options_4_1 = options_4.next(); !options_4_1.done; options_4_1 = options_4.next()) { | ||
var option = options_4_1.value; | ||
@@ -379,3 +379,3 @@ if (findIt) { | ||
try { | ||
for (var unicodePatterns_1 = tslib_1.__values(unicodePatterns), unicodePatterns_1_1 = unicodePatterns_1.next(); !unicodePatterns_1_1.done; unicodePatterns_1_1 = unicodePatterns_1.next()) { | ||
for (var unicodePatterns_1 = __values(unicodePatterns), unicodePatterns_1_1 = unicodePatterns_1.next(); !unicodePatterns_1_1.done; unicodePatterns_1_1 = unicodePatterns_1.next()) { | ||
var unicodePattern = unicodePatterns_1_1.value; | ||
@@ -406,3 +406,3 @@ str = str.replace(unicodePattern.s, unicodePattern.l); | ||
try { | ||
for (var data_5 = tslib_1.__values(data), data_5_1 = data_5.next(); !data_5_1.done; data_5_1 = data_5.next()) { | ||
for (var data_5 = __values(data), data_5_1 = data_5.next(); !data_5_1.done; data_5_1 = data_5.next()) { | ||
var groupOrOption = data_5_1.value; | ||
@@ -409,0 +409,0 @@ var options = groupOrOption.options; |
{ | ||
"name": "select2-component", | ||
"version": "5.7.0", | ||
"description": "A vuejs, reactjs and angular select component core.", | ||
"version": "5.8.1", | ||
"description": "A vuejs and reactjs select component core.", | ||
"main": "dist/index.js", | ||
@@ -24,3 +24,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "f9e9bce50e32f9ab021993e428c47a46c56f69e9" | ||
"gitHead": "01e4da2962f63afda711d79c79b425b0599f0f1b" | ||
} |
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
81736
11
1494