@lucca-front/ng 22.0.0-rc.2 → 22.0.0-rc.3
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/fesm2022/lucca-front-ng-api.mjs +160 -85
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +7 -6
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +37 -21
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +2 -2
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +229 -135
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +1 -12
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +124 -100
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +37 -25
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +0 -2
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +6 -4
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +34 -31
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +83 -49
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +18 -8
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +10 -7
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +2 -3
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +46 -5
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +0 -1
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +15 -11
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +115 -91
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number-format.mjs +11 -7
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +37 -30
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +238 -123
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +65 -37
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +123 -76
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +13 -13
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +8 -6
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +13 -9
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +93 -59
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/package.json +4 -4
- package/types/lucca-front-ng-api.d.ts +62 -62
- package/types/lucca-front-ng-clear.d.ts +2 -3
- package/types/lucca-front-ng-core-select-api.d.ts +22 -22
- package/types/lucca-front-ng-core-select.d.ts +139 -140
- package/types/lucca-front-ng-core.d.ts +2 -7
- package/types/lucca-front-ng-date.d.ts +26 -28
- package/types/lucca-front-ng-divider.d.ts +1 -1
- package/types/lucca-front-ng-dropdown.d.ts +4 -5
- package/types/lucca-front-ng-establishment.d.ts +19 -18
- package/types/lucca-front-ng-form-field.d.ts +3 -2
- package/types/lucca-front-ng-forms.d.ts +32 -12
- package/types/lucca-front-ng-modal.d.ts +2 -2
- package/types/lucca-front-ng-multi-select.d.ts +37 -36
- package/types/lucca-front-ng-option.d.ts +10 -10
- package/types/lucca-front-ng-popover.d.ts +46 -52
- package/types/lucca-front-ng-popover2.d.ts +11 -13
- package/types/lucca-front-ng-segmented-control.d.ts +4 -2
- package/types/lucca-front-ng-select.d.ts +28 -30
- package/types/lucca-front-ng-simple-select.d.ts +3 -3
- package/types/lucca-front-ng-time.d.ts +1 -1
- package/types/lucca-front-ng-user-popover.d.ts +3 -4
- package/types/lucca-front-ng-user.d.ts +20 -20
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, Provider, OnInit, TemplateRef, PipeTransform, OnChanges, OnDestroy, Type, SimpleChanges, ElementRef, AfterViewInit, Signal, EventEmitter, WritableSignal, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as _lucca_front_ng_filter_pills from '@lucca-front/ng/filter-pills';
|
|
4
4
|
import { FilterPillInputComponent } from '@lucca-front/ng/filter-pills';
|
|
5
5
|
import { OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { PortalContent, LuTranslation } from '@lucca-front/ng/core';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
|
-
import { Observable, Subject,
|
|
10
|
-
import * as _lucca_front_ng_core_select from '@lucca-front/ng/core-select';
|
|
9
|
+
import { BehaviorSubject, Observable, Subject, ReplaySubject } from 'rxjs';
|
|
11
10
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
12
11
|
|
|
12
|
+
interface ILuOptionContext<T> {
|
|
13
|
+
isDisabled$: BehaviorSubject<boolean>;
|
|
14
|
+
option$: BehaviorSubject<T | undefined>;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
declare const LU_OPTION_CONTEXT: InjectionToken<ILuOptionContext<unknown>>;
|
|
18
|
+
declare function provideOptionContext(): Provider;
|
|
19
|
+
|
|
20
|
+
declare class LuSimpleSelectDefaultOptionComponent {
|
|
21
|
+
context: ILuOptionContext<{
|
|
22
|
+
name?: string;
|
|
23
|
+
}>;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuSimpleSelectDefaultOptionComponent, never>;
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LuSimpleSelectDefaultOptionComponent, "lu-simple-select-default-option", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class LuDisabledOptionDirective {
|
|
29
|
+
private context;
|
|
30
|
+
set isDisabled(disabled: boolean | null);
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuDisabledOptionDirective, never>;
|
|
32
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisabledOptionDirective, "[luDisabledOption]", never, { "isDisabled": { "alias": "luDisabledOption"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
13
35
|
interface LuOptionContext<T> {
|
|
14
36
|
$implicit: T;
|
|
15
37
|
}
|
|
16
38
|
interface LuOptionGroupByContext<T, TGroup> {
|
|
17
39
|
$implicit: LuOptionGroup<T, TGroup>;
|
|
18
40
|
}
|
|
19
|
-
interface LuOptionGrouping<TOption, TGroup> {
|
|
20
|
-
selector: (option: TOption) => TGroup;
|
|
21
|
-
content: PortalContent<LuOptionGroupByContext<TOption, TGroup>>;
|
|
22
|
-
}
|
|
23
41
|
interface LuOptionGroup<T, TGroup> {
|
|
24
42
|
key: TGroup;
|
|
25
43
|
options: T[];
|
|
@@ -40,6 +58,62 @@ declare abstract class ɵIsSelectedStrategy<TOption> {
|
|
|
40
58
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ɵIsSelectedStrategy<any>>;
|
|
41
59
|
}
|
|
42
60
|
|
|
61
|
+
interface LuOptionGrouping<TOption, TGroup> {
|
|
62
|
+
selector: (option: TOption) => TGroup;
|
|
63
|
+
content: PortalContent<LuOptionGroupByContext<TOption, TGroup>>;
|
|
64
|
+
}
|
|
65
|
+
declare class LuOptionGroupDirective<TOption, TValue, TGroup> implements LuOptionGrouping<TOption, TGroup>, OnInit {
|
|
66
|
+
select: ALuSelectInputComponent<TOption, TValue>;
|
|
67
|
+
selector: (option: TOption) => TGroup;
|
|
68
|
+
readonly content: TemplateRef<LuOptionGroupByContext<TOption, TGroup>>;
|
|
69
|
+
static ngTemplateContextGuard<TOption, TValue, TGroup>(_dir: LuOptionGroupDirective<TOption, TValue, TGroup>, _ctx: unknown): _ctx is LuOptionGroupByContext<TOption, TGroup>;
|
|
70
|
+
ngOnInit(): void;
|
|
71
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionGroupDirective<any, any, any>, never>;
|
|
72
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionGroupDirective<any, any, any>, "[luOptionGroup]", never, { "select": { "alias": "luOptionGroupSelect"; "required": false; }; "selector": { "alias": "luOptionGroupBy"; "required": false; }; }, {}, never, never, true, never>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Generate groups with a O(n) complexity. Note that the options must be sorted by group.
|
|
77
|
+
*/
|
|
78
|
+
declare function generateGroups<T, TGroup>(options: T[], selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>[];
|
|
79
|
+
declare class LuOptionGroupPipe<T, TGroup> implements PipeTransform {
|
|
80
|
+
transform(options: T[], selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>[];
|
|
81
|
+
transform(options: T, selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>;
|
|
82
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionGroupPipe<any, any>, never>;
|
|
83
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LuOptionGroupPipe<any, any>, "luOptionGroup", true>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare class LuOptionOutletDirective<T> implements OnChanges, OnDestroy {
|
|
87
|
+
luOptionOutlet?: Type<unknown> | TemplateRef<LuOptionContext<T>>;
|
|
88
|
+
luOptionOutletValue: T | undefined;
|
|
89
|
+
luOptionShowNull: boolean;
|
|
90
|
+
private viewContainerRef;
|
|
91
|
+
private injector;
|
|
92
|
+
private embeddedViewRef?;
|
|
93
|
+
private componentRef?;
|
|
94
|
+
private optionContext;
|
|
95
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
96
|
+
ngOnDestroy(): void;
|
|
97
|
+
private clearContainer;
|
|
98
|
+
private createComponent;
|
|
99
|
+
private updateRefValue;
|
|
100
|
+
static ngTemplateContextGuard<T>(_dir: LuOptionOutletDirective<T>, _ctx: unknown): _ctx is void;
|
|
101
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionOutletDirective<any>, never>;
|
|
102
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionOutletDirective<any>, "[luOptionOutlet]", never, { "luOptionOutlet": { "alias": "luOptionOutlet"; "required": false; }; "luOptionOutletValue": { "alias": "luOptionOutletValue"; "required": false; }; "luOptionShowNull": { "alias": "luOptionShowNull"; "required": false; }; }, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface OptionTranslate {
|
|
106
|
+
onlyParent: string;
|
|
107
|
+
onlyChildren: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
type GroupTemplateLocation = 'group-header' | 'option' | 'none';
|
|
111
|
+
/**
|
|
112
|
+
* In order to avoid a blinking when we go from empty clue to a clue
|
|
113
|
+
* We need to delay the change of group displayer location by waiting for the options to be updated.
|
|
114
|
+
*/
|
|
115
|
+
declare function getGroupTemplateLocation(hasGrouping$: Observable<boolean>, clueChange$: Observable<string>, options$: Observable<readonly unknown[]>, searchable?: boolean): Observable<GroupTemplateLocation>;
|
|
116
|
+
|
|
43
117
|
declare class CoreSelectPanelElement<T> implements Highlightable, OnDestroy {
|
|
44
118
|
#private;
|
|
45
119
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
@@ -48,18 +122,53 @@ declare class CoreSelectPanelElement<T> implements Highlightable, OnDestroy {
|
|
|
48
122
|
readonly idAttribute: _angular_core.Signal<string>;
|
|
49
123
|
readonly isSelected: _angular_core.ModelSignal<boolean>;
|
|
50
124
|
readonly option: _angular_core.InputSignal<T>;
|
|
51
|
-
readonly disabledInput: _angular_core.InputSignal<boolean>;
|
|
52
|
-
readonly disabledRef: _angular_core.WritableSignal<boolean>;
|
|
53
125
|
readonly isHighlighted: _angular_core.WritableSignal<boolean>;
|
|
54
126
|
selected: _angular_core.OutputEmitterRef<void>;
|
|
55
|
-
|
|
56
|
-
set disabled(disabled: boolean);
|
|
127
|
+
disabled: boolean;
|
|
57
128
|
constructor();
|
|
58
129
|
ngOnDestroy(): void;
|
|
59
130
|
setActiveStyles(): void;
|
|
60
131
|
setInactiveStyles(): void;
|
|
61
132
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSelectPanelElement<any>, never>;
|
|
62
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSelectPanelElement<any>, "[luCoreSelectPanelElement]", ["luCoreSelectPanelElement"], { "elementId": { "alias": "elementId"; "required": false; "isSignal": true; }; "isSelected": { "alias": "isSelected"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": false; "isSignal": true; }; "
|
|
133
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CoreSelectPanelElement<any>, "[luCoreSelectPanelElement]", ["luCoreSelectPanelElement"], { "elementId": { "alias": "elementId"; "required": false; "isSignal": true; }; "isSelected": { "alias": "isSelected"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "isSelected": "isSelectedChange"; "selected": "selected"; }, never, never, true, never>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class LuOptionComponent<T> implements AfterViewInit, OnDestroy, OnInit {
|
|
137
|
+
protected selectableItem: CoreSelectPanelElement<any>;
|
|
138
|
+
readonly intl: _angular_core.InputSignalWithTransform<OptionTranslate, Partial<OptionTranslate>>;
|
|
139
|
+
hasOptionItemClass: boolean;
|
|
140
|
+
optionTpl: TemplateRef<LuOptionContext<T>> | Type<unknown> | undefined;
|
|
141
|
+
option?: T;
|
|
142
|
+
grouping?: LuOptionGrouping<T, unknown>;
|
|
143
|
+
readonly hasChildren: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
144
|
+
onlyParent: _angular_core.OutputEmitterRef<void>;
|
|
145
|
+
onlyChildren: _angular_core.OutputEmitterRef<void>;
|
|
146
|
+
readonly groupIndex: _angular_core.InputSignal<number>;
|
|
147
|
+
readonly optionIndex: _angular_core.InputSignalWithTransform<string, string | number>;
|
|
148
|
+
scrollIntoViewOptions: ScrollIntoViewOptions;
|
|
149
|
+
readonly groupTemplateLocation: _angular_core.InputSignal<GroupTemplateLocation>;
|
|
150
|
+
private readonly optionContext?;
|
|
151
|
+
private cdr;
|
|
152
|
+
private subscription?;
|
|
153
|
+
get id(): string;
|
|
154
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
155
|
+
protected selectId: number;
|
|
156
|
+
constructor();
|
|
157
|
+
ngOnInit(): void;
|
|
158
|
+
ngOnDestroy(): void;
|
|
159
|
+
ngAfterViewInit(): void;
|
|
160
|
+
selectOption($event: Event): void;
|
|
161
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionComponent<any>, never>;
|
|
162
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LuOptionComponent<any>, "lu-select-option", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "optionTpl": { "alias": "optionTpl"; "required": false; }; "option": { "alias": "option"; "required": false; }; "grouping": { "alias": "grouping"; "required": false; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "groupIndex": { "alias": "groupIndex"; "required": false; "isSignal": true; }; "optionIndex": { "alias": "optionIndex"; "required": true; "isSignal": true; }; "scrollIntoViewOptions": { "alias": "scrollIntoViewOptions"; "required": false; }; "groupTemplateLocation": { "alias": "groupTemplateLocation"; "required": false; "isSignal": true; }; }, { "onlyParent": "onlyParent"; "onlyChildren": "onlyChildren"; }, never, never, true, never>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare class LuOptionDirective<TOption, TValue> {
|
|
166
|
+
private templateRef;
|
|
167
|
+
set select(select: ALuSelectInputComponent<TOption, TValue>);
|
|
168
|
+
constructor(templateRef: TemplateRef<LuOptionContext<TOption>>);
|
|
169
|
+
static ngTemplateContextGuard<TOption, TValue>(_dir: LuOptionDirective<TOption, TValue>, _ctx: unknown): _ctx is LuOptionContext<TOption>;
|
|
170
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionDirective<any, any>, never>;
|
|
171
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionDirective<any, any>, "[luOption]", never, { "select": { "alias": "luOptionSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
63
172
|
}
|
|
64
173
|
|
|
65
174
|
interface CoreSelectKeyManagerOptions<T> {
|
|
@@ -105,13 +214,6 @@ declare abstract class LuSelectPanelRef<TOption, TValue> {
|
|
|
105
214
|
close(): void;
|
|
106
215
|
}
|
|
107
216
|
|
|
108
|
-
type GroupTemplateLocation = 'group-header' | 'option' | 'none';
|
|
109
|
-
/**
|
|
110
|
-
* In order to avoid a blinking when we go from empty clue to a clue
|
|
111
|
-
* We need to delay the change of group displayer location by waiting for the options to be updated.
|
|
112
|
-
*/
|
|
113
|
-
declare function getGroupTemplateLocation(hasGrouping$: Observable<boolean>, clueChange$: Observable<string>, options$: Observable<readonly unknown[]>, searchable?: boolean): Observable<GroupTemplateLocation>;
|
|
114
|
-
|
|
115
217
|
interface CoreSelectPanelInstance<T = unknown> {
|
|
116
218
|
options: WritableSignal<CoreSelectPanelElement<T>[]>;
|
|
117
219
|
}
|
|
@@ -154,17 +256,18 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
154
256
|
readonly panelOpened: _angular_core.OutputEmitterRef<void>;
|
|
155
257
|
readonly highlightedOption: _angular_core.OutputEmitterRef<TOption>;
|
|
156
258
|
private readonly inputElementRef;
|
|
259
|
+
readonly placeholder$: BehaviorSubject<string>;
|
|
157
260
|
readonly disabled$: BehaviorSubject<boolean>;
|
|
158
261
|
readonly filterPillDisabled: Signal<boolean>;
|
|
159
262
|
readonly prefix: _angular_core.InputSignal<PortalContent>;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
263
|
+
set placeholder(value: string);
|
|
264
|
+
set clearable(value: boolean);
|
|
265
|
+
get clearable(): boolean;
|
|
163
266
|
get searchable(): boolean;
|
|
164
267
|
protected readonly computedAddOptionLabel: Signal<PortalContent>;
|
|
165
|
-
|
|
268
|
+
set addOptionLabel(label: PortalContent);
|
|
166
269
|
get addOptionLabel(): PortalContent;
|
|
167
|
-
|
|
270
|
+
set addOptionStrategy(strategy: CoreSelectAddOptionStrategy);
|
|
168
271
|
protected get isSelectedClass(): boolean;
|
|
169
272
|
protected get isSearchFilledClass(): boolean;
|
|
170
273
|
protected abstract hasValue(): boolean;
|
|
@@ -172,21 +275,16 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
172
275
|
readonly isPanelOpen$: BehaviorSubject<boolean>;
|
|
173
276
|
readonly activeDescendant$: BehaviorSubject<string>;
|
|
174
277
|
get ariaControls(): string;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
278
|
+
overlayConfig?: OverlayConfig;
|
|
279
|
+
set loading(value: boolean);
|
|
280
|
+
set options(options: readonly TOption[]);
|
|
281
|
+
optionComparer: LuOptionComparer<TOption>;
|
|
282
|
+
optionKey: (option: TOption) => unknown;
|
|
180
283
|
readonly noClueIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
181
284
|
readonly inputTabindex: _angular_core.InputSignal<number>;
|
|
182
285
|
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
183
286
|
readonly colorPicker: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
184
287
|
protected get isNoClueIconClass(): boolean;
|
|
185
|
-
readonly options: _angular_core.WritableSignal<TOption[]>;
|
|
186
|
-
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
187
|
-
readonly clearable: _angular_core.WritableSignal<boolean>;
|
|
188
|
-
readonly optionComparer: _angular_core.WritableSignal<LuOptionComparer<TOption>>;
|
|
189
|
-
readonly optionKey: _angular_core.WritableSignal<(option: TOption) => unknown>;
|
|
190
288
|
readonly optionTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<LuOptionContext<TOption>>>;
|
|
191
289
|
readonly valueTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<LuOptionContext<TOption>>>;
|
|
192
290
|
readonly panelHeaderTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<void>>;
|
|
@@ -213,14 +311,15 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
213
311
|
readonly isFilterPillClearable: Signal<boolean>;
|
|
214
312
|
get value(): TValue | null;
|
|
215
313
|
protected set value(value: TValue | null);
|
|
216
|
-
get inputPlaceholder(): string | null
|
|
314
|
+
get inputPlaceholder(): string | null;
|
|
217
315
|
clueChanged(clue: string, skipPanelOpen?: boolean): void;
|
|
218
316
|
protected _value: TValue | null;
|
|
219
317
|
readonly options$: ReplaySubject<readonly TOption[]>;
|
|
220
|
-
readonly loading$:
|
|
318
|
+
readonly loading$: BehaviorSubject<boolean>;
|
|
221
319
|
clue: string | null;
|
|
222
320
|
lastEmittedClue: string;
|
|
223
321
|
readonly clue$: Observable<string>;
|
|
322
|
+
readonly addOptionStrategy$: BehaviorSubject<CoreSelectAddOptionStrategy>;
|
|
224
323
|
shouldDisplayAddOption$: Observable<boolean>;
|
|
225
324
|
protected onChange?: (value: TValue | null) => void;
|
|
226
325
|
protected onTouched?: () => void;
|
|
@@ -252,7 +351,8 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
252
351
|
onFilterPillOpened(): void;
|
|
253
352
|
onFilterPillClosed(): void;
|
|
254
353
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ALuSelectInputComponent<any, any>, never>;
|
|
255
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ALuSelectInputComponent<any, any>, never, never, { "ignorePresentation": { "alias": "ignorePresentation"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false;
|
|
354
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ALuSelectInputComponent<any, any>, never, never, { "ignorePresentation": { "alias": "ignorePresentation"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "addOptionLabel": { "alias": "addOptionLabel"; "required": false; }; "addOptionStrategy": { "alias": "addOptionStrategy"; "required": false; }; "overlayConfig": { "alias": "overlayConfig"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionComparer": { "alias": "optionComparer"; "required": false; }; "optionKey": { "alias": "optionKey"; "required": false; }; "noClueIcon": { "alias": "noClueIcon"; "required": false; "isSignal": true; }; "inputTabindex": { "alias": "inputTabindex"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "colorPicker": { "alias": "colorPicker"; "required": false; "isSignal": true; }; "optionTpl": { "alias": "optionTpl"; "required": false; "isSignal": true; }; "valueTpl": { "alias": "valueTpl"; "required": false; "isSignal": true; }; "panelHeaderTpl": { "alias": "panelHeaderTpl"; "required": false; "isSignal": true; }; "panelFooterTpl": { "alias": "panelFooterTpl"; "required": false; "isSignal": true; }; }, { "panelClosed": "panelClosed"; "panelOpened": "panelOpened"; "highlightedOption": "highlightedOption"; "optionTpl": "optionTplChange"; "valueTpl": "valueTplChange"; "panelHeaderTpl": "panelHeaderTplChange"; "panelFooterTpl": "panelFooterTplChange"; "clueChange": "clueChange"; "nextPage": "nextPage"; "previousPage": "previousPage"; "addOption": "addOption"; }, never, never, true, never>;
|
|
355
|
+
static ngAcceptInputType_clearable: unknown;
|
|
256
356
|
}
|
|
257
357
|
|
|
258
358
|
declare function provideLuSelectLabelsAndIds(): Provider[];
|
|
@@ -273,11 +373,11 @@ declare class TreeDisplayPipe<T> implements PipeTransform {
|
|
|
273
373
|
|
|
274
374
|
declare class LuDisplayerDirective<TOption, TValue> {
|
|
275
375
|
private templateRef;
|
|
276
|
-
|
|
376
|
+
set select(select: ALuSelectInputComponent<TOption, TValue>);
|
|
277
377
|
constructor(templateRef: TemplateRef<LuOptionContext<TOption>>);
|
|
278
378
|
static ngTemplateContextGuard<TOption, TValue>(_dir: LuDisplayerDirective<TOption, TValue>, _ctx: unknown): _ctx is LuOptionContext<TOption>;
|
|
279
379
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuDisplayerDirective<any, any>, never>;
|
|
280
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisplayerDirective<any, any>, "[luDisplayer]", never, { "select": { "alias": "luDisplayerSelect"; "required": false;
|
|
380
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisplayerDirective<any, any>, "[luDisplayer]", never, { "select": { "alias": "luDisplayerSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
281
381
|
}
|
|
282
382
|
|
|
283
383
|
declare class LuCoreSelectNoClueDirective {
|
|
@@ -286,107 +386,6 @@ declare class LuCoreSelectNoClueDirective {
|
|
|
286
386
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuCoreSelectNoClueDirective, "lu-simple-select[noClue],lu-multi-select[noClue]", never, {}, {}, never, never, true, never>;
|
|
287
387
|
}
|
|
288
388
|
|
|
289
|
-
interface ILuOptionContext<T> {
|
|
290
|
-
isDisabled$: BehaviorSubject<boolean>;
|
|
291
|
-
option$: BehaviorSubject<T | undefined>;
|
|
292
|
-
destroy(): void;
|
|
293
|
-
}
|
|
294
|
-
declare const LU_OPTION_CONTEXT: InjectionToken<ILuOptionContext<unknown>>;
|
|
295
|
-
declare function provideOptionContext(): Provider;
|
|
296
|
-
|
|
297
|
-
declare class LuSimpleSelectDefaultOptionComponent {
|
|
298
|
-
context: ILuOptionContext<{
|
|
299
|
-
name?: string;
|
|
300
|
-
}>;
|
|
301
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuSimpleSelectDefaultOptionComponent, never>;
|
|
302
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LuSimpleSelectDefaultOptionComponent, "lu-simple-select-default-option", never, {}, {}, never, never, true, never>;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
declare class LuDisabledOptionDirective {
|
|
306
|
-
readonly isDisabled: _angular_core.InputSignal<boolean>;
|
|
307
|
-
private context;
|
|
308
|
-
constructor();
|
|
309
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuDisabledOptionDirective, never>;
|
|
310
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisabledOptionDirective, "[luDisabledOption]", never, { "isDisabled": { "alias": "luDisabledOption"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
declare class LuOptionGroupDirective<TOption, TValue, TGroup> {
|
|
314
|
-
readonly select: _angular_core.InputSignal<ALuSelectInputComponent<TOption, TValue>>;
|
|
315
|
-
readonly selector: _angular_core.InputSignal<(option: TOption) => TGroup>;
|
|
316
|
-
readonly content: TemplateRef<LuOptionGroupByContext<TOption, TGroup>>;
|
|
317
|
-
static ngTemplateContextGuard<TOption, TValue, TGroup>(_dir: LuOptionGroupDirective<TOption, TValue, TGroup>, _ctx: unknown): _ctx is LuOptionGroupByContext<TOption, TGroup>;
|
|
318
|
-
constructor();
|
|
319
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionGroupDirective<any, any, any>, never>;
|
|
320
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionGroupDirective<any, any, any>, "[luOptionGroup]", never, { "select": { "alias": "luOptionGroupSelect"; "required": true; "isSignal": true; }; "selector": { "alias": "luOptionGroupBy"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Generate groups with a O(n) complexity. Note that the options must be sorted by group.
|
|
325
|
-
*/
|
|
326
|
-
declare function generateGroups<T, TGroup>(options: T[], selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>[];
|
|
327
|
-
declare class LuOptionGroupPipe<T, TGroup> implements PipeTransform {
|
|
328
|
-
transform(options: T[], selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>[];
|
|
329
|
-
transform(options: T, selector: (option: T) => TGroup): LuOptionGroup<T, TGroup>;
|
|
330
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionGroupPipe<any, any>, never>;
|
|
331
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LuOptionGroupPipe<any, any>, "luOptionGroup", true>;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
declare class LuOptionOutletDirective<T> implements OnDestroy {
|
|
335
|
-
readonly luOptionOutlet: _angular_core.InputSignal<Type<unknown> | TemplateRef<LuOptionContext<T>>>;
|
|
336
|
-
readonly luOptionOutletValue: _angular_core.InputSignal<T>;
|
|
337
|
-
readonly luOptionShowNull: _angular_core.InputSignal<boolean>;
|
|
338
|
-
private viewContainerRef;
|
|
339
|
-
private injector;
|
|
340
|
-
private embeddedViewRef?;
|
|
341
|
-
private componentRef?;
|
|
342
|
-
private optionContext;
|
|
343
|
-
constructor();
|
|
344
|
-
ngOnDestroy(): void;
|
|
345
|
-
private clearContainer;
|
|
346
|
-
static ngTemplateContextGuard<T>(_dir: LuOptionOutletDirective<T>, _ctx: unknown): _ctx is void;
|
|
347
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionOutletDirective<any>, never>;
|
|
348
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionOutletDirective<any>, "[luOptionOutlet]", never, { "luOptionOutlet": { "alias": "luOptionOutlet"; "required": false; "isSignal": true; }; "luOptionOutletValue": { "alias": "luOptionOutletValue"; "required": false; "isSignal": true; }; "luOptionShowNull": { "alias": "luOptionShowNull"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
interface OptionTranslate {
|
|
352
|
-
onlyParent: string;
|
|
353
|
-
onlyChildren: string;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
declare class LuOptionComponent<T> implements OnInit {
|
|
357
|
-
protected selectableItem: CoreSelectPanelElement<any>;
|
|
358
|
-
readonly intl: _angular_core.InputSignalWithTransform<OptionTranslate, Partial<OptionTranslate>>;
|
|
359
|
-
readonly optionTpl: _angular_core.InputSignal<Type<unknown> | TemplateRef<LuOptionContext<T>>>;
|
|
360
|
-
readonly option: _angular_core.InputSignal<T>;
|
|
361
|
-
readonly grouping: _angular_core.InputSignal<LuOptionGrouping<T, unknown>>;
|
|
362
|
-
readonly hasChildren: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
363
|
-
readonly onlyParent: _angular_core.OutputEmitterRef<void>;
|
|
364
|
-
readonly onlyChildren: _angular_core.OutputEmitterRef<void>;
|
|
365
|
-
readonly groupIndex: _angular_core.InputSignal<number>;
|
|
366
|
-
readonly optionIndex: _angular_core.InputSignalWithTransform<string, string | number>;
|
|
367
|
-
readonly scrollIntoViewOptions: _angular_core.InputSignal<ScrollIntoViewOptions>;
|
|
368
|
-
readonly groupTemplateLocation: _angular_core.InputSignal<GroupTemplateLocation>;
|
|
369
|
-
readonly optionContext: _angular_core.Signal<_lucca_front_ng_core_select.ILuOptionContext<unknown>>;
|
|
370
|
-
private cdr;
|
|
371
|
-
get id(): string;
|
|
372
|
-
protected elementRef: ElementRef<HTMLElement>;
|
|
373
|
-
protected selectId: number;
|
|
374
|
-
constructor();
|
|
375
|
-
ngOnInit(): void;
|
|
376
|
-
selectOption($event: Event): void;
|
|
377
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionComponent<any>, never>;
|
|
378
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LuOptionComponent<any>, "lu-select-option", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "optionTpl": { "alias": "optionTpl"; "required": false; "isSignal": true; }; "option": { "alias": "option"; "required": false; "isSignal": true; }; "grouping": { "alias": "grouping"; "required": false; "isSignal": true; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "groupIndex": { "alias": "groupIndex"; "required": false; "isSignal": true; }; "optionIndex": { "alias": "optionIndex"; "required": true; "isSignal": true; }; "scrollIntoViewOptions": { "alias": "scrollIntoViewOptions"; "required": false; "isSignal": true; }; "groupTemplateLocation": { "alias": "groupTemplateLocation"; "required": false; "isSignal": true; }; }, { "onlyParent": "onlyParent"; "onlyChildren": "onlyChildren"; }, never, never, true, never>;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
declare class LuOptionDirective<TOption, TValue> {
|
|
382
|
-
private templateRef;
|
|
383
|
-
readonly select: _angular_core.InputSignal<ALuSelectInputComponent<TOption, TValue>>;
|
|
384
|
-
constructor(templateRef: TemplateRef<LuOptionContext<TOption>>);
|
|
385
|
-
static ngTemplateContextGuard<TOption, TValue>(_dir: LuOptionDirective<TOption, TValue>, _ctx: unknown): _ctx is LuOptionContext<TOption>;
|
|
386
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuOptionDirective<any, any>, never>;
|
|
387
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuOptionDirective<any, any>, "[luOption]", never, { "select": { "alias": "luOptionSelect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
389
|
declare const applySearchDelimiter: (clue: string, delimiter: string) => string;
|
|
391
390
|
|
|
392
391
|
declare class LuIsOptionSelectedPipe<T> implements PipeTransform {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, InjectionToken, TemplateRef, Type, OnDestroy, Signal,
|
|
2
|
+
import { PipeTransform, InjectionToken, TemplateRef, Type, OnDestroy, Signal, EffectCleanupRegisterFn, CreateEffectOptions, EffectRef, InputOptionsWithTransform } from '@angular/core';
|
|
3
3
|
import { UrlTree, ActivatedRoute, Params } from '@angular/router';
|
|
4
4
|
export { DecorativePalette, PrClass as LuClass, Palette } from '@lucca/prisme/core';
|
|
5
5
|
|
|
@@ -236,11 +236,6 @@ type EffectWithDepsInput = ReadonlyArray<Signal<unknown>> | Record<string, Signa
|
|
|
236
236
|
* La plupart du temps, seule la lecture des signaux est intéressante à tracker, pas les actions qui en découlent.
|
|
237
237
|
*/
|
|
238
238
|
declare function ɵeffectWithDeps<const T extends EffectWithDepsInput>(dependencies: T, action: (...values: [...SignalsValue<T>, EffectCleanupRegisterFn]) => unknown, options?: CreateEffectOptions): EffectRef;
|
|
239
|
-
/**
|
|
240
|
-
* Utilitaire pour synchroniser un input signal avec une props via un setter.
|
|
241
|
-
* Évite la répétition des ɵeffectWithDeps + isNotNil.
|
|
242
|
-
*/
|
|
243
|
-
declare function syncInputSignal<T>(signal: ReturnType<typeof input<T>>, setter: (value: T) => void): void;
|
|
244
239
|
|
|
245
240
|
/**
|
|
246
241
|
* @deprecated use `LuTranslation` instead.
|
|
@@ -292,5 +287,5 @@ interface ILuTree<T> {
|
|
|
292
287
|
disabled?: boolean;
|
|
293
288
|
}
|
|
294
289
|
|
|
295
|
-
export { ALuDateAdapter, ALuOnCloseSubscriber, ALuOnOpenSubscriber, ALuOnScrollBottomSubscriber, ELuDateGranularity, IntlParamsPipe, LU_NATIVE_DATE_ADAPTER_OPTIONS, LuNativeDateAdapter, LuStringDateAdapter, LuTypeGuardPipe, PORTAL_CONTEXT, PortalDirective, assertNotNil, defaultBreakpoints, generateId, getIntl, intlInputOptions, isNil, isNilOrEmptyString, isNotNil, isNotNilOrEmptyString, isRouterLinkParam, luDefaultNativeDateAdapterOptions,
|
|
290
|
+
export { ALuDateAdapter, ALuOnCloseSubscriber, ALuOnOpenSubscriber, ALuOnScrollBottomSubscriber, ELuDateGranularity, IntlParamsPipe, LU_NATIVE_DATE_ADAPTER_OPTIONS, LuNativeDateAdapter, LuStringDateAdapter, LuTypeGuardPipe, PORTAL_CONTEXT, PortalDirective, assertNotNil, defaultBreakpoints, generateId, getIntl, intlInputOptions, isNil, isNilOrEmptyString, isNotNil, isNotNilOrEmptyString, isRouterLinkParam, luDefaultNativeDateAdapterOptions, ɵeffectWithDeps };
|
|
296
291
|
export type { At, Breakpoint, EffectWithDepsInput, EnumValue, ILuDateAdapter, ILuGroup, ILuNativeDateAdapterOptions, ILuOnCloseSubscriber, ILuOnOpenSubscriber, ILuOnScrollBottomSubscriber, ILuTranslation, ILuTree, LuDateGranularity, LuTranslation, PortalContent, ResponsiveConfig, ResponsiveProperty, RouterLinkParam };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, OnInit, ChangeDetectorRef, ElementRef, Renderer2, EventEmitter, AfterViewInit, ViewContainerRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { PipeTransform, OnInit, ChangeDetectorRef, ElementRef, Renderer2, EventEmitter, TemplateRef, AfterViewInit, ViewContainerRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ALuDateAdapter, LuDateGranularity, ELuDateGranularity, LuTranslation } from '@lucca-front/ng/core';
|
|
4
4
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
5
|
import { ALuInput } from '@lucca-front/ng/input';
|
|
@@ -89,10 +89,10 @@ declare class LuCalendarInputComponent<D> extends ALuInput<D> implements Control
|
|
|
89
89
|
private _factory;
|
|
90
90
|
private _adapter;
|
|
91
91
|
readonly intl: i0.InputSignalWithTransform<LuCalendarInputLabel, Partial<LuCalendarInputLabel>>;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
min?: D;
|
|
93
|
+
max?: D;
|
|
94
|
+
granularity: LuDateGranularity;
|
|
95
|
+
startOn: D;
|
|
96
96
|
viewGranularity: LuDateGranularity;
|
|
97
97
|
header: ICalendarItem<D>;
|
|
98
98
|
items: ICalendarItem<D>[];
|
|
@@ -124,25 +124,21 @@ declare class LuCalendarInputComponent<D> extends ALuInput<D> implements Control
|
|
|
124
124
|
protected previousDecade(): void;
|
|
125
125
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
126
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuCalendarInputComponent<any>, never>;
|
|
127
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuCalendarInputComponent<any>, "lu-calendar", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false;
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuCalendarInputComponent<any>, "lu-calendar", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "granularity": { "alias": "granularity"; "required": false; }; "startOn": { "alias": "startOn"; "required": false; }; }, {}, never, never, true, never>;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
declare class LuDatePickerComponent<D = Date> extends ALuPickerPanel<D> {
|
|
131
131
|
private _adapter;
|
|
132
132
|
_value: D;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
min?: D;
|
|
134
|
+
max?: D;
|
|
135
|
+
granularity: LuDateGranularity;
|
|
136
|
+
startOn: D;
|
|
137
137
|
close: EventEmitter<void>;
|
|
138
138
|
open: EventEmitter<void>;
|
|
139
139
|
hovered: EventEmitter<boolean>;
|
|
140
140
|
onSelectValue: EventEmitter<D>;
|
|
141
|
-
|
|
142
|
-
protected readonly openOutput: i0.OutputRef<void>;
|
|
143
|
-
protected readonly hoveredOutput: i0.OutputRef<boolean>;
|
|
144
|
-
protected readonly onSelectValueOutput: i0.OutputRef<D>;
|
|
145
|
-
private readonly vcTemplateRef;
|
|
141
|
+
set vcTemplateRef(tr: TemplateRef<unknown>);
|
|
146
142
|
constructor(_adapter: ALuDateAdapter<D>);
|
|
147
143
|
_emitOpenEvent(): void;
|
|
148
144
|
_emitCloseEvent(): void;
|
|
@@ -154,19 +150,19 @@ declare class LuDatePickerComponent<D = Date> extends ALuPickerPanel<D> {
|
|
|
154
150
|
_onEnter(): void;
|
|
155
151
|
_handleKeydown(event: KeyboardEvent): void;
|
|
156
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDatePickerComponent<any>, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuDatePickerComponent<any>, "lu-date-picker", ["LuDatePicker"], { "min": { "alias": "min"; "required": false;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuDatePickerComponent<any>, "lu-date-picker", ["LuDatePicker"], { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "granularity": { "alias": "granularity"; "required": false; }; "startOn": { "alias": "startOn"; "required": false; }; }, { "close": "close"; "open": "open"; "hovered": "hovered"; "onSelectValue": "onSelectValue"; }, never, never, true, never>;
|
|
158
154
|
}
|
|
159
155
|
|
|
160
|
-
declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> implements Validator {
|
|
156
|
+
declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> implements Validator, OnInit {
|
|
161
157
|
private _adapter;
|
|
162
158
|
private _focused;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
readonly placeHolderInput: i0.InputSignal<string>;
|
|
159
|
+
min?: D;
|
|
160
|
+
max?: D;
|
|
161
|
+
granularity: LuDateGranularity;
|
|
167
162
|
set placeholder(p: string);
|
|
168
163
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_date.ILuDateInputLabel, Partial<_lucca_front_ng_date.ILuDateInputLabel>>;
|
|
169
164
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLInputElement>, _renderer: Renderer2, _adapter: ALuDateAdapter<D>);
|
|
165
|
+
ngOnInit(): void;
|
|
170
166
|
protected render(): void;
|
|
171
167
|
onInput(event: any): void;
|
|
172
168
|
private parse;
|
|
@@ -174,7 +170,7 @@ declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> impl
|
|
|
174
170
|
onBlur(): void;
|
|
175
171
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
176
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDateInputDirective<any>, never>;
|
|
177
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDateInputDirective<any>, "input[luDateInput]", never, { "min": { "alias": "min"; "required": false;
|
|
173
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDateInputDirective<any>, "input[luDateInput]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "granularity": { "alias": "granularity"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
178
174
|
}
|
|
179
175
|
|
|
180
176
|
declare class LuDateSelectInputComponent<D> extends ALuSelectInputComponent<D> implements ControlValueAccessor, ILuInputWithPicker<D>, AfterViewInit, Validator {
|
|
@@ -184,17 +180,19 @@ declare class LuDateSelectInputComponent<D> extends ALuSelectInputComponent<D> i
|
|
|
184
180
|
protected _viewContainerRef: ViewContainerRef;
|
|
185
181
|
protected _renderer: Renderer2;
|
|
186
182
|
private _adapter;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
183
|
+
min?: D;
|
|
184
|
+
max?: D;
|
|
185
|
+
granularity: LuDateGranularity;
|
|
186
|
+
set inputPlaceholder(p: string);
|
|
187
|
+
hideClearer: boolean;
|
|
192
188
|
protected _startOn: D;
|
|
189
|
+
set startOn(s: D);
|
|
190
|
+
get startOn(): D;
|
|
193
191
|
get format(): string;
|
|
194
192
|
constructor(_changeDetectorRef: ChangeDetectorRef, _overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, _adapter: ALuDateAdapter<D>);
|
|
195
193
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
196
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDateSelectInputComponent<any>, never>;
|
|
197
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuDateSelectInputComponent<any>, "lu-date-select", never, { "min": { "alias": "min"; "required": false;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuDateSelectInputComponent<any>, "lu-date-select", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "granularity": { "alias": "granularity"; "required": false; }; "inputPlaceholder": { "alias": "placeholder"; "required": false; }; "hideClearer": { "alias": "hideClearer"; "required": false; }; "startOn": { "alias": "startOn"; "required": false; }; }, {}, never, never, true, never>;
|
|
198
196
|
}
|
|
199
197
|
|
|
200
198
|
/**
|
|
@@ -3,7 +3,7 @@ import { OnChanges, ElementRef } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
declare class DividerComponent implements OnChanges {
|
|
5
5
|
#private;
|
|
6
|
-
readonly content:
|
|
6
|
+
readonly content: ElementRef;
|
|
7
7
|
/**
|
|
8
8
|
* Allows rendering the Divider as a native separator
|
|
9
9
|
* (Any text content it may have will no longer be rendered)
|
|
@@ -39,7 +39,7 @@ declare class LuDropdownTriggerDirective<_T> implements OnInit {
|
|
|
39
39
|
#private;
|
|
40
40
|
protected popover2: PopoverDirective;
|
|
41
41
|
/** References the popover instance that the trigger is associated with. */
|
|
42
|
-
|
|
42
|
+
set inputPanel(p: TemplateRef<unknown> | Type<unknown> | ALuPopoverPanel);
|
|
43
43
|
constructor();
|
|
44
44
|
/** how the panel will be aligned with the target, allowed values: top, bottom, left, right
|
|
45
45
|
* @deprecated prefer using customPositions instead
|
|
@@ -55,7 +55,7 @@ declare class LuDropdownTriggerDirective<_T> implements OnInit {
|
|
|
55
55
|
private invertVerticalPos;
|
|
56
56
|
private invertHorizontalPos;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDropdownTriggerDirective<any>, never>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDropdownTriggerDirective<any>, "[luDropdown]", ["LuDropdownTrigger"], { "inputPanel": { "alias": "luDropdown"; "required": false;
|
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDropdownTriggerDirective<any>, "[luDropdown]", ["LuDropdownTrigger"], { "inputPanel": { "alias": "luDropdown"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.PopoverDirective; inputs: { "luPopoverPosition": "luDropdownPosition"; "luPopoverDisabled": "luDropdownDisabled"; "customPositions": "customPositions"; }; outputs: { "luPopoverOpened": "luDropdownOnOpen"; "luPopoverClosed": "luDropdownOnClose"; }; }]>;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -78,15 +78,14 @@ declare abstract class ALuDropdownItem implements ILuDropdownItem {
|
|
|
78
78
|
|
|
79
79
|
declare class LuDropdownItemDirective extends ALuDropdownItem implements OnDestroy {
|
|
80
80
|
private _eltRef;
|
|
81
|
-
|
|
82
|
-
protected readonly onSelectOutput: i0.OutputRef<boolean>;
|
|
81
|
+
onSelect: EventEmitter<boolean>;
|
|
83
82
|
constructor(_eltRef: ElementRef<HTMLElement>);
|
|
84
83
|
onClick(_event: Event): void;
|
|
85
84
|
onEnter(_event: Event): void;
|
|
86
85
|
focus(): void;
|
|
87
86
|
ngOnDestroy(): void;
|
|
88
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDropdownItemDirective, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDropdownItemDirective, "[luDropdownItem]", ["LuDropdownItem"], {}, { "
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDropdownItemDirective, "[luDropdownItem]", ["LuDropdownItem"], {}, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
/**
|