@lucca-front/ng 22.0.0-rc.1 → 22.0.0-rc.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/fesm2022/lucca-front-ng-a11y.mjs +4 -4
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-activity-feed.mjs +18 -18
- package/fesm2022/lucca-front-ng-activity-feed.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +121 -196
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-app-layout.mjs +4 -4
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +7 -7
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +10 -10
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +11 -11
- package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs +9 -9
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +75 -71
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +15 -15
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +14 -15
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-code.mjs +4 -4
- package/fesm2022/lucca-front-ng-code.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-color.mjs +7 -7
- package/fesm2022/lucca-front-ng-color.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +30 -30
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +7 -7
- package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +33 -49
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +21 -15
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +15 -15
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +39 -39
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +212 -306
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +30 -19
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +74 -74
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +138 -162
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +142 -154
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +27 -25
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +77 -46
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +11 -13
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +72 -75
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +35 -35
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-error-page.mjs +8 -8
- package/fesm2022/lucca-front-ng-error-page.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +80 -114
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +10 -10
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +63 -64
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +60 -70
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +10 -10
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +74 -76
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +4 -4
- package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-label.mjs +12 -12
- package/fesm2022/lucca-front-ng-form-label.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form.mjs +5 -5
- package/fesm2022/lucca-front-ng-form.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +59 -58
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +20 -20
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +6 -6
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +93 -91
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +146 -145
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +19 -19
- package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-grid.mjs +23 -23
- package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +16 -16
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +11 -11
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-index-table.mjs +60 -60
- package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +7 -7
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +24 -23
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +12 -12
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +26 -26
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +19 -19
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +8 -8
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +9 -9
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +4 -4
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +32 -36
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +150 -173
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +4 -4
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number-format.mjs +17 -21
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +7 -7
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +12 -12
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +158 -165
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +9 -9
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +12 -11
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +7 -7
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +138 -253
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +50 -78
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-bar.mjs +7 -7
- package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-stepper.mjs +12 -12
- package/fesm2022/lucca-front-ng-progress-stepper.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-read-more.mjs +17 -17
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-resource-card.mjs +21 -21
- package/fesm2022/lucca-front-ng-resource-card.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
- package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +6 -6
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +8 -8
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +16 -16
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control.mjs +13 -13
- package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +88 -135
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
- package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +31 -30
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +54 -50
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +84 -0
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-software-icon.mjs +23 -12
- package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +14 -14
- package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-status-badge.mjs +7 -7
- package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-table-of-content.mjs +7 -7
- package/fesm2022/lucca-front-ng-table-of-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +12 -12
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-text-flow.mjs +3 -3
- package/fesm2022/lucca-front-ng-text-flow.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +75 -76
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-title.mjs +10 -10
- package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-toast.mjs +13 -13
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +187 -130
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +16 -16
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +29 -33
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +133 -167
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +27 -27
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -1
- package/package.json +11 -5
- package/types/lucca-front-ng-api.d.ts +62 -62
- package/types/lucca-front-ng-callout.d.ts +6 -2
- package/types/lucca-front-ng-clear.d.ts +3 -2
- package/types/lucca-front-ng-core-select-api.d.ts +23 -23
- package/types/lucca-front-ng-core-select-department.d.ts +4 -0
- package/types/lucca-front-ng-core-select-user.d.ts +1 -1
- package/types/lucca-front-ng-core-select.d.ts +142 -141
- package/types/lucca-front-ng-core.d.ts +8 -3
- package/types/lucca-front-ng-date.d.ts +28 -26
- package/types/lucca-front-ng-dialog.d.ts +13 -2
- package/types/lucca-front-ng-divider.d.ts +1 -1
- package/types/lucca-front-ng-dropdown.d.ts +5 -4
- package/types/lucca-front-ng-establishment.d.ts +18 -19
- package/types/lucca-front-ng-file-upload.d.ts +4 -3
- package/types/lucca-front-ng-filter-pills.d.ts +4 -4
- package/types/lucca-front-ng-form-field.d.ts +6 -6
- package/types/lucca-front-ng-forms-rich-text-input.d.ts +1 -0
- package/types/lucca-front-ng-forms.d.ts +25 -14
- package/types/lucca-front-ng-input.d.ts +1 -1
- package/types/lucca-front-ng-modal.d.ts +2 -2
- package/types/lucca-front-ng-multi-select.d.ts +37 -38
- package/types/lucca-front-ng-option.d.ts +12 -12
- package/types/lucca-front-ng-popover.d.ts +52 -46
- package/types/lucca-front-ng-popover2.d.ts +13 -11
- package/types/lucca-front-ng-select.d.ts +30 -28
- package/types/lucca-front-ng-simple-select.d.ts +4 -3
- package/types/lucca-front-ng-skeleton.d.ts +5 -1
- package/types/lucca-front-ng-software-icon-wrapper.d.ts +31 -0
- package/types/lucca-front-ng-software-icon.d.ts +10 -4
- package/types/lucca-front-ng-time.d.ts +2 -1
- package/types/lucca-front-ng-tooltip.d.ts +2 -2
- package/types/lucca-front-ng-user-popover.d.ts +4 -3
- package/types/lucca-front-ng-user.d.ts +20 -20
|
@@ -1,43 +1,25 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, OnDestroy, ElementRef, Signal, EventEmitter, TemplateRef, WritableSignal, OnInit, ChangeDetectorRef, Type, Provider, PipeTransform } 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 {
|
|
9
|
+
import { Observable, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
10
|
+
import * as _lucca_front_ng_core_select from '@lucca-front/ng/core-select';
|
|
10
11
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
11
12
|
|
|
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
|
-
|
|
35
13
|
interface LuOptionContext<T> {
|
|
36
14
|
$implicit: T;
|
|
37
15
|
}
|
|
38
16
|
interface LuOptionGroupByContext<T, TGroup> {
|
|
39
17
|
$implicit: LuOptionGroup<T, TGroup>;
|
|
40
18
|
}
|
|
19
|
+
interface LuOptionGrouping<TOption, TGroup> {
|
|
20
|
+
selector: (option: TOption) => TGroup;
|
|
21
|
+
content: PortalContent<LuOptionGroupByContext<TOption, TGroup>>;
|
|
22
|
+
}
|
|
41
23
|
interface LuOptionGroup<T, TGroup> {
|
|
42
24
|
key: TGroup;
|
|
43
25
|
options: T[];
|
|
@@ -58,62 +40,6 @@ declare abstract class ɵIsSelectedStrategy<TOption> {
|
|
|
58
40
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ɵIsSelectedStrategy<any>>;
|
|
59
41
|
}
|
|
60
42
|
|
|
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
|
-
|
|
117
43
|
declare class CoreSelectPanelElement<T> implements Highlightable, OnDestroy {
|
|
118
44
|
#private;
|
|
119
45
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
@@ -122,53 +48,18 @@ declare class CoreSelectPanelElement<T> implements Highlightable, OnDestroy {
|
|
|
122
48
|
readonly idAttribute: _angular_core.Signal<string>;
|
|
123
49
|
readonly isSelected: _angular_core.ModelSignal<boolean>;
|
|
124
50
|
readonly option: _angular_core.InputSignal<T>;
|
|
51
|
+
readonly disabledInput: _angular_core.InputSignal<boolean>;
|
|
52
|
+
readonly disabledRef: _angular_core.WritableSignal<boolean>;
|
|
125
53
|
readonly isHighlighted: _angular_core.WritableSignal<boolean>;
|
|
126
54
|
selected: _angular_core.OutputEmitterRef<void>;
|
|
127
|
-
disabled: boolean;
|
|
55
|
+
get disabled(): boolean;
|
|
56
|
+
set disabled(disabled: boolean);
|
|
128
57
|
constructor();
|
|
129
58
|
ngOnDestroy(): void;
|
|
130
59
|
setActiveStyles(): void;
|
|
131
60
|
setInactiveStyles(): void;
|
|
132
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoreSelectPanelElement<any>, never>;
|
|
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; }; "
|
|
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>;
|
|
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; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "isSelected": "isSelectedChange"; "selected": "selected"; }, never, never, true, never>;
|
|
172
63
|
}
|
|
173
64
|
|
|
174
65
|
interface CoreSelectKeyManagerOptions<T> {
|
|
@@ -194,7 +85,7 @@ declare class LuCoreSelectPanelHeaderDirective {
|
|
|
194
85
|
readonly templateRef: TemplateRef<void>;
|
|
195
86
|
readonly select: _angular_core.InputSignal<ALuSelectInputComponent<unknown, unknown> | ALuSelectInputComponent<unknown, unknown[]>>;
|
|
196
87
|
constructor();
|
|
197
|
-
static ngTemplateContextGuard(_dir: LuCoreSelectPanelHeaderDirective,
|
|
88
|
+
static ngTemplateContextGuard(_dir: LuCoreSelectPanelHeaderDirective, _ctx: unknown): _ctx is void;
|
|
198
89
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuCoreSelectPanelHeaderDirective, never>;
|
|
199
90
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuCoreSelectPanelHeaderDirective, "[luSelectPanelHeader]", never, { "select": { "alias": "luSelectPanelHeader"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
200
91
|
}
|
|
@@ -214,6 +105,13 @@ declare abstract class LuSelectPanelRef<TOption, TValue> {
|
|
|
214
105
|
close(): void;
|
|
215
106
|
}
|
|
216
107
|
|
|
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
|
+
|
|
217
115
|
interface CoreSelectPanelInstance<T = unknown> {
|
|
218
116
|
options: WritableSignal<CoreSelectPanelElement<T>[]>;
|
|
219
117
|
}
|
|
@@ -256,18 +154,17 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
256
154
|
readonly panelOpened: _angular_core.OutputEmitterRef<void>;
|
|
257
155
|
readonly highlightedOption: _angular_core.OutputEmitterRef<TOption>;
|
|
258
156
|
private readonly inputElementRef;
|
|
259
|
-
readonly placeholder$: BehaviorSubject<string>;
|
|
260
157
|
readonly disabled$: BehaviorSubject<boolean>;
|
|
261
158
|
readonly filterPillDisabled: Signal<boolean>;
|
|
262
159
|
readonly prefix: _angular_core.InputSignal<PortalContent>;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
160
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
161
|
+
readonly clearableInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
162
|
+
readonly isClearable: Signal<boolean>;
|
|
266
163
|
get searchable(): boolean;
|
|
267
164
|
protected readonly computedAddOptionLabel: Signal<PortalContent>;
|
|
268
|
-
|
|
165
|
+
readonly addOptionLabelInput: _angular_core.InputSignal<PortalContent>;
|
|
269
166
|
get addOptionLabel(): PortalContent;
|
|
270
|
-
|
|
167
|
+
readonly addOptionStrategy: _angular_core.InputSignal<CoreSelectAddOptionStrategy>;
|
|
271
168
|
protected get isSelectedClass(): boolean;
|
|
272
169
|
protected get isSearchFilledClass(): boolean;
|
|
273
170
|
protected abstract hasValue(): boolean;
|
|
@@ -275,16 +172,21 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
275
172
|
readonly isPanelOpen$: BehaviorSubject<boolean>;
|
|
276
173
|
readonly activeDescendant$: BehaviorSubject<string>;
|
|
277
174
|
get ariaControls(): string;
|
|
278
|
-
overlayConfig
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
175
|
+
readonly overlayConfig: _angular_core.InputSignal<OverlayConfig>;
|
|
176
|
+
readonly loadingInput: _angular_core.InputSignal<boolean>;
|
|
177
|
+
readonly optionsInput: _angular_core.InputSignal<TOption[]>;
|
|
178
|
+
readonly optionComparerInput: _angular_core.InputSignal<LuOptionComparer<TOption>>;
|
|
179
|
+
readonly optionKeyInput: _angular_core.InputSignal<(option: TOption) => unknown>;
|
|
283
180
|
readonly noClueIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
284
181
|
readonly inputTabindex: _angular_core.InputSignal<number>;
|
|
285
182
|
readonly compact: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
286
183
|
readonly colorPicker: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
287
184
|
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>;
|
|
288
190
|
readonly optionTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<LuOptionContext<TOption>>>;
|
|
289
191
|
readonly valueTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<LuOptionContext<TOption>>>;
|
|
290
192
|
readonly panelHeaderTpl: _angular_core.ModelSignal<Type<unknown> | TemplateRef<void>>;
|
|
@@ -311,15 +213,14 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
311
213
|
readonly isFilterPillClearable: Signal<boolean>;
|
|
312
214
|
get value(): TValue | null;
|
|
313
215
|
protected set value(value: TValue | null);
|
|
314
|
-
get inputPlaceholder(): string | null;
|
|
216
|
+
get inputPlaceholder(): string | null | undefined;
|
|
315
217
|
clueChanged(clue: string, skipPanelOpen?: boolean): void;
|
|
316
218
|
protected _value: TValue | null;
|
|
317
219
|
readonly options$: ReplaySubject<readonly TOption[]>;
|
|
318
|
-
readonly loading$:
|
|
220
|
+
readonly loading$: Observable<boolean>;
|
|
319
221
|
clue: string | null;
|
|
320
222
|
lastEmittedClue: string;
|
|
321
223
|
readonly clue$: Observable<string>;
|
|
322
|
-
readonly addOptionStrategy$: BehaviorSubject<CoreSelectAddOptionStrategy>;
|
|
323
224
|
shouldDisplayAddOption$: Observable<boolean>;
|
|
324
225
|
protected onChange?: (value: TValue | null) => void;
|
|
325
226
|
protected onTouched?: () => void;
|
|
@@ -351,8 +252,7 @@ declare abstract class ALuSelectInputComponent<TOption, TValue> implements OnDes
|
|
|
351
252
|
onFilterPillOpened(): void;
|
|
352
253
|
onFilterPillClosed(): void;
|
|
353
254
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ALuSelectInputComponent<any, any>, never>;
|
|
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; }; "
|
|
355
|
-
static ngAcceptInputType_clearable: unknown;
|
|
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; "isSignal": true; }; "clearableInput": { "alias": "clearable"; "required": false; "isSignal": true; }; "addOptionLabelInput": { "alias": "addOptionLabel"; "required": false; "isSignal": true; }; "addOptionStrategy": { "alias": "addOptionStrategy"; "required": false; "isSignal": true; }; "overlayConfig": { "alias": "overlayConfig"; "required": false; "isSignal": true; }; "loadingInput": { "alias": "loading"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "optionComparerInput": { "alias": "optionComparer"; "required": false; "isSignal": true; }; "optionKeyInput": { "alias": "optionKey"; "required": false; "isSignal": true; }; "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>;
|
|
356
256
|
}
|
|
357
257
|
|
|
358
258
|
declare function provideLuSelectLabelsAndIds(): Provider[];
|
|
@@ -373,11 +273,11 @@ declare class TreeDisplayPipe<T> implements PipeTransform {
|
|
|
373
273
|
|
|
374
274
|
declare class LuDisplayerDirective<TOption, TValue> {
|
|
375
275
|
private templateRef;
|
|
376
|
-
|
|
276
|
+
readonly select: _angular_core.InputSignal<ALuSelectInputComponent<TOption, TValue>>;
|
|
377
277
|
constructor(templateRef: TemplateRef<LuOptionContext<TOption>>);
|
|
378
|
-
static ngTemplateContextGuard<TOption, TValue>(_dir: LuDisplayerDirective<TOption, TValue>,
|
|
278
|
+
static ngTemplateContextGuard<TOption, TValue>(_dir: LuDisplayerDirective<TOption, TValue>, _ctx: unknown): _ctx is LuOptionContext<TOption>;
|
|
379
279
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LuDisplayerDirective<any, any>, never>;
|
|
380
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisplayerDirective<any, any>, "[luDisplayer]", never, { "select": { "alias": "luDisplayerSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
280
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuDisplayerDirective<any, any>, "[luDisplayer]", never, { "select": { "alias": "luDisplayerSelect"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
381
281
|
}
|
|
382
282
|
|
|
383
283
|
declare class LuCoreSelectNoClueDirective {
|
|
@@ -386,6 +286,107 @@ declare class LuCoreSelectNoClueDirective {
|
|
|
386
286
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LuCoreSelectNoClueDirective, "lu-simple-select[noClue],lu-multi-select[noClue]", never, {}, {}, never, never, true, never>;
|
|
387
287
|
}
|
|
388
288
|
|
|
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
|
+
|
|
389
390
|
declare const applySearchDelimiter: (clue: string, delimiter: string) => string;
|
|
390
391
|
|
|
391
392
|
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, EffectCleanupRegisterFn, CreateEffectOptions, EffectRef, InputOptionsWithTransform } from '@angular/core';
|
|
2
|
+
import { PipeTransform, InjectionToken, TemplateRef, Type, OnDestroy, Signal, input, 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
|
|
|
@@ -201,7 +201,7 @@ declare class PortalDirective<T extends object = object> implements OnDestroy {
|
|
|
201
201
|
* @see https://github.com/angular/angular/pull/51887
|
|
202
202
|
*/
|
|
203
203
|
private updateEmbeddedViewContext;
|
|
204
|
-
static ngTemplateContextGuard<T extends object>(_dir: PortalDirective<T>,
|
|
204
|
+
static ngTemplateContextGuard<T extends object>(_dir: PortalDirective<T>, _ctx: unknown): _ctx is void;
|
|
205
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective<any>, never>;
|
|
206
206
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective<any>, "[luPortal]", never, { "luPortal": { "alias": "luPortal"; "required": true; "isSignal": true; }; "luPortalContext": { "alias": "luPortalContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
207
207
|
}
|
|
@@ -236,6 +236,11 @@ 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;
|
|
239
244
|
|
|
240
245
|
/**
|
|
241
246
|
* @deprecated use `LuTranslation` instead.
|
|
@@ -287,5 +292,5 @@ interface ILuTree<T> {
|
|
|
287
292
|
disabled?: boolean;
|
|
288
293
|
}
|
|
289
294
|
|
|
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 };
|
|
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, syncInputSignal, ɵeffectWithDeps };
|
|
291
296
|
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,
|
|
2
|
+
import { PipeTransform, OnInit, ChangeDetectorRef, ElementRef, Renderer2, EventEmitter, 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
|
-
min
|
|
93
|
-
max
|
|
94
|
-
granularity:
|
|
95
|
-
startOn: D
|
|
92
|
+
readonly min: i0.InputSignal<D>;
|
|
93
|
+
readonly max: i0.InputSignal<D>;
|
|
94
|
+
readonly granularity: i0.InputSignal<string>;
|
|
95
|
+
readonly startOn: i0.InputSignal<D>;
|
|
96
96
|
viewGranularity: LuDateGranularity;
|
|
97
97
|
header: ICalendarItem<D>;
|
|
98
98
|
items: ICalendarItem<D>[];
|
|
@@ -124,21 +124,25 @@ 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; }; "max": { "alias": "max"; "required": false; }; "granularity": { "alias": "granularity"; "required": false; }; "startOn": { "alias": "startOn"; "required": false; }; }, {}, never, never, true, never>;
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuCalendarInputComponent<any>, "lu-calendar", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "startOn": { "alias": "startOn"; "required": false; "isSignal": true; }; }, {}, 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
|
-
min
|
|
134
|
-
max
|
|
135
|
-
granularity:
|
|
136
|
-
startOn: D
|
|
133
|
+
readonly min: i0.InputSignal<D>;
|
|
134
|
+
readonly max: i0.InputSignal<D>;
|
|
135
|
+
readonly granularity: i0.InputSignal<string>;
|
|
136
|
+
readonly startOn: i0.InputSignal<D>;
|
|
137
137
|
close: EventEmitter<void>;
|
|
138
138
|
open: EventEmitter<void>;
|
|
139
139
|
hovered: EventEmitter<boolean>;
|
|
140
140
|
onSelectValue: EventEmitter<D>;
|
|
141
|
-
|
|
141
|
+
protected readonly closeOutput: i0.OutputRef<void>;
|
|
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;
|
|
142
146
|
constructor(_adapter: ALuDateAdapter<D>);
|
|
143
147
|
_emitOpenEvent(): void;
|
|
144
148
|
_emitCloseEvent(): void;
|
|
@@ -150,19 +154,19 @@ declare class LuDatePickerComponent<D = Date> extends ALuPickerPanel<D> {
|
|
|
150
154
|
_onEnter(): void;
|
|
151
155
|
_handleKeydown(event: KeyboardEvent): void;
|
|
152
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDatePickerComponent<any>, never>;
|
|
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; }; }, { "
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuDatePickerComponent<any>, "lu-date-picker", ["LuDatePicker"], { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "startOn": { "alias": "startOn"; "required": false; "isSignal": true; }; }, { "closeOutput": "close"; "openOutput": "open"; "hoveredOutput": "hovered"; "onSelectValueOutput": "onSelectValue"; }, never, never, true, never>;
|
|
154
158
|
}
|
|
155
159
|
|
|
156
|
-
declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> implements Validator
|
|
160
|
+
declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> implements Validator {
|
|
157
161
|
private _adapter;
|
|
158
162
|
private _focused;
|
|
159
|
-
min
|
|
160
|
-
max
|
|
161
|
-
granularity:
|
|
163
|
+
readonly min: i0.InputSignal<D>;
|
|
164
|
+
readonly max: i0.InputSignal<D>;
|
|
165
|
+
readonly granularity: i0.InputSignal<string>;
|
|
166
|
+
readonly placeHolderInput: i0.InputSignal<string>;
|
|
162
167
|
set placeholder(p: string);
|
|
163
168
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_date.ILuDateInputLabel, Partial<_lucca_front_ng_date.ILuDateInputLabel>>;
|
|
164
169
|
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLInputElement>, _renderer: Renderer2, _adapter: ALuDateAdapter<D>);
|
|
165
|
-
ngOnInit(): void;
|
|
166
170
|
protected render(): void;
|
|
167
171
|
onInput(event: any): void;
|
|
168
172
|
private parse;
|
|
@@ -170,7 +174,7 @@ declare class LuDateInputDirective<D> extends ALuInput<D, HTMLInputElement> impl
|
|
|
170
174
|
onBlur(): void;
|
|
171
175
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
172
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDateInputDirective<any>, never>;
|
|
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; }; "
|
|
177
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuDateInputDirective<any>, "input[luDateInput]", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "placeHolderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
declare class LuDateSelectInputComponent<D> extends ALuSelectInputComponent<D> implements ControlValueAccessor, ILuInputWithPicker<D>, AfterViewInit, Validator {
|
|
@@ -180,19 +184,17 @@ declare class LuDateSelectInputComponent<D> extends ALuSelectInputComponent<D> i
|
|
|
180
184
|
protected _viewContainerRef: ViewContainerRef;
|
|
181
185
|
protected _renderer: Renderer2;
|
|
182
186
|
private _adapter;
|
|
183
|
-
min
|
|
184
|
-
max
|
|
185
|
-
granularity:
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
readonly min: i0.InputSignal<D>;
|
|
188
|
+
readonly max: i0.InputSignal<D>;
|
|
189
|
+
readonly granularity: i0.InputSignal<string>;
|
|
190
|
+
readonly hideClearer: i0.InputSignal<boolean>;
|
|
191
|
+
readonly startOn: i0.InputSignal<D>;
|
|
188
192
|
protected _startOn: D;
|
|
189
|
-
set startOn(s: D);
|
|
190
|
-
get startOn(): D;
|
|
191
193
|
get format(): string;
|
|
192
194
|
constructor(_changeDetectorRef: ChangeDetectorRef, _overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, _adapter: ALuDateAdapter<D>);
|
|
193
195
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
194
196
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuDateSelectInputComponent<any>, never>;
|
|
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;
|
|
197
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuDateSelectInputComponent<any>, "lu-date-select", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "hideClearer": { "alias": "hideClearer"; "required": false; "isSignal": true; }; "startOn": { "alias": "startOn"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
/**
|
|
@@ -24,15 +24,20 @@ declare class DialogHeaderAction {
|
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderAction, never>;
|
|
25
25
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogHeaderAction, "[dialogHeaderAction]", never, {}, {}, never, never, true, never>;
|
|
26
26
|
}
|
|
27
|
+
declare class DialogHeaderSubtitle {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderSubtitle, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogHeaderSubtitle, "[dialogHeaderSubtitle]", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
27
31
|
declare class DialogHeaderComponent implements OnInit {
|
|
28
32
|
#private;
|
|
29
33
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_dialog.LuDialogHeaderTranslations, Partial<_lucca_front_ng_dialog.LuDialogHeaderTranslations>>;
|
|
30
34
|
dismissible: boolean;
|
|
31
35
|
close(): void;
|
|
32
36
|
readonly optionalAction: i0.Signal<DialogHeaderAction>;
|
|
37
|
+
readonly optionalSubtitle: i0.Signal<DialogHeaderSubtitle>;
|
|
33
38
|
ngOnInit(): void;
|
|
34
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "lu-dialog-header", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, ["optionalAction"], ["[dialogHeaderAction]", "*"], true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "lu-dialog-header", never, { "intl": { "alias": "intl"; "required": false; "isSignal": true; }; }, {}, ["optionalAction", "optionalSubtitle"], ["[dialogHeaderAction]", "*", "[dialogHeaderSubtitle]", "[dialogHeaderContent]"], true, never>;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
declare const LU_DIALOG_HEADER_TRANSLATIONS: InjectionToken<LuTranslation<LuDialogHeaderTranslations>>;
|
|
@@ -136,6 +141,11 @@ type BaseLuDialogConfig<C, TData = LuDialogData<C>> = {
|
|
|
136
141
|
* @param comp the instance of the component that's inside the dialog box.
|
|
137
142
|
*/
|
|
138
143
|
canClose?: (comp: C) => boolean | Observable<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* A hook function to determine if the current dialog can be dismissed or not.
|
|
146
|
+
* Unlike `canClose`, this does not require a component instance and is suitable for template-based dialogs.
|
|
147
|
+
*/
|
|
148
|
+
canDismiss?: () => boolean | Observable<boolean>;
|
|
139
149
|
/**
|
|
140
150
|
* Determine if the current dialog can be close by a click on backdrop or escape key
|
|
141
151
|
*/
|
|
@@ -300,6 +310,7 @@ declare class DialogOpenDirective {
|
|
|
300
310
|
autoFocus?: _angular_cdk_dialog.AutoFocusTarget | "first-input" | string;
|
|
301
311
|
cdkConfigOverride?: _angular_cdk_dialog.DialogConfig<unknown, unknown, _angular_cdk_portal.BasePortalOutlet>;
|
|
302
312
|
canClose?: (comp: unknown) => boolean | rxjs.Observable<boolean>;
|
|
313
|
+
canDismiss?: () => boolean | rxjs.Observable<boolean>;
|
|
303
314
|
canCloseWithBackdrop?: boolean;
|
|
304
315
|
size?: _lucca_front_ng_dialog.LuDialogSize;
|
|
305
316
|
mode?: "default" | "drawer" | "drawer-from-bottom" | "fancy";
|
|
@@ -310,5 +321,5 @@ declare class DialogOpenDirective {
|
|
|
310
321
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogOpenDirective, "[luDialogOpen]", never, { "dialog": { "alias": "luDialogOpen"; "required": true; "isSignal": true; }; "luDialogConfig": { "alias": "luDialogConfig"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
311
322
|
}
|
|
312
323
|
|
|
313
|
-
export { DIALOG_ROUTE_CLOSE_TRIGGER, DIALOG_ROUTE_CONFIG, DIALOG_ROUTE_DISMISS_TRIGGER, DialogCloseDirective, DialogComponent, DialogContentComponent, DialogDismissDirective, DialogFooterComponent, DialogHeaderAction, DialogHeaderComponent, DialogOpenDirective, DialogRoutingContainerComponent, LU_DIALOG_HEADER_TRANSLATIONS, LuDialogRef, LuDialogService, LuccaDialogRoutingReuseStrategy, configureLuDialog, createDialogRoute, defaultOnClosedFn, dialogLazyRouteFactory, dialogRouteFactory, injectDialogData, injectDialogRef, luDialogHeaderTranslations, provideDialogRoutingReuseStrategy, provideLuDialog };
|
|
324
|
+
export { DIALOG_ROUTE_CLOSE_TRIGGER, DIALOG_ROUTE_CONFIG, DIALOG_ROUTE_DISMISS_TRIGGER, DialogCloseDirective, DialogComponent, DialogContentComponent, DialogDismissDirective, DialogFooterComponent, DialogHeaderAction, DialogHeaderComponent, DialogHeaderSubtitle, DialogOpenDirective, DialogRoutingContainerComponent, LU_DIALOG_HEADER_TRANSLATIONS, LuDialogRef, LuDialogService, LuccaDialogRoutingReuseStrategy, configureLuDialog, createDialogRoute, defaultOnClosedFn, dialogLazyRouteFactory, dialogRouteFactory, injectDialogData, injectDialogRef, luDialogHeaderTranslations, provideDialogRoutingReuseStrategy, provideLuDialog };
|
|
314
325
|
export type { DialogFactoryConfig, DialogFactoryResult, DialogFactoryResultOptions, DialogRouteCloseTrigger, DialogRouteConfig, DialogRouteDialogConfig, DialogRouteDismissTrigger, LuDialogConfig, LuDialogData, LuDialogHeaderTranslations, LuDialogResult, LuDialogSelfRef, LuDialogSize, ɵDialogDataFlag, ɵDialogResultFlag };
|