ng-select2-component 17.3.2 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +21 -23
- package/fesm2022/ng-select2-component.mjs +182 -163
- package/fesm2022/ng-select2-component.mjs.map +1 -1
- package/package.json +11 -11
- package/types/ng-select2-component.d.ts +492 -0
- package/types/ng-select2-component.d.ts.map +1 -0
- package/index.d.ts +0 -6
- package/lib/select2-const.d.ts +0 -39
- package/lib/select2-const.d.ts.map +0 -1
- package/lib/select2-highlight.pipe.d.ts +0 -10
- package/lib/select2-highlight.pipe.d.ts.map +0 -1
- package/lib/select2-hint.component.d.ts +0 -6
- package/lib/select2-hint.component.d.ts.map +0 -1
- package/lib/select2-interfaces.d.ts +0 -97
- package/lib/select2-interfaces.d.ts.map +0 -1
- package/lib/select2-label.component.d.ts +0 -6
- package/lib/select2-label.component.d.ts.map +0 -1
- package/lib/select2-utils.d.ts +0 -30
- package/lib/select2-utils.d.ts.map +0 -1
- package/lib/select2.component.d.ts +0 -305
- package/lib/select2.component.d.ts.map +0 -1
- package/ng-select2-component.d.ts.map +0 -1
- package/public_api.d.ts +0 -8
- package/public_api.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-select2-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "An Angular select2 component.",
|
|
5
5
|
"author": "York Yao, Célian Veyssière",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"ngx-infinite-scroll": ">=18.0.0 || >=19.0.0 || >=20.0.0 || >=21.0.0",
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
7
|
"peerDependencies": {
|
|
12
|
-
"@angular/cdk": ">=
|
|
13
|
-
"@angular/common": ">=
|
|
14
|
-
"@angular/core": ">=
|
|
8
|
+
"@angular/cdk": ">=22.0.0",
|
|
9
|
+
"@angular/common": ">=22.0.0",
|
|
10
|
+
"@angular/core": ">=22.0.0"
|
|
15
11
|
},
|
|
16
12
|
"repository": {
|
|
17
13
|
"type": "git",
|
|
@@ -34,15 +30,19 @@
|
|
|
34
30
|
"select"
|
|
35
31
|
],
|
|
36
32
|
"module": "fesm2022/ng-select2-component.mjs",
|
|
37
|
-
"typings": "
|
|
33
|
+
"typings": "types/ng-select2-component.d.ts",
|
|
38
34
|
"exports": {
|
|
39
35
|
"./package.json": {
|
|
40
36
|
"default": "./package.json"
|
|
41
37
|
},
|
|
42
38
|
".": {
|
|
43
|
-
"types": "./
|
|
39
|
+
"types": "./types/ng-select2-component.d.ts",
|
|
44
40
|
"default": "./fesm2022/ng-select2-component.mjs"
|
|
45
41
|
}
|
|
46
42
|
},
|
|
47
|
-
"sideEffects": false
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"type": "module",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"tslib": "^2.3.0"
|
|
47
|
+
}
|
|
48
48
|
}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { PipeTransform, OnInit, DoCheck, AfterViewInit, OnDestroy, OnChanges, TemplateRef, ElementRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
|
+
import { CdkConnectedOverlay, ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
6
|
+
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
7
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
declare const timeout = 200;
|
|
10
|
+
/**
|
|
11
|
+
* Latin - `[\u0300-\u036F]` matches combining diacritical marks:
|
|
12
|
+
* - `\u0300-\u036F`: grave, acute, circumflex, tilde, macron, breve, dot above, diaeresis, ring above, etc.
|
|
13
|
+
*/
|
|
14
|
+
declare const latinDiacritical: {
|
|
15
|
+
tmp: string;
|
|
16
|
+
pattern: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Arabic - `[\u064B-\u0652\u0670]` matches Arabic diacritics (harakat):
|
|
20
|
+
* - `\u064B-\u0652`: fatha, damma, kasra, sukun, shadda, tanwin, etc.
|
|
21
|
+
* - `\u0670`: alif khanjariyah (superscript alif)
|
|
22
|
+
*/
|
|
23
|
+
declare const arabicDiacritical: {
|
|
24
|
+
tmp: string;
|
|
25
|
+
pattern: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Hebrew - `[\u05B0-\u05BC\u05C1\u05C2]` matches Hebrew diacritics (niqqud):
|
|
29
|
+
* - `\u05B0-\u05BC`: vowel points (sheva, hataf, hiriq, tsere, segol, patah, qamats, holam, qubuts, dagesh, etc.)
|
|
30
|
+
* - `\u05C1-\u05C2`: shin dot (right) and sin dot (left)
|
|
31
|
+
*/
|
|
32
|
+
declare const hebrewDiacritical: {
|
|
33
|
+
tmp: string;
|
|
34
|
+
pattern: string;
|
|
35
|
+
};
|
|
36
|
+
declare const unicodePatterns: {
|
|
37
|
+
l: string;
|
|
38
|
+
s: RegExp;
|
|
39
|
+
e?: string;
|
|
40
|
+
d?: {
|
|
41
|
+
tmp: string;
|
|
42
|
+
pattern: string;
|
|
43
|
+
};
|
|
44
|
+
}[];
|
|
45
|
+
declare const defaultMinCountForSearch = 6;
|
|
46
|
+
declare const protectRegexp: RegExp;
|
|
47
|
+
|
|
48
|
+
declare class Select2HighlightPipe implements PipeTransform {
|
|
49
|
+
private readonly sanitizer;
|
|
50
|
+
transform(value: string | null | undefined, search: string | null | undefined, disabled?: boolean): SafeHtml | string;
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select2HighlightPipe, never>;
|
|
52
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<Select2HighlightPipe, "highlightText", true>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare class Select2Hint {
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select2Hint, never>;
|
|
57
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Select2Hint, "select2-hint, ng-select2-hint", never, {}, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit, OnDestroy, OnChanges {
|
|
61
|
+
protected _viewportRuler: ViewportRuler;
|
|
62
|
+
private _changeDetectorRef;
|
|
63
|
+
private _parentForm;
|
|
64
|
+
private _parentFormGroup;
|
|
65
|
+
_control: NgControl | null;
|
|
66
|
+
readonly _uid: string;
|
|
67
|
+
/** data of options & option groups */
|
|
68
|
+
readonly data: _angular_core.InputSignal<Select2Data>;
|
|
69
|
+
/** minimum characters to start filter search */
|
|
70
|
+
readonly minCharForSearch: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
71
|
+
/** text placeholder */
|
|
72
|
+
readonly displaySearchStatus: _angular_core.InputSignal<"always" | "default" | "hidden" | undefined>;
|
|
73
|
+
/** text placeholder */
|
|
74
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
75
|
+
/** in multiple: maximum selection element (0 = no limit) */
|
|
76
|
+
readonly limitSelection: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
77
|
+
/** dropdown position */
|
|
78
|
+
readonly listPosition: _angular_core.InputSignal<"above" | "below" | "auto">;
|
|
79
|
+
/** overlay with CDK Angular position */
|
|
80
|
+
readonly overlay: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
81
|
+
/** select one or more item */
|
|
82
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
/** drag'n drop list of items in multiple */
|
|
84
|
+
readonly multipleDrag: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
85
|
+
/** use the material style */
|
|
86
|
+
readonly styleMode: _angular_core.InputSignal<"default" | "material" | "noStyle" | "borderless">;
|
|
87
|
+
/** message when no result */
|
|
88
|
+
readonly noResultMessage: _angular_core.InputSignal<string | undefined>;
|
|
89
|
+
/** maximum results limit (0 = no limit) */
|
|
90
|
+
readonly maxResults: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
91
|
+
/** message when maximum results */
|
|
92
|
+
readonly maxResultsMessage: _angular_core.InputSignal<string>;
|
|
93
|
+
/** infinite scroll distance */
|
|
94
|
+
readonly infiniteScrollDistance: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
95
|
+
/** infinite scroll distance */
|
|
96
|
+
readonly infiniteScrollThrottle: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
97
|
+
/** infinite scroll activated */
|
|
98
|
+
readonly infiniteScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
/** auto create if not exist */
|
|
100
|
+
readonly autoCreate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
101
|
+
/** no template for label selection */
|
|
102
|
+
readonly noLabelTemplate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
/** use it for change the pattern of the filter search */
|
|
104
|
+
readonly editPattern: _angular_core.InputSignal<((str: string) => string) | undefined>;
|
|
105
|
+
/** template(s) for formatting */
|
|
106
|
+
readonly templates: _angular_core.InputSignal<Select2Template>;
|
|
107
|
+
/** template for formatting selected option */
|
|
108
|
+
readonly templateSelection: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
109
|
+
/** the max height of the results container when opening the select */
|
|
110
|
+
readonly resultMaxHeight: _angular_core.InputSignal<string>;
|
|
111
|
+
/** Active Search event */
|
|
112
|
+
readonly customSearchEnabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
/** minimal data of show the search field */
|
|
114
|
+
readonly minCountForSearch: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
115
|
+
/** Unique id of the element. */
|
|
116
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
117
|
+
/** Unique id of label element. */
|
|
118
|
+
readonly idLabel: _angular_core.Signal<string>;
|
|
119
|
+
/** Unique id of combo element. */
|
|
120
|
+
readonly idCombo: _angular_core.Signal<string>;
|
|
121
|
+
/** Unique id of options element. */
|
|
122
|
+
readonly idOptions: _angular_core.Signal<string>;
|
|
123
|
+
/** Unique id of overlay element. */
|
|
124
|
+
readonly idOverlay: _angular_core.Signal<string>;
|
|
125
|
+
/** Whether the element is required. */
|
|
126
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
127
|
+
/** Whether selected items should be hidden. */
|
|
128
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
129
|
+
/** Whether items are hidden when has. */
|
|
130
|
+
readonly hideSelectedItems: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
131
|
+
/** Whether the element is readonly. */
|
|
132
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
133
|
+
/** The input element's value. */
|
|
134
|
+
readonly value: _angular_core.InputSignal<Select2UpdateValue>;
|
|
135
|
+
/** Tab index for the select2 element. */
|
|
136
|
+
readonly tabIndex: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
137
|
+
/** reset with no selected value */
|
|
138
|
+
readonly resettable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
139
|
+
/** selected value when × is clicked */
|
|
140
|
+
readonly resetSelectedValue: _angular_core.InputSignal<any>;
|
|
141
|
+
/** like native select keyboard navigation (only single mode) */
|
|
142
|
+
readonly nativeKeyboard: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
143
|
+
/** highlight search text */
|
|
144
|
+
readonly highlightText: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
145
|
+
/** grid: item by line
|
|
146
|
+
* * 0 = no grid
|
|
147
|
+
* * number = item by line (4)
|
|
148
|
+
* * string = minimal size item (100px)
|
|
149
|
+
*/
|
|
150
|
+
readonly grid: _angular_core.InputSignal<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Replace selection by a text
|
|
153
|
+
* * if string: `%size%` = total selected options
|
|
154
|
+
* * if function: juste show the string
|
|
155
|
+
*/
|
|
156
|
+
readonly selectionOverride: _angular_core.InputSignal<Select2SelectionOverride | undefined>;
|
|
157
|
+
/** force selection on one line */
|
|
158
|
+
readonly selectionNoWrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
159
|
+
/** Add an option to select or remove all (if all is selected) */
|
|
160
|
+
readonly showSelectAll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
161
|
+
/** Text for remove all options */
|
|
162
|
+
readonly removeAllText: _angular_core.InputSignal<string>;
|
|
163
|
+
/** Text for select all options */
|
|
164
|
+
readonly selectAllText: _angular_core.InputSignal<string>;
|
|
165
|
+
/** title attribute applied to the input */
|
|
166
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
167
|
+
/** aria-labelledby attribute applied to the input, to specify en external label */
|
|
168
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | undefined>;
|
|
169
|
+
/** aria-describedby attribute applied to the input */
|
|
170
|
+
readonly ariaDescribedby: _angular_core.InputSignal<string | undefined>;
|
|
171
|
+
/** aria-invalid attribute applied to the input, to force error state */
|
|
172
|
+
readonly ariaInvalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
173
|
+
/** description of the reset button when using 'resettable'. Default value : 'Reset' */
|
|
174
|
+
readonly ariaResetButtonDescription: _angular_core.InputSignal<string>;
|
|
175
|
+
readonly update: _angular_core.OutputEmitterRef<Select2UpdateEvent<Select2UpdateValue>>;
|
|
176
|
+
readonly autoCreateItem: _angular_core.OutputEmitterRef<Select2AutoCreateEvent<Select2UpdateValue>>;
|
|
177
|
+
readonly open: _angular_core.OutputEmitterRef<Select2>;
|
|
178
|
+
readonly close: _angular_core.OutputEmitterRef<Select2>;
|
|
179
|
+
readonly focus: _angular_core.OutputEmitterRef<Select2>;
|
|
180
|
+
readonly blur: _angular_core.OutputEmitterRef<Select2>;
|
|
181
|
+
readonly search: _angular_core.OutputEmitterRef<Select2SearchEvent<Select2UpdateValue>>;
|
|
182
|
+
readonly scroll: _angular_core.OutputEmitterRef<Select2ScrollEvent>;
|
|
183
|
+
readonly removeOption: _angular_core.OutputEmitterRef<Select2RemoveEvent<Select2UpdateValue>>;
|
|
184
|
+
readonly cdkConnectedOverlay: _angular_core.Signal<CdkConnectedOverlay>;
|
|
185
|
+
readonly selection: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
186
|
+
readonly resultContainer: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
187
|
+
readonly results: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
188
|
+
readonly searchInput: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
189
|
+
readonly dropdown: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
190
|
+
readonly classMaterial: _angular_core.Signal<boolean>;
|
|
191
|
+
readonly classNostyle: _angular_core.Signal<boolean>;
|
|
192
|
+
readonly classBorderless: _angular_core.Signal<boolean>;
|
|
193
|
+
readonly select2above: _angular_core.Signal<boolean>;
|
|
194
|
+
selectedOption: Select2Option | Select2Option[] | null;
|
|
195
|
+
isOpen: boolean;
|
|
196
|
+
searchStyle: string | undefined;
|
|
197
|
+
/** Whether the element is focused or not. */
|
|
198
|
+
focused: boolean;
|
|
199
|
+
filteredData: _angular_core.WritableSignal<Select2Data | undefined>;
|
|
200
|
+
get select2Options(): Select2Option[];
|
|
201
|
+
get select2Option(): Select2Option | null;
|
|
202
|
+
get searchText(): string;
|
|
203
|
+
protected set searchText(text: string);
|
|
204
|
+
get disabledState(): boolean;
|
|
205
|
+
protected overlayWidth: number | string;
|
|
206
|
+
protected overlayHeight: number | string;
|
|
207
|
+
protected _triggerRect: DOMRect | undefined;
|
|
208
|
+
protected _dropdownRect: DOMRect | undefined;
|
|
209
|
+
protected readonly _positions: _angular_core.Signal<ConnectionPositionPair[]>;
|
|
210
|
+
protected maxResultsExceeded: boolean | undefined;
|
|
211
|
+
private hoveringOption;
|
|
212
|
+
hoveringOptionId: _angular_core.Signal<string | null>;
|
|
213
|
+
private innerSearchText;
|
|
214
|
+
protected isSearchboxHidden: boolean | undefined;
|
|
215
|
+
private selectionElement;
|
|
216
|
+
private get resultsElement();
|
|
217
|
+
private _stateChanges;
|
|
218
|
+
/** Tab index for the element. */
|
|
219
|
+
protected get _tabIndex(): number;
|
|
220
|
+
private _data;
|
|
221
|
+
private _disabled;
|
|
222
|
+
private _destroyed;
|
|
223
|
+
protected _value: Select2UpdateValue | null;
|
|
224
|
+
private _previousNativeValue;
|
|
225
|
+
private _overlayPosition;
|
|
226
|
+
private toObservable;
|
|
227
|
+
constructor();
|
|
228
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
229
|
+
clickDetection(e: MouseEvent): void;
|
|
230
|
+
/** View -> model callback called when select has been touched */
|
|
231
|
+
private _onTouched;
|
|
232
|
+
/** View -> model callback called when value changes */
|
|
233
|
+
private _onChange;
|
|
234
|
+
_onViewportChange(): void;
|
|
235
|
+
ngOnInit(): void;
|
|
236
|
+
ngAfterViewInit(): void;
|
|
237
|
+
ngDoCheck(): void;
|
|
238
|
+
ngOnDestroy(): void;
|
|
239
|
+
fixValue(): void;
|
|
240
|
+
updateSearchBox(): void;
|
|
241
|
+
getOptionStyle(option: Select2Option): string;
|
|
242
|
+
mouseenter(option: Select2Option): void;
|
|
243
|
+
click(option: Select2Option): void;
|
|
244
|
+
reset(event?: MouseEvent): void;
|
|
245
|
+
prevChange(event: Event): void;
|
|
246
|
+
stopEvent(event: Event): void;
|
|
247
|
+
toggleOpenAndClose(focus?: boolean, open?: boolean, event?: KeyboardEvent): void;
|
|
248
|
+
hasTemplate(option: Select2Option | Select2Group, defaultValue: string, select?: boolean): boolean;
|
|
249
|
+
getTemplate(option: Select2Option | Select2Group, defaultValue: string, select?: boolean): any;
|
|
250
|
+
getContext(option: Select2Option): {
|
|
251
|
+
searchText: string;
|
|
252
|
+
highlightText: boolean;
|
|
253
|
+
value: Select2Value;
|
|
254
|
+
label: string;
|
|
255
|
+
disabled?: boolean;
|
|
256
|
+
id?: string;
|
|
257
|
+
classes?: string;
|
|
258
|
+
templateId?: string;
|
|
259
|
+
templateSelectionId?: string;
|
|
260
|
+
data?: any;
|
|
261
|
+
hide?: boolean;
|
|
262
|
+
dir?: "ltr" | "rtl";
|
|
263
|
+
};
|
|
264
|
+
triggerRect(): void;
|
|
265
|
+
isNumber(o: any): boolean;
|
|
266
|
+
selectAll(): void;
|
|
267
|
+
selectAllTest(): boolean;
|
|
268
|
+
private testSelection;
|
|
269
|
+
private testValueChange;
|
|
270
|
+
private updateFilteredData;
|
|
271
|
+
private clickExit;
|
|
272
|
+
private isInSelect;
|
|
273
|
+
private ifParentContainsClass;
|
|
274
|
+
private ifParentContainsId;
|
|
275
|
+
private getParentElementByClass;
|
|
276
|
+
private getParentElementById;
|
|
277
|
+
private containClasses;
|
|
278
|
+
private containAlmostOneClasses;
|
|
279
|
+
private clickOnSelect2Element;
|
|
280
|
+
focusin(options?: FocusOptions): void;
|
|
281
|
+
focusout(event: FocusEvent): void;
|
|
282
|
+
select(option: Select2Option | null, emit?: boolean, closeOnSelect?: boolean): void;
|
|
283
|
+
private testDiffValue;
|
|
284
|
+
keyDown(event: KeyboardEvent, create?: boolean): void;
|
|
285
|
+
private actionAfterKeyDownMoveAction;
|
|
286
|
+
openKey(event: KeyboardEvent, create?: boolean): void;
|
|
287
|
+
private _closeOnKey;
|
|
288
|
+
private _shouldKeyDownOnOpen;
|
|
289
|
+
private _handleOnOpenAction;
|
|
290
|
+
private _scrollToInitialOption;
|
|
291
|
+
searchUpdate(e: Event): void;
|
|
292
|
+
isSelected(option: Select2Option): "true" | "false";
|
|
293
|
+
isDisabled(option: Select2Option): "true" | "false";
|
|
294
|
+
removeSelection(e: MouseEvent | KeyboardEvent | Event, option: Select2Option): void;
|
|
295
|
+
/**
|
|
296
|
+
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
297
|
+
* @param value
|
|
298
|
+
*/
|
|
299
|
+
writeValue(value: any): void;
|
|
300
|
+
/**
|
|
301
|
+
* Saves a callback function to be invoked when the select's value
|
|
302
|
+
* changes from user input. Part of the ControlValueAccessor interface
|
|
303
|
+
* required to integrate with Angular's core forms API.
|
|
304
|
+
*
|
|
305
|
+
* @param fn Callback to be triggered when the value changes.
|
|
306
|
+
*/
|
|
307
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
308
|
+
/**
|
|
309
|
+
* Saves a callback function to be invoked when the select is blurred
|
|
310
|
+
* by the user. Part of the ControlValueAccessor interface required
|
|
311
|
+
* to integrate with Angular's core forms API.
|
|
312
|
+
*
|
|
313
|
+
* @param fn Callback to be triggered when the component has been touched.
|
|
314
|
+
*/
|
|
315
|
+
registerOnTouched(fn: () => void): void;
|
|
316
|
+
/**
|
|
317
|
+
* Sets whether the component should be disabled.
|
|
318
|
+
* Implemented as part of ControlValueAccessor.
|
|
319
|
+
* @param isDisabled
|
|
320
|
+
*/
|
|
321
|
+
setDisabledState(isDisabled: boolean): void;
|
|
322
|
+
onScroll(way: 'up' | 'down'): void;
|
|
323
|
+
private _setupScrollListener;
|
|
324
|
+
_onScrollEvent(scrollTop: number, clientHeight: number, scrollHeight: number): void;
|
|
325
|
+
drop(event: CdkDragDrop<string[], string[], any>): void;
|
|
326
|
+
_isErrorState(): boolean;
|
|
327
|
+
private _isFormSubmitted;
|
|
328
|
+
_selectionOverrideLabel(): string | undefined;
|
|
329
|
+
getElementId(elt: Select2Group | Select2Option | null): string | null;
|
|
330
|
+
private _toSuffix;
|
|
331
|
+
_getElementPath(elt: Select2Group | Select2Option): number[];
|
|
332
|
+
_toGroup(group: Select2Option | Select2Group): Select2Group;
|
|
333
|
+
_toOption(option: Select2Option | Select2Group): Select2Option;
|
|
334
|
+
private updateEvent;
|
|
335
|
+
private optionsSize;
|
|
336
|
+
private addItem;
|
|
337
|
+
private createAndAdd;
|
|
338
|
+
private moveUp;
|
|
339
|
+
private moveDown;
|
|
340
|
+
private moveStart;
|
|
341
|
+
private moveEnd;
|
|
342
|
+
private updateScrollFromOption;
|
|
343
|
+
private selectByEnter;
|
|
344
|
+
private _testKey;
|
|
345
|
+
/**
|
|
346
|
+
* Sets the selected option based on a value. If no option can be
|
|
347
|
+
* found with the designated value, the select trigger is cleared.
|
|
348
|
+
*/
|
|
349
|
+
private _setSelectionByValue;
|
|
350
|
+
private _preselectArrayValue;
|
|
351
|
+
/** Does some manual dirty checking on the native input `value` property. */
|
|
352
|
+
private _dirtyCheckNativeValue;
|
|
353
|
+
private _focusSearchbox;
|
|
354
|
+
private _focus;
|
|
355
|
+
private _isAbobeOverlay;
|
|
356
|
+
_updateFocusState(state: boolean): void;
|
|
357
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select2, never>;
|
|
358
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Select2, "select2, ng-select2", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "minCharForSearch": { "alias": "minCharForSearch"; "required": false; "isSignal": true; }; "displaySearchStatus": { "alias": "displaySearchStatus"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "limitSelection": { "alias": "limitSelection"; "required": false; "isSignal": true; }; "listPosition": { "alias": "listPosition"; "required": false; "isSignal": true; }; "overlay": { "alias": "overlay"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "multipleDrag": { "alias": "multipleDrag"; "required": false; "isSignal": true; }; "styleMode": { "alias": "styleMode"; "required": false; "isSignal": true; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; "isSignal": true; }; "maxResults": { "alias": "maxResults"; "required": false; "isSignal": true; }; "maxResultsMessage": { "alias": "maxResultsMessage"; "required": false; "isSignal": true; }; "infiniteScrollDistance": { "alias": "infiniteScrollDistance"; "required": false; "isSignal": true; }; "infiniteScrollThrottle": { "alias": "infiniteScrollThrottle"; "required": false; "isSignal": true; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; "isSignal": true; }; "autoCreate": { "alias": "autoCreate"; "required": false; "isSignal": true; }; "noLabelTemplate": { "alias": "noLabelTemplate"; "required": false; "isSignal": true; }; "editPattern": { "alias": "editPattern"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; "templateSelection": { "alias": "templateSelection"; "required": false; "isSignal": true; }; "resultMaxHeight": { "alias": "resultMaxHeight"; "required": false; "isSignal": true; }; "customSearchEnabled": { "alias": "customSearchEnabled"; "required": false; "isSignal": true; }; "minCountForSearch": { "alias": "minCountForSearch"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hideSelectedItems": { "alias": "hideSelectedItems"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "resettable": { "alias": "resettable"; "required": false; "isSignal": true; }; "resetSelectedValue": { "alias": "resetSelectedValue"; "required": false; "isSignal": true; }; "nativeKeyboard": { "alias": "nativeKeyboard"; "required": false; "isSignal": true; }; "highlightText": { "alias": "highlightText"; "required": false; "isSignal": true; }; "grid": { "alias": "grid"; "required": false; "isSignal": true; }; "selectionOverride": { "alias": "selectionOverride"; "required": false; "isSignal": true; }; "selectionNoWrap": { "alias": "selectionNoWrap"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "removeAllText": { "alias": "removeAllText"; "required": false; "isSignal": true; }; "selectAllText": { "alias": "selectAllText"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; "isSignal": true; }; "ariaInvalid": { "alias": "ariaInvalid"; "required": false; "isSignal": true; }; "ariaResetButtonDescription": { "alias": "ariaResetButtonDescription"; "required": false; "isSignal": true; }; }, { "update": "update"; "autoCreateItem": "autoCreateItem"; "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "search": "search"; "scroll": "scroll"; "removeOption": "removeOption"; }, never, ["select2-label, ng-select2-label", "select2-hint, ng-select2-hint"], true, never>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface Select2Group {
|
|
362
|
+
/** for identification */
|
|
363
|
+
id?: string;
|
|
364
|
+
/** label of group */
|
|
365
|
+
label: string;
|
|
366
|
+
/** options list */
|
|
367
|
+
options: Select2Option[];
|
|
368
|
+
/** add classes */
|
|
369
|
+
classes?: string;
|
|
370
|
+
/** template id dropdown & selection if no templateSelectionId */
|
|
371
|
+
templateId?: string;
|
|
372
|
+
/** template data */
|
|
373
|
+
data?: any;
|
|
374
|
+
/** force left to right or right to left */
|
|
375
|
+
dir?: 'ltr' | 'rtl';
|
|
376
|
+
}
|
|
377
|
+
interface Select2Option {
|
|
378
|
+
/** value */
|
|
379
|
+
value: Select2Value;
|
|
380
|
+
/** label of option */
|
|
381
|
+
label: string;
|
|
382
|
+
/** no selectable is disabled */
|
|
383
|
+
disabled?: boolean;
|
|
384
|
+
/** for identification */
|
|
385
|
+
id?: string;
|
|
386
|
+
/** add classes */
|
|
387
|
+
classes?: string;
|
|
388
|
+
/** template id dropdown & selection if no templateSelectionId */
|
|
389
|
+
templateId?: string;
|
|
390
|
+
/** template id for selection */
|
|
391
|
+
templateSelectionId?: string;
|
|
392
|
+
/** template data */
|
|
393
|
+
data?: any;
|
|
394
|
+
/** hide this option */
|
|
395
|
+
hide?: boolean;
|
|
396
|
+
/** force left to right or right to left */
|
|
397
|
+
dir?: 'ltr' | 'rtl';
|
|
398
|
+
}
|
|
399
|
+
type Select2Value = string | number | boolean | object | null | undefined;
|
|
400
|
+
type Select2UpdateValue = Select2Value | Select2Value[] | undefined | null;
|
|
401
|
+
type Select2Data = (Select2Group | Select2Option)[];
|
|
402
|
+
interface Select2UpdateEvent<U extends Select2UpdateValue = Select2Value> {
|
|
403
|
+
/** component */
|
|
404
|
+
readonly component: Select2;
|
|
405
|
+
/** current selected value */
|
|
406
|
+
readonly value: U | null;
|
|
407
|
+
/** selected option */
|
|
408
|
+
readonly options: Select2Option[] | null;
|
|
409
|
+
}
|
|
410
|
+
interface Select2AutoCreateEvent<U extends Select2UpdateValue = Select2Value> {
|
|
411
|
+
/** component */
|
|
412
|
+
readonly component: Select2;
|
|
413
|
+
/** current selected value */
|
|
414
|
+
readonly value: U;
|
|
415
|
+
/** selected option */
|
|
416
|
+
readonly options: Select2Option[] | null;
|
|
417
|
+
}
|
|
418
|
+
interface Select2SearchEvent<U extends Select2UpdateValue = Select2Value> {
|
|
419
|
+
/** component */
|
|
420
|
+
readonly component: Select2;
|
|
421
|
+
/** current selected value */
|
|
422
|
+
readonly value: U | null;
|
|
423
|
+
/** search text */
|
|
424
|
+
readonly search: string;
|
|
425
|
+
/** current data source */
|
|
426
|
+
readonly data: Select2Data;
|
|
427
|
+
/** method to call to update the data */
|
|
428
|
+
readonly filteredData: (data: Select2Data) => void;
|
|
429
|
+
}
|
|
430
|
+
interface Select2RemoveEvent<U extends Select2UpdateValue = Select2Value> {
|
|
431
|
+
/** component */
|
|
432
|
+
readonly component: Select2;
|
|
433
|
+
/** current selected value */
|
|
434
|
+
readonly value: U;
|
|
435
|
+
/** remove */
|
|
436
|
+
readonly removedOption: Select2Option;
|
|
437
|
+
}
|
|
438
|
+
interface Select2ScrollEvent {
|
|
439
|
+
/** component */
|
|
440
|
+
readonly component: Select2;
|
|
441
|
+
/** scroll way */
|
|
442
|
+
readonly way: 'up' | 'down';
|
|
443
|
+
/** search text */
|
|
444
|
+
readonly search: string;
|
|
445
|
+
/** current data */
|
|
446
|
+
readonly data: Select2Data;
|
|
447
|
+
}
|
|
448
|
+
type Select2SelectionOverride = string | ((params: {
|
|
449
|
+
size: number;
|
|
450
|
+
options: Select2Option[] | null;
|
|
451
|
+
}) => string);
|
|
452
|
+
type Select2Template = TemplateRef<any> | {
|
|
453
|
+
[key: string]: TemplateRef<any>;
|
|
454
|
+
} | undefined;
|
|
455
|
+
|
|
456
|
+
declare class Select2Label {
|
|
457
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select2Label, never>;
|
|
458
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Select2Label, "select2-label, ng-select2-label", never, {}, {}, never, never, true, never>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare class Select2Utils {
|
|
462
|
+
static getOptionByValue(data: Select2Data, value: Select2Value): Select2Option | null;
|
|
463
|
+
static getOptionsByValue(data: Select2Data, value: Select2UpdateValue | null | undefined, multiple: boolean | null | undefined): Select2Option | Select2Option[] | null;
|
|
464
|
+
static getFirstAvailableOption(data: Select2Data): Select2Option | null;
|
|
465
|
+
static optionIsNotInFilteredData(filteredData: Select2Data, option: Select2Option | null): boolean;
|
|
466
|
+
static getPreviousOption(filteredData: Select2Data, hoveringOption: Select2Option | null): Select2Option | null;
|
|
467
|
+
static getNextOption(filteredData: Select2Data | null, hoveringOption: Select2Option | null): Select2Option | null;
|
|
468
|
+
static getFirstOption(filteredData: Select2Data): Select2Option | null;
|
|
469
|
+
static getLastOption(filteredData: Select2Data): Select2Option | null;
|
|
470
|
+
static isGroup(element: Select2Group | Select2Option): element is Select2Group;
|
|
471
|
+
static isOption(element: Select2Group | Select2Option): element is Select2Option;
|
|
472
|
+
static getReduceData(data: Select2Data, maxResults?: number): {
|
|
473
|
+
result: Select2Data;
|
|
474
|
+
reduce: boolean;
|
|
475
|
+
};
|
|
476
|
+
static getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): Select2Data;
|
|
477
|
+
static getFilteredSelectedData(data: Select2Data, selectedOptions: Select2Option | Select2Option[] | null): Select2Data;
|
|
478
|
+
static isSearchboxHidden(data: Select2Data, minCountForSearch?: number): boolean;
|
|
479
|
+
static isSelected(options: Select2Option | Select2Option[] | null, option: Select2Option, multiple: boolean | null | undefined): "true" | "false";
|
|
480
|
+
static removeSelection(options: Select2Option | Select2Option[] | null, option: Select2Option): void;
|
|
481
|
+
private static getOptionsCount;
|
|
482
|
+
private static isNullOrUndefined;
|
|
483
|
+
private static containSearchText;
|
|
484
|
+
static protectPattern(str: string): string;
|
|
485
|
+
private static formatSansUnicode;
|
|
486
|
+
static patternUnicode(str: string): string;
|
|
487
|
+
static formatPattern(str: string, editPattern?: (str: string) => string): string;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export { Select2, Select2HighlightPipe, Select2Hint, Select2Label, Select2Utils, arabicDiacritical, defaultMinCountForSearch, hebrewDiacritical, latinDiacritical, protectRegexp, timeout, unicodePatterns };
|
|
491
|
+
export type { Select2AutoCreateEvent, Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2SelectionOverride, Select2Template, Select2UpdateEvent, Select2UpdateValue, Select2Value };
|
|
492
|
+
//# sourceMappingURL=ng-select2-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-select2-component.d.ts","sources":["../../../projects/ng-select2-component/src/lib/select2-const.ts","../../../projects/ng-select2-component/src/lib/select2-highlight.pipe.ts","../../../projects/ng-select2-component/src/lib/select2-hint.component.ts","../../../projects/ng-select2-component/src/lib/select2.component.ts","../../../projects/ng-select2-component/src/lib/select2-interfaces.ts","../../../projects/ng-select2-component/src/lib/select2-label.component.ts","../../../projects/ng-select2-component/src/lib/select2-utils.ts"],"mappings":";;;;;;;;AAAA,cAAa,OAAO;AAEpB;;;AAGG;AACH,cAAa,gBAAgB;;;;AAC7B;;;;AAIG;AACH,cAAa,iBAAiB;;;;AAC9B;;;;AAIG;AACH,cAAa,iBAAiB;;;;AAE9B,cAAa,eAAe;;OAAkB,MAAM;;AAAc;;;;AAAsC;AAoLxG,cA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G,aAAa;AAmBhE,mDAA+C,WAAW,UAAU,aAAa;AAejF,2CAAuC,WAAW,kBAAkB,aAAa,UAAU,aAAa;AA4BxG,uCAAmC,WAAW,yBAAyB,aAAa,UAAU,aAAa;wCA8BvE,WAAW,GAAG,aAAa;uCAS5B,WAAW,GAAG,aAAa;4BAYtC,YAAY,GAAG,aAAa,cAAc,YAAY;6BAIrD,YAAY,GAAG,aAAa,cAAc,aAAa;+BAIrD,WAAW;gBAA6B,WAAW;;AAAmB;iCAoCvF,WAAW,qEAGlB,WAAW;AAyBd,yCACU,WAAW,mBACA,aAAa,GAAG,aAAa,YAC/C,WAAW;AAqBd,mCAA+B,WAAW;+BAS7B,aAAa,GAAG,aAAa,mBAC9B,aAAa;AAYzB,oCAAgC,aAAa,GAAG,aAAa,mBAAmB,aAAa;;;;AAoC7F;;AAWA;AAoBA;AAQH;;;;","names":[]}
|
package/index.d.ts
DELETED
package/lib/select2-const.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const timeout = 200;
|
|
2
|
-
/**
|
|
3
|
-
* Latin - `[\u0300-\u036F]` matches combining diacritical marks:
|
|
4
|
-
* - `\u0300-\u036F`: grave, acute, circumflex, tilde, macron, breve, dot above, diaeresis, ring above, etc.
|
|
5
|
-
*/
|
|
6
|
-
export declare const latinDiacritical: {
|
|
7
|
-
tmp: string;
|
|
8
|
-
pattern: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Arabic - `[\u064B-\u0652\u0670]` matches Arabic diacritics (harakat):
|
|
12
|
-
* - `\u064B-\u0652`: fatha, damma, kasra, sukun, shadda, tanwin, etc.
|
|
13
|
-
* - `\u0670`: alif khanjariyah (superscript alif)
|
|
14
|
-
*/
|
|
15
|
-
export declare const arabicDiacritical: {
|
|
16
|
-
tmp: string;
|
|
17
|
-
pattern: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Hebrew - `[\u05B0-\u05BC\u05C1\u05C2]` matches Hebrew diacritics (niqqud):
|
|
21
|
-
* - `\u05B0-\u05BC`: vowel points (sheva, hataf, hiriq, tsere, segol, patah, qamats, holam, qubuts, dagesh, etc.)
|
|
22
|
-
* - `\u05C1-\u05C2`: shin dot (right) and sin dot (left)
|
|
23
|
-
*/
|
|
24
|
-
export declare const hebrewDiacritical: {
|
|
25
|
-
tmp: string;
|
|
26
|
-
pattern: string;
|
|
27
|
-
};
|
|
28
|
-
export declare const unicodePatterns: {
|
|
29
|
-
l: string;
|
|
30
|
-
s: RegExp;
|
|
31
|
-
e?: string;
|
|
32
|
-
d?: {
|
|
33
|
-
tmp: string;
|
|
34
|
-
pattern: string;
|
|
35
|
-
};
|
|
36
|
-
}[];
|
|
37
|
-
export declare const defaultMinCountForSearch = 6;
|
|
38
|
-
export declare const protectRegexp: RegExp;
|
|
39
|
-
//# sourceMappingURL=select2-const.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select2-const.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,MAAM,CAAC;AAE3B;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;CAAmD,CAAC;AACjF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;CAA0D,CAAC;AACzF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;CAAiE,CAAC;AAEhG,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EAkLvG,CAAC;AAEF,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,aAAa,QAAyE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class Select2HighlightPipe implements PipeTransform {
|
|
5
|
-
private readonly sanitizer;
|
|
6
|
-
transform(value: string | null | undefined, search: string | null | undefined, disabled?: boolean): SafeHtml | string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Select2HighlightPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<Select2HighlightPipe, "highlightText", true>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=select2-highlight.pipe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select2-highlight.pipe.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-highlight.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAU,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAgB,QAAQ,EAAE,MAAM,2BAA2B,CAAC;;AAInE,qBAIa,oBAAqB,YAAW,aAAa;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAElD,SAAS,CACL,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,QAAQ,GAAE,OAAe,GAC1B,QAAQ,GAAG,MAAM;yCAPX,oBAAoB;uCAApB,oBAAoB;CAkBhC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class Select2Hint {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<Select2Hint, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Select2Hint, "select2-hint, ng-select2-hint", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=select2-hint.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select2-hint.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-hint.component.ts"],"names":[],"mappings":";AAEA,qBACa,WAAW;yCAAX,WAAW;2CAAX,WAAW;CAAG"}
|