@lucca-front/ng 17.2.0 → 17.2.2
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/button/button.component.d.ts +1 -2
- package/callout/callout-feedback-list/callout-feedback-list.component.d.ts +1 -2
- package/core/public-api.d.ts +1 -1
- package/core/tools/class.d.ts +11 -0
- package/core-select/api/api-v3.directive.d.ts +25 -0
- package/core-select/api/api-v4.directive.d.ts +22 -0
- package/core-select/api/api.directive.d.ts +31 -0
- package/core-select/api/index.d.ts +5 -0
- package/core-select/api/public-api.d.ts +3 -0
- package/core-select/input/select-input.component.d.ts +3 -3
- package/core-select/option/option.component.d.ts +1 -0
- package/esm2022/button/button.component.mjs +7 -8
- package/esm2022/callout/callout-feedback-list/callout-feedback-list.component.mjs +6 -7
- package/esm2022/core/public-api.mjs +2 -2
- package/esm2022/core/tools/class.mjs +75 -0
- package/esm2022/core-select/api/api-v3.directive.mjs +62 -0
- package/esm2022/core-select/api/api-v4.directive.mjs +56 -0
- package/esm2022/core-select/api/api.directive.mjs +46 -0
- package/esm2022/core-select/api/lucca-front-ng-core-select-api.mjs +5 -0
- package/esm2022/core-select/api/public-api.mjs +4 -0
- package/esm2022/core-select/input/select-input.component.mjs +13 -12
- package/esm2022/core-select/option/option.component.mjs +5 -4
- package/esm2022/empty-state/empty-state-page/empty-state-page.component.mjs +3 -3
- package/esm2022/empty-state/empty-state-section/empty-state-section.component.mjs +3 -3
- package/esm2022/establishment/select/establishment-select.token.mjs +4 -0
- package/esm2022/establishment/select/input/establishment-select-input.component.mjs +13 -16
- package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +9 -10
- package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +9 -10
- package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +9 -10
- package/esm2022/form-field/form-field.component.mjs +11 -10
- package/esm2022/icon/icon.component.mjs +3 -3
- package/esm2022/inline-message/inline-message.component.mjs +7 -8
- package/esm2022/multi-select/displayer/default-displayer.component.mjs +4 -2
- package/esm2022/multi-select/input/panel-ref.factory.mjs +6 -6
- package/esm2022/multi-select/input/select-input.component.mjs +3 -10
- package/esm2022/multi-select/panel/panel.component.mjs +18 -18
- package/esm2022/multi-select/select.model.mjs +2 -2
- package/esm2022/numeric-badge/numeric-badge.component.mjs +7 -8
- package/esm2022/option/item/option-item.component.mjs +3 -3
- package/esm2022/option/item/tree-option-item.component.mjs +3 -3
- package/esm2022/simple-select/api/api-v3.directive.mjs +6 -62
- package/esm2022/simple-select/api/api-v4.directive.mjs +6 -56
- package/esm2022/simple-select/api/api.directive.mjs +6 -40
- package/esm2022/simple-select/input/panel-ref.factory.mjs +7 -7
- package/esm2022/simple-select/input/select-input.component.mjs +2 -9
- package/esm2022/simple-select/panel/option-selected.pipe.mjs +17 -0
- package/esm2022/simple-select/panel/panel.component.mjs +21 -20
- package/esm2022/simple-select/select.model.mjs +2 -2
- package/establishment/select/establishment-select.token.d.ts +4 -0
- package/establishment/select/input/establishment-select-input.component.d.ts +2 -2
- package/establishment/select/legal-unit-selector/legal-unit-selector.directive.d.ts +2 -2
- package/establishment/select/searcher/establishment-searcher.component.d.ts +2 -2
- package/establishment/select/select-all/establishment-select-all.component.d.ts +2 -2
- package/fesm2022/lucca-front-ng-button.mjs +6 -7
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +5 -6
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +162 -0
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select.mjs +16 -14
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +72 -22
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +4 -4
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +32 -39
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +10 -9
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +2 -2
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +6 -7
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +26 -31
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +6 -7
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +4 -4
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select-api.mjs +13 -146
- package/fesm2022/lucca-front-ng-simple-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +40 -32
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/form-field/form-field.component.d.ts +1 -2
- package/inline-message/inline-message.component.d.ts +1 -2
- package/multi-select/input/panel-ref.factory.d.ts +2 -2
- package/multi-select/panel/panel.component.d.ts +5 -5
- package/multi-select/select.model.d.ts +3 -12
- package/numeric-badge/numeric-badge.component.d.ts +1 -2
- package/package.json +26 -20
- package/simple-select/api/api-v3.directive.d.ts +5 -25
- package/simple-select/api/api-v4.directive.d.ts +5 -22
- package/simple-select/api/api.directive.d.ts +5 -32
- package/simple-select/input/panel-ref.factory.d.ts +2 -2
- package/simple-select/panel/option-selected.pipe.d.ts +7 -0
- package/simple-select/panel/panel.component.d.ts +5 -5
- package/simple-select/select.model.d.ts +3 -12
- package/src/definitions/option/_option-item.scss +1 -0
- package/core/tools/ng-clazz.directive.d.ts +0 -9
- package/esm2022/core/tools/ng-clazz.directive.mjs +0 -26
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { InjectionToken
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ILuMultiSelectPanelData<T> {
|
|
5
|
-
options$: Observable<T[]>;
|
|
6
|
-
loading$: Observable<boolean>;
|
|
7
|
-
optionComparer: (option1: T, option2: T) => boolean;
|
|
8
|
-
initialValue: T[] | undefined;
|
|
9
|
-
optionTpl: TemplateRef<LuOptionContext<T>> | Type<unknown>;
|
|
10
|
-
grouping?: LuOptionGroupDirective<T, T[], unknown>;
|
|
11
|
-
}
|
|
12
|
-
export declare const MULTI_SELECT_PANEL_DATA: InjectionToken<ILuMultiSelectPanelData<unknown>>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { LuMultiSelectInputComponent } from './input';
|
|
3
|
+
export declare const MULTI_SELECT_INPUT: InjectionToken<LuMultiSelectInputComponent<unknown>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Palette } from '@lucca-front/ng/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@lucca-front/ng/core";
|
|
5
4
|
export declare class NumericBadgeComponent implements OnChanges {
|
|
6
5
|
#private;
|
|
7
6
|
/**
|
|
@@ -18,6 +17,6 @@ export declare class NumericBadgeComponent implements OnChanges {
|
|
|
18
17
|
palette: Palette;
|
|
19
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericBadgeComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericBadgeComponent, "lu-numeric-badge", never, { "value": { "alias": "value"; "required": true; }; "size": { "alias": "size"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; }, {}, never, never, true,
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericBadgeComponent, "lu-numeric-badge", never, { "value": { "alias": "value"; "required": true; }; "size": { "alias": "size"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
21
|
static ngAcceptInputType_value: unknown;
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/ng",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.2",
|
|
4
4
|
"description": "A library of icons made by the team @Lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@angular/common": "^17.0.2",
|
|
27
27
|
"@angular/core": "^17.0.2",
|
|
28
28
|
"@angular/cdk": "^17.0.0",
|
|
29
|
-
"@lucca-front/icons": "v17.2.
|
|
30
|
-
"@lucca-front/scss": "v17.2.
|
|
29
|
+
"@lucca-front/icons": "v17.2.2",
|
|
30
|
+
"@lucca-front/scss": "v17.2.2",
|
|
31
31
|
"@types/dompurify": "^3.0.0",
|
|
32
32
|
"isomorphic-dompurify": "^2.2.0",
|
|
33
33
|
"rxjs": "^7.8.1"
|
|
@@ -53,6 +53,12 @@
|
|
|
53
53
|
"esm": "./esm2022/a11y/lucca-front-ng-a11y.mjs",
|
|
54
54
|
"default": "./fesm2022/lucca-front-ng-a11y.mjs"
|
|
55
55
|
},
|
|
56
|
+
"./callout": {
|
|
57
|
+
"types": "./callout/index.d.ts",
|
|
58
|
+
"esm2022": "./esm2022/callout/lucca-front-ng-callout.mjs",
|
|
59
|
+
"esm": "./esm2022/callout/lucca-front-ng-callout.mjs",
|
|
60
|
+
"default": "./fesm2022/lucca-front-ng-callout.mjs"
|
|
61
|
+
},
|
|
56
62
|
"./animations": {
|
|
57
63
|
"types": "./animations/index.d.ts",
|
|
58
64
|
"esm2022": "./esm2022/animations/lucca-front-ng-animations.mjs",
|
|
@@ -65,23 +71,17 @@
|
|
|
65
71
|
"esm": "./esm2022/button/lucca-front-ng-button.mjs",
|
|
66
72
|
"default": "./fesm2022/lucca-front-ng-button.mjs"
|
|
67
73
|
},
|
|
68
|
-
"./api": {
|
|
69
|
-
"types": "./api/index.d.ts",
|
|
70
|
-
"esm2022": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
71
|
-
"esm": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
72
|
-
"default": "./fesm2022/lucca-front-ng-api.mjs"
|
|
73
|
-
},
|
|
74
74
|
"./core": {
|
|
75
75
|
"types": "./core/index.d.ts",
|
|
76
76
|
"esm2022": "./esm2022/core/lucca-front-ng-core.mjs",
|
|
77
77
|
"esm": "./esm2022/core/lucca-front-ng-core.mjs",
|
|
78
78
|
"default": "./fesm2022/lucca-front-ng-core.mjs"
|
|
79
79
|
},
|
|
80
|
-
"./
|
|
81
|
-
"types": "./
|
|
82
|
-
"esm2022": "./esm2022/
|
|
83
|
-
"esm": "./esm2022/
|
|
84
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
80
|
+
"./api": {
|
|
81
|
+
"types": "./api/index.d.ts",
|
|
82
|
+
"esm2022": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
83
|
+
"esm": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
84
|
+
"default": "./fesm2022/lucca-front-ng-api.mjs"
|
|
85
85
|
},
|
|
86
86
|
"./core-select": {
|
|
87
87
|
"types": "./core-select/index.d.ts",
|
|
@@ -113,6 +113,12 @@
|
|
|
113
113
|
"esm": "./esm2022/empty-state/lucca-front-ng-empty-state.mjs",
|
|
114
114
|
"default": "./fesm2022/lucca-front-ng-empty-state.mjs"
|
|
115
115
|
},
|
|
116
|
+
"./formly": {
|
|
117
|
+
"types": "./formly/index.d.ts",
|
|
118
|
+
"esm2022": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
119
|
+
"esm": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
120
|
+
"default": "./fesm2022/lucca-front-ng-formly.mjs"
|
|
121
|
+
},
|
|
116
122
|
"./establishment": {
|
|
117
123
|
"types": "./establishment/index.d.ts",
|
|
118
124
|
"esm2022": "./esm2022/establishment/lucca-front-ng-establishment.mjs",
|
|
@@ -125,12 +131,6 @@
|
|
|
125
131
|
"esm": "./esm2022/form-field/lucca-front-ng-form-field.mjs",
|
|
126
132
|
"default": "./fesm2022/lucca-front-ng-form-field.mjs"
|
|
127
133
|
},
|
|
128
|
-
"./formly": {
|
|
129
|
-
"types": "./formly/index.d.ts",
|
|
130
|
-
"esm2022": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
131
|
-
"esm": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
132
|
-
"default": "./fesm2022/lucca-front-ng-formly.mjs"
|
|
133
|
-
},
|
|
134
134
|
"./forms": {
|
|
135
135
|
"types": "./forms/index.d.ts",
|
|
136
136
|
"esm2022": "./esm2022/forms/lucca-front-ng-forms.mjs",
|
|
@@ -269,6 +269,12 @@
|
|
|
269
269
|
"esm": "./esm2022/user/lucca-front-ng-user.mjs",
|
|
270
270
|
"default": "./fesm2022/lucca-front-ng-user.mjs"
|
|
271
271
|
},
|
|
272
|
+
"./core-select/api": {
|
|
273
|
+
"types": "./core-select/api/index.d.ts",
|
|
274
|
+
"esm2022": "./esm2022/core-select/api/lucca-front-ng-core-select-api.mjs",
|
|
275
|
+
"esm": "./esm2022/core-select/api/lucca-front-ng-core-select-api.mjs",
|
|
276
|
+
"default": "./fesm2022/lucca-front-ng-core-select-api.mjs"
|
|
277
|
+
},
|
|
272
278
|
"./simple-select/api": {
|
|
273
279
|
"types": "./simple-select/api/index.d.ts",
|
|
274
280
|
"esm2022": "./esm2022/simple-select/api/lucca-front-ng-simple-select-api.mjs",
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare class LuSimpleSelectApiV3Directive<T extends ILuApiItem> extends ALuSimpleSelectApiDirective<T> {
|
|
7
|
-
set apiV3(value: string);
|
|
8
|
-
set fields(value: string);
|
|
9
|
-
set orderBy(value: string | null);
|
|
10
|
-
set filters(value: Record<string, string | number | boolean>);
|
|
11
|
-
protected url$: ReplaySubject<string>;
|
|
12
|
-
protected fields$: BehaviorSubject<string>;
|
|
13
|
-
protected orderBy$: BehaviorSubject<string>;
|
|
14
|
-
protected filters$: BehaviorSubject<Record<string, string | number | boolean>>;
|
|
15
|
-
protected httpClient: HttpClient;
|
|
16
|
-
protected params$: Observable<{
|
|
17
|
-
name?: string;
|
|
18
|
-
orderBy?: string;
|
|
19
|
-
fields: string;
|
|
20
|
-
}>;
|
|
21
|
-
protected getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]>;
|
|
22
|
-
protected optionComparer: (a: T, b: T) => boolean;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectApiV3Directive<any>, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LuSimpleSelectApiV3Directive<any>, "lu-simple-select[apiV3],lu-multi-select[apiV3]", never, { "apiV3": { "alias": "apiV3"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
1
|
+
import { LuCoreSelectApiV3Directive } from '@lucca-front/ng/core-select/api';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use LuCoreSelectApiV3Directive from @lucca-front/ng/core-select/api instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const LuSimpleSelectApiV3Directive: typeof LuCoreSelectApiV3Directive;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare class LuSimpleSelectApiV4Directive<T extends ILuApiItem> extends ALuSimpleSelectApiDirective<T> {
|
|
7
|
-
set apiV4(value: string);
|
|
8
|
-
set sort(value: string | null);
|
|
9
|
-
set filters(value: Record<string, string | number | boolean>);
|
|
10
|
-
protected url$: ReplaySubject<string>;
|
|
11
|
-
protected sort$: BehaviorSubject<string>;
|
|
12
|
-
protected filters$: BehaviorSubject<Record<string, string | number | boolean>>;
|
|
13
|
-
protected httpClient: HttpClient;
|
|
14
|
-
protected params$: Observable<{
|
|
15
|
-
search?: string;
|
|
16
|
-
sort?: string;
|
|
17
|
-
}>;
|
|
18
|
-
protected getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]>;
|
|
19
|
-
protected optionComparer: (a: T, b: T) => boolean;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectApiV4Directive<any>, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LuSimpleSelectApiV4Directive<any>, "lu-simple-select[apiV4],lu-multi-select[apiV4]", never, { "apiV4": { "alias": "apiV4"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
1
|
+
import { LuCoreSelectApiV4Directive } from '@lucca-front/ng/core-select/api';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use LuCoreSelectApiV4Directive from @lucca-front/ng/core-select/api instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const LuSimpleSelectApiV4Directive: typeof LuCoreSelectApiV4Directive;
|
|
@@ -1,32 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const MAGIC_DEBOUNCE_DURATION = 250;
|
|
7
|
-
export declare abstract class ALuSimpleSelectApiDirective<TOption, TParams = Record<string, string | number | boolean>> implements OnDestroy, OnInit {
|
|
8
|
-
protected destroy$: Subject<void>;
|
|
9
|
-
protected pageSize: number;
|
|
10
|
-
protected debounceDuration: number;
|
|
11
|
-
protected select: ALuSelectInputComponent<TOption, unknown>;
|
|
12
|
-
protected page$: Observable<number>;
|
|
13
|
-
protected clue$: Observable<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Create an object that will be used as params for the api call
|
|
16
|
-
*/
|
|
17
|
-
protected abstract params$: Observable<TParams>;
|
|
18
|
-
/**
|
|
19
|
-
* Compare two options to know if they are the same. For example, compare by id or by JSON
|
|
20
|
-
*/
|
|
21
|
-
protected abstract optionComparer: (a: TOption, b: TOption) => boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Return the options for the given params and page
|
|
24
|
-
*/
|
|
25
|
-
protected abstract getOptions(params: TParams, page: number): Observable<TOption[]>;
|
|
26
|
-
protected loading$: BehaviorSubject<boolean>;
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
protected buildOptions(): Observable<TOption[]>;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ALuSimpleSelectApiDirective<any, any>, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ALuSimpleSelectApiDirective<any, any>, never, never, {}, {}, never, never, false, never>;
|
|
32
|
-
}
|
|
1
|
+
import { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use ALuCoreSelectApiDirective from @lucca-front/ng/core-select/api instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const ALuSimpleSelectApiDirective: typeof ALuCoreSelectApiDirective;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Overlay, OverlayConfig, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
2
2
|
import { ElementRef, Injector } from '@angular/core';
|
|
3
3
|
import { LuSelectPanelRef } from '@lucca-front/ng/core-select';
|
|
4
|
-
import {
|
|
4
|
+
import { LuSimpleSelectInputComponent } from './select-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LuSimpleSelectPanelRefFactory {
|
|
7
7
|
protected overlay: Overlay;
|
|
@@ -9,7 +9,7 @@ export declare class LuSimpleSelectPanelRefFactory {
|
|
|
9
9
|
protected positionBuilder: OverlayPositionBuilder;
|
|
10
10
|
protected scrollStrategies: ScrollStrategyOptions;
|
|
11
11
|
protected parentInjector: Injector;
|
|
12
|
-
buildPanelRef<T>(
|
|
12
|
+
buildPanelRef<T>(selectInput: LuSimpleSelectInputComponent<T>, overlayConfigOverride?: OverlayConfig): LuSelectPanelRef<T, T>;
|
|
13
13
|
protected buildOverlayConfig(overlayConfigOverride?: OverlayConfig): OverlayConfig;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuSimpleSelectPanelRefFactory, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<LuSimpleSelectPanelRefFactory>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LuIsOptionSelectedPipe implements PipeTransform {
|
|
4
|
+
transform<T>(option: T, comparer: (option1: T, option2: T) => boolean, selectedOption: T): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuIsOptionSelectedPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LuIsOptionSelectedPipe, "luIsOptionSelected", true>;
|
|
7
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
2
|
import { AfterViewInit, QueryList } from '@angular/core';
|
|
3
3
|
import { LuSelectPanelRef, ɵLuOptionComponent } from '@lucca-front/ng/core-select';
|
|
4
|
-
import {
|
|
4
|
+
import { LuSimpleSelectInputComponent } from '../input/select-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LuSelectPanelComponent<T> implements AfterViewInit {
|
|
7
|
-
|
|
7
|
+
selectInput: LuSimpleSelectInputComponent<T>;
|
|
8
8
|
panelRef: LuSelectPanelRef<T, T>;
|
|
9
9
|
selectId: number;
|
|
10
10
|
intl: import("../select.translate").ILuSimpleSelectLabel;
|
|
11
|
-
options$: import("rxjs").
|
|
11
|
+
options$: import("rxjs").ReplaySubject<T[]>;
|
|
12
|
+
grouping: import("@lucca-front/ng/core-select").LuOptionGroupDirective<T, T, unknown>;
|
|
12
13
|
groups$: import("rxjs").Observable<import("@lucca-front/ng/core-select").LuOptionGroup<T, unknown>[]>;
|
|
13
|
-
loading$: import("rxjs").
|
|
14
|
+
loading$: import("rxjs").BehaviorSubject<boolean>;
|
|
14
15
|
optionComparer: (option1: T, option2: T) => boolean;
|
|
15
|
-
grouping: import("@lucca-front/ng/core-select").LuOptionGroupDirective<T, T, unknown>;
|
|
16
16
|
initialValue: T | undefined;
|
|
17
17
|
optionTpl: import("@angular/core").Type<unknown> | import("@angular/core").TemplateRef<import("@lucca-front/ng/core-select").LuOptionContext<T>>;
|
|
18
18
|
optionsQL: QueryList<ɵLuOptionComponent<T>>;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { InjectionToken
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ILuSimpleSelectPanelData<T> {
|
|
5
|
-
options$: Observable<T[]>;
|
|
6
|
-
loading$: Observable<boolean>;
|
|
7
|
-
optionComparer: (option1: T, option2: T) => boolean;
|
|
8
|
-
initialValue: T | undefined;
|
|
9
|
-
optionTpl: TemplateRef<LuOptionContext<T>> | Type<unknown>;
|
|
10
|
-
grouping?: LuOptionGroupDirective<T, T, unknown>;
|
|
11
|
-
}
|
|
12
|
-
export declare const SIMPLE_SELECT_PANEL_DATA: InjectionToken<ILuSimpleSelectPanelData<unknown>>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { LuSimpleSelectInputComponent } from './input';
|
|
3
|
+
export declare const SIMPLE_SELECT_INPUT: InjectionToken<LuSimpleSelectInputComponent<unknown>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NgClass } from '@angular/common';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NgClazz extends NgClass {
|
|
4
|
-
#private;
|
|
5
|
-
set ngClass(value: NgClass['ngClass']);
|
|
6
|
-
constructor();
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgClazz, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgClazz, "[ngClazz]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Directive, ElementRef, inject, IterableDiffers, KeyValueDiffers, Renderer2 } from '@angular/core';
|
|
2
|
-
import { NgClass } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
// This directive exists to temporarily resolve a conflict in how directives work, see https://github.com/angular/angular/issues/52072
|
|
5
|
-
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
6
|
-
export class NgClazz extends NgClass {
|
|
7
|
-
#cdr = inject(ChangeDetectorRef);
|
|
8
|
-
set ngClass(value) {
|
|
9
|
-
super.ngClass = value;
|
|
10
|
-
setTimeout(() => this.#cdr.markForCheck());
|
|
11
|
-
}
|
|
12
|
-
constructor() {
|
|
13
|
-
super(inject(IterableDiffers), inject(KeyValueDiffers), inject(ElementRef), inject(Renderer2));
|
|
14
|
-
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgClazz, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
16
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: NgClazz, isStandalone: true, selector: "[ngClazz]", usesInheritance: true, ngImport: i0 }); }
|
|
17
|
-
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgClazz, decorators: [{
|
|
19
|
-
type: Directive,
|
|
20
|
-
args: [{
|
|
21
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
22
|
-
selector: '[ngClazz]',
|
|
23
|
-
standalone: true,
|
|
24
|
-
}]
|
|
25
|
-
}], ctorParameters: () => [] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctY2xhenouZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvbmcvY29yZS90b29scy9uZy1jbGF6ei5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLGVBQWUsRUFBRSxlQUFlLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlILE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFFMUMsc0lBQXNJO0FBTXRJLGtFQUFrRTtBQUNsRSxNQUFNLE9BQU8sT0FBUSxTQUFRLE9BQU87SUFDbkMsSUFBSSxHQUFHLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBRWpDLElBQWEsT0FBTyxDQUFDLEtBQXlCO1FBQzdDLEtBQUssQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFDO1FBQ3RCLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDLENBQUM7SUFDNUMsQ0FBQztJQUVEO1FBQ0MsS0FBSyxDQUFDLE1BQU0sQ0FBQyxlQUFlLENBQUMsRUFBRSxNQUFNLENBQUMsZUFBZSxDQUFDLEVBQUUsTUFBTSxDQUFDLFVBQVUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDO0lBQ2hHLENBQUM7OEdBVlcsT0FBTztrR0FBUCxPQUFPOzsyRkFBUCxPQUFPO2tCQU5uQixTQUFTO21CQUFDO29CQUNWLDhEQUE4RDtvQkFDOUQsUUFBUSxFQUFFLFdBQVc7b0JBQ3JCLFVBQVUsRUFBRSxJQUFJO2lCQUNoQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENoYW5nZURldGVjdG9yUmVmLCBEaXJlY3RpdmUsIEVsZW1lbnRSZWYsIGluamVjdCwgSXRlcmFibGVEaWZmZXJzLCBLZXlWYWx1ZURpZmZlcnMsIFJlbmRlcmVyMiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTmdDbGFzcyB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbi8vIFRoaXMgZGlyZWN0aXZlIGV4aXN0cyB0byB0ZW1wb3JhcmlseSByZXNvbHZlIGEgY29uZmxpY3QgaW4gaG93IGRpcmVjdGl2ZXMgd29yaywgc2VlIGh0dHBzOi8vZ2l0aHViLmNvbS9hbmd1bGFyL2FuZ3VsYXIvaXNzdWVzLzUyMDcyXG5ARGlyZWN0aXZlKHtcblx0Ly8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEBhbmd1bGFyLWVzbGludC9kaXJlY3RpdmUtc2VsZWN0b3Jcblx0c2VsZWN0b3I6ICdbbmdDbGF6el0nLFxuXHRzdGFuZGFsb25lOiB0cnVlLFxufSlcbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAYW5ndWxhci1lc2xpbnQvZGlyZWN0aXZlLWNsYXNzLXN1ZmZpeFxuZXhwb3J0IGNsYXNzIE5nQ2xhenogZXh0ZW5kcyBOZ0NsYXNzIHtcblx0I2NkciA9IGluamVjdChDaGFuZ2VEZXRlY3RvclJlZik7XG5cblx0b3ZlcnJpZGUgc2V0IG5nQ2xhc3ModmFsdWU6IE5nQ2xhc3NbJ25nQ2xhc3MnXSkge1xuXHRcdHN1cGVyLm5nQ2xhc3MgPSB2YWx1ZTtcblx0XHRzZXRUaW1lb3V0KCgpID0+IHRoaXMuI2Nkci5tYXJrRm9yQ2hlY2soKSk7XG5cdH1cblxuXHRjb25zdHJ1Y3RvcigpIHtcblx0XHRzdXBlcihpbmplY3QoSXRlcmFibGVEaWZmZXJzKSwgaW5qZWN0KEtleVZhbHVlRGlmZmVycyksIGluamVjdChFbGVtZW50UmVmKSwgaW5qZWN0KFJlbmRlcmVyMikpO1xuXHR9XG59XG4iXX0=
|