dap-design-system 0.62.4 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/common/utils.js +46 -46
- package/dist/common/utils.js.map +1 -1
- package/dist/components/accordion/accordion-base-element.js +15 -19
- package/dist/components/accordion/accordion-base-element.js.map +1 -1
- package/dist/components/accordion/accordion.component.d.ts +1 -0
- package/dist/components/accordion/accordion.component.js.map +1 -1
- package/dist/components/accordion-group/accordion-group.component.js +20 -24
- package/dist/components/accordion-group/accordion-group.component.js.map +1 -1
- package/dist/components/anchor-heading/anchor-heading.component.d.ts +1 -0
- package/dist/components/anchor-heading/anchor-heading.component.js +20 -23
- package/dist/components/anchor-heading/anchor-heading.component.js.map +1 -1
- package/dist/components/avatar/avatar.component.js +51 -55
- package/dist/components/avatar/avatar.component.js.map +1 -1
- package/dist/components/avatar-group/avatar-group.component.js +18 -22
- package/dist/components/avatar-group/avatar-group.component.js.map +1 -1
- package/dist/components/badge/badge.component.js +17 -20
- package/dist/components/badge/badge.component.js.map +1 -1
- package/dist/components/banner/banner.component.d.ts +1 -1
- package/dist/components/banner/banner.component.js +18 -24
- package/dist/components/banner/banner.component.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +32 -32
- package/dist/components/breadcrumb/breadcrumb.component.js.map +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +33 -28
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js.map +1 -1
- package/dist/components/button/_styles/button.scss.js +1 -1
- package/dist/components/button/button.component.js +18 -22
- package/dist/components/button/button.component.js.map +1 -1
- package/dist/components/button-group/_styles/button-group-separator.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group-separator.scss.js.map +1 -0
- package/dist/components/button-group/_styles/button-group-text.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group-text.scss.js.map +1 -0
- package/dist/components/button-group/_styles/button-group.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group.scss.js.map +1 -0
- package/dist/components/button-group/button-group-separator.component.d.ts +28 -0
- package/dist/components/button-group/button-group-separator.component.js +18 -0
- package/dist/components/button-group/button-group-separator.component.js.map +1 -0
- package/dist/components/button-group/button-group-separator.d.ts +8 -0
- package/dist/components/button-group/button-group-separator.js +6 -0
- package/dist/components/button-group/button-group-separator.js.map +1 -0
- package/dist/components/button-group/button-group-text.component.d.ts +33 -0
- package/dist/components/button-group/button-group-text.component.js +17 -0
- package/dist/components/button-group/button-group-text.component.js.map +1 -0
- package/dist/components/button-group/button-group-text.d.ts +8 -0
- package/dist/components/button-group/button-group-text.js +6 -0
- package/dist/components/button-group/button-group-text.js.map +1 -0
- package/dist/components/button-group/button-group.component.d.ts +52 -0
- package/dist/components/button-group/button-group.component.js +30 -0
- package/dist/components/button-group/button-group.component.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +6 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/calendar/calendar-cell.component.js +26 -29
- package/dist/components/calendar/calendar-cell.component.js.map +1 -1
- package/dist/components/calendar/calendar.component.d.ts +10 -1
- package/dist/components/calendar/calendar.component.js +37 -46
- package/dist/components/calendar/calendar.component.js.map +1 -1
- package/dist/components/callout/callout.component.d.ts +4 -0
- package/dist/components/callout/callout.component.js +71 -69
- package/dist/components/callout/callout.component.js.map +1 -1
- package/dist/components/card/card-actions.component.js +8 -11
- package/dist/components/card/card-actions.component.js.map +1 -1
- package/dist/components/card/card-content.component.js +20 -23
- package/dist/components/card/card-content.component.js.map +1 -1
- package/dist/components/card/card-image.component.js +18 -21
- package/dist/components/card/card-image.component.js.map +1 -1
- package/dist/components/card/card-subtitle.component.js +18 -21
- package/dist/components/card/card-subtitle.component.js.map +1 -1
- package/dist/components/card/card-title.component.js +18 -21
- package/dist/components/card/card-title.component.js.map +1 -1
- package/dist/components/card/card.component.d.ts +1 -0
- package/dist/components/card/card.component.js +25 -28
- package/dist/components/card/card.component.js.map +1 -1
- package/dist/components/checkbox/_styles/checkbox.scss.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +7 -1
- package/dist/components/checkbox/checkbox.component.js +71 -74
- package/dist/components/checkbox/checkbox.component.js.map +1 -1
- package/dist/components/chip/chip.component.d.ts +1 -0
- package/dist/components/chip/chip.component.js +21 -26
- package/dist/components/chip/chip.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher-slot.component.js +34 -38
- package/dist/components/code-puncher/code-puncher-slot.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.component.d.ts +4 -0
- package/dist/components/code-puncher/code-puncher.component.js +97 -102
- package/dist/components/code-puncher/code-puncher.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.context.js +1 -1
- package/dist/components/code-puncher/code-puncher.context.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.scss.js +1 -1
- package/dist/components/combobox/combobox.component.d.ts +9 -1
- package/dist/components/combobox/combobox.component.js.map +1 -1
- package/dist/components/combobox/combobox.scss.js +1 -1
- package/dist/components/combobox/comboboxBase.d.ts +21 -0
- package/dist/components/combobox/comboboxBase.js +176 -139
- package/dist/components/combobox/comboboxBase.js.map +1 -1
- package/dist/components/command/command-group.component.js +19 -23
- package/dist/components/command/command-group.component.js.map +1 -1
- package/dist/components/command/command-item.component.js +17 -22
- package/dist/components/command/command-item.component.js.map +1 -1
- package/dist/components/command/command.component.d.ts +3 -0
- package/dist/components/command/command.component.js +28 -33
- package/dist/components/command/command.component.js.map +1 -1
- package/dist/components/content-switcher/content-switcher-item.component.js +16 -19
- package/dist/components/content-switcher/content-switcher-item.component.js.map +1 -1
- package/dist/components/content-switcher/content-switcher.component.js +19 -22
- package/dist/components/content-switcher/content-switcher.component.js.map +1 -1
- package/dist/components/copybox-input/copybox-input.component.d.ts +11 -0
- package/dist/components/copybox-input/copybox-input.component.js +12 -16
- package/dist/components/copybox-input/copybox-input.component.js.map +1 -1
- package/dist/components/dap-badge/dap-badge.component.js +13 -18
- package/dist/components/dap-badge/dap-badge.component.js.map +1 -1
- package/dist/components/datatable/datatable.component.d.ts +17 -0
- package/dist/components/datatable/datatable.component.js +38 -42
- package/dist/components/datatable/datatable.component.js.map +1 -1
- package/dist/components/datatable/utils/cell-renderer.js +6 -8
- package/dist/components/datatable/utils/cell-renderer.js.map +1 -1
- package/dist/components/datepicker/datepicker.component.d.ts +8 -0
- package/dist/components/datepicker/datepicker.component.js +76 -81
- package/dist/components/datepicker/datepicker.component.js.map +1 -1
- package/dist/components/datepicker/datepicker.scss.js +1 -1
- package/dist/components/divider/divider.component.js +18 -21
- package/dist/components/divider/divider.component.js.map +1 -1
- package/dist/components/feedback/feedback.component.js +8 -11
- package/dist/components/feedback/feedback.component.js.map +1 -1
- package/dist/components/file-input/file-input-list-item.component.d.ts +1 -0
- package/dist/components/file-input/file-input-list-item.component.js +36 -40
- package/dist/components/file-input/file-input-list-item.component.js.map +1 -1
- package/dist/components/file-input/file-input-list.component.js +15 -20
- package/dist/components/file-input/file-input-list.component.js.map +1 -1
- package/dist/components/file-input/file-input-list.scss.js +1 -1
- package/dist/components/file-input/file-input.component.d.ts +3 -0
- package/dist/components/file-input/file-input.component.js +135 -142
- package/dist/components/file-input/file-input.component.js.map +1 -1
- package/dist/components/file-input/file-input.scss.js +1 -1
- package/dist/components/form/form-label/form-label.component.d.ts +1 -1
- package/dist/components/form/form-label/form-label.component.js +20 -23
- package/dist/components/form/form-label/form-label.component.js.map +1 -1
- package/dist/components/form/input-group/input-group.component.d.ts +4 -0
- package/dist/components/form/input-group/input-group.component.js +42 -42
- package/dist/components/form/input-group/input-group.component.js.map +1 -1
- package/dist/components/form/input-group/input-group.scss.js +2 -2
- package/dist/components/form/radio-group/radio-group.component.d.ts +5 -0
- package/dist/components/form/radio-group/radio-group.component.js +54 -55
- package/dist/components/form/radio-group/radio-group.component.js.map +1 -1
- package/dist/components/icon/icon.component.js +25 -28
- package/dist/components/icon/icon.component.js.map +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +1 -0
- package/dist/components/icon-button/icon-button.component.js +11 -14
- package/dist/components/icon-button/icon-button.component.js.map +1 -1
- package/dist/components/icon-button/icon-button.scss.js +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js +12 -15
- package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js +8 -11
- package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js +15 -18
- package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js +10 -13
- package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js +6 -9
- package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js +18 -21
- package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js +15 -18
- package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js +18 -21
- package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js +8 -11
- package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js +11 -14
- package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js.map +1 -1
- package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js +10 -13
- package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js.map +1 -1
- package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js +11 -14
- package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js.map +1 -1
- package/dist/components/icons/design/design-edit-line/design-edit-line.component.js +6 -9
- package/dist/components/icons/design/design-edit-line/design-edit-line.component.js.map +1 -1
- package/dist/components/icons/design/design-tools-line/design-tools-line.component.js +12 -15
- package/dist/components/icons/design/design-tools-line/design-tools-line.component.js.map +1 -1
- package/dist/components/icons/device/device-computer-line/device-computer-line.component.js +16 -19
- package/dist/components/icons/device/device-computer-line/device-computer-line.component.js.map +1 -1
- package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js +11 -14
- package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js +10 -13
- package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js +11 -14
- package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js +11 -14
- package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js +10 -13
- package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js +11 -14
- package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js.map +1 -1
- package/dist/components/icons/document/document-folder-line/document-folder-line.component.js +11 -14
- package/dist/components/icons/document/document-folder-line/document-folder-line.component.js.map +1 -1
- package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js +10 -13
- package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js.map +1 -1
- package/dist/components/icons/editor/editor-separator/editor-separator.component.js +10 -13
- package/dist/components/icons/editor/editor-separator/editor-separator.component.js.map +1 -1
- package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js +8 -11
- package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js.map +1 -1
- package/dist/components/icons/health/health-heart-line/health-heart-line.component.js +10 -13
- package/dist/components/icons/health/health-heart-line/health-heart-line.component.js.map +1 -1
- package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js +6 -9
- package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js.map +1 -1
- package/dist/components/icons/system/system-add-line/system-add-line.component.js +11 -14
- package/dist/components/icons/system/system-add-line/system-add-line.component.js.map +1 -1
- package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js +9 -12
- package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-alert-line/system-alert-line.component.js +11 -14
- package/dist/components/icons/system/system-alert-line/system-alert-line.component.js.map +1 -1
- package/dist/components/icons/system/system-check-line/system-check-line.component.js +9 -12
- package/dist/components/icons/system/system-check-line/system-check-line.component.js.map +1 -1
- package/dist/components/icons/system/system-check-line2/system-check-line2.component.js +11 -14
- package/dist/components/icons/system/system-check-line2/system-check-line2.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js +9 -12
- package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js +12 -15
- package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js +13 -16
- package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js +11 -14
- package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js +11 -14
- package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js +11 -14
- package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js +7 -10
- package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-close-fill/system-close-fill.component.js +11 -14
- package/dist/components/icons/system/system-close-fill/system-close-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-close-line/system-close-line.component.js +11 -14
- package/dist/components/icons/system/system-close-line/system-close-line.component.js.map +1 -1
- package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js +7 -10
- package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js +9 -12
- package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js.map +1 -1
- package/dist/components/icons/system/system-download-line/system-download-line.component.js +9 -12
- package/dist/components/icons/system/system-download-line/system-download-line.component.js.map +1 -1
- package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js +7 -10
- package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js +11 -14
- package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js.map +1 -1
- package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js +9 -12
- package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js.map +1 -1
- package/dist/components/icons/system/system-eye-line/system-eye-line.component.js +11 -14
- package/dist/components/icons/system/system-eye-line/system-eye-line.component.js.map +1 -1
- package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js +6 -9
- package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js.map +1 -1
- package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js +9 -12
- package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js +9 -12
- package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-fill/system-information-fill.component.js +9 -12
- package/dist/components/icons/system/system-information-fill/system-information-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-line/system-information-line.component.js +9 -12
- package/dist/components/icons/system/system-information-line/system-information-line.component.js.map +1 -1
- package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js +9 -12
- package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js +9 -12
- package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js.map +1 -1
- package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js +13 -16
- package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-lock-line/system-lock-line.component.js +10 -13
- package/dist/components/icons/system/system-lock-line/system-lock-line.component.js.map +1 -1
- package/dist/components/icons/system/system-menu-line/system-menu-line.component.js +9 -12
- package/dist/components/icons/system/system-menu-line/system-menu-line.component.js.map +1 -1
- package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js +9 -12
- package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js.map +1 -1
- package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js +10 -13
- package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js.map +1 -1
- package/dist/components/icons/system/system-more-line/system-more-line.component.js +16 -19
- package/dist/components/icons/system/system-more-line/system-more-line.component.js.map +1 -1
- package/dist/components/icons/system/system-search-line/system-search-line.component.js +11 -14
- package/dist/components/icons/system/system-search-line/system-search-line.component.js.map +1 -1
- package/dist/components/icons/system/system-share-line/system-share-line.component.js +9 -12
- package/dist/components/icons/system/system-share-line/system-share-line.component.js.map +1 -1
- package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js +8 -11
- package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js +6 -9
- package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js.map +1 -1
- package/dist/components/icons/system/system-star-fill/system-star-fill.component.js +13 -16
- package/dist/components/icons/system/system-star-fill/system-star-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js +11 -14
- package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js.map +1 -1
- package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js +7 -10
- package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js.map +1 -1
- package/dist/components/icons/system/system-time-fill/system-time-fill.component.js +11 -14
- package/dist/components/icons/system/system-time-fill/system-time-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-time-line/system-time-line.component.js +11 -14
- package/dist/components/icons/system/system-time-line/system-time-line.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js +5 -8
- package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js +7 -10
- package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-line/system-upload-line.component.js +9 -12
- package/dist/components/icons/system/system-upload-line/system-upload-line.component.js.map +1 -1
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js +9 -12
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js.map +1 -1
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js +11 -14
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js.map +1 -1
- package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js +16 -19
- package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js.map +1 -1
- package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js +13 -16
- package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js.map +1 -1
- package/dist/components/icons/user/user-user-fill/user-user-fill.component.js +8 -11
- package/dist/components/icons/user/user-user-fill/user-user-fill.component.js.map +1 -1
- package/dist/components/icons/user/user-user-line/user-user-line.component.js +11 -14
- package/dist/components/icons/user/user-user-line/user-user-line.component.js.map +1 -1
- package/dist/components/image-zoom/image-zoom.component.js +12 -17
- package/dist/components/image-zoom/image-zoom.component.js.map +1 -1
- package/dist/components/input/_styles/input.scss.js +1 -1
- package/dist/components/input/input-base-element.js +41 -47
- package/dist/components/input/input-base-element.js.map +1 -1
- package/dist/components/label/_styles/label.scss.js +1 -1
- package/dist/components/label/label.component.js +8 -11
- package/dist/components/label/label.component.js.map +1 -1
- package/dist/components/link/link.component.js +23 -27
- package/dist/components/link/link.component.js.map +1 -1
- package/dist/components/list-item/list-item.component.d.ts +2 -0
- package/dist/components/list-item/list-item.component.js +24 -29
- package/dist/components/list-item/list-item.component.js.map +1 -1
- package/dist/components/modal/modal-base-element.js +36 -42
- package/dist/components/modal/modal-base-element.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.component.d.ts +9 -1
- package/dist/components/navigation-menu/navigation-menu-item.component.js +36 -31
- package/dist/components/navigation-menu/navigation-menu-item.component.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.component.js +20 -24
- package/dist/components/navigation-menu/navigation-menu.component.js.map +1 -1
- package/dist/components/notification-badge/notification-badge.component.js +28 -32
- package/dist/components/notification-badge/notification-badge.component.js.map +1 -1
- package/dist/components/number-input/number-input.component.d.ts +7 -0
- package/dist/components/number-input/number-input.component.js +23 -29
- package/dist/components/number-input/number-input.component.js.map +1 -1
- package/dist/components/official-website-banner/official-website-banner.component.d.ts +1 -0
- package/dist/components/official-website-banner/official-website-banner.component.js +19 -24
- package/dist/components/official-website-banner/official-website-banner.component.js.map +1 -1
- package/dist/components/option-group/option-group.component.js +17 -20
- package/dist/components/option-group/option-group.component.js.map +1 -1
- package/dist/components/option-item/option-item.component.d.ts +10 -0
- package/dist/components/option-item/option-item.component.js +66 -60
- package/dist/components/option-item/option-item.component.js.map +1 -1
- package/dist/components/option-item/option-item.scss.js +1 -1
- package/dist/components/option-list/__test__/listbox-harness.d.ts +129 -0
- package/dist/components/option-list/listbox-state.d.ts +230 -0
- package/dist/components/option-list/listbox-state.js +312 -0
- package/dist/components/option-list/listbox-state.js.map +1 -0
- package/dist/components/option-list/option-data.d.ts +35 -0
- package/dist/components/option-list/option-data.js +34 -0
- package/dist/components/option-list/option-data.js.map +1 -0
- package/dist/components/option-list/option-list.component.d.ts +66 -14
- package/dist/components/option-list/option-list.component.js +381 -294
- package/dist/components/option-list/option-list.component.js.map +1 -1
- package/dist/components/overlay/overlay.component.js +10 -13
- package/dist/components/overlay/overlay.component.js.map +1 -1
- package/dist/components/pager/pager.component.js +31 -37
- package/dist/components/pager/pager.component.js.map +1 -1
- package/dist/components/password-input/password-input.component.d.ts +12 -5
- package/dist/components/password-input/password-input.component.js +24 -30
- package/dist/components/password-input/password-input.component.js.map +1 -1
- package/dist/components/popup/popup-base-element.js +21 -25
- package/dist/components/popup/popup-base-element.js.map +1 -1
- package/dist/components/progress/progress.component.js +17 -21
- package/dist/components/progress/progress.component.js.map +1 -1
- package/dist/components/radio-button/_styles/radio-button.scss.js +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +5 -0
- package/dist/components/radio-button/radio-button.component.js +58 -62
- package/dist/components/radio-button/radio-button.component.js.map +1 -1
- package/dist/components/rating/_styles/rating.scss.js +2 -2
- package/dist/components/rating/rating.component.js +37 -41
- package/dist/components/rating/rating.component.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.component.d.ts +2 -1
- package/dist/components/scroll-area/scroll-area.component.js +25 -28
- package/dist/components/scroll-area/scroll-area.component.js.map +1 -1
- package/dist/components/scroll-progress/scroll-progress.component.js +13 -17
- package/dist/components/scroll-progress/scroll-progress.component.js.map +1 -1
- package/dist/components/search/search.component.d.ts +6 -1
- package/dist/components/search/search.component.js.map +1 -1
- package/dist/components/select/select.component.d.ts +47 -0
- package/dist/components/select/select.component.js +268 -157
- package/dist/components/select/select.component.js.map +1 -1
- package/dist/components/select/select.scss.js +1 -1
- package/dist/components/sidenav/sidenav-group.component.d.ts +1 -0
- package/dist/components/sidenav/sidenav-group.component.js +11 -14
- package/dist/components/sidenav/sidenav-group.component.js.map +1 -1
- package/dist/components/sidenav/sidenav-item.component.js +20 -23
- package/dist/components/sidenav/sidenav-item.component.js.map +1 -1
- package/dist/components/sidenav/sidenav.component.js +17 -20
- package/dist/components/sidenav/sidenav.component.js.map +1 -1
- package/dist/components/skeleton/skeleton.component.js +9 -12
- package/dist/components/skeleton/skeleton.component.js.map +1 -1
- package/dist/components/skip-link/skip-link.component.js +13 -16
- package/dist/components/skip-link/skip-link.component.js.map +1 -1
- package/dist/components/snackbar/snackbar-message.component.d.ts +3 -1
- package/dist/components/snackbar/snackbar-message.component.js +39 -44
- package/dist/components/snackbar/snackbar-message.component.js.map +1 -1
- package/dist/components/snackbar/snackbar.component.d.ts +0 -1
- package/dist/components/snackbar/snackbar.component.js +36 -42
- package/dist/components/snackbar/snackbar.component.js.map +1 -1
- package/dist/components/spinner/spinner.component.js +33 -38
- package/dist/components/spinner/spinner.component.js.map +1 -1
- package/dist/components/stack/stack.component.d.ts +2 -1
- package/dist/components/stack/stack.component.js +16 -19
- package/dist/components/stack/stack.component.js.map +1 -1
- package/dist/components/switch/switch.component.d.ts +6 -0
- package/dist/components/switch/switch.component.js +48 -51
- package/dist/components/switch/switch.component.js.map +1 -1
- package/dist/components/switch/switch.scss.js +1 -1
- package/dist/components/tab/tab-group.component.d.ts +8 -3
- package/dist/components/tab/tab-group.component.js +43 -33
- package/dist/components/tab/tab-group.component.js.map +1 -1
- package/dist/components/tab/tab.component.js +22 -25
- package/dist/components/tab/tab.component.js.map +1 -1
- package/dist/components/table/table-cell.component.d.ts +1 -1
- package/dist/components/table/table-cell.component.js +16 -19
- package/dist/components/table/table-cell.component.js.map +1 -1
- package/dist/components/table/table-header.component.js +21 -24
- package/dist/components/table/table-header.component.js.map +1 -1
- package/dist/components/table/table-row.component.js +15 -18
- package/dist/components/table/table-row.component.js.map +1 -1
- package/dist/components/table/table.component.d.ts +2 -0
- package/dist/components/table/table.component.js +18 -22
- package/dist/components/table/table.component.js.map +1 -1
- package/dist/components/textarea/textarea.component.d.ts +2 -0
- package/dist/components/textarea/textarea.component.js +42 -46
- package/dist/components/textarea/textarea.component.js.map +1 -1
- package/dist/components/textarea/textarea.scss.js +1 -1
- package/dist/components/timeline/timeline-item.component.js +7 -10
- package/dist/components/timeline/timeline-item.component.js.map +1 -1
- package/dist/components/timeline/timeline.component.js +5 -8
- package/dist/components/timeline/timeline.component.js.map +1 -1
- package/dist/components/timepicker/time-grid.component.d.ts +3 -0
- package/dist/components/timepicker/time-grid.component.js +12 -15
- package/dist/components/timepicker/time-grid.component.js.map +1 -1
- package/dist/components/timepicker/timepicker.component.d.ts +5 -0
- package/dist/components/timepicker/timepicker.component.js +90 -95
- package/dist/components/timepicker/timepicker.component.js.map +1 -1
- package/dist/components/timepicker/timepicker.scss.js +1 -1
- package/dist/components/toc/toc.component.d.ts +2 -0
- package/dist/components/toc/toc.component.js +58 -61
- package/dist/components/toc/toc.component.js.map +1 -1
- package/dist/components/toggle-button/toggle-button.component.js +9 -12
- package/dist/components/toggle-button/toggle-button.component.js.map +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +2 -0
- package/dist/components/tooltip/tooltip.component.js +16 -18
- package/dist/components/tooltip/tooltip.component.js.map +1 -1
- package/dist/components/tray/tray.component.d.ts +4 -1
- package/dist/components/tray/tray.component.js +13 -16
- package/dist/components/tray/tray.component.js.map +1 -1
- package/dist/components/typography/typography.component.js +38 -41
- package/dist/components/typography/typography.component.js.map +1 -1
- package/dist/components.d.ts +3 -0
- package/dist/components.js +204 -195
- package/dist/components.js.map +1 -1
- package/dist/components.native.css +5 -2
- package/dist/components.native.css.map +1 -1
- package/dist/dap-design-system.d.ts +3 -0
- package/dist/dds-preupgrade.css +57 -0
- package/dist/dds.js +383 -374
- package/dist/dds.js.map +1 -1
- package/dist/internal/dds-hu-element.d.ts +8 -0
- package/dist/internal/dds-hu-element.js +40 -41
- package/dist/internal/dds-hu-element.js.map +1 -1
- package/dist/internal/mixin/choiceElementMixin.js +7 -7
- package/dist/internal/mixin/feedbackMixin.js +13 -15
- package/dist/internal/mixin/feedbackMixin.js.map +1 -1
- package/dist/internal/mixin/focusableMixin.js +6 -6
- package/dist/internal/mixin/formElementMixin.js +1 -1
- package/dist/internal/mixin/labelPositionedMixin.js +1 -1
- package/dist/internal/mixin/labelableMixin.d.ts +1 -1
- package/dist/internal/mixin/labelableMixin.js +61 -63
- package/dist/internal/mixin/labelableMixin.js.map +1 -1
- package/dist/internal/mixin/sizedMixin.js +29 -27
- package/dist/internal/mixin/sizedMixin.js.map +1 -1
- package/dist/internal/templates/formLabel.d.ts +41 -0
- package/dist/internal/templates/formLabel.js +47 -0
- package/dist/internal/templates/formLabel.js.map +1 -0
- package/dist/localization/localization.d.ts +1 -2
- package/dist/localization/localization.js +77 -76
- package/dist/localization/localization.js.map +1 -1
- package/dist/localization/localize-controller.d.ts +12 -0
- package/dist/localization/localize-controller.js +51 -0
- package/dist/localization/localize-controller.js.map +1 -0
- package/dist/manifest/types/vue/index.d.ts +527 -312
- package/dist/manifest/vscode.html-custom-data.json +333 -279
- package/dist/manifest/web-types.json +723 -619
- package/dist/react/dap-ds-accordion/index.d.ts +1 -0
- package/dist/react/dap-ds-accordion/index.js.map +1 -1
- package/dist/react/dap-ds-anchor-heading/index.d.ts +1 -0
- package/dist/react/dap-ds-anchor-heading/index.js.map +1 -1
- package/dist/react/dap-ds-banner/index.d.ts +1 -1
- package/dist/react/dap-ds-banner/index.js.map +1 -1
- package/dist/react/dap-ds-breadcrumb/index.d.ts +1 -1
- package/dist/react/dap-ds-breadcrumb/index.js.map +1 -1
- package/dist/react/dap-ds-button-group/index.d.ts +45 -0
- package/dist/react/dap-ds-button-group/index.js +15 -0
- package/dist/react/dap-ds-button-group/index.js.map +1 -0
- package/dist/react/dap-ds-button-group-separator/index.d.ts +24 -0
- package/dist/react/dap-ds-button-group-separator/index.js +15 -0
- package/dist/react/dap-ds-button-group-separator/index.js.map +1 -0
- package/dist/react/dap-ds-button-group-text/index.d.ts +30 -0
- package/dist/react/dap-ds-button-group-text/index.js +15 -0
- package/dist/react/dap-ds-button-group-text/index.js.map +1 -0
- package/dist/react/dap-ds-calendar/index.d.ts +3 -0
- package/dist/react/dap-ds-calendar/index.js.map +1 -1
- package/dist/react/dap-ds-callout/index.d.ts +1 -0
- package/dist/react/dap-ds-callout/index.js.map +1 -1
- package/dist/react/dap-ds-card/index.d.ts +1 -0
- package/dist/react/dap-ds-card/index.js.map +1 -1
- package/dist/react/dap-ds-checkbox/index.d.ts +7 -1
- package/dist/react/dap-ds-checkbox/index.js.map +1 -1
- package/dist/react/dap-ds-chip/index.d.ts +1 -0
- package/dist/react/dap-ds-chip/index.js.map +1 -1
- package/dist/react/dap-ds-code-puncher/index.d.ts +4 -0
- package/dist/react/dap-ds-code-puncher/index.js.map +1 -1
- package/dist/react/dap-ds-combobox/index.d.ts +9 -1
- package/dist/react/dap-ds-combobox/index.js.map +1 -1
- package/dist/react/dap-ds-command/index.d.ts +3 -0
- package/dist/react/dap-ds-command/index.js.map +1 -1
- package/dist/react/dap-ds-copybox-input/index.d.ts +11 -0
- package/dist/react/dap-ds-copybox-input/index.js.map +1 -1
- package/dist/react/dap-ds-datatable/index.d.ts +17 -0
- package/dist/react/dap-ds-datatable/index.js.map +1 -1
- package/dist/react/dap-ds-datepicker/index.d.ts +8 -0
- package/dist/react/dap-ds-datepicker/index.js.map +1 -1
- package/dist/react/dap-ds-file-input/index.d.ts +3 -0
- package/dist/react/dap-ds-file-input/index.js.map +1 -1
- package/dist/react/dap-ds-file-input-list-item/index.d.ts +1 -0
- package/dist/react/dap-ds-file-input-list-item/index.js.map +1 -1
- package/dist/react/dap-ds-form-label/index.d.ts +1 -1
- package/dist/react/dap-ds-form-label/index.js.map +1 -1
- package/dist/react/dap-ds-icon-button/index.d.ts +1 -0
- package/dist/react/dap-ds-icon-button/index.js.map +1 -1
- package/dist/react/dap-ds-input-group/index.d.ts +4 -0
- package/dist/react/dap-ds-input-group/index.js.map +1 -1
- package/dist/react/dap-ds-list-item/index.d.ts +2 -0
- package/dist/react/dap-ds-list-item/index.js.map +1 -1
- package/dist/react/dap-ds-number-input/index.d.ts +7 -0
- package/dist/react/dap-ds-number-input/index.js.map +1 -1
- package/dist/react/dap-ds-official-website-banner/index.d.ts +1 -0
- package/dist/react/dap-ds-official-website-banner/index.js.map +1 -1
- package/dist/react/dap-ds-option-item/index.d.ts +1 -0
- package/dist/react/dap-ds-option-item/index.js.map +1 -1
- package/dist/react/dap-ds-option-list/index.d.ts +1 -1
- package/dist/react/dap-ds-option-list/index.js.map +1 -1
- package/dist/react/dap-ds-password-input/index.d.ts +12 -5
- package/dist/react/dap-ds-password-input/index.js.map +1 -1
- package/dist/react/dap-ds-radio-button/index.d.ts +5 -0
- package/dist/react/dap-ds-radio-button/index.js.map +1 -1
- package/dist/react/dap-ds-radio-group/index.d.ts +5 -0
- package/dist/react/dap-ds-radio-group/index.js.map +1 -1
- package/dist/react/dap-ds-scroll-area/index.d.ts +2 -1
- package/dist/react/dap-ds-scroll-area/index.js.map +1 -1
- package/dist/react/dap-ds-search/index.d.ts +6 -1
- package/dist/react/dap-ds-search/index.js.map +1 -1
- package/dist/react/dap-ds-select/index.d.ts +6 -0
- package/dist/react/dap-ds-select/index.js.map +1 -1
- package/dist/react/dap-ds-sidenav-group/index.d.ts +1 -0
- package/dist/react/dap-ds-sidenav-group/index.js.map +1 -1
- package/dist/react/dap-ds-snackbar/index.d.ts +0 -1
- package/dist/react/dap-ds-snackbar/index.js.map +1 -1
- package/dist/react/dap-ds-snackbar-message/index.d.ts +3 -1
- package/dist/react/dap-ds-snackbar-message/index.js.map +1 -1
- package/dist/react/dap-ds-stack/index.d.ts +2 -1
- package/dist/react/dap-ds-stack/index.js.map +1 -1
- package/dist/react/dap-ds-switch/index.d.ts +6 -0
- package/dist/react/dap-ds-switch/index.js.map +1 -1
- package/dist/react/dap-ds-tab-group/index.d.ts +4 -2
- package/dist/react/dap-ds-tab-group/index.js.map +1 -1
- package/dist/react/dap-ds-table/index.d.ts +2 -0
- package/dist/react/dap-ds-table/index.js.map +1 -1
- package/dist/react/dap-ds-table-cell/index.d.ts +1 -1
- package/dist/react/dap-ds-table-cell/index.js.map +1 -1
- package/dist/react/dap-ds-textarea/index.d.ts +2 -0
- package/dist/react/dap-ds-textarea/index.js.map +1 -1
- package/dist/react/dap-ds-time-grid/index.d.ts +3 -0
- package/dist/react/dap-ds-time-grid/index.js.map +1 -1
- package/dist/react/dap-ds-timepicker/index.d.ts +5 -0
- package/dist/react/dap-ds-timepicker/index.js.map +1 -1
- package/dist/react/dap-ds-toc/index.d.ts +2 -0
- package/dist/react/dap-ds-toc/index.js.map +1 -1
- package/dist/react/dap-ds-tooltip/index.d.ts +2 -0
- package/dist/react/dap-ds-tooltip/index.js.map +1 -1
- package/dist/react/dap-ds-tray/index.d.ts +4 -1
- package/dist/react/dap-ds-tray/index.js.map +1 -1
- package/dist/react/index.d.ts +11 -8
- package/dist/react-types.ts +11 -8
- package/dist/react.js +366 -360
- package/dist/react.js.map +1 -1
- package/package.json +14 -3
- package/dist/node_modules/@lit/context/lib/context-request-event.js +0 -14
- package/dist/node_modules/@lit/context/lib/context-request-event.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js +0 -31
- package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/controllers/context-provider.js +0 -40
- package/dist/node_modules/@lit/context/lib/controllers/context-provider.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/create-context.js +0 -12
- package/dist/node_modules/@lit/context/lib/create-context.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/value-notifier.js +0 -37
- package/dist/node_modules/@lit/context/lib/value-notifier.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -51
- package/dist/node_modules/@lit/reactive-element/css-tag.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -10
- package/dist/node_modules/@lit/reactive-element/decorators/base.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -38
- package/dist/node_modules/@lit/reactive-element/decorators/property.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-all.js +0 -17
- package/dist/node_modules/@lit/reactive-element/decorators/query-all.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -21
- package/dist/node_modules/@lit/reactive-element/decorators/query.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -25
- package/dist/node_modules/@lit/reactive-element/decorators/state.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -276
- package/dist/node_modules/@lit/reactive-element/reactive-element.js.map +0 -1
- package/dist/node_modules/lit-element/lit-element.js +0 -53
- package/dist/node_modules/lit-element/lit-element.js.map +0 -1
- package/dist/node_modules/lit-html/async-directive.js +0 -71
- package/dist/node_modules/lit-html/async-directive.js.map +0 -1
- package/dist/node_modules/lit-html/directive-helpers.js +0 -46
- package/dist/node_modules/lit-html/directive-helpers.js.map +0 -1
- package/dist/node_modules/lit-html/directive.js +0 -28
- package/dist/node_modules/lit-html/directive.js.map +0 -1
- package/dist/node_modules/lit-html/directives/if-defined.js +0 -11
- package/dist/node_modules/lit-html/directives/if-defined.js.map +0 -1
- package/dist/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/lit-html/directives/map.js.map +0 -1
- package/dist/node_modules/lit-html/directives/repeat.js +0 -63
- package/dist/node_modules/lit-html/directives/repeat.js.map +0 -1
- package/dist/node_modules/lit-html/directives/style-map.js +0 -37
- package/dist/node_modules/lit-html/directives/style-map.js.map +0 -1
- package/dist/node_modules/lit-html/lit-html.js +0 -249
- package/dist/node_modules/lit-html/lit-html.js.map +0 -1
- package/dist/node_modules/lit-html/static.js +0 -34
- package/dist/node_modules/lit-html/static.js.map +0 -1
- package/dist/node_modules/lit-i18n/src/lit-i18n.js +0 -95
- package/dist/node_modules/lit-i18n/src/lit-i18n.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidenav.component.js","sources":["../../../src/components/sidenav/sidenav.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html, literal } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './sidenav.scss?inline'\n\n// Mapped rather than interpolated straight into the static template: `landmark` is a\n// plain attribute, so any string can reach it from markup, and `unsafeStatic` would\n// render that string as a tag name. Unknown values fall back to `aside`.\nconst LANDMARK_TAGS = {\n aside: literal`aside`,\n nav: literal`nav`,\n} as const\n\nexport type SideNavLandmark = keyof typeof LANDMARK_TAGS\n\n/**\n * `dap-ds-sidenav`\n * @summary Side navigation is a list of links that are used to navigate to different sections of a page.\n * @element dap-ds-sidenav\n * @title - Side navigation\n *\n * @event {{ href: string, event: Event }} dds-item-click - Event fired when the side navigation item is clicked.\n *\n * @slot - The content of the side navigation.\n *\n * @csspart base - The main side navigation container.\n * @csspart menu - The menu of the side navigation.\n */\nexport default class DapDSSideNav extends DdsElement {\n static tagName = 'dap-ds-sidenav'\n\n /** The label of the side navigation, if aria label is not provided, it will be used as aria label */\n @property({ reflect: true }) label: string\n\n /** The active href of the side navigation, to explicitly set the active item, if not provided, it will be set based on the current location */\n @property() activeHref: string\n\n /** The size of the side navigation */\n @property({ type: String }) size: 'xs' | 'sm' | 'lg' = 'xs'\n\n /**\n * The landmark element to render. `aside` exposes a complementary landmark; `nav`\n * exposes a navigation landmark, so the sidenav is listed when a screen-reader user\n * asks for the page's navigation.\n *\n * Defaults to `aside` because that is what this component has always rendered, and\n * changing the landmark of every existing sidenav is not this component's call: a\n * sidenav that is genuinely a sidebar should stay complementary. Set `nav` when the\n * sidenav is the primary way to move around the view.\n * @type {'aside' | 'nav'}\n */\n @property({ reflect: true, type: String }) landmark: SideNavLandmark = 'aside'\n\n static readonly styles = unsafeCSS(styles)\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n const activeItem = this.querySelector(\n `[href=\"${this.activeHref ? this.activeHref : window.location.pathname}\"]`,\n )\n\n if (activeItem) {\n this.removeActive()\n this.setActive(activeItem)\n }\n\n const activeGroup = activeItem?.closest('dap-ds-sidenav-group')\n if (activeGroup) {\n activeGroup.setAttribute('open', 'true')\n }\n\n // go through all the items and and groups and set the size\n this.querySelectorAll('dap-ds-sidenav-item, dap-ds-sidenav-group').forEach(\n item => {\n ;(item as any).size = this.size\n },\n )\n }\n\n attributeChangedCallback(\n name: string,\n _old: string | null,\n value: string | null,\n ): void {\n super.attributeChangedCallback(name, _old, value)\n\n if (name === 'activehref') {\n this.removeActive()\n\n const activeItem = this.querySelector(`[href=\"${value}\"]`)\n this.setActive(activeItem)\n }\n }\n\n private removeActive(): void {\n this.querySelectorAll('dap-ds-sidenav-item, dap-ds-sidenav-group').forEach(\n item => {\n item.removeAttribute('active')\n },\n )\n }\n\n private setActive(activeItem?: Element | null): void {\n if (activeItem) {\n activeItem.setAttribute('active', 'true')\n\n const activeGroup = activeItem.closest('dap-ds-sidenav-group')\n if (activeGroup) {\n activeGroup.setAttribute('open', 'true')\n }\n }\n }\n\n // Emits `dds-item-click` when an item (or a group acting as a link) is\n // activated. The event is cancelable: consumers doing client-side routing can\n // call `event.preventDefault()` to suppress the item's native anchor\n // navigation. When nobody prevents it, the anchor navigates as before.\n private handleClick(event: MouseEvent): void {\n const item = event\n .composedPath()\n .find(\n (el): el is HTMLElement =>\n el instanceof HTMLElement &&\n (el.tagName === 'DAP-DS-SIDENAV-ITEM' ||\n el.tagName === 'DAP-DS-SIDENAV-GROUP'),\n )\n\n // `href` is a non-reflecting reactive property, so a framework that sets it\n // as a DOM property (e.g. React 19 for custom elements) leaves no `href`\n // attribute. Read the property first, then fall back to the attribute.\n const href =\n (item as (HTMLElement & { href?: string }) | undefined)?.href ||\n item?.getAttribute('href')\n if (!href) return\n\n const itemClick = this.emit(\n 'dds-item-click',\n { href, event },\n { cancelable: true },\n )\n\n if (itemClick.defaultPrevented) {\n event.preventDefault()\n }\n }\n\n render() {\n const tag = LANDMARK_TAGS[this.landmark] ?? LANDMARK_TAGS.aside\n\n return html`\n <${tag}\n part=\"base\"\n class=${clsx('sidenav', `sidenav--${this.size}`)}\n aria-label=${this.ariaLabel ?? this.label}>\n <menu part=\"menu\" @click=${this.handleClick}>\n <slot></slot>\n </menu>\n </${tag}>\n `\n }\n}\n"],"names":["LANDMARK_TAGS","literal","_DapDSSideNav","DdsElement","_changedProperties","activeItem","activeGroup","item","name","_old","value","event","el","href","tag","_a","html","clsx","_b","unsafeCSS","styles","DapDSSideNav","__decorateClass","property"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sidenav.component.js","sources":["../../../src/components/sidenav/sidenav.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html, literal } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './sidenav.scss?inline'\n\n// Mapped rather than interpolated straight into the static template: `landmark` is a\n// plain attribute, so any string can reach it from markup, and `unsafeStatic` would\n// render that string as a tag name. Unknown values fall back to `aside`.\nconst LANDMARK_TAGS = {\n aside: literal`aside`,\n nav: literal`nav`,\n} as const\n\nexport type SideNavLandmark = keyof typeof LANDMARK_TAGS\n\n/**\n * `dap-ds-sidenav`\n * @summary Side navigation is a list of links that are used to navigate to different sections of a page.\n * @element dap-ds-sidenav\n * @title - Side navigation\n *\n * @event {{ href: string, event: Event }} dds-item-click - Event fired when the side navigation item is clicked.\n *\n * @slot - The content of the side navigation.\n *\n * @csspart base - The main side navigation container.\n * @csspart menu - The menu of the side navigation.\n */\nexport default class DapDSSideNav extends DdsElement {\n static tagName = 'dap-ds-sidenav'\n\n /** The label of the side navigation, if aria label is not provided, it will be used as aria label */\n @property({ reflect: true }) label: string\n\n /** The active href of the side navigation, to explicitly set the active item, if not provided, it will be set based on the current location */\n @property() activeHref: string\n\n /** The size of the side navigation */\n @property({ type: String }) size: 'xs' | 'sm' | 'lg' = 'xs'\n\n /**\n * The landmark element to render. `aside` exposes a complementary landmark; `nav`\n * exposes a navigation landmark, so the sidenav is listed when a screen-reader user\n * asks for the page's navigation.\n *\n * Defaults to `aside` because that is what this component has always rendered, and\n * changing the landmark of every existing sidenav is not this component's call: a\n * sidenav that is genuinely a sidebar should stay complementary. Set `nav` when the\n * sidenav is the primary way to move around the view.\n * @type {'aside' | 'nav'}\n */\n @property({ reflect: true, type: String }) landmark: SideNavLandmark = 'aside'\n\n static readonly styles = unsafeCSS(styles)\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n const activeItem = this.querySelector(\n `[href=\"${this.activeHref ? this.activeHref : window.location.pathname}\"]`,\n )\n\n if (activeItem) {\n this.removeActive()\n this.setActive(activeItem)\n }\n\n const activeGroup = activeItem?.closest('dap-ds-sidenav-group')\n if (activeGroup) {\n activeGroup.setAttribute('open', 'true')\n }\n\n // go through all the items and and groups and set the size\n this.querySelectorAll('dap-ds-sidenav-item, dap-ds-sidenav-group').forEach(\n item => {\n ;(item as any).size = this.size\n },\n )\n }\n\n attributeChangedCallback(\n name: string,\n _old: string | null,\n value: string | null,\n ): void {\n super.attributeChangedCallback(name, _old, value)\n\n if (name === 'activehref') {\n this.removeActive()\n\n const activeItem = this.querySelector(`[href=\"${value}\"]`)\n this.setActive(activeItem)\n }\n }\n\n private removeActive(): void {\n this.querySelectorAll('dap-ds-sidenav-item, dap-ds-sidenav-group').forEach(\n item => {\n item.removeAttribute('active')\n },\n )\n }\n\n private setActive(activeItem?: Element | null): void {\n if (activeItem) {\n activeItem.setAttribute('active', 'true')\n\n const activeGroup = activeItem.closest('dap-ds-sidenav-group')\n if (activeGroup) {\n activeGroup.setAttribute('open', 'true')\n }\n }\n }\n\n // Emits `dds-item-click` when an item (or a group acting as a link) is\n // activated. The event is cancelable: consumers doing client-side routing can\n // call `event.preventDefault()` to suppress the item's native anchor\n // navigation. When nobody prevents it, the anchor navigates as before.\n private handleClick(event: MouseEvent): void {\n const item = event\n .composedPath()\n .find(\n (el): el is HTMLElement =>\n el instanceof HTMLElement &&\n (el.tagName === 'DAP-DS-SIDENAV-ITEM' ||\n el.tagName === 'DAP-DS-SIDENAV-GROUP'),\n )\n\n // `href` is a non-reflecting reactive property, so a framework that sets it\n // as a DOM property (e.g. React 19 for custom elements) leaves no `href`\n // attribute. Read the property first, then fall back to the attribute.\n const href =\n (item as (HTMLElement & { href?: string }) | undefined)?.href ||\n item?.getAttribute('href')\n if (!href) return\n\n const itemClick = this.emit(\n 'dds-item-click',\n { href, event },\n { cancelable: true },\n )\n\n if (itemClick.defaultPrevented) {\n event.preventDefault()\n }\n }\n\n render() {\n const tag = LANDMARK_TAGS[this.landmark] ?? LANDMARK_TAGS.aside\n\n return html`\n <${tag}\n part=\"base\"\n class=${clsx('sidenav', `sidenav--${this.size}`)}\n aria-label=${this.ariaLabel ?? this.label}>\n <menu part=\"menu\" @click=${this.handleClick}>\n <slot></slot>\n </menu>\n </${tag}>\n `\n }\n}\n"],"names":["LANDMARK_TAGS","literal","_DapDSSideNav","DdsElement","_changedProperties","activeItem","activeGroup","item","name","_old","value","event","el","href","tag","_a","html","clsx","_b","unsafeCSS","styles","DapDSSideNav","__decorateClass","property"],"mappings":"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"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { clsx as u } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "../../node_modules/lit-element/lit-element.js";
|
|
5
|
-
import { property as r } from "../../node_modules/@lit/reactive-element/decorators/property.js";
|
|
2
|
+
import { unsafeCSS as y, html as p } from "lit";
|
|
3
|
+
import { property as r } from "lit/decorators.js";
|
|
6
4
|
import "../../localization/localization.js";
|
|
7
|
-
import { DdsElement as
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { unsafeCSS as c } from "../../node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
import { DdsElement as f } from "../../internal/dds-hu-element.js";
|
|
6
|
+
import d from "./skeleton.scss.js";
|
|
7
|
+
import { t as c } from "../../node_modules/i18next/dist/esm/i18next.js";
|
|
11
8
|
var S = Object.defineProperty, a = (l, t, e, o) => {
|
|
12
9
|
for (var s = void 0, m = l.length - 1, h; m >= 0; m--)
|
|
13
10
|
(h = l[m]) && (s = h(t, e, s) || s);
|
|
14
11
|
return s && S(t, e, s), s;
|
|
15
12
|
};
|
|
16
|
-
const n = class n extends
|
|
13
|
+
const n = class n extends f {
|
|
17
14
|
constructor() {
|
|
18
15
|
super(...arguments), this.variant = "text", this.noAnimation = !1, this.animation = "wave";
|
|
19
16
|
}
|
|
@@ -50,7 +47,7 @@ const n = class n extends p {
|
|
|
50
47
|
}
|
|
51
48
|
render() {
|
|
52
49
|
var t;
|
|
53
|
-
return this.width ? this.style.setProperty("--skeleton-width", this.width) : this.style.removeProperty("--skeleton-width"), this.height ? this.style.setProperty("--skeleton-height", this.height) : this.style.removeProperty("--skeleton-height"),
|
|
50
|
+
return this.style && (this.width ? this.style.setProperty("--skeleton-width", this.width) : this.style.removeProperty("--skeleton-width"), this.height ? this.style.setProperty("--skeleton-height", this.height) : this.style.removeProperty("--skeleton-height")), p`
|
|
54
51
|
<div
|
|
55
52
|
part="base"
|
|
56
53
|
class="${u("skeleton", {
|
|
@@ -59,11 +56,11 @@ const n = class n extends p {
|
|
|
59
56
|
[`skeleton--${this.animation}`]: !this.noAnimation && this.animation
|
|
60
57
|
})}"
|
|
61
58
|
role="status"
|
|
62
|
-
aria-label=${(t = this.ariaLabel) != null ? t :
|
|
59
|
+
aria-label=${(t = this.ariaLabel) != null ? t : c("loading")}></div>
|
|
63
60
|
`;
|
|
64
61
|
}
|
|
65
62
|
};
|
|
66
|
-
n.tagName = "dap-ds-skeleton", n.styles =
|
|
63
|
+
n.tagName = "dap-ds-skeleton", n.styles = y(d);
|
|
67
64
|
let i = n;
|
|
68
65
|
a([
|
|
69
66
|
r({ type: String, reflect: !0 })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.component.js","sources":["../../../src/components/skeleton/skeleton.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { html, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { t } from '@/localization/localization'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './skeleton.scss?inline'\n\nexport type SkeletonVariant = 'text' | 'circular' | 'rectangular'\nexport type SkeletonAnimation = 'wave' | 'pulse' | 'custom'\n\n/**\n * `dap-ds-skeleton`\n * @summary A skeleton loader component for displaying placeholder content while loading.\n * @element dap-ds-skeleton\n * @title - Skeleton\n *\n * @example Basic Usage\n * ```html\n * <dap-ds-skeleton></dap-ds-skeleton>\n * <dap-ds-skeleton variant=\"circular\"></dap-ds-skeleton>\n * <dap-ds-skeleton variant=\"rectangular\" width=\"200px\" height=\"100px\"></dap-ds-skeleton>\n * <dap-ds-skeleton animation=\"custom\" custom-keyframes=\"0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }\"></dap-ds-skeleton>\n * ```\n *\n * @csspart base - The main skeleton container.\n *\n * @cssprop --dds-skeleton-base-color - Solid background color always visible (default: rgb(0 0 0 / 11%)); shown as a static block when prefers-reduced-motion is active\n * @cssprop --dds-skeleton-color - The shimmer overlay gradient (default: linear-gradient(90deg, transparent, rgb(0 0 0 / 10%), transparent))\n * @cssprop --dds-skeleton-animation-duration - Duration of the loading animation (default: 1.5s)\n * @cssprop --dds-skeleton-border-radius - Border radius for rectangular skeletons (default: var(--dds-radius-small))\n * @cssprop --dds-skeleton-text-spacing - Spacing between text lines in text variant (default: var(--dds-spacing-100))\n * @cssprop --dds-skeleton-animation-timing-function - Timing function for the loading animation (default: ease-in-out)\n */\nexport default class DapDSSkeleton extends DdsElement {\n static tagName = 'dap-ds-skeleton'\n\n /**\n * The variant of the skeleton.\n * @type {\"text\" | \"circular\" | \"rectangular\"}\n */\n @property({ type: String, reflect: true }) variant: SkeletonVariant = 'text'\n\n /**\n * The width of the skeleton. Can be any valid CSS width value.\n */\n @property({ type: String }) width?: string\n\n /**\n * The height of the skeleton. Can be any valid CSS height value.\n */\n @property({ type: String }) height?: string\n\n /**\n * Whether to animate the skeleton.\n */\n @property({ type: Boolean, reflect: true }) noAnimation = false\n\n /**\n * The animation type for the skeleton.\n * @type {\"wave\" | \"pulse\" | \"custom\"}\n */\n @property({ type: String, reflect: true }) animation: SkeletonAnimation =\n 'wave'\n\n /**\n * Custom keyframes for the animation when animation=\"custom\".\n * Should be a valid CSS keyframes string without the @keyframes wrapper.\n * @example \"0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }\"\n */\n @property({ type: String, attribute: 'custom-keyframes' })\n customKeyframes?: string\n\n static readonly styles = unsafeCSS(styles)\n\n private _userCustomStyles?: string\n\n private _generateKeyframesCSS(): string | undefined {\n if (this.animation === 'custom' && this.customKeyframes) {\n return `\n @keyframes custom-skeleton-animation {\n ${this.customKeyframes}\n }\n .skeleton--custom::before {\n animation: custom-skeleton-animation var(--dds-skeleton-animation-duration) var(--dds-skeleton-animation-timing-function) infinite;\n }\n `\n }\n return undefined\n }\n\n private _updateMergedStyles() {\n const keyframesCSS = this._generateKeyframesCSS()\n const parts: string[] = []\n\n if (keyframesCSS) {\n parts.push(keyframesCSS)\n }\n\n if (this._userCustomStyles) {\n parts.push(this._userCustomStyles)\n }\n\n const mergedStyles = parts.length > 0 ? parts.join('\\n') : undefined\n\n // Only update if different to avoid infinite loops\n if (mergedStyles !== this.customStyles) {\n // Use requestUpdate to properly trigger Lit's update cycle\n const oldValue = this.customStyles\n ;(this as any).customStyles = mergedStyles\n this.requestUpdate('customStyles', oldValue)\n }\n }\n\n protected updated(\n changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(changedProperties)\n\n // Track user-provided customStyles (separate from generated keyframes)\n if (changedProperties.has('customStyles')) {\n const currentStyles = this.customStyles || ''\n const keyframesCSS = this._generateKeyframesCSS()\n\n if (keyframesCSS && currentStyles.includes(keyframesCSS)) {\n // Extract user's styles by removing our generated CSS\n this._userCustomStyles =\n currentStyles.replace(keyframesCSS, '').trim() || undefined\n } else {\n // No keyframes CSS, so all styles are user-provided\n this._userCustomStyles = currentStyles || undefined\n }\n }\n\n // Update merged styles when animation-related properties change\n if (\n changedProperties.has('animation') ||\n changedProperties.has('customKeyframes')\n ) {\n this._updateMergedStyles()\n }\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n // Initialize user custom styles\n this._userCustomStyles = this.customStyles || undefined\n // Generate and set merged styles\n this._updateMergedStyles()\n }\n\n render() {\n if (this.
|
|
1
|
+
{"version":3,"file":"skeleton.component.js","sources":["../../../src/components/skeleton/skeleton.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { html, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { t } from '@/localization/localization'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './skeleton.scss?inline'\n\nexport type SkeletonVariant = 'text' | 'circular' | 'rectangular'\nexport type SkeletonAnimation = 'wave' | 'pulse' | 'custom'\n\n/**\n * `dap-ds-skeleton`\n * @summary A skeleton loader component for displaying placeholder content while loading.\n * @element dap-ds-skeleton\n * @title - Skeleton\n *\n * @example Basic Usage\n * ```html\n * <dap-ds-skeleton></dap-ds-skeleton>\n * <dap-ds-skeleton variant=\"circular\"></dap-ds-skeleton>\n * <dap-ds-skeleton variant=\"rectangular\" width=\"200px\" height=\"100px\"></dap-ds-skeleton>\n * <dap-ds-skeleton animation=\"custom\" custom-keyframes=\"0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }\"></dap-ds-skeleton>\n * ```\n *\n * @csspart base - The main skeleton container.\n *\n * @cssprop --dds-skeleton-base-color - Solid background color always visible (default: rgb(0 0 0 / 11%)); shown as a static block when prefers-reduced-motion is active\n * @cssprop --dds-skeleton-color - The shimmer overlay gradient (default: linear-gradient(90deg, transparent, rgb(0 0 0 / 10%), transparent))\n * @cssprop --dds-skeleton-animation-duration - Duration of the loading animation (default: 1.5s)\n * @cssprop --dds-skeleton-border-radius - Border radius for rectangular skeletons (default: var(--dds-radius-small))\n * @cssprop --dds-skeleton-text-spacing - Spacing between text lines in text variant (default: var(--dds-spacing-100))\n * @cssprop --dds-skeleton-animation-timing-function - Timing function for the loading animation (default: ease-in-out)\n */\nexport default class DapDSSkeleton extends DdsElement {\n static tagName = 'dap-ds-skeleton'\n\n /**\n * The variant of the skeleton.\n * @type {\"text\" | \"circular\" | \"rectangular\"}\n */\n @property({ type: String, reflect: true }) variant: SkeletonVariant = 'text'\n\n /**\n * The width of the skeleton. Can be any valid CSS width value.\n */\n @property({ type: String }) width?: string\n\n /**\n * The height of the skeleton. Can be any valid CSS height value.\n */\n @property({ type: String }) height?: string\n\n /**\n * Whether to animate the skeleton.\n */\n @property({ type: Boolean, reflect: true }) noAnimation = false\n\n /**\n * The animation type for the skeleton.\n * @type {\"wave\" | \"pulse\" | \"custom\"}\n */\n @property({ type: String, reflect: true }) animation: SkeletonAnimation =\n 'wave'\n\n /**\n * Custom keyframes for the animation when animation=\"custom\".\n * Should be a valid CSS keyframes string without the @keyframes wrapper.\n * @example \"0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }\"\n */\n @property({ type: String, attribute: 'custom-keyframes' })\n customKeyframes?: string\n\n static readonly styles = unsafeCSS(styles)\n\n private _userCustomStyles?: string\n\n private _generateKeyframesCSS(): string | undefined {\n if (this.animation === 'custom' && this.customKeyframes) {\n return `\n @keyframes custom-skeleton-animation {\n ${this.customKeyframes}\n }\n .skeleton--custom::before {\n animation: custom-skeleton-animation var(--dds-skeleton-animation-duration) var(--dds-skeleton-animation-timing-function) infinite;\n }\n `\n }\n return undefined\n }\n\n private _updateMergedStyles() {\n const keyframesCSS = this._generateKeyframesCSS()\n const parts: string[] = []\n\n if (keyframesCSS) {\n parts.push(keyframesCSS)\n }\n\n if (this._userCustomStyles) {\n parts.push(this._userCustomStyles)\n }\n\n const mergedStyles = parts.length > 0 ? parts.join('\\n') : undefined\n\n // Only update if different to avoid infinite loops\n if (mergedStyles !== this.customStyles) {\n // Use requestUpdate to properly trigger Lit's update cycle\n const oldValue = this.customStyles\n ;(this as any).customStyles = mergedStyles\n this.requestUpdate('customStyles', oldValue)\n }\n }\n\n protected updated(\n changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(changedProperties)\n\n // Track user-provided customStyles (separate from generated keyframes)\n if (changedProperties.has('customStyles')) {\n const currentStyles = this.customStyles || ''\n const keyframesCSS = this._generateKeyframesCSS()\n\n if (keyframesCSS && currentStyles.includes(keyframesCSS)) {\n // Extract user's styles by removing our generated CSS\n this._userCustomStyles =\n currentStyles.replace(keyframesCSS, '').trim() || undefined\n } else {\n // No keyframes CSS, so all styles are user-provided\n this._userCustomStyles = currentStyles || undefined\n }\n }\n\n // Update merged styles when animation-related properties change\n if (\n changedProperties.has('animation') ||\n changedProperties.has('customKeyframes')\n ) {\n this._updateMergedStyles()\n }\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n // Initialize user custom styles\n this._userCustomStyles = this.customStyles || undefined\n // Generate and set merged styles\n this._updateMergedStyles()\n }\n\n render() {\n // `this.style` is undefined in the Lit SSR element shim; skip host-style\n // mutation on the server (it is applied on the client during hydration).\n if (this.style) {\n if (this.width) {\n this.style.setProperty('--skeleton-width', this.width)\n } else {\n this.style.removeProperty('--skeleton-width')\n }\n\n if (this.height) {\n this.style.setProperty('--skeleton-height', this.height)\n } else {\n this.style.removeProperty('--skeleton-height')\n }\n }\n\n return html`\n <div\n part=\"base\"\n class=\"${clsx('skeleton', {\n [`skeleton--${this.variant}`]: this.variant,\n 'skeleton--animate': !this.noAnimation,\n [`skeleton--${this.animation}`]: !this.noAnimation && this.animation,\n })}\"\n role=\"status\"\n aria-label=${this.ariaLabel ?? t('loading')}></div>\n `\n }\n}\n"],"names":["_DapDSSkeleton","DdsElement","keyframesCSS","parts","mergedStyles","oldValue","changedProperties","currentStyles","_changedProperties","html","clsx","_a","t","unsafeCSS","styles","DapDSSkeleton","__decorateClass","property"],"mappings":"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"}
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import f from "../link/link.component.js";
|
|
9
|
-
import c from "./skip-link.scss.js";
|
|
10
|
-
import { unsafeCSS as k } from "../../node_modules/@lit/reactive-element/css-tag.js";
|
|
1
|
+
import { clsx as h } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { unsafeCSS as d } from "lit";
|
|
3
|
+
import { property as r } from "lit/decorators.js";
|
|
4
|
+
import { html as m } from "lit/static-html.js";
|
|
5
|
+
import { DdsElement as f } from "../../internal/dds-hu-element.js";
|
|
6
|
+
import c from "../link/link.component.js";
|
|
7
|
+
import k from "./skip-link.scss.js";
|
|
11
8
|
var u = Object.defineProperty, i = (o, p, a, y) => {
|
|
12
9
|
for (var t = void 0, n = o.length - 1, l; n >= 0; n--)
|
|
13
10
|
(l = o[n]) && (t = l(p, a, t) || t);
|
|
14
11
|
return t && u(p, a, t), t;
|
|
15
12
|
};
|
|
16
|
-
const e = class e extends
|
|
13
|
+
const e = class e extends f {
|
|
17
14
|
constructor() {
|
|
18
15
|
super(...arguments), this.href = "#", this.size = "sm", this.noUnderline = !1;
|
|
19
16
|
}
|
|
20
17
|
render() {
|
|
21
|
-
return
|
|
18
|
+
return m`
|
|
22
19
|
<dap-ds-link
|
|
23
20
|
?noUnderLine=${this.noUnderline}
|
|
24
21
|
part="base"
|
|
25
22
|
variant="brand"
|
|
26
23
|
href=${this.href}
|
|
27
|
-
class=${
|
|
24
|
+
class=${h(
|
|
28
25
|
"skip-link",
|
|
29
26
|
`skip-link--${this.size}`,
|
|
30
27
|
`skip-link--${this.placement}`
|
|
@@ -34,7 +31,7 @@ const e = class e extends d {
|
|
|
34
31
|
</span>
|
|
35
32
|
<span
|
|
36
33
|
part="high-contrast"
|
|
37
|
-
class=${
|
|
34
|
+
class=${h(
|
|
38
35
|
"skip-link__high-contrast",
|
|
39
36
|
`skip-link__high-contrast--${this.size}`
|
|
40
37
|
)}></span>
|
|
@@ -43,8 +40,8 @@ const e = class e extends d {
|
|
|
43
40
|
}
|
|
44
41
|
};
|
|
45
42
|
e.tagName = "dap-ds-skip-link", e.dependencies = {
|
|
46
|
-
"dap-ds-link":
|
|
47
|
-
}, e.styles = k
|
|
43
|
+
"dap-ds-link": c
|
|
44
|
+
}, e.styles = d(k);
|
|
48
45
|
let s = e;
|
|
49
46
|
i([
|
|
50
47
|
r({ reflect: !0 })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-link.component.js","sources":["../../../src/components/skip-link/skip-link.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { CommonSize, Placement } from '../../common/types'\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport DapDSLink from '../link/link.component'\nimport styles from './skip-link.scss?inline'\n\n/**\n * `dap-ds-skip-link`\n * @summary A skip link is a link that allows keyboard users to skip to the main content of a page.\n * @element dap-ds-skip-link\n * @title - Skip link\n *\n * @slot - The content of the skip link.\n *\n * @csspart base - The main skip link container.\n * @csspart text - The text container of the skip link.\n * @csspart high-contrast - The high contrast outline container.\n *\n * @cssproperty --dds-skip-link-border-color - Border color for the high contrast outline (default: var(--dds-border-neutral-transparent-interactive, #fff500))\n * @cssproperty --dds-skip-link-border-width - Border width for the high contrast outline (default: var(--dds-border-width-large))\n * @cssproperty --dds-skip-link-border-width-active - Border width for the active state (default: var(--dds-border-width-xlarge))\n * @cssproperty --dds-skip-link-border-radius - Border radius of the skip link (default: var(--dds-radius-small))\n * @cssproperty --dds-skip-link-padding-sm - Padding for small size variant (default: var(--dds-spacing-200))\n * @cssproperty --dds-skip-link-padding-lg - Padding for large size variant (default: var(--dds-spacing-400))\n * @cssproperty --dds-skip-link-text-underline-offset - Underline offset for the text (default: 3px)\n * @cssproperty --dds-skip-link-z-index - Z-index of the skip link (default: var(--dds-z-index-100))\n */\nexport default class DapDSSkipLink extends DdsElement {\n static tagName = 'dap-ds-skip-link'\n\n static dependencies = {\n 'dap-ds-link': DapDSLink,\n }\n\n /** The placement of the skip link.\n * @type {'left' | 'center'}\n */\n @property({ reflect: true }) placement: Placement\n\n /** The href of the skip link */\n @property() href: string = '#'\n\n /** The size of the skip link\n * @type {'sm' | 'lg'}\n */\n @property() size: CommonSize = 'sm'\n\n /** Whether the skip link should have an underline */\n @property({ type: Boolean }) noUnderline = false\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`\n <dap-ds-link\n ?noUnderLine=${this.noUnderline}\n part=\"base\"\n variant=\"brand\"\n href=${this.href}\n class=${clsx(\n 'skip-link',\n `skip-link--${this.size}`,\n `skip-link--${this.placement}`,\n )}>\n <span part=\"text\" class=\"skip-link__text\">\n <slot></slot>\n </span>\n <span\n part=\"high-contrast\"\n class=${clsx(\n 'skip-link__high-contrast',\n `skip-link__high-contrast--${this.size}`,\n )}></span>\n </dap-ds-link>\n `\n }\n}\n"],"names":["_DapDSSkipLink","DdsElement","html","clsx","DapDSLink","unsafeCSS","styles","DapDSSkipLink","__decorateClass","property"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-link.component.js","sources":["../../../src/components/skip-link/skip-link.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { CommonSize, Placement } from '../../common/types'\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport DapDSLink from '../link/link.component'\nimport styles from './skip-link.scss?inline'\n\n/**\n * `dap-ds-skip-link`\n * @summary A skip link is a link that allows keyboard users to skip to the main content of a page.\n * @element dap-ds-skip-link\n * @title - Skip link\n *\n * @slot - The content of the skip link.\n *\n * @csspart base - The main skip link container.\n * @csspart text - The text container of the skip link.\n * @csspart high-contrast - The high contrast outline container.\n *\n * @cssproperty --dds-skip-link-border-color - Border color for the high contrast outline (default: var(--dds-border-neutral-transparent-interactive, #fff500))\n * @cssproperty --dds-skip-link-border-width - Border width for the high contrast outline (default: var(--dds-border-width-large))\n * @cssproperty --dds-skip-link-border-width-active - Border width for the active state (default: var(--dds-border-width-xlarge))\n * @cssproperty --dds-skip-link-border-radius - Border radius of the skip link (default: var(--dds-radius-small))\n * @cssproperty --dds-skip-link-padding-sm - Padding for small size variant (default: var(--dds-spacing-200))\n * @cssproperty --dds-skip-link-padding-lg - Padding for large size variant (default: var(--dds-spacing-400))\n * @cssproperty --dds-skip-link-text-underline-offset - Underline offset for the text (default: 3px)\n * @cssproperty --dds-skip-link-z-index - Z-index of the skip link (default: var(--dds-z-index-100))\n */\nexport default class DapDSSkipLink extends DdsElement {\n static tagName = 'dap-ds-skip-link'\n\n static dependencies = {\n 'dap-ds-link': DapDSLink,\n }\n\n /** The placement of the skip link.\n * @type {'left' | 'center'}\n */\n @property({ reflect: true }) placement: Placement\n\n /** The href of the skip link */\n @property() href: string = '#'\n\n /** The size of the skip link\n * @type {'sm' | 'lg'}\n */\n @property() size: CommonSize = 'sm'\n\n /** Whether the skip link should have an underline */\n @property({ type: Boolean }) noUnderline = false\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`\n <dap-ds-link\n ?noUnderLine=${this.noUnderline}\n part=\"base\"\n variant=\"brand\"\n href=${this.href}\n class=${clsx(\n 'skip-link',\n `skip-link--${this.size}`,\n `skip-link--${this.placement}`,\n )}>\n <span part=\"text\" class=\"skip-link__text\">\n <slot></slot>\n </span>\n <span\n part=\"high-contrast\"\n class=${clsx(\n 'skip-link__high-contrast',\n `skip-link__high-contrast--${this.size}`,\n )}></span>\n </dap-ds-link>\n `\n }\n}\n"],"names":["_DapDSSkipLink","DdsElement","html","clsx","DapDSLink","unsafeCSS","styles","DapDSSkipLink","__decorateClass","property"],"mappings":";;;;;;;;;;;;AA+BA,MAAqBA,IAArB,MAAqBA,UAAsBC,EAAW;AAAA,EAAtD,cAAA;AAAA,UAAA,GAAA,SAAA,GAa6B,KAAA,OAAA,KAKI,KAAA,OAAA,MAGY,KAAA,cAAA;AAAA,EAAA;AAAA,EAI3C,SAAS;AACA,WAAAC;AAAA;AAAA,uBAEY,KAAK,WAAW;AAAA;AAAA;AAAA,eAGxB,KAAK,IAAI;AAAA,gBACRC;AAAA,MACN;AAAA,MACA,cAAc,KAAK,IAAI;AAAA,MACvB,cAAc,KAAK,SAAS;AAAA,IAAA,CAC7B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAMSA;AAAA,MACN;AAAA,MACA,6BAA6B,KAAK,IAAI;AAAA,IAAA,CACvC;AAAA;AAAA;AAAA,EAAA;AAIX;AAhDEH,EAAO,UAAU,oBAEjBA,EAAO,eAAe;AAAA,EACpB,eAAeI;AACjB,GAkBgBJ,EAAA,SAASK,EAAUC,CAAM;AAvB3C,IAAqBC,IAArBP;AAU+BQ,EAAA;AAAA,EAA5BC,EAAS,EAAE,SAAS,GAAM,CAAA;AAAA,GAVRF,EAUU,WAAA,WAAA;AAGjBC,EAAA;AAAA,EAAXC,EAAS;AAAA,GAbSF,EAaP,WAAA,MAAA;AAKAC,EAAA;AAAA,EAAXC,EAAS;AAAA,GAlBSF,EAkBP,WAAA,MAAA;AAGiBC,EAAA;AAAA,EAA5BC,EAAS,EAAE,MAAM,QAAS,CAAA;AAAA,GArBRF,EAqBU,WAAA,aAAA;"}
|
|
@@ -20,7 +20,9 @@ import { default as DapDSStack } from '../stack/stack.component';
|
|
|
20
20
|
* @csspart base - Main snackbar container.
|
|
21
21
|
* @csspart text - The text part of the snackbar.
|
|
22
22
|
* @csspart closebutton - The close button part of the component.
|
|
23
|
-
* @csspart icon - The icon
|
|
23
|
+
* @csspart close-icon - The icon of the close button.
|
|
24
|
+
* @csspart actions - The actions container of the snackbar.
|
|
25
|
+
* @csspart actions-base - The base of the actions container.
|
|
24
26
|
*
|
|
25
27
|
* @cssproperty --dds-snackbar-width - Width of the snackbar (default: clamp(var(--dds-spacing-6000), 20vw, var(--dds-containers-xsmall)))
|
|
26
28
|
* @cssproperty --dds-snackbar-gap - Gap between snackbar elements (default: var(--dds-spacing-400))
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ifDefined as a } from "../../node_modules/lit-html/directives/if-defined.js";
|
|
8
|
-
import { styleMap as b } from "../../node_modules/lit-html/directives/style-map.js";
|
|
9
|
-
import { html as o } from "../../node_modules/lit-html/static.js";
|
|
10
|
-
import { translate as y } from "../../node_modules/lit-i18n/src/lit-i18n.js";
|
|
1
|
+
import { clsx as h } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { unsafeCSS as m, nothing as p } from "lit";
|
|
3
|
+
import { property as o, state as b } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as a } from "lit/directives/if-defined.js";
|
|
5
|
+
import { styleMap as y } from "lit/directives/style-map.js";
|
|
6
|
+
import { html as e } from "lit/static-html.js";
|
|
11
7
|
import { DdsElement as k } from "../../internal/dds-hu-element.js";
|
|
12
8
|
import g from "../button/button.component.js";
|
|
13
9
|
import $ from "../icon/icon.component.js";
|
|
@@ -15,32 +11,31 @@ import _ from "../icon-button/icon-button.component.js";
|
|
|
15
11
|
import v from "../link/link.component.js";
|
|
16
12
|
import T from "../stack/stack.component.js";
|
|
17
13
|
import x from "./snackbar-message.scss.js";
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return e && C(t, c, e), e;
|
|
14
|
+
var B = Object.defineProperty, i = (u, t, c, l) => {
|
|
15
|
+
for (var r = void 0, d = u.length - 1, f; d >= 0; d--)
|
|
16
|
+
(f = u[d]) && (r = f(t, c, r) || r);
|
|
17
|
+
return r && B(t, c, r), r;
|
|
23
18
|
};
|
|
24
19
|
const n = class n extends k {
|
|
25
20
|
constructor() {
|
|
26
21
|
super(...arguments), this.actions = [], this.message = "", this.closeButton = "true", this.alertType = "default", this.position = "bottom-right", this.closeButtonTestId = "snackbar-close-button", this.isClosing = !1;
|
|
27
22
|
}
|
|
28
23
|
getActions() {
|
|
29
|
-
return this.actions && this.actions.length > 0 ?
|
|
24
|
+
return this.actions && this.actions.length > 0 ? e`<dap-ds-stack
|
|
30
25
|
part="actions"
|
|
31
26
|
exportparts="base:actions-base"
|
|
32
27
|
class="snackbar__actions"
|
|
33
28
|
direction="row">
|
|
34
29
|
${this.actions.map((t, c) => {
|
|
35
30
|
var l;
|
|
36
|
-
return t && typeof t.func == "function" ?
|
|
31
|
+
return t && typeof t.func == "function" ? e`<dap-ds-button
|
|
37
32
|
variant=${(l = t.variant) != null ? l : "primary"}
|
|
38
33
|
data-testid=${`snackbar-action-${c}`}
|
|
39
34
|
@click=${() => {
|
|
40
35
|
t.func && t.func();
|
|
41
36
|
}}
|
|
42
37
|
>${a(t.text)}</dap-ds-button
|
|
43
|
-
>` :
|
|
38
|
+
>` : e`<dap-ds-link
|
|
44
39
|
class="snackbar__link"
|
|
45
40
|
href=${a(t.href)}
|
|
46
41
|
target="${a(t.target)}"
|
|
@@ -63,7 +58,7 @@ const n = class n extends k {
|
|
|
63
58
|
t = "error-warning-fill";
|
|
64
59
|
break;
|
|
65
60
|
}
|
|
66
|
-
return t.length > 0 ?
|
|
61
|
+
return t.length > 0 ? e`<dap-ds-icon
|
|
67
62
|
name=${t}
|
|
68
63
|
size="lg"
|
|
69
64
|
class="snackbar__alert-icon"></dap-ds-icon>` : p;
|
|
@@ -75,31 +70,31 @@ const n = class n extends k {
|
|
|
75
70
|
}
|
|
76
71
|
render() {
|
|
77
72
|
var t;
|
|
78
|
-
return
|
|
73
|
+
return e`<div
|
|
79
74
|
part="base"
|
|
80
|
-
class=${
|
|
75
|
+
class=${h(
|
|
81
76
|
"snackbar",
|
|
82
77
|
`snackbar--${this.alertType}`,
|
|
83
78
|
`snackbar--position-${this.position}`,
|
|
84
79
|
{ "snackbar--closing": this.isClosing }
|
|
85
80
|
)}
|
|
86
|
-
style=${
|
|
81
|
+
style=${y((t = this.customStyle) != null ? t : {})}>
|
|
87
82
|
<div class="snackbar__main">
|
|
88
83
|
<div class="snackbar__left-group">
|
|
89
84
|
${this.getAlertTypeIcon()}
|
|
90
85
|
<div class="snackbar__content">
|
|
91
|
-
${this.message ?
|
|
86
|
+
${this.message ? e`<span part="text" class="snackbar__text"
|
|
92
87
|
>${this.message}</span
|
|
93
|
-
>` :
|
|
94
|
-
${this.actions ?
|
|
88
|
+
>` : e`<slot></slot>`}
|
|
89
|
+
${this.actions ? e` ${this.getActions()}` : p}
|
|
95
90
|
</div>
|
|
96
91
|
</div>
|
|
97
|
-
${this.closeButton === "true" ?
|
|
92
|
+
${this.closeButton === "true" ? e`<dap-ds-icon-button
|
|
98
93
|
@click=${() => this._close(this.id)}
|
|
99
94
|
part="closebutton"
|
|
100
95
|
data-testid=${this.closeButtonTestId}
|
|
101
96
|
class="snackbar__close"
|
|
102
|
-
aria-label=${
|
|
97
|
+
aria-label=${this.localize.t("close")}>
|
|
103
98
|
<dap-ds-icon
|
|
104
99
|
part="close-icon"
|
|
105
100
|
class="snackbar__close-icon"
|
|
@@ -115,31 +110,31 @@ n.tagName = "dap-ds-snackbar-message", n.dependencies = {
|
|
|
115
110
|
"dap-ds-link": v,
|
|
116
111
|
"dap-ds-icon": $,
|
|
117
112
|
"dap-ds-icon-button": _
|
|
118
|
-
}, n.styles =
|
|
113
|
+
}, n.styles = m(x);
|
|
119
114
|
let s = n;
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
i([
|
|
116
|
+
o({ type: Array })
|
|
122
117
|
], s.prototype, "actions");
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
i([
|
|
119
|
+
o({ type: String })
|
|
125
120
|
], s.prototype, "message");
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
i([
|
|
122
|
+
o({ type: String, reflect: !0 })
|
|
128
123
|
], s.prototype, "closeButton");
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
i([
|
|
125
|
+
o({ type: String })
|
|
131
126
|
], s.prototype, "alertType");
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
i([
|
|
128
|
+
o({ type: Object })
|
|
134
129
|
], s.prototype, "customStyle");
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
i([
|
|
131
|
+
o({ type: String })
|
|
137
132
|
], s.prototype, "position");
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
i([
|
|
134
|
+
o()
|
|
140
135
|
], s.prototype, "closeButtonTestId");
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
i([
|
|
137
|
+
b()
|
|
143
138
|
], s.prototype, "isClosing");
|
|
144
139
|
export {
|
|
145
140
|
s as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar-message.component.js","sources":["../../../src/components/snackbar/snackbar-message.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { nothing, TemplateResult, unsafeCSS } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { html } from 'lit/static-html.js'\nimport { translate } from 'lit-i18n'\n\nimport { ActionType, AlertType, SnackbarPosition } from '@/common/types'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport DapDSButton from '../button/button.component'\nimport DapDSIcon from '../icon/icon.component'\nimport DapDSIconButton from '../icon-button/icon-button.component'\nimport DapDSLink from '../link/link.component'\nimport DapDSStack from '../stack/stack.component'\nimport styles from './snackbar-message.scss?inline'\n\n/**\n * `dap-ds-snackbar-message`\n * @summary The Snackbar component shows a sliding message to the user.\n * @element dap-ds-snackbar-message\n * @title - Snackbar message\n * @group snackbar\n *\n * @event {{ id: string }} dds-close - Fires when the snackbar closes.\n *\n * @slot default - The content of the snackbar.\n *\n * @csspart base - Main snackbar container.\n * @csspart text - The text part of the snackbar.\n * @csspart closebutton - The close button part of the component.\n * @csspart icon - The icon part of the close button.\n *\n * @cssproperty --dds-snackbar-width - Width of the snackbar (default: clamp(var(--dds-spacing-6000), 20vw, var(--dds-containers-xsmall)))\n * @cssproperty --dds-snackbar-gap - Gap between snackbar elements (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-padding - Padding inside the snackbar (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-margin-bottom - Bottom margin of the snackbar (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-transition - Transition property for the snackbar (default: transform var(--dds-transition-slow) var(--dds-easing-ease-out)allow-discrete, opacity var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete, margin var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete, box-shadow var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete)\n * @cssproperty --dds-snackbar-border-radius - Border radius of the snackbar (default: var(--dds-radius-base))\n * @cssproperty --dds-snackbar-font-size - Font size used in the snackbar (default: var(--dds-font-sm))\n * @cssproperty --dds-snackbar-background - Background color of the snackbar (default: var(--dds-snackbar-error-background))\n * @cssproperty --dds-snackbar-border - Border color of the snackbar (default: var(--dds-snackbar-error-border))\n * @cssproperty --dds-snackbar-text - Text color of the snackbar (default: var(--dds-snackbar-variant-text))\n * @cssproperty --dds-snackbar-icon - Icon color of the snackbar (default: var(--dds-snackbar-variant-icon))\n * @cssproperty --dds-snackbar-link - Link color of the snackbar (default: var(--dds-snackbar-variant-link))\n * @cssproperty --dds-snackbar-information-background - Background color for information variant (default: var(--dds-background-informative-medium))\n * @cssproperty --dds-snackbar-information-border - Border color for information variant (default: var(--dds-border-width-base) solidvar(--dds-border-informative-subtle))\n * @cssproperty --dds-snackbar-information-icon - Icon color for information variant (default: var(--dds-icon-informative-subtle))\n * @cssproperty --dds-snackbar-success-background - Background color for success variant (default: var(--dds-background-positive-medium))\n * @cssproperty --dds-snackbar-success-border - Border color for success variant (default: var(--dds-border-width-base) solidvar(--dds-border-positive-subtle))\n * @cssproperty --dds-snackbar-success-icon - Icon color for success variant (default: var(--dds-icon-positive-subtle))\n * @cssproperty --dds-snackbar-error-background - Background color for error variant (default: var(--dds-background-negative-medium))\n * @cssproperty --dds-snackbar-error-border - Border color for error variant (default: var(--dds-border-width-base) solidvar(--dds-border-negative-subtle))\n * @cssproperty --dds-snackbar-error-icon - Icon color for error variant (default: var(--dds-icon-negative-subtle))\n * @cssproperty --dds-snackbar-variant-text - Text color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-variant-icon - Icon color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-variant-link - Link color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-animation-duration - Duration of entrance animations (default: 0.3s)\n * @cssproperty --dds-snackbar-animation-timing - Timing function for animations (default: ease-out)\n */\nexport default class DapDSSnackbarMessage extends DdsElement {\n static tagName = 'dap-ds-snackbar-message'\n\n static dependencies = {\n 'dap-ds-stack': DapDSStack,\n 'dap-ds-button': DapDSButton,\n 'dap-ds-link': DapDSLink,\n 'dap-ds-icon': DapDSIcon,\n 'dap-ds-icon-button': DapDSIconButton,\n }\n\n /** The actions of the snackbar item. */\n @property({ type: Array }) actions?: ActionType[] = []\n /** The message of the snackbar item. */\n @property({ type: String }) message = ''\n /** Whether the snackbar has a close button. */\n @property({ type: String, reflect: true }) closeButton = 'true'\n /** The message type of the snackbar item. */\n @property({ type: String }) alertType: AlertType = 'default'\n /** The custom style of the snackbar item. */\n @property({ type: Object }) customStyle?: Record<string, string>\n /** The position of the snackbar container for directional animations. */\n @property({ type: String }) position: SnackbarPosition = 'bottom-right'\n /** `data-testid` for the snackbar close button. */\n @property() closeButtonTestId = 'snackbar-close-button'\n\n @state() private isClosing = false\n\n static readonly styles = unsafeCSS(styles)\n\n private getActions(): TemplateResult | typeof nothing {\n if (this.actions && this.actions.length > 0) {\n return html`<dap-ds-stack\n part=\"actions\"\n exportparts=\"base:actions-base\"\n class=\"snackbar__actions\"\n direction=\"row\">\n ${this.actions.map((actionItem: ActionType, index: number) => {\n if (actionItem && typeof actionItem.func === 'function') {\n return html`<dap-ds-button\n variant=${actionItem.variant ?? 'primary'}\n data-testid=${`snackbar-action-${index}`}\n @click=${() => {\n if (actionItem.func) {\n actionItem.func()\n }\n }}\n >${ifDefined(actionItem.text)}</dap-ds-button\n >`\n } else {\n return html`<dap-ds-link\n class=\"snackbar__link\"\n href=${ifDefined(actionItem.href)}\n target=\"${ifDefined(actionItem.target)}\"\n rel=${ifDefined(actionItem.target ? actionItem.rel : undefined)}\n >${ifDefined(actionItem.text)}</dap-ds-link\n >`\n }\n })}\n </dap-ds-stack>`\n }\n return nothing\n }\n\n private getAlertTypeIcon(): TemplateResult | typeof nothing {\n let iconName = ''\n switch (this.alertType) {\n case 'information':\n iconName = 'information-2-fill'\n break\n case 'successful':\n iconName = 'checkbox-circle-fill'\n break\n case 'error':\n iconName = 'error-warning-fill'\n break\n default:\n }\n return iconName.length > 0\n ? html`<dap-ds-icon\n name=${iconName}\n size=\"lg\"\n class=\"snackbar__alert-icon\"></dap-ds-icon>`\n : nothing\n }\n\n private _close(id: string) {\n if (id) {\n this.isClosing = true\n // Wait for the closing animation to complete before emitting the close event\n setTimeout(() => {\n this.emit('dds-close', { id })\n }, 300) // Match the animation duration\n }\n }\n\n render() {\n return html`<div\n part=\"base\"\n class=${clsx(\n 'snackbar',\n `snackbar--${this.alertType}`,\n `snackbar--position-${this.position}`,\n { 'snackbar--closing': this.isClosing },\n )}\n style=${styleMap(this.customStyle ?? {})}>\n <div class=\"snackbar__main\">\n <div class=\"snackbar__left-group\">\n ${this.getAlertTypeIcon()}\n <div class=\"snackbar__content\">\n ${this.message\n ? html`<span part=\"text\" class=\"snackbar__text\"\n >${this.message}</span\n >`\n : html`<slot></slot>`}\n ${this.actions ? html` ${this.getActions()}` : nothing}\n </div>\n </div>\n ${this.closeButton === 'true'\n ? html`<dap-ds-icon-button\n @click=${() => this._close(this.id)}\n part=\"closebutton\"\n data-testid=${this.closeButtonTestId}\n class=\"snackbar__close\"\n aria-label=${translate('close')}>\n <dap-ds-icon\n part=\"close-icon\"\n class=\"snackbar__close-icon\"\n name=\"close-line\"></dap-ds-icon>\n </dap-ds-icon-button>`\n : nothing}\n </div>\n </div>`\n }\n}\n"],"names":["_DapDSSnackbarMessage","DdsElement","html","actionItem","index","_a","ifDefined","nothing","iconName","id","clsx","styleMap","translate","DapDSStack","DapDSButton","DapDSLink","DapDSIcon","DapDSIconButton","unsafeCSS","styles","DapDSSnackbarMessage","__decorateClass","property","state"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"snackbar-message.component.js","sources":["../../../src/components/snackbar/snackbar-message.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { nothing, TemplateResult, unsafeCSS } from 'lit'\nimport { property, state } from 'lit/decorators.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { html } from 'lit/static-html.js'\n\nimport { ActionType, AlertType, SnackbarPosition } from '@/common/types'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport DapDSButton from '../button/button.component'\nimport DapDSIcon from '../icon/icon.component'\nimport DapDSIconButton from '../icon-button/icon-button.component'\nimport DapDSLink from '../link/link.component'\nimport DapDSStack from '../stack/stack.component'\nimport styles from './snackbar-message.scss?inline'\n\n/**\n * `dap-ds-snackbar-message`\n * @summary The Snackbar component shows a sliding message to the user.\n * @element dap-ds-snackbar-message\n * @title - Snackbar message\n * @group snackbar\n *\n * @event {{ id: string }} dds-close - Fires when the snackbar closes.\n *\n * @slot default - The content of the snackbar.\n *\n * @csspart base - Main snackbar container.\n * @csspart text - The text part of the snackbar.\n * @csspart closebutton - The close button part of the component.\n * @csspart close-icon - The icon of the close button.\n * @csspart actions - The actions container of the snackbar.\n * @csspart actions-base - The base of the actions container.\n *\n * @cssproperty --dds-snackbar-width - Width of the snackbar (default: clamp(var(--dds-spacing-6000), 20vw, var(--dds-containers-xsmall)))\n * @cssproperty --dds-snackbar-gap - Gap between snackbar elements (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-padding - Padding inside the snackbar (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-margin-bottom - Bottom margin of the snackbar (default: var(--dds-spacing-400))\n * @cssproperty --dds-snackbar-transition - Transition property for the snackbar (default: transform var(--dds-transition-slow) var(--dds-easing-ease-out)allow-discrete, opacity var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete, margin var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete, box-shadow var(--dds-transition-slow) var(--dds-easing-ease-out) allow-discrete)\n * @cssproperty --dds-snackbar-border-radius - Border radius of the snackbar (default: var(--dds-radius-base))\n * @cssproperty --dds-snackbar-font-size - Font size used in the snackbar (default: var(--dds-font-sm))\n * @cssproperty --dds-snackbar-background - Background color of the snackbar (default: var(--dds-snackbar-error-background))\n * @cssproperty --dds-snackbar-border - Border color of the snackbar (default: var(--dds-snackbar-error-border))\n * @cssproperty --dds-snackbar-text - Text color of the snackbar (default: var(--dds-snackbar-variant-text))\n * @cssproperty --dds-snackbar-icon - Icon color of the snackbar (default: var(--dds-snackbar-variant-icon))\n * @cssproperty --dds-snackbar-link - Link color of the snackbar (default: var(--dds-snackbar-variant-link))\n * @cssproperty --dds-snackbar-information-background - Background color for information variant (default: var(--dds-background-informative-medium))\n * @cssproperty --dds-snackbar-information-border - Border color for information variant (default: var(--dds-border-width-base) solidvar(--dds-border-informative-subtle))\n * @cssproperty --dds-snackbar-information-icon - Icon color for information variant (default: var(--dds-icon-informative-subtle))\n * @cssproperty --dds-snackbar-success-background - Background color for success variant (default: var(--dds-background-positive-medium))\n * @cssproperty --dds-snackbar-success-border - Border color for success variant (default: var(--dds-border-width-base) solidvar(--dds-border-positive-subtle))\n * @cssproperty --dds-snackbar-success-icon - Icon color for success variant (default: var(--dds-icon-positive-subtle))\n * @cssproperty --dds-snackbar-error-background - Background color for error variant (default: var(--dds-background-negative-medium))\n * @cssproperty --dds-snackbar-error-border - Border color for error variant (default: var(--dds-border-width-base) solidvar(--dds-border-negative-subtle))\n * @cssproperty --dds-snackbar-error-icon - Icon color for error variant (default: var(--dds-icon-negative-subtle))\n * @cssproperty --dds-snackbar-variant-text - Text color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-variant-icon - Icon color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-variant-link - Link color for information, success, and error variants (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-snackbar-animation-duration - Duration of entrance animations (default: 0.3s)\n * @cssproperty --dds-snackbar-animation-timing - Timing function for animations (default: ease-out)\n */\nexport default class DapDSSnackbarMessage extends DdsElement {\n static tagName = 'dap-ds-snackbar-message'\n\n static dependencies = {\n 'dap-ds-stack': DapDSStack,\n 'dap-ds-button': DapDSButton,\n 'dap-ds-link': DapDSLink,\n 'dap-ds-icon': DapDSIcon,\n 'dap-ds-icon-button': DapDSIconButton,\n }\n\n /** The actions of the snackbar item. */\n @property({ type: Array }) actions?: ActionType[] = []\n /** The message of the snackbar item. */\n @property({ type: String }) message = ''\n /** Whether the snackbar has a close button. */\n @property({ type: String, reflect: true }) closeButton = 'true'\n /** The message type of the snackbar item. */\n @property({ type: String }) alertType: AlertType = 'default'\n /** The custom style of the snackbar item. */\n @property({ type: Object }) customStyle?: Record<string, string>\n /** The position of the snackbar container for directional animations. */\n @property({ type: String }) position: SnackbarPosition = 'bottom-right'\n /** `data-testid` for the snackbar close button. */\n @property() closeButtonTestId = 'snackbar-close-button'\n\n @state() private isClosing = false\n\n static readonly styles = unsafeCSS(styles)\n\n private getActions(): TemplateResult | typeof nothing {\n if (this.actions && this.actions.length > 0) {\n return html`<dap-ds-stack\n part=\"actions\"\n exportparts=\"base:actions-base\"\n class=\"snackbar__actions\"\n direction=\"row\">\n ${this.actions.map((actionItem: ActionType, index: number) => {\n if (actionItem && typeof actionItem.func === 'function') {\n return html`<dap-ds-button\n variant=${actionItem.variant ?? 'primary'}\n data-testid=${`snackbar-action-${index}`}\n @click=${() => {\n if (actionItem.func) {\n actionItem.func()\n }\n }}\n >${ifDefined(actionItem.text)}</dap-ds-button\n >`\n } else {\n return html`<dap-ds-link\n class=\"snackbar__link\"\n href=${ifDefined(actionItem.href)}\n target=\"${ifDefined(actionItem.target)}\"\n rel=${ifDefined(actionItem.target ? actionItem.rel : undefined)}\n >${ifDefined(actionItem.text)}</dap-ds-link\n >`\n }\n })}\n </dap-ds-stack>`\n }\n return nothing\n }\n\n private getAlertTypeIcon(): TemplateResult | typeof nothing {\n let iconName = ''\n switch (this.alertType) {\n case 'information':\n iconName = 'information-2-fill'\n break\n case 'successful':\n iconName = 'checkbox-circle-fill'\n break\n case 'error':\n iconName = 'error-warning-fill'\n break\n default:\n }\n return iconName.length > 0\n ? html`<dap-ds-icon\n name=${iconName}\n size=\"lg\"\n class=\"snackbar__alert-icon\"></dap-ds-icon>`\n : nothing\n }\n\n private _close(id: string) {\n if (id) {\n this.isClosing = true\n // Wait for the closing animation to complete before emitting the close event\n setTimeout(() => {\n this.emit('dds-close', { id })\n }, 300) // Match the animation duration\n }\n }\n\n render() {\n return html`<div\n part=\"base\"\n class=${clsx(\n 'snackbar',\n `snackbar--${this.alertType}`,\n `snackbar--position-${this.position}`,\n { 'snackbar--closing': this.isClosing },\n )}\n style=${styleMap(this.customStyle ?? {})}>\n <div class=\"snackbar__main\">\n <div class=\"snackbar__left-group\">\n ${this.getAlertTypeIcon()}\n <div class=\"snackbar__content\">\n ${this.message\n ? html`<span part=\"text\" class=\"snackbar__text\"\n >${this.message}</span\n >`\n : html`<slot></slot>`}\n ${this.actions ? html` ${this.getActions()}` : nothing}\n </div>\n </div>\n ${this.closeButton === 'true'\n ? html`<dap-ds-icon-button\n @click=${() => this._close(this.id)}\n part=\"closebutton\"\n data-testid=${this.closeButtonTestId}\n class=\"snackbar__close\"\n aria-label=${this.localize.t('close')}>\n <dap-ds-icon\n part=\"close-icon\"\n class=\"snackbar__close-icon\"\n name=\"close-line\"></dap-ds-icon>\n </dap-ds-icon-button>`\n : nothing}\n </div>\n </div>`\n }\n}\n"],"names":["_DapDSSnackbarMessage","DdsElement","html","actionItem","index","_a","ifDefined","nothing","iconName","id","clsx","styleMap","DapDSStack","DapDSButton","DapDSLink","DapDSIcon","DapDSIconButton","unsafeCSS","styles","DapDSSnackbarMessage","__decorateClass","property","state"],"mappings":"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"}
|
|
@@ -7,7 +7,6 @@ import { default as DapDSSnackbarMessage } from './snackbar-message.component';
|
|
|
7
7
|
* @element dap-ds-snackbar
|
|
8
8
|
* @title - Snackbar
|
|
9
9
|
*
|
|
10
|
-
* @csspart host - The host element
|
|
11
10
|
* @csspart message - The message part of the snackbar
|
|
12
11
|
* @csspart message-base - The base part of the message
|
|
13
12
|
* @csspart message-text - The text part of the message
|
|
@@ -11,36 +11,30 @@ var m = (t, e, s) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return t;
|
|
12
12
|
}, c = (t, e) => v(t, k(e));
|
|
13
13
|
import { clsx as C } from "../../node_modules/clsx/dist/clsx.js";
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
import { DdsElement as A } from "../../internal/dds-hu-element.js";
|
|
24
|
-
import x from "./snackbar.scss.js";
|
|
25
|
-
import $ from "./snackbar-message.component.js";
|
|
26
|
-
import { unsafeCSS as S } from "../../node_modules/@lit/reactive-element/css-tag.js";
|
|
27
|
-
import { translate as L } from "../../node_modules/lit-i18n/src/lit-i18n.js";
|
|
28
|
-
var N = Object.defineProperty, l = (t, e, s, o) => {
|
|
14
|
+
import { unsafeCSS as T } from "lit";
|
|
15
|
+
import { property as h, state as w } from "lit/decorators.js";
|
|
16
|
+
import { ifDefined as b } from "lit/directives/if-defined.js";
|
|
17
|
+
import { repeat as A } from "lit/directives/repeat.js";
|
|
18
|
+
import { html as f } from "lit/static-html.js";
|
|
19
|
+
import { DdsElement as x } from "../../internal/dds-hu-element.js";
|
|
20
|
+
import $ from "./snackbar.scss.js";
|
|
21
|
+
import S from "./snackbar-message.component.js";
|
|
22
|
+
var L = Object.defineProperty, l = (t, e, s, a) => {
|
|
29
23
|
for (var i = void 0, n = t.length - 1, u; n >= 0; n--)
|
|
30
24
|
(u = t[n]) && (i = u(e, s, i) || i);
|
|
31
|
-
return i &&
|
|
25
|
+
return i && L(e, s, i), i;
|
|
32
26
|
};
|
|
33
27
|
const g = "dds-snackbar-announcer";
|
|
34
28
|
typeof window != "undefined" && (window.showDapSnackbar = (t, e) => {
|
|
35
|
-
|
|
29
|
+
o.show(t, e);
|
|
36
30
|
}, window.closeAllDapSnackbars = () => {
|
|
37
|
-
|
|
31
|
+
o.closeAll();
|
|
38
32
|
});
|
|
39
|
-
const d = class d extends
|
|
33
|
+
const d = class d extends x {
|
|
40
34
|
constructor() {
|
|
41
35
|
super(...arguments), this.maxItems = 4, this.position = "bottom-right", this.duration = 6e3, this.announceMessages = !0, this.messages = [], this.idCounter = 0, this.timeouts = /* @__PURE__ */ new Map(), this.handleShowSnackbarEvent = (e) => {
|
|
42
|
-
const { message: s, options:
|
|
43
|
-
this.addMessage(s,
|
|
36
|
+
const { message: s, options: a } = e.detail;
|
|
37
|
+
this.addMessage(s, a);
|
|
44
38
|
}, this.handleCloseAllEvent = () => {
|
|
45
39
|
this.closeAll();
|
|
46
40
|
}, this.handleKeyDown = (e) => {
|
|
@@ -119,13 +113,13 @@ const d = class d extends A {
|
|
|
119
113
|
console.warn("DapDSSnackbar: Message must be a non-empty string");
|
|
120
114
|
return;
|
|
121
115
|
}
|
|
122
|
-
const
|
|
116
|
+
const a = this.generateId();
|
|
123
117
|
this.messages.length >= this.maxItems && this.sliceMessage();
|
|
124
118
|
const i = r({
|
|
125
|
-
id:
|
|
119
|
+
id: a,
|
|
126
120
|
message: e.trim()
|
|
127
121
|
}, s && { options: s });
|
|
128
|
-
this.messages = [...this.messages, i], this.elapseMessages(
|
|
122
|
+
this.messages = [...this.messages, i], this.elapseMessages(a, s == null ? void 0 : s.duration, s == null ? void 0 : s.persistent), this.announceMessages && this.announceToScreenReader(e);
|
|
129
123
|
}
|
|
130
124
|
sliceMessage() {
|
|
131
125
|
this.messages && (this.messages = this.messages.slice(1));
|
|
@@ -135,8 +129,8 @@ const d = class d extends A {
|
|
|
135
129
|
(s) => s.id !== e
|
|
136
130
|
), this.clearTimeout(e));
|
|
137
131
|
}
|
|
138
|
-
elapseMessages(e, s,
|
|
139
|
-
if (
|
|
132
|
+
elapseMessages(e, s, a) {
|
|
133
|
+
if (a)
|
|
140
134
|
return;
|
|
141
135
|
const i = s != null ? s : this.duration, n = setTimeout(() => {
|
|
142
136
|
this.removeMessage(e);
|
|
@@ -182,9 +176,9 @@ const d = class d extends A {
|
|
|
182
176
|
clip: "rect(0 0 0 0)",
|
|
183
177
|
whiteSpace: "nowrap"
|
|
184
178
|
}), document.body.appendChild(s)), s.textContent = "";
|
|
185
|
-
const
|
|
179
|
+
const a = s;
|
|
186
180
|
setTimeout(() => {
|
|
187
|
-
|
|
181
|
+
a.textContent = e;
|
|
188
182
|
}, 100);
|
|
189
183
|
}
|
|
190
184
|
_closeMessage(e) {
|
|
@@ -195,12 +189,12 @@ const d = class d extends A {
|
|
|
195
189
|
return f`<div
|
|
196
190
|
class=${C("snackbar", `snackbar--${this.position}`)}
|
|
197
191
|
role="region"
|
|
198
|
-
aria-label=${
|
|
199
|
-
${
|
|
192
|
+
aria-label=${this.localize.t("snackbar.notifications")}>
|
|
193
|
+
${A(
|
|
200
194
|
this.messages,
|
|
201
195
|
(e) => e.id,
|
|
202
196
|
(e) => {
|
|
203
|
-
var s,
|
|
197
|
+
var s, a, i, n;
|
|
204
198
|
return f`
|
|
205
199
|
<dap-ds-snackbar-message
|
|
206
200
|
part="message"
|
|
@@ -209,7 +203,7 @@ const d = class d extends A {
|
|
|
209
203
|
id=${e.id}
|
|
210
204
|
message=${e.message}
|
|
211
205
|
alertType=${b((s = e == null ? void 0 : e.options) == null ? void 0 : s.alertType)}
|
|
212
|
-
.actions=${(
|
|
206
|
+
.actions=${(a = e == null ? void 0 : e.options) == null ? void 0 : a.actions}
|
|
213
207
|
closeButton=${b((i = e == null ? void 0 : e.options) == null ? void 0 : i.closeButton)}
|
|
214
208
|
.customStyle=${(n = e == null ? void 0 : e.options) == null ? void 0 : n.customStyle}
|
|
215
209
|
position=${this.position}></dap-ds-snackbar-message>
|
|
@@ -220,28 +214,28 @@ const d = class d extends A {
|
|
|
220
214
|
}
|
|
221
215
|
};
|
|
222
216
|
d.tagName = "dap-ds-snackbar", d.dependencies = {
|
|
223
|
-
"dap-ds-snackbar-message":
|
|
224
|
-
}, d.styles =
|
|
225
|
-
let
|
|
217
|
+
"dap-ds-snackbar-message": S
|
|
218
|
+
}, d.styles = T($);
|
|
219
|
+
let o = d;
|
|
226
220
|
l([
|
|
227
221
|
h({ type: Number })
|
|
228
|
-
],
|
|
222
|
+
], o.prototype, "maxItems");
|
|
229
223
|
l([
|
|
230
224
|
h({ type: String })
|
|
231
|
-
],
|
|
225
|
+
], o.prototype, "position");
|
|
232
226
|
l([
|
|
233
227
|
h({ type: Number })
|
|
234
|
-
],
|
|
228
|
+
], o.prototype, "duration");
|
|
235
229
|
l([
|
|
236
230
|
h({ type: Boolean })
|
|
237
|
-
],
|
|
231
|
+
], o.prototype, "announceMessages");
|
|
238
232
|
l([
|
|
239
233
|
w()
|
|
240
|
-
],
|
|
234
|
+
], o.prototype, "messages");
|
|
241
235
|
l([
|
|
242
236
|
w()
|
|
243
|
-
],
|
|
237
|
+
], o.prototype, "idCounter");
|
|
244
238
|
export {
|
|
245
|
-
|
|
239
|
+
o as default
|
|
246
240
|
};
|
|
247
241
|
//# sourceMappingURL=snackbar.component.js.map
|