select2-component
Advanced tools
Comparing version 5.6.0 to 5.7.0
@@ -1,7 +0,7 @@ | ||
export declare type Select2Group = { | ||
export interface Select2Group { | ||
label: string; | ||
options: Select2Option[]; | ||
classes?: string; | ||
}; | ||
export declare type Select2Option = { | ||
} | ||
export interface Select2Option { | ||
value: Select2Value; | ||
@@ -12,3 +12,3 @@ label: string; | ||
classes?: string; | ||
}; | ||
} | ||
export declare type Select2Value = string | number | boolean; | ||
@@ -25,3 +25,3 @@ export declare type Select2UpdateValue = Select2Value | Select2Value[]; | ||
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): (Select2Option | Select2Group)[]; | ||
export declare function getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): (Select2Group | Select2Option)[]; | ||
export declare function getOptionStyle(value: Select2Value, hoveringValue: Select2Value | null | undefined): "select2-results__option select2-results__option--highlighted" | "select2-results__option"; | ||
@@ -28,0 +28,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"; |
@@ -91,3 +91,3 @@ import * as tslib_1 from "tslib"; | ||
try { | ||
for (var options_1 = 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, tslib_1.__values(options)), options_1_1 = options_1.next(); !options_1_1.done; options_1_1 = options_1.next()) { | ||
var option = options_1_1.value; | ||
@@ -156,3 +156,3 @@ if (option.value === value) { | ||
try { | ||
for (var options_2 = 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, tslib_1.__values(options)), options_2_1 = options_2.next(); !options_2_1.done; options_2_1 = options_2.next()) { | ||
var option = options_2_1.value; | ||
@@ -224,3 +224,3 @@ if (!option.disabled) { | ||
try { | ||
for (var options_3 = 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, tslib_1.__values(options)), options_3_1 = options_3.next(); !options_3_1.done; options_3_1 = options_3.next()) { | ||
var option = options_3_1.value; | ||
@@ -256,3 +256,2 @@ if (option.value === value) { | ||
} | ||
// tslint:disable-next-line:cognitive-complexity | ||
export function getPreviousOption(filteredData, hoveringValue) { | ||
@@ -282,3 +281,2 @@ var findIt = isNullOrUndefined(hoveringValue); | ||
} | ||
// tslint:disable-next-line:cognitive-complexity | ||
export function getNextOption(filteredData, hoveringValue) { | ||
@@ -293,3 +291,3 @@ var e_10, _a, e_11, _b; | ||
try { | ||
for (var options_4 = 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, tslib_1.__values(options)), options_4_1 = options_4.next(); !options_4_1.done; options_4_1 = options_4.next()) { | ||
var option = options_4_1.value; | ||
@@ -296,0 +294,0 @@ if (findIt) { |
{ | ||
"name": "select2-component", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"description": "A vuejs, reactjs and angular select component core.", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "a29960cb6fca13ec077b3bd784dada8985d782b7" | ||
"gitHead": "f9e9bce50e32f9ab021993e428c47a46c56f69e9" | ||
} |
60958
991