ng-select2-component 16.0.0 → 17.1.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/AUTHORS.md +8 -8
- package/CHANGELOG.md +246 -150
- package/README.md +135 -121
- package/fesm2022/ng-select2-component.mjs +601 -597
- package/fesm2022/ng-select2-component.mjs.map +1 -1
- package/lib/select2-hint.component.d.ts +1 -1
- package/lib/select2-hint.component.d.ts.map +1 -1
- package/lib/select2-interfaces.d.ts +10 -6
- package/lib/select2-interfaces.d.ts.map +1 -1
- package/lib/select2-label.component.d.ts +1 -1
- package/lib/select2-label.component.d.ts.map +1 -1
- package/lib/select2-utils.d.ts +12 -8
- package/lib/select2-utils.d.ts.map +1 -1
- package/lib/select2.component.d.ts +128 -122
- package/lib/select2.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -4
- package/public_api.d.ts.map +1 -1
- package/lib/select2.module.d.ts +0 -14
- package/lib/select2.module.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class Select2Hint {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select2Hint, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Select2Hint, "select2-hint", never, {}, {}, never, never,
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Select2Hint, "select2-hint, ng-select2-hint", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=select2-hint.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2-hint.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-hint.component.ts"],"names":[],"mappings":";AAEA,
|
|
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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
1
2
|
import { Select2 } from './select2.component';
|
|
2
3
|
export interface Select2Group {
|
|
3
4
|
/** label of group */
|
|
@@ -31,16 +32,16 @@ export interface Select2Option {
|
|
|
31
32
|
/** hide this option */
|
|
32
33
|
hide?: boolean;
|
|
33
34
|
}
|
|
34
|
-
export type Select2Value = string | number | boolean | object;
|
|
35
|
-
export type Select2UpdateValue = Select2Value | Select2Value[];
|
|
35
|
+
export type Select2Value = string | number | boolean | object | null | undefined;
|
|
36
|
+
export type Select2UpdateValue = Select2Value | Select2Value[] | undefined | null;
|
|
36
37
|
export type Select2Data = (Select2Group | Select2Option)[];
|
|
37
38
|
export interface Select2UpdateEvent<U extends Select2UpdateValue = Select2Value> {
|
|
38
39
|
/** component */
|
|
39
40
|
readonly component: Select2;
|
|
40
41
|
/** current selected value */
|
|
41
|
-
readonly value: U;
|
|
42
|
+
readonly value: U | null;
|
|
42
43
|
/** selected option */
|
|
43
|
-
readonly options: Select2Option[];
|
|
44
|
+
readonly options: Select2Option[] | null;
|
|
44
45
|
}
|
|
45
46
|
export interface Select2AutoCreateEvent<U extends Select2UpdateValue = Select2Value> {
|
|
46
47
|
/** component */
|
|
@@ -48,13 +49,13 @@ export interface Select2AutoCreateEvent<U extends Select2UpdateValue = Select2Va
|
|
|
48
49
|
/** current selected value */
|
|
49
50
|
readonly value: U;
|
|
50
51
|
/** selected option */
|
|
51
|
-
readonly options: Select2Option[];
|
|
52
|
+
readonly options: Select2Option[] | null;
|
|
52
53
|
}
|
|
53
54
|
export interface Select2SearchEvent<U extends Select2UpdateValue = Select2Value> {
|
|
54
55
|
/** component */
|
|
55
56
|
readonly component: Select2;
|
|
56
57
|
/** current selected value */
|
|
57
|
-
readonly value: U;
|
|
58
|
+
readonly value: U | null;
|
|
58
59
|
/** search text */
|
|
59
60
|
readonly search: string;
|
|
60
61
|
/** current data source */
|
|
@@ -84,4 +85,7 @@ export type Select2SelectionOverride = string | ((params: {
|
|
|
84
85
|
size: number;
|
|
85
86
|
options: Select2Option[] | null;
|
|
86
87
|
}) => string);
|
|
88
|
+
export type Select2Template = TemplateRef<any> | {
|
|
89
|
+
[key: string]: TemplateRef<any>;
|
|
90
|
+
} | undefined;
|
|
87
91
|
//# sourceMappingURL=select2-interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2-interfaces.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"select2-interfaces.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,MAAM,WAAW,YAAY;IACzB,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,IAAI,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC1B,aAAa;IACb,KAAK,EAAE,YAAY,CAAC;IACpB,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,UAAU,CAAC,EA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AC;IACxB,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,GAAG,YAAY;IAC3E,gBAAgB;IAChB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,6BAA6B;IAC7B,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,aAAa;IACb,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB;IAChB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,iBAAiB;IACjB,QAAQ,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC;IAC5B,kBAAkB;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC9B;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;CAAE,KAAK,MAAM,CAAC,CAAC;AAExH,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;CAAE,GAAG,SAAS,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class Select2Label {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select2Label, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Select2Label, "select2-label", never, {}, {}, never, never,
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Select2Label, "select2-label, ng-select2-label", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=select2-label.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2-label.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-label.component.ts"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"select2-label.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-label.component.ts"],"names":[],"mappings":";AAEA,qBACa,YAAY;yCAAZ,YAAY;2CAAZ,YAAY;CAAG"}
|
package/lib/select2-utils.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import { Select2Data, Select2Option, Select2UpdateValue, Select2Value } from './select2-interfaces';
|
|
1
|
+
import { Select2Data, Select2Group, Select2Option, Select2UpdateValue, Select2Value } from './select2-interfaces';
|
|
2
2
|
export declare class Select2Utils {
|
|
3
|
-
static getOptionByValue(data: Select2Data, value: Select2Value | null
|
|
4
|
-
static getOptionsByValue(data: Select2Data, value: Select2UpdateValue | null | undefined, multiple: boolean | null | undefined): Select2Option | Select2Option[];
|
|
5
|
-
static getFirstAvailableOption(data: Select2Data):
|
|
6
|
-
static
|
|
7
|
-
static getPreviousOption(filteredData: Select2Data,
|
|
8
|
-
static getNextOption(filteredData: Select2Data,
|
|
3
|
+
static getOptionByValue(data: Select2Data, value: Select2Value): Select2Option | null;
|
|
4
|
+
static getOptionsByValue(data: Select2Data, value: Select2UpdateValue | null | undefined, multiple: boolean | null | undefined): Select2Option | Select2Option[] | null;
|
|
5
|
+
static getFirstAvailableOption(data: Select2Data): Select2Option | null;
|
|
6
|
+
static optionIsNotInFilteredData(filteredData: Select2Data, option: Select2Option | null): boolean;
|
|
7
|
+
static getPreviousOption(filteredData: Select2Data, hoveringOption: Select2Option | null): Select2Option | null;
|
|
8
|
+
static getNextOption(filteredData: Select2Data | null, hoveringOption: Select2Option | null): Select2Option | null;
|
|
9
|
+
static getFirstOption(filteredData: Select2Data): Select2Option | null;
|
|
10
|
+
static getLastOption(filteredData: Select2Data): Select2Option | null;
|
|
11
|
+
static isGroup(element: Select2Group | Select2Option): element is Select2Group;
|
|
12
|
+
static isOption(element: Select2Group | Select2Option): element is Select2Option;
|
|
9
13
|
static getReduceData(data: Select2Data, maxResults?: number): {
|
|
10
14
|
result: Select2Data;
|
|
11
15
|
reduce: boolean;
|
|
12
16
|
};
|
|
13
17
|
static getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): Select2Data;
|
|
14
18
|
static getFilteredSelectedData(data: Select2Data, selectedOptions: Select2Option | Select2Option[] | null): Select2Data;
|
|
15
|
-
static
|
|
19
|
+
static isSearchboxHidden(data: Select2Data, minCountForSearch?: number): boolean;
|
|
16
20
|
static isSelected(options: Select2Option | Select2Option[] | null, option: Select2Option, multiple: boolean | null | undefined): "true" | "false";
|
|
17
21
|
static removeSelection(options: Select2Option | Select2Option[] | null, option: Select2Option): void;
|
|
18
22
|
private static getOptionsCount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2-utils.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"select2-utils.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGlH,qBAAa,YAAY;IACrB,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY;IAkB9D,MAAM,CAAC,iBAAiB,CACpB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,kBAAkB,GAAG,IAAI,GAAG,SA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AC,IAAI,EAAE,WAAW,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO;IAQhF,MAAM,CAAC,UAAU,CACb,OAAO,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,IAAI,EAC/C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS;IAWxC,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa;IAS7F,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAIhC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAYhC,OAAO,CAAC,MAAM,CAAC,cAAc;IAI7B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,aAAa;CAQ/B"}
|
|
@@ -1,154 +1,173 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
2
3
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
3
|
-
import {
|
|
4
|
+
import type { ElementRef, OnDestroy } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ChangeDetectorRef, DoCheck, OnInit, TemplateRef } from '@angular/core';
|
|
4
6
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
|
-
import { Select2AutoCreateEvent, Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2SelectionOverride, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
7
|
+
import { Select2AutoCreateEvent, Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2SelectionOverride, Select2Template, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit {
|
|
9
|
+
export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit, OnDestroy {
|
|
8
10
|
protected _viewportRuler: ViewportRuler;
|
|
9
11
|
private _changeDetectorRef;
|
|
10
12
|
private _parentForm;
|
|
11
13
|
private _parentFormGroup;
|
|
12
14
|
_control: NgControl;
|
|
13
|
-
|
|
14
|
-
/** data of options &
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
placeholder
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
readonly _uid: string;
|
|
16
|
+
/** data of options & option groups */
|
|
17
|
+
readonly data: import("@angular/core").InputSignal<Select2Data>;
|
|
18
|
+
/** minimum characters to start filter search */
|
|
19
|
+
readonly minCharForSearch: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
20
|
+
/** text placeholder */
|
|
21
|
+
readonly displaySearchStatus: import("@angular/core").InputSignal<"default" | "hidden" | "always" | undefined>;
|
|
22
|
+
/** text placeholder */
|
|
23
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
/** in multiple: maximum selection element (0 = no limit) */
|
|
25
|
+
readonly limitSelection: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
26
|
+
/** dropdown position */
|
|
27
|
+
readonly listPosition: import("@angular/core").InputSignal<"above" | "below" | "auto">;
|
|
28
|
+
/** overlay with CDK Angular position */
|
|
29
|
+
readonly overlay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
/** select one or more item */
|
|
31
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
32
|
+
/** drag'n drop list of items in multiple */
|
|
33
|
+
readonly multipleDrag: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
34
|
/** use the material style */
|
|
24
|
-
|
|
25
|
-
/** use the material style */
|
|
26
|
-
styleMode: 'material' | 'noStyle' | 'borderless' | 'default';
|
|
35
|
+
readonly styleMode: import("@angular/core").InputSignal<"default" | "material" | "noStyle" | "borderless">;
|
|
27
36
|
/** message when no result */
|
|
28
|
-
noResultMessage: string
|
|
37
|
+
readonly noResultMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
29
38
|
/** maximum results limit (0 = no limit) */
|
|
30
|
-
maxResults: number
|
|
39
|
+
readonly maxResults: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
31
40
|
/** message when maximum results */
|
|
32
|
-
maxResultsMessage: string
|
|
41
|
+
readonly maxResultsMessage: import("@angular/core").InputSignal<string>;
|
|
33
42
|
/** infinite scroll distance */
|
|
34
|
-
infiniteScrollDistance: number
|
|
43
|
+
readonly infiniteScrollDistance: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
35
44
|
/** infinite scroll distance */
|
|
36
|
-
infiniteScrollThrottle: number
|
|
45
|
+
readonly infiniteScrollThrottle: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
37
46
|
/** infinite scroll activated */
|
|
38
|
-
infiniteScroll: boolean
|
|
47
|
+
readonly infiniteScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
39
48
|
/** auto create if not exist */
|
|
40
|
-
autoCreate: boolean
|
|
49
|
+
readonly autoCreate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
50
|
/** no template for label selection */
|
|
42
|
-
noLabelTemplate: boolean
|
|
51
|
+
readonly noLabelTemplate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
43
52
|
/** use it for change the pattern of the filter search */
|
|
44
|
-
editPattern: (str: string) => string
|
|
53
|
+
readonly editPattern: import("@angular/core").InputSignal<((str: string) => string) | undefined>;
|
|
45
54
|
/** template(s) for formatting */
|
|
46
|
-
templates:
|
|
47
|
-
[key: string]: TemplateRef<any>;
|
|
48
|
-
};
|
|
55
|
+
readonly templates: import("@angular/core").InputSignal<Select2Template>;
|
|
49
56
|
/** template for formatting selected option */
|
|
50
|
-
templateSelection: TemplateRef<any>;
|
|
57
|
+
readonly templateSelection: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
51
58
|
/** the max height of the results container when opening the select */
|
|
52
|
-
resultMaxHeight: string
|
|
59
|
+
readonly resultMaxHeight: import("@angular/core").InputSignal<string>;
|
|
53
60
|
/** Active Search event */
|
|
54
|
-
customSearchEnabled: boolean
|
|
61
|
+
readonly customSearchEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
55
62
|
/** minimal data of show the search field */
|
|
56
|
-
|
|
57
|
-
set minCountForSearch(value: number);
|
|
63
|
+
readonly minCountForSearch: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
58
64
|
/** Unique id of the element. */
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
66
|
+
/** Unique id of label element. */
|
|
67
|
+
readonly idLabel: import("@angular/core").Signal<string>;
|
|
68
|
+
/** Unique id of combo element. */
|
|
69
|
+
readonly idCombo: import("@angular/core").Signal<string>;
|
|
70
|
+
/** Unique id of options element. */
|
|
71
|
+
readonly idOptions: import("@angular/core").Signal<string>;
|
|
72
|
+
/** Unique id of overlay element. */
|
|
73
|
+
readonly idOverlay: import("@angular/core").Signal<string>;
|
|
61
74
|
/** Whether the element is required. */
|
|
62
|
-
required: boolean
|
|
75
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
76
|
/** Whether selected items should be hidden. */
|
|
64
|
-
|
|
65
|
-
set disabled(value: boolean);
|
|
77
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
66
78
|
/** Whether items are hidden when has. */
|
|
67
|
-
hideSelectedItems: boolean
|
|
79
|
+
readonly hideSelectedItems: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
80
|
/** Whether the element is readonly. */
|
|
69
|
-
readonly: boolean
|
|
81
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
70
82
|
/** The input element's value. */
|
|
71
|
-
|
|
72
|
-
set value(value: Select2UpdateValue);
|
|
83
|
+
readonly value: import("@angular/core").InputSignal<Select2UpdateValue>;
|
|
73
84
|
/** Tab index for the select2 element. */
|
|
74
|
-
|
|
75
|
-
set tabIndex(value: number);
|
|
85
|
+
readonly tabIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
76
86
|
/** reset with no selected value */
|
|
77
|
-
resettable: boolean
|
|
87
|
+
readonly resettable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
78
88
|
/** selected value when × is clicked */
|
|
79
|
-
resetSelectedValue: any
|
|
89
|
+
readonly resetSelectedValue: import("@angular/core").InputSignal<any>;
|
|
80
90
|
/** grid: item by line
|
|
81
91
|
* * 0 = no grid
|
|
82
92
|
* * number = item by line (4)
|
|
83
93
|
* * string = minimal size item (100px)
|
|
84
94
|
*/
|
|
85
|
-
grid: string
|
|
95
|
+
readonly grid: import("@angular/core").InputSignal<string>;
|
|
86
96
|
/**
|
|
87
97
|
* Replace selection by a text
|
|
88
98
|
* * if string: `%size%` = total selected options
|
|
89
99
|
* * if function: juste show the string
|
|
90
100
|
*/
|
|
91
|
-
selectionOverride: Select2SelectionOverride
|
|
101
|
+
readonly selectionOverride: import("@angular/core").InputSignal<Select2SelectionOverride | undefined>;
|
|
92
102
|
/** force selection on one line */
|
|
93
|
-
selectionNoWrap: boolean
|
|
103
|
+
readonly selectionNoWrap: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
94
104
|
/** Add an option to select or remove all (if all is selected) */
|
|
95
|
-
showSelectAll: boolean
|
|
105
|
+
readonly showSelectAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
96
106
|
/** Text for remove all options */
|
|
97
|
-
removeAllText: string
|
|
107
|
+
readonly removeAllText: import("@angular/core").InputSignal<string>;
|
|
98
108
|
/** Text for select all options */
|
|
99
|
-
selectAllText: string
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
readonly selectAllText: import("@angular/core").InputSignal<string>;
|
|
110
|
+
/** title attribute applied to the input */
|
|
111
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
112
|
+
/** aria-labelledby attribute applied to the input, to specify en external label */
|
|
113
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
|
|
114
|
+
/** aria-describedby attribute applied to the input */
|
|
115
|
+
readonly ariaDescribedby: import("@angular/core").InputSignal<string | undefined>;
|
|
116
|
+
/** aria-invalid attribute applied to the input, to force error state */
|
|
117
|
+
readonly ariaInvalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
118
|
+
/** description of the reset button when using 'resettable'. Default value : 'Reset' */
|
|
119
|
+
readonly ariaResetButtonDescription: import("@angular/core").InputSignal<string>;
|
|
120
|
+
readonly update: import("@angular/core").OutputEmitterRef<Select2UpdateEvent<Select2UpdateValue>>;
|
|
121
|
+
readonly autoCreateItem: import("@angular/core").OutputEmitterRef<Select2AutoCreateEvent<Select2UpdateValue>>;
|
|
122
|
+
readonly open: import("@angular/core").OutputEmitterRef<Select2>;
|
|
123
|
+
readonly close: import("@angular/core").OutputEmitterRef<Select2>;
|
|
124
|
+
readonly focus: import("@angular/core").OutputEmitterRef<Select2>;
|
|
125
|
+
readonly blur: import("@angular/core").OutputEmitterRef<Select2>;
|
|
126
|
+
readonly search: import("@angular/core").OutputEmitterRef<Select2SearchEvent<Select2UpdateValue>>;
|
|
127
|
+
readonly scroll: import("@angular/core").OutputEmitterRef<Select2ScrollEvent>;
|
|
128
|
+
readonly removeOption: import("@angular/core").OutputEmitterRef<Select2RemoveEvent<Select2UpdateValue>>;
|
|
129
|
+
readonly cdkConnectedOverlay: import("@angular/core").Signal<CdkConnectedOverlay>;
|
|
130
|
+
readonly selection: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
131
|
+
readonly resultContainer: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
132
|
+
readonly results: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
133
|
+
readonly searchInput: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
134
|
+
readonly dropdown: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
135
|
+
get classMaterial(): boolean;
|
|
136
|
+
get classNostyle(): boolean;
|
|
137
|
+
get classBorderless(): boolean;
|
|
138
|
+
get select2above(): boolean;
|
|
139
|
+
selectedOption: Select2Option | Select2Option[] | null;
|
|
110
140
|
isOpen: boolean;
|
|
111
|
-
searchStyle: string;
|
|
141
|
+
searchStyle: string | undefined;
|
|
112
142
|
/** Whether the element is focused or not. */
|
|
113
143
|
focused: boolean;
|
|
114
|
-
filteredData: import("@angular/core").WritableSignal<Select2Data>;
|
|
144
|
+
filteredData: import("@angular/core").WritableSignal<Select2Data | undefined>;
|
|
115
145
|
get select2Options(): Select2Option[];
|
|
116
|
-
get select2Option(): Select2Option;
|
|
146
|
+
get select2Option(): Select2Option | null;
|
|
117
147
|
get searchText(): string;
|
|
118
|
-
set searchText(text: string);
|
|
119
|
-
get
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
get _positions(): ConnectedPosition[];
|
|
129
|
-
maxResultsExceeded: boolean;
|
|
130
|
-
private _minCountForSearch?;
|
|
131
|
-
private cdkConnectedOverlay;
|
|
132
|
-
private selection;
|
|
133
|
-
private resultContainer;
|
|
134
|
-
private results;
|
|
135
|
-
private searchInput;
|
|
136
|
-
private dropdown;
|
|
137
|
-
private hoveringValue;
|
|
148
|
+
protected set searchText(text: string);
|
|
149
|
+
get disabledState(): boolean;
|
|
150
|
+
protected overlayWidth: number | string;
|
|
151
|
+
protected overlayHeight: number | string;
|
|
152
|
+
protected _triggerRect: DOMRect | undefined;
|
|
153
|
+
protected _dropdownRect: DOMRect | undefined;
|
|
154
|
+
protected get _positions(): any;
|
|
155
|
+
protected maxResultsExceeded: boolean | undefined;
|
|
156
|
+
private hoveringOption;
|
|
157
|
+
hoveringOptionId: import("@angular/core").Signal<string | null>;
|
|
138
158
|
private innerSearchText;
|
|
139
|
-
|
|
159
|
+
protected isSearchboxHidden: boolean | undefined;
|
|
140
160
|
private selectionElement;
|
|
141
161
|
private get resultsElement();
|
|
142
162
|
private _stateChanges;
|
|
143
163
|
/** Tab index for the element. */
|
|
144
|
-
|
|
164
|
+
protected get _tabIndex(): number;
|
|
165
|
+
private _data;
|
|
145
166
|
private _disabled;
|
|
146
|
-
|
|
147
|
-
private _id;
|
|
148
|
-
private _uid;
|
|
149
|
-
private _value;
|
|
167
|
+
protected _value: Select2UpdateValue | null;
|
|
150
168
|
private _previousNativeValue;
|
|
151
169
|
private _overlayPosition;
|
|
170
|
+
private toObservable;
|
|
152
171
|
constructor(_viewportRuler: ViewportRuler, _changeDetectorRef: ChangeDetectorRef, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _control: NgControl, tabIndex: string);
|
|
153
172
|
clickDetection(e: MouseEvent): void;
|
|
154
173
|
/** View -> model callback called when select has been touched */
|
|
@@ -158,8 +177,8 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
158
177
|
ngOnInit(): void;
|
|
159
178
|
ngAfterViewInit(): void;
|
|
160
179
|
ngDoCheck(): void;
|
|
180
|
+
ngOnDestroy(): void;
|
|
161
181
|
updateSearchBox(): void;
|
|
162
|
-
hideSearch(): boolean;
|
|
163
182
|
getOptionStyle(option: Select2Option): string;
|
|
164
183
|
mouseenter(option: Select2Option): void;
|
|
165
184
|
click(option: Select2Option): void;
|
|
@@ -177,6 +196,7 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
177
196
|
private testValueChange;
|
|
178
197
|
private updateFilteredData;
|
|
179
198
|
private clickExit;
|
|
199
|
+
private isInSelect;
|
|
180
200
|
private ifParentContainsClass;
|
|
181
201
|
private ifParentContainsId;
|
|
182
202
|
private getParentElementByClass;
|
|
@@ -184,17 +204,16 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
184
204
|
private containClasses;
|
|
185
205
|
private containAlmostOneClasses;
|
|
186
206
|
private clickOnSelect2Element;
|
|
187
|
-
focusin(): void;
|
|
188
|
-
focusout(): void;
|
|
207
|
+
focusin(options?: FocusOptions): void;
|
|
208
|
+
focusout(event: FocusEvent): void;
|
|
189
209
|
select(option: Select2Option | null, emit?: boolean): void;
|
|
190
210
|
private testDiffValue;
|
|
191
211
|
keyDown(event: KeyboardEvent, create?: boolean): void;
|
|
192
212
|
openKey(event: KeyboardEvent, create?: boolean): void;
|
|
193
213
|
searchUpdate(e: Event): void;
|
|
194
|
-
trackBy(_index: number, item: Select2Option): any;
|
|
195
214
|
isSelected(option: Select2Option): "true" | "false";
|
|
196
215
|
isDisabled(option: Select2Option): "true" | "false";
|
|
197
|
-
removeSelection(e: MouseEvent | KeyboardEvent, option: Select2Option): void;
|
|
216
|
+
removeSelection(e: MouseEvent | KeyboardEvent | Event, option: Select2Option): void;
|
|
198
217
|
/**
|
|
199
218
|
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
200
219
|
* @param value
|
|
@@ -223,18 +242,24 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
223
242
|
*/
|
|
224
243
|
setDisabledState(isDisabled: boolean): void;
|
|
225
244
|
onScroll(way: 'up' | 'down'): void;
|
|
245
|
+
drop(event: CdkDragDrop<string[], string[], any>): void;
|
|
226
246
|
_isErrorState(): boolean;
|
|
227
|
-
_selectionOverrideLabel(): string;
|
|
247
|
+
_selectionOverrideLabel(): string | undefined;
|
|
248
|
+
getElementId(elt: Select2Group | Select2Option | null): string | null;
|
|
249
|
+
_getElementPath(elt: Select2Group | Select2Option): number[];
|
|
250
|
+
_toGroup(group: Select2Option | Select2Group): Select2Group;
|
|
251
|
+
_toOption(option: Select2Option | Select2Group): Select2Option;
|
|
252
|
+
private updateEvent;
|
|
228
253
|
private optionsSize;
|
|
229
254
|
private addItem;
|
|
230
255
|
private createAndAdd;
|
|
231
256
|
private moveUp;
|
|
232
257
|
private moveDown;
|
|
258
|
+
private moveStart;
|
|
259
|
+
private moveEnd;
|
|
233
260
|
private updateScrollFromOption;
|
|
234
261
|
private selectByEnter;
|
|
235
262
|
private _testKey;
|
|
236
|
-
private _getKey;
|
|
237
|
-
private _isKey;
|
|
238
263
|
/**
|
|
239
264
|
* Sets the selected option based on a value. If no option can be
|
|
240
265
|
* found with the designated value, the select trigger is cleared.
|
|
@@ -242,30 +267,11 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
242
267
|
private _setSelectionByValue;
|
|
243
268
|
/** Does some manual dirty checking on the native input `value` property. */
|
|
244
269
|
private _dirtyCheckNativeValue;
|
|
245
|
-
private
|
|
270
|
+
private _focusSearchbox;
|
|
246
271
|
private _focus;
|
|
247
272
|
private _isAbobeOverlay;
|
|
273
|
+
protected _updateFocusState(state: boolean): void;
|
|
248
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select2, [null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { attribute: "tabindex"; }]>;
|
|
249
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Select2, "select2", never, { "data": { "alias": "data"; "required": true; }; "minCharForSearch": { "alias": "minCharForSearch"; "required": false; }; "displaySearchStatus": { "alias": "displaySearchStatus"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "limitSelection": { "alias": "limitSelection"; "required": false; }; "listPosition": { "alias": "listPosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "
|
|
250
|
-
static ngAcceptInputType_minCharForSearch: unknown;
|
|
251
|
-
static ngAcceptInputType_limitSelection: unknown;
|
|
252
|
-
static ngAcceptInputType_multiple: unknown;
|
|
253
|
-
static ngAcceptInputType_overlay: unknown;
|
|
254
|
-
static ngAcceptInputType_maxResults: unknown;
|
|
255
|
-
static ngAcceptInputType_infiniteScrollDistance: unknown;
|
|
256
|
-
static ngAcceptInputType_infiniteScrollThrottle: unknown;
|
|
257
|
-
static ngAcceptInputType_infiniteScroll: unknown;
|
|
258
|
-
static ngAcceptInputType_autoCreate: unknown;
|
|
259
|
-
static ngAcceptInputType_noLabelTemplate: unknown;
|
|
260
|
-
static ngAcceptInputType_customSearchEnabled: unknown;
|
|
261
|
-
static ngAcceptInputType_minCountForSearch: unknown;
|
|
262
|
-
static ngAcceptInputType_required: unknown;
|
|
263
|
-
static ngAcceptInputType_disabled: unknown;
|
|
264
|
-
static ngAcceptInputType_hideSelectedItems: unknown;
|
|
265
|
-
static ngAcceptInputType_readonly: unknown;
|
|
266
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
267
|
-
static ngAcceptInputType_resettable: unknown;
|
|
268
|
-
static ngAcceptInputType_selectionNoWrap: unknown;
|
|
269
|
-
static ngAcceptInputType_showSelectAll: unknown;
|
|
275
|
+
static ɵcmp: i0.ɵɵ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; }; "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>;
|
|
270
276
|
}
|
|
271
277
|
//# sourceMappingURL=select2.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select2.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2.component.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"select2.component.d.ts","sourceRoot":"","sources":["../../../projects/ng-select2-component/src/lib/select2.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAgC,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EACH,mBAAmB,EAKtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EACH,aAAa,EAGb,iBAAiB,EAEjB,OAAO,EAGP,MAAM,EAGN,WAAW,EASd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAK7F,OAAO,EACH,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAErB,MAA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CAAC,QAAQ;IAWhB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA2C5B,4EAA4E;IAC5E,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,MAAM;IAmBd,OAAO,CAAC,eAAe;IAOvB,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO;yCApwCjC,OAAO;2CAAP,OAAO;CA6wCnB"}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export * from './lib/select2-interfaces';
|
|
2
1
|
export * from './lib/select2-const';
|
|
3
|
-
export * from './lib/select2.component';
|
|
4
|
-
export * from './lib/select2.component';
|
|
5
2
|
export * from './lib/select2-hint.component';
|
|
3
|
+
export * from './lib/select2-interfaces';
|
|
6
4
|
export * from './lib/select2-label.component';
|
|
7
5
|
export * from './lib/select2-utils';
|
|
8
|
-
export * from './lib/select2.
|
|
6
|
+
export * from './lib/select2.component';
|
|
9
7
|
//# sourceMappingURL=public_api.d.ts.map
|
package/public_api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/ng-select2-component/src/public_api.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/ng-select2-component/src/public_api.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
|