@lucca-front/ng 22.0.4-rc.1 → 22.0.4
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-core-select-api.mjs +2 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-legal-units.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +1 -3
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +14 -12
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +4 -4
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +5 -1
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-picker.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +8 -4
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +1 -1
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +10 -7
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/package.json +4 -4
- package/types/lucca-front-ng-core-select-api.d.ts +9 -1
- package/types/lucca-front-ng-core-select.d.ts +5 -0
- package/types/lucca-front-ng-option.d.ts +8 -8
- package/types/lucca-front-ng-picker.d.ts +2 -2
- package/types/lucca-front-ng-select.d.ts +6 -6
- package/types/lucca-front-ng-simple-select.d.ts +1 -1
|
@@ -67,7 +67,15 @@ declare abstract class ALuCoreSelectApiDirective<TOption, TParams = Record<strin
|
|
|
67
67
|
*/
|
|
68
68
|
protected transformOptions(options: readonly TOption[]): Observable<readonly TOption[]>;
|
|
69
69
|
protected buildParamsFromClue(clue: string): Observable<TParams>;
|
|
70
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Total number of options matching the current params, ignoring pagination. Only the select-all
|
|
72
|
+
* feature of `lu-multi-select` needs it, so it is optional: a directive that has no cheap way to
|
|
73
|
+
* count — or whose select never offers a select-all — simply leaves it undefined.
|
|
74
|
+
*
|
|
75
|
+
* Being a property of this class, it has to be implemented as a field: TypeScript rejects an
|
|
76
|
+
* accessor overriding a property (TS2611).
|
|
77
|
+
*/
|
|
78
|
+
totalCount$: Observable<number> | undefined;
|
|
71
79
|
protected clearLastPageByClue(): void;
|
|
72
80
|
protected getOptionsPage(params: TParams, page: number): Observable<{
|
|
73
81
|
items: TOption[];
|
|
@@ -63,6 +63,11 @@ type CoreSelectAddOptionStrategy = 'never' | 'always' | 'if-empty-clue' | 'if-no
|
|
|
63
63
|
declare const SELECT_ID: InjectionToken<number>;
|
|
64
64
|
declare const SELECT_LABEL: InjectionToken<HTMLLabelElement>;
|
|
65
65
|
declare const SELECT_LABEL_ID: InjectionToken<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Contract behind {@link CORE_SELECT_API_TOTAL_COUNT_PROVIDER}: a directive fulfills it by declaring
|
|
68
|
+
* a `totalCount$`, which the select-all of `lu-multi-select` then reads through the token. Providing
|
|
69
|
+
* a count stays optional — see `ALuCoreSelectApiDirective.totalCount$`.
|
|
70
|
+
*/
|
|
66
71
|
interface CoreSelectApiTotalCountProvider {
|
|
67
72
|
totalCount$: Observable<number>;
|
|
68
73
|
}
|
|
@@ -133,8 +133,8 @@ type LuOptionComparer<T> = (option1: T, option2: T) => boolean;
|
|
|
133
133
|
declare abstract class ALuOptionPicker<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuPickerPanel<T> implements ILuOptionPickerPanel<T> {
|
|
134
134
|
protected _subs: Subscription;
|
|
135
135
|
onSelectValue: Observable<T | T[]>;
|
|
136
|
-
protected _value: T | T[];
|
|
137
|
-
setValue(value: T | T[]): void;
|
|
136
|
+
protected _value: T | T[] | undefined;
|
|
137
|
+
setValue(value: T | T[] | undefined): void;
|
|
138
138
|
private __options$;
|
|
139
139
|
protected get _options$(): Observable<O[]>;
|
|
140
140
|
protected set _options$(options$: Observable<O[]>);
|
|
@@ -430,12 +430,12 @@ declare class LuTreeOptionOperatorModule {
|
|
|
430
430
|
interface ILuOptionSelector<T> {
|
|
431
431
|
multiple: boolean;
|
|
432
432
|
onSelectValue: Observable<T | T[]>;
|
|
433
|
-
setValue(value: T | T[]): void;
|
|
433
|
+
setValue(value: T | T[] | undefined): void;
|
|
434
434
|
}
|
|
435
435
|
declare abstract class ALuOptionSelector<T> implements ILuOptionSelector<T> {
|
|
436
436
|
multiple: boolean;
|
|
437
437
|
abstract onSelectValue: Observable<T | T[]>;
|
|
438
|
-
abstract setValue(value: T | T[]): void;
|
|
438
|
+
abstract setValue(value: T | T[] | undefined): void;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
type ILuTreeOptionSelector<T> = ILuOptionSelector<T>;
|
|
@@ -456,7 +456,7 @@ declare class LuOptionSelectAllComponent<T> extends ALuOptionOperator<T> impleme
|
|
|
456
456
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_option.ILuOptionSelectAllLabel, Partial<_lucca_front_ng_option.ILuOptionSelectAllLabel>>;
|
|
457
457
|
selectAll(): void;
|
|
458
458
|
deselectAll(): void;
|
|
459
|
-
setValue(values: T | T[]): void;
|
|
459
|
+
setValue(values: T | T[] | undefined): void;
|
|
460
460
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuOptionSelectAllComponent<any>, never>;
|
|
461
461
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuOptionSelectAllComponent<any>, "lu-option-select-all", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
462
462
|
}
|
|
@@ -491,7 +491,7 @@ declare class LuTreeOptionSelectAllComponent<T> extends ALuTreeOptionOperator<T>
|
|
|
491
491
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_option.ILuOptionSelectAllLabel, Partial<_lucca_front_ng_option.ILuOptionSelectAllLabel>>;
|
|
492
492
|
selectAll(): void;
|
|
493
493
|
deselectAll(): void;
|
|
494
|
-
setValue(values: T | T[]): void;
|
|
494
|
+
setValue(values: T | T[] | undefined): void;
|
|
495
495
|
private flattenTree;
|
|
496
496
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionSelectAllComponent<any>, never>;
|
|
497
497
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionSelectAllComponent<any>, "lu-tree-option-select-all", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -518,7 +518,7 @@ declare abstract class ALuOptionPickerAdvancedComponent<T, O extends ILuOptionIt
|
|
|
518
518
|
onScrollBottom(): void;
|
|
519
519
|
onOpen(): void;
|
|
520
520
|
onClose(): void;
|
|
521
|
-
setValue(value: T | T[]): void;
|
|
521
|
+
setValue(value: T | T[] | undefined): void;
|
|
522
522
|
protected initOperators(): void;
|
|
523
523
|
protected initSelectors(): void;
|
|
524
524
|
ngAfterViewInit(): void;
|
|
@@ -603,7 +603,7 @@ declare abstract class ALuTreeOptionPickerAdvancedComponent<T, O extends ILuTree
|
|
|
603
603
|
onScrollBottom(): void;
|
|
604
604
|
onOpen(): void;
|
|
605
605
|
onClose(): void;
|
|
606
|
-
setValue(value: T | T[]): void;
|
|
606
|
+
setValue(value: T | T[] | undefined): void;
|
|
607
607
|
protected initOperators(): void;
|
|
608
608
|
protected initSelectors(): void;
|
|
609
609
|
ngAfterViewInit(): void;
|
|
@@ -15,12 +15,12 @@ declare interface ILuPickerPanel<T> extends ILuPopoverPanel {
|
|
|
15
15
|
* called to tell the picker what's the current value
|
|
16
16
|
* @param value
|
|
17
17
|
*/
|
|
18
|
-
setValue(value: T | T[]): void;
|
|
18
|
+
setValue(value: T | T[] | undefined): void;
|
|
19
19
|
}
|
|
20
20
|
declare abstract class ALuPickerPanel<T> extends ALuPopoverPanel implements ILuPickerPanel<T> {
|
|
21
21
|
multiple: boolean;
|
|
22
22
|
onSelectValue: Observable<T | T[]>;
|
|
23
|
-
abstract setValue(value: T | T[]): void;
|
|
23
|
+
abstract setValue(value: T | T[] | undefined): void;
|
|
24
24
|
}
|
|
25
25
|
declare interface ILuInputWithPicker<TValue> extends ILuInput, ILuPopoverTrigger<ILuPickerPanel<TValue>> {
|
|
26
26
|
}
|
|
@@ -23,13 +23,13 @@ declare abstract class ALuSelectInput<T, TPicker extends ILuPickerPanel<T> = ILu
|
|
|
23
23
|
/**
|
|
24
24
|
* contriol value accessor interface implementation
|
|
25
25
|
*/
|
|
26
|
-
protected _value: T | T[];
|
|
26
|
+
protected _value: T | T[] | undefined;
|
|
27
27
|
setValue(value: T | T[] | undefined): void;
|
|
28
|
-
get value(): T | T[];
|
|
29
|
-
set value(value: T | T[]);
|
|
30
|
-
writeValue(value: T | T[]): void;
|
|
31
|
-
protected _cvaOnChange: (v: T | T[]) => unknown;
|
|
32
|
-
registerOnChange(fn: (v: T | T[]) => unknown): void;
|
|
28
|
+
get value(): T | T[] | undefined;
|
|
29
|
+
set value(value: T | T[] | undefined);
|
|
30
|
+
writeValue(value: T | T[] | undefined): void;
|
|
31
|
+
protected _cvaOnChange: (v: T | T[] | undefined) => unknown;
|
|
32
|
+
registerOnChange(fn: (v: T | T[] | undefined) => unknown): void;
|
|
33
33
|
protected _onTouched: () => unknown;
|
|
34
34
|
registerOnTouched(fn: () => unknown): void;
|
|
35
35
|
set disabled(d: boolean);
|
|
@@ -50,7 +50,7 @@ declare class LuSelectPanelComponent<T> implements AfterViewInit, CoreSelectPane
|
|
|
50
50
|
readonly optionComparer: _angular_core.WritableSignal<_lucca_front_ng_core_select.LuOptionComparer<T>>;
|
|
51
51
|
readonly optionKey: _angular_core.WritableSignal<(option: T) => unknown>;
|
|
52
52
|
colorPanel: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
53
|
-
initialValue: T | null;
|
|
53
|
+
initialValue: T | null | undefined;
|
|
54
54
|
readonly optionTpl: _angular_core.ModelSignal<_angular_core.Type<unknown> | _angular_core.TemplateRef<_lucca_front_ng_core_select.LuOptionContext<T>>>;
|
|
55
55
|
readonly options: _angular_core.WritableSignal<_CoreSelectPanelElement<T>[]>;
|
|
56
56
|
readonly pointerNavigation: _angular_core.Signal<boolean>;
|