@lucca-front/ng 22.1.0 → 22.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/lucca-front-ng-a11y.mjs +9 -9
- package/fesm2022/lucca-front-ng-activity-feed.mjs +19 -15
- package/fesm2022/lucca-front-ng-activity-feed.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +40 -40
- package/fesm2022/lucca-front-ng-app-layout.mjs +3 -3
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs +74 -53
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +3 -3
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +6 -6
- package/fesm2022/lucca-front-ng-bubble-icon.mjs +3 -3
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs +7 -7
- package/fesm2022/lucca-front-ng-bubble-illustration.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +25 -25
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +3 -3
- package/fesm2022/lucca-front-ng-clear.mjs +3 -3
- package/fesm2022/lucca-front-ng-code.mjs +3 -3
- package/fesm2022/lucca-front-ng-color.mjs +3 -3
- package/fesm2022/lucca-front-ng-comment.mjs +9 -9
- package/fesm2022/lucca-front-ng-container.mjs +3 -3
- package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-department.mjs +8 -6
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +16 -10
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +11 -7
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-legal-units.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-occupation-category.mjs +3 -3
- package/fesm2022/lucca-front-ng-core-select-user.mjs +20 -18
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +68 -60
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +24 -19
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-data-table.mjs +24 -24
- package/fesm2022/lucca-front-ng-date.mjs +44 -40
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +96 -49
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +28 -26
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +42 -39
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +3 -3
- package/fesm2022/lucca-front-ng-dropdown.mjs +42 -41
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +14 -14
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-error-page.mjs +5 -4
- package/fesm2022/lucca-front-ng-error-page.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +36 -34
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +5 -4
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +20 -20
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills-core.mjs +6 -6
- package/fesm2022/lucca-front-ng-filter-pills.mjs +19 -19
- package/fesm2022/lucca-front-ng-footer.mjs +3 -3
- package/fesm2022/lucca-front-ng-form-field.mjs +24 -20
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-header.mjs +3 -3
- package/fesm2022/lucca-front-ng-form-label.mjs +3 -3
- package/fesm2022/lucca-front-ng-form.mjs +3 -3
- package/fesm2022/lucca-front-ng-formly.mjs +58 -58
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -9
- 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-markdown.mjs +6 -6
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-plain-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +38 -37
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +50 -40
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-gauge.mjs +3 -3
- package/fesm2022/lucca-front-ng-grid.mjs +6 -6
- package/fesm2022/lucca-front-ng-highlight-data.mjs +6 -6
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-section.mjs +8 -5
- package/fesm2022/lucca-front-ng-highlight-section.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-text.mjs +3 -3
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +9 -9
- package/fesm2022/lucca-front-ng-impersonation.mjs +5 -3
- package/fesm2022/lucca-front-ng-impersonation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-index-table.mjs +30 -30
- package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
- package/fesm2022/lucca-front-ng-input.mjs +25 -23
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-kbd.mjs +3 -3
- package/fesm2022/lucca-front-ng-link.mjs +38 -14
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +9 -9
- package/fesm2022/lucca-front-ng-listing.mjs +21 -11
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +3 -3
- package/fesm2022/lucca-front-ng-main-layout.mjs +8 -8
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-markdown.mjs +3 -3
- package/fesm2022/lucca-front-ng-mobile-push.mjs +6 -5
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +22 -22
- package/fesm2022/lucca-front-ng-multi-select.mjs +45 -44
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-number-format.mjs +22 -13
- 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-option.mjs +164 -143
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +3 -3
- package/fesm2022/lucca-front-ng-pagination.mjs +3 -3
- package/fesm2022/lucca-front-ng-plg-push.mjs +6 -5
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +29 -17
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +7 -7
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-priority-level.mjs +128 -0
- package/fesm2022/lucca-front-ng-priority-level.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-progress-bar.mjs +3 -3
- package/fesm2022/lucca-front-ng-progress-stepper.mjs +6 -6
- package/fesm2022/lucca-front-ng-read-more.mjs +3 -3
- package/fesm2022/lucca-front-ng-resource-card.mjs +12 -12
- package/fesm2022/lucca-front-ng-safe-content.mjs +10 -10
- package/fesm2022/lucca-front-ng-scroll-box.mjs +3 -3
- package/fesm2022/lucca-front-ng-scroll.mjs +7 -7
- package/fesm2022/lucca-front-ng-segmented-control-tabs.mjs +8 -8
- package/fesm2022/lucca-front-ng-segmented-control.mjs +8 -8
- package/fesm2022/lucca-front-ng-select.mjs +16 -15
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sidepanel.mjs +9 -8
- package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +20 -18
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-software-icon-wrapper.mjs +6 -6
- package/fesm2022/lucca-front-ng-software-icon.mjs +7 -5
- package/fesm2022/lucca-front-ng-software-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sortable-list.mjs +6 -6
- package/fesm2022/lucca-front-ng-status-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-table-of-content.mjs +6 -6
- package/fesm2022/lucca-front-ng-text-flow.mjs +3 -3
- package/fesm2022/lucca-front-ng-time.mjs +36 -25
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-title.mjs +10 -10
- package/fesm2022/lucca-front-ng-toast.mjs +10 -10
- package/fesm2022/lucca-front-ng-tree-select.mjs +7 -7
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user-popover.mjs +19 -19
- package/fesm2022/lucca-front-ng-user.mjs +71 -62
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-vertical-navigation.mjs +12 -12
- package/llms/SKILL.md +233 -0
- package/llms/references/components/activity-feed/activity-feed.component.md +339 -0
- package/llms/references/components/activity-feed/activity-feed.design.md +145 -0
- package/llms/references/components/activity-feed/activity-feed.md +129 -0
- package/llms/references/components/animations/animations.component.md +11 -0
- package/llms/references/components/animations/animations.md +7 -0
- package/llms/references/components/api-select/api-select.md +40 -0
- package/llms/references/components/app-layout/app-layout.component.md +65 -0
- package/llms/references/components/app-layout/app-layout.design.md +61 -0
- package/llms/references/components/app-layout/app-layout.md +80 -0
- package/llms/references/components/approbation-inbox/approbation-inbox.component.md +1062 -0
- package/llms/references/components/approbation-inbox/approbation-inbox.design.md +162 -0
- package/llms/references/components/approbation-inbox/approbation-inbox.md +177 -0
- package/llms/references/components/avatar/avatar.component.md +571 -0
- package/llms/references/components/avatar/avatar.md +97 -0
- package/llms/references/components/box/box.component.md +155 -0
- package/llms/references/components/box/box.md +98 -0
- package/llms/references/components/breadcrumbs/breadcrumbs.component.md +60 -0
- package/llms/references/components/breadcrumbs/breadcrumbs.design.md +11 -0
- package/llms/references/components/breadcrumbs/breadcrumbs.md +96 -0
- package/llms/references/components/bubble-icon/bubble-icon.component.md +56 -0
- package/llms/references/components/bubble-icon/bubble-icon.design.md +47 -0
- package/llms/references/components/bubble-icon/bubble-icon.md +83 -0
- package/llms/references/components/bubble-illustration/bubble-illustration.component.md +54 -0
- package/llms/references/components/bubble-illustration/bubble-illustration.design.md +69 -0
- package/llms/references/components/bubble-illustration/bubble-illustration.md +76 -0
- package/llms/references/components/button/button.component.md +275 -0
- package/llms/references/components/button/button.design.md +322 -0
- package/llms/references/components/button/button.md +134 -0
- package/llms/references/components/calendar/calendar.component.md +750 -0
- package/llms/references/components/calendar/calendar.design.md +43 -0
- package/llms/references/components/calendar/calendar.md +127 -0
- package/llms/references/components/calendar2/calendar2.md +74 -0
- package/llms/references/components/callout/callout.component.md +254 -0
- package/llms/references/components/callout/callout.design.md +197 -0
- package/llms/references/components/callout/callout.md +259 -0
- package/llms/references/components/callout-disclosure/callout-disclosure.component.md +240 -0
- package/llms/references/components/callout-disclosure/callout-disclosure.design.md +197 -0
- package/llms/references/components/callout-disclosure/callout-disclosure.md +207 -0
- package/llms/references/components/callout-popover/callout-popover.component.md +182 -0
- package/llms/references/components/callout-popover/callout-popover.design.md +197 -0
- package/llms/references/components/callout-popover/callout-popover.md +212 -0
- package/llms/references/components/card/card.component.md +62 -0
- package/llms/references/components/card/card.design.md +36 -0
- package/llms/references/components/card/card.md +7 -0
- package/llms/references/components/checkbox/checkbox.component.md +50 -0
- package/llms/references/components/checkbox/checkbox.design.md +196 -0
- package/llms/references/components/checkbox/checkbox.md +73 -0
- package/llms/references/components/chip/chip.component.md +145 -0
- package/llms/references/components/chip/chip.md +118 -0
- package/llms/references/components/clear/clear.component.md +38 -0
- package/llms/references/components/clear/clear.design.md +36 -0
- package/llms/references/components/clear/clear.md +88 -0
- package/llms/references/components/code/code.component.md +33 -0
- package/llms/references/components/code/code.md +47 -0
- package/llms/references/components/color/color.md +32 -0
- package/llms/references/components/color-input/color-input.md +43 -0
- package/llms/references/components/color-picker/color-picker.component.md +29 -0
- package/llms/references/components/color-picker/color-picker.design.md +42 -0
- package/llms/references/components/color-picker/color-picker.md +24 -0
- package/llms/references/components/comment/comment.component.md +451 -0
- package/llms/references/components/comment/comment.design.md +67 -0
- package/llms/references/components/comment/comment.md +137 -0
- package/llms/references/components/container/container.component.md +41 -0
- package/llms/references/components/container/container.md +74 -0
- package/llms/references/components/core-select-department/core-select-department.md +42 -0
- package/llms/references/components/core-select-establishment/core-select-establishment.md +45 -0
- package/llms/references/components/core-select-job-qualification/core-select-job-qualification.md +25 -0
- package/llms/references/components/core-select-occupation-category/core-select-occupation-category.md +25 -0
- package/llms/references/components/core-select-user/core-select-user.md +81 -0
- package/llms/references/components/data-presentation/data-presentation.component.md +47 -0
- package/llms/references/components/data-presentation/data-presentation.md +48 -0
- package/llms/references/components/data-table/data-table.component.md +1649 -0
- package/llms/references/components/data-table/data-table.design.md +159 -0
- package/llms/references/components/data-table/data-table.md +338 -0
- package/llms/references/components/date/date.component.md +31 -0
- package/llms/references/components/date/date.md +164 -0
- package/llms/references/components/dateinput/dateinput.component.md +127 -0
- package/llms/references/components/dateinput/dateinput.design.md +80 -0
- package/llms/references/components/dateinput/dateinput.md +224 -0
- package/llms/references/components/daterangeinput/daterangeinput.component.md +64 -0
- package/llms/references/components/daterangeinput/daterangeinput.design.md +76 -0
- package/llms/references/components/daterangeinput/daterangeinput.md +210 -0
- package/llms/references/components/departmentselect/departmentselect.component.md +44 -0
- package/llms/references/components/departmentselect/departmentselect.md +43 -0
- package/llms/references/components/dialog/dialog.component.md +475 -0
- package/llms/references/components/dialog/dialog.design.md +139 -0
- package/llms/references/components/dialog/dialog.md +357 -0
- package/llms/references/components/divider/divider.component.md +35 -0
- package/llms/references/components/divider/divider.md +87 -0
- package/llms/references/components/dropdown/dropdown.component.md +315 -0
- package/llms/references/components/dropdown/dropdown.md +189 -0
- package/llms/references/components/duration-picker/duration-picker.design.md +124 -0
- package/llms/references/components/duration-picker/duration-picker.md +165 -0
- package/llms/references/components/empty-state/empty-state.component.md +238 -0
- package/llms/references/components/empty-state/empty-state.design.md +124 -0
- package/llms/references/components/empty-state/empty-state.md +61 -0
- package/llms/references/components/errorpage/errorpage.component.md +57 -0
- package/llms/references/components/errorpage/errorpage.md +75 -0
- package/llms/references/components/establishmentselect/establishmentselect.component.md +31 -0
- package/llms/references/components/establishmentselect/establishmentselect.md +42 -0
- package/llms/references/components/fancy-dialog/fancy-dialog.component.md +9 -0
- package/llms/references/components/fancy-dialog/fancy-dialog.design.md +93 -0
- package/llms/references/components/fancy-dialog/fancy-dialog.md +128 -0
- package/llms/references/components/fancybox/fancybox.component.md +218 -0
- package/llms/references/components/fancybox/fancybox.design.md +72 -0
- package/llms/references/components/fancybox/fancybox.md +90 -0
- package/llms/references/components/fieldset/fieldset.component.md +86 -0
- package/llms/references/components/fieldset/fieldset.md +129 -0
- package/llms/references/components/filedropzone/filedropzone.component.md +16 -0
- package/llms/references/components/filedropzone/filedropzone.md +71 -0
- package/llms/references/components/fileentry/fileentry.component.md +56 -0
- package/llms/references/components/fileentry/fileentry.design.md +152 -0
- package/llms/references/components/fileentry/fileentry.md +272 -0
- package/llms/references/components/fileupload/fileupload.component.md +91 -0
- package/llms/references/components/fileupload/fileupload.design.md +152 -0
- package/llms/references/components/fileupload/fileupload.md +275 -0
- package/llms/references/components/filterbar/filterbar.component.md +299 -0
- package/llms/references/components/filterbar/filterbar.design.md +92 -0
- package/llms/references/components/filterbar/filterbar.md +168 -0
- package/llms/references/components/filterpills/filterpills.component.md +65 -0
- package/llms/references/components/filterpills/filterpills.design.md +60 -0
- package/llms/references/components/filterpills/filterpills.md +214 -0
- package/llms/references/components/footer/footer.component.md +66 -0
- package/llms/references/components/footer/footer.design.md +176 -0
- package/llms/references/components/footer/footer.md +125 -0
- package/llms/references/components/form/form.md +42 -0
- package/llms/references/components/form-field/form-field.component.md +46 -0
- package/llms/references/components/form-field/form-field.md +252 -0
- package/llms/references/components/form-header/form-header.md +29 -0
- package/llms/references/components/form-label/form-label.component.md +116 -0
- package/llms/references/components/form-label/form-label.md +121 -0
- package/llms/references/components/gauge/gauge.component.md +55 -0
- package/llms/references/components/gauge/gauge.md +72 -0
- package/llms/references/components/grid/grid.component.md +15 -0
- package/llms/references/components/grid/grid.md +124 -0
- package/llms/references/components/highlight-data/highlight-data.component.md +294 -0
- package/llms/references/components/highlight-data/highlight-data.design.md +97 -0
- package/llms/references/components/highlight-data/highlight-data.md +126 -0
- package/llms/references/components/highlight-section/highlight-section.component.md +195 -0
- package/llms/references/components/highlight-section/highlight-section.md +53 -0
- package/llms/references/components/highlight-text/highlight-text.component.md +53 -0
- package/llms/references/components/highlight-text/highlight-text.md +29 -0
- package/llms/references/components/horizontalnavigation/horizontalnavigation.component.md +247 -0
- package/llms/references/components/horizontalnavigation/horizontalnavigation.md +94 -0
- package/llms/references/components/icons/icons.component.md +59 -0
- package/llms/references/components/icons/icons.design.md +141 -0
- package/llms/references/components/icons/icons.md +195 -0
- package/llms/references/components/impersonation/impersonation.component.md +83 -0
- package/llms/references/components/impersonation/impersonation.design.md +58 -0
- package/llms/references/components/impersonation/impersonation.md +97 -0
- package/llms/references/components/index-table/index-table.component.md +2573 -0
- package/llms/references/components/index-table/index-table.design.md +250 -0
- package/llms/references/components/index-table/index-table.md +278 -0
- package/llms/references/components/inlinemessage/inlinemessage.component.md +58 -0
- package/llms/references/components/inlinemessage/inlinemessage.md +56 -0
- package/llms/references/components/input-framed/input-framed.component.md +731 -0
- package/llms/references/components/input-framed/input-framed.design.md +94 -0
- package/llms/references/components/input-framed/input-framed.md +49 -0
- package/llms/references/components/kbd/kbd.component.md +48 -0
- package/llms/references/components/kbd/kbd.md +40 -0
- package/llms/references/components/link/link.component.md +162 -0
- package/llms/references/components/link/link.design.md +48 -0
- package/llms/references/components/link/link.md +148 -0
- package/llms/references/components/listbox/listbox.component.md +11 -0
- package/llms/references/components/listbox/listbox.md +114 -0
- package/llms/references/components/listing/listing.component.md +416 -0
- package/llms/references/components/listing/listing.design.md +31 -0
- package/llms/references/components/listing/listing.md +124 -0
- package/llms/references/components/loading/loading.component.md +37 -0
- package/llms/references/components/loading/loading.design.md +32 -0
- package/llms/references/components/loading/loading.md +116 -0
- package/llms/references/components/main-layout/main-layout.component.md +157 -0
- package/llms/references/components/main-layout/main-layout.md +78 -0
- package/llms/references/components/markdown/markdown.component.md +15 -0
- package/llms/references/components/markdown/markdown.md +40 -0
- package/llms/references/components/mobile-push/mobile-push.component.md +67 -0
- package/llms/references/components/mobile-push/mobile-push.md +79 -0
- package/llms/references/components/mobileheader/mobileheader.component.md +31 -0
- package/llms/references/components/mobileheader/mobileheader.design.md +15 -0
- package/llms/references/components/mobileheader/mobileheader.md +7 -0
- package/llms/references/components/mobilenavigation/mobilenavigation.component.md +43 -0
- package/llms/references/components/mobilenavigation/mobilenavigation.design.md +9 -0
- package/llms/references/components/mobilenavigation/mobilenavigation.md +7 -0
- package/llms/references/components/modal/modal.component.md +37 -0
- package/llms/references/components/modal/modal.design.md +163 -0
- package/llms/references/components/modal/modal.md +60 -0
- package/llms/references/components/multi-select/multi-select.component.md +43 -0
- package/llms/references/components/multi-select/multi-select.design.md +346 -0
- package/llms/references/components/multi-select/multi-select.md +444 -0
- package/llms/references/components/multilanguagefield/multilanguagefield.component.md +83 -0
- package/llms/references/components/multilanguagefield/multilanguagefield.design.md +78 -0
- package/llms/references/components/multilanguagefield/multilanguagefield.md +383 -0
- package/llms/references/components/newbadge/newbadge.component.md +23 -0
- package/llms/references/components/newbadge/newbadge.design.md +25 -0
- package/llms/references/components/newbadge/newbadge.md +37 -0
- package/llms/references/components/number-format-input/number-format-input.md +63 -0
- package/llms/references/components/number-input/number-input.md +54 -0
- package/llms/references/components/numbers/numbers.component.md +46 -0
- package/llms/references/components/numbers/numbers.md +7 -0
- package/llms/references/components/numericbadge/numericbadge.component.md +66 -0
- package/llms/references/components/numericbadge/numericbadge.md +83 -0
- package/llms/references/components/onboarding-empty-state/onboarding-empty-state.design.md +124 -0
- package/llms/references/components/onboarding-empty-state/onboarding-empty-state.md +47 -0
- package/llms/references/components/pageheader/pageheader.component.md +401 -0
- package/llms/references/components/pageheader/pageheader.design.md +13 -0
- package/llms/references/components/pageheader/pageheader.md +154 -0
- package/llms/references/components/pagination/pagination.component.md +112 -0
- package/llms/references/components/pagination/pagination.md +128 -0
- package/llms/references/components/phonenumberfield/phonenumberfield.component.md +33 -0
- package/llms/references/components/phonenumberfield/phonenumberfield.design.md +59 -0
- package/llms/references/components/phonenumberfield/phonenumberfield.md +141 -0
- package/llms/references/components/plg-push/plg-push.component.md +91 -0
- package/llms/references/components/plg-push/plg-push.design.md +87 -0
- package/llms/references/components/plg-push/plg-push.md +91 -0
- package/llms/references/components/popover/popover.component.md +149 -0
- package/llms/references/components/popover/popover.md +253 -0
- package/llms/references/components/popover2/popover2.component.md +110 -0
- package/llms/references/components/popover2/popover2.md +95 -0
- package/llms/references/components/priority-level/priority-level.component.md +63 -0
- package/llms/references/components/priority-level/priority-level.design.md +79 -0
- package/llms/references/components/priority-level/priority-level.md +36 -0
- package/llms/references/components/progress-bar/progress-bar.component.md +33 -0
- package/llms/references/components/progress-bar/progress-bar.design.md +15 -0
- package/llms/references/components/progress-bar/progress-bar.md +50 -0
- package/llms/references/components/progress-stepper/progress-stepper.component.md +375 -0
- package/llms/references/components/progress-stepper/progress-stepper.design.md +54 -0
- package/llms/references/components/progress-stepper/progress-stepper.md +69 -0
- package/llms/references/components/radiofield/radiofield.component.md +307 -0
- package/llms/references/components/radiofield/radiofield.design.md +148 -0
- package/llms/references/components/radiofield/radiofield.md +132 -0
- package/llms/references/components/readmore/readmore.component.md +60 -0
- package/llms/references/components/readmore/readmore.md +97 -0
- package/llms/references/components/resource-card/resource-card.component.md +225 -0
- package/llms/references/components/resource-card/resource-card.md +118 -0
- package/llms/references/components/richtextinput/richtextinput.component.md +308 -0
- package/llms/references/components/richtextinput/richtextinput.design.md +83 -0
- package/llms/references/components/richtextinput/richtextinput.md +300 -0
- package/llms/references/components/scroll/scroll.md +45 -0
- package/llms/references/components/scrollbox/scrollbox.component.md +63 -0
- package/llms/references/components/scrollbox/scrollbox.design.md +11 -0
- package/llms/references/components/scrollbox/scrollbox.md +48 -0
- package/llms/references/components/section-empty-state/section-empty-state.component.md +9 -0
- package/llms/references/components/section-empty-state/section-empty-state.design.md +67 -0
- package/llms/references/components/section-empty-state/section-empty-state.md +41 -0
- package/llms/references/components/segmented-control-tabs/segmented-control-tabs.md +68 -0
- package/llms/references/components/segmentedcontrol/segmentedcontrol.component.md +208 -0
- package/llms/references/components/segmentedcontrol/segmentedcontrol.md +125 -0
- package/llms/references/components/select/select.component.md +247 -0
- package/llms/references/components/select/select.md +57 -0
- package/llms/references/components/select-templating/select-templating.md +141 -0
- package/llms/references/components/sidepanel/sidepanel.component.md +56 -0
- package/llms/references/components/sidepanel/sidepanel.md +7 -0
- package/llms/references/components/simple-select/simple-select.component.md +45 -0
- package/llms/references/components/simple-select/simple-select.design.md +353 -0
- package/llms/references/components/simple-select/simple-select.md +302 -0
- package/llms/references/components/skeleton/skeleton.component.md +145 -0
- package/llms/references/components/skeleton/skeleton.design.md +82 -0
- package/llms/references/components/skeleton/skeleton.md +230 -0
- package/llms/references/components/skiplinks/skiplinks.component.md +91 -0
- package/llms/references/components/skiplinks/skiplinks.md +73 -0
- package/llms/references/components/software-icon/software-icon.component.md +61 -0
- package/llms/references/components/software-icon/software-icon.design.md +23 -0
- package/llms/references/components/software-icon/software-icon.md +118 -0
- package/llms/references/components/sortable-list/sortable-list.component.md +150 -0
- package/llms/references/components/sortable-list/sortable-list.md +83 -0
- package/llms/references/components/statusbadge/statusbadge.component.md +56 -0
- package/llms/references/components/statusbadge/statusbadge.design.md +58 -0
- package/llms/references/components/statusbadge/statusbadge.md +62 -0
- package/llms/references/components/switchfield/switchfield.component.md +124 -0
- package/llms/references/components/switchfield/switchfield.md +55 -0
- package/llms/references/components/tableofcontent/tableofcontent.component.md +55 -0
- package/llms/references/components/tableofcontent/tableofcontent.md +41 -0
- package/llms/references/components/tags/tags.component.md +153 -0
- package/llms/references/components/tags/tags.design.md +84 -0
- package/llms/references/components/tags/tags.md +132 -0
- package/llms/references/components/text-flow/text-flow.component.md +71 -0
- package/llms/references/components/text-flow/text-flow.design.md +42 -0
- package/llms/references/components/text-flow/text-flow.md +62 -0
- package/llms/references/components/textareafield/textareafield.component.md +57 -0
- package/llms/references/components/textareafield/textareafield.design.md +94 -0
- package/llms/references/components/textareafield/textareafield.md +122 -0
- package/llms/references/components/textfield/textfield.component.md +610 -0
- package/llms/references/components/textfield/textfield.design.md +148 -0
- package/llms/references/components/textfield/textfield.md +178 -0
- package/llms/references/components/tile/tile.component.md +91 -0
- package/llms/references/components/tile/tile.md +91 -0
- package/llms/references/components/time/time.component.md +275 -0
- package/llms/references/components/time/time.md +140 -0
- package/llms/references/components/time-picker/time-picker.design.md +124 -0
- package/llms/references/components/time-picker/time-picker.md +169 -0
- package/llms/references/components/time-range-picker/time-range-picker.component.md +5 -0
- package/llms/references/components/time-range-picker/time-range-picker.design.md +57 -0
- package/llms/references/components/time-range-picker/time-range-picker.md +46 -0
- package/llms/references/components/timelines/timelines.component.md +168 -0
- package/llms/references/components/timelines/timelines.design.md +21 -0
- package/llms/references/components/timelines/timelines.md +7 -0
- package/llms/references/components/title-and-text/title-and-text.component.md +14 -0
- package/llms/references/components/title-and-text/title-and-text.design.md +57 -0
- package/llms/references/components/title-and-text/title-and-text.md +60 -0
- package/llms/references/components/toasts/toasts.component.md +54 -0
- package/llms/references/components/toasts/toasts.design.md +76 -0
- package/llms/references/components/toasts/toasts.md +124 -0
- package/llms/references/components/tooltip/tooltip.component.md +83 -0
- package/llms/references/components/tooltip/tooltip.design.md +68 -0
- package/llms/references/components/tooltip/tooltip.md +246 -0
- package/llms/references/components/treeselect/treeselect.component.md +62 -0
- package/llms/references/components/treeselect/treeselect.md +58 -0
- package/llms/references/components/user-select/user-select.md +52 -0
- package/llms/references/components/userpopover/userpopover.component.md +51 -0
- package/llms/references/components/userpopover/userpopover.design.md +74 -0
- package/llms/references/components/userpopover/userpopover.md +155 -0
- package/llms/references/components/verticalnavigation/verticalnavigation.component.md +247 -0
- package/llms/references/components/verticalnavigation/verticalnavigation.md +128 -0
- package/llms/references/documentation/content/accessibilite-contenu.md +147 -0
- package/llms/references/documentation/content/blocage-contenu.md +49 -0
- package/llms/references/documentation/content/criteres-essentiels.md +54 -0
- package/llms/references/documentation/content/dates.md +76 -0
- package/llms/references/documentation/content/grammaire-orthographe.md +118 -0
- package/llms/references/documentation/content/infinitif-imperatif.md +21 -0
- package/llms/references/documentation/content/jargon.md +30 -0
- package/llms/references/documentation/content/messages-erreur.md +279 -0
- package/llms/references/documentation/content/nombres.md +127 -0
- package/llms/references/documentation/content/ponctuation-typographie.md +343 -0
- package/llms/references/documentation/content/possessifs-pronoms.md +48 -0
- package/llms/references/documentation/content/ressources-definitions.md +58 -0
- package/llms/references/documentation/content/singulier-pluriel.md +72 -0
- package/llms/references/documentation/content/tester-clarte.md +141 -0
- package/llms/references/documentation/content/verbes-action.md +99 -0
- package/llms/references/documentation/content/voix-humaine.md +79 -0
- package/llms/references/documentation/deprecated/deprecated.md +151 -0
- package/llms/references/documentation/guidelines/guidelines-dev-ui.md +375 -0
- package/llms/references/documentation/patterns/actions-suppression.md +42 -0
- package/llms/references/documentation/patterns/aide-contextuelle.md +29 -0
- package/llms/references/documentation/patterns/card-et-box.md +56 -0
- package/llms/references/documentation/patterns/champs-conditionnels.md +38 -0
- package/llms/references/documentation/patterns/champs-effacables.md +34 -0
- package/llms/references/documentation/patterns/conception-formulaire.md +144 -0
- package/llms/references/documentation/patterns/cycle-vie-ressource.md +36 -0
- package/llms/references/documentation/patterns/dialogs-confirmation.md +160 -0
- package/llms/references/documentation/patterns/donnee-logiciel.md +66 -0
- package/llms/references/documentation/patterns/emails.md +99 -0
- package/llms/references/documentation/patterns/etats-chargement.md +90 -0
- package/llms/references/documentation/patterns/feedback.md +111 -0
- package/llms/references/documentation/patterns/gestion-erreurs-formulaire.md +48 -0
- package/llms/references/documentation/patterns/identification-pages.md +224 -0
- package/llms/references/documentation/patterns/metadonnees.md +79 -0
- package/llms/references/documentation/patterns/modes-affichage.md +51 -0
- package/llms/references/documentation/patterns/navigation-mobile.md +222 -0
- package/llms/references/documentation/patterns/niveaux-navigation.md +207 -0
- package/llms/references/documentation/patterns/parcours-creation-ressource-sans-diffusion.md +184 -0
- package/llms/references/documentation/patterns/parcours-creation-ressource.md +184 -0
- package/llms/references/documentation/patterns/pattern-ia.md +128 -0
- package/llms/references/documentation/patterns/placeholders.md +68 -0
- package/llms/references/documentation/patterns/push-notification-mobile.md +46 -0
- package/llms/references/documentation/patterns/quitter-formulaire.md +27 -0
- package/llms/references/documentation/patterns/regles-or.md +93 -0
- package/llms/references/documentation/patterns/responsive-design.md +119 -0
- package/llms/references/documentation/patterns/selection-population.md +135 -0
- package/llms/references/documentation/patterns/structure-accordeon.md +42 -0
- package/llms/references/documentation/patterns/traduction-formulaire.md +136 -0
- package/llms/references/documentation/patterns/vues-filtres-navigation.md +86 -0
- package/llms/references/documentation/patterns/widgets.md +64 -0
- package/llms/references/documentation/tokens/arrondis.md +65 -0
- package/llms/references/documentation/tokens/couleurs.md +560 -0
- package/llms/references/documentation/tokens/design-tokens.md +47 -0
- package/llms/references/documentation/tokens/elevations.md +78 -0
- package/llms/references/documentation/tokens/espacements.md +22 -0
- package/llms/references/documentation/tokens/noms-de-logiciels.md +81 -0
- package/llms/references/documentation/tokens/typographie.md +261 -0
- package/llms/references/migrations.md +31 -0
- package/llms/references/tools/angular-api.md +407 -0
- package/llms/references/tools/animations.md +177 -0
- package/llms/references/tools/mixins.md +119 -0
- package/llms/references/tools/numbers.md +81 -0
- package/llms/references/tools/scrollbox.md +11 -0
- package/llms/references/tools/utilitaires.md +998 -0
- package/llms/references/types/BubbleIllustration.md +5 -0
- package/llms/references/types/DecorativePalette.md +5 -0
- package/llms/references/types/Gap.md +5 -0
- package/llms/references/types/HighlightDataIllustration.md +5 -0
- package/llms/references/types/HighlightSectionIllustration.md +5 -0
- package/llms/references/types/LuccaIcon.md +5 -0
- package/llms/references/types/MainLayoutIllustrationEndStart.md +5 -0
- package/llms/references/types/MainLayoutIllustrationStartEnd.md +5 -0
- package/llms.txt +230 -0
- package/package.json +11 -8
- package/schematics/color-text/index.js +0 -1
- package/schematics/lu-button/migration.js +59 -33
- package/src/components/_sidepanel.scss +2 -2
- package/src/components/cdk/_global.scss +4 -0
- package/src/components/cdk/_overlay.scss +1 -1
- package/types/lucca-front-ng-activity-feed.d.ts +13 -9
- package/types/lucca-front-ng-api.d.ts +28 -28
- package/types/lucca-front-ng-approbation-inbox.d.ts +19 -11
- package/types/lucca-front-ng-bubble-icon.d.ts +1 -1
- package/types/lucca-front-ng-bubble-illustration.d.ts +6 -2
- package/types/lucca-front-ng-callout.d.ts +17 -17
- package/types/lucca-front-ng-chip.d.ts +6 -6
- package/types/lucca-front-ng-clear.d.ts +1 -1
- package/types/lucca-front-ng-color.d.ts +3 -3
- package/types/lucca-front-ng-comment.d.ts +11 -11
- package/types/lucca-front-ng-container.d.ts +1 -1
- package/types/lucca-front-ng-core-select-api.d.ts +7 -7
- package/types/lucca-front-ng-core-select-department.d.ts +7 -5
- package/types/lucca-front-ng-core-select-establishment.d.ts +7 -5
- package/types/lucca-front-ng-core-select-job-qualification.d.ts +2 -2
- package/types/lucca-front-ng-core-select-legal-units.d.ts +3 -3
- package/types/lucca-front-ng-core-select-occupation-category.d.ts +2 -2
- package/types/lucca-front-ng-core-select-user.d.ts +14 -12
- package/types/lucca-front-ng-core-select.d.ts +44 -39
- package/types/lucca-front-ng-core.d.ts +8 -3
- package/types/lucca-front-ng-data-table.d.ts +33 -33
- package/types/lucca-front-ng-date.d.ts +15 -11
- package/types/lucca-front-ng-date2.d.ts +52 -37
- package/types/lucca-front-ng-department.d.ts +4 -2
- package/types/lucca-front-ng-dialog.d.ts +8 -8
- package/types/lucca-front-ng-divider.d.ts +2 -2
- package/types/lucca-front-ng-dropdown.d.ts +4 -3
- package/types/lucca-front-ng-empty-state.d.ts +20 -20
- package/types/lucca-front-ng-establishment.d.ts +16 -14
- package/types/lucca-front-ng-fancy-box.d.ts +12 -12
- package/types/lucca-front-ng-file-upload.d.ts +13 -13
- package/types/lucca-front-ng-filter-pills.d.ts +17 -17
- package/types/lucca-front-ng-footer.d.ts +1 -1
- package/types/lucca-front-ng-form-field.d.ts +19 -19
- package/types/lucca-front-ng-form-label.d.ts +4 -4
- package/types/lucca-front-ng-form.d.ts +1 -1
- package/types/lucca-front-ng-forms-phone-number-input.d.ts +12 -11
- package/types/lucca-front-ng-forms-rich-text-input.d.ts +11 -11
- package/types/lucca-front-ng-forms.d.ts +61 -51
- package/types/lucca-front-ng-grid.d.ts +23 -23
- package/types/lucca-front-ng-highlight-data.d.ts +5 -5
- package/types/lucca-front-ng-highlight-section.d.ts +6 -3
- package/types/lucca-front-ng-horizontal-navigation.d.ts +4 -4
- package/types/lucca-front-ng-impersonation.d.ts +8 -6
- package/types/lucca-front-ng-index-table.d.ts +18 -18
- package/types/lucca-front-ng-inline-message.d.ts +2 -2
- package/types/lucca-front-ng-input.d.ts +4 -2
- package/types/lucca-front-ng-link.d.ts +17 -4
- package/types/lucca-front-ng-listbox.d.ts +9 -9
- package/types/lucca-front-ng-listing.d.ts +14 -3
- package/types/lucca-front-ng-loading.d.ts +4 -4
- package/types/lucca-front-ng-main-layout.d.ts +9 -9
- package/types/lucca-front-ng-mobile-push.d.ts +1 -0
- package/types/lucca-front-ng-modal.d.ts +2 -2
- package/types/lucca-front-ng-multi-select.d.ts +20 -20
- package/types/lucca-front-ng-option.d.ts +41 -20
- package/types/lucca-front-ng-page-header.d.ts +2 -2
- package/types/lucca-front-ng-pagination.d.ts +3 -3
- package/types/lucca-front-ng-plg-push.d.ts +1 -0
- package/types/lucca-front-ng-popover.d.ts +30 -18
- package/types/lucca-front-ng-popover2.d.ts +8 -8
- package/types/lucca-front-ng-popup.d.ts +2 -2
- package/types/{lucca-front-ng-priority-levels.d.ts → lucca-front-ng-priority-level.d.ts} +11 -11
- package/types/lucca-front-ng-progress-bar.d.ts +1 -1
- package/types/lucca-front-ng-progress-stepper.d.ts +2 -2
- package/types/lucca-front-ng-read-more.d.ts +4 -4
- package/types/lucca-front-ng-resource-card.d.ts +3 -3
- package/types/lucca-front-ng-segmented-control-tabs.d.ts +5 -5
- package/types/lucca-front-ng-segmented-control.d.ts +3 -3
- package/types/lucca-front-ng-select.d.ts +11 -10
- package/types/lucca-front-ng-sidepanel.d.ts +2 -1
- package/types/lucca-front-ng-simple-select.d.ts +9 -8
- package/types/lucca-front-ng-software-icon.d.ts +3 -3
- package/types/lucca-front-ng-sortable-list.d.ts +1 -1
- package/types/lucca-front-ng-status-badge.d.ts +1 -1
- package/types/lucca-front-ng-time.d.ts +21 -20
- package/types/lucca-front-ng-toast.d.ts +1 -1
- package/types/lucca-front-ng-tree-select.d.ts +2 -2
- package/types/lucca-front-ng-user-popover.d.ts +1 -1
- package/types/lucca-front-ng-user.d.ts +29 -21
- package/types/lucca-front-ng-vertical-navigation.d.ts +5 -5
- package/fesm2022/lucca-front-ng-priority-levels.mjs +0 -128
- package/fesm2022/lucca-front-ng-priority-levels.mjs.map +0 -1
|
@@ -40,7 +40,8 @@ const LU_CLEARER_TRANSLATIONS = new InjectionToken('LuClearerTranslations', {
|
|
|
40
40
|
const luClearerTranslations = Translations;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* @deprecated use
|
|
43
|
+
* @deprecated since 21.0.0; use ClearComponent.
|
|
44
|
+
* @see https://prisme.lucca.io/94310e217/p/717b6d-select-deprecated
|
|
44
45
|
*/
|
|
45
46
|
class LuInputClearerComponent extends ALuClearer {
|
|
46
47
|
constructor() {
|
|
@@ -55,15 +56,15 @@ class LuInputClearerComponent extends ALuClearer {
|
|
|
55
56
|
$event.preventDefault();
|
|
56
57
|
$event.stopPropagation();
|
|
57
58
|
}
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.3", type: LuInputClearerComponent, isStandalone: true, selector: "lu-input-clearer", inputs: { intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClear: "onClear" }, providers: [
|
|
60
61
|
{
|
|
61
62
|
provide: ALuClearer,
|
|
62
63
|
useExisting: forwardRef(() => LuInputClearerComponent),
|
|
63
64
|
},
|
|
64
65
|
], exportAs: ["luClearer"], usesInheritance: true, ngImport: i0, template: "<a href=\"#\" role=\"button\" class=\"clear\" (click)=\"onClick($event)\">\n\t<span class=\"pr-u-mask\">{{ intl().clear }}</span>\n</a>\n", styles: ["@layer base{:root{--components-options-item-padding-vertical: var(--pr-t-spacings-50);--components-options-item-padding-horizontal: var(--pr-t-spacings-100);--components-options-item-multiple-padding: 2.25rem;--components-options-item-icon-color: var(--palettes-neutral-800);--components-options-checkbox-size: 1.25rem;--components-options-checkbox-color: var(--palettes-700, var(--palettes-product-700));--components-options-checkbox-border-radius: var(--pr-t-border-radius-small);--components-options-checkbox-border-color: var(--palettes-neutral-700);--components-options-establishment-multiple-padding: 2rem}}@layer reset,base,components,mods,product,utils;@layer components{:host{display:none}}@layer mods{:host-context(.textfield-input.is-filled){display:block}:host-context(.textfield-input.is-disabled,.textfield-input[disabled]){display:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
66
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerComponent, decorators: [{
|
|
67
68
|
type: Component,
|
|
68
69
|
args: [{ selector: 'lu-input-clearer', changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'luClearer', providers: [
|
|
69
70
|
{
|
|
@@ -79,11 +80,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
79
80
|
* @deprecated use `LuInputClearerComponent` instead
|
|
80
81
|
*/
|
|
81
82
|
class LuInputClearerModule {
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
83
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.
|
|
84
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.
|
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
84
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerModule, imports: [LuInputClearerComponent], exports: [LuInputClearerComponent] }); }
|
|
85
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerModule }); }
|
|
85
86
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputClearerModule, decorators: [{
|
|
87
88
|
type: NgModule,
|
|
88
89
|
args: [{
|
|
89
90
|
imports: [LuInputClearerComponent],
|
|
@@ -99,7 +100,8 @@ class ALuInputDisplayer {
|
|
|
99
100
|
|
|
100
101
|
/* eslint-disable @angular-eslint/prefer-signals */
|
|
101
102
|
/**
|
|
102
|
-
* @deprecated
|
|
103
|
+
* @deprecated since 20.2.0; use LuSimpleSelectInputComponent or LuMultiSelectInputComponent.
|
|
104
|
+
* @see https://prisme.lucca.io/94310e217/p/717b6d-select-deprecated
|
|
103
105
|
*/
|
|
104
106
|
class LuInputDisplayerDirective extends ALuInputDisplayer {
|
|
105
107
|
set argMultiple(m) {
|
|
@@ -122,8 +124,8 @@ class LuInputDisplayerDirective extends ALuInputDisplayer {
|
|
|
122
124
|
getViewRef(value) {
|
|
123
125
|
return this.template.createEmbeddedView({ $implicit: value });
|
|
124
126
|
}
|
|
125
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
126
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
128
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: LuInputDisplayerDirective, isStandalone: true, selector: "[luDisplayer]", inputs: { argMultiple: ["luDisplayerMultiple", "argMultiple"], inputMultiple: ["multiple", "inputMultiple"] }, providers: [
|
|
127
129
|
{
|
|
128
130
|
provide: ALuInputDisplayer,
|
|
129
131
|
useExisting: forwardRef(() => LuInputDisplayerDirective),
|
|
@@ -131,7 +133,7 @@ class LuInputDisplayerDirective extends ALuInputDisplayer {
|
|
|
131
133
|
},
|
|
132
134
|
], usesInheritance: true, ngImport: i0 }); }
|
|
133
135
|
}
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerDirective, decorators: [{
|
|
135
137
|
type: Directive,
|
|
136
138
|
args: [{
|
|
137
139
|
selector: '[luDisplayer]',
|
|
@@ -160,11 +162,11 @@ class LuInputDisplayerContext {
|
|
|
160
162
|
* @deprecated use `LuInputDisplayerDirective` instead
|
|
161
163
|
*/
|
|
162
164
|
class LuInputDisplayerModule {
|
|
163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
164
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.
|
|
165
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.
|
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
166
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerModule, imports: [LuInputDisplayerDirective], exports: [LuInputDisplayerDirective] }); }
|
|
167
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerModule }); }
|
|
166
168
|
}
|
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDisplayerModule, decorators: [{
|
|
168
170
|
type: NgModule,
|
|
169
171
|
args: [{
|
|
170
172
|
imports: [LuInputDisplayerDirective],
|
|
@@ -201,10 +203,10 @@ class LuInputDirective {
|
|
|
201
203
|
const val = this._ngControl.value;
|
|
202
204
|
this.applyClasses(val);
|
|
203
205
|
}
|
|
204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
205
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.NgControl }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
207
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: LuInputDirective, isStandalone: true, selector: "[luInput]", ngImport: i0 }); }
|
|
206
208
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputDirective, decorators: [{
|
|
208
210
|
type: Directive,
|
|
209
211
|
args: [{
|
|
210
212
|
selector: '[luInput]',
|
|
@@ -270,11 +272,11 @@ class ALuInput {
|
|
|
270
272
|
* @deprecated use `LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent` instead
|
|
271
273
|
*/
|
|
272
274
|
class LuInputModule {
|
|
273
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
274
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.
|
|
275
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.
|
|
275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
276
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.3", ngImport: i0, type: LuInputModule, imports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent], exports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent] }); }
|
|
277
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputModule }); }
|
|
276
278
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuInputModule, decorators: [{
|
|
278
280
|
type: NgModule,
|
|
279
281
|
args: [{
|
|
280
282
|
imports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-input.mjs","sources":["../../../packages/ng/input/clearer/clearer.model.ts","../../../packages/ng/input/clearer/translations.ts","../../../packages/ng/input/clearer/clearer.translate.ts","../../../packages/ng/input/clearer/clearer.component.ts","../../../packages/ng/input/clearer/clearer.component.html","../../../packages/ng/input/clearer/clearer.module.ts","../../../packages/ng/input/displayer/input-displayer.model.ts","../../../packages/ng/input/displayer/input-displayer.directive.ts","../../../packages/ng/input/displayer/input-displayer.module.ts","../../../packages/ng/input/input.directive.ts","../../../packages/ng/input/input.model.ts","../../../packages/ng/input/input.module.ts","../../../packages/ng/input/lucca-front-ng-input.ts"],"sourcesContent":["import { Observable } from 'rxjs';\n\nexport interface ILuClearer<T> {\n\tonClear: Observable<T>;\n}\nexport abstract class ALuClearer<T> implements ILuClearer<T> {\n\tonClear: Observable<T>;\n}\n","export const Translations = {\n\ten: {\n\t\tclear: 'Clear this field',\n\t},\n\tde: {\n\t\tclear: 'Den Inhalt aus diesem Feld entfernen',\n\t},\n\tfr: {\n\t\tclear: 'Vider ce champ',\n\t},\n\tit: {\n\t\tclear: 'Svuotare questo campo',\n\t},\n\tnl: {\n\t\tclear: 'Dit veld leegmaken',\n\t},\n\t'nl-BE': {\n\t\tclear: 'Dit veld leegmaken',\n\t},\n\tes: {\n\t\tclear: 'Vaciar este campo',\n\t},\n\tpt: {\n\t\tclear: 'Esvaziar este campo',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_CLEARER_TRANSLATIONS = new InjectionToken('LuClearerTranslations', {\n\tfactory: () => luClearerTranslations,\n});\n\nexport interface LuClearerLabel {\n\tclear: string;\n}\n\nexport const luClearerTranslations: LuTranslation<LuClearerLabel> = Translations;\n","import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, input, Output } from '@angular/core';\nimport { intlInputOptions } from '@lucca-front/ng/core';\nimport { ALuClearer, ILuClearer } from './clearer.model';\nimport { LU_CLEARER_TRANSLATIONS } from './clearer.translate';\n\n/**\n * @deprecated use `ClearComponent` instead\n */\n@Component({\n\tselector: 'lu-input-clearer',\n\ttemplateUrl: './clearer.component.html',\n\tstyleUrl: './clearer.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\texportAs: 'luClearer',\n\tproviders: [\n\t\t{\n\t\t\tprovide: ALuClearer,\n\t\t\tuseExisting: forwardRef(() => LuInputClearerComponent),\n\t\t},\n\t],\n})\nexport class LuInputClearerComponent<T> extends ALuClearer<T> implements ILuClearer<T> {\n\treadonly intl = input(...intlInputOptions(LU_CLEARER_TRANSLATIONS));\n\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output() override onClear = new EventEmitter<T>();\n\tonClick($event: Event) {\n\t\tthis.onClear.emit();\n\t\t$event.preventDefault();\n\t\t$event.stopPropagation();\n\t}\n}\n","<a href=\"#\" role=\"button\" class=\"clear\" (click)=\"onClick($event)\">\n\t<span class=\"pr-u-mask\">{{ intl().clear }}</span>\n</a>\n","import { NgModule } from '@angular/core';\nimport { LuInputClearerComponent } from './clearer.component';\n\n/**\n * @deprecated use `LuInputClearerComponent` instead\n */\n@NgModule({\n\timports: [LuInputClearerComponent],\n\texports: [LuInputClearerComponent],\n})\nexport class LuInputClearerModule {}\n","import { ViewRef } from '@angular/core';\n\nexport interface ILuInputDisplayer<T> {\n\tmultiple: boolean;\n\tgetViewRef(value: T | T[]): ViewRef;\n}\nexport abstract class ALuInputDisplayer<T> implements ILuInputDisplayer<T> {\n\tmultiple = false;\n\tabstract getViewRef(value: T | T[]): ViewRef;\n}\n","import { Directive, forwardRef, Input, TemplateRef, ViewRef } from '@angular/core';\nimport { ALuInputDisplayer, ILuInputDisplayer } from './input-displayer.model';\n\n/* eslint-disable @angular-eslint/prefer-signals */\n/**\n * @deprecated\n */\n@Directive({\n\tselector: '[luDisplayer]',\n\tproviders: [\n\t\t{\n\t\t\tprovide: ALuInputDisplayer,\n\t\t\tuseExisting: forwardRef(() => LuInputDisplayerDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class LuInputDisplayerDirective<T> extends ALuInputDisplayer<T> implements ILuInputDisplayer<T> {\n\t@Input('luDisplayerMultiple') set argMultiple(m: boolean) {\n\t\tthis.multiple = !!m;\n\t}\n\t@Input('multiple') set inputMultiple(m: boolean | string) {\n\t\tif (m === '') {\n\t\t\t// allows to have multiple = true when writing\n\t\t\t// <ng-template luDisplayer multiple>\n\t\t\tthis.multiple = true;\n\t\t} else {\n\t\t\tthis.multiple = !!m;\n\t\t}\n\t}\n\tconstructor(protected template: TemplateRef<LuInputDisplayerContext<T>>) {\n\t\tsuper();\n\t}\n\tgetViewRef(value: T | T[]): ViewRef {\n\t\treturn this.template.createEmbeddedView({ $implicit: value });\n\t}\n}\n\nexport class LuInputDisplayerContext<T> {\n\tconstructor(public $implicit: T | T[]) {}\n}\n","import { NgModule } from '@angular/core';\nimport { LuInputDisplayerDirective } from './input-displayer.directive';\n\n/**\n * @deprecated use `LuInputDisplayerDirective` instead\n */\n@NgModule({\n\timports: [LuInputDisplayerDirective],\n\texports: [LuInputDisplayerDirective],\n})\nexport class LuInputDisplayerModule {}\n","import { DestroyRef, Directive, ElementRef, inject, OnInit, Renderer2 } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { isNil } from '@lucca-front/ng/core';\n\n/**\n * adds class is-filled when model is empty\n */\n@Directive({\n\tselector: '[luInput]',\n})\nexport class LuInputDirective implements OnInit {\n\tprotected _destroyRef = inject(DestroyRef);\n\n\tconstructor(\n\t\tprotected _elementRef: ElementRef,\n\t\tprotected _renderer: Renderer2,\n\t\tprotected _ngControl: NgControl,\n\t) {}\n\tprotected isEmpty(value) {\n\t\tif (typeof value === 'string') {\n\t\t\treturn value === '';\n\t\t}\n\t\treturn isNil(value);\n\t}\n\tprotected applyClasses(value) {\n\t\tif (this.isEmpty(value)) {\n\t\t\tthis._renderer.removeClass(this._elementRef.nativeElement, 'is-filled');\n\t\t} else {\n\t\t\tthis._renderer.addClass(this._elementRef.nativeElement, 'is-filled');\n\t\t}\n\t}\n\tngOnInit() {\n\t\tthis._ngControl.valueChanges?.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((v) => this.applyClasses(v));\n\t\tconst val: unknown = this._ngControl.value;\n\t\tthis.applyClasses(val);\n\t}\n}\n","import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { isNil } from '@lucca-front/ng/core';\n\nexport type ILuInput = ControlValueAccessor;\n\nexport abstract class ALuInput<T, U extends HTMLElement = HTMLElement> implements ILuInput {\n\tprotected _placeholder: string;\n\tget placeholder() {\n\t\treturn this._placeholder;\n\t}\n\tprotected _value: T | null = null;\n\tconstructor(\n\t\tprotected _changeDetectorRef: ChangeDetectorRef,\n\t\tprotected _elementRef: ElementRef<U>,\n\t\tprotected _renderer: Renderer2,\n\t) {}\n\tsetValue(value: T | null) {\n\t\tthis.value = value;\n\t\tthis._cvaOnChange(value);\n\t\tthis._onTouched();\n\t}\n\tget value(): T | null {\n\t\treturn this._value;\n\t}\n\tset value(value: T | null) {\n\t\tthis._value = value;\n\t\tthis.render();\n\t\tthis.applyClasses();\n\t\tthis._changeDetectorRef.markForCheck();\n\t}\n\t// From ControlValueAccessor interface\n\twriteValue(value?: T) {\n\t\tthis.value = value ?? null;\n\t}\n\t// From ControlValueAccessor interface\n\tprotected _cvaOnChange: (value: T | null) => void = () => {\n\t\treturn;\n\t};\n\tregisterOnChange(fn: (value: T | null) => void) {\n\t\tthis._cvaOnChange = fn;\n\t}\n\t// From ControlValueAccessor interface\n\tprotected _onTouched: () => void = () => {\n\t\treturn;\n\t};\n\tregisterOnTouched(fn: () => void) {\n\t\tthis._onTouched = fn;\n\t}\n\tprotected isEmpty() {\n\t\treturn isNil(this.value);\n\t}\n\tprotected applyClasses() {\n\t\tif (this.isEmpty()) {\n\t\t\tthis._renderer.removeClass(this._elementRef.nativeElement, 'is-filled');\n\t\t} else {\n\t\t\tthis._renderer.addClass(this._elementRef.nativeElement, 'is-filled');\n\t\t}\n\t}\n\n\tprotected abstract render(): void;\n}\n","import { NgModule } from '@angular/core';\nimport { LuInputClearerComponent } from './clearer';\nimport { LuInputDisplayerDirective } from './displayer/index';\nimport { LuInputDirective } from './input.directive';\n\n/**\n * @deprecated use `LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent` instead\n */\n@NgModule({\n\timports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent],\n\texports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent],\n})\nexport class LuInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKsB,UAAU,CAAA;AAE/B;;ACPM,MAAM,YAAY,GAAG;AAC3B,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,kBAAkB;AACzB,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,sCAAsC;AAC7C,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,gBAAgB;AACvB,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,oBAAoB;AAC3B,KAAA;AACD,IAAA,OAAO,EAAE;AACR,QAAA,KAAK,EAAE,oBAAoB;AAC3B,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,qBAAqB;AAC5B,KAAA;CACD;;ACrBM,MAAM,uBAAuB,GAAG,IAAI,cAAc,CAAC,uBAAuB,EAAE;AAClF,IAAA,OAAO,EAAE,MAAM,qBAAqB;AACpC,CAAA,CAAC;AAMK,MAAM,qBAAqB,GAAkC,YAAY;;ACPhF;;AAEG;AAcG,MAAO,uBAA2B,SAAQ,UAAa,CAAA;AAb7D,IAAA,WAAA,GAAA;;AAcU,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,GAAG,gBAAgB,CAAC,uBAAu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AA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAb,aAAa,EAAA,OAAA,EAAA,CAHf,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAA,EAAA,OAAA,EAAA,CACpE,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;+GAElE,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAC;AAC/E,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAC;AAC/E,iBAAA;;;ACXD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-input.mjs","sources":["../../../packages/ng/input/clearer/clearer.model.ts","../../../packages/ng/input/clearer/translations.ts","../../../packages/ng/input/clearer/clearer.translate.ts","../../../packages/ng/input/clearer/clearer.component.ts","../../../packages/ng/input/clearer/clearer.component.html","../../../packages/ng/input/clearer/clearer.module.ts","../../../packages/ng/input/displayer/input-displayer.model.ts","../../../packages/ng/input/displayer/input-displayer.directive.ts","../../../packages/ng/input/displayer/input-displayer.module.ts","../../../packages/ng/input/input.directive.ts","../../../packages/ng/input/input.model.ts","../../../packages/ng/input/input.module.ts","../../../packages/ng/input/lucca-front-ng-input.ts"],"sourcesContent":["import { Observable } from 'rxjs';\n\nexport interface ILuClearer<T> {\n\tonClear: Observable<T>;\n}\nexport abstract class ALuClearer<T> implements ILuClearer<T> {\n\tonClear: Observable<T>;\n}\n","export const Translations = {\n\ten: {\n\t\tclear: 'Clear this field',\n\t},\n\tde: {\n\t\tclear: 'Den Inhalt aus diesem Feld entfernen',\n\t},\n\tfr: {\n\t\tclear: 'Vider ce champ',\n\t},\n\tit: {\n\t\tclear: 'Svuotare questo campo',\n\t},\n\tnl: {\n\t\tclear: 'Dit veld leegmaken',\n\t},\n\t'nl-BE': {\n\t\tclear: 'Dit veld leegmaken',\n\t},\n\tes: {\n\t\tclear: 'Vaciar este campo',\n\t},\n\tpt: {\n\t\tclear: 'Esvaziar este campo',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_CLEARER_TRANSLATIONS = new InjectionToken('LuClearerTranslations', {\n\tfactory: () => luClearerTranslations,\n});\n\nexport interface LuClearerLabel {\n\tclear: string;\n}\n\nexport const luClearerTranslations: LuTranslation<LuClearerLabel> = Translations;\n","import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, input, Output } from '@angular/core';\nimport { intlInputOptions } from '@lucca-front/ng/core';\nimport { ALuClearer, ILuClearer } from './clearer.model';\nimport { LU_CLEARER_TRANSLATIONS } from './clearer.translate';\n\n/**\n * @deprecated since 21.0.0; use ClearComponent.\n * @see https://prisme.lucca.io/94310e217/p/717b6d-select-deprecated\n */\n@Component({\n\tselector: 'lu-input-clearer',\n\ttemplateUrl: './clearer.component.html',\n\tstyleUrl: './clearer.component.scss',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\texportAs: 'luClearer',\n\tproviders: [\n\t\t{\n\t\t\tprovide: ALuClearer,\n\t\t\tuseExisting: forwardRef(() => LuInputClearerComponent),\n\t\t},\n\t],\n})\nexport class LuInputClearerComponent<T> extends ALuClearer<T> implements ILuClearer<T> {\n\treadonly intl = input(...intlInputOptions(LU_CLEARER_TRANSLATIONS));\n\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output() override onClear = new EventEmitter<T>();\n\tonClick($event: Event) {\n\t\tthis.onClear.emit();\n\t\t$event.preventDefault();\n\t\t$event.stopPropagation();\n\t}\n}\n","<a href=\"#\" role=\"button\" class=\"clear\" (click)=\"onClick($event)\">\n\t<span class=\"pr-u-mask\">{{ intl().clear }}</span>\n</a>\n","import { NgModule } from '@angular/core';\nimport { LuInputClearerComponent } from './clearer.component';\n\n/**\n * @deprecated use `LuInputClearerComponent` instead\n */\n@NgModule({\n\timports: [LuInputClearerComponent],\n\texports: [LuInputClearerComponent],\n})\nexport class LuInputClearerModule {}\n","import { ViewRef } from '@angular/core';\n\nexport interface ILuInputDisplayer<T> {\n\tmultiple: boolean;\n\tgetViewRef(value: T | T[]): ViewRef;\n}\nexport abstract class ALuInputDisplayer<T> implements ILuInputDisplayer<T> {\n\tmultiple = false;\n\tabstract getViewRef(value: T | T[]): ViewRef;\n}\n","import { Directive, forwardRef, Input, TemplateRef, ViewRef } from '@angular/core';\nimport { ALuInputDisplayer, ILuInputDisplayer } from './input-displayer.model';\n\n/* eslint-disable @angular-eslint/prefer-signals */\n/**\n * @deprecated since 20.2.0; use LuSimpleSelectInputComponent or LuMultiSelectInputComponent.\n * @see https://prisme.lucca.io/94310e217/p/717b6d-select-deprecated\n */\n@Directive({\n\tselector: '[luDisplayer]',\n\tproviders: [\n\t\t{\n\t\t\tprovide: ALuInputDisplayer,\n\t\t\tuseExisting: forwardRef(() => LuInputDisplayerDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class LuInputDisplayerDirective<T> extends ALuInputDisplayer<T> implements ILuInputDisplayer<T> {\n\t@Input('luDisplayerMultiple') set argMultiple(m: boolean) {\n\t\tthis.multiple = !!m;\n\t}\n\t@Input('multiple') set inputMultiple(m: boolean | string) {\n\t\tif (m === '') {\n\t\t\t// allows to have multiple = true when writing\n\t\t\t// <ng-template luDisplayer multiple>\n\t\t\tthis.multiple = true;\n\t\t} else {\n\t\t\tthis.multiple = !!m;\n\t\t}\n\t}\n\tconstructor(protected template: TemplateRef<LuInputDisplayerContext<T>>) {\n\t\tsuper();\n\t}\n\tgetViewRef(value: T | T[]): ViewRef {\n\t\treturn this.template.createEmbeddedView({ $implicit: value });\n\t}\n}\n\nexport class LuInputDisplayerContext<T> {\n\tconstructor(public $implicit: T | T[]) {}\n}\n","import { NgModule } from '@angular/core';\nimport { LuInputDisplayerDirective } from './input-displayer.directive';\n\n/**\n * @deprecated use `LuInputDisplayerDirective` instead\n */\n@NgModule({\n\timports: [LuInputDisplayerDirective],\n\texports: [LuInputDisplayerDirective],\n})\nexport class LuInputDisplayerModule {}\n","import { DestroyRef, Directive, ElementRef, inject, OnInit, Renderer2 } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NgControl } from '@angular/forms';\nimport { isNil } from '@lucca-front/ng/core';\n\n/**\n * adds class is-filled when model is empty\n */\n@Directive({\n\tselector: '[luInput]',\n})\nexport class LuInputDirective implements OnInit {\n\tprotected _destroyRef = inject(DestroyRef);\n\n\tconstructor(\n\t\tprotected _elementRef: ElementRef,\n\t\tprotected _renderer: Renderer2,\n\t\tprotected _ngControl: NgControl,\n\t) {}\n\tprotected isEmpty(value) {\n\t\tif (typeof value === 'string') {\n\t\t\treturn value === '';\n\t\t}\n\t\treturn isNil(value);\n\t}\n\tprotected applyClasses(value) {\n\t\tif (this.isEmpty(value)) {\n\t\t\tthis._renderer.removeClass(this._elementRef.nativeElement, 'is-filled');\n\t\t} else {\n\t\t\tthis._renderer.addClass(this._elementRef.nativeElement, 'is-filled');\n\t\t}\n\t}\n\tngOnInit() {\n\t\tthis._ngControl.valueChanges?.pipe(takeUntilDestroyed(this._destroyRef)).subscribe((v) => this.applyClasses(v));\n\t\tconst val: unknown = this._ngControl.value;\n\t\tthis.applyClasses(val);\n\t}\n}\n","import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { isNil } from '@lucca-front/ng/core';\n\nexport type ILuInput = ControlValueAccessor;\n\nexport abstract class ALuInput<T, U extends HTMLElement = HTMLElement> implements ILuInput {\n\tprotected _placeholder: string;\n\tget placeholder() {\n\t\treturn this._placeholder;\n\t}\n\tprotected _value: T | null = null;\n\tconstructor(\n\t\tprotected _changeDetectorRef: ChangeDetectorRef,\n\t\tprotected _elementRef: ElementRef<U>,\n\t\tprotected _renderer: Renderer2,\n\t) {}\n\tsetValue(value: T | null) {\n\t\tthis.value = value;\n\t\tthis._cvaOnChange(value);\n\t\tthis._onTouched();\n\t}\n\tget value(): T | null {\n\t\treturn this._value;\n\t}\n\tset value(value: T | null) {\n\t\tthis._value = value;\n\t\tthis.render();\n\t\tthis.applyClasses();\n\t\tthis._changeDetectorRef.markForCheck();\n\t}\n\t// From ControlValueAccessor interface\n\twriteValue(value?: T) {\n\t\tthis.value = value ?? null;\n\t}\n\t// From ControlValueAccessor interface\n\tprotected _cvaOnChange: (value: T | null) => void = () => {\n\t\treturn;\n\t};\n\tregisterOnChange(fn: (value: T | null) => void) {\n\t\tthis._cvaOnChange = fn;\n\t}\n\t// From ControlValueAccessor interface\n\tprotected _onTouched: () => void = () => {\n\t\treturn;\n\t};\n\tregisterOnTouched(fn: () => void) {\n\t\tthis._onTouched = fn;\n\t}\n\tprotected isEmpty() {\n\t\treturn isNil(this.value);\n\t}\n\tprotected applyClasses() {\n\t\tif (this.isEmpty()) {\n\t\t\tthis._renderer.removeClass(this._elementRef.nativeElement, 'is-filled');\n\t\t} else {\n\t\t\tthis._renderer.addClass(this._elementRef.nativeElement, 'is-filled');\n\t\t}\n\t}\n\n\tprotected abstract render(): void;\n}\n","import { NgModule } from '@angular/core';\nimport { LuInputClearerComponent } from './clearer';\nimport { LuInputDisplayerDirective } from './displayer/index';\nimport { LuInputDirective } from './input.directive';\n\n/**\n * @deprecated use `LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent` instead\n */\n@NgModule({\n\timports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent],\n\texports: [LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent],\n})\nexport class LuInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAKsB,UAAU,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AA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAC;AAC/E,oBAAA,OAAO,EAAE,CAAC,gBAAgB,EAAE,yBAAyB,EAAE,uBAAuB,CAAC;AAC/E,iBAAA;;;ACXD;;AAEG;;"}
|
|
@@ -290,10 +290,10 @@ class KbdComponent {
|
|
|
290
290
|
}
|
|
291
291
|
return { type: 'text', label: key.length === 1 ? key.toUpperCase() : key };
|
|
292
292
|
}
|
|
293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
294
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: KbdComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
294
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: KbdComponent, isStandalone: true, selector: "lu-kbd", inputs: { keys: { classPropertyName: "keys", publicName: "keys", isSignal: true, isRequired: true, transformFunction: null }, intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (displayedKeys().length === 1) {\n\t<span class=\"kbdWrapper\">\n\t\t<kbd class=\"kbd\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: displayedKeys()[0] }\" />\n\t\t</kbd>\n\t</span>\n} @else {\n\t<kbd class=\"kbdWrapper\">\n\t\t@for (key of displayedKeys(); track $index) {\n\t\t\t@if (!$first) {\n\t\t\t\t+\n\t\t\t}\n\t\t\t<kbd class=\"kbd\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: key }\" />\n\t\t\t</kbd>\n\t\t}\n\t</kbd>\n}\n\n<ng-template #content let-key>\n\t@switch (key.type) {\n\t\t@case (\"icon\") {\n\t\t\t<lu-icon [icon]=\"key.icon\" size=\"XXS\" [alt]=\"key.label\" />\n\t\t}\n\t\t@default {\n\t\t\t{{ key.label }}\n\t\t}\n\t}\n</ng-template>\n", styles: ["@layer components{.kbd{--components-kbd-paddingInline: var(--pr-t-spacings-50);--components-kbd-animationDelay: 0s;--components-kbd-animationDuration: calc(var(--components-kbd-animationPause) / .9);--components-kbd-animationName: var(--components-kbd-modifier-animationName);--components-kbd-animationOffset: 0s;--components-kbd-animationPause: calc(var(--commons-animations-durations-slow) * 3.5);--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none;align-items:center;background-color:var(--palettes-neutral-0);border:1px solid var(--palettes-neutral-200);border-radius:var(--pr-t-border-radius-small);box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-XS);inset-block-start:0;justify-content:center;min-block-size:var(--pr-t-spacings-250);min-inline-size:var(--pr-t-spacings-250);padding-inline:var(--components-kbd-paddingInline);position:relative;white-space:nowrap;animation-delay:calc(var(--components-kbd-animationDelay) + var(--components-kbd-animationOffset));animation-duration:var(--components-kbd-animationDuration);animation-iteration-count:infinite;animation-name:var(--components-kbd-animationName);animation-timing-function:step-end}.kbd:has(.lucca-icon){--components-kbd-paddingInline: 0}.kbd:nth-of-type(2){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 1)}.kbd:nth-of-type(3){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 2)}.kbd:nth-of-type(4){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 3)}.kbd:nth-of-type(5){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 4)}.kbd:last-of-type{--components-kbd-animationName: var(--components-kbd-last-animationName)}@keyframes kbdHold{10%,35%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}40%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}}@keyframes kbdTap{15%,25%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}20%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}}}@layer mods{@media(prefers-reduced-motion:reduce){.kbd{--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none}}}@layer components{.kbdWrapper{align-items:center;color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-S);gap:var(--pr-t-spacings-25);vertical-align:middle;white-space:nowrap}.kbdWrapper:has(.kbd:nth-of-type(2)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 0)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(3)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 1)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(4)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 2)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(5)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 3)) / .6)}}lu-kbd{display:contents}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
295
295
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: KbdComponent, decorators: [{
|
|
297
297
|
type: Component,
|
|
298
298
|
args: [{ selector: 'lu-kbd', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [IconComponent, NgTemplateOutlet], template: "@if (displayedKeys().length === 1) {\n\t<span class=\"kbdWrapper\">\n\t\t<kbd class=\"kbd\">\n\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: displayedKeys()[0] }\" />\n\t\t</kbd>\n\t</span>\n} @else {\n\t<kbd class=\"kbdWrapper\">\n\t\t@for (key of displayedKeys(); track $index) {\n\t\t\t@if (!$first) {\n\t\t\t\t+\n\t\t\t}\n\t\t\t<kbd class=\"kbd\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"content; context: { $implicit: key }\" />\n\t\t\t</kbd>\n\t\t}\n\t</kbd>\n}\n\n<ng-template #content let-key>\n\t@switch (key.type) {\n\t\t@case (\"icon\") {\n\t\t\t<lu-icon [icon]=\"key.icon\" size=\"XXS\" [alt]=\"key.label\" />\n\t\t}\n\t\t@default {\n\t\t\t{{ key.label }}\n\t\t}\n\t}\n</ng-template>\n", styles: ["@layer components{.kbd{--components-kbd-paddingInline: var(--pr-t-spacings-50);--components-kbd-animationDelay: 0s;--components-kbd-animationDuration: calc(var(--components-kbd-animationPause) / .9);--components-kbd-animationName: var(--components-kbd-modifier-animationName);--components-kbd-animationOffset: 0s;--components-kbd-animationPause: calc(var(--commons-animations-durations-slow) * 3.5);--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none;align-items:center;background-color:var(--palettes-neutral-0);border:1px solid var(--palettes-neutral-200);border-radius:var(--pr-t-border-radius-small);box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-XS);inset-block-start:0;justify-content:center;min-block-size:var(--pr-t-spacings-250);min-inline-size:var(--pr-t-spacings-250);padding-inline:var(--components-kbd-paddingInline);position:relative;white-space:nowrap;animation-delay:calc(var(--components-kbd-animationDelay) + var(--components-kbd-animationOffset));animation-duration:var(--components-kbd-animationDuration);animation-iteration-count:infinite;animation-name:var(--components-kbd-animationName);animation-timing-function:step-end}.kbd:has(.lucca-icon){--components-kbd-paddingInline: 0}.kbd:nth-of-type(2){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 1)}.kbd:nth-of-type(3){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 2)}.kbd:nth-of-type(4){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 3)}.kbd:nth-of-type(5){--components-kbd-animationOffset: calc(var(--commons-animations-durations-fast) / 2 * 4)}.kbd:last-of-type{--components-kbd-animationName: var(--components-kbd-last-animationName)}@keyframes kbdHold{10%,35%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}40%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}}@keyframes kbdTap{15%,25%{box-shadow:inset 0 -1px 0 var(--palettes-neutral-200);inset-block-start:0}20%{box-shadow:inset 0 0 0 var(--palettes-neutral-200);inset-block-start:1px}}}@layer mods{@media(prefers-reduced-motion:reduce){.kbd{--components-kbd-last-animationName: none;--components-kbd-modifier-animationName: none}}}@layer components{.kbdWrapper{align-items:center;color:var(--pr-t-color-text-subtle);display:inline-flex;font:var(--pr-t-font-body-S);gap:var(--pr-t-spacings-25);vertical-align:middle;white-space:nowrap}.kbdWrapper:has(.kbd:nth-of-type(2)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 0)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(3)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 1)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(4)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 2)) / .6)}.kbdWrapper:has(.kbd:nth-of-type(5)) .kbd{--components-kbd-animationDuration: calc((var(--components-kbd-animationPause) + calc(var(--commons-animations-durations-fast) / 2 * 3)) / .6)}}lu-kbd{display:contents}\n"] }]
|
|
299
299
|
}], propDecorators: { keys: [{ type: i0.Input, args: [{ isSignal: true, alias: "keys", required: true }] }], intl: [{ type: i0.Input, args: [{ isSignal: true, alias: "intl", required: false }] }] } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { Location } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, Attribute, Directive, input, inject, Injector, ElementRef, effect, afterNextRender, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
4
|
+
import { InjectionToken, signal, linkedSignal, Attribute, Directive, input, inject, Injector, ElementRef, effect, afterNextRender, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
5
5
|
import * as i1 from '@angular/router';
|
|
6
6
|
import { RouterLink, Router, ActivatedRoute, UrlTree } from '@angular/router';
|
|
7
7
|
import { intlInputOptions, luBooleanAttribute } from '@lucca-front/ng/core';
|
|
@@ -38,19 +38,40 @@ const LU_LINK_TRANSLATIONS = new InjectionToken('luLinkTranslations', {
|
|
|
38
38
|
const luLinkTranslations = Translations;
|
|
39
39
|
|
|
40
40
|
class LuRouterLink extends RouterLink {
|
|
41
|
+
// Field initializers run after `super()`, so this still references the router-computed `linkedSignal` of `RouterLink`.
|
|
42
|
+
#routerHref;
|
|
41
43
|
// Workaround for a storybook bug = implement the constructor https://github.com/storybookjs/storybook/issues/23534#issuecomment-2042888436
|
|
42
44
|
constructor(router, route, tabIndexAttribute, renderer, el, locationStrategy) {
|
|
43
45
|
super(router, route, tabIndexAttribute, renderer, el, locationStrategy);
|
|
46
|
+
/**
|
|
47
|
+
* Href forced by `luLink` (raw `href`, external or disabled link). `undefined` lets the router compute it.
|
|
48
|
+
*/
|
|
49
|
+
this.hrefOverride = signal(undefined, /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "hrefOverride" }] : /* istanbul ignore next */ []));
|
|
51
|
+
// Field initializers run after `super()`, so this still references the router-computed `linkedSignal` of `RouterLink`.
|
|
52
|
+
this.#routerHref = this.reactiveHref;
|
|
53
|
+
// Since Angular 22, `reactiveHref` is a `linkedSignal` recomputed on every navigation, which wipes any value written with `set()`.
|
|
54
|
+
// Deriving it from `hrefOverride` keeps the forced href across navigations.
|
|
55
|
+
this.reactiveHref = linkedSignal(() => {
|
|
56
|
+
const hrefOverride = this.hrefOverride();
|
|
57
|
+
return hrefOverride === undefined ? this.#routerHref() : hrefOverride;
|
|
58
|
+
}, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "reactiveHref" }] : /* istanbul ignore next */ []));
|
|
60
|
+
/**
|
|
61
|
+
* Href bound to the host element: `hrefOverride` when set, the router-computed href otherwise.
|
|
62
|
+
*/
|
|
63
|
+
this.resolvedHref = this.reactiveHref.asReadonly();
|
|
44
64
|
}
|
|
45
|
-
|
|
46
|
-
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated a value written with `set()` is wiped on every navigation, use `hrefOverride` to force the href and `resolvedHref` to read it instead
|
|
67
|
+
*/
|
|
47
68
|
get publicReactiveHref() {
|
|
48
69
|
return this.reactiveHref;
|
|
49
70
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
51
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuRouterLink, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i2.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
72
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: LuRouterLink, isStandalone: true, selector: "[luRouterLink]", usesInheritance: true, ngImport: i0 }); }
|
|
52
73
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LuRouterLink, decorators: [{
|
|
54
75
|
type: Directive,
|
|
55
76
|
args: [{
|
|
56
77
|
selector: '[luRouterLink]',
|
|
@@ -107,16 +128,17 @@ class LinkComponent {
|
|
|
107
128
|
effect(() => {
|
|
108
129
|
if (href()) {
|
|
109
130
|
this.hrefBackup = href();
|
|
110
|
-
this.routerLink.
|
|
131
|
+
this.routerLink.hrefOverride.set(this.hrefBackup);
|
|
111
132
|
}
|
|
112
133
|
if (this.disabled()) {
|
|
113
134
|
if (this.routerLinkCommands()) {
|
|
114
135
|
this.routerLink.routerLink = null;
|
|
115
136
|
}
|
|
116
|
-
this.routerLink.
|
|
137
|
+
this.routerLink.hrefOverride.set(null);
|
|
117
138
|
}
|
|
118
139
|
else if (this.routerLinkCommands() && !this.external()) {
|
|
119
140
|
this.routerLink.routerLink = this.routerLinkCommands();
|
|
141
|
+
this.routerLink.hrefOverride.set(undefined);
|
|
120
142
|
// We need to do this in order to have `routerLink` update the value for `href`:
|
|
121
143
|
// See https://github.com/angular/angular/blob/main/packages/router/src/directives/router_link.ts#L281
|
|
122
144
|
this.routerLink.ngOnChanges({});
|
|
@@ -125,10 +147,12 @@ class LinkComponent {
|
|
|
125
147
|
// External router links must not wire up the `RouterLink` directive (it would navigate in-place),
|
|
126
148
|
// but they still need an `href` so the anchor is keyboard-focusable and its destination is previewable.
|
|
127
149
|
// Actual navigation is handled natively by `target="_blank"` (anchors) or by `redirect()` (buttons).
|
|
128
|
-
|
|
150
|
+
// Commands set while the link was internal are cleared, otherwise `RouterLink` keeps intercepting the click.
|
|
151
|
+
this.routerLink.routerLink = null;
|
|
152
|
+
this.routerLink.hrefOverride.set(this.#serializeExternalUrl());
|
|
129
153
|
}
|
|
130
154
|
else if (!href() && this.hrefBackup) {
|
|
131
|
-
this.routerLink.
|
|
155
|
+
this.routerLink.hrefOverride.set(this.hrefBackup);
|
|
132
156
|
}
|
|
133
157
|
});
|
|
134
158
|
}
|
|
@@ -165,14 +189,14 @@ class LinkComponent {
|
|
|
165
189
|
// they all describe an internal route, so the serialized URL must carry the baseHref.
|
|
166
190
|
return this.location.prepareExternalUrl(serializedUrl);
|
|
167
191
|
}
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: LinkComponent, isStandalone: true, selector: "a[luLink], button[luLink]", inputs: { intl: { classPropertyName: "intl", publicName: "intl", isSignal: true, isRequired: false, transformFunction: null }, luHref: { classPropertyName: "luHref", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLinkCommands: { classPropertyName: "routerLinkCommands", publicName: "luLink", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, decorationHover: { classPropertyName: "decorationHover", publicName: "decorationHover", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, hiddenIcon: { classPropertyName: "hiddenIcon", publicName: "hiddenIcon", isSignal: true, isRequired: false, transformFunction: null }, neutral: { classPropertyName: "neutral", publicName: "neutral", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "redirect()" }, properties: { "attr.href": "routerLink.resolvedHref()", "class.mod-decorationHover": "decorationHover()", "class.mod-icon": "external()", "class.mod-neutral": "neutral()", "class.mod-hiddenIcon": "hiddenIcon() || (this.insideIndexTable && external()) || (this.insideDataTable && external())", "class.is-disabled": "this.disabled()", "attr.rel": "external() && !disabled() ? \"noopener noreferrer\" : null", "attr.target": "external() && !disabled() ? \"_blank\" : null", "attr.role": "disabled() ? \"presentation\" : null" }, classAttribute: "link" }, hostDirectives: [{ directive: LuRouterLink, inputs: ["preserveFragment", "preserveFragment", "skipLocationChange", "skipLocationChange", "replaceUrl", "replaceUrl", "queryParams", "queryParams", "fragment", "fragment", "queryParamsHandling", "queryParamsHandling", "state", "state", "info", "info", "relativeTo", "relativeTo"] }], ngImport: i0, template: "<span class=\"link-text\"><ng-content /></span>\n@if (external()) {\n\t<span class=\"link-icon\">\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-arrowExternal\"></span>\n\t</span>\n\t<span class=\"pr-u-mask\">{{ intl().external }}</span>\n}\n", styles: ["@charset \"UTF-8\";@layer components{.link{--components-link-textDecoration: underline;--components-link-text-textDecoration: underline;--components-link-color: var(--commons-text-link-color);--components-link-color-hover: var(--commons-text-link-hover);--components-link-cursor: pointer;--components-link-icon-marginInlineStart: 0;--components-link-icon-opacity: 1;background-color:transparent;color:var(--components-link-color);cursor:var(--components-link-cursor);font-family:inherit;border:0;margin:0;padding:0;text-decoration:var(--components-link-textDecoration)}.link:not(:disabled,.is-disabled):hover{color:var(--components-link-color-hover)}.link:not(:disabled,.is-disabled):focus-visible{outline:2px solid var(--palettes-700, var(--palettes-product-700));outline-offset:2px;border-radius:var(--pr-t-border-radius-small)}.link .lucca-icon{text-decoration:none;font-size:1em;vertical-align:baseline;position:relative;inset-block-start:.075rem;margin-inline-start:var(--components-link-icon-marginInlineStart)}.link .link-text{text-decoration:var(--components-link-text-textDecoration)}.link-icon{white-space:nowrap;opacity:var(--components-link-icon-opacity);transition-property:opacity;transition-duration:var(--commons-animations-durations-fast)}.link-icon:before{content:\"\\a0\"/\"\"}}@layer mods{.link.mod-decorationHover{--components-link-textDecoration: none;--components-link-text-textDecoration: none}.link.mod-decorationHover:hover{--components-link-text-textDecoration: underline}.link.mod-decorationHover:hover:not(:has(.link-text)){--components-link-textDecoration: underline}.link.mod-neutral{--components-link-color: var(--pr-t-color-text);--components-link-color-hover: var(--palettes-neutral-900)}@media not (any-pointer:coarse){.link.mod-hiddenIcon:not(:hover,:focus-visible){--components-link-icon-opacity: 0}}.link:is(:disabled,.is-disabled){--components-link-color: var(--pr-t-color-text-disabled);--components-link-cursor: not-allowed}.link:has(.link-text){--components-link-textDecoration: none}.link:not(:has(.link-icon)){--components-link-icon-marginInlineStart: .2em}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
170
194
|
}
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: LinkComponent, decorators: [{
|
|
172
196
|
type: Component,
|
|
173
197
|
args: [{ selector: 'a[luLink], button[luLink]', standalone: true, encapsulation: ViewEncapsulation.None, host: {
|
|
174
198
|
class: 'link',
|
|
175
|
-
'[attr.href]': 'routerLink.
|
|
199
|
+
'[attr.href]': 'routerLink.resolvedHref()',
|
|
176
200
|
'[class.mod-decorationHover]': 'decorationHover()',
|
|
177
201
|
'[class.mod-icon]': 'external()',
|
|
178
202
|
'[class.mod-neutral]': 'neutral()',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-link.mjs","sources":["../../../packages/ng/link/translations.ts","../../../packages/ng/link/link.translate.ts","../../../packages/ng/link/lu-router-link.ts","../../../packages/ng/link/link.component.ts","../../../packages/ng/link/link.component.html","../../../packages/ng/link/link.token.ts","../../../packages/ng/link/lucca-front-ng-link.ts"],"sourcesContent":["export const Translations = {\n\ten: {\n\t\texternal: '(Open in a new window.)',\n\t},\n\tde: {\n\t\texternal: '(In einem neuen Fenster öffnen.)',\n\t},\n\tfr: {\n\t\texternal: '(Ouvrir dans une nouvelle fenêtre.)',\n\t},\n\tit: {\n\t\texternal: '(Aprire in una nuova finestra.)',\n\t},\n\tnl: {\n\t\texternal: '(Open in een nieuw venster.)',\n\t},\n\tes: {\n\t\texternal: '(Abrir en una nueva ventana.)',\n\t},\n\tpt: {\n\t\texternal: '(Abrir numa nova janela.)',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_LINK_TRANSLATIONS = new InjectionToken('luLinkTranslations', {\n\tfactory: () => luLinkTranslations,\n});\n\nexport interface LinkTranslate {\n\texternal: string;\n}\n\nexport const luLinkTranslations: LuTranslation<LinkTranslate> = Translations;\n","import { LocationStrategy } from '@angular/common';\nimport { Attribute, Directive, ElementRef, Renderer2, WritableSignal } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\n\n@Directive({\n\tselector: '[luRouterLink]',\n})\nexport class LuRouterLink extends RouterLink {\n\t// Workaround for a storybook bug = implement the constructor https://github.com/storybookjs/storybook/issues/23534#issuecomment-2042888436\n\tconstructor(router: Router, route: ActivatedRoute, @Attribute('tabindex') tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy) {\n\t\tsuper(router, route, tabIndexAttribute, renderer, el, locationStrategy);\n\t}\n\n\t// With angular 20, RouterLink changed to use an internal, protected, readonly signal that is directly bound to `attr.href`, breaking any possibility to override it\n\t// So we had to do this to expose it to our `luLink` component.\n\tget publicReactiveHref(): WritableSignal<string | null> {\n\t\treturn this.reactiveHref;\n\t}\n}\n","import { Location } from '@angular/common';\nimport { afterNextRender, ChangeDetectionStrategy, Component, effect, ElementRef, inject, Injector, input, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, Router, UrlTree } from '@angular/router';\nimport { intlInputOptions, luBooleanAttribute } from '@lucca-front/ng/core';\nimport { LU_INDEX_TABLE_INSTANCE } from '@lucca-front/ng/index-table';\n\nimport { LU_DATA_TABLE_INSTANCE } from '@lucca-front/ng/data-table';\nimport { LU_LINK_TRANSLATIONS } from './link.translate';\nimport { LuRouterLink } from './lu-router-link';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'a[luLink], button[luLink]',\n\tstandalone: true,\n\ttemplateUrl: './link.component.html',\n\tstyleUrl: './link.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'link',\n\t\t'[attr.href]': 'routerLink.publicReactiveHref()',\n\t\t'[class.mod-decorationHover]': 'decorationHover()',\n\t\t'[class.mod-icon]': 'external()',\n\t\t'[class.mod-neutral]': 'neutral()',\n\t\t'[class.mod-hiddenIcon]': 'hiddenIcon() || (this.insideIndexTable && external()) || (this.insideDataTable && external())',\n\t\t'[class.is-disabled]': 'this.disabled()',\n\t\t'[attr.rel]': 'external() && !disabled() ? \"noopener noreferrer\" : null',\n\t\t'[attr.target]': 'external() && !disabled() ? \"_blank\" : null',\n\t\t'[attr.role]': 'disabled() ? \"presentation\" : null',\n\t\t'(click)': 'redirect()',\n\t},\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: LuRouterLink,\n\t\t\tinputs: ['preserveFragment', 'skipLocationChange', 'replaceUrl', 'queryParams', 'fragment', 'queryParamsHandling', 'state', 'info', 'relativeTo'],\n\t\t},\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent {\n\treadonly intl = input(...intlInputOptions(LU_LINK_TRANSLATIONS));\n\treadonly routerLink = inject(LuRouterLink);\n\t#injector = inject(Injector);\n\t#elementRef = inject(ElementRef);\n\treadonly router = inject(Router);\n\treadonly location = inject(Location);\n\treadonly #activatedRoute = inject(ActivatedRoute, { optional: true });\n\treadonly insideIndexTable = inject(LU_INDEX_TABLE_INSTANCE, { optional: true });\n\treadonly insideDataTable = inject(LU_DATA_TABLE_INSTANCE, { optional: true });\n\n\t/**\n\t * Target page address. Use only for external links or pages not recognized by the router.\n\t */\n\treadonly luHref = input('', { alias: 'href' });\n\n\t/**\n\t * Target page address\n\t */\n\treadonly routerLinkCommands = input<LuRouterLink['routerLink'] | null>(null, { alias: 'luLink' });\n\n\t/**\n\t * Disables the link\n\t */\n\treadonly disabled = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Underlines the link only on hover\n\t */\n\treadonly decorationHover = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Indicates that the link will open in a new tab\n\t */\n\treadonly external = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * External icon only visible on hover/focus\n\t */\n\treadonly hiddenIcon = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Renders the link with the default text color instead of the link color\n\t */\n\treadonly neutral = input(false, { transform: luBooleanAttribute });\n\n\threfBackup: string;\n\n\tconstructor() {\n\t\tconst href = this.luHref;\n\n\t\teffect(() => {\n\t\t\tif (href()) {\n\t\t\t\tthis.hrefBackup = href();\n\t\t\t\tthis.routerLink.publicReactiveHref.set(this.hrefBackup);\n\t\t\t}\n\t\t\tif (this.disabled()) {\n\t\t\t\tif (this.routerLinkCommands()) {\n\t\t\t\t\tthis.routerLink.routerLink = null;\n\t\t\t\t}\n\t\t\t\tthis.routerLink.publicReactiveHref.set(null);\n\t\t\t} else if (this.routerLinkCommands() && !this.external()) {\n\t\t\t\tthis.routerLink.routerLink = this.routerLinkCommands();\n\t\t\t\t// We need to do this in order to have `routerLink` update the value for `href`:\n\t\t\t\t// See https://github.com/angular/angular/blob/main/packages/router/src/directives/router_link.ts#L281\n\t\t\t\tthis.routerLink.ngOnChanges({});\n\t\t\t} else if (this.routerLinkCommands() && this.external()) {\n\t\t\t\t// External router links must not wire up the `RouterLink` directive (it would navigate in-place),\n\t\t\t\t// but they still need an `href` so the anchor is keyboard-focusable and its destination is previewable.\n\t\t\t\t// Actual navigation is handled natively by `target=\"_blank\"` (anchors) or by `redirect()` (buttons).\n\t\t\t\tthis.routerLink.publicReactiveHref.set(this.#serializeExternalUrl());\n\t\t\t} else if (!href() && this.hrefBackup) {\n\t\t\t\tthis.routerLink.publicReactiveHref.set(this.hrefBackup);\n\t\t\t}\n\t\t});\n\t}\n\n\tredirect(): void {\n\t\t// Anchors carry an `href` with `target=\"_blank\"`, so the browser opens the new tab natively.\n\t\t// Only non-anchor hosts (e.g. `button[luLink]`) need us to open the window programmatically.\n\t\tif (!this.disabled() && this.routerLinkCommands() && this.external() && !this.#isAnchor()) {\n\t\t\tconst externalUrl = this.#serializeExternalUrl();\n\t\t\tafterNextRender(() => window.open(externalUrl ?? undefined, '_blank'), { injector: this.#injector });\n\t\t}\n\t}\n\n\t#isAnchor(): boolean {\n\t\treturn (this.#elementRef.nativeElement as HTMLElement).tagName === 'A';\n\t}\n\n\t#serializeExternalUrl(): string | null {\n\t\tconst routerLinkCommands = this.routerLinkCommands();\n\t\tif (!routerLinkCommands) {\n\t\t\treturn null;\n\t\t}\n\t\tconst urlTree =\n\t\t\trouterLinkCommands instanceof UrlTree\n\t\t\t\t? routerLinkCommands\n\t\t\t\t: this.router.createUrlTree(Array.isArray(routerLinkCommands) ? routerLinkCommands : [routerLinkCommands], {\n\t\t\t\t\t\t// Resolve relative commands against the current route, like Angular's `RouterLink` does.\n\t\t\t\t\t\t// An explicit `relativeTo` wins, including `null` which means \"resolve from the root\";\n\t\t\t\t\t\t// only `undefined` falls back to the injected `ActivatedRoute`.\n\t\t\t\t\t\trelativeTo: this.routerLink.relativeTo === undefined ? this.#activatedRoute : this.routerLink.relativeTo,\n\t\t\t\t\t\tqueryParams: this.routerLink.queryParams,\n\t\t\t\t\t\tfragment: this.routerLink.fragment,\n\t\t\t\t\t\tqueryParamsHandling: this.routerLink.queryParamsHandling,\n\t\t\t\t\t\tpreserveFragment: this.routerLink.preserveFragment,\n\t\t\t\t\t});\n\t\tconst serializedUrl = this.router.serializeUrl(urlTree);\n\t\t// Apply the app's baseHref regardless of the commands' shape (string, array or `UrlTree`):\n\t\t// they all describe an internal route, so the serialized URL must carry the baseHref.\n\t\treturn this.location.prepareExternalUrl(serializedUrl);\n\t}\n}\n","<span class=\"link-text\"><ng-content /></span>\n@if (external()) {\n\t<span class=\"link-icon\">\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-arrowExternal\"></span>\n\t</span>\n\t<span class=\"pr-u-mask\">{{ intl().external }}</span>\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const LU_LINK_INSTANCE = new InjectionToken<boolean>('LU_LINK_INSTANCE');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC3B,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,yBAAyB;AACnC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,kCAAkC;AAC5C,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,qCAAqC;AAC/C,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,iCAAiC;AAC3C,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,8BAA8B;AACxC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,+BAA+B;AACzC,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,QAAQ,EAAE,2BAA2B;AACrC,KAAA;CACD;;MClBY,oBAAoB,GAAG,IAAI,cAAc,CAAC,oBAAoB,EAAE;AAC5E,IAAA,OAAO,EAAE,MAAM,kBAAkB;AACjC,CAAA;AAMM,MAAM,kBAAkB,GAAiC;;ACL1D,MAAO,YAAa,SAAQ,UAAU,CAAA;;IAE3C,WAAA,CAAY,MAAc,EAAE,KAAqB,EAAyB,iBAA4C,E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AAc,CAAU,kBAAkB;;ACF9E;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-link.mjs","sources":["../../../packages/ng/link/translations.ts","../../../packages/ng/link/link.translate.ts","../../../packages/ng/link/lu-router-link.ts","../../../packages/ng/link/link.component.ts","../../../packages/ng/link/link.component.html","../../../packages/ng/link/link.token.ts","../../../packages/ng/link/lucca-front-ng-link.ts"],"sourcesContent":["export const Translations = {\n\ten: {\n\t\texternal: '(Open in a new window.)',\n\t},\n\tde: {\n\t\texternal: '(In einem neuen Fenster öffnen.)',\n\t},\n\tfr: {\n\t\texternal: '(Ouvrir dans une nouvelle fenêtre.)',\n\t},\n\tit: {\n\t\texternal: '(Aprire in una nuova finestra.)',\n\t},\n\tnl: {\n\t\texternal: '(Open in een nieuw venster.)',\n\t},\n\tes: {\n\t\texternal: '(Abrir en una nueva ventana.)',\n\t},\n\tpt: {\n\t\texternal: '(Abrir numa nova janela.)',\n\t},\n};\n","import { InjectionToken } from '@angular/core';\nimport { LuTranslation } from '@lucca-front/ng/core';\nimport { Translations } from './translations';\n\nexport const LU_LINK_TRANSLATIONS = new InjectionToken('luLinkTranslations', {\n\tfactory: () => luLinkTranslations,\n});\n\nexport interface LinkTranslate {\n\texternal: string;\n}\n\nexport const luLinkTranslations: LuTranslation<LinkTranslate> = Translations;\n","import { LocationStrategy } from '@angular/common';\nimport { Attribute, Directive, ElementRef, linkedSignal, Renderer2, signal, WritableSignal } from '@angular/core';\nimport { ActivatedRoute, Router, RouterLink } from '@angular/router';\n\n@Directive({\n\tselector: '[luRouterLink]',\n})\nexport class LuRouterLink extends RouterLink {\n\t/**\n\t * Href forced by `luLink` (raw `href`, external or disabled link). `undefined` lets the router compute it.\n\t */\n\treadonly hrefOverride = signal<string | null | undefined>(undefined);\n\n\t// Field initializers run after `super()`, so this still references the router-computed `linkedSignal` of `RouterLink`.\n\treadonly #routerHref: WritableSignal<string | null> = this.reactiveHref;\n\n\t// Since Angular 22, `reactiveHref` is a `linkedSignal` recomputed on every navigation, which wipes any value written with `set()`.\n\t// Deriving it from `hrefOverride` keeps the forced href across navigations.\n\tprotected override readonly reactiveHref = linkedSignal<string | null>(() => {\n\t\tconst hrefOverride = this.hrefOverride();\n\t\treturn hrefOverride === undefined ? this.#routerHref() : hrefOverride;\n\t});\n\n\t/**\n\t * Href bound to the host element: `hrefOverride` when set, the router-computed href otherwise.\n\t */\n\treadonly resolvedHref = this.reactiveHref.asReadonly();\n\n\t// Workaround for a storybook bug = implement the constructor https://github.com/storybookjs/storybook/issues/23534#issuecomment-2042888436\n\tconstructor(router: Router, route: ActivatedRoute, @Attribute('tabindex') tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy) {\n\t\tsuper(router, route, tabIndexAttribute, renderer, el, locationStrategy);\n\t}\n\n\t/**\n\t * @deprecated a value written with `set()` is wiped on every navigation, use `hrefOverride` to force the href and `resolvedHref` to read it instead\n\t */\n\tget publicReactiveHref(): WritableSignal<string | null> {\n\t\treturn this.reactiveHref;\n\t}\n}\n","import { Location } from '@angular/common';\nimport { afterNextRender, ChangeDetectionStrategy, Component, effect, ElementRef, inject, Injector, input, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, Router, UrlTree } from '@angular/router';\nimport { intlInputOptions, luBooleanAttribute } from '@lucca-front/ng/core';\nimport { LU_INDEX_TABLE_INSTANCE } from '@lucca-front/ng/index-table';\n\nimport { LU_DATA_TABLE_INSTANCE } from '@lucca-front/ng/data-table';\nimport { LU_LINK_TRANSLATIONS } from './link.translate';\nimport { LuRouterLink } from './lu-router-link';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'a[luLink], button[luLink]',\n\tstandalone: true,\n\ttemplateUrl: './link.component.html',\n\tstyleUrl: './link.component.scss',\n\tencapsulation: ViewEncapsulation.None,\n\thost: {\n\t\tclass: 'link',\n\t\t'[attr.href]': 'routerLink.resolvedHref()',\n\t\t'[class.mod-decorationHover]': 'decorationHover()',\n\t\t'[class.mod-icon]': 'external()',\n\t\t'[class.mod-neutral]': 'neutral()',\n\t\t'[class.mod-hiddenIcon]': 'hiddenIcon() || (this.insideIndexTable && external()) || (this.insideDataTable && external())',\n\t\t'[class.is-disabled]': 'this.disabled()',\n\t\t'[attr.rel]': 'external() && !disabled() ? \"noopener noreferrer\" : null',\n\t\t'[attr.target]': 'external() && !disabled() ? \"_blank\" : null',\n\t\t'[attr.role]': 'disabled() ? \"presentation\" : null',\n\t\t'(click)': 'redirect()',\n\t},\n\thostDirectives: [\n\t\t{\n\t\t\tdirective: LuRouterLink,\n\t\t\tinputs: ['preserveFragment', 'skipLocationChange', 'replaceUrl', 'queryParams', 'fragment', 'queryParamsHandling', 'state', 'info', 'relativeTo'],\n\t\t},\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LinkComponent {\n\treadonly intl = input(...intlInputOptions(LU_LINK_TRANSLATIONS));\n\treadonly routerLink = inject(LuRouterLink);\n\t#injector = inject(Injector);\n\t#elementRef = inject(ElementRef);\n\treadonly router = inject(Router);\n\treadonly location = inject(Location);\n\treadonly #activatedRoute = inject(ActivatedRoute, { optional: true });\n\treadonly insideIndexTable = inject(LU_INDEX_TABLE_INSTANCE, { optional: true });\n\treadonly insideDataTable = inject(LU_DATA_TABLE_INSTANCE, { optional: true });\n\n\t/**\n\t * Target page address. Use only for external links or pages not recognized by the router.\n\t */\n\treadonly luHref = input('', { alias: 'href' });\n\n\t/**\n\t * Target page address\n\t */\n\treadonly routerLinkCommands = input<LuRouterLink['routerLink'] | null>(null, { alias: 'luLink' });\n\n\t/**\n\t * Disables the link\n\t */\n\treadonly disabled = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Underlines the link only on hover\n\t */\n\treadonly decorationHover = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Indicates that the link will open in a new tab\n\t */\n\treadonly external = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * External icon only visible on hover/focus\n\t */\n\treadonly hiddenIcon = input(false, { transform: luBooleanAttribute });\n\n\t/**\n\t * Renders the link with the default text color instead of the link color\n\t */\n\treadonly neutral = input(false, { transform: luBooleanAttribute });\n\n\threfBackup: string;\n\n\tconstructor() {\n\t\tconst href = this.luHref;\n\n\t\teffect(() => {\n\t\t\tif (href()) {\n\t\t\t\tthis.hrefBackup = href();\n\t\t\t\tthis.routerLink.hrefOverride.set(this.hrefBackup);\n\t\t\t}\n\t\t\tif (this.disabled()) {\n\t\t\t\tif (this.routerLinkCommands()) {\n\t\t\t\t\tthis.routerLink.routerLink = null;\n\t\t\t\t}\n\t\t\t\tthis.routerLink.hrefOverride.set(null);\n\t\t\t} else if (this.routerLinkCommands() && !this.external()) {\n\t\t\t\tthis.routerLink.routerLink = this.routerLinkCommands();\n\t\t\t\tthis.routerLink.hrefOverride.set(undefined);\n\t\t\t\t// We need to do this in order to have `routerLink` update the value for `href`:\n\t\t\t\t// See https://github.com/angular/angular/blob/main/packages/router/src/directives/router_link.ts#L281\n\t\t\t\tthis.routerLink.ngOnChanges({});\n\t\t\t} else if (this.routerLinkCommands() && this.external()) {\n\t\t\t\t// External router links must not wire up the `RouterLink` directive (it would navigate in-place),\n\t\t\t\t// but they still need an `href` so the anchor is keyboard-focusable and its destination is previewable.\n\t\t\t\t// Actual navigation is handled natively by `target=\"_blank\"` (anchors) or by `redirect()` (buttons).\n\t\t\t\t// Commands set while the link was internal are cleared, otherwise `RouterLink` keeps intercepting the click.\n\t\t\t\tthis.routerLink.routerLink = null;\n\t\t\t\tthis.routerLink.hrefOverride.set(this.#serializeExternalUrl());\n\t\t\t} else if (!href() && this.hrefBackup) {\n\t\t\t\tthis.routerLink.hrefOverride.set(this.hrefBackup);\n\t\t\t}\n\t\t});\n\t}\n\n\tredirect(): void {\n\t\t// Anchors carry an `href` with `target=\"_blank\"`, so the browser opens the new tab natively.\n\t\t// Only non-anchor hosts (e.g. `button[luLink]`) need us to open the window programmatically.\n\t\tif (!this.disabled() && this.routerLinkCommands() && this.external() && !this.#isAnchor()) {\n\t\t\tconst externalUrl = this.#serializeExternalUrl();\n\t\t\tafterNextRender(() => window.open(externalUrl ?? undefined, '_blank'), { injector: this.#injector });\n\t\t}\n\t}\n\n\t#isAnchor(): boolean {\n\t\treturn (this.#elementRef.nativeElement as HTMLElement).tagName === 'A';\n\t}\n\n\t#serializeExternalUrl(): string | null {\n\t\tconst routerLinkCommands = this.routerLinkCommands();\n\t\tif (!routerLinkCommands) {\n\t\t\treturn null;\n\t\t}\n\t\tconst urlTree =\n\t\t\trouterLinkCommands instanceof UrlTree\n\t\t\t\t? routerLinkCommands\n\t\t\t\t: this.router.createUrlTree(Array.isArray(routerLinkCommands) ? routerLinkCommands : [routerLinkCommands], {\n\t\t\t\t\t\t// Resolve relative commands against the current route, like Angular's `RouterLink` does.\n\t\t\t\t\t\t// An explicit `relativeTo` wins, including `null` which means \"resolve from the root\";\n\t\t\t\t\t\t// only `undefined` falls back to the injected `ActivatedRoute`.\n\t\t\t\t\t\trelativeTo: this.routerLink.relativeTo === undefined ? this.#activatedRoute : this.routerLink.relativeTo,\n\t\t\t\t\t\tqueryParams: this.routerLink.queryParams,\n\t\t\t\t\t\tfragment: this.routerLink.fragment,\n\t\t\t\t\t\tqueryParamsHandling: this.routerLink.queryParamsHandling,\n\t\t\t\t\t\tpreserveFragment: this.routerLink.preserveFragment,\n\t\t\t\t\t});\n\t\tconst serializedUrl = this.router.serializeUrl(urlTree);\n\t\t// Apply the app's baseHref regardless of the commands' shape (string, array or `UrlTree`):\n\t\t// they all describe an internal route, so the serialized URL must carry the baseHref.\n\t\treturn this.location.prepareExternalUrl(serializedUrl);\n\t}\n}\n","<span class=\"link-text\"><ng-content /></span>\n@if (external()) {\n\t<span class=\"link-icon\">\n\t\t<span aria-hidden=\"true\" class=\"lucca-icon icon-arrowExternal\"></span>\n\t</span>\n\t<span class=\"pr-u-mask\">{{ intl().external }}</span>\n}\n","import { InjectionToken } from '@angular/core';\n\nexport const LU_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E,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC;AACjJ,yBAAA;qBACD,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6PAAA,EAAA,MAAA,EAAA,CAAA,0jEAAA,CAAA,EAAA;;;MElCnC,gBAAgB,GAAG,IAAI,cAAc,CAAU,kBAAkB;;ACF9E;;AAEG;;"}
|
|
@@ -14,10 +14,10 @@ const OPTION_INSTANCE = new InjectionToken('LuOptionInstance');
|
|
|
14
14
|
|
|
15
15
|
let nextId$1 = 0;
|
|
16
16
|
class Treeitem {
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
18
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: Treeitem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: Treeitem, isStandalone: true, selector: "[treeitem]", ngImport: i0 }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: Treeitem, decorators: [{
|
|
21
21
|
type: Directive,
|
|
22
22
|
args: [{
|
|
23
23
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -79,10 +79,10 @@ class OptionComponent {
|
|
|
79
79
|
#listboxRef;
|
|
80
80
|
#parentOptionRef;
|
|
81
81
|
#defaultGroupId;
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
83
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
83
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: OptionComponent, isStandalone: true, selector: "lu-listbox-option", inputs: { elementId: { classPropertyName: "elementId", publicName: "elementId", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, mixed: { classPropertyName: "mixed", publicName: "mixed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hovered: { classPropertyName: "hovered", publicName: "hovered", isSignal: true, isRequired: false, transformFunction: null }, add: { classPropertyName: "add", publicName: "add", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, groupId: { classPropertyName: "groupId", publicName: "groupId", isSignal: true, isRequired: false, transformFunction: null }, select: { classPropertyName: "select", publicName: "select", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, treeitemLevel: { classPropertyName: "treeitemLevel", publicName: "treeitemLevel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "group() ? \"group\" : tree() ? \"treeitem\" : \"option\"", "attr.aria-labelledby": "group() ? groupLabelId() : null", "attr.aria-selected": "add() || group() || mixed() ? null : checked()", "attr.aria-checked": "!group() && mixed() ? \"mixed\" : null", "attr.aria-disabled": "disabled()", "attr.aria-hidden": "empty()", "attr.id": "empty() ? id() : elementId()", "class.is-selected": "checked()", "class.is-disabled": "disabled()", "class.mod-add": "add()", "class.mod-select": "select()" }, classAttribute: "listboxOption" }, providers: [{ provide: OPTION_INSTANCE, useExisting: forwardRef(() => OptionComponent) }], queries: [{ propertyName: "treeitemContent", first: true, predicate: Treeitem, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"listboxOption-content\" [class.is-hovered]=\"hovered()\" [attr.id]=\"group() ? groupLabelId() : null\">\n\t@if (multiple() && !add() && !selectAll() && !select()) {\n\t\t<span class=\"listboxOption-content-checkboxField checkboxField\" aria-hidden=\"true\">\n\t\t\t<span class=\"listboxOption-content-checkboxField-input checkboxField-input\"></span>\n\t\t\t<span class=\"checkboxField-icon\"><span class=\"checkboxField-icon-check\"></span></span>\n\t\t</span>\n\t}\n\t@if (add()) {\n\t\t<lu-icon icon=\"mathsPlus\" />\n\t}\n\t<ng-content />\n\t<ng-content select=\"[group-action]\" />\n\t@if (selectAll()) {\n\t\t<lu-listbox-option [elementId]=\"elementId() + '-selectAll'\" select>{{ selectAll() }}</lu-listbox-option>\n\t}\n</div>\n<ng-content select=\"[optgroup]\" />\n\n@if (hasTreeitems()) {\n\t<div class=\"listboxOptionWrapper\" role=\"group\" [attr.style]=\"'--components-listboxOptionWrapper-level: ' + wrapperLevel()\">\n\t\t<ng-content select=\"[treeitem]\" />\n\t</div>\n}\n", dependencies: [{ kind: "component", type: OptionComponent, selector: "lu-listbox-option", inputs: ["elementId", "checked", "mixed", "disabled", "hovered", "add", "group", "groupId", "select", "selectAll", "treeitemLevel"] }, { kind: "component", type: IconComponent, selector: "lu-icon, pr-icon", inputs: ["icon", "alt", "size", "color", "AI"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
84
84
|
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: OptionComponent, decorators: [{
|
|
86
86
|
type: Component,
|
|
87
87
|
args: [{ selector: 'lu-listbox-option', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
88
88
|
class: 'listboxOption',
|
|
@@ -129,10 +129,10 @@ class ListboxComponent {
|
|
|
129
129
|
...(ngDevMode ? [{ debugName: "skeletonWidth" }] : /* istanbul ignore next */ []));
|
|
130
130
|
}
|
|
131
131
|
#randomPercent;
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: ListboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: ListboxComponent, isStandalone: true, selector: "lu-listbox", inputs: { multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, statusMsg: { classPropertyName: "statusMsg", publicName: "statusMsg", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "tree() ? \"tree\" : \"listbox\"", "attr.aria-multiselectable": "multiple() ? true : null", "class.mod-multiple": "multiple()", "attr.aria-busy": "state() === \"loading\"", "attr.aria-describedby": "state() === \"empty\" ? listboxId : null" }, classAttribute: "listboxOptionWrapper" }, providers: [{ provide: LISTBOX_INSTANCE, useExisting: forwardRef(() => ListboxComponent) }], ngImport: i0, template: "<ng-content select=\"[listbox-header]\" />\n@if (state() !== \"empty\") {\n\t<ng-content />\n}\n@if (state() === \"empty\") {\n\t<lu-listbox-option empty>{{ statusMsg() }}</lu-listbox-option>\n} @else if (state() === \"loading\") {\n\t<lu-listbox-option class=\"skeleton is-loading\" inert=\"inert\">\n\t\t<span class=\"skeleton-item\" [style.--components-skeleton-text-width]=\"skeletonWidth()\"></span>\n\t</lu-listbox-option>\n\t<span class=\"pr-u-mask\">{{ statusMsg() }}</span>\n}\n", dependencies: [{ kind: "component", type: OptionComponent, selector: "lu-listbox-option", inputs: ["elementId", "checked", "mixed", "disabled", "hovered", "add", "group", "groupId", "select", "selectAll", "treeitemLevel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: ListboxComponent, decorators: [{
|
|
136
136
|
type: Component,
|
|
137
137
|
args: [{ selector: 'lu-listbox', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
138
138
|
class: 'listboxOptionWrapper',
|