@lucca-front/ng 20.3.3-rc.3 → 20.3.3-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/callout/index.d.ts +2 -8
- package/chip/index.d.ts +2 -3
- package/core-select/department/index.d.ts +1 -1
- package/core-select/index.d.ts +10 -2
- package/data-table/index.d.ts +14 -46
- package/dropdown/index.d.ts +2 -1
- package/fesm2022/lucca-front-ng-a11y.mjs +32 -32
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +59 -58
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-app-layout.mjs +6 -6
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +8 -8
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +14 -14
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +7 -12
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +64 -116
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +24 -28
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +31 -31
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +8 -8
- package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +16 -14
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +18 -16
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +22 -19
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +14 -12
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +58 -55
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +130 -103
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +17 -15
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +86 -219
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +97 -95
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +134 -133
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +46 -46
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +57 -52
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +10 -10
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +55 -48
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +9 -13
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +71 -70
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +4 -4
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +111 -111
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +81 -78
- 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 +87 -87
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +77 -78
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +22 -21
- 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.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +4 -4
- 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.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +175 -159
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +163 -176
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +20 -20
- package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-grid.mjs +26 -25
- package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +20 -20
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +13 -13
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +6 -6
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +4 -4
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +59 -63
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +26 -15
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +30 -30
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +16 -16
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +10 -10
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +13 -12
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +31 -39
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +50 -50
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +249 -221
- 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 +13 -11
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +8 -7
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +10 -22
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +234 -227
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +10 -10
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +38 -38
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +5 -54
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +28 -26
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +33 -36
- 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-read-more.mjs +32 -32
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-safe-content.mjs +11 -10
- package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +8 -7
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +66 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmentedControl.mjs +66 -1
- package/fesm2022/lucca-front-ng-segmentedControl.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs +93 -1
- package/fesm2022/lucca-front-ng-segmentedControlTabs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +20 -21
- 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 +70 -75
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +44 -44
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-statusBadge.mjs +29 -1
- package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +13 -35
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +120 -119
- 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 +23 -23
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +33 -32
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +21 -20
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +26 -22
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +110 -109
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/form-field/index.d.ts +6 -7
- package/forms/index.d.ts +1 -3
- package/forms/rich-text-input/index.d.ts +3 -1
- package/grid/index.d.ts +2 -2
- package/input/index.d.ts +17 -23
- package/link/index.d.ts +3 -0
- package/multi-select/index.d.ts +2 -1
- package/package.json +61 -109
- package/plg-push/index.d.ts +1 -13
- package/schematics/collection.json +0 -5
- package/schematics/lib/angular-component-ast.js +0 -29
- package/scrollBox/index.d.ts +19 -1
- package/segmentedControl/index.d.ts +28 -1
- package/segmentedControlTabs/index.d.ts +34 -1
- package/select/index.d.ts +4 -5
- package/simple-select/index.d.ts +2 -2
- package/statusBadge/index.d.ts +16 -1
- package/clear/index.d.ts +0 -30
- package/code/index.d.ts +0 -9
- package/fesm2022/lucca-front-ng-clear.mjs +0 -94
- package/fesm2022/lucca-front-ng-clear.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-code.mjs +0 -21
- package/fesm2022/lucca-front-ng-code.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +0 -23
- package/fesm2022/lucca-front-ng-form-header.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-form.mjs +0 -24
- package/fesm2022/lucca-front-ng-form.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-progress-bar.mjs +0 -28
- package/fesm2022/lucca-front-ng-progress-bar.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +0 -46
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +0 -97
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-segmented-control.mjs +0 -71
- package/fesm2022/lucca-front-ng-segmented-control.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +0 -43
- package/fesm2022/lucca-front-ng-sortable-list.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-status-badge.mjs +0 -34
- package/fesm2022/lucca-front-ng-status-badge.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-table-of-content.mjs +0 -39
- package/fesm2022/lucca-front-ng-table-of-content.mjs.map +0 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +0 -91
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +0 -1
- package/form/index.d.ts +0 -9
- package/form-header/index.d.ts +0 -9
- package/progress-bar/index.d.ts +0 -14
- package/schematics/lu-text-input/index.js +0 -24
- package/schematics/lu-text-input/migration.js +0 -104
- package/schematics/lu-text-input/migration.spec.js +0 -23
- package/schematics/lu-text-input/schema.json +0 -23
- package/scroll-box/index.d.ts +0 -15
- package/segmented-control/index.d.ts +0 -28
- package/segmented-control-tabs/index.d.ts +0 -34
- package/sortable-list/index.d.ts +0 -20
- package/status-badge/index.d.ts +0 -16
- package/table-of-content/index.d.ts +0 -16
- package/vertical-navigation/index.d.ts +0 -42
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, booleanAttribute, ViewEncapsulation, ChangeDetectionStrategy, Component, model, contentChildren, computed } from '@angular/core';
|
|
3
|
-
import { IconComponent } from '@lucca-front/ng/icon';
|
|
4
|
-
import { PortalDirective } from '@lucca-front/ng/core';
|
|
5
|
-
|
|
6
|
-
class VerticalNavigationLinkComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.icon = input(null);
|
|
9
|
-
this.disabled = input(false, { transform: booleanAttribute });
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: VerticalNavigationLinkComponent, isStandalone: true, selector: "span[luVerticalNavigationLink], a[luVerticalNavigationLink]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "disabled() ? \"presentation\" : null", "attr.tabindex": "disabled() ? -1 : null" }, classAttribute: "verticalNavigation-list-item-link" }, ngImport: i0, template: "@if (icon()) {\n\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n}\n<ng-content />\n", dependencies: [{ kind: "component", type: IconComponent, selector: "lu-icon", inputs: ["icon", "alt", "size", "color", "AI"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationLinkComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'span[luVerticalNavigationLink], a[luVerticalNavigationLink]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [IconComponent], host: {
|
|
17
|
-
class: 'verticalNavigation-list-item-link',
|
|
18
|
-
'[attr.role]': 'disabled() ? "presentation" : null',
|
|
19
|
-
'[attr.tabindex]': 'disabled() ? -1 : null',
|
|
20
|
-
}, template: "@if (icon()) {\n\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n}\n<ng-content />\n" }]
|
|
21
|
-
}] });
|
|
22
|
-
|
|
23
|
-
class VerticalNavigationGroupComponent {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.label = input.required();
|
|
26
|
-
this.icon = input(null);
|
|
27
|
-
this.disabled = input(false, { transform: booleanAttribute });
|
|
28
|
-
this.expanded = model(true);
|
|
29
|
-
}
|
|
30
|
-
toggleExpanded() {
|
|
31
|
-
this.expanded.set(!this.expanded());
|
|
32
|
-
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: VerticalNavigationGroupComponent, isStandalone: true, selector: "lu-vertical-navigation-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { attributes: { "role": "listitem" }, properties: { "class.is-disabled": "disabled()" }, classAttribute: "verticalNavigation-list-item" }, ngImport: i0, template: "<button\n\ttype=\"button\"\n\tclass=\"verticalNavigation-list-item-link\"\n\t[attr.aria-expanded]=\"expanded()\"\n\t(click)=\"toggleExpanded()\"\n\t[disabled]=\"disabled()\"\n>\n\t@if (icon()) {\n\t\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n\t}\n\t<ng-container *luPortal=\"label()\" /><span\n\t\taria-hidden=\"true\"\n\t\tclass=\"lucca-icon icon-arrowChevronBottom verticalNavigation-list-item-link-arrow\"\n\t></span>\n</button>\n<ul class=\"verticalNavigation-list mod-child\">\n\t<ng-content />\n</ul>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "lu-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
35
|
-
}
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationGroupComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ selector: 'lu-vertical-navigation-group', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [IconComponent, PortalDirective], host: {
|
|
39
|
-
role: 'listitem',
|
|
40
|
-
class: 'verticalNavigation-list-item',
|
|
41
|
-
'[class.is-disabled]': 'disabled()',
|
|
42
|
-
}, template: "<button\n\ttype=\"button\"\n\tclass=\"verticalNavigation-list-item-link\"\n\t[attr.aria-expanded]=\"expanded()\"\n\t(click)=\"toggleExpanded()\"\n\t[disabled]=\"disabled()\"\n>\n\t@if (icon()) {\n\t\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n\t}\n\t<ng-container *luPortal=\"label()\" /><span\n\t\taria-hidden=\"true\"\n\t\tclass=\"lucca-icon icon-arrowChevronBottom verticalNavigation-list-item-link-arrow\"\n\t></span>\n</button>\n<ul class=\"verticalNavigation-list mod-child\">\n\t<ng-content />\n</ul>\n" }]
|
|
43
|
-
}] });
|
|
44
|
-
|
|
45
|
-
class VerticalNavigationComponent {
|
|
46
|
-
constructor() {
|
|
47
|
-
this.heading = input.required();
|
|
48
|
-
this.level = input(3);
|
|
49
|
-
this.verticalNavigationGroup = contentChildren(VerticalNavigationGroupComponent, { descendants: true });
|
|
50
|
-
this.vertivalNavigationLinks = contentChildren(VerticalNavigationLinkComponent, { descendants: true });
|
|
51
|
-
this.isIconless = computed(() => !this.verticalNavigationGroup().filter((verticalGroup) => verticalGroup?.icon()).length || !this.vertivalNavigationLinks().filter((verticalLink) => verticalLink?.icon()).length);
|
|
52
|
-
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.2", type: VerticalNavigationComponent, isStandalone: true, selector: "lu-vertical-navigation", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.mod-iconless": "isIconless()" }, classAttribute: "verticalNavigation" }, queries: [{ propertyName: "verticalNavigationGroup", predicate: VerticalNavigationGroupComponent, descendants: true, isSignal: true }, { propertyName: "vertivalNavigationLinks", predicate: VerticalNavigationLinkComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div role=\"heading\" [attr.aria-level]=\"level()\" class=\"verticalNavigation-sectionTitle\">\n\t<ng-container *luPortal=\"heading()\" />\n</div>\n<ul class=\"verticalNavigation-list\">\n\t<ng-content />\n</ul>\n", styles: ["@layer components{.verticalNavigation{--components-verticalNavigation-link-background: var(--pr-t-elevation-surface-raised);--components-verticalNavigation-link-color: var(--pr-t-color-text);--components-verticalNavigation-horizontalPadding: var(--pr-t-spacings-150)}.verticalNavigation-sectionTitle{font:var(--pr-t-font-body-S);font-weight:var(--pr-t-font-fontWeight-semibold);color:var(--palettes-neutral-600);padding-block:0;padding-inline:var(--components-verticalNavigation-horizontalPadding);margin-block-end:var(--pr-t-spacings-100)}.verticalNavigation-list{margin:0;padding:0;list-style-type:none;background-color:var(--pr-t-elevation-surface-raised);margin-block-end:var(--pr-t-spacings-200)}.verticalNavigation-list-item-link-icon{font-size:var(--pr-t-font-body-M-lineHeight);margin-inline-end:var(--pr-t-spacings-100)}.verticalNavigation-list-item-link{padding:0;border:0;inline-size:100%;background-color:transparent;color:inherit;text-align:start;display:block;font:inherit;cursor:pointer;display:flex;padding-block:var(--pr-t-spacings-100);padding-inline:var(--components-verticalNavigation-horizontalPadding);border-radius:var(--pr-t-border-radius-default);color:var(--components-verticalNavigation-link-color);text-decoration:none;background-color:var(--components-verticalNavigation-link-background);transition:background-color var(--commons-animations-durations-fast) ease;font-weight:var(--pr-t-font-fontWeight-semibold)}.verticalNavigation-list-item-link:hover{--components-verticalNavigation-link-background: var(--palettes-neutral-50);color:var(--components-verticalNavigation-link-color)}.verticalNavigation-list-item-link:focus-visible{outline:2px solid var(--palettes-product-700);outline-offset:2px}.verticalNavigation-list-item-link:active{--components-verticalNavigation-link-background: var(--palettes-neutral-100)}.verticalNavigation-list-item-link-arrow{font-size:var(--pr-t-font-body-M-lineHeight);margin-inline-start:auto;transition:transform var(--commons-animations-durations-standard) ease}}@layer mods{.verticalNavigation.mod-iconless .verticalNavigation-list.mod-child .verticalNavigation-list-item-link{padding-inline-start:var(--components-verticalNavigation-horizontalPadding)}.verticalNavigation.mod-iconless .verticalNavigation-list-item-link-icon{display:none}}@layer mods{.verticalNavigation-list.mod-child{display:none;margin:0}.verticalNavigation-list.mod-child .verticalNavigation-list-item-link{font-weight:var(--pr-t-font-fontWeight-regular);padding-inline-start:calc(2rem + var(--components-verticalNavigation-horizontalPadding))}.verticalNavigation-list-item-link[aria-expanded=true]~.verticalNavigation-list{display:block}.verticalNavigation-list-item-link[aria-expanded=true] .verticalNavigation-list-item-link-arrow{transform:rotate(180deg)}.verticalNavigation-list-item-link[aria-current=page]{--components-verticalNavigation-link-background: var(--palettes-product-100);color:var(--components-verticalNavigation-link-color)}.verticalNavigation-list-item-link[aria-current=page]:hover{--components-verticalNavigation-link-background: var(--palettes-product-200)}.verticalNavigation-list-item-link[aria-current=page]:active{--components-verticalNavigation-link-background: var(--palettes-product-300)}.verticalNavigation-list-item-link[disabled],.verticalNavigation-list-item-link.is-disabled,span.verticalNavigation-list-item-link{--components-verticalNavigation-link-background: transparent;color:var(--palettes-neutral-500);pointer-events:none}}\n"], dependencies: [{ kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
55
|
-
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationComponent, decorators: [{
|
|
57
|
-
type: Component,
|
|
58
|
-
args: [{ selector: 'lu-vertical-navigation', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [PortalDirective], host: {
|
|
59
|
-
class: 'verticalNavigation',
|
|
60
|
-
'[class.mod-iconless]': 'isIconless()',
|
|
61
|
-
}, template: "<div role=\"heading\" [attr.aria-level]=\"level()\" class=\"verticalNavigation-sectionTitle\">\n\t<ng-container *luPortal=\"heading()\" />\n</div>\n<ul class=\"verticalNavigation-list\">\n\t<ng-content />\n</ul>\n", styles: ["@layer components{.verticalNavigation{--components-verticalNavigation-link-background: var(--pr-t-elevation-surface-raised);--components-verticalNavigation-link-color: var(--pr-t-color-text);--components-verticalNavigation-horizontalPadding: var(--pr-t-spacings-150)}.verticalNavigation-sectionTitle{font:var(--pr-t-font-body-S);font-weight:var(--pr-t-font-fontWeight-semibold);color:var(--palettes-neutral-600);padding-block:0;padding-inline:var(--components-verticalNavigation-horizontalPadding);margin-block-end:var(--pr-t-spacings-100)}.verticalNavigation-list{margin:0;padding:0;list-style-type:none;background-color:var(--pr-t-elevation-surface-raised);margin-block-end:var(--pr-t-spacings-200)}.verticalNavigation-list-item-link-icon{font-size:var(--pr-t-font-body-M-lineHeight);margin-inline-end:var(--pr-t-spacings-100)}.verticalNavigation-list-item-link{padding:0;border:0;inline-size:100%;background-color:transparent;color:inherit;text-align:start;display:block;font:inherit;cursor:pointer;display:flex;padding-block:var(--pr-t-spacings-100);padding-inline:var(--components-verticalNavigation-horizontalPadding);border-radius:var(--pr-t-border-radius-default);color:var(--components-verticalNavigation-link-color);text-decoration:none;background-color:var(--components-verticalNavigation-link-background);transition:background-color var(--commons-animations-durations-fast) ease;font-weight:var(--pr-t-font-fontWeight-semibold)}.verticalNavigation-list-item-link:hover{--components-verticalNavigation-link-background: var(--palettes-neutral-50);color:var(--components-verticalNavigation-link-color)}.verticalNavigation-list-item-link:focus-visible{outline:2px solid var(--palettes-product-700);outline-offset:2px}.verticalNavigation-list-item-link:active{--components-verticalNavigation-link-background: var(--palettes-neutral-100)}.verticalNavigation-list-item-link-arrow{font-size:var(--pr-t-font-body-M-lineHeight);margin-inline-start:auto;transition:transform var(--commons-animations-durations-standard) ease}}@layer mods{.verticalNavigation.mod-iconless .verticalNavigation-list.mod-child .verticalNavigation-list-item-link{padding-inline-start:var(--components-verticalNavigation-horizontalPadding)}.verticalNavigation.mod-iconless .verticalNavigation-list-item-link-icon{display:none}}@layer mods{.verticalNavigation-list.mod-child{display:none;margin:0}.verticalNavigation-list.mod-child .verticalNavigation-list-item-link{font-weight:var(--pr-t-font-fontWeight-regular);padding-inline-start:calc(2rem + var(--components-verticalNavigation-horizontalPadding))}.verticalNavigation-list-item-link[aria-expanded=true]~.verticalNavigation-list{display:block}.verticalNavigation-list-item-link[aria-expanded=true] .verticalNavigation-list-item-link-arrow{transform:rotate(180deg)}.verticalNavigation-list-item-link[aria-current=page]{--components-verticalNavigation-link-background: var(--palettes-product-100);color:var(--components-verticalNavigation-link-color)}.verticalNavigation-list-item-link[aria-current=page]:hover{--components-verticalNavigation-link-background: var(--palettes-product-200)}.verticalNavigation-list-item-link[aria-current=page]:active{--components-verticalNavigation-link-background: var(--palettes-product-300)}.verticalNavigation-list-item-link[disabled],.verticalNavigation-list-item-link.is-disabled,span.verticalNavigation-list-item-link{--components-verticalNavigation-link-background: transparent;color:var(--palettes-neutral-500);pointer-events:none}}\n"] }]
|
|
62
|
-
}] });
|
|
63
|
-
|
|
64
|
-
class VerticalNavigationItemComponent {
|
|
65
|
-
constructor() {
|
|
66
|
-
this.label = input(null);
|
|
67
|
-
this.icon = input(null);
|
|
68
|
-
this.disabled = input(false, { transform: booleanAttribute });
|
|
69
|
-
this.expanded = model(true);
|
|
70
|
-
}
|
|
71
|
-
toggleExpanded() {
|
|
72
|
-
this.expanded.set(!this.expanded());
|
|
73
|
-
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.2", type: VerticalNavigationItemComponent, isStandalone: true, selector: "lu-vertical-navigation-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { attributes: { "role": "listitem" }, properties: { "class.is-disabled": "disabled()" }, classAttribute: "verticalNavigation-list-item" }, ngImport: i0, template: "<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
76
|
-
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: VerticalNavigationItemComponent, decorators: [{
|
|
78
|
-
type: Component,
|
|
79
|
-
args: [{ selector: 'lu-vertical-navigation-item', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
80
|
-
role: 'listitem',
|
|
81
|
-
class: 'verticalNavigation-list-item',
|
|
82
|
-
'[class.is-disabled]': 'disabled()',
|
|
83
|
-
}, template: "<ng-content />\n" }]
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Generated bundle index. Do not edit.
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
export { VerticalNavigationComponent, VerticalNavigationGroupComponent, VerticalNavigationItemComponent, VerticalNavigationLinkComponent };
|
|
91
|
-
//# sourceMappingURL=lucca-front-ng-vertical-navigation.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-vertical-navigation.mjs","sources":["../../../packages/ng/vertical-navigation/link/vertical-navigation-link.component.ts","../../../packages/ng/vertical-navigation/link/vertical-navigation-link.component.html","../../../packages/ng/vertical-navigation/group/vertical-navigation-group.component.ts","../../../packages/ng/vertical-navigation/group/vertical-navigation-group.component.html","../../../packages/ng/vertical-navigation/vertical-navigation.component.ts","../../../packages/ng/vertical-navigation/vertical-navigation.component.html","../../../packages/ng/vertical-navigation/item/vertical-navigation-item.component.ts","../../../packages/ng/vertical-navigation/item/vertical-navigation-item.component.html","../../../packages/ng/vertical-navigation/lucca-front-ng-vertical-navigation.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\nimport { LuccaIcon } from '@lucca-front/icons';\nimport { IconComponent } from '@lucca-front/ng/icon';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'span[luVerticalNavigationLink], a[luVerticalNavigationLink]',\n\ttemplateUrl: './vertical-navigation-link.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [IconComponent],\n\thost: {\n\t\tclass: 'verticalNavigation-list-item-link',\n\t\t'[attr.role]': 'disabled() ? \"presentation\" : null',\n\t\t'[attr.tabindex]': 'disabled() ? -1 : null',\n\t},\n})\nexport class VerticalNavigationLinkComponent {\n\ticon = input<LuccaIcon | null>(null);\n\tdisabled = input(false, { transform: booleanAttribute });\n}\n","@if (icon()) {\n\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n}\n<ng-content />\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, model, ViewEncapsulation } from '@angular/core';\nimport { LuccaIcon } from '@lucca-front/icons';\nimport { PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { IconComponent } from '@lucca-front/ng/icon';\n\n@Component({\n\tselector: 'lu-vertical-navigation-group',\n\tstandalone: true,\n\ttemplateUrl: './vertical-navigation-group.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [IconComponent, PortalDirective],\n\thost: {\n\t\trole: 'listitem',\n\t\tclass: 'verticalNavigation-list-item',\n\t\t'[class.is-disabled]': 'disabled()',\n\t},\n})\nexport class VerticalNavigationGroupComponent {\n\tlabel = input.required<PortalContent>();\n\ticon = input<LuccaIcon | null>(null);\n\tdisabled = input(false, { transform: booleanAttribute });\n\n\texpanded = model(true);\n\n\ttoggleExpanded() {\n\t\tthis.expanded.set(!this.expanded());\n\t}\n}\n","<button\n\ttype=\"button\"\n\tclass=\"verticalNavigation-list-item-link\"\n\t[attr.aria-expanded]=\"expanded()\"\n\t(click)=\"toggleExpanded()\"\n\t[disabled]=\"disabled()\"\n>\n\t@if (icon()) {\n\t\t<lu-icon class=\"verticalNavigation-list-item-link-icon\" [icon]=\"icon()\" />\n\t}\n\t<ng-container *luPortal=\"label()\" /><span\n\t\taria-hidden=\"true\"\n\t\tclass=\"lucca-icon icon-arrowChevronBottom verticalNavigation-list-item-link-arrow\"\n\t></span>\n</button>\n<ul class=\"verticalNavigation-list mod-child\">\n\t<ng-content />\n</ul>\n","import { ChangeDetectionStrategy, Component, computed, contentChildren, input, ViewEncapsulation } from '@angular/core';\nimport { PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { VerticalNavigationGroupComponent } from './group/vertical-navigation-group.component';\nimport { VerticalNavigationLinkComponent } from './link/vertical-navigation-link.component';\n\n@Component({\n\tselector: 'lu-vertical-navigation',\n\tstandalone: true,\n\ttemplateUrl: './vertical-navigation.component.html',\n\tstyleUrl: './vertical-navigation.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [PortalDirective],\n\thost: {\n\t\tclass: 'verticalNavigation',\n\t\t'[class.mod-iconless]': 'isIconless()',\n\t},\n})\nexport class VerticalNavigationComponent {\n\theading = input.required<PortalContent>();\n\tlevel = input<number>(3);\n\n\tverticalNavigationGroup = contentChildren(VerticalNavigationGroupComponent, { descendants: true });\n\tvertivalNavigationLinks = contentChildren(VerticalNavigationLinkComponent, { descendants: true });\n\n\tisIconless = computed(\n\t\t() => !this.verticalNavigationGroup().filter((verticalGroup) => verticalGroup?.icon()).length || !this.vertivalNavigationLinks().filter((verticalLink) => verticalLink?.icon()).length,\n\t);\n}\n","<div role=\"heading\" [attr.aria-level]=\"level()\" class=\"verticalNavigation-sectionTitle\">\n\t<ng-container *luPortal=\"heading()\" />\n</div>\n<ul class=\"verticalNavigation-list\">\n\t<ng-content />\n</ul>\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, model, ViewEncapsulation } from '@angular/core';\nimport { LuccaIcon } from '@lucca-front/icons';\n\n@Component({\n\tselector: 'lu-vertical-navigation-item',\n\tstandalone: true,\n\ttemplateUrl: './vertical-navigation-item.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\trole: 'listitem',\n\t\tclass: 'verticalNavigation-list-item',\n\t\t'[class.is-disabled]': 'disabled()',\n\t},\n})\nexport class VerticalNavigationItemComponent {\n\tlabel = input<string | null>(null);\n\ticon = input<LuccaIcon | null>(null);\n\tdisabled = input(false, { transform: booleanAttribute });\n\n\texpanded = model(true);\n\n\ttoggleExpanded() {\n\t\tthis.expanded.set(!this.expanded());\n\t}\n}\n","<ng-content />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAiBa,+BAA+B,CAAA;AAb5C,IAAA,WAAA,GAAA;AAcC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI,CAAC;QACpC,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AACxD;8GAHY,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6DAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,sCAAA,EAAA,eAAA,EAAA,wBAAA,EAAA,EAAA,cAAA,EAAA,mCAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjB5C,uHAIA,EAAA,YAAA,EAAA,CAAA,EAAA,IAA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AK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;AAExD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;AAKtB;IAHA,cAAc,GAAA;QACb,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;;8GARxB,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,4wBCf5C,kBACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDca,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAZ3C,SAAS;+BACC,6BAA6B,EAAA,UAAA,EAC3B,IAAI,EAAA,eAAA,EAEC,uBAAuB,CAAC,MAAM,EAChC,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAC/B,IAAA,EAAA;AACL,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,KAAK,EAAE,8BAA8B;AACrC,wBAAA,qBAAqB,EAAE,YAAY;AACnC,qBAAA,EAAA,QAAA,EAAA,kBAAA,EAAA;;;AEbF;;AAEG;;;;"}
|
package/form/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class FormComponent {
|
|
4
|
-
maxWidth: i0.InputSignalWithTransform<boolean, unknown>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "form[luForm]", never, { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { FormComponent };
|
package/form-header/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class FormHeaderComponent {
|
|
4
|
-
headingLevel: i0.InputSignal<1 | 2 | 3 | 4 | 5 | 6>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormHeaderComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormHeaderComponent, "lu-form-header]", never, { "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { FormHeaderComponent };
|
package/progress-bar/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class ProgressBarComponent {
|
|
4
|
-
value: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
5
|
-
state: _angular_core.InputSignal<"success" | "error" | "null">;
|
|
6
|
-
indeterminate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
-
get stateClass(): {
|
|
8
|
-
[x: string]: boolean;
|
|
9
|
-
};
|
|
10
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
11
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "lu-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { ProgressBarComponent };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const typescript_1 = require("typescript");
|
|
4
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
5
|
-
const schematics_1 = require("../lib/schematics");
|
|
6
|
-
const migration_1 = require("./migration");
|
|
7
|
-
// 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)
|
|
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('.ts')) {
|
|
17
|
-
(0, schematics_1.migrateFile)(path, entry, tree, (content) => {
|
|
18
|
-
const sourceFile = (0, typescript_1.createSourceFile)(path, content, typescript_1.ScriptTarget.ESNext);
|
|
19
|
-
return (0, migration_1.migrateComponent)(sourceFile, path, tree);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrateComponent = migrateComponent;
|
|
4
|
-
const angular_template_1 = require("../lib/angular-template");
|
|
5
|
-
const html_ast_js_1 = require("../lib/html-ast.js");
|
|
6
|
-
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
7
|
-
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
8
|
-
const change_1 = require("@schematics/angular/utility/change");
|
|
9
|
-
function migrateComponent(sourceFile, path, tree) {
|
|
10
|
-
const textfields = findTextfields(sourceFile, path, tree);
|
|
11
|
-
if (textfields.length > 0) {
|
|
12
|
-
const tsUpdate = tree.beginUpdate(path);
|
|
13
|
-
const isInlineTemplate = textfields[0].filePath === path;
|
|
14
|
-
const templateUpdate = isInlineTemplate ? tsUpdate : tree.beginUpdate(textfields[0].filePath);
|
|
15
|
-
textfields.forEach((field) => {
|
|
16
|
-
if (field.rejection) {
|
|
17
|
-
// eslint-disable-next-line no-console
|
|
18
|
-
console.log(`[REJECTED] ${field.filePath}#L${field.node.startSourceSpan.start.line} => ${field.rejection}`);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
// Let's remove everything first
|
|
22
|
-
templateUpdate.remove(field.nodeOffset + field.node.startSourceSpan.start.offset, field.node.sourceSpan.toString().length);
|
|
23
|
-
// Then forge the new input
|
|
24
|
-
const textInput = `<lu-text-input ${(0, angular_component_ast_1.inputValueToHTML)('placeholder', field.inputs.placeholder)} ${(0, angular_component_ast_1.inputValueToHTML)('formControlName', field.inputs.formControlName)} ${(0, angular_component_ast_1.inputValueToHTML)('ngModel', field.inputs.ngModel)} />`.replace(/\s{2,}/, " ");
|
|
25
|
-
const fieldOpeningTag = `lu-form-field [label]="labelTpl"`.replace(/\s{2,}/, " ").trim();
|
|
26
|
-
// TODO handle required migration from template-driven to form-driven???
|
|
27
|
-
const newInput = `<${fieldOpeningTag}>
|
|
28
|
-
<ng-template #labelTpl>${field.label}</ng-template>
|
|
29
|
-
${textInput}
|
|
30
|
-
</lu-form-field>`;
|
|
31
|
-
templateUpdate.insertRight(field.nodeOffset + field.node.startSourceSpan.start.offset, newInput);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
// Add import if needed
|
|
35
|
-
(0, change_1.applyToUpdateRecorder)(tsUpdate, [
|
|
36
|
-
(0, angular_component_ast_1.insertTSImportIfNeeded)(sourceFile, path, 'FormFieldComponent', '@lucca-front/ng/form-field'),
|
|
37
|
-
(0, angular_component_ast_1.insertAngularImportIfNeeded)(sourceFile, path, 'FormFieldComponent'),
|
|
38
|
-
(0, angular_component_ast_1.insertTSImportIfNeeded)(sourceFile, path, 'TextInputComponent', '@lucca-front/ng/forms'),
|
|
39
|
-
(0, angular_component_ast_1.insertAngularImportIfNeeded)(sourceFile, path, 'TextInputComponent')
|
|
40
|
-
]);
|
|
41
|
-
tree.commitUpdate(tsUpdate);
|
|
42
|
-
if (!isInlineTemplate) {
|
|
43
|
-
tree.commitUpdate(templateUpdate);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return tree.readText(path);
|
|
47
|
-
}
|
|
48
|
-
function findTextfields(sourceFile, basePath, tree) {
|
|
49
|
-
const fields = [];
|
|
50
|
-
const ngTemplates = (0, angular_template_1.extractNgTemplatesIncludingHtml)(sourceFile, tree, basePath);
|
|
51
|
-
ngTemplates.forEach((template) => {
|
|
52
|
-
const htmlAst = new html_ast_js_1.HtmlAst(template.content);
|
|
53
|
-
htmlAst.visitNodes((node) => {
|
|
54
|
-
if (isInterestingNode(node) && node.name === "label") {
|
|
55
|
-
const classes = getNodeClasses(node);
|
|
56
|
-
const inputs = {
|
|
57
|
-
size: classes.find(c => /mod-(XS|S|M|L|XL|XXL)/.test(c))?.replace('mod-', '')
|
|
58
|
-
};
|
|
59
|
-
const field = {
|
|
60
|
-
node: node,
|
|
61
|
-
inputs,
|
|
62
|
-
nodeOffset: template.offsetStart,
|
|
63
|
-
filePath: template.filePath,
|
|
64
|
-
componentTS: sourceFile,
|
|
65
|
-
classes: classes
|
|
66
|
-
};
|
|
67
|
-
if (classes.includes("textfield")) {
|
|
68
|
-
if (node.children.filter(el => isInterestingNode(el)).length > 2) {
|
|
69
|
-
field.rejection = "Field contains more than an input + label";
|
|
70
|
-
}
|
|
71
|
-
// Find native input and grab params from it
|
|
72
|
-
const nativeInput = node.children.find(el => isInterestingNode(el) && el.name === "input");
|
|
73
|
-
if (!nativeInput) {
|
|
74
|
-
field.rejection = "Field doesn't contain a native input[type=text]";
|
|
75
|
-
}
|
|
76
|
-
else if (isInterestingNode(nativeInput)) {
|
|
77
|
-
inputs.placeholder = (0, angular_component_ast_1.getInputValue)(nativeInput, "placeholder");
|
|
78
|
-
inputs.formControlName = (0, angular_component_ast_1.getInputValue)(nativeInput, "formControlName");
|
|
79
|
-
inputs.ngModel = (0, angular_component_ast_1.getInputValue)(nativeInput, "ngModel");
|
|
80
|
-
inputs.forceRequired = (0, angular_component_ast_1.getInputValue)(nativeInput, "aria-required");
|
|
81
|
-
}
|
|
82
|
-
// This is a textfield, now let's find if it has everything required for migration
|
|
83
|
-
const visitor = new html_ast_js_1.HtmlAstVisitor(node);
|
|
84
|
-
visitor.visitElements(/span/, (el) => {
|
|
85
|
-
if (isInterestingNode(el) && getNodeClasses(el).includes("textfield-label")) {
|
|
86
|
-
field.label = template.content.slice(el.startSourceSpan.end.offset, el.endSourceSpan?.start?.offset);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
if (!field.label) {
|
|
90
|
-
field.rejection = "Field has no label";
|
|
91
|
-
}
|
|
92
|
-
fields.push(field);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
return fields;
|
|
98
|
-
}
|
|
99
|
-
function getNodeClasses(node) {
|
|
100
|
-
return (node.attributes.find(attr => attr.name === 'class')?.value || "").split(" ");
|
|
101
|
-
}
|
|
102
|
-
function isInterestingNode(node) {
|
|
103
|
-
return node instanceof lf_schematic_context_1.currentSchematicContext.angularCompiler.TmplAstElement;
|
|
104
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const path = require("path");
|
|
4
|
-
const migration_test_js_1 = require("../lib/migration-test.js");
|
|
5
|
-
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
6
|
-
const testsRoot = path.join(__dirname, 'tests');
|
|
7
|
-
describe('Textfield Migration', () => {
|
|
8
|
-
it('should handle basic case files', async () => {
|
|
9
|
-
// Arrange
|
|
10
|
-
const tree = (0, migration_test_js_1.createTreeFromFolder)(path.join(testsRoot, 'input'));
|
|
11
|
-
const expectedTree = (0, migration_test_js_1.createTreeFromFolder)(path.join(testsRoot, 'output'));
|
|
12
|
-
// Act
|
|
13
|
-
try {
|
|
14
|
-
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'lu-text-input', { skipInstallation: true }, tree);
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
// eslint-disable-next-line no-console
|
|
18
|
-
console.log(error);
|
|
19
|
-
}
|
|
20
|
-
// Assert
|
|
21
|
-
(0, migration_test_js_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "LuccaFrontLuButton",
|
|
4
|
-
"title": "Migrate CSS-only buttons to the new luButton component",
|
|
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
|
-
}
|
|
23
|
-
}
|
package/scroll-box/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, ElementRef } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
declare class ScrollBoxComponent implements OnInit {
|
|
5
|
-
first: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
6
|
-
last: _angular_core.Signal<ElementRef<HTMLElement>>;
|
|
7
|
-
isFirstVisible: _angular_core.WritableSignal<boolean>;
|
|
8
|
-
isLastVisible: _angular_core.WritableSignal<boolean>;
|
|
9
|
-
initObserver(element: Element, isFirst: boolean): void;
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollBoxComponent, never>;
|
|
12
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScrollBoxComponent, "lu-scroll-box", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { ScrollBoxComponent };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as _angular_forms from '@angular/forms';
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import * as _lucca_front_ng_segmented_control from '@lucca-front/ng/segmented-control';
|
|
4
|
-
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
-
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
-
|
|
7
|
-
declare class SegmentedControlFilterComponent<T = unknown> {
|
|
8
|
-
protected segmentedControlRef: _lucca_front_ng_segmented_control.SegmentedControlComponent;
|
|
9
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
-
value: _angular_core.InputSignal<T>;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
label: _angular_core.InputSignal<PortalContent>;
|
|
14
|
-
get formControl(): _angular_forms.FormControl<any>;
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlFilterComponent<any>, never>;
|
|
16
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlFilterComponent<any>, "lu-segmented-control-filter", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare class SegmentedControlComponent {
|
|
20
|
-
ngControl: _angular_forms.NgModel | _angular_forms.FormControlDirective | _angular_forms.FormControlName;
|
|
21
|
-
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
22
|
-
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
23
|
-
id: string;
|
|
24
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlComponent, "lu-segmented-control", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { SegmentedControlComponent, SegmentedControlFilterComponent };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
3
|
-
import * as _lucca_front_ng_segmented_control_tabs from '@lucca-front/ng/segmented-control-tabs';
|
|
4
|
-
import { PortalContent } from '@lucca-front/ng/core';
|
|
5
|
-
import * as i1 from '@lucca-front/ng/forms';
|
|
6
|
-
|
|
7
|
-
declare class SegmentedControlTabsPanelComponent<T = unknown> {
|
|
8
|
-
protected segmentedControlTabsRef: _lucca_front_ng_segmented_control_tabs.SegmentedControlTabsComponent<unknown>;
|
|
9
|
-
label: _angular_core.InputSignal<PortalContent>;
|
|
10
|
-
value: _angular_core.InputSignal<T>;
|
|
11
|
-
id: number;
|
|
12
|
-
panelId: string;
|
|
13
|
-
labelId: string;
|
|
14
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsPanelComponent<any>, never>;
|
|
15
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsPanelComponent<any>, "lu-segmented-control-tabs-panel", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare class SegmentedControlTabsComponent<T = unknown> implements AfterContentInit {
|
|
19
|
-
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
-
vertical: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
-
id: string;
|
|
22
|
-
tabs: _angular_core.Signal<readonly SegmentedControlTabsPanelComponent<T>[]>;
|
|
23
|
-
tabButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
24
|
-
active: _angular_core.ModelSignal<T>;
|
|
25
|
-
currentIndex: _angular_core.Signal<number>;
|
|
26
|
-
previous(): void;
|
|
27
|
-
next(): void;
|
|
28
|
-
setActiveTab(index: number): void;
|
|
29
|
-
ngAfterContentInit(): void;
|
|
30
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedControlTabsComponent<any>, never>;
|
|
31
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedControlTabsComponent<any>, "lu-segmented-control-tabs", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; }, ["tabs"], ["*"], true, [{ directive: typeof i1.NoopValueAccessorDirective; inputs: {}; outputs: {}; }]>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { SegmentedControlTabsComponent, SegmentedControlTabsPanelComponent };
|
package/sortable-list/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
|
|
3
|
-
declare class SortableListItemComponent {
|
|
4
|
-
label: _angular_core.InputSignal<string>;
|
|
5
|
-
helperMessage: _angular_core.InputSignal<string>;
|
|
6
|
-
clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
7
|
-
unclearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
delete: _angular_core.OutputEmitterRef<void>;
|
|
9
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableListItemComponent, never>;
|
|
10
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableListItemComponent, "lu-sortable-list-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "helperMessage": { "alias": "helperMessage"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "unclearable": { "alias": "unclearable"; "required": false; "isSignal": true; }; }, { "delete": "delete"; }, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare class SortableListComponent {
|
|
14
|
-
small: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
-
sortableListItems: _angular_core.Signal<readonly SortableListItemComponent[]>;
|
|
16
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableListComponent, never>;
|
|
17
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableListComponent, "lu-sortable-list", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; }, {}, ["sortableListItems"], ["*"], true, never>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { SortableListComponent, SortableListItemComponent };
|
package/status-badge/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnChanges } from '@angular/core';
|
|
3
|
-
import { Palette } from '@lucca-front/ng/core';
|
|
4
|
-
|
|
5
|
-
declare class StatusBadgeComponent implements OnChanges {
|
|
6
|
-
#private;
|
|
7
|
-
withEllipsis: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
label: _angular_core.InputSignal<string>;
|
|
9
|
-
size: _angular_core.InputSignal<"L" | "M">;
|
|
10
|
-
palette: _angular_core.InputSignal<Palette>;
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatusBadgeComponent, never>;
|
|
13
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatusBadgeComponent, "lu-status-badge", never, { "withEllipsis": { "alias": "withEllipsis"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { StatusBadgeComponent };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
declare class TableOfContentLinkDirective {
|
|
5
|
-
template: TemplateRef<any>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableOfContentLinkDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableOfContentLinkDirective, "[luTableOfContentLink]", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare class TableOfContentComponent {
|
|
11
|
-
links: i0.Signal<readonly TableOfContentLinkDirective[]>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableOfContentComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableOfContentComponent, "lu-table-of-content", never, {}, {}, ["links"], never, true, never>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { TableOfContentComponent, TableOfContentLinkDirective };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { LuccaIcon } from '@lucca-front/icons';
|
|
3
|
-
import { PortalContent } from '@lucca-front/ng/core';
|
|
4
|
-
|
|
5
|
-
declare class VerticalNavigationLinkComponent {
|
|
6
|
-
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
7
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationLinkComponent, never>;
|
|
9
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationLinkComponent, "span[luVerticalNavigationLink], a[luVerticalNavigationLink]", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare class VerticalNavigationGroupComponent {
|
|
13
|
-
label: _angular_core.InputSignal<PortalContent>;
|
|
14
|
-
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
15
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
-
expanded: _angular_core.ModelSignal<boolean>;
|
|
17
|
-
toggleExpanded(): void;
|
|
18
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationGroupComponent, never>;
|
|
19
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationGroupComponent, "lu-vertical-navigation-group", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare class VerticalNavigationComponent {
|
|
23
|
-
heading: _angular_core.InputSignal<PortalContent>;
|
|
24
|
-
level: _angular_core.InputSignal<number>;
|
|
25
|
-
verticalNavigationGroup: _angular_core.Signal<readonly VerticalNavigationGroupComponent[]>;
|
|
26
|
-
vertivalNavigationLinks: _angular_core.Signal<readonly VerticalNavigationLinkComponent[]>;
|
|
27
|
-
isIconless: _angular_core.Signal<boolean>;
|
|
28
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationComponent, never>;
|
|
29
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationComponent, "lu-vertical-navigation", never, { "heading": { "alias": "heading"; "required": true; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; }, {}, ["verticalNavigationGroup", "vertivalNavigationLinks"], ["*"], true, never>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare class VerticalNavigationItemComponent {
|
|
33
|
-
label: _angular_core.InputSignal<string>;
|
|
34
|
-
icon: _angular_core.InputSignal<LuccaIcon>;
|
|
35
|
-
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
36
|
-
expanded: _angular_core.ModelSignal<boolean>;
|
|
37
|
-
toggleExpanded(): void;
|
|
38
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<VerticalNavigationItemComponent, never>;
|
|
39
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<VerticalNavigationItemComponent, "lu-vertical-navigation-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { VerticalNavigationComponent, VerticalNavigationGroupComponent, VerticalNavigationItemComponent, VerticalNavigationLinkComponent };
|