@lucca-front/ng 19.1.6 → 19.2.0
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/chip/chip.component.d.ts +12 -0
- package/chip/chip.translate.d.ts +7 -0
- package/chip/index.d.ts +5 -0
- package/chip/public-api.d.ts +1 -0
- package/chip/translations.d.ts +26 -0
- package/core-select/input/select-input.component.d.ts +13 -2
- package/core-select/no-clue/index.d.ts +1 -0
- package/core-select/no-clue/no-clue.directive.d.ts +6 -0
- package/core-select/option/option-outlet.directive.d.ts +1 -0
- package/core-select/public-api.d.ts +1 -0
- package/date/calendar/calendar-input.component.d.ts +1 -0
- package/date/calendar/calendar-input.translate.d.ts +8 -0
- package/date/calendar/translations.d.ts +34 -0
- package/date2/date-input/date-input.component.d.ts +18 -3
- package/date2/date-range-input/date-range-input.component.d.ts +12 -1
- package/date2/date2.translate.d.ts +2 -0
- package/date2/repeat-times.directive.d.ts +1 -0
- package/date2/translations.d.ts +4 -0
- package/department/service/department-v4.service.d.ts +1 -2
- package/fesm2022/lucca-front-ng-a11y.mjs +2 -2
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +6 -6
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +2 -2
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +6 -6
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +75 -0
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs +4 -4
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +63 -13
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +46 -5
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +141 -33
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +13 -10
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +6 -6
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +2 -2
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +3 -3
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +4 -4
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +6 -6
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +2 -2
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +294 -0
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-form-field.mjs +5 -3
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +36 -36
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -4
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +38 -10
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +2 -2
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +37 -3
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +3 -3
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +2 -2
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +101 -38
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +2 -2
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number-format.mjs +1 -6
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +18 -4
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +14 -14
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +2 -2
- package/fesm2022/lucca-front-ng-plg-push.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-popup-employee.mjs +2 -6
- package/fesm2022/lucca-front-ng-popup-employee.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-qualification.mjs +2 -2
- package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +63 -0
- package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-select.mjs +2 -2
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +79 -31
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +12 -12
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-statusBadge.mjs +2 -2
- package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +2 -2
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +4 -4
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +3 -3
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +8 -8
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/filter-pills/core/filter-pill-displayer.directive.d.ts +14 -0
- package/filter-pills/core/filter-pill-input-component.d.ts +17 -0
- package/filter-pills/core/filter-pill-label.directive.d.ts +15 -0
- package/filter-pills/core/index.d.ts +4 -0
- package/filter-pills/core/tokens.d.ts +4 -0
- package/filter-pills/filter-bar/filter-bar.component.d.ts +14 -0
- package/filter-pills/filter-bar/filter-pill-addon.directive.d.ts +13 -0
- package/filter-pills/filter-pill/filter-pill.component.d.ts +45 -0
- package/filter-pills/filter-pills.translate.d.ts +9 -0
- package/filter-pills/index.d.ts +5 -0
- package/filter-pills/public-api.d.ts +4 -0
- package/filter-pills/translations.d.ts +42 -0
- package/form-field/form-field.component.d.ts +2 -1
- package/formly/style/_components.scss +4 -3
- package/formly/style/main.scss +2 -2
- package/forms/checkbox-input/checkbox-input.component.d.ts +13 -1
- package/forms/phone-number-input/phone-number-input.component.d.ts +3 -1
- package/input/clearer/clearer.component.d.ts +1 -0
- package/input/clearer/clearer.translate.d.ts +7 -0
- package/input/clearer/translations.d.ts +26 -0
- package/link/link.component.d.ts +1 -1
- package/link/link.translate.d.ts +3 -3
- package/multi-select/displayer/default-displayer.component.d.ts +1 -0
- package/multi-select/input/panel-ref.factory.d.ts +2 -1
- package/multi-select/input/panel.model.d.ts +1 -1
- package/multi-select/input/select-input.component.d.ts +11 -3
- package/numeric-badge/numeric-badge.component.d.ts +4 -1
- package/package.json +56 -44
- package/popup-employee/card/trigger/user-popover-trigger.directive.d.ts +0 -4
- package/schematics/action-icon/index.js +3 -7
- package/schematics/action-icon/migration.js +3 -3
- package/schematics/action-icon/schema.json +21 -5
- package/schematics/cdn-urls/index.js +21 -0
- package/schematics/cdn-urls/migration.js +81 -0
- package/schematics/cdn-urls/migration.spec.js +50 -0
- package/schematics/cdn-urls/schema.json +23 -0
- package/schematics/collection.json +38 -28
- package/schematics/empty-state-title/index.js +4 -8
- package/schematics/empty-state-title/schema.json +21 -5
- package/schematics/lib/angular-component-ast.js +215 -0
- package/schematics/lib/angular-template.js +52 -12
- package/schematics/lib/css-mapper.js +14 -14
- package/schematics/lib/html-ast.js +25 -25
- package/schematics/lib/lf-schematic-context.js +51 -0
- package/schematics/lib/migration-test.js +9 -0
- package/schematics/lib/scss-ast.js +3 -3
- package/schematics/lu-select/index.js +24 -0
- package/schematics/lu-select/migration.js +319 -0
- package/schematics/lu-select/migration.spec.js +23 -0
- package/schematics/lu-select/model/select-context.js +17 -0
- package/schematics/lu-select/schema.json +28 -0
- package/schematics/lu-select/util.js +241 -0
- package/schematics/new-icons/index.js +4 -8
- package/schematics/new-icons/migration.js +11 -10
- package/schematics/new-icons/schema.json +21 -5
- package/schematics/palettes/index.js +7 -10
- package/schematics/palettes/schema.json +21 -5
- package/schematics/tokens-spacing/index.js +7 -10
- package/schematics/tokens-spacing/schema.json +21 -5
- package/scrollBox/index.d.ts +5 -0
- package/scrollBox/public-api.d.ts +1 -0
- package/scrollBox/scroll-box.component.d.ts +13 -0
- package/simple-select/input/panel-ref.factory.d.ts +2 -1
- package/simple-select/input/select-input.component.d.ts +5 -0
- package/simple-select/panel/panel.component.d.ts +1 -1
- package/src/_components.scss +12 -12
- package/src/_definitions.scss +6 -6
- package/src/components/_picker.scss +25 -23
- package/src/components/_popover.scss +3 -2
- package/src/components/_popup.scss +37 -34
- package/src/components/_sidepanel.scss +11 -12
- package/src/components/cdk/_dragDrop.scss +4 -4
- package/src/components/cdk/_global.scss +10 -11
- package/src/components/cdk/_misc.scss +2 -2
- package/src/components/cdk/_overlay.scss +11 -14
- package/src/components/cdk/_textarea.scss +8 -6
- package/src/definitions/option/_option-item.scss +15 -15
- package/src/definitions/option/_option-placeholder.scss +2 -1
- package/src/definitions/option/_option-searcher.scss +4 -3
- package/src/definitions/select/_select-input.scss +43 -46
- package/src/definitions/user/user-picture.scss +1 -1
- package/src/definitions/user/user-tile.scss +4 -3
- package/src/main.scss +2 -2
- package/src/components/_dropdown.scss +0 -84
|
@@ -28,6 +28,7 @@ export declare class FormFieldComponent implements OnDestroy {
|
|
|
28
28
|
inline: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
29
|
statusControl: import("@angular/core").InputSignal<AbstractControl<any, any>>;
|
|
30
30
|
tooltip: import("@angular/core").InputSignal<string | SafeHtml>;
|
|
31
|
+
width: import("@angular/core").InputSignal<20 | 30 | 40 | 50 | 60>;
|
|
31
32
|
invalidStatus: import("@angular/core").Signal<boolean>;
|
|
32
33
|
invalid: import("@angular/core").InputSignalWithTransform<boolean, boolean>;
|
|
33
34
|
inlineMessage: import("@angular/core").InputSignal<PortalContent>;
|
|
@@ -59,5 +60,5 @@ export declare class FormFieldComponent implements OnDestroy {
|
|
|
59
60
|
private updateAria;
|
|
60
61
|
ngOnDestroy(): void;
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "lu-form-field", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hiddenLabel": { "alias": "hiddenLabel"; "required": false; "isSignal": true; }; "rolePresentationLabel": { "alias": "rolePresentationLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "statusControl": { "alias": "statusControl"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "inlineMessage": { "alias": "inlineMessage"; "required": false; "isSignal": true; }; "errorInlineMessage": { "alias": "errorInlineMessage"; "required": false; "isSignal": true; }; "inlineMessageState": { "alias": "inlineMessageState"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "counter": { "alias": "counter"; "required": false; "isSignal": true; }; }, { "rolePresentationLabel": "rolePresentationLabelChange"; "layout": "layoutChange"; }, ["formFieldChildren", "requiredValidators", "ngControls"], ["*"], true, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "lu-form-field", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "hiddenLabel": { "alias": "hiddenLabel"; "required": false; "isSignal": true; }; "rolePresentationLabel": { "alias": "rolePresentationLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "statusControl": { "alias": "statusControl"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "inlineMessage": { "alias": "inlineMessage"; "required": false; "isSignal": true; }; "errorInlineMessage": { "alias": "errorInlineMessage"; "required": false; "isSignal": true; }; "inlineMessageState": { "alias": "inlineMessageState"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "counter": { "alias": "counter"; "required": false; "isSignal": true; }; }, { "rolePresentationLabel": "rolePresentationLabelChange"; "layout": "layoutChange"; }, ["formFieldChildren", "requiredValidators", "ngControls"], ["*"], true, never>;
|
|
63
64
|
}
|
|
@@ -4,10 +4,11 @@ formly-field {
|
|
|
4
4
|
display: inherit;
|
|
5
5
|
flex-wrap: inherit;
|
|
6
6
|
flex-direction: inherit;
|
|
7
|
-
|
|
7
|
+
inline-size: 100%;
|
|
8
8
|
}
|
|
9
9
|
formly-form .checkboxesfield:not(fieldset),
|
|
10
10
|
formly-form .radiosfield:not(fieldset) {
|
|
11
|
-
margin-
|
|
12
|
-
padding: var(--components-field-framed-side-padding) var(--components-field-framed-
|
|
11
|
+
margin-block-start: 0 !important;
|
|
12
|
+
padding-block: var(--components-field-framed-side-padding) var(--components-field-framed-bottom-padding) !important;
|
|
13
|
+
padding-inline: var(--components-field-framed-side-padding) !important;
|
|
13
14
|
}
|
package/formly/style/main.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@forward 'theming';
|
|
2
|
+
@forward 'components';
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { FilterPillInputComponent, FilterPillLayout } from '@lucca-front/ng/filter-pills';
|
|
1
3
|
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
import * as i1 from "../noop-value-accessor.directive";
|
|
4
|
-
export declare class CheckboxInputComponent {
|
|
6
|
+
export declare class CheckboxInputComponent implements FilterPillInputComponent {
|
|
5
7
|
formField: FormFieldComponent;
|
|
8
|
+
isFilterPill: boolean;
|
|
9
|
+
filterPillInputId: string;
|
|
10
|
+
filterPillLayout: Signal<FilterPillLayout>;
|
|
11
|
+
isFilterPillEmpty: Signal<boolean>;
|
|
12
|
+
hideCombobox: Signal<boolean>;
|
|
13
|
+
showColon: Signal<boolean>;
|
|
6
14
|
ngControl: import("@angular/forms").NgModel | import("@angular/forms").FormControlDirective | import("@angular/forms").FormControlName;
|
|
7
15
|
/**
|
|
8
16
|
* Should set aria-checked='mixed' attribute ?
|
|
9
17
|
*/
|
|
10
18
|
mixed: boolean;
|
|
11
19
|
constructor();
|
|
20
|
+
clearFilterPillValue(): void;
|
|
21
|
+
registerFilterPillClosePopover(_closeFn: () => void): void;
|
|
22
|
+
enableFilterPillMode?(): void;
|
|
23
|
+
onFilterPillClick(): void;
|
|
12
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxInputComponent, never>;
|
|
13
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxInputComponent, "lu-checkbox-input", never, { "mixed": { "alias": "mixed"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
14
26
|
static ngAcceptInputType_mixed: unknown;
|
|
@@ -11,6 +11,7 @@ export declare class PhoneNumberInputComponent implements ControlValueAccessor,
|
|
|
11
11
|
#private;
|
|
12
12
|
label: string;
|
|
13
13
|
autocomplete?: 'off' | 'tel';
|
|
14
|
+
noAutoPlaceholder: import("@angular/core").InputSignal<boolean>;
|
|
14
15
|
disabled: boolean;
|
|
15
16
|
prefixEntries: {
|
|
16
17
|
country: CountryCode;
|
|
@@ -33,6 +34,7 @@ export declare class PhoneNumberInputComponent implements ControlValueAccessor,
|
|
|
33
34
|
countryChange: import("@angular/core").OutputEmitterRef<CountryCode>;
|
|
34
35
|
countryCodeSelected: import("@angular/core").WritableSignal<CountryCode>;
|
|
35
36
|
countryCode: import("@angular/core").Signal<CountryCode>;
|
|
37
|
+
placeholder: import("@angular/core").Signal<string>;
|
|
36
38
|
displayedNumber: import("@angular/core").WritableSignal<string>;
|
|
37
39
|
prefixEntry: import("@angular/core").Signal<{
|
|
38
40
|
country: CountryCode;
|
|
@@ -52,6 +54,6 @@ export declare class PhoneNumberInputComponent implements ControlValueAccessor,
|
|
|
52
54
|
formatNationalNumber(): void;
|
|
53
55
|
validate(control: AbstractControl<string, string>): ValidationErrors;
|
|
54
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberInputComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneNumberInputComponent, "lu-phone-number-input", never, { "label": { "alias": "label"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "allowedCountries": { "alias": "allowedCountries"; "required": false; "isSignal": true; }; "defaultCountryCode": { "alias": "country"; "required": false; "isSignal": true; }; }, { "countryChange": "countryChange"; }, never, never, true, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhoneNumberInputComponent, "lu-phone-number-input", never, { "label": { "alias": "label"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "noAutoPlaceholder": { "alias": "noAutoPlaceholder"; "required": false; "isSignal": true; }; "allowedCountries": { "alias": "allowedCountries"; "required": false; "isSignal": true; }; "defaultCountryCode": { "alias": "country"; "required": false; "isSignal": true; }; }, { "countryChange": "countryChange"; }, never, never, true, never>;
|
|
56
58
|
}
|
|
57
59
|
export {};
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { ALuClearer, ILuClearer } from './clearer.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LuInputClearerComponent<T> extends ALuClearer<T> implements ILuClearer<T> {
|
|
5
|
+
intl: import("./clearer.translate").LuClearerLabel;
|
|
5
6
|
onClear: EventEmitter<T>;
|
|
6
7
|
onClick($event: Event): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuInputClearerComponent<any>, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { LuTranslation } from '@lucca-front/ng/core';
|
|
3
|
+
export declare const LU_CLEARER_TRANSLATIONS: InjectionToken<LuTranslation<LuClearerLabel>>;
|
|
4
|
+
export interface LuClearerLabel {
|
|
5
|
+
clear: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const luClearerTranslations: LuTranslation<LuClearerLabel>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const Translations: {
|
|
2
|
+
en: {
|
|
3
|
+
clear: string;
|
|
4
|
+
};
|
|
5
|
+
de: {
|
|
6
|
+
clear: string;
|
|
7
|
+
};
|
|
8
|
+
fr: {
|
|
9
|
+
clear: string;
|
|
10
|
+
};
|
|
11
|
+
it: {
|
|
12
|
+
clear: string;
|
|
13
|
+
};
|
|
14
|
+
nl: {
|
|
15
|
+
clear: string;
|
|
16
|
+
};
|
|
17
|
+
'nl-BE': {
|
|
18
|
+
clear: string;
|
|
19
|
+
};
|
|
20
|
+
es: {
|
|
21
|
+
clear: string;
|
|
22
|
+
};
|
|
23
|
+
pt: {
|
|
24
|
+
clear: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
package/link/link.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "@angular/router";
|
|
4
4
|
export declare class LinkComponent implements OnDestroy {
|
|
5
5
|
#private;
|
|
6
|
-
intl: import("./link.translate").
|
|
6
|
+
intl: import("./link.translate").LinkTranslate;
|
|
7
7
|
routerLinkCommands: import("@angular/core").InputSignal<string | any[] | import("@angular/router").UrlTree>;
|
|
8
8
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, boolean>;
|
|
9
9
|
decorationHover: boolean;
|
package/link/link.translate.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { LuTranslation } from '@lucca-front/ng/core';
|
|
3
|
-
export declare const LU_LINK_TRANSLATIONS: InjectionToken<LuTranslation<
|
|
4
|
-
export interface
|
|
3
|
+
export declare const LU_LINK_TRANSLATIONS: InjectionToken<LuTranslation<LinkTranslate>>;
|
|
4
|
+
export interface LinkTranslate {
|
|
5
5
|
external: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const luLinkTranslations: LuTranslation<
|
|
7
|
+
export declare const luLinkTranslations: LuTranslation<LinkTranslate>;
|
|
@@ -13,6 +13,7 @@ export declare class LuMultiSelectDefaultDisplayerComponent<T> implements OnInit
|
|
|
13
13
|
overflowOptions$: import("rxjs").Observable<number>;
|
|
14
14
|
unselectOption(option: T, $event?: Event): void;
|
|
15
15
|
inputBackspace(): void;
|
|
16
|
+
inputSpace(event: Event): void;
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectDefaultDisplayerComponent<any>, never>;
|
|
18
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectDefaultDisplayerComponent<any>, "lu-multi-select-default-displayer", never, {}, {}, never, never, true, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConnectedPosition, Overlay, OverlayConfig, OverlayPositionBuilder, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
2
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { ElementRef, Injector, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { LuMultiSelectPanelRef } from './panel.model';
|
|
4
4
|
import { LuMultiSelectInputComponent } from './select-input.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,6 +12,7 @@ export declare class LuMultiSelectPanelRefFactory {
|
|
|
12
12
|
private selectLabelId;
|
|
13
13
|
private selectId;
|
|
14
14
|
buildPanelRef<T>(selectInput: LuMultiSelectInputComponent<T>, defaultOverlayConfigOverride?: OverlayConfig): LuMultiSelectPanelRef<T>;
|
|
15
|
+
buildAndAttachPanelRef<T>(selectInput: LuMultiSelectInputComponent<T>, host: ViewContainerRef): LuMultiSelectPanelRef<T>;
|
|
15
16
|
protected buildDefaultOverlayConfig(overlayConfigOverride?: OverlayConfig): OverlayConfig;
|
|
16
17
|
protected buildPosition(yDirection: 'top' | 'bottom', xDirection: 'left' | 'right', config: {
|
|
17
18
|
offsetX?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { LuSelectPanelRef } from '@lucca-front/ng/core-select';
|
|
3
3
|
export declare abstract class LuMultiSelectPanelRef<T> extends LuSelectPanelRef<T, T[]> {
|
|
4
|
-
abstract changeDetectorRef
|
|
4
|
+
abstract changeDetectorRef?: ChangeDetectorRef;
|
|
5
5
|
abstract updateSelectedOptions(selectedOptions: T[]): void;
|
|
6
6
|
abstract useDefaultPosition(): void;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit, TemplateRef, Type } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { ALuSelectInputComponent, LuOptionContext } from '@lucca-front/ng/core-select';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
@@ -7,9 +7,15 @@ import { LuMultiSelectPanelRef } from './panel.model';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class LuMultiSelectInputComponent<T> extends ALuSelectInputComponent<T, T[]> implements ControlValueAccessor, OnDestroy, OnInit {
|
|
9
9
|
intl: import("../select.translate").ILuMultiSelectLabel;
|
|
10
|
+
showColon: false;
|
|
10
11
|
valuesTpl: import("@angular/core").ModelSignal<Type<unknown> | TemplateRef<LuOptionContext<T[]>>>;
|
|
11
12
|
maxValuesShown: number;
|
|
12
13
|
keepSearchAfterSelection: boolean;
|
|
14
|
+
filterPillLabelPlural: string;
|
|
15
|
+
get filterPillClass(): boolean;
|
|
16
|
+
hideCombobox: import("@angular/core").Signal<boolean>;
|
|
17
|
+
filterPillPanelAnchorRef: import("@angular/core").Signal<ViewContainerRef>;
|
|
18
|
+
isFilterPillEmpty: import("@angular/core").Signal<boolean>;
|
|
13
19
|
_value: T[];
|
|
14
20
|
get panelRef(): LuMultiSelectPanelRef<T> | undefined;
|
|
15
21
|
protected _panelRef?: LuMultiSelectPanelRef<T>;
|
|
@@ -27,13 +33,15 @@ export declare class LuMultiSelectInputComponent<T> extends ALuSelectInputCompon
|
|
|
27
33
|
emptyClue(): void;
|
|
28
34
|
writeValue(value: T[]): void;
|
|
29
35
|
updateValue(value: T[], skipFocus?: boolean): void;
|
|
36
|
+
updatePosition(): void;
|
|
30
37
|
protected buildPanelRef(): LuMultiSelectPanelRef<T>;
|
|
31
38
|
protected bindInputToPanelRefEvents(): void;
|
|
39
|
+
enableFilterPillMode(): void;
|
|
32
40
|
hasValue(): boolean;
|
|
33
|
-
clearValue(event
|
|
41
|
+
clearValue(event?: Event): void;
|
|
34
42
|
ngOnDestroy(): void;
|
|
35
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectInputComponent<any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectInputComponent<any>, "lu-multi-select", never, { "valuesTpl": { "alias": "valuesTpl"; "required": false; "isSignal": true; }; "maxValuesShown": { "alias": "maxValuesShown"; "required": false; }; "keepSearchAfterSelection": { "alias": "keepSearchAfterSelection"; "required": false; }; }, { "valuesTpl": "valuesTplChange"; }, never, never, true, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectInputComponent<any>, "lu-multi-select", never, { "valuesTpl": { "alias": "valuesTpl"; "required": false; "isSignal": true; }; "maxValuesShown": { "alias": "maxValuesShown"; "required": false; }; "keepSearchAfterSelection": { "alias": "keepSearchAfterSelection"; "required": false; }; "filterPillLabelPlural": { "alias": "filterPillLabelPlural"; "required": false; }; }, { "valuesTpl": "valuesTplChange"; }, never, never, true, never>;
|
|
37
45
|
static ngAcceptInputType_maxValuesShown: unknown;
|
|
38
46
|
static ngAcceptInputType_keepSearchAfterSelection: unknown;
|
|
39
47
|
}
|
|
@@ -13,11 +13,14 @@ export declare class NumericBadgeComponent implements OnChanges {
|
|
|
13
13
|
size: 'XS' | 'S' | 'M';
|
|
14
14
|
loading: boolean;
|
|
15
15
|
get ariaHidden(): boolean;
|
|
16
|
+
maxValue: number;
|
|
17
|
+
disableTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
18
|
/**
|
|
17
19
|
* The palette to use for this badge. Defaults to 'none' (inherits parent palette)
|
|
18
20
|
*/
|
|
19
21
|
palette: Palette;
|
|
20
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
displayValue: () => string | number;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericBadgeComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericBadgeComponent, "lu-numeric-badge", never, { "value": { "alias": "value"; "required": true; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericBadgeComponent, "lu-numeric-badge", never, { "value": { "alias": "value"; "required": true; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "disableTooltip": { "alias": "disableTooltip"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/ng",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"description": "A library of icons made by the team @Lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@angular/common": "^19.0.0",
|
|
27
27
|
"@angular/core": "^19.0.0",
|
|
28
28
|
"@angular/cdk": "^19.0.0",
|
|
29
|
-
"@lucca-front/icons": "19.
|
|
30
|
-
"@lucca-front/scss": "19.
|
|
29
|
+
"@lucca-front/icons": "19.2.0",
|
|
30
|
+
"@lucca-front/scss": "19.2.0",
|
|
31
31
|
"isomorphic-dompurify": "^2.17.0",
|
|
32
32
|
"date-fns": "^3.6.0",
|
|
33
33
|
"rxjs": "^7.8.0"
|
|
@@ -49,17 +49,25 @@
|
|
|
49
49
|
"types": "./a11y/index.d.ts",
|
|
50
50
|
"default": "./fesm2022/lucca-front-ng-a11y.mjs"
|
|
51
51
|
},
|
|
52
|
+
"./button": {
|
|
53
|
+
"types": "./button/index.d.ts",
|
|
54
|
+
"default": "./fesm2022/lucca-front-ng-button.mjs"
|
|
55
|
+
},
|
|
52
56
|
"./animations": {
|
|
53
57
|
"types": "./animations/index.d.ts",
|
|
54
58
|
"default": "./fesm2022/lucca-front-ng-animations.mjs"
|
|
55
59
|
},
|
|
60
|
+
"./chip": {
|
|
61
|
+
"types": "./chip/index.d.ts",
|
|
62
|
+
"default": "./fesm2022/lucca-front-ng-chip.mjs"
|
|
63
|
+
},
|
|
56
64
|
"./callout": {
|
|
57
65
|
"types": "./callout/index.d.ts",
|
|
58
66
|
"default": "./fesm2022/lucca-front-ng-callout.mjs"
|
|
59
67
|
},
|
|
60
|
-
"./
|
|
61
|
-
"types": "./
|
|
62
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
68
|
+
"./api": {
|
|
69
|
+
"types": "./api/index.d.ts",
|
|
70
|
+
"default": "./fesm2022/lucca-front-ng-api.mjs"
|
|
63
71
|
},
|
|
64
72
|
"./comment": {
|
|
65
73
|
"types": "./comment/index.d.ts",
|
|
@@ -69,10 +77,6 @@
|
|
|
69
77
|
"types": "./core/index.d.ts",
|
|
70
78
|
"default": "./fesm2022/lucca-front-ng-core.mjs"
|
|
71
79
|
},
|
|
72
|
-
"./api": {
|
|
73
|
-
"types": "./api/index.d.ts",
|
|
74
|
-
"default": "./fesm2022/lucca-front-ng-api.mjs"
|
|
75
|
-
},
|
|
76
80
|
"./core-select": {
|
|
77
81
|
"types": "./core-select/index.d.ts",
|
|
78
82
|
"default": "./fesm2022/lucca-front-ng-core-select.mjs"
|
|
@@ -89,14 +93,14 @@
|
|
|
89
93
|
"types": "./department/index.d.ts",
|
|
90
94
|
"default": "./fesm2022/lucca-front-ng-department.mjs"
|
|
91
95
|
},
|
|
92
|
-
"./divider": {
|
|
93
|
-
"types": "./divider/index.d.ts",
|
|
94
|
-
"default": "./fesm2022/lucca-front-ng-divider.mjs"
|
|
95
|
-
},
|
|
96
96
|
"./dialog": {
|
|
97
97
|
"types": "./dialog/index.d.ts",
|
|
98
98
|
"default": "./fesm2022/lucca-front-ng-dialog.mjs"
|
|
99
99
|
},
|
|
100
|
+
"./divider": {
|
|
101
|
+
"types": "./divider/index.d.ts",
|
|
102
|
+
"default": "./fesm2022/lucca-front-ng-divider.mjs"
|
|
103
|
+
},
|
|
100
104
|
"./dropdown": {
|
|
101
105
|
"types": "./dropdown/index.d.ts",
|
|
102
106
|
"default": "./fesm2022/lucca-front-ng-dropdown.mjs"
|
|
@@ -109,25 +113,33 @@
|
|
|
109
113
|
"types": "./establishment/index.d.ts",
|
|
110
114
|
"default": "./fesm2022/lucca-front-ng-establishment.mjs"
|
|
111
115
|
},
|
|
112
|
-
"./form-field": {
|
|
113
|
-
"types": "./form-field/index.d.ts",
|
|
114
|
-
"default": "./fesm2022/lucca-front-ng-form-field.mjs"
|
|
115
|
-
},
|
|
116
116
|
"./fancy-box": {
|
|
117
117
|
"types": "./fancy-box/index.d.ts",
|
|
118
118
|
"default": "./fesm2022/lucca-front-ng-fancy-box.mjs"
|
|
119
119
|
},
|
|
120
|
+
"./filter-pills": {
|
|
121
|
+
"types": "./filter-pills/index.d.ts",
|
|
122
|
+
"default": "./fesm2022/lucca-front-ng-filter-pills.mjs"
|
|
123
|
+
},
|
|
124
|
+
"./form-field": {
|
|
125
|
+
"types": "./form-field/index.d.ts",
|
|
126
|
+
"default": "./fesm2022/lucca-front-ng-form-field.mjs"
|
|
127
|
+
},
|
|
120
128
|
"./formly": {
|
|
121
129
|
"types": "./formly/index.d.ts",
|
|
122
130
|
"default": "./fesm2022/lucca-front-ng-formly.mjs"
|
|
123
131
|
},
|
|
132
|
+
"./icon": {
|
|
133
|
+
"types": "./icon/index.d.ts",
|
|
134
|
+
"default": "./fesm2022/lucca-front-ng-icon.mjs"
|
|
135
|
+
},
|
|
124
136
|
"./forms": {
|
|
125
137
|
"types": "./forms/index.d.ts",
|
|
126
138
|
"default": "./fesm2022/lucca-front-ng-forms.mjs"
|
|
127
139
|
},
|
|
128
|
-
"./
|
|
129
|
-
"types": "./
|
|
130
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
140
|
+
"./inline-message": {
|
|
141
|
+
"types": "./inline-message/index.d.ts",
|
|
142
|
+
"default": "./fesm2022/lucca-front-ng-inline-message.mjs"
|
|
131
143
|
},
|
|
132
144
|
"./input": {
|
|
133
145
|
"types": "./input/index.d.ts",
|
|
@@ -137,21 +149,21 @@
|
|
|
137
149
|
"types": "./link/index.d.ts",
|
|
138
150
|
"default": "./fesm2022/lucca-front-ng-link.mjs"
|
|
139
151
|
},
|
|
140
|
-
"./inline-message": {
|
|
141
|
-
"types": "./inline-message/index.d.ts",
|
|
142
|
-
"default": "./fesm2022/lucca-front-ng-inline-message.mjs"
|
|
143
|
-
},
|
|
144
152
|
"./modal": {
|
|
145
153
|
"types": "./modal/index.d.ts",
|
|
146
154
|
"default": "./fesm2022/lucca-front-ng-modal.mjs"
|
|
147
155
|
},
|
|
156
|
+
"./new-badge": {
|
|
157
|
+
"types": "./new-badge/index.d.ts",
|
|
158
|
+
"default": "./fesm2022/lucca-front-ng-new-badge.mjs"
|
|
159
|
+
},
|
|
148
160
|
"./multi-select": {
|
|
149
161
|
"types": "./multi-select/index.d.ts",
|
|
150
162
|
"default": "./fesm2022/lucca-front-ng-multi-select.mjs"
|
|
151
163
|
},
|
|
152
|
-
"./
|
|
153
|
-
"types": "./
|
|
154
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
164
|
+
"./number": {
|
|
165
|
+
"types": "./number/index.d.ts",
|
|
166
|
+
"default": "./fesm2022/lucca-front-ng-number.mjs"
|
|
155
167
|
},
|
|
156
168
|
"./number-format": {
|
|
157
169
|
"types": "./number-format/index.d.ts",
|
|
@@ -161,10 +173,6 @@
|
|
|
161
173
|
"types": "./numeric-badge/index.d.ts",
|
|
162
174
|
"default": "./fesm2022/lucca-front-ng-numeric-badge.mjs"
|
|
163
175
|
},
|
|
164
|
-
"./number": {
|
|
165
|
-
"types": "./number/index.d.ts",
|
|
166
|
-
"default": "./fesm2022/lucca-front-ng-number.mjs"
|
|
167
|
-
},
|
|
168
176
|
"./option": {
|
|
169
177
|
"types": "./option/index.d.ts",
|
|
170
178
|
"default": "./fesm2022/lucca-front-ng-option.mjs"
|
|
@@ -177,6 +185,10 @@
|
|
|
177
185
|
"types": "./plg-push/index.d.ts",
|
|
178
186
|
"default": "./fesm2022/lucca-front-ng-plg-push.mjs"
|
|
179
187
|
},
|
|
188
|
+
"./popover": {
|
|
189
|
+
"types": "./popover/index.d.ts",
|
|
190
|
+
"default": "./fesm2022/lucca-front-ng-popover.mjs"
|
|
191
|
+
},
|
|
180
192
|
"./popover2": {
|
|
181
193
|
"types": "./popover2/index.d.ts",
|
|
182
194
|
"default": "./fesm2022/lucca-front-ng-popover2.mjs"
|
|
@@ -185,10 +197,6 @@
|
|
|
185
197
|
"types": "./popup/index.d.ts",
|
|
186
198
|
"default": "./fesm2022/lucca-front-ng-popup.mjs"
|
|
187
199
|
},
|
|
188
|
-
"./popover": {
|
|
189
|
-
"types": "./popover/index.d.ts",
|
|
190
|
-
"default": "./fesm2022/lucca-front-ng-popover.mjs"
|
|
191
|
-
},
|
|
192
200
|
"./popup-employee": {
|
|
193
201
|
"types": "./popup-employee/index.d.ts",
|
|
194
202
|
"default": "./fesm2022/lucca-front-ng-popup-employee.mjs"
|
|
@@ -205,6 +213,10 @@
|
|
|
205
213
|
"types": "./scroll/index.d.ts",
|
|
206
214
|
"default": "./fesm2022/lucca-front-ng-scroll.mjs"
|
|
207
215
|
},
|
|
216
|
+
"./scrollBox": {
|
|
217
|
+
"types": "./scrollBox/index.d.ts",
|
|
218
|
+
"default": "./fesm2022/lucca-front-ng-scrollBox.mjs"
|
|
219
|
+
},
|
|
208
220
|
"./select": {
|
|
209
221
|
"types": "./select/index.d.ts",
|
|
210
222
|
"default": "./fesm2022/lucca-front-ng-select.mjs"
|
|
@@ -217,14 +229,14 @@
|
|
|
217
229
|
"types": "./simple-select/index.d.ts",
|
|
218
230
|
"default": "./fesm2022/lucca-front-ng-simple-select.mjs"
|
|
219
231
|
},
|
|
220
|
-
"./skeleton": {
|
|
221
|
-
"types": "./skeleton/index.d.ts",
|
|
222
|
-
"default": "./fesm2022/lucca-front-ng-skeleton.mjs"
|
|
223
|
-
},
|
|
224
232
|
"./statusBadge": {
|
|
225
233
|
"types": "./statusBadge/index.d.ts",
|
|
226
234
|
"default": "./fesm2022/lucca-front-ng-statusBadge.mjs"
|
|
227
235
|
},
|
|
236
|
+
"./skeleton": {
|
|
237
|
+
"types": "./skeleton/index.d.ts",
|
|
238
|
+
"default": "./fesm2022/lucca-front-ng-skeleton.mjs"
|
|
239
|
+
},
|
|
228
240
|
"./tag": {
|
|
229
241
|
"types": "./tag/index.d.ts",
|
|
230
242
|
"default": "./fesm2022/lucca-front-ng-tag.mjs"
|
|
@@ -237,14 +249,14 @@
|
|
|
237
249
|
"types": "./title/index.d.ts",
|
|
238
250
|
"default": "./fesm2022/lucca-front-ng-title.mjs"
|
|
239
251
|
},
|
|
240
|
-
"./tooltip": {
|
|
241
|
-
"types": "./tooltip/index.d.ts",
|
|
242
|
-
"default": "./fesm2022/lucca-front-ng-tooltip.mjs"
|
|
243
|
-
},
|
|
244
252
|
"./toast": {
|
|
245
253
|
"types": "./toast/index.d.ts",
|
|
246
254
|
"default": "./fesm2022/lucca-front-ng-toast.mjs"
|
|
247
255
|
},
|
|
256
|
+
"./tooltip": {
|
|
257
|
+
"types": "./tooltip/index.d.ts",
|
|
258
|
+
"default": "./fesm2022/lucca-front-ng-tooltip.mjs"
|
|
259
|
+
},
|
|
248
260
|
"./user": {
|
|
249
261
|
"types": "./user/index.d.ts",
|
|
250
262
|
"default": "./fesm2022/lucca-front-ng-user.mjs"
|
|
@@ -6,10 +6,6 @@ import { ILuUser } from '@lucca-front/ng/user';
|
|
|
6
6
|
import { LuUserPopoverPanelComponent } from '../panel/user-popover-panel.component';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* This directive is intended to be used in conjunction with an lu-dropdown tag. It is
|
|
11
|
-
* responsible for toggling the display of the provided dropdown instance.
|
|
12
|
-
*/
|
|
13
9
|
export declare class LuUserPopoverDirective extends ALuPopoverTrigger<LuUserPopoverPanelComponent, LuPopoverTarget> implements AfterViewInit, OnDestroy {
|
|
14
10
|
protected _overlay: Overlay;
|
|
15
11
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const installer_1 = require("../lib/local-deps/installer");
|
|
4
3
|
const schematics_1 = require("../lib/schematics");
|
|
5
4
|
const migration_1 = require("./migration");
|
|
5
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
6
6
|
// Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
8
8
|
require('@angular-devkit/schematics');
|
|
9
9
|
exports.default = (options) => {
|
|
10
|
-
const skipInstallation = options?.skipInstallation ?? false;
|
|
11
10
|
return async (tree, context) => {
|
|
12
|
-
|
|
13
|
-
(0, installer_1.installLocalDependencies)(context);
|
|
14
|
-
}
|
|
11
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
15
12
|
const postCssScss = await Promise.resolve().then(() => require('../lib/local-deps/postcss-scss.js'));
|
|
16
|
-
const angularCompiler = await Promise.resolve().then(() => require('@angular/compiler'));
|
|
17
13
|
tree.visit((path, entry) => {
|
|
18
14
|
if (path.includes('node_modules') || !entry) {
|
|
19
15
|
return;
|
|
@@ -22,7 +18,7 @@ exports.default = (options) => {
|
|
|
22
18
|
(0, schematics_1.migrateFile)(path, entry, tree, (content) => (0, migration_1.migrateScssFile)(content, postCssScss));
|
|
23
19
|
}
|
|
24
20
|
if (path.endsWith('.html')) {
|
|
25
|
-
(0, schematics_1.migrateFile)(path, entry, tree, (content) => (0, migration_1.migrateHTMLFile)(content
|
|
21
|
+
(0, schematics_1.migrateFile)(path, entry, tree, (content) => (0, migration_1.migrateHTMLFile)(content));
|
|
26
22
|
}
|
|
27
23
|
});
|
|
28
24
|
};
|
|
@@ -14,9 +14,9 @@ function migrateScssFile(content, postCssScss) {
|
|
|
14
14
|
});
|
|
15
15
|
return root.toResult({ syntax: { stringify: postCssScss.stringify } }).css;
|
|
16
16
|
}
|
|
17
|
-
function migrateHTMLFile(content
|
|
17
|
+
function migrateHTMLFile(content) {
|
|
18
18
|
return (0, file_update_js_1.updateContent)(content, (updates) => {
|
|
19
|
-
const htmlAst = new html_ast_js_1.HtmlAst(content
|
|
19
|
+
const htmlAst = new html_ast_js_1.HtmlAst(content);
|
|
20
20
|
htmlAst.visitElementWithAttribute(/.*/, 'class', (elem, attr) => {
|
|
21
21
|
const classes = attr.value;
|
|
22
22
|
if (classes.includes('actionIcon') && attr.valueSpan) {
|
|
@@ -30,7 +30,7 @@ function migrateHTMLFile(content, angularCompiler) {
|
|
|
30
30
|
updates.push({
|
|
31
31
|
position: attr.valueSpan.start.offset,
|
|
32
32
|
oldContent: attr.value,
|
|
33
|
-
newContent: newClasses
|
|
33
|
+
newContent: newClasses
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontActionIcon",
|
|
4
|
+
"title": "Lucca Front Action Icon Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"dryRun": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Run through the migration without making any changes.",
|
|
10
|
+
"default": false
|
|
11
|
+
},
|
|
12
|
+
"skipInstall": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Skip installing dependencies.",
|
|
15
|
+
"default": false
|
|
16
|
+
},
|
|
17
|
+
"verbose": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Enable verbose logging.",
|
|
20
|
+
"default": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
7
23
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("../lib/schematics");
|
|
4
|
+
const migration_1 = require("./migration");
|
|
5
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
6
|
+
// Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
8
|
+
require('@angular-devkit/schematics');
|
|
9
|
+
exports.default = (options) => {
|
|
10
|
+
return async (tree, context) => {
|
|
11
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
12
|
+
tree.visit((path, entry) => {
|
|
13
|
+
if (path.includes('node_modules') || !entry) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (path.endsWith('.html')) {
|
|
17
|
+
(0, schematics_1.migrateFile)(path, entry, tree, (content) => (0, migration_1.migrateHTMLFile)(content));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
};
|