@lucca-front/ng 21.2.2 → 21.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/lucca-front-ng-a11y.mjs +4 -4
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-activity-feed.mjs +26 -21
- package/fesm2022/lucca-front-ng-activity-feed.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +46 -41
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-app-layout.mjs +4 -4
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +7 -7
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +10 -10
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +18 -12
- package/fesm2022/lucca-front-ng-bubble-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs +16 -11
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +76 -70
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +22 -16
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-clear.mjs +15 -10
- package/fesm2022/lucca-front-ng-clear.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-code.mjs +5 -5
- package/fesm2022/lucca-front-ng-code.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-color.mjs +13 -8
- package/fesm2022/lucca-front-ng-color.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +37 -32
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-container.mjs +13 -8
- package/fesm2022/lucca-front-ng-container.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +13 -13
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +21 -15
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +15 -15
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +50 -45
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +90 -90
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +18 -18
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +95 -80
- package/fesm2022/lucca-front-ng-data-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +42 -42
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +133 -126
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +25 -25
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +61 -43
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +14 -9
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +43 -43
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +41 -35
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-error-page.mjs +12 -7
- package/fesm2022/lucca-front-ng-error-page.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +34 -34
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +16 -11
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +84 -64
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +61 -88
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +17 -11
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +94 -76
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +10 -5
- package/fesm2022/lucca-front-ng-form-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-label.mjs +18 -13
- package/fesm2022/lucca-front-ng-form-label.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form.mjs +11 -8
- package/fesm2022/lucca-front-ng-form.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +58 -58
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +46 -41
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-html.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +8 -9
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +94 -92
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +212 -153
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +19 -19
- package/fesm2022/lucca-front-ng-gauge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-grid.mjs +38 -26
- package/fesm2022/lucca-front-ng-grid.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +39 -17
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-text.mjs +26 -0
- package/fesm2022/lucca-front-ng-highlight-text.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +165 -20
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-impersonation.mjs +119 -0
- package/fesm2022/lucca-front-ng-impersonation.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-index-table.mjs +69 -63
- package/fesm2022/lucca-front-ng-index-table.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +15 -8
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +22 -22
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +12 -12
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +32 -27
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listing.mjs +21 -21
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +14 -9
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +9 -9
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +5 -5
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +23 -23
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +113 -95
- 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 +10 -10
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +7 -7
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +18 -13
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +130 -130
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +9 -9
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +17 -12
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +9 -9
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +17 -17
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +16 -16
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-bar.mjs +13 -8
- package/fesm2022/lucca-front-ng-progress-bar.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-progress-stepper.mjs +18 -13
- package/fesm2022/lucca-front-ng-progress-stepper.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-read-more.mjs +24 -19
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-resource-card.mjs +28 -22
- package/fesm2022/lucca-front-ng-resource-card.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
- package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll-box.mjs +6 -6
- package/fesm2022/lucca-front-ng-scroll-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +8 -8
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +22 -16
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-segmented-control.mjs +11 -11
- package/fesm2022/lucca-front-ng-segmented-control.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +14 -14
- 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 +37 -36
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +82 -56
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +84 -0
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-software-icon.mjs +34 -23
- package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +14 -14
- package/fesm2022/lucca-front-ng-sortable-list.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-status-badge.mjs +13 -8
- package/fesm2022/lucca-front-ng-status-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-table-of-content.mjs +7 -7
- package/fesm2022/lucca-front-ng-table-of-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +19 -14
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-text-flow.mjs +4 -4
- package/fesm2022/lucca-front-ng-text-flow.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +362 -115
- 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 +14 -14
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +35 -35
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +16 -16
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +22 -21
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +122 -100
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +27 -27
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs.map +1 -1
- package/package.json +18 -5
- package/schematics/lib/local-deps/package-lock.json +17 -79
- package/schematics/lib/local-deps/package.json +1 -1
- package/schematics/palettes/index.js +1 -0
- package/src/components/_picker.scss +2 -1
- package/types/lucca-front-ng-activity-feed.d.ts +8 -1
- package/types/lucca-front-ng-api.d.ts +22 -16
- package/types/lucca-front-ng-bubble-icon.d.ts +10 -1
- package/types/lucca-front-ng-bubble-illustration.d.ts +10 -4
- package/types/lucca-front-ng-callout.d.ts +21 -13
- package/types/lucca-front-ng-chip.d.ts +10 -1
- package/types/lucca-front-ng-clear.d.ts +8 -2
- package/types/lucca-front-ng-color.d.ts +8 -1
- package/types/lucca-front-ng-comment.d.ts +8 -1
- package/types/lucca-front-ng-container.d.ts +8 -1
- package/types/lucca-front-ng-core-select-department.d.ts +4 -0
- package/types/lucca-front-ng-core-select-user.d.ts +3 -2
- package/types/lucca-front-ng-core-select.d.ts +6 -6
- package/types/lucca-front-ng-core.d.ts +1 -1
- package/types/lucca-front-ng-data-table.d.ts +12 -1
- package/types/lucca-front-ng-date2.d.ts +17 -9
- package/types/lucca-front-ng-dialog.d.ts +14 -3
- package/types/lucca-front-ng-divider.d.ts +8 -1
- package/types/lucca-front-ng-empty-state.d.ts +15 -7
- package/types/lucca-front-ng-error-page.d.ts +9 -4
- package/types/lucca-front-ng-fancy-box.d.ts +8 -1
- package/types/lucca-front-ng-file-upload.d.ts +20 -4
- package/types/lucca-front-ng-filter-pills.d.ts +4 -9
- package/types/lucca-front-ng-footer.d.ts +11 -2
- package/types/lucca-front-ng-form-field.d.ts +35 -18
- package/types/lucca-front-ng-form-header.d.ts +8 -1
- package/types/lucca-front-ng-form-label.d.ts +8 -1
- package/types/lucca-front-ng-form.d.ts +2 -0
- package/types/lucca-front-ng-forms-phone-number-input.d.ts +19 -12
- package/types/lucca-front-ng-forms-rich-text-input.d.ts +1 -0
- package/types/lucca-front-ng-forms.d.ts +82 -30
- package/types/lucca-front-ng-grid.d.ts +23 -8
- package/types/lucca-front-ng-highlight-data.d.ts +16 -1
- package/types/lucca-front-ng-highlight-text.d.ts +12 -0
- package/types/lucca-front-ng-horizontal-navigation.d.ts +40 -3
- package/types/lucca-front-ng-impersonation.d.ts +33 -0
- package/types/lucca-front-ng-index-table.d.ts +10 -1
- package/types/lucca-front-ng-inline-message.d.ts +11 -4
- package/types/lucca-front-ng-listbox.d.ts +8 -1
- package/types/lucca-front-ng-loading.d.ts +8 -1
- package/types/lucca-front-ng-multi-select.d.ts +3 -1
- package/types/lucca-front-ng-numeric-badge.d.ts +8 -1
- package/types/lucca-front-ng-pagination.d.ts +8 -1
- package/types/lucca-front-ng-progress-bar.d.ts +9 -2
- package/types/lucca-front-ng-progress-stepper.d.ts +8 -1
- package/types/lucca-front-ng-read-more.d.ts +8 -1
- package/types/lucca-front-ng-resource-card.d.ts +10 -1
- package/types/lucca-front-ng-segmented-control-tabs.d.ts +2 -0
- package/types/lucca-front-ng-segmented-control.d.ts +4 -2
- package/types/lucca-front-ng-simple-select.d.ts +3 -2
- package/types/lucca-front-ng-skeleton.d.ts +30 -10
- package/types/lucca-front-ng-software-icon-wrapper.d.ts +31 -0
- package/types/lucca-front-ng-software-icon.d.ts +17 -6
- package/types/lucca-front-ng-status-badge.d.ts +8 -1
- package/types/lucca-front-ng-tag.d.ts +8 -1
- package/types/lucca-front-ng-time.d.ts +87 -8
- package/types/lucca-front-ng-user.d.ts +19 -5
|
@@ -6,13 +6,13 @@ import { BubbleIllustrationComponent } from '@lucca-front/ng/bubble-illustration
|
|
|
6
6
|
|
|
7
7
|
class EmptyStatePageIllustration {
|
|
8
8
|
constructor() {
|
|
9
|
-
this.src = input(null, ...(ngDevMode ? [{ debugName: "src" }] : []));
|
|
10
|
-
this.alt = input(
|
|
9
|
+
this.src = input(null, ...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
10
|
+
this.alt = input('', ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
|
|
11
11
|
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
13
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStatePageIllustration, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: EmptyStatePageIllustration, isStandalone: true, selector: "lu-empty-state-page-illustration", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "pr-u-displayFlex" }, ngImport: i0, template: "<img class=\"emptyState-illustration-img\" [attr.src]=\"src()\" [attr.alt]=\"alt()\" />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
14
14
|
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStatePageIllustration, decorators: [{
|
|
16
16
|
type: Component,
|
|
17
17
|
args: [{ selector: 'lu-empty-state-page-illustration', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
18
18
|
class: 'pr-u-displayFlex',
|
|
@@ -24,53 +24,58 @@ class EmptyStatePageComponent {
|
|
|
24
24
|
/**
|
|
25
25
|
* Icon image (URL)
|
|
26
26
|
*/
|
|
27
|
-
this.icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
27
|
+
this.icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
28
28
|
/**
|
|
29
29
|
* Top right background image (URL)
|
|
30
30
|
*/
|
|
31
|
-
this.topRightBackground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg', ...(ngDevMode ? [{ debugName: "topRightBackground" }] : []));
|
|
31
|
+
this.topRightBackground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg', ...(ngDevMode ? [{ debugName: "topRightBackground" }] : /* istanbul ignore next */ []));
|
|
32
32
|
/**
|
|
33
33
|
* Top right foreground image (URL)
|
|
34
34
|
*/
|
|
35
|
-
this.topRightForeground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg', ...(ngDevMode ? [{ debugName: "topRightForeground" }] : []));
|
|
35
|
+
this.topRightForeground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg', ...(ngDevMode ? [{ debugName: "topRightForeground" }] : /* istanbul ignore next */ []));
|
|
36
36
|
/**
|
|
37
37
|
* Bottom left background image (URL)
|
|
38
38
|
*/
|
|
39
|
-
this.bottomLeftBackground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg', ...(ngDevMode ? [{ debugName: "bottomLeftBackground" }] : []));
|
|
39
|
+
this.bottomLeftBackground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg', ...(ngDevMode ? [{ debugName: "bottomLeftBackground" }] : /* istanbul ignore next */ []));
|
|
40
40
|
/**
|
|
41
41
|
* Bottom left foreground image (URL)
|
|
42
42
|
*/
|
|
43
|
-
this.bottomLeftForeground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg', ...(ngDevMode ? [{ debugName: "bottomLeftForeground" }] : []));
|
|
43
|
+
this.bottomLeftForeground = input('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg', ...(ngDevMode ? [{ debugName: "bottomLeftForeground" }] : /* istanbul ignore next */ []));
|
|
44
44
|
/**
|
|
45
45
|
* Background color for content (text)
|
|
46
46
|
*/
|
|
47
|
-
this.contentBackgroundColor = input('var(--pr-t-elevation-surface-default)', ...(ngDevMode ? [{ debugName: "contentBackgroundColor" }] : []));
|
|
47
|
+
this.contentBackgroundColor = input('var(--pr-t-elevation-surface-default)', ...(ngDevMode ? [{ debugName: "contentBackgroundColor" }] : /* istanbul ignore next */ []));
|
|
48
48
|
/**
|
|
49
49
|
* Add content above heading
|
|
50
50
|
*/
|
|
51
|
-
this.slotTop = input(...(ngDevMode ? [undefined, { debugName: "slotTop" }] : []));
|
|
51
|
+
this.slotTop = input(...(ngDevMode ? [undefined, { debugName: "slotTop" }] : /* istanbul ignore next */ []));
|
|
52
52
|
/**
|
|
53
53
|
* Add illustration beside content
|
|
54
54
|
*/
|
|
55
|
-
this.illustration = input(...(ngDevMode ? [undefined, { debugName: "illustration" }] : []));
|
|
56
|
-
this.heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : []));
|
|
57
|
-
this.description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : []));
|
|
58
|
-
this.hx = input(1, { ...(ngDevMode ? { debugName: "hx" } : {}), transform: numberAttribute });
|
|
59
|
-
this.hxStyle = input(1, { ...(ngDevMode ? { debugName: "hxStyle" } : {}), transform: numberAttribute });
|
|
55
|
+
this.illustration = input(...(ngDevMode ? [undefined, { debugName: "illustration" }] : /* istanbul ignore next */ []));
|
|
56
|
+
this.heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
57
|
+
this.description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : /* istanbul ignore next */ []));
|
|
58
|
+
this.hx = input(1, { ...(ngDevMode ? { debugName: "hx" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
59
|
+
this.hxStyle = input(1, { ...(ngDevMode ? { debugName: "hxStyle" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
60
60
|
}
|
|
61
61
|
isStringPortalContent(message) {
|
|
62
62
|
return typeof message === 'string';
|
|
63
63
|
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
65
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: EmptyStatePageComponent, isStandalone: true, selector: "lu-empty-state-page", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, topRightBackground: { classPropertyName: "topRightBackground", publicName: "topRightBackground", isSignal: true, isRequired: false, transformFunction: null }, topRightForeground: { classPropertyName: "topRightForeground", publicName: "topRightForeground", isSignal: true, isRequired: false, transformFunction: null }, bottomLeftBackground: { classPropertyName: "bottomLeftBackground", publicName: "bottomLeftBackground", isSignal: true, isRequired: false, transformFunction: null }, bottomLeftForeground: { classPropertyName: "bottomLeftForeground", publicName: "bottomLeftForeground", isSignal: true, isRequired: false, transformFunction: null }, contentBackgroundColor: { classPropertyName: "contentBackgroundColor", publicName: "contentBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, slotTop: { classPropertyName: "slotTop", publicName: "slotTop", isSignal: true, isRequired: false, transformFunction: null }, illustration: { classPropertyName: "illustration", publicName: "illustration", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, hx: { classPropertyName: "hx", publicName: "hx", isSignal: true, isRequired: false, transformFunction: null }, hxStyle: { classPropertyName: "hxStyle", publicName: "hxStyle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "emptyState-wrapper" }, ngImport: i0, template: "<section\n\tclass=\"emptyState mod-page\"\n\t[class.mod-headingStyleH2]=\"hxStyle() === 2\"\n\t[attr.role]=\"heading() ? null : 'presentation'\"\n\t[style.--components-emptyState-background-color]=\"contentBackgroundColor()\"\n\t[style.--components-emptyState-illustration-background-bottom-left]=\"bottomLeftBackground() ? `url(${bottomLeftBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-bottom-left]=\"bottomLeftForeground() ? `url(${bottomLeftForeground()})` : null\"\n\t[style.--components-emptyState-illustration-background-top-right]=\"topRightBackground() ? `url(${topRightBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-top-right]=\"topRightForeground() ? `url(${topRightForeground()})` : null\"\n>\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (icon()) {\n\t\t\t\t<div class=\"emptyState-content-icon\" aria-hidden=\"true\" [innerHtml]=\"icon() | luSafeExternalSvg\"></div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (slotTop()) {\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ng-container *luPortal=\"slotTop()\" />\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t@if (illustration()) {\n\t\t\t<div class=\"emptyState-illustration\"><ng-container *luPortal=\"illustration()\" /></div>\n\t\t}\n\t</div>\n</section>\n", styles: ["@layer components{.emptyState{--components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);--components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));--components-emptyState-container-position: static;--components-emptyState-background-color: var(--pr-t-elevation-surface-default);--components-emptyState-illustration-top-right-offset-left: min( calc(100% + 5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-illustration-top-right-offset-left-S: min( calc(100% + 3.5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-container-flexDirection: row;--components-emptyState-illustration-display: grid;--components-emptyState-content-heading-font: var(--pr-t-font-heading-3);--components-emptyState-illustration-background-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg);--components-emptyState-illustration-foreground-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg);--components-emptyState-illustration-background-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg);--components-emptyState-illustration-foreground-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg);display:flex;flex-direction:column;flex-grow:1;padding:var(--pr-t-spacings-200);color:var(--pr-t-color-text)}.emptyState-container{align-items:center;display:flex;flex-direction:var(--components-emptyState-container-flexDirection);flex-grow:1;justify-content:center;max-inline-size:var(--components-emptyState-container-maxWidth);inset-inline-start:var(--components-emptyState-container-left);padding:0;inline-size:100%;position:var(--components-emptyState-container-position);gap:var(--pr-t-spacings-700)}.emptyState-illustration{max-inline-size:min(360px,100%);place-items:center;display:var(--components-emptyState-illustration-display)}.emptyState-illustration:empty{display:none}.emptyState-illustration-img{max-inline-size:100%;block-size:auto}.emptyState-content{flex-shrink:0;border-radius:var(--pr-t-border-radius-structure);max-inline-size:100%;padding:var(--pr-t-spacings-50);inline-size:calc(25rem + var(--pr-t-spacings-50) * 2)}.emptyState-content-icon{--components-emptyState-icon-background-color: var(--palettes-100, var(--palettes-product-100));--components-emptyState-icon-action-color: var(--palettes-600, var(--palettes-brand-600));display:inline-flex;margin-block-end:var(--pr-t-spacings-200)}.emptyState-content-text{padding-inline:var(--pr-t-spacings-50);display:flex;flex-direction:column;gap:var(--pr-t-spacings-150)}.emptyState-content-heading{color:var(--pr-t-color-text-heading);font:var(--components-emptyState-content-heading-font)}.emptyState-content-description{margin:0}.emptyState-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-t-spacings-200)}.emptyState-actions .button{margin:0}.emptyState-actions:empty{display:none}}@layer mods{.emptyState.mod-page{--components-emptyState-container-maxWidth: var(--commons-container-maxWidth);--components-emptyState-content-heading-font: var(--pr-t-font-heading-1);background-image:var(--components-emptyState-illustration-foreground-bottom-left),var(--components-emptyState-illustration-background-bottom-left),var(--components-emptyState-illustration-foreground-top-right),var(--components-emptyState-illustration-background-top-right);background-repeat:no-repeat;background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left),top left var(--components-emptyState-illustration-top-right-offset-left)}@media not all and (min-width:50em){.emptyState.mod-page{background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left-S),top left var(--components-emptyState-illustration-top-right-offset-left-S);background-size:auto 10.875rem}}.emptyState.mod-page .emptyState-content{background-color:var(--components-emptyState-background-color);box-shadow:0 0 8px 4px var(--components-emptyState-background-color)}.emptyState.mod-page .emptyState-content-text{padding:0}@media not all and (min-width:30em){.emptyState.mod-page .emptyState-actions .button{flex-basis:100%}}@media not all and (min-width:30em){.emptyState.mod-page{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}}.emptyState.mod-headingStyleH2{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}.emptyState.mod-center{text-align:center}.emptyState.mod-center .emptyState-actions{justify-content:center}.table .emptyState,.indexTable .emptyState,.dataTable .emptyState{--components-emptyState-container-position: sticky}.container .emptyState{--components-emptyState-container-left: auto}.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-background-color: transparent !important;--components-emptyState-illustration-background-bottom-left: none !important;--components-emptyState-illustration-foreground-bottom-left: none !important;--components-emptyState-illustration-background-top-right: none !important;--components-emptyState-illustration-foreground-top-right: none !important}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-container-flexDirection: column}}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration-img){--components-emptyState-illustration-display: none}}}@layer components{.emptyState-wrapper{display:flex;flex-direction:column;flex-grow:1}}\n"], dependencies: [{ kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }, { kind: "pipe", type: LuSafeExternalSvgPipe, name: "luSafeExternalSvg" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStatePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
65
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: EmptyStatePageComponent, isStandalone: true, selector: "lu-empty-state-page", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, topRightBackground: { classPropertyName: "topRightBackground", publicName: "topRightBackground", isSignal: true, isRequired: false, transformFunction: null }, topRightForeground: { classPropertyName: "topRightForeground", publicName: "topRightForeground", isSignal: true, isRequired: false, transformFunction: null }, bottomLeftBackground: { classPropertyName: "bottomLeftBackground", publicName: "bottomLeftBackground", isSignal: true, isRequired: false, transformFunction: null }, bottomLeftForeground: { classPropertyName: "bottomLeftForeground", publicName: "bottomLeftForeground", isSignal: true, isRequired: false, transformFunction: null }, contentBackgroundColor: { classPropertyName: "contentBackgroundColor", publicName: "contentBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, slotTop: { classPropertyName: "slotTop", publicName: "slotTop", isSignal: true, isRequired: false, transformFunction: null }, illustration: { classPropertyName: "illustration", publicName: "illustration", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, hx: { classPropertyName: "hx", publicName: "hx", isSignal: true, isRequired: false, transformFunction: null }, hxStyle: { classPropertyName: "hxStyle", publicName: "hxStyle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "emptyState-wrapper" }, ngImport: i0, template: "<section\n\tclass=\"emptyState mod-page\"\n\t[class.mod-headingStyleH2]=\"hxStyle() === 2\"\n\t[attr.role]=\"heading() ? null : 'presentation'\"\n\t[style.--components-emptyState-background-color]=\"contentBackgroundColor()\"\n\t[style.--components-emptyState-illustration-background-bottom-left]=\"bottomLeftBackground() ? `url(${bottomLeftBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-bottom-left]=\"bottomLeftForeground() ? `url(${bottomLeftForeground()})` : null\"\n\t[style.--components-emptyState-illustration-background-top-right]=\"topRightBackground() ? `url(${topRightBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-top-right]=\"topRightForeground() ? `url(${topRightForeground()})` : null\"\n>\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (icon()) {\n\t\t\t\t<div class=\"emptyState-content-icon\" aria-hidden=\"true\" [innerHtml]=\"icon() | luSafeExternalSvg\"></div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (slotTop()) {\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ng-container *luPortal=\"slotTop()\" />\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t@if (illustration()) {\n\t\t\t<div class=\"emptyState-illustration\"><ng-container *luPortal=\"illustration()\" /></div>\n\t\t}\n\t</div>\n</section>\n", styles: ["@layer components{.emptyState{--components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);--components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));--components-emptyState-container-position: static;--components-emptyState-background-color: var(--pr-t-elevation-surface-default);--components-emptyState-illustration-top-right-offset-left: min( calc(100% + 5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-illustration-top-right-offset-left-S: min( calc(100% + 3.5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-container-flexDirection: row;--components-emptyState-illustration-display: grid;--components-emptyState-content-heading-font: var(--pr-t-font-heading-3);--components-emptyState-illustration-background-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg);--components-emptyState-illustration-foreground-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg);--components-emptyState-illustration-background-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg);--components-emptyState-illustration-foreground-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg);display:flex;flex-direction:column;flex-grow:1;padding:var(--pr-t-spacings-200);color:var(--pr-t-color-text)}.emptyState-container{align-items:center;display:flex;flex-direction:var(--components-emptyState-container-flexDirection);flex-grow:1;justify-content:center;max-inline-size:var(--components-emptyState-container-maxWidth);inset-inline-start:var(--components-emptyState-container-left);padding:0;inline-size:100%;position:var(--components-emptyState-container-position);gap:var(--pr-t-spacings-700)}.emptyState-illustration{max-inline-size:min(360px,100%);place-items:center;display:var(--components-emptyState-illustration-display)}.emptyState-illustration:empty{display:none}.emptyState-illustration-img{max-inline-size:100%;block-size:auto}.emptyState-content{flex-shrink:0;border-radius:var(--pr-t-border-radius-structure);max-inline-size:100%;padding:var(--pr-t-spacings-50);inline-size:calc(25rem + var(--pr-t-spacings-50) * 2)}.emptyState-content-icon{--components-emptyState-icon-background-color: var(--palettes-100, var(--palettes-product-100));--components-emptyState-icon-action-color: var(--palettes-600, var(--palettes-brand-600));display:inline-flex;margin-block-end:var(--pr-t-spacings-200)}.emptyState-content-text{padding-inline:var(--pr-t-spacings-50);display:flex;flex-direction:column;gap:var(--pr-t-spacings-150)}.emptyState-content-heading{color:var(--pr-t-color-text-heading);font:var(--components-emptyState-content-heading-font)}.emptyState-content-description{margin:0}.emptyState-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-t-spacings-200)}.emptyState-actions .button{margin:0}.emptyState-actions:empty{display:none}}@layer mods{.emptyState.mod-page{--components-emptyState-container-maxWidth: var(--commons-container-maxWidth);--components-emptyState-content-heading-font: var(--pr-t-font-heading-1);background-image:var(--components-emptyState-illustration-foreground-bottom-left),var(--components-emptyState-illustration-background-bottom-left),var(--components-emptyState-illustration-foreground-top-right),var(--components-emptyState-illustration-background-top-right);background-repeat:no-repeat;background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left),top left var(--components-emptyState-illustration-top-right-offset-left)}@media not all and (min-width:50em){.emptyState.mod-page{background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left-S),top left var(--components-emptyState-illustration-top-right-offset-left-S);background-size:auto 10.875rem}}.emptyState.mod-page .emptyState-content{background-color:var(--components-emptyState-background-color);box-shadow:0 0 8px 4px var(--components-emptyState-background-color)}.emptyState.mod-page .emptyState-content-text{padding:0}@media not all and (min-width:30em){.emptyState.mod-page .emptyState-actions .button{flex-basis:100%}}@media not all and (min-width:30em){.emptyState.mod-page{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}}.emptyState.mod-headingStyleH2{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}.emptyState.mod-center{text-align:center}.emptyState.mod-center .emptyState-actions{justify-content:center}.table .emptyState,.indexTable .emptyState,.dataTable .emptyState{--components-emptyState-container-position: sticky}.container .emptyState{--components-emptyState-container-left: auto}.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-background-color: transparent !important;--components-emptyState-illustration-background-bottom-left: none !important;--components-emptyState-illustration-foreground-bottom-left: none !important;--components-emptyState-illustration-background-top-right: none !important;--components-emptyState-illustration-foreground-top-right: none !important}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-container-flexDirection: column}}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration-img){--components-emptyState-illustration-display: none}}}@layer components{.emptyState-wrapper{display:flex;flex-direction:column;flex-grow:1}}\n"], dependencies: [{ kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }, { kind: "pipe", type: LuSafeExternalSvgPipe, name: "luSafeExternalSvg" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStatePageComponent, decorators: [{
|
|
68
68
|
type: Component,
|
|
69
69
|
args: [{ selector: 'lu-empty-state-page', imports: [PortalDirective, LuSafeExternalSvgPipe], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
70
70
|
class: 'emptyState-wrapper',
|
|
71
71
|
}, template: "<section\n\tclass=\"emptyState mod-page\"\n\t[class.mod-headingStyleH2]=\"hxStyle() === 2\"\n\t[attr.role]=\"heading() ? null : 'presentation'\"\n\t[style.--components-emptyState-background-color]=\"contentBackgroundColor()\"\n\t[style.--components-emptyState-illustration-background-bottom-left]=\"bottomLeftBackground() ? `url(${bottomLeftBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-bottom-left]=\"bottomLeftForeground() ? `url(${bottomLeftForeground()})` : null\"\n\t[style.--components-emptyState-illustration-background-top-right]=\"topRightBackground() ? `url(${topRightBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-top-right]=\"topRightForeground() ? `url(${topRightForeground()})` : null\"\n>\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (icon()) {\n\t\t\t\t<div class=\"emptyState-content-icon\" aria-hidden=\"true\" [innerHtml]=\"icon() | luSafeExternalSvg\"></div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (slotTop()) {\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ng-container *luPortal=\"slotTop()\" />\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t@if (illustration()) {\n\t\t\t<div class=\"emptyState-illustration\"><ng-container *luPortal=\"illustration()\" /></div>\n\t\t}\n\t</div>\n</section>\n", styles: ["@layer components{.emptyState{--components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);--components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));--components-emptyState-container-position: static;--components-emptyState-background-color: var(--pr-t-elevation-surface-default);--components-emptyState-illustration-top-right-offset-left: min( calc(100% + 5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-illustration-top-right-offset-left-S: min( calc(100% + 3.5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-container-flexDirection: row;--components-emptyState-illustration-display: grid;--components-emptyState-content-heading-font: var(--pr-t-font-heading-3);--components-emptyState-illustration-background-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg);--components-emptyState-illustration-foreground-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg);--components-emptyState-illustration-background-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg);--components-emptyState-illustration-foreground-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg);display:flex;flex-direction:column;flex-grow:1;padding:var(--pr-t-spacings-200);color:var(--pr-t-color-text)}.emptyState-container{align-items:center;display:flex;flex-direction:var(--components-emptyState-container-flexDirection);flex-grow:1;justify-content:center;max-inline-size:var(--components-emptyState-container-maxWidth);inset-inline-start:var(--components-emptyState-container-left);padding:0;inline-size:100%;position:var(--components-emptyState-container-position);gap:var(--pr-t-spacings-700)}.emptyState-illustration{max-inline-size:min(360px,100%);place-items:center;display:var(--components-emptyState-illustration-display)}.emptyState-illustration:empty{display:none}.emptyState-illustration-img{max-inline-size:100%;block-size:auto}.emptyState-content{flex-shrink:0;border-radius:var(--pr-t-border-radius-structure);max-inline-size:100%;padding:var(--pr-t-spacings-50);inline-size:calc(25rem + var(--pr-t-spacings-50) * 2)}.emptyState-content-icon{--components-emptyState-icon-background-color: var(--palettes-100, var(--palettes-product-100));--components-emptyState-icon-action-color: var(--palettes-600, var(--palettes-brand-600));display:inline-flex;margin-block-end:var(--pr-t-spacings-200)}.emptyState-content-text{padding-inline:var(--pr-t-spacings-50);display:flex;flex-direction:column;gap:var(--pr-t-spacings-150)}.emptyState-content-heading{color:var(--pr-t-color-text-heading);font:var(--components-emptyState-content-heading-font)}.emptyState-content-description{margin:0}.emptyState-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-t-spacings-200)}.emptyState-actions .button{margin:0}.emptyState-actions:empty{display:none}}@layer mods{.emptyState.mod-page{--components-emptyState-container-maxWidth: var(--commons-container-maxWidth);--components-emptyState-content-heading-font: var(--pr-t-font-heading-1);background-image:var(--components-emptyState-illustration-foreground-bottom-left),var(--components-emptyState-illustration-background-bottom-left),var(--components-emptyState-illustration-foreground-top-right),var(--components-emptyState-illustration-background-top-right);background-repeat:no-repeat;background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left),top left var(--components-emptyState-illustration-top-right-offset-left)}@media not all and (min-width:50em){.emptyState.mod-page{background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left-S),top left var(--components-emptyState-illustration-top-right-offset-left-S);background-size:auto 10.875rem}}.emptyState.mod-page .emptyState-content{background-color:var(--components-emptyState-background-color);box-shadow:0 0 8px 4px var(--components-emptyState-background-color)}.emptyState.mod-page .emptyState-content-text{padding:0}@media not all and (min-width:30em){.emptyState.mod-page .emptyState-actions .button{flex-basis:100%}}@media not all and (min-width:30em){.emptyState.mod-page{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}}.emptyState.mod-headingStyleH2{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}.emptyState.mod-center{text-align:center}.emptyState.mod-center .emptyState-actions{justify-content:center}.table .emptyState,.indexTable .emptyState,.dataTable .emptyState{--components-emptyState-container-position: sticky}.container .emptyState{--components-emptyState-container-left: auto}.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-background-color: transparent !important;--components-emptyState-illustration-background-bottom-left: none !important;--components-emptyState-illustration-foreground-bottom-left: none !important;--components-emptyState-illustration-background-top-right: none !important;--components-emptyState-illustration-foreground-top-right: none !important}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-container-flexDirection: column}}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration-img){--components-emptyState-illustration-display: none}}}@layer components{.emptyState-wrapper{display:flex;flex-direction:column;flex-grow:1}}\n"] }]
|
|
72
72
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], topRightBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "topRightBackground", required: false }] }], topRightForeground: [{ type: i0.Input, args: [{ isSignal: true, alias: "topRightForeground", required: false }] }], bottomLeftBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "bottomLeftBackground", required: false }] }], bottomLeftForeground: [{ type: i0.Input, args: [{ isSignal: true, alias: "bottomLeftForeground", required: false }] }], contentBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentBackgroundColor", required: false }] }], slotTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "slotTop", required: false }] }], illustration: [{ type: i0.Input, args: [{ isSignal: true, alias: "illustration", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], hx: [{ type: i0.Input, args: [{ isSignal: true, alias: "hx", required: false }] }], hxStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hxStyle", required: false }] }] } });
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Available EmptyState Types
|
|
76
|
+
*/
|
|
77
|
+
const EMPTY_STATE_HX = [1, 2, 3, 4, 5, 6];
|
|
78
|
+
const EMPTY_STATE_HX_STYLE = [1, 2];
|
|
74
79
|
const ICON_TO_ILLUSTRATION = {
|
|
75
80
|
Banknote: 'banknote',
|
|
76
81
|
Bell: 'bell',
|
|
@@ -98,13 +103,14 @@ const ICON_TO_ILLUSTRATION = {
|
|
|
98
103
|
Thumb: 'thumbUp',
|
|
99
104
|
Warning: 'warning',
|
|
100
105
|
};
|
|
106
|
+
|
|
101
107
|
class EmptyStateSectionComponent {
|
|
102
108
|
constructor() {
|
|
103
109
|
/** @deprecated use illustration and action */
|
|
104
|
-
this.icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
105
|
-
this.actionIllustration = computed(() => this.action() || this.icon()?.includes('Action.svg'), ...(ngDevMode ? [{ debugName: "actionIllustration" }] : []));
|
|
106
|
-
this.illustration = input(null, ...(ngDevMode ? [{ debugName: "illustration" }] : []));
|
|
107
|
-
this.action = input(false, { ...(ngDevMode ? { debugName: "action" } : {}), transform: booleanAttribute });
|
|
110
|
+
this.icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
111
|
+
this.actionIllustration = computed(() => this.action() || this.icon()?.includes('Action.svg'), ...(ngDevMode ? [{ debugName: "actionIllustration" }] : /* istanbul ignore next */ []));
|
|
112
|
+
this.illustration = input(null, ...(ngDevMode ? [{ debugName: "illustration" }] : /* istanbul ignore next */ []));
|
|
113
|
+
this.action = input(false, { ...(ngDevMode ? { debugName: "action" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
108
114
|
this.iconOrIllustration = computed(() => {
|
|
109
115
|
if (this.icon()) {
|
|
110
116
|
if (this.icon()?.includes('Success')) {
|
|
@@ -117,34 +123,34 @@ class EmptyStateSectionComponent {
|
|
|
117
123
|
return ICON_TO_ILLUSTRATION[iconName];
|
|
118
124
|
}
|
|
119
125
|
return this.illustration();
|
|
120
|
-
}, ...(ngDevMode ? [{ debugName: "iconOrIllustration" }] : []));
|
|
126
|
+
}, ...(ngDevMode ? [{ debugName: "iconOrIllustration" }] : /* istanbul ignore next */ []));
|
|
121
127
|
/**
|
|
122
128
|
* Which palette should be used for the empty state section.
|
|
123
129
|
* Defaults to none (inherits parent palette)
|
|
124
130
|
*/
|
|
125
|
-
this.palette = input('none', ...(ngDevMode ? [{ debugName: "palette" }] : []));
|
|
126
|
-
this.center = input(false, { ...(ngDevMode ? { debugName: "center" } : {}), transform: booleanAttribute });
|
|
131
|
+
this.palette = input('none', ...(ngDevMode ? [{ debugName: "palette" }] : /* istanbul ignore next */ []));
|
|
132
|
+
this.center = input(false, { ...(ngDevMode ? { debugName: "center" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
127
133
|
/**
|
|
128
134
|
* The title of the empty state section
|
|
129
135
|
*/
|
|
130
|
-
this.heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : []));
|
|
136
|
+
this.heading = input(...(ngDevMode ? [undefined, { debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
131
137
|
/**
|
|
132
138
|
* The description of the empty state section
|
|
133
139
|
*/
|
|
134
|
-
this.description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : []));
|
|
140
|
+
this.description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : /* istanbul ignore next */ []));
|
|
135
141
|
/**
|
|
136
142
|
* Define the aria level of the title
|
|
137
143
|
*/
|
|
138
|
-
this.hx = input(3, { ...(ngDevMode ? { debugName: "hx" } : {}), transform: numberAttribute });
|
|
139
|
-
this.emptyStateClasses = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }), ...(ngDevMode ? [{ debugName: "emptyStateClasses" }] : []));
|
|
144
|
+
this.hx = input(3, { ...(ngDevMode ? { debugName: "hx" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
145
|
+
this.emptyStateClasses = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }), ...(ngDevMode ? [{ debugName: "emptyStateClasses" }] : /* istanbul ignore next */ []));
|
|
140
146
|
}
|
|
141
147
|
isStringPortalContent(message) {
|
|
142
148
|
return typeof message === 'string';
|
|
143
149
|
}
|
|
144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
145
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStateSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: EmptyStateSectionComponent, isStandalone: true, selector: "lu-empty-state-section", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, illustration: { classPropertyName: "illustration", publicName: "illustration", isSignal: true, isRequired: false, transformFunction: null }, action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, palette: { classPropertyName: "palette", publicName: "palette", isSignal: true, isRequired: false, transformFunction: null }, center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, hx: { classPropertyName: "hx", publicName: "hx", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<section class=\"emptyState\" [class.mod-center]=\"center()\" [attr.role]=\"heading() ? null : 'presentation'\">\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (iconOrIllustration()) {\n\t\t\t\t<div class=\"emptyState-content-icon\">\n\t\t\t\t\t<lu-bubble-illustration [action]=\"actionIllustration()\" [illustration]=\"iconOrIllustration()\" size=\"L\" [palette]=\"palette()\" />\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\n", styles: ["@layer components{.emptyState{--components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);--components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));--components-emptyState-container-position: static;--components-emptyState-background-color: var(--pr-t-elevation-surface-default);--components-emptyState-illustration-top-right-offset-left: min( calc(100% + 5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-illustration-top-right-offset-left-S: min( calc(100% + 3.5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-container-flexDirection: row;--components-emptyState-illustration-display: grid;--components-emptyState-content-heading-font: var(--pr-t-font-heading-3);--components-emptyState-illustration-background-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg);--components-emptyState-illustration-foreground-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg);--components-emptyState-illustration-background-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg);--components-emptyState-illustration-foreground-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg);display:flex;flex-direction:column;flex-grow:1;padding:var(--pr-t-spacings-200);color:var(--pr-t-color-text)}.emptyState-container{align-items:center;display:flex;flex-direction:var(--components-emptyState-container-flexDirection);flex-grow:1;justify-content:center;max-inline-size:var(--components-emptyState-container-maxWidth);inset-inline-start:var(--components-emptyState-container-left);padding:0;inline-size:100%;position:var(--components-emptyState-container-position);gap:var(--pr-t-spacings-700)}.emptyState-illustration{max-inline-size:min(360px,100%);place-items:center;display:var(--components-emptyState-illustration-display)}.emptyState-illustration:empty{display:none}.emptyState-illustration-img{max-inline-size:100%;block-size:auto}.emptyState-content{flex-shrink:0;border-radius:var(--pr-t-border-radius-structure);max-inline-size:100%;padding:var(--pr-t-spacings-50);inline-size:calc(25rem + var(--pr-t-spacings-50) * 2)}.emptyState-content-icon{--components-emptyState-icon-background-color: var(--palettes-100, var(--palettes-product-100));--components-emptyState-icon-action-color: var(--palettes-600, var(--palettes-brand-600));display:inline-flex;margin-block-end:var(--pr-t-spacings-200)}.emptyState-content-text{padding-inline:var(--pr-t-spacings-50);display:flex;flex-direction:column;gap:var(--pr-t-spacings-150)}.emptyState-content-heading{color:var(--pr-t-color-text-heading);font:var(--components-emptyState-content-heading-font)}.emptyState-content-description{margin:0}.emptyState-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-t-spacings-200)}.emptyState-actions .button{margin:0}.emptyState-actions:empty{display:none}}@layer mods{.emptyState.mod-page{--components-emptyState-container-maxWidth: var(--commons-container-maxWidth);--components-emptyState-content-heading-font: var(--pr-t-font-heading-1);background-image:var(--components-emptyState-illustration-foreground-bottom-left),var(--components-emptyState-illustration-background-bottom-left),var(--components-emptyState-illustration-foreground-top-right),var(--components-emptyState-illustration-background-top-right);background-repeat:no-repeat;background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left),top left var(--components-emptyState-illustration-top-right-offset-left)}@media not all and (min-width:50em){.emptyState.mod-page{background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left-S),top left var(--components-emptyState-illustration-top-right-offset-left-S);background-size:auto 10.875rem}}.emptyState.mod-page .emptyState-content{background-color:var(--components-emptyState-background-color);box-shadow:0 0 8px 4px var(--components-emptyState-background-color)}.emptyState.mod-page .emptyState-content-text{padding:0}@media not all and (min-width:30em){.emptyState.mod-page .emptyState-actions .button{flex-basis:100%}}@media not all and (min-width:30em){.emptyState.mod-page{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}}.emptyState.mod-headingStyleH2{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}.emptyState.mod-center{text-align:center}.emptyState.mod-center .emptyState-actions{justify-content:center}.table .emptyState,.indexTable .emptyState,.dataTable .emptyState{--components-emptyState-container-position: sticky}.container .emptyState{--components-emptyState-container-left: auto}.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-background-color: transparent !important;--components-emptyState-illustration-background-bottom-left: none !important;--components-emptyState-illustration-foreground-bottom-left: none !important;--components-emptyState-illustration-background-top-right: none !important;--components-emptyState-illustration-foreground-top-right: none !important}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-container-flexDirection: column}}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration-img){--components-emptyState-illustration-display: none}}}@layer base{lu-empty-state-section{inline-size:100%}}\n"], dependencies: [{ kind: "directive", type: PortalDirective, selector: "[luPortal]", inputs: ["luPortal", "luPortalContext"] }, { kind: "component", type: BubbleIllustrationComponent, selector: "lu-bubble-illustration", inputs: ["illustration", "palette", "size", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
146
152
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: EmptyStateSectionComponent, decorators: [{
|
|
148
154
|
type: Component,
|
|
149
155
|
args: [{ selector: 'lu-empty-state-section', imports: [PortalDirective, BubbleIllustrationComponent], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<section class=\"emptyState\" [class.mod-center]=\"center()\" [attr.role]=\"heading() ? null : 'presentation'\">\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (iconOrIllustration()) {\n\t\t\t\t<div class=\"emptyState-content-icon\">\n\t\t\t\t\t<lu-bubble-illustration [action]=\"actionIllustration()\" [illustration]=\"iconOrIllustration()\" size=\"L\" [palette]=\"palette()\" />\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\n", styles: ["@layer components{.emptyState{--components-emptyState-container-maxWidth: calc(100vw - var(--commons-navSide-width) - 7rem);--components-emptyState-container-left: calc(var(--commons-navSide-width) + var(--pr-t-spacings-400));--components-emptyState-container-position: static;--components-emptyState-background-color: var(--pr-t-elevation-surface-default);--components-emptyState-illustration-top-right-offset-left: min( calc(100% + 5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-illustration-top-right-offset-left-S: min( calc(100% + 3.5rem) , calc(var(--components-emptyState-container-maxWidth) - 8.5rem) );--components-emptyState-container-flexDirection: row;--components-emptyState-illustration-display: grid;--components-emptyState-content-heading-font: var(--pr-t-font-heading-3);--components-emptyState-illustration-background-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg);--components-emptyState-illustration-foreground-bottom-left: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg);--components-emptyState-illustration-background-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg);--components-emptyState-illustration-foreground-top-right: url(https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg);display:flex;flex-direction:column;flex-grow:1;padding:var(--pr-t-spacings-200);color:var(--pr-t-color-text)}.emptyState-container{align-items:center;display:flex;flex-direction:var(--components-emptyState-container-flexDirection);flex-grow:1;justify-content:center;max-inline-size:var(--components-emptyState-container-maxWidth);inset-inline-start:var(--components-emptyState-container-left);padding:0;inline-size:100%;position:var(--components-emptyState-container-position);gap:var(--pr-t-spacings-700)}.emptyState-illustration{max-inline-size:min(360px,100%);place-items:center;display:var(--components-emptyState-illustration-display)}.emptyState-illustration:empty{display:none}.emptyState-illustration-img{max-inline-size:100%;block-size:auto}.emptyState-content{flex-shrink:0;border-radius:var(--pr-t-border-radius-structure);max-inline-size:100%;padding:var(--pr-t-spacings-50);inline-size:calc(25rem + var(--pr-t-spacings-50) * 2)}.emptyState-content-icon{--components-emptyState-icon-background-color: var(--palettes-100, var(--palettes-product-100));--components-emptyState-icon-action-color: var(--palettes-600, var(--palettes-brand-600));display:inline-flex;margin-block-end:var(--pr-t-spacings-200)}.emptyState-content-text{padding-inline:var(--pr-t-spacings-50);display:flex;flex-direction:column;gap:var(--pr-t-spacings-150)}.emptyState-content-heading{color:var(--pr-t-color-text-heading);font:var(--components-emptyState-content-heading-font)}.emptyState-content-description{margin:0}.emptyState-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pr-t-spacings-200)}.emptyState-actions .button{margin:0}.emptyState-actions:empty{display:none}}@layer mods{.emptyState.mod-page{--components-emptyState-container-maxWidth: var(--commons-container-maxWidth);--components-emptyState-content-heading-font: var(--pr-t-font-heading-1);background-image:var(--components-emptyState-illustration-foreground-bottom-left),var(--components-emptyState-illustration-background-bottom-left),var(--components-emptyState-illustration-foreground-top-right),var(--components-emptyState-illustration-background-top-right);background-repeat:no-repeat;background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left),top left var(--components-emptyState-illustration-top-right-offset-left)}@media not all and (min-width:50em){.emptyState.mod-page{background-position:bottom left,bottom left,top left var(--components-emptyState-illustration-top-right-offset-left-S),top left var(--components-emptyState-illustration-top-right-offset-left-S);background-size:auto 10.875rem}}.emptyState.mod-page .emptyState-content{background-color:var(--components-emptyState-background-color);box-shadow:0 0 8px 4px var(--components-emptyState-background-color)}.emptyState.mod-page .emptyState-content-text{padding:0}@media not all and (min-width:30em){.emptyState.mod-page .emptyState-actions .button{flex-basis:100%}}@media not all and (min-width:30em){.emptyState.mod-page{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}}.emptyState.mod-headingStyleH2{--components-emptyState-content-heading-font: var(--pr-t-font-heading-2)}.emptyState.mod-center{text-align:center}.emptyState.mod-center .emptyState-actions{justify-content:center}.table .emptyState,.indexTable .emptyState,.dataTable .emptyState{--components-emptyState-container-position: sticky}.container .emptyState{--components-emptyState-container-left: auto}.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-background-color: transparent !important;--components-emptyState-illustration-background-bottom-left: none !important;--components-emptyState-illustration-foreground-bottom-left: none !important;--components-emptyState-illustration-background-top-right: none !important;--components-emptyState-illustration-foreground-top-right: none !important}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration:not(:empty)){--components-emptyState-container-flexDirection: column}}@media not all and (min-width:50em){.emptyState:has(.emptyState-illustration-img){--components-emptyState-illustration-display: none}}}@layer base{lu-empty-state-section{inline-size:100%}}\n"] }]
|
|
150
156
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], illustration: [{ type: i0.Input, args: [{ isSignal: true, alias: "illustration", required: false }] }], action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: false }] }], palette: [{ type: i0.Input, args: [{ isSignal: true, alias: "palette", required: false }] }], center: [{ type: i0.Input, args: [{ isSignal: true, alias: "center", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], hx: [{ type: i0.Input, args: [{ isSignal: true, alias: "hx", required: false }] }] } });
|
|
@@ -153,5 +159,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
153
159
|
* Generated bundle index. Do not edit.
|
|
154
160
|
*/
|
|
155
161
|
|
|
156
|
-
export { EmptyStatePageComponent, EmptyStatePageIllustration, EmptyStateSectionComponent };
|
|
162
|
+
export { EMPTY_STATE_HX, EMPTY_STATE_HX_STYLE, EmptyStatePageComponent, EmptyStatePageIllustration, EmptyStateSectionComponent, ICON_TO_ILLUSTRATION };
|
|
157
163
|
//# sourceMappingURL=lucca-front-ng-empty-state.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-empty-state.mjs","sources":["../../../packages/ng/empty-state/empty-state-page-illustration/empty-state-page-illustration.component.ts","../../../packages/ng/empty-state/empty-state-page-illustration/empty-state-page-illustration.component.html","../../../packages/ng/empty-state/empty-state-page/empty-state-page.component.ts","../../../packages/ng/empty-state/empty-state-page/empty-state-page.component.html","../../../packages/ng/empty-state/empty-state-section/empty-state-section.component.ts","../../../packages/ng/empty-state/empty-state-section/empty-state-section.component.html","../../../packages/ng/empty-state/lucca-front-ng-empty-state.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tselector: 'lu-empty-state-page-illustration',\n\ttemplateUrl: './empty-state-page-illustration.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'pr-u-displayFlex',\n\t},\n})\nexport class EmptyStatePageIllustration {\n\treadonly src = input<string | null>(null);\n\treadonly alt = input<string | null>(null);\n}\n","<img class=\"emptyState-illustration-img\" [attr.src]=\"src()\" [attr.alt]=\"alt()\" />\n","import { ChangeDetectionStrategy, Component, input, numberAttribute, ViewEncapsulation } from '@angular/core';\nimport { PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { LuSafeExternalSvgPipe } from '@lucca-front/ng/safe-content';\nimport { Hx, HxStyle } from '../empty-state.model';\n\n@Component({\n\tselector: 'lu-empty-state-page',\n\timports: [PortalDirective, LuSafeExternalSvgPipe],\n\ttemplateUrl: './empty-state-page.component.html',\n\tstyleUrl: './empty-state-page.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'emptyState-wrapper',\n\t},\n})\nexport class EmptyStatePageComponent {\n\t/**\n\t * Icon image (URL)\n\t */\n\treadonly icon = input<string | null>(null);\n\n\t/**\n\t * Top right background image (URL)\n\t */\n\treadonly topRightBackground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg');\n\n\t/**\n\t * Top right foreground image (URL)\n\t */\n\treadonly topRightForeground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg');\n\n\t/**\n\t * Bottom left background image (URL)\n\t */\n\treadonly bottomLeftBackground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg');\n\n\t/**\n\t * Bottom left foreground image (URL)\n\t */\n\treadonly bottomLeftForeground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg');\n\n\t/**\n\t * Background color for content (text)\n\t */\n\treadonly contentBackgroundColor = input<string>('var(--pr-t-elevation-surface-default)');\n\n\t/**\n\t * Add content above heading\n\t */\n\treadonly slotTop = input<PortalContent>();\n\n\t/**\n\t * Add illustration beside content\n\t */\n\treadonly illustration = input<PortalContent>();\n\n\treadonly heading = input<string>();\n\n\treadonly description = input<PortalContent>();\n\n\treadonly hx = input(1, { transform: numberAttribute as (value: Hx | `${Hx}`) => Hx });\n\n\treadonly hxStyle = input(1, { transform: numberAttribute as (value: HxStyle | `${HxStyle}`) => HxStyle });\n\n\tpublic isStringPortalContent(message: PortalContent): message is string {\n\t\treturn typeof message === 'string';\n\t}\n}\n","<section\n\tclass=\"emptyState mod-page\"\n\t[class.mod-headingStyleH2]=\"hxStyle() === 2\"\n\t[attr.role]=\"heading() ? null : 'presentation'\"\n\t[style.--components-emptyState-background-color]=\"contentBackgroundColor()\"\n\t[style.--components-emptyState-illustration-background-bottom-left]=\"bottomLeftBackground() ? `url(${bottomLeftBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-bottom-left]=\"bottomLeftForeground() ? `url(${bottomLeftForeground()})` : null\"\n\t[style.--components-emptyState-illustration-background-top-right]=\"topRightBackground() ? `url(${topRightBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-top-right]=\"topRightForeground() ? `url(${topRightForeground()})` : null\"\n>\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (icon()) {\n\t\t\t\t<div class=\"emptyState-content-icon\" aria-hidden=\"true\" [innerHtml]=\"icon() | luSafeExternalSvg\"></div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (slotTop()) {\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ng-container *luPortal=\"slotTop()\" />\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t@if (illustration()) {\n\t\t\t<div class=\"emptyState-illustration\"><ng-container *luPortal=\"illustration()\" /></div>\n\t\t}\n\t</div>\n</section>\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, input, numberAttribute } from '@angular/core';\nimport { BubbleIllustration, BubbleIllustrationComponent } from '@lucca-front/ng/bubble-illustration';\nimport { Palette, PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { Hx } from '../empty-state.model';\n\nconst ICON_TO_ILLUSTRATION: Record<string, BubbleIllustration> = {\n\tBanknote: 'banknote',\n\tBell: 'bell',\n\tBulb: 'bulb',\n\tCalendar: 'calendar',\n\tChat: 'chat',\n\tClock: 'clock',\n\tCoffee: 'coffee',\n\tCreditCard: 'paymentCards',\n\tFolder: 'folder',\n\tGift: 'gift',\n\tGraduate: 'graduate',\n\tIDCard: 'polaroid',\n\tLock: 'lock',\n\tMail: 'mail',\n\tMegaphone: 'megaphone',\n\tPaint: 'paint',\n\tPaper: 'invoice',\n\tParty: 'party',\n\tPicture: 'picture',\n\tPoc: 'banknote',\n\tRocket: 'rocket',\n\tSearch: 'magnifyingGlass',\n\tTemperature: 'temperature',\n\tThumb: 'thumbUp',\n\tWarning: 'warning',\n};\n\n@Component({\n\tselector: 'lu-empty-state-section',\n\timports: [PortalDirective, BubbleIllustrationComponent],\n\ttemplateUrl: './empty-state-section.component.html',\n\tstyleUrl: './empty-state-section.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class EmptyStateSectionComponent {\n\t/** @deprecated use illustration and action */\n\treadonly icon = input<string | null>(null);\n\treadonly actionIllustration = computed(() => this.action() || this.icon()?.includes('Action.svg'));\n\n\treadonly illustration = input<BubbleIllustration | string | null>(null);\n\treadonly action = input(false, { transform: booleanAttribute });\n\n\treadonly iconOrIllustration = computed(() => {\n\t\tif (this.icon()) {\n\t\t\tif (this.icon()?.includes('Success')) {\n\t\t\t\treturn 'thumbUp';\n\t\t\t}\n\t\t\tif (this.icon()?.includes('Error')) {\n\t\t\t\treturn 'error';\n\t\t\t}\n\t\t\tconst iconName = this.icon()?.split('/').pop()?.replace('.svg', '').replace('ActionError', '').replace('ActionSuccess', '').replace('Action', '').replace('icon', '');\n\n\t\t\treturn ICON_TO_ILLUSTRATION[iconName];\n\t\t}\n\n\t\treturn this.illustration();\n\t});\n\n\t/**\n\t * Which palette should be used for the empty state section.\n\t * Defaults to none (inherits parent palette)\n\t */\n\treadonly palette = input<Palette>('none');\n\n\treadonly center = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * The title of the empty state section\n\t */\n\treadonly heading = input<string>();\n\n\t/**\n\t * The description of the empty state section\n\t */\n\treadonly description = input<PortalContent>();\n\n\t/**\n\t * Define the aria level of the title\n\t */\n\treadonly hx = input(3, { transform: numberAttribute as (value: Hx | `${Hx}`) => Hx });\n\n\treadonly emptyStateClasses = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }));\n\n\tpublic isStringPortalContent(message: PortalContent): message is string {\n\t\treturn typeof message === 'string';\n\t}\n}\n","<section class=\"emptyState\" [class.mod-center]=\"center()\" [attr.role]=\"heading() ? null : 'presentation'\">\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (iconOrIllustration()) {\n\t\t\t\t<div class=\"emptyState-content-icon\">\n\t\t\t\t\t<lu-bubble-illustration [action]=\"actionIllustration()\" [illustration]=\"iconOrIllustration()\" size=\"L\" [palette]=\"palette()\" />\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAWa,0BAA0B,CAAA;AATvC,IAAA,WAAA,GAAA;AAUU,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAgB,IAAI,+CAAC;AAChC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAgB,IAAI,+CAAC;AACzC,IAAA;8GAHY,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,0XCXvC,2FACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FDUa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBATtC,SAAS;+BACC,kCAAkC,EAAA,eAAA,EAE3B,uBAAuB,CAAC,MAAM,iBAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACL,wBAAA,KAAK,EAAE,kBAAkB;AACzB,qBAAA,EAAA,QAAA,EAAA,2FAAA,EA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AAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECzCvC,+qCA8BA,EAAA,MAAA,EAAA,CAAA,0iLAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDKW,eAAe,gGAAE,2BAA2B,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,SAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAM1C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,EAAA,OAAA,EACzB,CAAC,eAAe,EAAE,2BAA2B,CAAC,EAAA,eAAA,EAGtC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+qCAAA,EAAA,MAAA,EAAA,CAAA,0iLAAA,CAAA,EAAA;;;AEvCtC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-empty-state.mjs","sources":["../../../packages/ng/empty-state/empty-state-page-illustration/empty-state-page-illustration.component.ts","../../../packages/ng/empty-state/empty-state-page-illustration/empty-state-page-illustration.component.html","../../../packages/ng/empty-state/empty-state-page/empty-state-page.component.ts","../../../packages/ng/empty-state/empty-state-page/empty-state-page.component.html","../../../packages/ng/empty-state/empty-state.type.ts","../../../packages/ng/empty-state/empty-state-section/empty-state-section.component.ts","../../../packages/ng/empty-state/empty-state-section/empty-state-section.component.html","../../../packages/ng/empty-state/lucca-front-ng-empty-state.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n\tselector: 'lu-empty-state-page-illustration',\n\ttemplateUrl: './empty-state-page-illustration.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'pr-u-displayFlex',\n\t},\n})\nexport class EmptyStatePageIllustration {\n\treadonly src = input<string | null>(null);\n\treadonly alt = input<string | null>('');\n}\n","<img class=\"emptyState-illustration-img\" [attr.src]=\"src()\" [attr.alt]=\"alt()\" />\n","import { ChangeDetectionStrategy, Component, input, numberAttribute, ViewEncapsulation } from '@angular/core';\nimport { PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { LuSafeExternalSvgPipe } from '@lucca-front/ng/safe-content';\nimport { Hx, HxStyle } from '../empty-state.type';\n\n@Component({\n\tselector: 'lu-empty-state-page',\n\timports: [PortalDirective, LuSafeExternalSvgPipe],\n\ttemplateUrl: './empty-state-page.component.html',\n\tstyleUrl: './empty-state-page.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'emptyState-wrapper',\n\t},\n})\nexport class EmptyStatePageComponent {\n\t/**\n\t * Icon image (URL)\n\t */\n\treadonly icon = input<string | null>(null);\n\n\t/**\n\t * Top right background image (URL)\n\t */\n\treadonly topRightBackground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg');\n\n\t/**\n\t * Top right foreground image (URL)\n\t */\n\treadonly topRightForeground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg');\n\n\t/**\n\t * Bottom left background image (URL)\n\t */\n\treadonly bottomLeftBackground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg');\n\n\t/**\n\t * Bottom left foreground image (URL)\n\t */\n\treadonly bottomLeftForeground = input<string>('https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg');\n\n\t/**\n\t * Background color for content (text)\n\t */\n\treadonly contentBackgroundColor = input<string>('var(--pr-t-elevation-surface-default)');\n\n\t/**\n\t * Add content above heading\n\t */\n\treadonly slotTop = input<PortalContent>();\n\n\t/**\n\t * Add illustration beside content\n\t */\n\treadonly illustration = input<PortalContent>();\n\n\treadonly heading = input<string>();\n\n\treadonly description = input<PortalContent>();\n\n\treadonly hx = input(1, { transform: numberAttribute as (value: Hx | `${Hx}`) => Hx });\n\n\treadonly hxStyle = input(1, { transform: numberAttribute as (value: HxStyle | `${HxStyle}`) => HxStyle });\n\n\tpublic isStringPortalContent(message: PortalContent): message is string {\n\t\treturn typeof message === 'string';\n\t}\n}\n","<section\n\tclass=\"emptyState mod-page\"\n\t[class.mod-headingStyleH2]=\"hxStyle() === 2\"\n\t[attr.role]=\"heading() ? null : 'presentation'\"\n\t[style.--components-emptyState-background-color]=\"contentBackgroundColor()\"\n\t[style.--components-emptyState-illustration-background-bottom-left]=\"bottomLeftBackground() ? `url(${bottomLeftBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-bottom-left]=\"bottomLeftForeground() ? `url(${bottomLeftForeground()})` : null\"\n\t[style.--components-emptyState-illustration-background-top-right]=\"topRightBackground() ? `url(${topRightBackground()})` : null\"\n\t[style.--components-emptyState-illustration-foreground-top-right]=\"topRightForeground() ? `url(${topRightForeground()})` : null\"\n>\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (icon()) {\n\t\t\t\t<div class=\"emptyState-content-icon\" aria-hidden=\"true\" [innerHtml]=\"icon() | luSafeExternalSvg\"></div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (slotTop()) {\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<ng-container *luPortal=\"slotTop()\" />\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t@if (illustration()) {\n\t\t\t<div class=\"emptyState-illustration\"><ng-container *luPortal=\"illustration()\" /></div>\n\t\t}\n\t</div>\n</section>\n","import { BubbleIllustration } from '@lucca-front/ng/bubble-illustration';\n\n/**\n * Available EmptyState Types\n */\n\nexport const EMPTY_STATE_HX = [1, 2, 3, 4, 5, 6] as const;\nexport type Hx = (typeof EMPTY_STATE_HX)[number];\n\nexport const EMPTY_STATE_HX_STYLE = [1, 2] as const;\nexport type HxStyle = (typeof EMPTY_STATE_HX_STYLE)[number];\n\nexport const ICON_TO_ILLUSTRATION: Record<string, BubbleIllustration> = {\n\tBanknote: 'banknote',\n\tBell: 'bell',\n\tBulb: 'bulb',\n\tCalendar: 'calendar',\n\tChat: 'chat',\n\tClock: 'clock',\n\tCoffee: 'coffee',\n\tCreditCard: 'paymentCards',\n\tFolder: 'folder',\n\tGift: 'gift',\n\tGraduate: 'graduate',\n\tIDCard: 'polaroid',\n\tLock: 'lock',\n\tMail: 'mail',\n\tMegaphone: 'megaphone',\n\tPaint: 'paint',\n\tPaper: 'invoice',\n\tParty: 'party',\n\tPicture: 'picture',\n\tPoc: 'banknote',\n\tRocket: 'rocket',\n\tSearch: 'magnifyingGlass',\n\tTemperature: 'temperature',\n\tThumb: 'thumbUp',\n\tWarning: 'warning',\n};\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation, booleanAttribute, computed, input, numberAttribute } from '@angular/core';\nimport { BubbleIllustration, BubbleIllustrationComponent } from '@lucca-front/ng/bubble-illustration';\nimport { Palette, PortalContent, PortalDirective } from '@lucca-front/ng/core';\nimport { Hx, ICON_TO_ILLUSTRATION } from '../empty-state.type';\n\n@Component({\n\tselector: 'lu-empty-state-section',\n\timports: [PortalDirective, BubbleIllustrationComponent],\n\ttemplateUrl: './empty-state-section.component.html',\n\tstyleUrl: './empty-state-section.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class EmptyStateSectionComponent {\n\t/** @deprecated use illustration and action */\n\treadonly icon = input<string | null>(null);\n\treadonly actionIllustration = computed(() => this.action() || this.icon()?.includes('Action.svg'));\n\n\treadonly illustration = input<BubbleIllustration | string | null>(null);\n\treadonly action = input(false, { transform: booleanAttribute });\n\n\treadonly iconOrIllustration = computed(() => {\n\t\tif (this.icon()) {\n\t\t\tif (this.icon()?.includes('Success')) {\n\t\t\t\treturn 'thumbUp';\n\t\t\t}\n\t\t\tif (this.icon()?.includes('Error')) {\n\t\t\t\treturn 'error';\n\t\t\t}\n\t\t\tconst iconName = this.icon()?.split('/').pop()?.replace('.svg', '').replace('ActionError', '').replace('ActionSuccess', '').replace('Action', '').replace('icon', '');\n\n\t\t\treturn ICON_TO_ILLUSTRATION[iconName];\n\t\t}\n\n\t\treturn this.illustration();\n\t});\n\n\t/**\n\t * Which palette should be used for the empty state section.\n\t * Defaults to none (inherits parent palette)\n\t */\n\treadonly palette = input<Palette>('none');\n\n\treadonly center = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * The title of the empty state section\n\t */\n\treadonly heading = input<string>();\n\n\t/**\n\t * The description of the empty state section\n\t */\n\treadonly description = input<PortalContent>();\n\n\t/**\n\t * Define the aria level of the title\n\t */\n\treadonly hx = input(3, { transform: numberAttribute as (value: Hx | `${Hx}`) => Hx });\n\n\treadonly emptyStateClasses = computed(() => ({ [`palette-${this.palette()}`]: !!this.palette() }));\n\n\tpublic isStringPortalContent(message: PortalContent): message is string {\n\t\treturn typeof message === 'string';\n\t}\n}\n","<section class=\"emptyState\" [class.mod-center]=\"center()\" [attr.role]=\"heading() ? null : 'presentation'\">\n\t<div class=\"emptyState-container\">\n\t\t<div class=\"emptyState-content\">\n\t\t\t@if (iconOrIllustration()) {\n\t\t\t\t<div class=\"emptyState-content-icon\">\n\t\t\t\t\t<lu-bubble-illustration [action]=\"actionIllustration()\" [illustration]=\"iconOrIllustration()\" size=\"L\" [palette]=\"palette()\" />\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<div class=\"emptyState-content-text\">\n\t\t\t\t@if (heading()) {\n\t\t\t\t\t<div role=\"heading\" [attr.aria-level]=\"hx()\" class=\"emptyState-content-heading\">{{ heading() }}</div>\n\t\t\t\t}\n\t\t\t\t@if (description()) {\n\t\t\t\t\t@if (isStringPortalContent(description())) {\n\t\t\t\t\t\t<p class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</p>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<div class=\"emptyState-content-description\">\n\t\t\t\t\t\t\t<ng-container *luPortal=\"description()\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<div class=\"emptyState-actions\">\n\t\t\t\t\t<ng-content />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAWa,0BAA0B,CAAA;AATvC,IAAA,WAAA,GAAA;AAUU,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAgB,IAAI,0EAAC;AAChC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAgB,EAAE,0EAAC;AACvC,IAAA;+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iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAM1C,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,wBAAwB,EAAA,OAAA,EACzB,CAAC,eAAe,EAAE,2BAA2B,CAAC,EAAA,eAAA,EAGtC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+qCAAA,EAAA,MAAA,EAAA,CAAA,0iLAAA,CAAA,EAAA;;;AEXtC;;AAEG;;;;"}
|
|
@@ -4,25 +4,30 @@ import { TextFlowComponent } from '@lucca-front/ng/text-flow';
|
|
|
4
4
|
|
|
5
5
|
class ErrorPageComponent {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : []));
|
|
8
|
-
this.illustration = input.required(...(ngDevMode ? [{ debugName: "illustration" }] : []));
|
|
7
|
+
this.heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
8
|
+
this.illustration = input.required(...(ngDevMode ? [{ debugName: "illustration" }] : /* istanbul ignore next */ []));
|
|
9
9
|
this.illustrationSrc = computed(() => {
|
|
10
10
|
return `https://cdn.lucca.fr/assets/lucca/errors/${this.illustration()}.svg`;
|
|
11
|
-
}, ...(ngDevMode ? [{ debugName: "illustrationSrc" }] : []));
|
|
11
|
+
}, ...(ngDevMode ? [{ debugName: "illustrationSrc" }] : /* istanbul ignore next */ []));
|
|
12
12
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ErrorPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.15", type: ErrorPageComponent, isStandalone: true, selector: "lu-error-page", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, illustration: { classPropertyName: "illustration", publicName: "illustration", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "errorPage" }, ngImport: i0, template: "<section class=\"errorPage-section\">\n\t<div class=\"errorPage-section-info\">\n\t\t<h1 class=\"errorPage-section-info-title\">{{ heading() }}</h1>\n\t\t<lu-text-flow>\n\t\t\t<ng-content />\n\t\t</lu-text-flow>\n\t</div>\n\t<img class=\"errorPage-section-image\" [src]=\"illustrationSrc()\" width=\"600\" height=\"400\" alt=\"\" />\n</section>\n", styles: ["@layer components{.errorPage{--components-errorPage-background: var(--pr-t-elevation-surface-raised);background-color:var(--components-errorPage-background);block-size:100vh;inline-size:100vw;line-height:1.2;overflow:hidden;display:block}.errorPage-section{block-size:100%;max-inline-size:1200px;padding-block:0;padding-inline:var(--pr-t-spacings-400);inline-size:100vw;margin-block:0;margin-inline:auto;display:flex;justify-content:space-between;align-items:center}.errorPage-section-info{margin-block-start:10vh;max-inline-size:90vw;inline-size:450px;padding-inline-end:var(--pr-t-spacings-400)}.errorPage-section-info-title{font:var(--pr-t-font-heading-1);margin-block-end:var(--pr-t-spacings-50)}.errorPage-section-info-text{font-size:var(--pr-t-font-body-1-fontSize);line-height:var(--pr-t-font-body-1-lineHeight);margin-block-end:var(--pr-t-spacings-150)}.errorPage-section-image{margin-block-start:10vh;inline-size:50%;max-inline-size:580px;min-inline-size:350px;block-size:auto}}@layer mods{@media not all and (min-width:50em){.errorPage{overflow-y:auto}.errorPage .errorPage-section{flex-direction:column;justify-content:center}.errorPage .errorPage-section-info{margin-block:var(--pr-t-spacings-400);order:1;padding:0}.errorPage .errorPage-section-image{margin-block-start:var(--pr-t-spacings-400);order:0}}@media not all and (min-width:30em){.errorPage .errorPage-section-image{inline-size:auto;max-inline-size:100%;min-inline-size:0}}.appLayout .errorPage,.appLayout .errorPage .errorPage-section{block-size:100%;inline-size:100%}.appLayout .errorPage .errorPage-section{gap:var(--pr-t-spacings-400)}.appLayout .errorPage .errorPage-section-image,.appLayout .errorPage .errorPage-section-info{margin-block-start:0;padding:0;max-inline-size:100%}}\n"], dependencies: [{ kind: "component", type: TextFlowComponent, selector: "lu-text-flow" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ErrorPageComponent, decorators: [{
|
|
17
17
|
type: Component,
|
|
18
18
|
args: [{ selector: 'lu-error-page', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [TextFlowComponent], host: {
|
|
19
19
|
class: 'errorPage',
|
|
20
20
|
}, template: "<section class=\"errorPage-section\">\n\t<div class=\"errorPage-section-info\">\n\t\t<h1 class=\"errorPage-section-info-title\">{{ heading() }}</h1>\n\t\t<lu-text-flow>\n\t\t\t<ng-content />\n\t\t</lu-text-flow>\n\t</div>\n\t<img class=\"errorPage-section-image\" [src]=\"illustrationSrc()\" width=\"600\" height=\"400\" alt=\"\" />\n</section>\n", styles: ["@layer components{.errorPage{--components-errorPage-background: var(--pr-t-elevation-surface-raised);background-color:var(--components-errorPage-background);block-size:100vh;inline-size:100vw;line-height:1.2;overflow:hidden;display:block}.errorPage-section{block-size:100%;max-inline-size:1200px;padding-block:0;padding-inline:var(--pr-t-spacings-400);inline-size:100vw;margin-block:0;margin-inline:auto;display:flex;justify-content:space-between;align-items:center}.errorPage-section-info{margin-block-start:10vh;max-inline-size:90vw;inline-size:450px;padding-inline-end:var(--pr-t-spacings-400)}.errorPage-section-info-title{font:var(--pr-t-font-heading-1);margin-block-end:var(--pr-t-spacings-50)}.errorPage-section-info-text{font-size:var(--pr-t-font-body-1-fontSize);line-height:var(--pr-t-font-body-1-lineHeight);margin-block-end:var(--pr-t-spacings-150)}.errorPage-section-image{margin-block-start:10vh;inline-size:50%;max-inline-size:580px;min-inline-size:350px;block-size:auto}}@layer mods{@media not all and (min-width:50em){.errorPage{overflow-y:auto}.errorPage .errorPage-section{flex-direction:column;justify-content:center}.errorPage .errorPage-section-info{margin-block:var(--pr-t-spacings-400);order:1;padding:0}.errorPage .errorPage-section-image{margin-block-start:var(--pr-t-spacings-400);order:0}}@media not all and (min-width:30em){.errorPage .errorPage-section-image{inline-size:auto;max-inline-size:100%;min-inline-size:0}}.appLayout .errorPage,.appLayout .errorPage .errorPage-section{block-size:100%;inline-size:100%}.appLayout .errorPage .errorPage-section{gap:var(--pr-t-spacings-400)}.appLayout .errorPage .errorPage-section-image,.appLayout .errorPage .errorPage-section-info{margin-block-start:0;padding:0;max-inline-size:100%}}\n"] }]
|
|
21
21
|
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], illustration: [{ type: i0.Input, args: [{ isSignal: true, alias: "illustration", required: true }] }] } });
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Available ErrorPageComponent Types
|
|
25
|
+
*/
|
|
26
|
+
const ERROR_PAGE_ILLUSTRATION = ['400', '403', '404', '429', '500', 'keyboard', 'lock', 'map'];
|
|
27
|
+
|
|
23
28
|
/**
|
|
24
29
|
* Generated bundle index. Do not edit.
|
|
25
30
|
*/
|
|
26
31
|
|
|
27
|
-
export { ErrorPageComponent };
|
|
32
|
+
export { ERROR_PAGE_ILLUSTRATION, ErrorPageComponent };
|
|
28
33
|
//# sourceMappingURL=lucca-front-ng-error-page.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-error-page.mjs","sources":["../../../packages/ng/error-page/error-page.component.ts","../../../packages/ng/error-page/error-page.component.html","../../../packages/ng/error-page/lucca-front-ng-error-page.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { TextFlowComponent } from '@lucca-front/ng/text-flow';\nimport { ErrorPageIllustration } from './error-page.model';\n\n@Component({\n\tselector: 'lu-error-page',\n\ttemplateUrl: './error-page.component.html',\n\tstyleUrl: './error-page.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [TextFlowComponent],\n\thost: {\n\t\tclass: 'errorPage',\n\t},\n})\nexport class ErrorPageComponent {\n\treadonly heading = input.required<string>();\n\treadonly illustration = input.required<ErrorPageIllustration>();\n\n\treadonly illustrationSrc = computed(() => {\n\t\treturn `https://cdn.lucca.fr/assets/lucca/errors/${this.illustration()}.svg`;\n\t});\n}\n","<section class=\"errorPage-section\">\n\t<div class=\"errorPage-section-info\">\n\t\t<h1 class=\"errorPage-section-info-title\">{{ heading() }}</h1>\n\t\t<lu-text-flow>\n\t\t\t<ng-content />\n\t\t</lu-text-flow>\n\t</div>\n\t<img class=\"errorPage-section-image\" [src]=\"illustrationSrc()\" width=\"600\" height=\"400\" alt=\"\" />\n</section>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAea,kBAAkB,CAAA;AAX/B,IAAA,WAAA,GAAA;AAYU,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-error-page.mjs","sources":["../../../packages/ng/error-page/error-page.component.ts","../../../packages/ng/error-page/error-page.component.html","../../../packages/ng/error-page/error-page.model.ts","../../../packages/ng/error-page/lucca-front-ng-error-page.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { TextFlowComponent } from '@lucca-front/ng/text-flow';\nimport { ErrorPageIllustration } from './error-page.model';\n\n@Component({\n\tselector: 'lu-error-page',\n\ttemplateUrl: './error-page.component.html',\n\tstyleUrl: './error-page.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tencapsulation: ViewEncapsulation.None,\n\timports: [TextFlowComponent],\n\thost: {\n\t\tclass: 'errorPage',\n\t},\n})\nexport class ErrorPageComponent {\n\treadonly heading = input.required<string>();\n\treadonly illustration = input.required<ErrorPageIllustration>();\n\n\treadonly illustrationSrc = computed(() => {\n\t\treturn `https://cdn.lucca.fr/assets/lucca/errors/${this.illustration()}.svg`;\n\t});\n}\n","<section class=\"errorPage-section\">\n\t<div class=\"errorPage-section-info\">\n\t\t<h1 class=\"errorPage-section-info-title\">{{ heading() }}</h1>\n\t\t<lu-text-flow>\n\t\t\t<ng-content />\n\t\t</lu-text-flow>\n\t</div>\n\t<img class=\"errorPage-section-image\" [src]=\"illustrationSrc()\" width=\"600\" height=\"400\" alt=\"\" />\n</section>\n","/**\n * Available ErrorPageComponent Types\n */\n\nexport const ERROR_PAGE_ILLUSTRATION = ['400', '403', '404', '429', '500', 'keyboard', 'lock', 'map'] as const;\nexport type ErrorPageIllustration = (typeof ERROR_PAGE_ILLUSTRATION)[number];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAea,kBAAkB,CAAA;AAX/B,IAAA,WAAA,GAAA;AAYU,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAAU;AAClC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,QAAQ,kFAAyB;AAEtD,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAC,MAAK;AACxC,YAAA,OAAO,4CAA4C,IAAI,CAAC,YAAY,EAAE,MAAM;AAC7E,QAAA,CAAC,sFAAC;AACF,IAAA;+GAPY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAlB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