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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
/**
|
|
3
|
+
* `dap-ds-button-group-text` shows static text (a label, a unit, an icon) inside a `dap-ds-button-group`.
|
|
4
|
+
* It joins the group's connected styling like a button does.
|
|
5
|
+
* @element dap-ds-button-group-text
|
|
6
|
+
* @summary Non-interactive text displayed inside a button group.
|
|
7
|
+
* @title - Button Group Text
|
|
8
|
+
* @group button-group
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <dap-ds-button-group aria-label="Page size">
|
|
13
|
+
* <dap-ds-button-group-text>Per page</dap-ds-button-group-text>
|
|
14
|
+
* <dap-ds-button variant="outline">10</dap-ds-button>
|
|
15
|
+
* <dap-ds-button variant="outline">50</dap-ds-button>
|
|
16
|
+
* </dap-ds-button-group>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @slot - The text content. Can also hold an icon or a `<label>` for a grouped input.
|
|
20
|
+
*
|
|
21
|
+
* @csspart base - The text container.
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty --dds-button-group-text-background - Background color (default: var(--dds-background-neutral-subtle))
|
|
24
|
+
* @cssproperty --dds-button-group-text-border-color - Border color (default: var(--dds-border-neutral-subtle))
|
|
25
|
+
* @cssproperty --dds-button-group-text-color - Text color (default: var(--dds-text-neutral-strong))
|
|
26
|
+
* @cssproperty --dds-button-group-text-padding-x - Horizontal padding (default: var(--dds-spacing-300))
|
|
27
|
+
* @cssproperty --dds-button-group-text-border-radius - Corner radius outside a group (default: var(--dds-radius-rounded))
|
|
28
|
+
*/
|
|
29
|
+
export default class DapDSButtonGroupText extends DdsElement {
|
|
30
|
+
static tagName: string;
|
|
31
|
+
static readonly styles: import('lit').CSSResult;
|
|
32
|
+
render(): import('lit-html').TemplateResult;
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { unsafeCSS as e } from "lit";
|
|
2
|
+
import { html as r } from "lit/static-html.js";
|
|
3
|
+
import { DdsElement as m } from "../../internal/dds-hu-element.js";
|
|
4
|
+
import i from "./_styles/button-group-text.scss.js";
|
|
5
|
+
const t = class t extends m {
|
|
6
|
+
render() {
|
|
7
|
+
return r`<div part="base" class="button-group-text">
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</div>`;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
t.tagName = "dap-ds-button-group-text", t.styles = e(i);
|
|
13
|
+
let s = t;
|
|
14
|
+
export {
|
|
15
|
+
s as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=button-group-text.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group-text.component.js","sources":["../../../src/components/button-group/button-group-text.component.ts"],"sourcesContent":["import { unsafeCSS } from 'lit'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './_styles/button-group-text.scss?inline'\n\n/**\n * `dap-ds-button-group-text` shows static text (a label, a unit, an icon) inside a `dap-ds-button-group`.\n * It joins the group's connected styling like a button does.\n * @element dap-ds-button-group-text\n * @summary Non-interactive text displayed inside a button group.\n * @title - Button Group Text\n * @group button-group\n *\n * @example\n * ```html\n * <dap-ds-button-group aria-label=\"Page size\">\n * <dap-ds-button-group-text>Per page</dap-ds-button-group-text>\n * <dap-ds-button variant=\"outline\">10</dap-ds-button>\n * <dap-ds-button variant=\"outline\">50</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @slot - The text content. Can also hold an icon or a `<label>` for a grouped input.\n *\n * @csspart base - The text container.\n *\n * @cssproperty --dds-button-group-text-background - Background color (default: var(--dds-background-neutral-subtle))\n * @cssproperty --dds-button-group-text-border-color - Border color (default: var(--dds-border-neutral-subtle))\n * @cssproperty --dds-button-group-text-color - Text color (default: var(--dds-text-neutral-strong))\n * @cssproperty --dds-button-group-text-padding-x - Horizontal padding (default: var(--dds-spacing-300))\n * @cssproperty --dds-button-group-text-border-radius - Corner radius outside a group (default: var(--dds-radius-rounded))\n */\nexport default class DapDSButtonGroupText extends DdsElement {\n static tagName = 'dap-ds-button-group-text'\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`<div part=\"base\" class=\"button-group-text\">\n <slot></slot>\n </div>`\n }\n}\n"],"names":["_DapDSButtonGroupText","DdsElement","html","unsafeCSS","styles","DapDSButtonGroupText"],"mappings":";;;;AAiCA,MAAqBA,IAArB,MAAqBA,UAA6BC,EAAW;AAAA,EAK3D,SAAS;AACA,WAAAC;AAAA;AAAA;AAAA,EAAA;AAIX;AATEF,EAAO,UAAU,4BAEDA,EAAA,SAASG,EAAUC,CAAM;AAH3C,IAAqBC,IAArBL;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as DapDSButtonGroupText } from './button-group-text.component';
|
|
2
|
+
export * from './button-group-text.component';
|
|
3
|
+
export default DapDSButtonGroupText;
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'dap-ds-button-group-text': DapDSButtonGroupText;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group-text.js","sources":["../../../src/components/button-group/button-group-text.ts"],"sourcesContent":["import DapDSButtonGroupText from './button-group-text.component'\n\nexport * from './button-group-text.component'\nexport default DapDSButtonGroupText\n\nDapDSButtonGroupText.define()\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'dap-ds-button-group-text': DapDSButtonGroupText\n }\n}\n"],"names":["DapDSButtonGroupText"],"mappings":";AAKAA,EAAqB,OAAO;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
export type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
3
|
+
/**
|
|
4
|
+
* `dap-ds-button-group` visually joins related buttons into a single control.
|
|
5
|
+
* Inner corners are squared off and adjacent borders collapse into one.
|
|
6
|
+
* @element dap-ds-button-group
|
|
7
|
+
* @summary A container that groups related buttons with consistent, connected styling.
|
|
8
|
+
* @title - Button Group
|
|
9
|
+
*
|
|
10
|
+
* @example Basic Usage
|
|
11
|
+
* ```html
|
|
12
|
+
* <dap-ds-button-group aria-label="Text alignment">
|
|
13
|
+
* <dap-ds-button variant="outline">Left</dap-ds-button>
|
|
14
|
+
* <dap-ds-button variant="outline">Center</dap-ds-button>
|
|
15
|
+
* <dap-ds-button variant="outline">Right</dap-ds-button>
|
|
16
|
+
* </dap-ds-button-group>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @example Separator
|
|
20
|
+
* ```html
|
|
21
|
+
* <dap-ds-button-group aria-label="Clipboard">
|
|
22
|
+
* <dap-ds-button>Copy</dap-ds-button>
|
|
23
|
+
* <dap-ds-button-group-separator></dap-ds-button-group-separator>
|
|
24
|
+
* <dap-ds-button>Paste</dap-ds-button>
|
|
25
|
+
* </dap-ds-button-group>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @example Nested groups
|
|
29
|
+
* ```html
|
|
30
|
+
* <dap-ds-button-group aria-label="Editor toolbar">
|
|
31
|
+
* <dap-ds-button-group>...</dap-ds-button-group>
|
|
32
|
+
* <dap-ds-button-group>...</dap-ds-button-group>
|
|
33
|
+
* </dap-ds-button-group>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @slot - The grouped items: `dap-ds-button`, `dap-ds-icon-button`, `dap-ds-button-group-text`, `dap-ds-button-group-separator` or nested `dap-ds-button-group` elements.
|
|
37
|
+
*
|
|
38
|
+
* @cssproperty --dds-button-group-gap - Spacing between nested button groups (default: var(--dds-spacing-200))
|
|
39
|
+
* @cssproperty --dds-button-group-overlap - How much adjacent items overlap so their borders collapse into one (default: var(--dds-border-width-large))
|
|
40
|
+
* @cssproperty --dds-button-group-start-start-radius - Set on grouped items to square off their start-start corner. Read by `dap-ds-button`, `dap-ds-icon-button` and `dap-ds-button-group-text`.
|
|
41
|
+
* @cssproperty --dds-button-group-start-end-radius - Set on grouped items to square off their start-end corner.
|
|
42
|
+
* @cssproperty --dds-button-group-end-start-radius - Set on grouped items to square off their end-start corner.
|
|
43
|
+
* @cssproperty --dds-button-group-end-end-radius - Set on grouped items to square off their end-end corner.
|
|
44
|
+
*/
|
|
45
|
+
export default class DapDSButtonGroup extends DdsElement {
|
|
46
|
+
static tagName: string;
|
|
47
|
+
/** The layout direction of the group */
|
|
48
|
+
orientation: ButtonGroupOrientation;
|
|
49
|
+
static readonly styles: import('lit').CSSResult;
|
|
50
|
+
connectedCallback(): void;
|
|
51
|
+
render(): import('lit-html').TemplateResult;
|
|
52
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { unsafeCSS as n } from "lit";
|
|
2
|
+
import { property as f } from "lit/decorators.js";
|
|
3
|
+
import { html as m } from "lit/static-html.js";
|
|
4
|
+
import { DdsElement as c } from "../../internal/dds-hu-element.js";
|
|
5
|
+
import d from "./_styles/button-group.scss.js";
|
|
6
|
+
var p = Object.defineProperty, h = (o, i, l, u) => {
|
|
7
|
+
for (var t = void 0, r = o.length - 1, a; r >= 0; r--)
|
|
8
|
+
(a = o[r]) && (t = a(i, l, t) || t);
|
|
9
|
+
return t && p(i, l, t), t;
|
|
10
|
+
};
|
|
11
|
+
const e = class e extends c {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.orientation = "horizontal";
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "group");
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return m`<slot></slot>`;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
e.tagName = "dap-ds-button-group", e.styles = n(d);
|
|
23
|
+
let s = e;
|
|
24
|
+
h([
|
|
25
|
+
f({ reflect: !0 })
|
|
26
|
+
], s.prototype, "orientation");
|
|
27
|
+
export {
|
|
28
|
+
s as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=button-group.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.component.js","sources":["../../../src/components/button-group/button-group.component.ts"],"sourcesContent":["import { unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './_styles/button-group.scss?inline'\n\nexport type ButtonGroupOrientation = 'horizontal' | 'vertical'\n\n/**\n * `dap-ds-button-group` visually joins related buttons into a single control.\n * Inner corners are squared off and adjacent borders collapse into one.\n * @element dap-ds-button-group\n * @summary A container that groups related buttons with consistent, connected styling.\n * @title - Button Group\n *\n * @example Basic Usage\n * ```html\n * <dap-ds-button-group aria-label=\"Text alignment\">\n * <dap-ds-button variant=\"outline\">Left</dap-ds-button>\n * <dap-ds-button variant=\"outline\">Center</dap-ds-button>\n * <dap-ds-button variant=\"outline\">Right</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @example Separator\n * ```html\n * <dap-ds-button-group aria-label=\"Clipboard\">\n * <dap-ds-button>Copy</dap-ds-button>\n * <dap-ds-button-group-separator></dap-ds-button-group-separator>\n * <dap-ds-button>Paste</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @example Nested groups\n * ```html\n * <dap-ds-button-group aria-label=\"Editor toolbar\">\n * <dap-ds-button-group>...</dap-ds-button-group>\n * <dap-ds-button-group>...</dap-ds-button-group>\n * </dap-ds-button-group>\n * ```\n *\n * @slot - The grouped items: `dap-ds-button`, `dap-ds-icon-button`, `dap-ds-button-group-text`, `dap-ds-button-group-separator` or nested `dap-ds-button-group` elements.\n *\n * @cssproperty --dds-button-group-gap - Spacing between nested button groups (default: var(--dds-spacing-200))\n * @cssproperty --dds-button-group-overlap - How much adjacent items overlap so their borders collapse into one (default: var(--dds-border-width-large))\n * @cssproperty --dds-button-group-start-start-radius - Set on grouped items to square off their start-start corner. Read by `dap-ds-button`, `dap-ds-icon-button` and `dap-ds-button-group-text`.\n * @cssproperty --dds-button-group-start-end-radius - Set on grouped items to square off their start-end corner.\n * @cssproperty --dds-button-group-end-start-radius - Set on grouped items to square off their end-start corner.\n * @cssproperty --dds-button-group-end-end-radius - Set on grouped items to square off their end-end corner.\n */\nexport default class DapDSButtonGroup extends DdsElement {\n static tagName = 'dap-ds-button-group'\n\n /** The layout direction of the group */\n @property({ reflect: true }) orientation: ButtonGroupOrientation =\n 'horizontal'\n\n static readonly styles = unsafeCSS(styles)\n\n connectedCallback() {\n super.connectedCallback()\n // Keyboard users still Tab between the items; the group role only names\n // the set. Label it with aria-label or aria-labelledby on the host.\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'group')\n }\n }\n\n render() {\n return html`<slot></slot>`\n }\n}\n"],"names":["_DapDSButtonGroup","DdsElement","html","unsafeCSS","styles","DapDSButtonGroup","__decorateClass","property"],"mappings":";;;;;;;;;;AAmDA,MAAqBA,IAArB,MAAqBA,UAAyBC,EAAW;AAAA,EAAzD,cAAA;AAAA,UAAA,GAAA,SAAA,GAKI,KAAA,cAAA;AAAA,EAAA;AAAA,EAIF,oBAAoB;AAClB,UAAM,kBAAkB,GAGnB,KAAK,aAAa,MAAM,KACtB,KAAA,aAAa,QAAQ,OAAO;AAAA,EACnC;AAAA,EAGF,SAAS;AACA,WAAAC;AAAA,EAAA;AAEX;AApBEF,EAAO,UAAU,uBAMDA,EAAA,SAASG,EAAUC,CAAM;AAP3C,IAAqBC,IAArBL;AAI+BM,EAAA;AAAA,EAA5BC,EAAS,EAAE,SAAS,GAAM,CAAA;AAAA,GAJRF,EAIU,WAAA,aAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.js","sources":["../../../src/components/button-group/button-group.ts"],"sourcesContent":["import DapDSButtonGroup from './button-group.component'\n\nexport * from './button-group.component'\nexport default DapDSButtonGroup\n\nDapDSButtonGroup.define()\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'dap-ds-button-group': DapDSButtonGroup\n }\n}\n"],"names":["DapDSButtonGroup"],"mappings":";AAKAA,EAAiB,OAAO;"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { clsx as u } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import h from "../../_virtual/dayjs.min.js";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DdsElement as b } from "../../internal/dds-hu-element.js";
|
|
9
|
-
import { FocusableMixin as m } from "../../internal/mixin/focusableMixin.js";
|
|
3
|
+
import { unsafeCSS as y, nothing as b } from "lit";
|
|
4
|
+
import { property as a } from "lit/decorators.js";
|
|
5
|
+
import { html as p } from "lit/static-html.js";
|
|
6
|
+
import { DdsElement as m } from "../../internal/dds-hu-element.js";
|
|
7
|
+
import { FocusableMixin as g } from "../../internal/mixin/focusableMixin.js";
|
|
10
8
|
import "../../localization/localization.js";
|
|
11
|
-
import
|
|
9
|
+
import L from "./calendar-cell.scss.js";
|
|
12
10
|
import { t as f } from "../../node_modules/i18next/dist/esm/i18next.js";
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return l && v(e, o, l), l;
|
|
11
|
+
var v = Object.defineProperty, l = (c, e, o, i) => {
|
|
12
|
+
for (var s = void 0, d = c.length - 1, n; d >= 0; d--)
|
|
13
|
+
(n = c[d]) && (s = n(e, o, s) || s);
|
|
14
|
+
return s && v(e, o, s), s;
|
|
18
15
|
};
|
|
19
|
-
const r = class r extends m
|
|
16
|
+
const r = class r extends g(m) {
|
|
20
17
|
constructor() {
|
|
21
18
|
super(...arguments), this.selected = !1, this.disabledDay = !1, this.today = !1, this.outOfRange = !1, this.header = !1, this.focused = !1, this.rangestart = !1, this.rangeend = !1, this.inrange = !1, this.locale = h.locale(), this._cachedLabel = "", this._lastLabelUpdate = 0, this._lastLocale = "";
|
|
22
19
|
}
|
|
@@ -24,8 +21,8 @@ const r = class r extends m(b) {
|
|
|
24
21
|
if (this.value) {
|
|
25
22
|
const e = Date.now();
|
|
26
23
|
if (this._cachedLabel === "" || this._lastLabelUpdate === 0 || this._lastLocale !== this.locale || e - this._lastLabelUpdate > 100) {
|
|
27
|
-
const o = h(this.value).locale(this.locale).format("LL, dddd"), i = this.today ? f("calendar.today", { lng: this.locale }) : "",
|
|
28
|
-
this._cachedLabel = `${o} ${i} ${
|
|
24
|
+
const o = h(this.value).locale(this.locale).format("LL, dddd"), i = this.today ? f("calendar.today", { lng: this.locale }) : "", s = this.selected ? f("selected", { lng: this.locale }) : "";
|
|
25
|
+
this._cachedLabel = `${o} ${i} ${s}`.trim(), this._lastLabelUpdate = e, this._lastLocale = this.locale;
|
|
29
26
|
}
|
|
30
27
|
return this._cachedLabel;
|
|
31
28
|
}
|
|
@@ -62,44 +59,44 @@ const r = class r extends m(b) {
|
|
|
62
59
|
<slot></slot>
|
|
63
60
|
${this.today ? p`<span
|
|
64
61
|
part="today-mark"
|
|
65
|
-
class="calendar-cell__today-mark"></span>` :
|
|
62
|
+
class="calendar-cell__today-mark"></span>` : b}
|
|
66
63
|
</div>
|
|
67
64
|
`;
|
|
68
65
|
}
|
|
69
66
|
};
|
|
70
|
-
r.tagName = "dap-ds-calendar-cell", r.styles = L
|
|
67
|
+
r.tagName = "dap-ds-calendar-cell", r.styles = y(L);
|
|
71
68
|
let t = r;
|
|
72
|
-
|
|
69
|
+
l([
|
|
73
70
|
a({ attribute: !1 })
|
|
74
71
|
], t.prototype, "value");
|
|
75
|
-
|
|
72
|
+
l([
|
|
76
73
|
a({ type: Boolean })
|
|
77
74
|
], t.prototype, "selected");
|
|
78
|
-
|
|
75
|
+
l([
|
|
79
76
|
a({ type: Boolean })
|
|
80
77
|
], t.prototype, "disabledDay");
|
|
81
|
-
|
|
78
|
+
l([
|
|
82
79
|
a({ type: Boolean })
|
|
83
80
|
], t.prototype, "today");
|
|
84
|
-
|
|
81
|
+
l([
|
|
85
82
|
a({ type: Boolean })
|
|
86
83
|
], t.prototype, "outOfRange");
|
|
87
|
-
|
|
84
|
+
l([
|
|
88
85
|
a({ type: Boolean })
|
|
89
86
|
], t.prototype, "header");
|
|
90
|
-
|
|
87
|
+
l([
|
|
91
88
|
a({ type: Boolean })
|
|
92
89
|
], t.prototype, "focused");
|
|
93
|
-
|
|
90
|
+
l([
|
|
94
91
|
a({ type: Boolean })
|
|
95
92
|
], t.prototype, "rangestart");
|
|
96
|
-
|
|
93
|
+
l([
|
|
97
94
|
a({ type: Boolean })
|
|
98
95
|
], t.prototype, "rangeend");
|
|
99
|
-
|
|
96
|
+
l([
|
|
100
97
|
a({ type: Boolean })
|
|
101
98
|
], t.prototype, "inrange");
|
|
102
|
-
|
|
99
|
+
l([
|
|
103
100
|
a({ reflect: !0 })
|
|
104
101
|
], t.prototype, "locale");
|
|
105
102
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-cell.component.js","sources":["../../../src/components/calendar/calendar-cell.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport dayjs, { Dayjs } from 'dayjs'\nimport { nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { FocusableMixin } from '@/internal/mixin/focusableMixin'\nimport { t } from '@/localization/localization'\n\nimport styles from './calendar-cell.scss?inline'\n\n/**\n * `dap-ds-calendar-cell`\n * @summary Calendar cell represents a single cell in the calendar.\n * @element dap-ds-calendar-cell\n * @title - Calendar cell\n * @group calendar\n *\n * @slot - The content of the calendar cell.\n *\n * @csspart base - The main calendar cell container.\n * @csspart today-mark - The today mark of the calendar cell.\n *\n * @cssproperty --dds-calendar-cell-display - The display property of the calendar cell host (default: flex)\n * @cssproperty --dds-calendar-cell-position - The position property of the calendar cell host (default: relative)\n * @cssproperty --dds-calendar-cell-border-radius - The border radius of the calendar cell (default: var(--dds-radius-rounded))\n * @cssproperty --dds-calendar-cell-min-width - The minimum width of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-height - The height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-min-height - The minimum height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-color - The text color of the calendar cell (default: var(--dds-button-subtle-text-neutral-enabled))\n * @cssproperty --dds-calendar-cell-font-size - The font size of the calendar cell (default: var(--dds-font-sm))\n * @cssproperty --dds-calendar-cell-font-weight - The font weight of the calendar cell (default: var(--dds-font-weight-medium))\n * @cssproperty --dds-calendar-cell-text-align - The text alignment of the calendar cell (default: center)\n * @cssproperty --dds-calendar-cell-cursor - The cursor style of the calendar cell (default: pointer)\n * @cssproperty --dds-calendar-cell-background-hover - The background color of the calendar cell on hover (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-calendar-cell-background-active - The background color of the calendar cell when active (default: var(--dds-background-neutral-strong))\n *\n * @cssproperty --dds-calendar-cell-selected-background - The background color of the selected calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-selected-color - The text color of the selected calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-selected-background-hover - The background color of the selected calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-selected-background-pressed - The background color of the selected calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n * @cssproperty --dds-calendar-cell-selected-today-mark-background - The background color of the today mark in selected calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-disabled-color - The text color of the disabled calendar cell (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-calendar-cell-disabled-cursor - The cursor style of the disabled calendar cell (default: not-allowed)\n *\n * @cssproperty --dds-calendar-cell-out-of-range-color - The text color of the out-of-range calendar cell (default: var(--dds-text-neutral-placeholder))\n *\n * @cssproperty --dds-calendar-cell-today-font-weight - The font weight of the today calendar cell (default: var(--dds-font-weight-bold))\n *\n * @cssproperty --dds-calendar-cell-header-background - The background color of the header calendar cell (default: transparent)\n * @cssproperty --dds-calendar-cell-header-color - The text color of the header calendar cell (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-calendar-cell-header-text-transform - The text transform of the header calendar cell (default: capitalize)\n * @cssproperty --dds-calendar-cell-header-cursor - The cursor style of the header calendar cell (default: default)\n *\n * @cssproperty --dds-calendar-cell-in-range-color - The text color of the in-range calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-in-range-background-hover - The background color of the in-range calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-in-range-background-pressed - The background color of the in-range calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n *\n * @cssproperty --dds-calendar-cell-range-background - The background color of the range start/end calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-range-color - The text color of the range start/end calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-range-today-mark-background - The background color of the today mark in range start/end calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-today-mark-bottom - The bottom position of the today mark (default: var(--dds-spacing-100))\n * @cssproperty --dds-calendar-cell-today-mark-width - The width of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-height - The height of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-stroke - The stroke color of the today mark (default: var(--dds-border-neutral-transparent))\n * @cssproperty --dds-calendar-cell-today-mark-background - The background color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n * @cssproperty --dds-calendar-cell-today-mark-fill - The fill color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n *\n */\nexport default class DapDSCalendarCell extends FocusableMixin(DdsElement) {\n static tagName = 'dap-ds-calendar-cell'\n\n /** The value of the calendar cell. */\n @property({ attribute: false }) value: Dayjs\n /** Whether the calendar cell is selected. */\n @property({ type: Boolean }) selected: boolean = false\n /** Whether the calendar cell is disabled. */\n @property({ type: Boolean }) disabledDay: boolean = false\n /** Whether the calendar cell is today. */\n @property({ type: Boolean }) today: boolean = false\n /** Whether the calendar cell is out of range. */\n @property({ type: Boolean }) outOfRange: boolean = false\n /** Whether the calendar cell is a date header. */\n @property({ type: Boolean }) header: boolean = false\n /** Whether the calendar cell is focused. */\n @property({ type: Boolean }) focused: boolean = false\n /** Whether the calendar cell is the start of a range. */\n @property({ type: Boolean }) rangestart: boolean = false\n /** Whether the calendar cell is the end of a range. */\n @property({ type: Boolean }) rangeend: boolean = false\n /** Whether the calendar cell is in the middle of a range. */\n @property({ type: Boolean }) inrange: boolean = false\n\n /** The locale of the calendar cell.\n * @type {'hu' | 'en' | 'de'}\n * @default dayjs.locale()\n */\n @property({ reflect: true }) locale: string = dayjs.locale()\n\n private _cachedLabel: string = ''\n private _lastLabelUpdate: number = 0\n private _lastLocale: string = ''\n\n static readonly styles = unsafeCSS(styles)\n\n get label(): string {\n if (this.value) {\n const currentTime = Date.now()\n\n // Only recalculate if state changed, locale changed, or more than 100ms passed (debounce rapid updates)\n if (\n this._cachedLabel === '' ||\n this._lastLabelUpdate === 0 ||\n this._lastLocale !== this.locale ||\n currentTime - this._lastLabelUpdate > 100\n ) {\n // Cache expensive dayjs formatting\n const dateLabel = dayjs(this.value)\n .locale(this.locale)\n .format('LL, dddd')\n const todayLabel = this.today\n ? t('calendar.today', { lng: this.locale })\n : ''\n const selectedLabel = this.selected\n ? t('selected', { lng: this.locale })\n : ''\n this._cachedLabel = `${dateLabel} ${todayLabel} ${selectedLabel}`.trim()\n this._lastLabelUpdate = currentTime\n this._lastLocale = this.locale\n }\n\n return this._cachedLabel\n }\n\n return ''\n }\n\n public get focusElement(): HTMLElement {\n return this\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n // Remove aria-selected if it exists (not valid for button role)\n // The calendar component sets aria-pressed instead for button role\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n\n this.setAttribute('aria-label', this.label)\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (_changedProperties.has('disabledDay')) {\n this.setAttribute('aria-disabled', this.disabledDay ? 'true' : 'false')\n }\n\n if (\n _changedProperties.has('selected') ||\n _changedProperties.has('locale') ||\n _changedProperties.has('value') ||\n _changedProperties.has('today')\n ) {\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n // Invalidate cache when locale changes\n if (_changedProperties.has('locale')) {\n this._cachedLabel = ''\n this._lastLabelUpdate = 0\n }\n this.setAttribute('aria-label', this.label)\n }\n }\n\n getDayName(dateStr: string, locale: string) {\n const date = new Date(dateStr)\n return date.toLocaleDateString(locale, { weekday: 'long' })\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx(\n 'calendar-cell',\n { 'calendar-cell--selected': this.selected },\n { 'calendar-cell--disabled': this.disabledDay },\n { 'calendar-cell--today': this.today },\n { 'calendar-cell--out-of-range': this.outOfRange },\n { 'calendar-cell--header': this.header },\n { 'calendar-cell--focused': this.focused },\n { 'calendar-cell--range-start': this.rangestart },\n { 'calendar-cell--range-end': this.rangeend },\n { 'calendar-cell--in-range': this.inrange },\n )}>\n <slot></slot>\n ${this.today\n ? html`<span\n part=\"today-mark\"\n class=\"calendar-cell__today-mark\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCalendarCell","FocusableMixin","DdsElement","dayjs","currentTime","dateLabel","todayLabel","t","selectedLabel","_changedProperties","dateStr","locale","html","clsx","nothing","unsafeCSS","styles","DapDSCalendarCell","__decorateClass","property"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"calendar-cell.component.js","sources":["../../../src/components/calendar/calendar-cell.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport dayjs, { Dayjs } from 'dayjs'\nimport { nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { FocusableMixin } from '@/internal/mixin/focusableMixin'\nimport { t } from '@/localization/localization'\n\nimport styles from './calendar-cell.scss?inline'\n\n/**\n * `dap-ds-calendar-cell`\n * @summary Calendar cell represents a single cell in the calendar.\n * @element dap-ds-calendar-cell\n * @title - Calendar cell\n * @group calendar\n *\n * @slot - The content of the calendar cell.\n *\n * @csspart base - The main calendar cell container.\n * @csspart today-mark - The today mark of the calendar cell.\n *\n * @cssproperty --dds-calendar-cell-display - The display property of the calendar cell host (default: flex)\n * @cssproperty --dds-calendar-cell-position - The position property of the calendar cell host (default: relative)\n * @cssproperty --dds-calendar-cell-border-radius - The border radius of the calendar cell (default: var(--dds-radius-rounded))\n * @cssproperty --dds-calendar-cell-min-width - The minimum width of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-height - The height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-min-height - The minimum height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-color - The text color of the calendar cell (default: var(--dds-button-subtle-text-neutral-enabled))\n * @cssproperty --dds-calendar-cell-font-size - The font size of the calendar cell (default: var(--dds-font-sm))\n * @cssproperty --dds-calendar-cell-font-weight - The font weight of the calendar cell (default: var(--dds-font-weight-medium))\n * @cssproperty --dds-calendar-cell-text-align - The text alignment of the calendar cell (default: center)\n * @cssproperty --dds-calendar-cell-cursor - The cursor style of the calendar cell (default: pointer)\n * @cssproperty --dds-calendar-cell-background-hover - The background color of the calendar cell on hover (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-calendar-cell-background-active - The background color of the calendar cell when active (default: var(--dds-background-neutral-strong))\n *\n * @cssproperty --dds-calendar-cell-selected-background - The background color of the selected calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-selected-color - The text color of the selected calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-selected-background-hover - The background color of the selected calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-selected-background-pressed - The background color of the selected calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n * @cssproperty --dds-calendar-cell-selected-today-mark-background - The background color of the today mark in selected calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-disabled-color - The text color of the disabled calendar cell (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-calendar-cell-disabled-cursor - The cursor style of the disabled calendar cell (default: not-allowed)\n *\n * @cssproperty --dds-calendar-cell-out-of-range-color - The text color of the out-of-range calendar cell (default: var(--dds-text-neutral-placeholder))\n *\n * @cssproperty --dds-calendar-cell-today-font-weight - The font weight of the today calendar cell (default: var(--dds-font-weight-bold))\n *\n * @cssproperty --dds-calendar-cell-header-background - The background color of the header calendar cell (default: transparent)\n * @cssproperty --dds-calendar-cell-header-color - The text color of the header calendar cell (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-calendar-cell-header-text-transform - The text transform of the header calendar cell (default: capitalize)\n * @cssproperty --dds-calendar-cell-header-cursor - The cursor style of the header calendar cell (default: default)\n *\n * @cssproperty --dds-calendar-cell-in-range-color - The text color of the in-range calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-in-range-background-hover - The background color of the in-range calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-in-range-background-pressed - The background color of the in-range calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n *\n * @cssproperty --dds-calendar-cell-range-background - The background color of the range start/end calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-range-color - The text color of the range start/end calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-range-today-mark-background - The background color of the today mark in range start/end calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-today-mark-bottom - The bottom position of the today mark (default: var(--dds-spacing-100))\n * @cssproperty --dds-calendar-cell-today-mark-width - The width of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-height - The height of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-stroke - The stroke color of the today mark (default: var(--dds-border-neutral-transparent))\n * @cssproperty --dds-calendar-cell-today-mark-background - The background color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n * @cssproperty --dds-calendar-cell-today-mark-fill - The fill color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n *\n */\nexport default class DapDSCalendarCell extends FocusableMixin(DdsElement) {\n static tagName = 'dap-ds-calendar-cell'\n\n /** The value of the calendar cell. */\n @property({ attribute: false }) value: Dayjs\n /** Whether the calendar cell is selected. */\n @property({ type: Boolean }) selected: boolean = false\n /** Whether the calendar cell is disabled. */\n @property({ type: Boolean }) disabledDay: boolean = false\n /** Whether the calendar cell is today. */\n @property({ type: Boolean }) today: boolean = false\n /** Whether the calendar cell is out of range. */\n @property({ type: Boolean }) outOfRange: boolean = false\n /** Whether the calendar cell is a date header. */\n @property({ type: Boolean }) header: boolean = false\n /** Whether the calendar cell is focused. */\n @property({ type: Boolean }) focused: boolean = false\n /** Whether the calendar cell is the start of a range. */\n @property({ type: Boolean }) rangestart: boolean = false\n /** Whether the calendar cell is the end of a range. */\n @property({ type: Boolean }) rangeend: boolean = false\n /** Whether the calendar cell is in the middle of a range. */\n @property({ type: Boolean }) inrange: boolean = false\n\n /** The locale of the calendar cell.\n * @type {'hu' | 'en' | 'de'}\n * @default dayjs.locale()\n */\n @property({ reflect: true }) locale: string = dayjs.locale()\n\n private _cachedLabel: string = ''\n private _lastLabelUpdate: number = 0\n private _lastLocale: string = ''\n\n static readonly styles = unsafeCSS(styles)\n\n get label(): string {\n if (this.value) {\n const currentTime = Date.now()\n\n // Only recalculate if state changed, locale changed, or more than 100ms passed (debounce rapid updates)\n if (\n this._cachedLabel === '' ||\n this._lastLabelUpdate === 0 ||\n this._lastLocale !== this.locale ||\n currentTime - this._lastLabelUpdate > 100\n ) {\n // Cache expensive dayjs formatting\n const dateLabel = dayjs(this.value)\n .locale(this.locale)\n .format('LL, dddd')\n const todayLabel = this.today\n ? t('calendar.today', { lng: this.locale })\n : ''\n const selectedLabel = this.selected\n ? t('selected', { lng: this.locale })\n : ''\n this._cachedLabel = `${dateLabel} ${todayLabel} ${selectedLabel}`.trim()\n this._lastLabelUpdate = currentTime\n this._lastLocale = this.locale\n }\n\n return this._cachedLabel\n }\n\n return ''\n }\n\n public get focusElement(): HTMLElement {\n return this\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n // Remove aria-selected if it exists (not valid for button role)\n // The calendar component sets aria-pressed instead for button role\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n\n this.setAttribute('aria-label', this.label)\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (_changedProperties.has('disabledDay')) {\n this.setAttribute('aria-disabled', this.disabledDay ? 'true' : 'false')\n }\n\n if (\n _changedProperties.has('selected') ||\n _changedProperties.has('locale') ||\n _changedProperties.has('value') ||\n _changedProperties.has('today')\n ) {\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n // Invalidate cache when locale changes\n if (_changedProperties.has('locale')) {\n this._cachedLabel = ''\n this._lastLabelUpdate = 0\n }\n this.setAttribute('aria-label', this.label)\n }\n }\n\n getDayName(dateStr: string, locale: string) {\n const date = new Date(dateStr)\n return date.toLocaleDateString(locale, { weekday: 'long' })\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx(\n 'calendar-cell',\n { 'calendar-cell--selected': this.selected },\n { 'calendar-cell--disabled': this.disabledDay },\n { 'calendar-cell--today': this.today },\n { 'calendar-cell--out-of-range': this.outOfRange },\n { 'calendar-cell--header': this.header },\n { 'calendar-cell--focused': this.focused },\n { 'calendar-cell--range-start': this.rangestart },\n { 'calendar-cell--range-end': this.rangeend },\n { 'calendar-cell--in-range': this.inrange },\n )}>\n <slot></slot>\n ${this.today\n ? html`<span\n part=\"today-mark\"\n class=\"calendar-cell__today-mark\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCalendarCell","FocusableMixin","DdsElement","dayjs","currentTime","dateLabel","todayLabel","t","selectedLabel","_changedProperties","dateStr","locale","html","clsx","nothing","unsafeCSS","styles","DapDSCalendarCell","__decorateClass","property"],"mappings":"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"}
|
|
@@ -26,6 +26,9 @@ import { default as DapDSCalendarCell } from './calendar-cell.component';
|
|
|
26
26
|
* @csspart calendar-header-button-next - The next month button of the calendar header.
|
|
27
27
|
* @csspart calendar-header-year-select - The year select of the calendar header.
|
|
28
28
|
* @csspart calendar-header-month-select - The month select of the calendar header.
|
|
29
|
+
* @csspart calendar-grid-header-cell-base - The base of the calendar grid header cell.
|
|
30
|
+
* @csspart calendar-grid-cell-base - The base of the calendar grid cell.
|
|
31
|
+
* @csspart calendar-grid-cell-today-mark - The today mark of the calendar grid cell.
|
|
29
32
|
*
|
|
30
33
|
* @cssproperty --dds-calendar-display - The display property of the calendar container (default: flex)
|
|
31
34
|
* @cssproperty --dds-calendar-isolation - The isolation property of the calendar (default: isolate)
|
|
@@ -109,7 +112,13 @@ export default class DapDSCalendar extends DdsElement {
|
|
|
109
112
|
nextButtonTestId: string;
|
|
110
113
|
private _currentCell;
|
|
111
114
|
private _yearOptionsLoaded;
|
|
112
|
-
|
|
115
|
+
/** Locale-aware month/weekday data. Derived from `this.locale` (a reactive
|
|
116
|
+
* property Lit sets from the attribute during SSR) so the weekday/month names
|
|
117
|
+
* are correct in the SERVER render. The old approach set this field only from
|
|
118
|
+
* `connectedCallback`/`attributeChangedCallback`, neither of which takes effect
|
|
119
|
+
* on the server, so SSR rendered English names that then mismatched the
|
|
120
|
+
* Hungarian client hydration render. */
|
|
121
|
+
private get instanceLocalData();
|
|
113
122
|
connectedCallback(): Promise<void>;
|
|
114
123
|
static readonly styles: import('lit').CSSResult;
|
|
115
124
|
get startDate(): dayjs.Dayjs;
|
|
@@ -17,48 +17,29 @@ var C = (f, e, a) => new Promise((s, r) => {
|
|
|
17
17
|
}, c = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(l, n);
|
|
18
18
|
c((a = a.apply(f, e)).next());
|
|
19
19
|
});
|
|
20
|
-
import { clsx as
|
|
20
|
+
import { clsx as D } from "../../node_modules/clsx/dist/clsx.js";
|
|
21
21
|
import t from "../../_virtual/dayjs.min.js";
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import "
|
|
25
|
-
import {
|
|
26
|
-
import { state as v } from "../../node_modules/@lit/reactive-element/decorators/state.js";
|
|
27
|
-
import { query as _ } from "../../node_modules/@lit/reactive-element/decorators/query.js";
|
|
28
|
-
import { queryAll as O } from "../../node_modules/@lit/reactive-element/decorators/query-all.js";
|
|
29
|
-
import { html as h } from "../../node_modules/lit-html/static.js";
|
|
30
|
-
import { DdsElement as S } from "../../internal/dds-hu-element.js";
|
|
22
|
+
import { unsafeCSS as _ } from "lit";
|
|
23
|
+
import { queryAll as O, query as S, property as d, state as v } from "lit/decorators.js";
|
|
24
|
+
import { html as h } from "lit/static-html.js";
|
|
25
|
+
import { DdsElement as M } from "../../internal/dds-hu-element.js";
|
|
31
26
|
import "../../localization/localization.js";
|
|
32
|
-
import
|
|
27
|
+
import k from "../icon-button/icon-button.component.js";
|
|
33
28
|
import A from "../icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
29
|
+
import I from "../option-item/option-item.component.js";
|
|
30
|
+
import R from "../select/select.component.js";
|
|
31
|
+
import B from "./calendar.scss.js";
|
|
37
32
|
import $ from "./calendar-cell.component.js";
|
|
38
33
|
import { t as y } from "../../node_modules/i18next/dist/esm/i18next.js";
|
|
39
|
-
|
|
40
|
-
var L = Object.defineProperty, o = (f, e, a, s) => {
|
|
34
|
+
var E = Object.defineProperty, o = (f, e, a, s) => {
|
|
41
35
|
for (var r = void 0, l = f.length - 1, n; l >= 0; l--)
|
|
42
36
|
(n = f[l]) && (r = n(e, a, r) || r);
|
|
43
|
-
return r &&
|
|
37
|
+
return r && E(e, a, r), r;
|
|
44
38
|
};
|
|
45
|
-
const
|
|
39
|
+
const g = class g extends M {
|
|
46
40
|
constructor() {
|
|
47
|
-
super(...arguments), this.mode = "single", this.hideAdjacentMonths = !1, this.currentDate = t(), this.minDate = t().subtract(50, "year"), this.maxDate = t().add(50, "year"), this.disabledDate = (e) => !e, this.locale = t.locale(), this.prevButtonTestId = "calendar-prev-button", this.nextButtonTestId = "calendar-next-button", this._yearOptionsLoaded = !1, this.
|
|
48
|
-
e ?
|
|
49
|
-
var s;
|
|
50
|
-
(s = this.monthSelect) == null || s.querySelectorAll("dap-ds-option-item").forEach((r) => r.remove()), this.getAllowedMonths(
|
|
51
|
-
t(this.currentDate).locale(this.locale)
|
|
52
|
-
).map((r) => {
|
|
53
|
-
const l = document.createElement("dap-ds-option-item");
|
|
54
|
-
return l.value = `${this.instanceLocalData.months().indexOf(r) + 1}`, l.appendChild(document.createTextNode(r)), l;
|
|
55
|
-
}).forEach(
|
|
56
|
-
(r) => {
|
|
57
|
-
var l;
|
|
58
|
-
return (l = this.monthSelect) == null ? void 0 : l.appendChild(r);
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
})) : this.locale = t.locale();
|
|
41
|
+
super(...arguments), this.mode = "single", this.hideAdjacentMonths = !1, this.currentDate = t(), this.minDate = t().subtract(50, "year"), this.maxDate = t().add(50, "year"), this.disabledDate = (e) => !e, this.locale = t.locale(), this.prevButtonTestId = "calendar-prev-button", this.nextButtonTestId = "calendar-next-button", this._yearOptionsLoaded = !1, this.updateLocale = (e) => {
|
|
42
|
+
e ? this.locale = e : this.locale = t.locale(), this.requestUpdate();
|
|
62
43
|
}, this.updateLocaleFromHtml = (e) => {
|
|
63
44
|
this.updateLocale(e[0].target[e[0].attributeName]);
|
|
64
45
|
}, this.getWeeksInMonth = (e) => {
|
|
@@ -66,9 +47,18 @@ const D = class D extends S {
|
|
|
66
47
|
return Math.ceil((a + s) / 7);
|
|
67
48
|
};
|
|
68
49
|
}
|
|
50
|
+
/** Locale-aware month/weekday data. Derived from `this.locale` (a reactive
|
|
51
|
+
* property Lit sets from the attribute during SSR) so the weekday/month names
|
|
52
|
+
* are correct in the SERVER render. The old approach set this field only from
|
|
53
|
+
* `connectedCallback`/`attributeChangedCallback`, neither of which takes effect
|
|
54
|
+
* on the server, so SSR rendered English names that then mismatched the
|
|
55
|
+
* Hungarian client hydration render. */
|
|
56
|
+
get instanceLocalData() {
|
|
57
|
+
return t().locale(this.locale || t.locale()).localeData();
|
|
58
|
+
}
|
|
69
59
|
connectedCallback() {
|
|
70
60
|
return C(this, null, function* () {
|
|
71
|
-
b(
|
|
61
|
+
b(g.prototype, this, "connectedCallback").call(this), t.isDayjs(this.currentDate) || (this.currentDate = t(this.currentDate)), this.locale && (this.currentDate = t(this.currentDate).locale(this.locale));
|
|
72
62
|
});
|
|
73
63
|
}
|
|
74
64
|
get startDate() {
|
|
@@ -89,7 +79,8 @@ const D = class D extends S {
|
|
|
89
79
|
}), this.setValue(this.value, !1), queueMicrotask(() => this.loadYearOptions());
|
|
90
80
|
}
|
|
91
81
|
updated(e) {
|
|
92
|
-
|
|
82
|
+
var a;
|
|
83
|
+
super.updated(e), e.has("value") && this.setValue(this.value, !1), e.has("locale") && ((a = this.monthSelect) == null || a.requestUpdate());
|
|
93
84
|
}
|
|
94
85
|
attributeChangedCallback(e, a, s) {
|
|
95
86
|
super.attributeChangedCallback(e, a, s), e === "locale" && this.updateLocale(s);
|
|
@@ -310,9 +301,9 @@ const D = class D extends S {
|
|
|
310
301
|
const r = this.isOutOfRange(e, s), l = !this.isDateInAllowedRange(s) || this.disabledDate(s), n = this.isRangeStart(s), c = this.isRangeEnd(s), u = this.isInRange(s);
|
|
311
302
|
return this.shouldHideAdjacentMonths && r ? h`<td
|
|
312
303
|
role="gridcell"
|
|
313
|
-
class="${
|
|
304
|
+
class="${D("calendar-cell calendar-cell--empty")}"></td>` : h`<td
|
|
314
305
|
role="gridcell"
|
|
315
|
-
class="${
|
|
306
|
+
class="${D("calendar-cell")}"
|
|
316
307
|
aria-disabled=${l}>
|
|
317
308
|
<dap-ds-calendar-cell
|
|
318
309
|
part="calendar-grid-cell"
|
|
@@ -362,7 +353,7 @@ const D = class D extends S {
|
|
|
362
353
|
<dap-ds-select
|
|
363
354
|
part="calendar-header-year-select"
|
|
364
355
|
floatingStrategy="fixed"
|
|
365
|
-
class=${
|
|
356
|
+
class=${D(
|
|
366
357
|
"calendar__header-select",
|
|
367
358
|
"calendar__header-year-select"
|
|
368
359
|
)}
|
|
@@ -394,7 +385,7 @@ const D = class D extends S {
|
|
|
394
385
|
id="monthSelect"
|
|
395
386
|
part="calendar-header-month-select"
|
|
396
387
|
floatingStrategy="fixed"
|
|
397
|
-
class=${
|
|
388
|
+
class=${D(
|
|
398
389
|
"calendar__header-select",
|
|
399
390
|
"calendar__header-month-select"
|
|
400
391
|
)}
|
|
@@ -477,19 +468,19 @@ const D = class D extends S {
|
|
|
477
468
|
</div>`;
|
|
478
469
|
}
|
|
479
470
|
};
|
|
480
|
-
|
|
471
|
+
g.tagName = "dap-ds-calendar", g.dependencies = {
|
|
481
472
|
"dap-ds-calendar-cell": $,
|
|
482
|
-
"dap-ds-icon-button":
|
|
483
|
-
"dap-ds-select":
|
|
473
|
+
"dap-ds-icon-button": k,
|
|
474
|
+
"dap-ds-select": R,
|
|
484
475
|
"dap-ds-icon-expand-up-down-fill": A,
|
|
485
|
-
"dap-ds-option-item":
|
|
486
|
-
},
|
|
487
|
-
let i =
|
|
476
|
+
"dap-ds-option-item": I
|
|
477
|
+
}, g.styles = _(B);
|
|
478
|
+
let i = g;
|
|
488
479
|
o([
|
|
489
480
|
O("dap-ds-calendar-cell:not([header])")
|
|
490
481
|
], i.prototype, "cells");
|
|
491
482
|
o([
|
|
492
|
-
|
|
483
|
+
S("#monthSelect")
|
|
493
484
|
], i.prototype, "monthSelect");
|
|
494
485
|
o([
|
|
495
486
|
d({ reflect: !0 })
|