ng-select2-component 15.4.0 → 17.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/AUTHORS.md +8 -8
- package/CHANGELOG.md +69 -2
- package/README.md +68 -60
- package/fesm2022/ng-select2-component.mjs +435 -486
- package/fesm2022/ng-select2-component.mjs.map +1 -1
- package/lib/select2-hint.component.d.ts +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-utils.d.ts +9 -9
- package/lib/select2-utils.d.ts.map +1 -1
- package/lib/select2.component.d.ts +111 -120
- package/lib/select2.component.d.ts.map +1 -1
- package/package.json +5 -7
- package/public_api.d.ts +2 -4
- package/public_api.d.ts.map +1 -1
- package/esm2022/lib/select2-const.mjs +0 -48
- package/esm2022/lib/select2-hint.component.mjs +0 -11
- package/esm2022/lib/select2-interfaces.mjs +0 -2
- package/esm2022/lib/select2-label.component.mjs +0 -11
- package/esm2022/lib/select2-utils.mjs +0 -293
- package/esm2022/lib/select2.component.mjs +0 -1170
- package/esm2022/lib/select2.module.mjs +0 -23
- package/esm2022/ng-select2-component.mjs +0 -5
- package/esm2022/public_api.mjs +0 -12
- 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,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,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,q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;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
|
package/lib/select2-utils.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
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): Select2Option;
|
|
6
|
-
static optionIsNotInFilteredData(filteredData: Select2Data, option: Select2Option | null
|
|
7
|
-
static getPreviousOption(filteredData: Select2Data, hoveringOption: Select2Option | null
|
|
8
|
-
static getNextOption(filteredData: Select2Data, hoveringOption: Select2Option | null
|
|
9
|
-
static getFirstOption(filteredData: Select2Data): Select2Option;
|
|
10
|
-
static getLastOption(filteredData: Select2Data): Select2Option;
|
|
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
11
|
static isGroup(element: Select2Group | Select2Option): element is Select2Group;
|
|
12
12
|
static isOption(element: Select2Group | Select2Option): element is Select2Option;
|
|
13
13
|
static getReduceData(data: Select2Data, maxResults?: number): {
|
|
@@ -16,7 +16,7 @@ export declare class Select2Utils {
|
|
|
16
16
|
};
|
|
17
17
|
static getFilteredData(data: Select2Data, searchText: string | null, editPattern?: (str: string) => string): Select2Data;
|
|
18
18
|
static getFilteredSelectedData(data: Select2Data, selectedOptions: Select2Option | Select2Option[] | null): Select2Data;
|
|
19
|
-
static isSearchboxHidden(data: Select2Data, minCountForSearch?: number
|
|
19
|
+
static isSearchboxHidden(data: Select2Data, minCountForSearch?: number): boolean;
|
|
20
20
|
static isSelected(options: Select2Option | Select2Option[] | null, option: Select2Option, multiple: boolean | null | undefined): "true" | "false";
|
|
21
21
|
static removeSelection(options: Select2Option | Select2Option[] | null, option: Select2Option): void;
|
|
22
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,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
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,SAAS,EAC5C,QAAQ,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS;IAgBxC,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,IAAI;IAqBvE,MAAM,CAAC,yBAAy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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,161 +1,170 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
3
|
-
import {
|
|
3
|
+
import type { ElementRef, OnDestroy } from '@angular/core';
|
|
4
|
+
import { AfterViewInit, ChangeDetectorRef, DoCheck, OnInit, TemplateRef } from '@angular/core';
|
|
4
5
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
|
-
import { Select2AutoCreateEvent, Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2SelectionOverride, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
6
|
+
import { Select2AutoCreateEvent, Select2Data, Select2Group, Select2Option, Select2RemoveEvent, Select2ScrollEvent, Select2SearchEvent, Select2SelectionOverride, Select2Template, Select2UpdateEvent, Select2UpdateValue } from './select2-interfaces';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit {
|
|
8
|
+
export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit, OnDestroy {
|
|
8
9
|
protected _viewportRuler: ViewportRuler;
|
|
9
10
|
private _changeDetectorRef;
|
|
10
11
|
private _parentForm;
|
|
11
12
|
private _parentFormGroup;
|
|
12
13
|
_control: NgControl;
|
|
13
14
|
readonly _uid: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
minCharForSearch: number
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
/** data of options & option groups */
|
|
16
|
+
readonly data: import("@angular/core").InputSignal<Select2Data>;
|
|
17
|
+
/** minimum characters to start filter search */
|
|
18
|
+
readonly minCharForSearch: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
19
|
+
/** text placeholder */
|
|
20
|
+
readonly displaySearchStatus: import("@angular/core").InputSignal<"default" | "hidden" | "always" | undefined>;
|
|
21
|
+
/** text placeholder */
|
|
22
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
23
|
+
/** in multiple: maximum selection element (0 = no limit) */
|
|
24
|
+
readonly limitSelection: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
25
|
+
/** dropdown position */
|
|
26
|
+
readonly listPosition: import("@angular/core").InputSignal<"above" | "below" | "auto">;
|
|
27
|
+
/** overlay with CDK Angular position */
|
|
28
|
+
readonly overlay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
29
|
/** use the material style */
|
|
25
|
-
|
|
30
|
+
readonly multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
26
31
|
/** use the material style */
|
|
27
|
-
styleMode:
|
|
32
|
+
readonly styleMode: import("@angular/core").InputSignal<"default" | "material" | "noStyle" | "borderless">;
|
|
28
33
|
/** message when no result */
|
|
29
|
-
noResultMessage: string
|
|
34
|
+
readonly noResultMessage: import("@angular/core").InputSignal<string | undefined>;
|
|
30
35
|
/** maximum results limit (0 = no limit) */
|
|
31
|
-
maxResults: number
|
|
36
|
+
readonly maxResults: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
32
37
|
/** message when maximum results */
|
|
33
|
-
maxResultsMessage: string
|
|
38
|
+
readonly maxResultsMessage: import("@angular/core").InputSignal<string>;
|
|
34
39
|
/** infinite scroll distance */
|
|
35
|
-
infiniteScrollDistance: number
|
|
40
|
+
readonly infiniteScrollDistance: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
36
41
|
/** infinite scroll distance */
|
|
37
|
-
infiniteScrollThrottle: number
|
|
42
|
+
readonly infiniteScrollThrottle: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
38
43
|
/** infinite scroll activated */
|
|
39
|
-
infiniteScroll: boolean
|
|
44
|
+
readonly infiniteScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
45
|
/** auto create if not exist */
|
|
41
|
-
autoCreate: boolean
|
|
46
|
+
readonly autoCreate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
42
47
|
/** no template for label selection */
|
|
43
|
-
noLabelTemplate: boolean
|
|
48
|
+
readonly noLabelTemplate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
44
49
|
/** use it for change the pattern of the filter search */
|
|
45
|
-
editPattern: (str: string) => string
|
|
50
|
+
readonly editPattern: import("@angular/core").InputSignal<((str: string) => string) | undefined>;
|
|
46
51
|
/** template(s) for formatting */
|
|
47
|
-
templates:
|
|
48
|
-
[key: string]: TemplateRef<any>;
|
|
49
|
-
};
|
|
52
|
+
readonly templates: import("@angular/core").InputSignal<Select2Template>;
|
|
50
53
|
/** template for formatting selected option */
|
|
51
|
-
templateSelection: TemplateRef<any>;
|
|
54
|
+
readonly templateSelection: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
52
55
|
/** the max height of the results container when opening the select */
|
|
53
|
-
resultMaxHeight: string
|
|
56
|
+
readonly resultMaxHeight: import("@angular/core").InputSignal<string>;
|
|
54
57
|
/** Active Search event */
|
|
55
|
-
customSearchEnabled: boolean
|
|
58
|
+
readonly customSearchEnabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
56
59
|
/** minimal data of show the search field */
|
|
57
|
-
|
|
58
|
-
set minCountForSearch(value: number);
|
|
60
|
+
readonly minCountForSearch: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
59
61
|
/** Unique id of the element. */
|
|
60
|
-
id: import("@angular/core").InputSignal<string>;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
ariaResetButtonDescription: import("@angular/core").InputSignal<string>;
|
|
62
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
63
|
+
/** Unique id of label element. */
|
|
64
|
+
readonly idLabel: import("@angular/core").Signal<string>;
|
|
65
|
+
/** Unique id of combo element. */
|
|
66
|
+
readonly idCombo: import("@angular/core").Signal<string>;
|
|
67
|
+
/** Unique id of options element. */
|
|
68
|
+
readonly idOptions: import("@angular/core").Signal<string>;
|
|
69
|
+
/** Unique id of overlay element. */
|
|
70
|
+
readonly idOverlay: import("@angular/core").Signal<string>;
|
|
70
71
|
/** Whether the element is required. */
|
|
71
|
-
required: boolean
|
|
72
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
72
73
|
/** Whether selected items should be hidden. */
|
|
73
|
-
|
|
74
|
-
set disabled(value: boolean);
|
|
74
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
75
|
/** Whether items are hidden when has. */
|
|
76
|
-
hideSelectedItems: boolean
|
|
76
|
+
readonly hideSelectedItems: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
77
77
|
/** Whether the element is readonly. */
|
|
78
|
-
readonly: boolean
|
|
78
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
79
|
/** The input element's value. */
|
|
80
|
-
|
|
81
|
-
set value(value: Select2UpdateValue);
|
|
80
|
+
readonly value: import("@angular/core").InputSignal<Select2UpdateValue>;
|
|
82
81
|
/** Tab index for the select2 element. */
|
|
83
|
-
|
|
84
|
-
set tabIndex(value: number);
|
|
82
|
+
readonly tabIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
85
83
|
/** reset with no selected value */
|
|
86
|
-
resettable: boolean
|
|
84
|
+
readonly resettable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
87
85
|
/** selected value when × is clicked */
|
|
88
|
-
resetSelectedValue: any
|
|
86
|
+
readonly resetSelectedValue: import("@angular/core").InputSignal<any>;
|
|
89
87
|
/** grid: item by line
|
|
90
88
|
* * 0 = no grid
|
|
91
89
|
* * number = item by line (4)
|
|
92
90
|
* * string = minimal size item (100px)
|
|
93
91
|
*/
|
|
94
|
-
grid: string
|
|
92
|
+
readonly grid: import("@angular/core").InputSignal<string>;
|
|
95
93
|
/**
|
|
96
94
|
* Replace selection by a text
|
|
97
95
|
* * if string: `%size%` = total selected options
|
|
98
96
|
* * if function: juste show the string
|
|
99
97
|
*/
|
|
100
|
-
selectionOverride: Select2SelectionOverride
|
|
98
|
+
readonly selectionOverride: import("@angular/core").InputSignal<Select2SelectionOverride | undefined>;
|
|
101
99
|
/** force selection on one line */
|
|
102
|
-
selectionNoWrap: boolean
|
|
100
|
+
readonly selectionNoWrap: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
101
|
/** Add an option to select or remove all (if all is selected) */
|
|
104
|
-
showSelectAll: boolean
|
|
102
|
+
readonly showSelectAll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
105
103
|
/** Text for remove all options */
|
|
106
|
-
removeAllText: string
|
|
104
|
+
readonly removeAllText: import("@angular/core").InputSignal<string>;
|
|
107
105
|
/** Text for select all options */
|
|
108
|
-
selectAllText: string
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
readonly selectAllText: import("@angular/core").InputSignal<string>;
|
|
107
|
+
/** title attribute applied to the input */
|
|
108
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
109
|
+
/** aria-labelledby attribute applied to the input, to specify en external label */
|
|
110
|
+
readonly ariaLabelledby: import("@angular/core").InputSignal<string | undefined>;
|
|
111
|
+
/** aria-describedby attribute applied to the input */
|
|
112
|
+
readonly ariaDescribedby: import("@angular/core").InputSignal<string | undefined>;
|
|
113
|
+
/** aria-invalid attribute applied to the input, to force error state */
|
|
114
|
+
readonly ariaInvalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
115
|
+
/** description of the reset button when using 'resettable'. Default value : 'Reset' */
|
|
116
|
+
readonly ariaResetButtonDescription: import("@angular/core").InputSignal<string>;
|
|
117
|
+
readonly update: import("@angular/core").OutputEmitterRef<Select2UpdateEvent<Select2UpdateValue>>;
|
|
118
|
+
readonly autoCreateItem: import("@angular/core").OutputEmitterRef<Select2AutoCreateEvent<Select2UpdateValue>>;
|
|
119
|
+
readonly open: import("@angular/core").OutputEmitterRef<Select2>;
|
|
120
|
+
readonly close: import("@angular/core").OutputEmitterRef<Select2>;
|
|
121
|
+
readonly focus: import("@angular/core").OutputEmitterRef<Select2>;
|
|
122
|
+
readonly blur: import("@angular/core").OutputEmitterRef<Select2>;
|
|
123
|
+
readonly search: import("@angular/core").OutputEmitterRef<Select2SearchEvent<Select2UpdateValue>>;
|
|
124
|
+
readonly scroll: import("@angular/core").OutputEmitterRef<Select2ScrollEvent>;
|
|
125
|
+
readonly removeOption: import("@angular/core").OutputEmitterRef<Select2RemoveEvent<Select2UpdateValue>>;
|
|
126
|
+
readonly cdkConnectedOverlay: import("@angular/core").Signal<CdkConnectedOverlay>;
|
|
127
|
+
readonly selection: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
128
|
+
readonly resultContainer: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
129
|
+
readonly results: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
130
|
+
readonly searchInput: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
131
|
+
readonly dropdown: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
132
|
+
get classMaterial(): boolean;
|
|
133
|
+
get classNostyle(): boolean;
|
|
134
|
+
get classBorderless(): boolean;
|
|
135
|
+
get select2above(): boolean;
|
|
136
|
+
selectedOption: Select2Option | Select2Option[] | null;
|
|
119
137
|
isOpen: boolean;
|
|
120
|
-
searchStyle: string;
|
|
138
|
+
searchStyle: string | undefined;
|
|
121
139
|
/** Whether the element is focused or not. */
|
|
122
140
|
focused: boolean;
|
|
123
|
-
filteredData: import("@angular/core").WritableSignal<Select2Data>;
|
|
141
|
+
filteredData: import("@angular/core").WritableSignal<Select2Data | undefined>;
|
|
124
142
|
get select2Options(): Select2Option[];
|
|
125
|
-
get select2Option(): Select2Option;
|
|
143
|
+
get select2Option(): Select2Option | null;
|
|
126
144
|
get searchText(): string;
|
|
127
|
-
set searchText(text: string);
|
|
128
|
-
get
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
_dropdownRect: DOMRect;
|
|
136
|
-
get _positions(): ConnectedPosition[];
|
|
137
|
-
maxResultsExceeded: boolean;
|
|
138
|
-
private _minCountForSearch?;
|
|
139
|
-
private cdkConnectedOverlay;
|
|
140
|
-
private selection;
|
|
141
|
-
private resultContainer;
|
|
142
|
-
private results;
|
|
143
|
-
private searchInput;
|
|
144
|
-
private dropdown;
|
|
145
|
+
protected set searchText(text: string);
|
|
146
|
+
get disabledState(): boolean;
|
|
147
|
+
protected overlayWidth: number | string;
|
|
148
|
+
protected overlayHeight: number | string;
|
|
149
|
+
protected _triggerRect: DOMRect | undefined;
|
|
150
|
+
protected _dropdownRect: DOMRect | undefined;
|
|
151
|
+
protected get _positions(): any;
|
|
152
|
+
protected maxResultsExceeded: boolean | undefined;
|
|
145
153
|
private hoveringOption;
|
|
146
|
-
hoveringOptionId: import("@angular/core").Signal<string>;
|
|
154
|
+
hoveringOptionId: import("@angular/core").Signal<string | null>;
|
|
147
155
|
private innerSearchText;
|
|
148
|
-
|
|
156
|
+
protected isSearchboxHidden: boolean | undefined;
|
|
149
157
|
private selectionElement;
|
|
150
158
|
private get resultsElement();
|
|
151
159
|
private _stateChanges;
|
|
152
160
|
/** Tab index for the element. */
|
|
153
|
-
|
|
161
|
+
protected get _tabIndex(): number;
|
|
162
|
+
private _data;
|
|
154
163
|
private _disabled;
|
|
155
|
-
|
|
156
|
-
private _value;
|
|
164
|
+
protected _value: Select2UpdateValue | null;
|
|
157
165
|
private _previousNativeValue;
|
|
158
166
|
private _overlayPosition;
|
|
167
|
+
private toObservable;
|
|
159
168
|
constructor(_viewportRuler: ViewportRuler, _changeDetectorRef: ChangeDetectorRef, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _control: NgControl, tabIndex: string);
|
|
160
169
|
clickDetection(e: MouseEvent): void;
|
|
161
170
|
/** View -> model callback called when select has been touched */
|
|
@@ -165,6 +174,7 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
165
174
|
ngOnInit(): void;
|
|
166
175
|
ngAfterViewInit(): void;
|
|
167
176
|
ngDoCheck(): void;
|
|
177
|
+
ngOnDestroy(): void;
|
|
168
178
|
updateSearchBox(): void;
|
|
169
179
|
getOptionStyle(option: Select2Option): string;
|
|
170
180
|
mouseenter(option: Select2Option): void;
|
|
@@ -198,10 +208,9 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
198
208
|
keyDown(event: KeyboardEvent, create?: boolean): void;
|
|
199
209
|
openKey(event: KeyboardEvent, create?: boolean): void;
|
|
200
210
|
searchUpdate(e: Event): void;
|
|
201
|
-
trackBy(_index: number, item: Select2Group | Select2Option): any;
|
|
202
211
|
isSelected(option: Select2Option): "true" | "false";
|
|
203
212
|
isDisabled(option: Select2Option): "true" | "false";
|
|
204
|
-
removeSelection(e: MouseEvent | KeyboardEvent, option: Select2Option): void;
|
|
213
|
+
removeSelection(e: MouseEvent | KeyboardEvent | Event, option: Select2Option): void;
|
|
205
214
|
/**
|
|
206
215
|
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
207
216
|
* @param value
|
|
@@ -231,9 +240,11 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
231
240
|
setDisabledState(isDisabled: boolean): void;
|
|
232
241
|
onScroll(way: 'up' | 'down'): void;
|
|
233
242
|
_isErrorState(): boolean;
|
|
234
|
-
_selectionOverrideLabel(): string;
|
|
243
|
+
_selectionOverrideLabel(): string | undefined;
|
|
235
244
|
getElementId(elt: Select2Group | Select2Option | null): string | null;
|
|
236
245
|
_getElementPath(elt: Select2Group | Select2Option): number[];
|
|
246
|
+
_toGroup(group: Select2Option | Select2Group): Select2Group;
|
|
247
|
+
_toOption(option: Select2Option | Select2Group): Select2Option;
|
|
237
248
|
private optionsSize;
|
|
238
249
|
private addItem;
|
|
239
250
|
private createAndAdd;
|
|
@@ -256,26 +267,6 @@ export declare class Select2 implements ControlValueAccessor, OnInit, DoCheck, A
|
|
|
256
267
|
private _isAbobeOverlay;
|
|
257
268
|
protected _updateFocusState(state: boolean): void;
|
|
258
269
|
static ɵfac: i0.ɵɵFactoryDeclaration<Select2, [null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { attribute: "tabindex"; }]>;
|
|
259
|
-
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; }; "
|
|
260
|
-
static ngAcceptInputType_minCharForSearch: unknown;
|
|
261
|
-
static ngAcceptInputType_limitSelection: unknown;
|
|
262
|
-
static ngAcceptInputType_multiple: unknown;
|
|
263
|
-
static ngAcceptInputType_overlay: unknown;
|
|
264
|
-
static ngAcceptInputType_maxResults: unknown;
|
|
265
|
-
static ngAcceptInputType_infiniteScrollDistance: unknown;
|
|
266
|
-
static ngAcceptInputType_infiniteScrollThrottle: unknown;
|
|
267
|
-
static ngAcceptInputType_infiniteScroll: unknown;
|
|
268
|
-
static ngAcceptInputType_autoCreate: unknown;
|
|
269
|
-
static ngAcceptInputType_noLabelTemplate: unknown;
|
|
270
|
-
static ngAcceptInputType_customSearchEnabled: unknown;
|
|
271
|
-
static ngAcceptInputType_minCountForSearch: unknown;
|
|
272
|
-
static ngAcceptInputType_required: unknown;
|
|
273
|
-
static ngAcceptInputType_disabled: unknown;
|
|
274
|
-
static ngAcceptInputType_hideSelectedItems: unknown;
|
|
275
|
-
static ngAcceptInputType_readonly: unknown;
|
|
276
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
277
|
-
static ngAcceptInputType_resettable: unknown;
|
|
278
|
-
static ngAcceptInputType_selectionNoWrap: unknown;
|
|
279
|
-
static ngAcceptInputType_showSelectAll: unknown;
|
|
270
|
+
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; }; "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>;
|
|
280
271
|
}
|
|
281
272
|
//# 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,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,MAAM,sBAAsB,CAAC;;AAc9B,qBAWa,OAAQ,YAAW,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS;IAwSvF,SAAS,CAAC,cAAc,EAAE,aA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@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-select2-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "An Angular select2 component.",
|
|
5
5
|
"author": "York Yao, Célian Veyssière",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"ngx-infinite-scroll": ">=
|
|
8
|
+
"ngx-infinite-scroll": ">=19.0.0",
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@angular/cdk": ">=
|
|
13
|
-
"@angular/common": ">=
|
|
14
|
-
"@angular/core": ">=
|
|
12
|
+
"@angular/cdk": ">=19.0.0",
|
|
13
|
+
"@angular/common": ">=19.0.0",
|
|
14
|
+
"@angular/core": ">=19.0.0"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
},
|
|
38
38
|
".": {
|
|
39
39
|
"types": "./index.d.ts",
|
|
40
|
-
"esm2022": "./esm2022/ng-select2-component.mjs",
|
|
41
|
-
"esm": "./esm2022/ng-select2-component.mjs",
|
|
42
40
|
"default": "./fesm2022/ng-select2-component.mjs"
|
|
43
41
|
}
|
|
44
42
|
},
|
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"}
|