@lucca-front/ng 22.1.0 → 22.1.1
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-activity-feed.mjs +8 -4
- package/fesm2022/lucca-front-ng-activity-feed.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs +46 -25
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +2 -0
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +2 -0
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +2 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +62 -12
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +3 -2
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +4 -4
- package/fesm2022/lucca-front-ng-form-field.mjs +6 -2
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +3 -2
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-section.mjs +3 -0
- package/fesm2022/lucca-front-ng-highlight-section.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-impersonation.mjs +3 -1
- package/fesm2022/lucca-front-ng-impersonation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +33 -9
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +17 -7
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +6 -6
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +2 -2
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-priority-level.mjs +128 -0
- package/fesm2022/lucca-front-ng-priority-level.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +2 -2
- package/fesm2022/lucca-front-ng-segmented-control.mjs +2 -2
- package/fesm2022/lucca-front-ng-simple-select.mjs +4 -4
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +2 -2
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +11 -4
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/package.json +11 -8
- package/schematics/lu-button/migration.js +59 -33
- package/src/components/_sidepanel.scss +2 -2
- package/src/components/cdk/_global.scss +4 -0
- package/src/components/cdk/_overlay.scss +1 -1
- package/types/lucca-front-ng-activity-feed.d.ts +13 -9
- package/types/lucca-front-ng-api.d.ts +28 -28
- package/types/lucca-front-ng-approbation-inbox.d.ts +19 -11
- package/types/lucca-front-ng-bubble-icon.d.ts +1 -1
- package/types/lucca-front-ng-callout.d.ts +17 -17
- package/types/lucca-front-ng-chip.d.ts +6 -6
- package/types/lucca-front-ng-clear.d.ts +1 -1
- package/types/lucca-front-ng-color.d.ts +3 -3
- package/types/lucca-front-ng-comment.d.ts +11 -11
- package/types/lucca-front-ng-container.d.ts +1 -1
- package/types/lucca-front-ng-core-select-api.d.ts +7 -7
- package/types/lucca-front-ng-core-select-department.d.ts +7 -5
- package/types/lucca-front-ng-core-select-establishment.d.ts +7 -5
- package/types/lucca-front-ng-core-select-job-qualification.d.ts +2 -2
- package/types/lucca-front-ng-core-select-legal-units.d.ts +3 -3
- package/types/lucca-front-ng-core-select-occupation-category.d.ts +2 -2
- package/types/lucca-front-ng-core-select-user.d.ts +14 -12
- package/types/lucca-front-ng-core-select.d.ts +39 -39
- package/types/lucca-front-ng-core.d.ts +2 -2
- package/types/lucca-front-ng-data-table.d.ts +33 -33
- package/types/lucca-front-ng-date.d.ts +11 -11
- package/types/lucca-front-ng-date2.d.ts +52 -36
- package/types/lucca-front-ng-dialog.d.ts +8 -8
- package/types/lucca-front-ng-divider.d.ts +2 -2
- package/types/lucca-front-ng-dropdown.d.ts +2 -2
- package/types/lucca-front-ng-empty-state.d.ts +20 -20
- package/types/lucca-front-ng-establishment.d.ts +13 -13
- package/types/lucca-front-ng-fancy-box.d.ts +12 -12
- package/types/lucca-front-ng-file-upload.d.ts +13 -13
- package/types/lucca-front-ng-filter-pills.d.ts +17 -17
- package/types/lucca-front-ng-footer.d.ts +1 -1
- package/types/lucca-front-ng-form-field.d.ts +19 -19
- package/types/lucca-front-ng-form-label.d.ts +4 -4
- package/types/lucca-front-ng-form.d.ts +1 -1
- package/types/lucca-front-ng-forms-phone-number-input.d.ts +11 -11
- package/types/lucca-front-ng-forms-rich-text-input.d.ts +11 -11
- package/types/lucca-front-ng-forms.d.ts +50 -50
- package/types/lucca-front-ng-grid.d.ts +23 -23
- package/types/lucca-front-ng-highlight-data.d.ts +5 -5
- package/types/lucca-front-ng-highlight-section.d.ts +6 -3
- package/types/lucca-front-ng-horizontal-navigation.d.ts +4 -4
- package/types/lucca-front-ng-impersonation.d.ts +8 -6
- package/types/lucca-front-ng-index-table.d.ts +18 -18
- package/types/lucca-front-ng-inline-message.d.ts +2 -2
- package/types/lucca-front-ng-link.d.ts +17 -4
- package/types/lucca-front-ng-listbox.d.ts +9 -9
- package/types/lucca-front-ng-listing.d.ts +14 -3
- package/types/lucca-front-ng-loading.d.ts +4 -4
- package/types/lucca-front-ng-main-layout.d.ts +9 -9
- package/types/lucca-front-ng-modal.d.ts +2 -2
- package/types/lucca-front-ng-multi-select.d.ts +20 -20
- package/types/lucca-front-ng-option.d.ts +3 -3
- package/types/lucca-front-ng-page-header.d.ts +2 -2
- package/types/lucca-front-ng-pagination.d.ts +3 -3
- package/types/lucca-front-ng-popover.d.ts +18 -18
- package/types/lucca-front-ng-popover2.d.ts +8 -8
- package/types/lucca-front-ng-popup.d.ts +2 -2
- package/types/{lucca-front-ng-priority-levels.d.ts → lucca-front-ng-priority-level.d.ts} +11 -11
- package/types/lucca-front-ng-progress-bar.d.ts +1 -1
- package/types/lucca-front-ng-progress-stepper.d.ts +2 -2
- package/types/lucca-front-ng-read-more.d.ts +4 -4
- package/types/lucca-front-ng-resource-card.d.ts +3 -3
- package/types/lucca-front-ng-segmented-control-tabs.d.ts +5 -5
- package/types/lucca-front-ng-segmented-control.d.ts +3 -3
- package/types/lucca-front-ng-select.d.ts +9 -9
- package/types/lucca-front-ng-simple-select.d.ts +8 -8
- package/types/lucca-front-ng-software-icon.d.ts +1 -1
- package/types/lucca-front-ng-sortable-list.d.ts +1 -1
- package/types/lucca-front-ng-status-badge.d.ts +1 -1
- package/types/lucca-front-ng-time.d.ts +19 -19
- package/types/lucca-front-ng-toast.d.ts +1 -1
- package/types/lucca-front-ng-tree-select.d.ts +2 -2
- package/types/lucca-front-ng-user-popover.d.ts +1 -1
- package/types/lucca-front-ng-user.d.ts +24 -18
- package/types/lucca-front-ng-vertical-navigation.d.ts +5 -5
- package/fesm2022/lucca-front-ng-priority-levels.mjs +0 -128
- package/fesm2022/lucca-front-ng-priority-levels.mjs.map +0 -1
|
@@ -21,7 +21,7 @@ declare class TimePickerPartComponent {
|
|
|
21
21
|
readonly label: _angular_core.InputSignal<string>;
|
|
22
22
|
readonly decimalConf: _angular_core.InputSignal<string>;
|
|
23
23
|
readonly value: ModelSignal<number | '––'>;
|
|
24
|
-
readonly display: _angular_core.InputSignalWithTransform<number | "––", number | `${number}` | "––">;
|
|
24
|
+
readonly display: _angular_core.InputSignalWithTransform<number | "––" | undefined, number | `${number}` | "––">;
|
|
25
25
|
readonly max: _angular_core.InputSignalWithTransform<number, number | `${number}`>;
|
|
26
26
|
readonly autoWidth: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
27
27
|
readonly displayArrows: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
@@ -38,9 +38,9 @@ declare class TimePickerPartComponent {
|
|
|
38
38
|
nonDigitKeyPressed: _angular_core.OutputEmitterRef<void>;
|
|
39
39
|
inputControlClick: _angular_core.OutputEmitterRef<PickerControlDirection>;
|
|
40
40
|
touched: _angular_core.OutputEmitterRef<void>;
|
|
41
|
-
readonly timePickerInput: _angular_core.Signal<ElementRef<HTMLInputElement
|
|
42
|
-
readonly valueLabel: _angular_core.Signal<string | number>;
|
|
43
|
-
readonly currentValue: _angular_core.Signal<number | "––">;
|
|
41
|
+
readonly timePickerInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
42
|
+
readonly valueLabel: _angular_core.Signal<string | number | undefined>;
|
|
43
|
+
readonly currentValue: _angular_core.Signal<number | "––" | null>;
|
|
44
44
|
readonly inputId: string;
|
|
45
45
|
constructor(locale: string);
|
|
46
46
|
arrowKeyPressed(event: KeyboardEvent, isUpArrow: boolean): void;
|
|
@@ -59,13 +59,13 @@ declare class TimePickerPartComponent {
|
|
|
59
59
|
declare abstract class BasePickerComponent implements ControlValueAccessor {
|
|
60
60
|
onChange: (value: ISO8601Time | ISO8601Duration) => void;
|
|
61
61
|
onTouched: () => void;
|
|
62
|
-
readonly step: _angular_core.InputSignal<`${string}P${string}
|
|
62
|
+
readonly step: _angular_core.InputSignal<`${string}P${string}` | null>;
|
|
63
63
|
readonly disabled: _angular_core.ModelSignal<boolean>;
|
|
64
|
-
readonly size: _angular_core.InputSignal<"S" | "M">;
|
|
65
|
-
readonly hoursPart: _angular_core.Signal<TimePickerPartComponent>;
|
|
66
|
-
readonly minutesPart: _angular_core.Signal<TimePickerPartComponent>;
|
|
64
|
+
readonly size: _angular_core.InputSignal<"S" | "M" | undefined>;
|
|
65
|
+
readonly hoursPart: _angular_core.Signal<TimePickerPartComponent | undefined>;
|
|
66
|
+
readonly minutesPart: _angular_core.Signal<TimePickerPartComponent | undefined>;
|
|
67
67
|
protected readonly hoursIncrement: _angular_core.Signal<number>;
|
|
68
|
-
protected readonly minutesIncrement: _angular_core.Signal<number>;
|
|
68
|
+
protected readonly minutesIncrement: _angular_core.Signal<number | null>;
|
|
69
69
|
registerOnChange(fn: () => void): void;
|
|
70
70
|
registerOnTouched(fn: () => void): void;
|
|
71
71
|
abstract writeValue(value: ISO8601Time | ISO8601Duration): void;
|
|
@@ -92,7 +92,7 @@ declare class DurationPickerComponent extends BasePickerComponent {
|
|
|
92
92
|
readonly value: _angular_core.ModelSignal<`${string}P${string}`>;
|
|
93
93
|
readonly max: _angular_core.InputSignal<`${string}P${string}`>;
|
|
94
94
|
readonly displayArrows: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
95
|
-
readonly label: _angular_core.InputSignal<string>;
|
|
95
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
96
96
|
readonly hideZeroValue: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
97
97
|
readonly durationChange: _angular_core.OutputEmitterRef<DurationChangeEvent>;
|
|
98
98
|
readonly keyPressed: _angular_core.WritableSignal<boolean>;
|
|
@@ -152,15 +152,15 @@ declare class TimePickerComponent extends BasePickerComponent {
|
|
|
152
152
|
readonly intl: _angular_core.InputSignalWithTransform<_lucca_front_ng_time.TimePickerTranslations, Partial<_lucca_front_ng_time.TimePickerTranslations>>;
|
|
153
153
|
protected localeId: string;
|
|
154
154
|
readonly idSuffix: number;
|
|
155
|
-
readonly anteMeridiemRef: _angular_core.Signal<ElementRef<HTMLInputElement
|
|
156
|
-
readonly postMeridiemRef: _angular_core.Signal<ElementRef<HTMLInputElement
|
|
155
|
+
readonly anteMeridiemRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
156
|
+
readonly postMeridiemRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
157
157
|
readonly value: _angular_core.ModelSignal<`${string}:${string}:${string}`>;
|
|
158
158
|
readonly max: _angular_core.InputSignal<`${string}:${string}:${string}`>;
|
|
159
159
|
readonly displayArrows: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
160
|
-
readonly forceMeridiemDisplay: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true" | "null">;
|
|
160
|
+
readonly forceMeridiemDisplay: _angular_core.InputSignalWithTransform<boolean | null, boolean | "" | "false" | "true" | "null" | null>;
|
|
161
161
|
readonly keyPressed: _angular_core.WritableSignal<boolean>;
|
|
162
|
-
readonly enableMeridiemDisplay: _angular_core.Signal<boolean>;
|
|
163
|
-
readonly label: _angular_core.InputSignal<string>;
|
|
162
|
+
readonly enableMeridiemDisplay: _angular_core.Signal<boolean | null>;
|
|
163
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
164
164
|
readonly timeChange: _angular_core.OutputEmitterRef<TimeChangeEvent>;
|
|
165
165
|
readonly prevPicker: _angular_core.OutputEmitterRef<void>;
|
|
166
166
|
readonly nextPicker: _angular_core.OutputEmitterRef<void>;
|
|
@@ -218,19 +218,19 @@ interface TimeRangePickerRange {
|
|
|
218
218
|
declare class TimeRangePickerComponent implements ControlValueAccessor, OnInit, Validator {
|
|
219
219
|
#private;
|
|
220
220
|
readonly inputFocused: _angular_core.WritableSignal<boolean>;
|
|
221
|
-
readonly value: _angular_core.WritableSignal<TimeRangePickerRange>;
|
|
221
|
+
readonly value: _angular_core.WritableSignal<TimeRangePickerRange | null>;
|
|
222
222
|
readonly intl: _angular_core.InputSignalWithTransform<_lucca_front_ng_time.TimeRangePickerTranslations, Partial<_lucca_front_ng_time.TimeRangePickerTranslations>>;
|
|
223
223
|
readonly displayArrows: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
224
224
|
readonly forceMeridiemDisplay: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
225
225
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
226
226
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
227
|
-
readonly size: _angular_core.InputSignal<"S" | "M">;
|
|
227
|
+
readonly size: _angular_core.InputSignal<"S" | "M" | undefined>;
|
|
228
228
|
readonly max: _angular_core.InputSignal<`${string}:${string}:${string}`>;
|
|
229
|
-
readonly step: _angular_core.InputSignal<`${string}P${string}
|
|
229
|
+
readonly step: _angular_core.InputSignal<`${string}P${string}` | null>;
|
|
230
230
|
readonly keyPressed: _angular_core.WritableSignal<boolean>;
|
|
231
231
|
readonly startValue: _angular_core.Signal<`${string}:${string}:${string}`>;
|
|
232
232
|
readonly endValue: _angular_core.Signal<`${string}:${string}:${string}`>;
|
|
233
|
-
readonly formFieldLabel: _angular_core.Signal<_lucca_front_ng_core.PortalContent>;
|
|
233
|
+
readonly formFieldLabel: _angular_core.Signal<_lucca_front_ng_core.PortalContent | undefined>;
|
|
234
234
|
readonly isLocaleFr: _angular_core.Signal<boolean>;
|
|
235
235
|
DEFAULT_TIME_VALUE: string;
|
|
236
236
|
constructor();
|
|
@@ -31,7 +31,7 @@ interface LuToast extends LuToastInput {
|
|
|
31
31
|
declare class LuToastsComponent {
|
|
32
32
|
#private;
|
|
33
33
|
readonly bottom: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
34
|
-
readonly sources: i0.InputSignal<Observable<LuToastInput>[]>;
|
|
34
|
+
readonly sources: i0.InputSignal<Observable<LuToastInput>[] | undefined>;
|
|
35
35
|
constructor();
|
|
36
36
|
readonly toasts$: rxjs.BehaviorSubject<LuToast[]>;
|
|
37
37
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_toast.ILuToastLabel, Partial<_lucca_front_ng_toast.ILuToastLabel>>;
|
|
@@ -14,9 +14,9 @@ declare class TreeSelectDirective<T, V> implements TreeGenerator<T, TreeNode<T>>
|
|
|
14
14
|
|
|
15
15
|
declare class TreeBranchComponent<T> {
|
|
16
16
|
readonly selectInputComponent: ALuSelectInputComponent<any, any>;
|
|
17
|
-
readonly rootOptionRef: _angular_core.Signal<_CoreSelectPanelElement<T
|
|
17
|
+
readonly rootOptionRef: _angular_core.Signal<_CoreSelectPanelElement<T> | undefined>;
|
|
18
18
|
readonly branch: _angular_core.InputSignal<TreeNode<T>>;
|
|
19
|
-
readonly optionTpl: _angular_core.InputSignal<Type<unknown> | TemplateRef<LuOptionContext<T
|
|
19
|
+
readonly optionTpl: _angular_core.InputSignal<Type<unknown> | TemplateRef<LuOptionContext<T>> | undefined>;
|
|
20
20
|
readonly optionIndex: _angular_core.InputSignalWithTransform<string, string | number>;
|
|
21
21
|
readonly optionComparer: _angular_core.InputSignal<LuOptionComparer<T>>;
|
|
22
22
|
readonly selectedOptions: _angular_core.InputSignal<T[]>;
|
|
@@ -50,7 +50,7 @@ declare class LuUserPopoverComponent {
|
|
|
50
50
|
skeletonWidths: string[];
|
|
51
51
|
readonly employee$: Observable<LuUserPopover>;
|
|
52
52
|
readonly userPictureDisplay$: Observable<"img" | "initials">;
|
|
53
|
-
readonly userPictureHref$: Observable<string>;
|
|
53
|
+
readonly userPictureHref$: Observable<string | undefined>;
|
|
54
54
|
readonly userInitials$: Observable<{
|
|
55
55
|
initials: string;
|
|
56
56
|
color: number;
|
|
@@ -101,7 +101,7 @@ declare class LuUserTileComponent {
|
|
|
101
101
|
/**
|
|
102
102
|
* LuUserTileUserInput to display.
|
|
103
103
|
*/
|
|
104
|
-
readonly user: i0.InputSignal<LuUserTileUserInput>;
|
|
104
|
+
readonly user: i0.InputSignal<LuUserTileUserInput | undefined>;
|
|
105
105
|
/**
|
|
106
106
|
* User Display format.
|
|
107
107
|
* It is set to 'LU_DEFAULT_DISPLAY_POLICY' by default
|
|
@@ -110,11 +110,11 @@ declare class LuUserTileComponent {
|
|
|
110
110
|
/**
|
|
111
111
|
* LuUserTileUserInput role to display
|
|
112
112
|
*/
|
|
113
|
-
readonly role: i0.InputSignal<string>;
|
|
113
|
+
readonly role: i0.InputSignal<string | undefined>;
|
|
114
114
|
/**
|
|
115
115
|
* Which size should the user tile be? Defaults to medium
|
|
116
116
|
*/
|
|
117
|
-
readonly size: i0.InputSignal<"L" | "M" | "S" | "XS">;
|
|
117
|
+
readonly size: i0.InputSignal<"L" | "M" | "S" | "XS" | undefined>;
|
|
118
118
|
readonly displayPictureFormat: i0.Signal<_lucca_front_ng_user.LuDisplayInitials>;
|
|
119
119
|
constructor();
|
|
120
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuUserTileComponent, never>;
|
|
@@ -154,11 +154,16 @@ declare class LuUserPictureComponent {
|
|
|
154
154
|
* It is set to 'LU_DEFAULT_DISPLAY_POLICY' by default
|
|
155
155
|
*/
|
|
156
156
|
readonly displayFormat: i0.InputSignal<LuDisplayInitials>;
|
|
157
|
-
readonly user: i0.InputSignal<LuUserPictureUserInput>;
|
|
157
|
+
readonly user: i0.InputSignal<LuUserPictureUserInput | undefined>;
|
|
158
158
|
readonly AI: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
159
159
|
readonly placeholder: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
160
160
|
readonly softRounded: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
161
161
|
readonly size: i0.InputSignal<"L" | "M" | "S" | "XS" | "XL" | "XXL" | "XXXL">;
|
|
162
|
+
/**
|
|
163
|
+
* Exposes the user's full name as text alternative to assistive technologies.
|
|
164
|
+
* By default the picture is decorative, use it when no visible text identifies the user.
|
|
165
|
+
*/
|
|
166
|
+
readonly withAlt: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
162
167
|
/**
|
|
163
168
|
* Image loading attribute
|
|
164
169
|
* It is set to 'lazy' by default
|
|
@@ -167,9 +172,10 @@ declare class LuUserPictureComponent {
|
|
|
167
172
|
*/
|
|
168
173
|
readonly imageLoadingAttribute: i0.InputSignal<"eager" | "lazy">;
|
|
169
174
|
readonly initials: i0.Signal<string>;
|
|
175
|
+
readonly fullName: i0.Signal<string>;
|
|
170
176
|
readonly modSize: i0.Signal<string>;
|
|
171
177
|
readonly hasPicture: i0.WritableSignal<boolean>;
|
|
172
|
-
readonly pictureHref: i0.WritableSignal<string>;
|
|
178
|
+
readonly pictureHref: i0.WritableSignal<string | null>;
|
|
173
179
|
readonly style: i0.WritableSignal<{
|
|
174
180
|
'background-color': string;
|
|
175
181
|
} | {
|
|
@@ -177,7 +183,7 @@ declare class LuUserPictureComponent {
|
|
|
177
183
|
}>;
|
|
178
184
|
pictureError(): void;
|
|
179
185
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuUserPictureComponent, never>;
|
|
180
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuUserPictureComponent, "lu-user-picture", never, { "displayFormat": { "alias": "displayFormat"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "AI": { "alias": "AI"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "softRounded": { "alias": "softRounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "imageLoadingAttribute": { "alias": "imageLoadingAttribute"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
186
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuUserPictureComponent, "lu-user-picture", never, { "displayFormat": { "alias": "displayFormat"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "AI": { "alias": "AI"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "softRounded": { "alias": "softRounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "withAlt": { "alias": "withAlt"; "required": false; "isSignal": true; }; "imageLoadingAttribute": { "alias": "imageLoadingAttribute"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
181
187
|
}
|
|
182
188
|
|
|
183
189
|
/**
|
|
@@ -263,13 +269,13 @@ declare class LuUserPagedSearcherComponent<U extends ILuUser = ILuUser> implemen
|
|
|
263
269
|
#private;
|
|
264
270
|
private _service;
|
|
265
271
|
private _subs;
|
|
266
|
-
readonly searchInput: i0.Signal<ElementRef<HTMLInputElement
|
|
272
|
+
readonly searchInput: i0.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
267
273
|
readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_user.ILuUserSearcherLabel, Partial<_lucca_front_ng_user.ILuUserSearcherLabel>>;
|
|
268
|
-
readonly fields: i0.InputSignal<string>;
|
|
269
|
-
readonly filters: i0.InputSignal<string[]>;
|
|
270
|
-
readonly orderBy: i0.InputSignal<string>;
|
|
271
|
-
readonly appInstanceId: i0.InputSignal<string | number>;
|
|
272
|
-
readonly operations: i0.InputSignal<number[]>;
|
|
274
|
+
readonly fields: i0.InputSignal<string | undefined>;
|
|
275
|
+
readonly filters: i0.InputSignal<string[] | undefined>;
|
|
276
|
+
readonly orderBy: i0.InputSignal<string | undefined>;
|
|
277
|
+
readonly appInstanceId: i0.InputSignal<string | number | undefined>;
|
|
278
|
+
readonly operations: i0.InputSignal<number[] | undefined>;
|
|
273
279
|
readonly enableFormerEmployees: i0.InputSignalWithTransform<boolean, boolean | "" | "false" | "true">;
|
|
274
280
|
readonly clueChange: i0.OutputEmitterRef<string>;
|
|
275
281
|
form: FormGroup;
|
|
@@ -334,12 +340,12 @@ declare class LuUserMeOptionDirective<U extends ILuUser = ILuUser> implements IL
|
|
|
334
340
|
#private;
|
|
335
341
|
private _vcr;
|
|
336
342
|
private _templateRef;
|
|
337
|
-
readonly luUserMeOptionFields: i0.InputSignal<string>;
|
|
338
|
-
readonly luUserMeOptionFilters: i0.InputSignal<string[]>;
|
|
339
|
-
readonly luUserMeOptionOrderBy: i0.InputSignal<string>;
|
|
340
|
-
readonly luUserMeOptionAppInstanceId: i0.InputSignal<string | number>;
|
|
341
|
-
readonly luUserMeOptionOperations: i0.InputSignal<number[]>;
|
|
342
|
-
readonly luUserMeOptionClue: i0.InputSignal<string>;
|
|
343
|
+
readonly luUserMeOptionFields: i0.InputSignal<string | undefined>;
|
|
344
|
+
readonly luUserMeOptionFilters: i0.InputSignal<string[] | undefined>;
|
|
345
|
+
readonly luUserMeOptionOrderBy: i0.InputSignal<string | undefined>;
|
|
346
|
+
readonly luUserMeOptionAppInstanceId: i0.InputSignal<string | number | undefined>;
|
|
347
|
+
readonly luUserMeOptionOperations: i0.InputSignal<number[] | undefined>;
|
|
348
|
+
readonly luUserMeOptionClue: i0.InputSignal<string | undefined>;
|
|
343
349
|
set inOptions$(in$: Observable<U[]>);
|
|
344
350
|
outOptions$: Observable<U[]>;
|
|
345
351
|
private _service;
|
|
@@ -6,7 +6,7 @@ declare class VerticalNavigationLinkComponent {
|
|
|
6
6
|
/**
|
|
7
7
|
* adds an icon to the vertical navigation link
|
|
8
8
|
*/
|
|
9
|
-
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
9
|
+
readonly icon: _angular_core.InputSignal<LuccaIcon | null>;
|
|
10
10
|
/**
|
|
11
11
|
* Disabled the vertical navigation link
|
|
12
12
|
*/
|
|
@@ -23,7 +23,7 @@ declare class VerticalNavigationGroupComponent {
|
|
|
23
23
|
/**
|
|
24
24
|
* Adds an icon to the vertical navigation group
|
|
25
25
|
*/
|
|
26
|
-
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
26
|
+
readonly icon: _angular_core.InputSignal<LuccaIcon | null>;
|
|
27
27
|
/**
|
|
28
28
|
* Disabled the vertical navigation group
|
|
29
29
|
*/
|
|
@@ -38,7 +38,7 @@ declare class VerticalNavigationComponent {
|
|
|
38
38
|
/**
|
|
39
39
|
* Changes the heading title displayed by the vertical navigation
|
|
40
40
|
*/
|
|
41
|
-
readonly heading: _angular_core.InputSignal<PortalContent>;
|
|
41
|
+
readonly heading: _angular_core.InputSignal<PortalContent | null>;
|
|
42
42
|
/**
|
|
43
43
|
* Defines aria level for heading title
|
|
44
44
|
*/
|
|
@@ -54,11 +54,11 @@ declare class VerticalNavigationItemComponent {
|
|
|
54
54
|
/**
|
|
55
55
|
* Changes the text displayed by the vertical navigation item
|
|
56
56
|
*/
|
|
57
|
-
readonly label: _angular_core.InputSignal<string>;
|
|
57
|
+
readonly label: _angular_core.InputSignal<string | null>;
|
|
58
58
|
/**
|
|
59
59
|
* Adds an icon to the vertical navigation item
|
|
60
60
|
*/
|
|
61
|
-
readonly icon: _angular_core.InputSignal<LuccaIcon>;
|
|
61
|
+
readonly icon: _angular_core.InputSignal<LuccaIcon | null>;
|
|
62
62
|
/**
|
|
63
63
|
* Disabled the vertical navigation item
|
|
64
64
|
*/
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, input, booleanAttribute, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { luNumberAttribute, intlInputOptions } from '@lucca-front/ng/core';
|
|
4
|
-
import { IconComponent } from '@lucca-front/ng/icon';
|
|
5
|
-
import { LuTooltipTriggerDirective } from '@lucca-front/ng/tooltip';
|
|
6
|
-
|
|
7
|
-
const Translations = {
|
|
8
|
-
en: {
|
|
9
|
-
low: 'Low',
|
|
10
|
-
medium: 'Medium',
|
|
11
|
-
high: 'High',
|
|
12
|
-
},
|
|
13
|
-
de: {
|
|
14
|
-
low: 'Niedrig',
|
|
15
|
-
medium: 'Mittel',
|
|
16
|
-
high: 'Hoch',
|
|
17
|
-
},
|
|
18
|
-
fr: {
|
|
19
|
-
low: 'Basse',
|
|
20
|
-
medium: 'Moyenne',
|
|
21
|
-
high: 'Haute',
|
|
22
|
-
},
|
|
23
|
-
it: {
|
|
24
|
-
low: 'Bassa',
|
|
25
|
-
medium: 'Media',
|
|
26
|
-
high: 'Alta',
|
|
27
|
-
},
|
|
28
|
-
nl: {
|
|
29
|
-
low: 'Laag',
|
|
30
|
-
medium: 'Gemiddeld',
|
|
31
|
-
high: 'Hoog',
|
|
32
|
-
},
|
|
33
|
-
'nl-BE': {
|
|
34
|
-
low: 'Laag',
|
|
35
|
-
medium: 'Gemiddeld',
|
|
36
|
-
high: 'Hoog',
|
|
37
|
-
},
|
|
38
|
-
es: {
|
|
39
|
-
low: 'Baja',
|
|
40
|
-
medium: 'Media',
|
|
41
|
-
high: 'Alta',
|
|
42
|
-
},
|
|
43
|
-
pt: {
|
|
44
|
-
low: 'Baixa',
|
|
45
|
-
medium: 'Média',
|
|
46
|
-
high: 'Alta',
|
|
47
|
-
},
|
|
48
|
-
pl: {
|
|
49
|
-
low: 'Niski',
|
|
50
|
-
medium: 'Średni',
|
|
51
|
-
high: 'Wysoki',
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const LU_PRIORITY_LEVELS_TRANSLATIONS = new InjectionToken('luPriorityLevelsTranslations', {
|
|
56
|
-
factory: () => luPriorityLevelsTranslations,
|
|
57
|
-
});
|
|
58
|
-
const luPriorityLevelsTranslations = Translations;
|
|
59
|
-
|
|
60
|
-
const LEVEL_TRANSLATION_KEYS = {
|
|
61
|
-
1: 'low',
|
|
62
|
-
2: 'medium',
|
|
63
|
-
3: 'high',
|
|
64
|
-
};
|
|
65
|
-
class PriorityLevelsComponent {
|
|
66
|
-
constructor() {
|
|
67
|
-
/**
|
|
68
|
-
* Which priority level should be displayed (1 = low, 2 = medium, 3 = high)
|
|
69
|
-
*/
|
|
70
|
-
this.level = input.required({ ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: (luNumberAttribute) });
|
|
71
|
-
/**
|
|
72
|
-
* Which size should the component be? Defaults to M
|
|
73
|
-
*/
|
|
74
|
-
this.size = input('M', /* @ts-ignore */
|
|
75
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
76
|
-
/**
|
|
77
|
-
* Overrides for the default translations
|
|
78
|
-
*/
|
|
79
|
-
this.intl = input(...intlInputOptions(LU_PRIORITY_LEVELS_TRANSLATIONS), /* @ts-ignore */
|
|
80
|
-
...(ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []));
|
|
81
|
-
/**
|
|
82
|
-
* Visually hides the label while keeping it in the DOM for screen readers, and shows it in a tooltip on the icon instead
|
|
83
|
-
*/
|
|
84
|
-
this.hiddenLabel = input(false, { ...(ngDevMode ? { debugName: "hiddenLabel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
-
this.label = computed(() => this.intl()[LEVEL_TRANSLATION_KEYS[this.level()]], /* @ts-ignore */
|
|
86
|
-
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
87
|
-
this.iconSize = computed(() => {
|
|
88
|
-
switch (this.size()) {
|
|
89
|
-
case 'S':
|
|
90
|
-
return 'XXS';
|
|
91
|
-
case 'L':
|
|
92
|
-
return 'S';
|
|
93
|
-
default:
|
|
94
|
-
return 'XS';
|
|
95
|
-
}
|
|
96
|
-
}, /* @ts-ignore */
|
|
97
|
-
...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
98
|
-
}
|
|
99
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PriorityLevelsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
100
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: PriorityLevelsComponent, isStandalone: true, selector: "lu-priority-levels", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null }, hiddenLabel: { classPropertyName: "hiddenLabel", publicName: "hiddenLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.mod-low": "level() === 1", "class.mod-medium": "level() === 2", "class.mod-high": "level() === 3", "class.mod-S": "size() === 'S'", "class.mod-L": "size() === 'L'" }, classAttribute: "priorityLevels" }, ngImport: i0, template: "<lu-icon\n\ticon=\"priorityLevels\"\n\tclass=\"priorityLevels-icon\"\n\t[size]=\"iconSize()\"\n\t[luTooltip]=\"label()\"\n\tluTooltipOnlyForDisplay\n\t[luTooltipDisabled]=\"!hiddenLabel()\"\n/>\n<span class=\"priorityLevels-label\" [class.pr-u-mask]=\"hiddenLabel()\">{{ label() }}</span>\n", styles: ["@layer components{.priorityLevels{--components-priorityLevels-font: var(--pr-t-font-body-S);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-S-lineHeight);--components-priorityLevels-gap: var(--pr-t-spacings-50);--components-priorityLevels-icon-color1: var(--palettes-neutral-400);--components-priorityLevels-icon-color2: var(--palettes-neutral-400);--components-priorityLevels-icon-color3: var(--palettes-neutral-400);display:flex;align-items:center;color:var(--pr-t-color-text);font:var(--components-priorityLevels-font);gap:var(--components-priorityLevels-gap);min-block-size:var(--components-priorityLevels-minBlockSize)}.priorityLevels-icon{display:inline-flex}.priorityLevels-icon:focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:2px;border-radius:var(--pr-t-border-radius-small)}.priorityLevels-icon .lucca-icon:before{background:linear-gradient(to right,var(--components-priorityLevels-icon-color1) 0%,var(--components-priorityLevels-icon-color1) 33.3333333333%,var(--components-priorityLevels-icon-color2) 33.3333333333%,var(--components-priorityLevels-icon-color2) 66.6666666667%,var(--components-priorityLevels-icon-color3) 66.6666666667%,var(--components-priorityLevels-icon-color3) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}}@layer mods{.priorityLevels.mod-low{--components-priorityLevels-icon-color1: var(--pr-t-color-text);--components-priorityLevels-icon-color2: var(--palettes-neutral-400);--components-priorityLevels-icon-color3: var(--palettes-neutral-400)}.priorityLevels.mod-medium{--components-priorityLevels-icon-color1: var(--palettes-warning-800);--components-priorityLevels-icon-color2: var(--palettes-warning-800);--components-priorityLevels-icon-color3: var(--palettes-neutral-400)}.priorityLevels.mod-high{--components-priorityLevels-icon-color1: var(--palettes-critical-800);--components-priorityLevels-icon-color2: var(--palettes-critical-800);--components-priorityLevels-icon-color3: var(--palettes-critical-800)}.priorityLevels.mod-S{--components-priorityLevels-font: var(--pr-t-font-body-XS);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-XS-lineHeight);--components-priorityLevels-gap: var(--pr-t-spacings-25)}.priorityLevels.mod-L{--components-priorityLevels-font: var(--pr-t-font-body-M);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-M-lineHeight)}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "directive", type: LuTooltipTriggerDirective, selector: "[luTooltip],[prTooltip]", inputs: ["luTooltip", "prTooltip", "luTooltipEnterDelay", "prTooltipEnterDelay", "luTooltipLeaveDelay", "prTooltipLeaveDelay", "luTooltipDisabled", "prTooltipDisabled", "luTooltipOnlyForDisplay", "prTooltipOnlyForDisplay", "luTooltipPosition", "prTooltipPosition", "luTooltipWhenEllipsis", "prTooltipWhenEllipsis", "luTooltipAnchor", "prTooltipAnchor", "luTooltipTriggerAnchor", "prTooltipTriggerAnchor", "id"], exportAs: ["luTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
101
|
-
}
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PriorityLevelsComponent, decorators: [{
|
|
103
|
-
type: Component,
|
|
104
|
-
args: [{ selector: 'lu-priority-levels', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [IconComponent, LuTooltipTriggerDirective], host: {
|
|
105
|
-
class: 'priorityLevels',
|
|
106
|
-
'[class.mod-low]': 'level() === 1',
|
|
107
|
-
'[class.mod-medium]': 'level() === 2',
|
|
108
|
-
'[class.mod-high]': 'level() === 3',
|
|
109
|
-
'[class.mod-S]': "size() === 'S'",
|
|
110
|
-
'[class.mod-L]': "size() === 'L'",
|
|
111
|
-
}, template: "<lu-icon\n\ticon=\"priorityLevels\"\n\tclass=\"priorityLevels-icon\"\n\t[size]=\"iconSize()\"\n\t[luTooltip]=\"label()\"\n\tluTooltipOnlyForDisplay\n\t[luTooltipDisabled]=\"!hiddenLabel()\"\n/>\n<span class=\"priorityLevels-label\" [class.pr-u-mask]=\"hiddenLabel()\">{{ label() }}</span>\n", styles: ["@layer components{.priorityLevels{--components-priorityLevels-font: var(--pr-t-font-body-S);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-S-lineHeight);--components-priorityLevels-gap: var(--pr-t-spacings-50);--components-priorityLevels-icon-color1: var(--palettes-neutral-400);--components-priorityLevels-icon-color2: var(--palettes-neutral-400);--components-priorityLevels-icon-color3: var(--palettes-neutral-400);display:flex;align-items:center;color:var(--pr-t-color-text);font:var(--components-priorityLevels-font);gap:var(--components-priorityLevels-gap);min-block-size:var(--components-priorityLevels-minBlockSize)}.priorityLevels-icon{display:inline-flex}.priorityLevels-icon:focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:2px;border-radius:var(--pr-t-border-radius-small)}.priorityLevels-icon .lucca-icon:before{background:linear-gradient(to right,var(--components-priorityLevels-icon-color1) 0%,var(--components-priorityLevels-icon-color1) 33.3333333333%,var(--components-priorityLevels-icon-color2) 33.3333333333%,var(--components-priorityLevels-icon-color2) 66.6666666667%,var(--components-priorityLevels-icon-color3) 66.6666666667%,var(--components-priorityLevels-icon-color3) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}}@layer mods{.priorityLevels.mod-low{--components-priorityLevels-icon-color1: var(--pr-t-color-text);--components-priorityLevels-icon-color2: var(--palettes-neutral-400);--components-priorityLevels-icon-color3: var(--palettes-neutral-400)}.priorityLevels.mod-medium{--components-priorityLevels-icon-color1: var(--palettes-warning-800);--components-priorityLevels-icon-color2: var(--palettes-warning-800);--components-priorityLevels-icon-color3: var(--palettes-neutral-400)}.priorityLevels.mod-high{--components-priorityLevels-icon-color1: var(--palettes-critical-800);--components-priorityLevels-icon-color2: var(--palettes-critical-800);--components-priorityLevels-icon-color3: var(--palettes-critical-800)}.priorityLevels.mod-S{--components-priorityLevels-font: var(--pr-t-font-body-XS);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-XS-lineHeight);--components-priorityLevels-gap: var(--pr-t-spacings-25)}.priorityLevels.mod-L{--components-priorityLevels-font: var(--pr-t-font-body-M);--components-priorityLevels-minBlockSize: var(--pr-t-font-body-M-lineHeight)}}\n"] }]
|
|
112
|
-
}], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], intl: [{ type: i0.Input, args: [{ isSignal: true, alias: "intl", required: false }] }], hiddenLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenLabel", required: false }] }] } });
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Available PriorityLevelsComponent levels (1 = low, 2 = medium, 3 = high)
|
|
116
|
-
*/
|
|
117
|
-
const PRIORITY_LEVELS = [1, 2, 3];
|
|
118
|
-
/**
|
|
119
|
-
* Available PriorityLevelsComponent sizes
|
|
120
|
-
*/
|
|
121
|
-
const PRIORITY_LEVELS_SIZES = ['S', 'M', 'L'];
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Generated bundle index. Do not edit.
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
export { PRIORITY_LEVELS, PRIORITY_LEVELS_SIZES, PriorityLevelsComponent };
|
|
128
|
-
//# sourceMappingURL=lucca-front-ng-priority-levels.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-priority-levels.mjs","sources":["../../../packages/ng/priority-levels/translations.ts","../../../packages/ng/priority-levels/priority-levels.translate.ts","../../../packages/ng/priority-levels/priority-levels.component.ts","../../../packages/ng/priority-levels/priority-levels.component.html","../../../packages/ng/priority-levels/priority-levels.type.ts","../../../packages/ng/priority-levels/lucca-front-ng-priority-levels.ts"],"sourcesContent":["export const Translations = {\n\ten: {\n\t\tlow: 'Low',\n\t\tmedium: 'Medium',\n\t\thigh: 'High',\n\t},\n\tde: {\n\t\tlow: 'Niedrig',\n\t\tmedium: 'Mittel',\n\t\thigh: 'Hoch',\n\t},\n\tfr: {\n\t\tlow: 'Basse',\n\t\tmedium: 'Moyenne',\n\t\thigh: 'Haute',\n\t},\n\tit: {\n\t\tlow: 'Bassa',\n\t\tmedium: 'Media',\n\t\thigh: 'Alta',\n\t},\n\tnl: {\n\t\tlow: 'Laag',\n\t\tmedium: 'Gemiddeld',\n\t\thigh: 'Hoog',\n\t},\n\t'nl-BE': {\n\t\tlow: 'Laag',\n\t\tmedium: 'Gemiddeld',\n\t\thigh: 'Hoog',\n\t},\n\tes: {\n\t\tlow: 'Baja',\n\t\tmedium: 'Media',\n\t\thigh: 'Alta',\n\t},\n\tpt: {\n\t\tlow: 'Baixa',\n\t\tmedium: 'Média',\n\t\thigh: 'Alta',\n\t},\n\tpl: {\n\t\tlow: 'Niski',\n\t\tmedium: 'Średni',\n\t\thigh: 'Wysoki',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_PRIORITY_LEVELS_TRANSLATIONS = new InjectionToken('luPriorityLevelsTranslations', {\n\tfactory: () => luPriorityLevelsTranslations,\n});\n\nexport interface PriorityLevelsTranslate {\n\tlow: string;\n\tmedium: string;\n\thigh: string;\n}\n\nexport const luPriorityLevelsTranslations: LuTranslation<PriorityLevelsTranslate> = Translations;\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { intlInputOptions, luNumberAttribute } from '@lucca-front/ng/core';\nimport { IconComponent, IconSize } from '@lucca-front/ng/icon';\nimport { LuTooltipTriggerDirective } from '@lucca-front/ng/tooltip';\nimport { LU_PRIORITY_LEVELS_TRANSLATIONS } from './priority-levels.translate';\nimport { PriorityLevel, PriorityLevelsSize } from './priority-levels.type';\n\nconst LEVEL_TRANSLATION_KEYS = {\n\t1: 'low',\n\t2: 'medium',\n\t3: 'high',\n} as const;\n\n@Component({\n\tselector: 'lu-priority-levels',\n\ttemplateUrl: './priority-levels.component.html',\n\tstyleUrl: './priority-levels.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [IconComponent, LuTooltipTriggerDirective],\n\thost: {\n\t\tclass: 'priorityLevels',\n\t\t'[class.mod-low]': 'level() === 1',\n\t\t'[class.mod-medium]': 'level() === 2',\n\t\t'[class.mod-high]': 'level() === 3',\n\t\t'[class.mod-S]': \"size() === 'S'\",\n\t\t'[class.mod-L]': \"size() === 'L'\",\n\t},\n})\nexport class PriorityLevelsComponent {\n\t/**\n\t * Which priority level should be displayed (1 = low, 2 = medium, 3 = high)\n\t */\n\treadonly level = input.required({ transform: luNumberAttribute<PriorityLevel> });\n\n\t/**\n\t * Which size should the component be? Defaults to M\n\t */\n\treadonly size = input<PriorityLevelsSize>('M');\n\n\t/**\n\t * Overrides for the default translations\n\t */\n\treadonly intl = input(...intlInputOptions(LU_PRIORITY_LEVELS_TRANSLATIONS));\n\n\t/**\n\t * Visually hides the label while keeping it in the DOM for screen readers, and shows it in a tooltip on the icon instead\n\t */\n\treadonly hiddenLabel = input(false, { transform: booleanAttribute });\n\n\treadonly label = computed(() => this.intl()[LEVEL_TRANSLATION_KEYS[this.level()]]);\n\n\treadonly iconSize = computed<IconSize>(() => {\n\t\tswitch (this.size()) {\n\t\t\tcase 'S':\n\t\t\t\treturn 'XXS';\n\t\t\tcase 'L':\n\t\t\t\treturn 'S';\n\t\t\tdefault:\n\t\t\t\treturn 'XS';\n\t\t}\n\t});\n}\n","<lu-icon\n\ticon=\"priorityLevels\"\n\tclass=\"priorityLevels-icon\"\n\t[size]=\"iconSize()\"\n\t[luTooltip]=\"label()\"\n\tluTooltipOnlyForDisplay\n\t[luTooltipDisabled]=\"!hiddenLabel()\"\n/>\n<span class=\"priorityLevels-label\" [class.pr-u-mask]=\"hiddenLabel()\">{{ label() }}</span>\n","/**\n * Available PriorityLevelsComponent levels (1 = low, 2 = medium, 3 = high)\n */\n\nexport const PRIORITY_LEVELS = [1, 2, 3] as const;\nexport type PriorityLevel = (typeof PRIORITY_LEVELS)[number];\n\n/**\n * Available PriorityLevelsComponent sizes\n */\n\nexport const PRIORITY_LEVELS_SIZES = ['S', 'M', 'L'] as const;\nexport type PriorityLevelsSize = (typeof PRIORITY_LEVELS_SIZES)[number];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,YAAY,GAAG;AAC3B,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,KAAK;AACV,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,SAAS;AACd,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,IAAI,EAAE,OAAO;AACb,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE,OAAO;AACf,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,GAAG,EAAE,MAAM;AACX,QAAA,MAAM,EAAE,WAAW;AACnB,QAAA,IAAI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