dap-design-system 0.62.4 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/common/utils.js +46 -46
- package/dist/common/utils.js.map +1 -1
- package/dist/components/accordion/accordion-base-element.js +15 -19
- package/dist/components/accordion/accordion-base-element.js.map +1 -1
- package/dist/components/accordion/accordion.component.d.ts +1 -0
- package/dist/components/accordion/accordion.component.js.map +1 -1
- package/dist/components/accordion-group/accordion-group.component.js +20 -24
- package/dist/components/accordion-group/accordion-group.component.js.map +1 -1
- package/dist/components/anchor-heading/anchor-heading.component.d.ts +1 -0
- package/dist/components/anchor-heading/anchor-heading.component.js +20 -23
- package/dist/components/anchor-heading/anchor-heading.component.js.map +1 -1
- package/dist/components/avatar/avatar.component.js +51 -55
- package/dist/components/avatar/avatar.component.js.map +1 -1
- package/dist/components/avatar-group/avatar-group.component.js +18 -22
- package/dist/components/avatar-group/avatar-group.component.js.map +1 -1
- package/dist/components/badge/badge.component.js +17 -20
- package/dist/components/badge/badge.component.js.map +1 -1
- package/dist/components/banner/banner.component.d.ts +1 -1
- package/dist/components/banner/banner.component.js +18 -24
- package/dist/components/banner/banner.component.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +32 -32
- package/dist/components/breadcrumb/breadcrumb.component.js.map +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +33 -28
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js.map +1 -1
- package/dist/components/button/_styles/button.scss.js +1 -1
- package/dist/components/button/button.component.js +18 -22
- package/dist/components/button/button.component.js.map +1 -1
- package/dist/components/button-group/_styles/button-group-separator.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group-separator.scss.js.map +1 -0
- package/dist/components/button-group/_styles/button-group-text.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group-text.scss.js.map +1 -0
- package/dist/components/button-group/_styles/button-group.scss.js +5 -0
- package/dist/components/button-group/_styles/button-group.scss.js.map +1 -0
- package/dist/components/button-group/button-group-separator.component.d.ts +28 -0
- package/dist/components/button-group/button-group-separator.component.js +18 -0
- package/dist/components/button-group/button-group-separator.component.js.map +1 -0
- package/dist/components/button-group/button-group-separator.d.ts +8 -0
- package/dist/components/button-group/button-group-separator.js +6 -0
- package/dist/components/button-group/button-group-separator.js.map +1 -0
- package/dist/components/button-group/button-group-text.component.d.ts +33 -0
- package/dist/components/button-group/button-group-text.component.js +17 -0
- package/dist/components/button-group/button-group-text.component.js.map +1 -0
- package/dist/components/button-group/button-group-text.d.ts +8 -0
- package/dist/components/button-group/button-group-text.js +6 -0
- package/dist/components/button-group/button-group-text.js.map +1 -0
- package/dist/components/button-group/button-group.component.d.ts +52 -0
- package/dist/components/button-group/button-group.component.js +30 -0
- package/dist/components/button-group/button-group.component.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +6 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/calendar/calendar-cell.component.js +26 -29
- package/dist/components/calendar/calendar-cell.component.js.map +1 -1
- package/dist/components/calendar/calendar.component.d.ts +10 -1
- package/dist/components/calendar/calendar.component.js +37 -46
- package/dist/components/calendar/calendar.component.js.map +1 -1
- package/dist/components/callout/callout.component.d.ts +4 -0
- package/dist/components/callout/callout.component.js +71 -69
- package/dist/components/callout/callout.component.js.map +1 -1
- package/dist/components/card/card-actions.component.js +8 -11
- package/dist/components/card/card-actions.component.js.map +1 -1
- package/dist/components/card/card-content.component.js +20 -23
- package/dist/components/card/card-content.component.js.map +1 -1
- package/dist/components/card/card-image.component.js +18 -21
- package/dist/components/card/card-image.component.js.map +1 -1
- package/dist/components/card/card-subtitle.component.js +18 -21
- package/dist/components/card/card-subtitle.component.js.map +1 -1
- package/dist/components/card/card-title.component.js +18 -21
- package/dist/components/card/card-title.component.js.map +1 -1
- package/dist/components/card/card.component.d.ts +1 -0
- package/dist/components/card/card.component.js +25 -28
- package/dist/components/card/card.component.js.map +1 -1
- package/dist/components/checkbox/_styles/checkbox.scss.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +7 -1
- package/dist/components/checkbox/checkbox.component.js +71 -74
- package/dist/components/checkbox/checkbox.component.js.map +1 -1
- package/dist/components/chip/chip.component.d.ts +1 -0
- package/dist/components/chip/chip.component.js +21 -26
- package/dist/components/chip/chip.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher-slot.component.js +34 -38
- package/dist/components/code-puncher/code-puncher-slot.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.component.d.ts +4 -0
- package/dist/components/code-puncher/code-puncher.component.js +97 -102
- package/dist/components/code-puncher/code-puncher.component.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.context.js +1 -1
- package/dist/components/code-puncher/code-puncher.context.js.map +1 -1
- package/dist/components/code-puncher/code-puncher.scss.js +1 -1
- package/dist/components/combobox/combobox.component.d.ts +9 -1
- package/dist/components/combobox/combobox.component.js.map +1 -1
- package/dist/components/combobox/combobox.scss.js +1 -1
- package/dist/components/combobox/comboboxBase.d.ts +21 -0
- package/dist/components/combobox/comboboxBase.js +176 -139
- package/dist/components/combobox/comboboxBase.js.map +1 -1
- package/dist/components/command/command-group.component.js +19 -23
- package/dist/components/command/command-group.component.js.map +1 -1
- package/dist/components/command/command-item.component.js +17 -22
- package/dist/components/command/command-item.component.js.map +1 -1
- package/dist/components/command/command.component.d.ts +3 -0
- package/dist/components/command/command.component.js +28 -33
- package/dist/components/command/command.component.js.map +1 -1
- package/dist/components/content-switcher/content-switcher-item.component.js +16 -19
- package/dist/components/content-switcher/content-switcher-item.component.js.map +1 -1
- package/dist/components/content-switcher/content-switcher.component.js +19 -22
- package/dist/components/content-switcher/content-switcher.component.js.map +1 -1
- package/dist/components/copybox-input/copybox-input.component.d.ts +11 -0
- package/dist/components/copybox-input/copybox-input.component.js +12 -16
- package/dist/components/copybox-input/copybox-input.component.js.map +1 -1
- package/dist/components/dap-badge/dap-badge.component.js +13 -18
- package/dist/components/dap-badge/dap-badge.component.js.map +1 -1
- package/dist/components/datatable/datatable.component.d.ts +17 -0
- package/dist/components/datatable/datatable.component.js +38 -42
- package/dist/components/datatable/datatable.component.js.map +1 -1
- package/dist/components/datatable/utils/cell-renderer.js +6 -8
- package/dist/components/datatable/utils/cell-renderer.js.map +1 -1
- package/dist/components/datepicker/datepicker.component.d.ts +8 -0
- package/dist/components/datepicker/datepicker.component.js +76 -81
- package/dist/components/datepicker/datepicker.component.js.map +1 -1
- package/dist/components/datepicker/datepicker.scss.js +1 -1
- package/dist/components/divider/divider.component.js +18 -21
- package/dist/components/divider/divider.component.js.map +1 -1
- package/dist/components/feedback/feedback.component.js +8 -11
- package/dist/components/feedback/feedback.component.js.map +1 -1
- package/dist/components/file-input/file-input-list-item.component.d.ts +1 -0
- package/dist/components/file-input/file-input-list-item.component.js +36 -40
- package/dist/components/file-input/file-input-list-item.component.js.map +1 -1
- package/dist/components/file-input/file-input-list.component.js +15 -20
- package/dist/components/file-input/file-input-list.component.js.map +1 -1
- package/dist/components/file-input/file-input-list.scss.js +1 -1
- package/dist/components/file-input/file-input.component.d.ts +3 -0
- package/dist/components/file-input/file-input.component.js +135 -142
- package/dist/components/file-input/file-input.component.js.map +1 -1
- package/dist/components/file-input/file-input.scss.js +1 -1
- package/dist/components/form/form-label/form-label.component.d.ts +1 -1
- package/dist/components/form/form-label/form-label.component.js +20 -23
- package/dist/components/form/form-label/form-label.component.js.map +1 -1
- package/dist/components/form/input-group/input-group.component.d.ts +4 -0
- package/dist/components/form/input-group/input-group.component.js +42 -42
- package/dist/components/form/input-group/input-group.component.js.map +1 -1
- package/dist/components/form/input-group/input-group.scss.js +2 -2
- package/dist/components/form/radio-group/radio-group.component.d.ts +5 -0
- package/dist/components/form/radio-group/radio-group.component.js +54 -55
- package/dist/components/form/radio-group/radio-group.component.js.map +1 -1
- package/dist/components/icon/icon.component.js +25 -28
- package/dist/components/icon/icon.component.js.map +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +1 -0
- package/dist/components/icon-button/icon-button.component.js +11 -14
- package/dist/components/icon-button/icon-button.component.js.map +1 -1
- package/dist/components/icon-button/icon-button.scss.js +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js +12 -15
- package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js +8 -11
- package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js +15 -18
- package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js +10 -13
- package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js +7 -10
- package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js +6 -9
- package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js +18 -21
- package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js +15 -18
- package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js +17 -20
- package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js +18 -21
- package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js +8 -11
- package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js +9 -12
- package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js.map +1 -1
- package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js +11 -14
- package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js.map +1 -1
- package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js +10 -13
- package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js.map +1 -1
- package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js +11 -14
- package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js.map +1 -1
- package/dist/components/icons/design/design-edit-line/design-edit-line.component.js +6 -9
- package/dist/components/icons/design/design-edit-line/design-edit-line.component.js.map +1 -1
- package/dist/components/icons/design/design-tools-line/design-tools-line.component.js +12 -15
- package/dist/components/icons/design/design-tools-line/design-tools-line.component.js.map +1 -1
- package/dist/components/icons/device/device-computer-line/device-computer-line.component.js +16 -19
- package/dist/components/icons/device/device-computer-line/device-computer-line.component.js.map +1 -1
- package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js +11 -14
- package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js +10 -13
- package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js +11 -14
- package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js +11 -14
- package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js +10 -13
- package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js.map +1 -1
- package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js +11 -14
- package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js.map +1 -1
- package/dist/components/icons/document/document-folder-line/document-folder-line.component.js +11 -14
- package/dist/components/icons/document/document-folder-line/document-folder-line.component.js.map +1 -1
- package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js +10 -13
- package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js.map +1 -1
- package/dist/components/icons/editor/editor-separator/editor-separator.component.js +10 -13
- package/dist/components/icons/editor/editor-separator/editor-separator.component.js.map +1 -1
- package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js +8 -11
- package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js.map +1 -1
- package/dist/components/icons/health/health-heart-line/health-heart-line.component.js +10 -13
- package/dist/components/icons/health/health-heart-line/health-heart-line.component.js.map +1 -1
- package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js +6 -9
- package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js.map +1 -1
- package/dist/components/icons/system/system-add-line/system-add-line.component.js +11 -14
- package/dist/components/icons/system/system-add-line/system-add-line.component.js.map +1 -1
- package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js +9 -12
- package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-alert-line/system-alert-line.component.js +11 -14
- package/dist/components/icons/system/system-alert-line/system-alert-line.component.js.map +1 -1
- package/dist/components/icons/system/system-check-line/system-check-line.component.js +9 -12
- package/dist/components/icons/system/system-check-line/system-check-line.component.js.map +1 -1
- package/dist/components/icons/system/system-check-line2/system-check-line2.component.js +11 -14
- package/dist/components/icons/system/system-check-line2/system-check-line2.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js +9 -12
- package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js +12 -15
- package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js +13 -16
- package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js +11 -14
- package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js +11 -14
- package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js +11 -14
- package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js +7 -10
- package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js.map +1 -1
- package/dist/components/icons/system/system-close-fill/system-close-fill.component.js +11 -14
- package/dist/components/icons/system/system-close-fill/system-close-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-close-line/system-close-line.component.js +11 -14
- package/dist/components/icons/system/system-close-line/system-close-line.component.js.map +1 -1
- package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js +7 -10
- package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js +9 -12
- package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js.map +1 -1
- package/dist/components/icons/system/system-download-line/system-download-line.component.js +9 -12
- package/dist/components/icons/system/system-download-line/system-download-line.component.js.map +1 -1
- package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js +7 -10
- package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js +11 -14
- package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js.map +1 -1
- package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js +9 -12
- package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js.map +1 -1
- package/dist/components/icons/system/system-eye-line/system-eye-line.component.js +11 -14
- package/dist/components/icons/system/system-eye-line/system-eye-line.component.js.map +1 -1
- package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js +6 -9
- package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js.map +1 -1
- package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js +9 -12
- package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js +9 -12
- package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-fill/system-information-fill.component.js +9 -12
- package/dist/components/icons/system/system-information-fill/system-information-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-information-line/system-information-line.component.js +9 -12
- package/dist/components/icons/system/system-information-line/system-information-line.component.js.map +1 -1
- package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js +9 -12
- package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js +9 -12
- package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js.map +1 -1
- package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js +13 -16
- package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-lock-line/system-lock-line.component.js +10 -13
- package/dist/components/icons/system/system-lock-line/system-lock-line.component.js.map +1 -1
- package/dist/components/icons/system/system-menu-line/system-menu-line.component.js +9 -12
- package/dist/components/icons/system/system-menu-line/system-menu-line.component.js.map +1 -1
- package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js +9 -12
- package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js.map +1 -1
- package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js +10 -13
- package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js.map +1 -1
- package/dist/components/icons/system/system-more-line/system-more-line.component.js +16 -19
- package/dist/components/icons/system/system-more-line/system-more-line.component.js.map +1 -1
- package/dist/components/icons/system/system-search-line/system-search-line.component.js +11 -14
- package/dist/components/icons/system/system-search-line/system-search-line.component.js.map +1 -1
- package/dist/components/icons/system/system-share-line/system-share-line.component.js +9 -12
- package/dist/components/icons/system/system-share-line/system-share-line.component.js.map +1 -1
- package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js +8 -11
- package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js +6 -9
- package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js.map +1 -1
- package/dist/components/icons/system/system-star-fill/system-star-fill.component.js +13 -16
- package/dist/components/icons/system/system-star-fill/system-star-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js +11 -14
- package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js.map +1 -1
- package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js +7 -10
- package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js.map +1 -1
- package/dist/components/icons/system/system-time-fill/system-time-fill.component.js +11 -14
- package/dist/components/icons/system/system-time-fill/system-time-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-time-line/system-time-line.component.js +11 -14
- package/dist/components/icons/system/system-time-line/system-time-line.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js +5 -8
- package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js +7 -10
- package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js.map +1 -1
- package/dist/components/icons/system/system-upload-line/system-upload-line.component.js +9 -12
- package/dist/components/icons/system/system-upload-line/system-upload-line.component.js.map +1 -1
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js +9 -12
- package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js.map +1 -1
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js +11 -14
- package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js.map +1 -1
- package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js +16 -19
- package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js.map +1 -1
- package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js +13 -16
- package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js.map +1 -1
- package/dist/components/icons/user/user-user-fill/user-user-fill.component.js +8 -11
- package/dist/components/icons/user/user-user-fill/user-user-fill.component.js.map +1 -1
- package/dist/components/icons/user/user-user-line/user-user-line.component.js +11 -14
- package/dist/components/icons/user/user-user-line/user-user-line.component.js.map +1 -1
- package/dist/components/image-zoom/image-zoom.component.js +12 -17
- package/dist/components/image-zoom/image-zoom.component.js.map +1 -1
- package/dist/components/input/_styles/input.scss.js +1 -1
- package/dist/components/input/input-base-element.js +41 -47
- package/dist/components/input/input-base-element.js.map +1 -1
- package/dist/components/label/_styles/label.scss.js +1 -1
- package/dist/components/label/label.component.js +8 -11
- package/dist/components/label/label.component.js.map +1 -1
- package/dist/components/link/link.component.js +23 -27
- package/dist/components/link/link.component.js.map +1 -1
- package/dist/components/list-item/list-item.component.d.ts +2 -0
- package/dist/components/list-item/list-item.component.js +24 -29
- package/dist/components/list-item/list-item.component.js.map +1 -1
- package/dist/components/modal/modal-base-element.js +36 -42
- package/dist/components/modal/modal-base-element.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.component.d.ts +9 -1
- package/dist/components/navigation-menu/navigation-menu-item.component.js +36 -31
- package/dist/components/navigation-menu/navigation-menu-item.component.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.component.js +20 -24
- package/dist/components/navigation-menu/navigation-menu.component.js.map +1 -1
- package/dist/components/notification-badge/notification-badge.component.js +28 -32
- package/dist/components/notification-badge/notification-badge.component.js.map +1 -1
- package/dist/components/number-input/number-input.component.d.ts +7 -0
- package/dist/components/number-input/number-input.component.js +23 -29
- package/dist/components/number-input/number-input.component.js.map +1 -1
- package/dist/components/official-website-banner/official-website-banner.component.d.ts +1 -0
- package/dist/components/official-website-banner/official-website-banner.component.js +19 -24
- package/dist/components/official-website-banner/official-website-banner.component.js.map +1 -1
- package/dist/components/option-group/option-group.component.js +17 -20
- package/dist/components/option-group/option-group.component.js.map +1 -1
- package/dist/components/option-item/option-item.component.d.ts +10 -0
- package/dist/components/option-item/option-item.component.js +66 -60
- package/dist/components/option-item/option-item.component.js.map +1 -1
- package/dist/components/option-item/option-item.scss.js +1 -1
- package/dist/components/option-list/__test__/listbox-harness.d.ts +129 -0
- package/dist/components/option-list/listbox-state.d.ts +230 -0
- package/dist/components/option-list/listbox-state.js +312 -0
- package/dist/components/option-list/listbox-state.js.map +1 -0
- package/dist/components/option-list/option-data.d.ts +35 -0
- package/dist/components/option-list/option-data.js +34 -0
- package/dist/components/option-list/option-data.js.map +1 -0
- package/dist/components/option-list/option-list.component.d.ts +66 -14
- package/dist/components/option-list/option-list.component.js +381 -294
- package/dist/components/option-list/option-list.component.js.map +1 -1
- package/dist/components/overlay/overlay.component.js +10 -13
- package/dist/components/overlay/overlay.component.js.map +1 -1
- package/dist/components/pager/pager.component.js +31 -37
- package/dist/components/pager/pager.component.js.map +1 -1
- package/dist/components/password-input/password-input.component.d.ts +12 -5
- package/dist/components/password-input/password-input.component.js +24 -30
- package/dist/components/password-input/password-input.component.js.map +1 -1
- package/dist/components/popup/popup-base-element.js +21 -25
- package/dist/components/popup/popup-base-element.js.map +1 -1
- package/dist/components/progress/progress.component.js +17 -21
- package/dist/components/progress/progress.component.js.map +1 -1
- package/dist/components/radio-button/_styles/radio-button.scss.js +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +5 -0
- package/dist/components/radio-button/radio-button.component.js +58 -62
- package/dist/components/radio-button/radio-button.component.js.map +1 -1
- package/dist/components/rating/_styles/rating.scss.js +2 -2
- package/dist/components/rating/rating.component.js +37 -41
- package/dist/components/rating/rating.component.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.component.d.ts +2 -1
- package/dist/components/scroll-area/scroll-area.component.js +25 -28
- package/dist/components/scroll-area/scroll-area.component.js.map +1 -1
- package/dist/components/scroll-progress/scroll-progress.component.js +13 -17
- package/dist/components/scroll-progress/scroll-progress.component.js.map +1 -1
- package/dist/components/search/search.component.d.ts +6 -1
- package/dist/components/search/search.component.js.map +1 -1
- package/dist/components/select/select.component.d.ts +47 -0
- package/dist/components/select/select.component.js +268 -157
- package/dist/components/select/select.component.js.map +1 -1
- package/dist/components/select/select.scss.js +1 -1
- package/dist/components/sidenav/sidenav-group.component.d.ts +1 -0
- package/dist/components/sidenav/sidenav-group.component.js +11 -14
- package/dist/components/sidenav/sidenav-group.component.js.map +1 -1
- package/dist/components/sidenav/sidenav-item.component.js +20 -23
- package/dist/components/sidenav/sidenav-item.component.js.map +1 -1
- package/dist/components/sidenav/sidenav.component.js +17 -20
- package/dist/components/sidenav/sidenav.component.js.map +1 -1
- package/dist/components/skeleton/skeleton.component.js +9 -12
- package/dist/components/skeleton/skeleton.component.js.map +1 -1
- package/dist/components/skip-link/skip-link.component.js +13 -16
- package/dist/components/skip-link/skip-link.component.js.map +1 -1
- package/dist/components/snackbar/snackbar-message.component.d.ts +3 -1
- package/dist/components/snackbar/snackbar-message.component.js +39 -44
- package/dist/components/snackbar/snackbar-message.component.js.map +1 -1
- package/dist/components/snackbar/snackbar.component.d.ts +0 -1
- package/dist/components/snackbar/snackbar.component.js +36 -42
- package/dist/components/snackbar/snackbar.component.js.map +1 -1
- package/dist/components/spinner/spinner.component.js +33 -38
- package/dist/components/spinner/spinner.component.js.map +1 -1
- package/dist/components/stack/stack.component.d.ts +2 -1
- package/dist/components/stack/stack.component.js +16 -19
- package/dist/components/stack/stack.component.js.map +1 -1
- package/dist/components/switch/switch.component.d.ts +6 -0
- package/dist/components/switch/switch.component.js +48 -51
- package/dist/components/switch/switch.component.js.map +1 -1
- package/dist/components/switch/switch.scss.js +1 -1
- package/dist/components/tab/tab-group.component.d.ts +8 -3
- package/dist/components/tab/tab-group.component.js +43 -33
- package/dist/components/tab/tab-group.component.js.map +1 -1
- package/dist/components/tab/tab.component.js +22 -25
- package/dist/components/tab/tab.component.js.map +1 -1
- package/dist/components/table/table-cell.component.d.ts +1 -1
- package/dist/components/table/table-cell.component.js +16 -19
- package/dist/components/table/table-cell.component.js.map +1 -1
- package/dist/components/table/table-header.component.js +21 -24
- package/dist/components/table/table-header.component.js.map +1 -1
- package/dist/components/table/table-row.component.js +15 -18
- package/dist/components/table/table-row.component.js.map +1 -1
- package/dist/components/table/table.component.d.ts +2 -0
- package/dist/components/table/table.component.js +18 -22
- package/dist/components/table/table.component.js.map +1 -1
- package/dist/components/textarea/textarea.component.d.ts +2 -0
- package/dist/components/textarea/textarea.component.js +42 -46
- package/dist/components/textarea/textarea.component.js.map +1 -1
- package/dist/components/textarea/textarea.scss.js +1 -1
- package/dist/components/timeline/timeline-item.component.js +7 -10
- package/dist/components/timeline/timeline-item.component.js.map +1 -1
- package/dist/components/timeline/timeline.component.js +5 -8
- package/dist/components/timeline/timeline.component.js.map +1 -1
- package/dist/components/timepicker/time-grid.component.d.ts +3 -0
- package/dist/components/timepicker/time-grid.component.js +12 -15
- package/dist/components/timepicker/time-grid.component.js.map +1 -1
- package/dist/components/timepicker/timepicker.component.d.ts +5 -0
- package/dist/components/timepicker/timepicker.component.js +90 -95
- package/dist/components/timepicker/timepicker.component.js.map +1 -1
- package/dist/components/timepicker/timepicker.scss.js +1 -1
- package/dist/components/toc/toc.component.d.ts +2 -0
- package/dist/components/toc/toc.component.js +58 -61
- package/dist/components/toc/toc.component.js.map +1 -1
- package/dist/components/toggle-button/toggle-button.component.js +9 -12
- package/dist/components/toggle-button/toggle-button.component.js.map +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +2 -0
- package/dist/components/tooltip/tooltip.component.js +16 -18
- package/dist/components/tooltip/tooltip.component.js.map +1 -1
- package/dist/components/tray/tray.component.d.ts +4 -1
- package/dist/components/tray/tray.component.js +13 -16
- package/dist/components/tray/tray.component.js.map +1 -1
- package/dist/components/typography/typography.component.js +38 -41
- package/dist/components/typography/typography.component.js.map +1 -1
- package/dist/components.d.ts +3 -0
- package/dist/components.js +204 -195
- package/dist/components.js.map +1 -1
- package/dist/components.native.css +5 -2
- package/dist/components.native.css.map +1 -1
- package/dist/dap-design-system.d.ts +3 -0
- package/dist/dds-preupgrade.css +57 -0
- package/dist/dds.js +383 -374
- package/dist/dds.js.map +1 -1
- package/dist/internal/dds-hu-element.d.ts +8 -0
- package/dist/internal/dds-hu-element.js +40 -41
- package/dist/internal/dds-hu-element.js.map +1 -1
- package/dist/internal/mixin/choiceElementMixin.js +7 -7
- package/dist/internal/mixin/feedbackMixin.js +13 -15
- package/dist/internal/mixin/feedbackMixin.js.map +1 -1
- package/dist/internal/mixin/focusableMixin.js +6 -6
- package/dist/internal/mixin/formElementMixin.js +1 -1
- package/dist/internal/mixin/labelPositionedMixin.js +1 -1
- package/dist/internal/mixin/labelableMixin.d.ts +1 -1
- package/dist/internal/mixin/labelableMixin.js +61 -63
- package/dist/internal/mixin/labelableMixin.js.map +1 -1
- package/dist/internal/mixin/sizedMixin.js +29 -27
- package/dist/internal/mixin/sizedMixin.js.map +1 -1
- package/dist/internal/templates/formLabel.d.ts +41 -0
- package/dist/internal/templates/formLabel.js +47 -0
- package/dist/internal/templates/formLabel.js.map +1 -0
- package/dist/localization/localization.d.ts +1 -2
- package/dist/localization/localization.js +77 -76
- package/dist/localization/localization.js.map +1 -1
- package/dist/localization/localize-controller.d.ts +12 -0
- package/dist/localization/localize-controller.js +51 -0
- package/dist/localization/localize-controller.js.map +1 -0
- package/dist/manifest/types/vue/index.d.ts +527 -312
- package/dist/manifest/vscode.html-custom-data.json +333 -279
- package/dist/manifest/web-types.json +723 -619
- package/dist/react/dap-ds-accordion/index.d.ts +1 -0
- package/dist/react/dap-ds-accordion/index.js.map +1 -1
- package/dist/react/dap-ds-anchor-heading/index.d.ts +1 -0
- package/dist/react/dap-ds-anchor-heading/index.js.map +1 -1
- package/dist/react/dap-ds-banner/index.d.ts +1 -1
- package/dist/react/dap-ds-banner/index.js.map +1 -1
- package/dist/react/dap-ds-breadcrumb/index.d.ts +1 -1
- package/dist/react/dap-ds-breadcrumb/index.js.map +1 -1
- package/dist/react/dap-ds-button-group/index.d.ts +45 -0
- package/dist/react/dap-ds-button-group/index.js +15 -0
- package/dist/react/dap-ds-button-group/index.js.map +1 -0
- package/dist/react/dap-ds-button-group-separator/index.d.ts +24 -0
- package/dist/react/dap-ds-button-group-separator/index.js +15 -0
- package/dist/react/dap-ds-button-group-separator/index.js.map +1 -0
- package/dist/react/dap-ds-button-group-text/index.d.ts +30 -0
- package/dist/react/dap-ds-button-group-text/index.js +15 -0
- package/dist/react/dap-ds-button-group-text/index.js.map +1 -0
- package/dist/react/dap-ds-calendar/index.d.ts +3 -0
- package/dist/react/dap-ds-calendar/index.js.map +1 -1
- package/dist/react/dap-ds-callout/index.d.ts +1 -0
- package/dist/react/dap-ds-callout/index.js.map +1 -1
- package/dist/react/dap-ds-card/index.d.ts +1 -0
- package/dist/react/dap-ds-card/index.js.map +1 -1
- package/dist/react/dap-ds-checkbox/index.d.ts +7 -1
- package/dist/react/dap-ds-checkbox/index.js.map +1 -1
- package/dist/react/dap-ds-chip/index.d.ts +1 -0
- package/dist/react/dap-ds-chip/index.js.map +1 -1
- package/dist/react/dap-ds-code-puncher/index.d.ts +4 -0
- package/dist/react/dap-ds-code-puncher/index.js.map +1 -1
- package/dist/react/dap-ds-combobox/index.d.ts +9 -1
- package/dist/react/dap-ds-combobox/index.js.map +1 -1
- package/dist/react/dap-ds-command/index.d.ts +3 -0
- package/dist/react/dap-ds-command/index.js.map +1 -1
- package/dist/react/dap-ds-copybox-input/index.d.ts +11 -0
- package/dist/react/dap-ds-copybox-input/index.js.map +1 -1
- package/dist/react/dap-ds-datatable/index.d.ts +17 -0
- package/dist/react/dap-ds-datatable/index.js.map +1 -1
- package/dist/react/dap-ds-datepicker/index.d.ts +8 -0
- package/dist/react/dap-ds-datepicker/index.js.map +1 -1
- package/dist/react/dap-ds-file-input/index.d.ts +3 -0
- package/dist/react/dap-ds-file-input/index.js.map +1 -1
- package/dist/react/dap-ds-file-input-list-item/index.d.ts +1 -0
- package/dist/react/dap-ds-file-input-list-item/index.js.map +1 -1
- package/dist/react/dap-ds-form-label/index.d.ts +1 -1
- package/dist/react/dap-ds-form-label/index.js.map +1 -1
- package/dist/react/dap-ds-icon-button/index.d.ts +1 -0
- package/dist/react/dap-ds-icon-button/index.js.map +1 -1
- package/dist/react/dap-ds-input-group/index.d.ts +4 -0
- package/dist/react/dap-ds-input-group/index.js.map +1 -1
- package/dist/react/dap-ds-list-item/index.d.ts +2 -0
- package/dist/react/dap-ds-list-item/index.js.map +1 -1
- package/dist/react/dap-ds-number-input/index.d.ts +7 -0
- package/dist/react/dap-ds-number-input/index.js.map +1 -1
- package/dist/react/dap-ds-official-website-banner/index.d.ts +1 -0
- package/dist/react/dap-ds-official-website-banner/index.js.map +1 -1
- package/dist/react/dap-ds-option-item/index.d.ts +1 -0
- package/dist/react/dap-ds-option-item/index.js.map +1 -1
- package/dist/react/dap-ds-option-list/index.d.ts +1 -1
- package/dist/react/dap-ds-option-list/index.js.map +1 -1
- package/dist/react/dap-ds-password-input/index.d.ts +12 -5
- package/dist/react/dap-ds-password-input/index.js.map +1 -1
- package/dist/react/dap-ds-radio-button/index.d.ts +5 -0
- package/dist/react/dap-ds-radio-button/index.js.map +1 -1
- package/dist/react/dap-ds-radio-group/index.d.ts +5 -0
- package/dist/react/dap-ds-radio-group/index.js.map +1 -1
- package/dist/react/dap-ds-scroll-area/index.d.ts +2 -1
- package/dist/react/dap-ds-scroll-area/index.js.map +1 -1
- package/dist/react/dap-ds-search/index.d.ts +6 -1
- package/dist/react/dap-ds-search/index.js.map +1 -1
- package/dist/react/dap-ds-select/index.d.ts +6 -0
- package/dist/react/dap-ds-select/index.js.map +1 -1
- package/dist/react/dap-ds-sidenav-group/index.d.ts +1 -0
- package/dist/react/dap-ds-sidenav-group/index.js.map +1 -1
- package/dist/react/dap-ds-snackbar/index.d.ts +0 -1
- package/dist/react/dap-ds-snackbar/index.js.map +1 -1
- package/dist/react/dap-ds-snackbar-message/index.d.ts +3 -1
- package/dist/react/dap-ds-snackbar-message/index.js.map +1 -1
- package/dist/react/dap-ds-stack/index.d.ts +2 -1
- package/dist/react/dap-ds-stack/index.js.map +1 -1
- package/dist/react/dap-ds-switch/index.d.ts +6 -0
- package/dist/react/dap-ds-switch/index.js.map +1 -1
- package/dist/react/dap-ds-tab-group/index.d.ts +4 -2
- package/dist/react/dap-ds-tab-group/index.js.map +1 -1
- package/dist/react/dap-ds-table/index.d.ts +2 -0
- package/dist/react/dap-ds-table/index.js.map +1 -1
- package/dist/react/dap-ds-table-cell/index.d.ts +1 -1
- package/dist/react/dap-ds-table-cell/index.js.map +1 -1
- package/dist/react/dap-ds-textarea/index.d.ts +2 -0
- package/dist/react/dap-ds-textarea/index.js.map +1 -1
- package/dist/react/dap-ds-time-grid/index.d.ts +3 -0
- package/dist/react/dap-ds-time-grid/index.js.map +1 -1
- package/dist/react/dap-ds-timepicker/index.d.ts +5 -0
- package/dist/react/dap-ds-timepicker/index.js.map +1 -1
- package/dist/react/dap-ds-toc/index.d.ts +2 -0
- package/dist/react/dap-ds-toc/index.js.map +1 -1
- package/dist/react/dap-ds-tooltip/index.d.ts +2 -0
- package/dist/react/dap-ds-tooltip/index.js.map +1 -1
- package/dist/react/dap-ds-tray/index.d.ts +4 -1
- package/dist/react/dap-ds-tray/index.js.map +1 -1
- package/dist/react/index.d.ts +11 -8
- package/dist/react-types.ts +11 -8
- package/dist/react.js +366 -360
- package/dist/react.js.map +1 -1
- package/package.json +14 -3
- package/dist/node_modules/@lit/context/lib/context-request-event.js +0 -14
- package/dist/node_modules/@lit/context/lib/context-request-event.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js +0 -31
- package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/controllers/context-provider.js +0 -40
- package/dist/node_modules/@lit/context/lib/controllers/context-provider.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/create-context.js +0 -12
- package/dist/node_modules/@lit/context/lib/create-context.js.map +0 -1
- package/dist/node_modules/@lit/context/lib/value-notifier.js +0 -37
- package/dist/node_modules/@lit/context/lib/value-notifier.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -51
- package/dist/node_modules/@lit/reactive-element/css-tag.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -10
- package/dist/node_modules/@lit/reactive-element/decorators/base.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -38
- package/dist/node_modules/@lit/reactive-element/decorators/property.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-all.js +0 -17
- package/dist/node_modules/@lit/reactive-element/decorators/query-all.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -21
- package/dist/node_modules/@lit/reactive-element/decorators/query.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -25
- package/dist/node_modules/@lit/reactive-element/decorators/state.js.map +0 -1
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -276
- package/dist/node_modules/@lit/reactive-element/reactive-element.js.map +0 -1
- package/dist/node_modules/lit-element/lit-element.js +0 -53
- package/dist/node_modules/lit-element/lit-element.js.map +0 -1
- package/dist/node_modules/lit-html/async-directive.js +0 -71
- package/dist/node_modules/lit-html/async-directive.js.map +0 -1
- package/dist/node_modules/lit-html/directive-helpers.js +0 -46
- package/dist/node_modules/lit-html/directive-helpers.js.map +0 -1
- package/dist/node_modules/lit-html/directive.js +0 -28
- package/dist/node_modules/lit-html/directive.js.map +0 -1
- package/dist/node_modules/lit-html/directives/if-defined.js +0 -11
- package/dist/node_modules/lit-html/directives/if-defined.js.map +0 -1
- package/dist/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/lit-html/directives/map.js.map +0 -1
- package/dist/node_modules/lit-html/directives/repeat.js +0 -63
- package/dist/node_modules/lit-html/directives/repeat.js.map +0 -1
- package/dist/node_modules/lit-html/directives/style-map.js +0 -37
- package/dist/node_modules/lit-html/directives/style-map.js.map +0 -1
- package/dist/node_modules/lit-html/lit-html.js +0 -249
- package/dist/node_modules/lit-html/lit-html.js.map +0 -1
- package/dist/node_modules/lit-html/static.js +0 -34
- package/dist/node_modules/lit-html/static.js.map +0 -1
- package/dist/node_modules/lit-i18n/src/lit-i18n.js +0 -95
- package/dist/node_modules/lit-i18n/src/lit-i18n.js.map +0 -1
|
@@ -1,54 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var v = Object.getOwnPropertySymbols;
|
|
3
|
+
var x = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var $ = (p, e, t) => e in p ? O(p, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[e] = t, D = (p, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
x.call(e, t) && $(p, t, e[t]);
|
|
7
|
+
if (v)
|
|
8
|
+
for (var t of v(e))
|
|
9
|
+
I.call(e, t) && $(p, t, e[t]);
|
|
10
|
+
return p;
|
|
11
|
+
};
|
|
12
|
+
var f = (p, e, t) => new Promise((i, s) => {
|
|
13
|
+
var d = (c) => {
|
|
3
14
|
try {
|
|
4
|
-
b(t.next(
|
|
15
|
+
b(t.next(c));
|
|
5
16
|
} catch (y) {
|
|
6
|
-
|
|
17
|
+
s(y);
|
|
7
18
|
}
|
|
8
|
-
},
|
|
19
|
+
}, h = (c) => {
|
|
9
20
|
try {
|
|
10
|
-
b(t.throw(
|
|
21
|
+
b(t.throw(c));
|
|
11
22
|
} catch (y) {
|
|
12
|
-
|
|
23
|
+
s(y);
|
|
13
24
|
}
|
|
14
|
-
}, b = (
|
|
15
|
-
b((t = t.apply(
|
|
25
|
+
}, b = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(d, h);
|
|
26
|
+
b((t = t.apply(p, e)).next());
|
|
16
27
|
});
|
|
17
|
-
import { clsx as
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { getValidityStateObject as D, idInScope as w } from "../../common/utils.js";
|
|
27
|
-
import { GenericFormElement as k } from "../../internal/mixin/genericFormElement.js";
|
|
28
|
+
import { clsx as m } from "../../node_modules/clsx/dist/clsx.js";
|
|
29
|
+
import { unsafeCSS as k, nothing as g } from "lit";
|
|
30
|
+
import { query as S, property as r, state as C } from "lit/decorators.js";
|
|
31
|
+
import { ifDefined as l } from "lit/directives/if-defined.js";
|
|
32
|
+
import { styleMap as A } from "lit/directives/style-map.js";
|
|
33
|
+
import { html as o } from "lit/static-html.js";
|
|
34
|
+
import { getValidityStateObject as L, idInScope as V } from "../../common/utils.js";
|
|
35
|
+
import { GenericFormElement as B } from "../../internal/mixin/genericFormElement.js";
|
|
36
|
+
import { formLabelTemplate as T } from "../../internal/templates/formLabel.js";
|
|
28
37
|
import "../../localization/localization.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
43
|
-
var
|
|
44
|
-
for (var
|
|
45
|
-
(
|
|
46
|
-
return
|
|
38
|
+
import z from "../feedback/feedback.component.js";
|
|
39
|
+
import N from "../form/form-label/form-label.component.js";
|
|
40
|
+
import q from "../icon/icon.component.js";
|
|
41
|
+
import E from "../icon-button/icon-button.component.js";
|
|
42
|
+
import M from "../icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js";
|
|
43
|
+
import _ from "../icons/system/system-loading-spinner/system-loading-spinner.component.js";
|
|
44
|
+
import { toOptionItems as F, optionElementsFor as P, optionDataOf as H, optionItemsConverter as j } from "../option-list/option-data.js";
|
|
45
|
+
import U from "../option-list/option-list.component.js";
|
|
46
|
+
import K from "../popup/popup.component.js";
|
|
47
|
+
import R from "../tooltip/tooltip.component.js";
|
|
48
|
+
import G from "../tray/tray.component.js";
|
|
49
|
+
import J from "../typography/typography.component.js";
|
|
50
|
+
import Q from "./select.scss.js";
|
|
51
|
+
import w, { t as W } from "../../node_modules/i18next/dist/esm/i18next.js";
|
|
52
|
+
var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, n = (p, e, t, i) => {
|
|
53
|
+
for (var s = i > 1 ? void 0 : i ? Y(e, t) : e, d = p.length - 1, h; d >= 0; d--)
|
|
54
|
+
(h = p[d]) && (s = (i ? h(e, t, s) : h(s)) || s);
|
|
55
|
+
return i && s && X(e, t, s), s;
|
|
47
56
|
};
|
|
48
|
-
const
|
|
57
|
+
const Z = () => typeof CSS != "undefined" && typeof CSS.supports == "function" && CSS.supports("appearance", "base-select"), u = class u extends B {
|
|
49
58
|
constructor() {
|
|
50
|
-
super(...arguments), this.placement = "bottom-start", this.opened = !1, this.isMobile = !1, this.native = !1, this.loading = !1, this.noAnimation = !1, this.floatingStrategy = "absolute", this.disableViewportAutoClose = !1, this.languageChangeHandler = () => {
|
|
59
|
+
super(...arguments), this.placement = "bottom-start", this.opened = !1, this.isMobile = !1, this.native = !1, this.customizable = !1, this.loading = !1, this.noAnimation = !1, this.floatingStrategy = "absolute", this.disableViewportAutoClose = !1, this.baseSelectSupported = !1, this.languageChangeHandler = () => {
|
|
51
60
|
this.requestUpdate();
|
|
61
|
+
}, this.handleSlotChange = () => {
|
|
62
|
+
this.syncSelectedItem();
|
|
52
63
|
}, this.handleClick = () => {
|
|
53
64
|
this.readonly || this.disabled || (this.opened ? this.hideDropDown() : this.showDropDown());
|
|
54
65
|
}, this.handleKeyDown = (e) => f(this, null, function* () {
|
|
@@ -62,12 +73,12 @@ const c = class c extends k {
|
|
|
62
73
|
this.emit("dds-keydown", e), this.showDropDown(e.key);
|
|
63
74
|
}
|
|
64
75
|
}), this.handleListKeyDown = (e) => {
|
|
65
|
-
var t,
|
|
76
|
+
var t, i;
|
|
66
77
|
if (((t = e.detail) == null ? void 0 : t.key) === "Tab") {
|
|
67
78
|
this.hideDropDown({ skipFocus: !0 }), this.focus();
|
|
68
79
|
return;
|
|
69
80
|
}
|
|
70
|
-
((
|
|
81
|
+
((i = e.detail) == null ? void 0 : i.key) === "Escape" && this.hideDropDown();
|
|
71
82
|
}, this.handleDocumentMouseDown = (e) => {
|
|
72
83
|
const t = e.composedPath();
|
|
73
84
|
this && !t.includes(this) && this.hideDropDown();
|
|
@@ -78,22 +89,63 @@ const c = class c extends k {
|
|
|
78
89
|
}, this.handleBlur = () => {
|
|
79
90
|
this.emit("dds-blur");
|
|
80
91
|
}, this.handleSelectedChange = (e) => {
|
|
81
|
-
|
|
82
|
-
|
|
92
|
+
var h;
|
|
93
|
+
const t = Object.keys(e.detail).length ? e.detail : null, i = t == null ? void 0 : t.value, s = ((h = e.target) == null ? void 0 : h.value) !== void 0 && e.target.value !== i, d = i !== this.value && !s;
|
|
94
|
+
this.selectedItem = t, this.hideDropDown(), this.value = i, d && this.emit("dds-change", this.selectedItem), this.setValidity();
|
|
83
95
|
}, this.handleOptionDeselect = () => {
|
|
84
96
|
this.selectedItem = null, this.value = void 0, this.emit("dds-change", null), this.setValidity();
|
|
85
97
|
}, this.handleNativeChange = (e) => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
);
|
|
89
|
-
this.value = s, this.selectedItem = l ? { value: s, text: l.optionText } : { value: s, text: s }, this.emit("dds-change", this.selectedItem), this.setValidity();
|
|
98
|
+
var d;
|
|
99
|
+
const i = e.target.value, s = (d = this.getOptions().find((h) => h.value === i)) != null ? d : null;
|
|
100
|
+
this.value = i, this.selectedItem = s ? { value: i, text: s.optionText } : { value: i, text: i }, this.emit("dds-change", this.selectedItem), this.setValidity();
|
|
90
101
|
};
|
|
91
102
|
}
|
|
103
|
+
get items() {
|
|
104
|
+
return this._items;
|
|
105
|
+
}
|
|
106
|
+
set items(e) {
|
|
107
|
+
this._items = F(e);
|
|
108
|
+
}
|
|
92
109
|
connectedCallback() {
|
|
93
|
-
super.connectedCallback(),
|
|
110
|
+
super.connectedCallback(), this.baseSelectSupported = Z(), w.on("languageChanged", this.languageChangeHandler), this.addEventListener("invalid", this.handleInvalid);
|
|
94
111
|
}
|
|
95
112
|
disconnectedCallback() {
|
|
96
|
-
super.disconnectedCallback(),
|
|
113
|
+
super.disconnectedCallback(), w.off("languageChanged", this.languageChangeHandler), this.removeEventListener("invalid", this.handleInvalid);
|
|
114
|
+
}
|
|
115
|
+
/** The select's options, in the order (and so with the index) the list uses. */
|
|
116
|
+
getOptions() {
|
|
117
|
+
var e, t;
|
|
118
|
+
return this.items ? P(this.items) : typeof this.querySelectorAll != "function" ? [] : (t = (e = this.optionList) == null ? void 0 : e.getAllOptions()) != null ? t : [
|
|
119
|
+
...this.querySelectorAll("dap-ds-option-item")
|
|
120
|
+
];
|
|
121
|
+
}
|
|
122
|
+
/** The selected item for `value`, shaped like the list's option-change detail. */
|
|
123
|
+
findSelectedItem(e) {
|
|
124
|
+
if (e == null)
|
|
125
|
+
return null;
|
|
126
|
+
const t = this.getOptions(), i = t.findIndex((h) => h.value === e);
|
|
127
|
+
if (i < 0)
|
|
128
|
+
return null;
|
|
129
|
+
const s = t[i], d = H(s);
|
|
130
|
+
return D({
|
|
131
|
+
opt: s,
|
|
132
|
+
value: s.value,
|
|
133
|
+
text: s.optionText,
|
|
134
|
+
index: i
|
|
135
|
+
}, d ? { item: d } : {});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Derive `selectedItem` from `value` and the options, so the trigger text
|
|
139
|
+
* and validity never depend on the list echoing the value back. An unknown
|
|
140
|
+
* value leaves it alone; the list answers that one (revert).
|
|
141
|
+
*/
|
|
142
|
+
syncSelectedItem() {
|
|
143
|
+
var t, i;
|
|
144
|
+
const e = this.findSelectedItem(this.value);
|
|
145
|
+
e && (e.opt !== ((t = this.selectedItem) == null ? void 0 : t.opt) || e.value !== ((i = this.selectedItem) == null ? void 0 : i.value)) && (this.selectedItem = e);
|
|
146
|
+
}
|
|
147
|
+
willUpdate(e) {
|
|
148
|
+
super.willUpdate(e), (e.has("value") || e.has("items")) && this.syncSelectedItem();
|
|
97
149
|
}
|
|
98
150
|
/**
|
|
99
151
|
* Lifecycle method to handle property changes
|
|
@@ -105,7 +157,7 @@ const c = class c extends k {
|
|
|
105
157
|
}
|
|
106
158
|
}
|
|
107
159
|
formResetCallback() {
|
|
108
|
-
this.internals.setValidity({}), this.internals.setFormValue(this.defaultValue), this.value = this.defaultValue, this.selectedItem = this.defaultValue;
|
|
160
|
+
this.internals.setValidity({}), this.internals.setFormValue(this.defaultValue), this.value = this.defaultValue, this.selectedItem = this.findSelectedItem(this.defaultValue);
|
|
109
161
|
}
|
|
110
162
|
showDropDown(e) {
|
|
111
163
|
return f(this, null, function* () {
|
|
@@ -137,24 +189,20 @@ const c = class c extends k {
|
|
|
137
189
|
}
|
|
138
190
|
// custom validation
|
|
139
191
|
get validity() {
|
|
140
|
-
return this.internals.validity ? this.internals.validity :
|
|
192
|
+
return this.internals.validity ? this.internals.validity : L({
|
|
141
193
|
valueMissing: this.required && (!this.selectedItem || this.selectedItem.value === "" || this.value === "" || this.value === void 0 || this.value === null)
|
|
142
194
|
});
|
|
143
195
|
}
|
|
144
196
|
get validationMessage() {
|
|
145
|
-
return
|
|
197
|
+
return W("form.validationMessage.select");
|
|
146
198
|
}
|
|
147
199
|
/** Get the current display text for the selected item, dynamically fetching from the option */
|
|
148
200
|
get selectedDisplayText() {
|
|
149
201
|
if (!this.selectedItem) return null;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (e)
|
|
155
|
-
return e.optionText;
|
|
156
|
-
}
|
|
157
|
-
return this.selectedItem.text;
|
|
202
|
+
const e = this.getOptions().find(
|
|
203
|
+
(t) => t.value === this.selectedItem.value
|
|
204
|
+
);
|
|
205
|
+
return e ? e.optionText : this.selectedItem.text;
|
|
158
206
|
}
|
|
159
207
|
checkValidity() {
|
|
160
208
|
const e = !!this.selectedItem && this.selectedItem.value !== "" && this.value !== "" && this.value !== void 0 && this.value !== null;
|
|
@@ -175,8 +223,39 @@ const c = class c extends k {
|
|
|
175
223
|
handleInvalid(e) {
|
|
176
224
|
e.preventDefault(), this.focus();
|
|
177
225
|
}
|
|
226
|
+
/** Clone the option item's slotted prefix/suffix content for the customizable picker */
|
|
227
|
+
cloneSlotContent(e, t) {
|
|
228
|
+
return Array.from(e.querySelectorAll(`:scope > [slot="${t}"]`)).map(
|
|
229
|
+
(i) => {
|
|
230
|
+
const s = i.cloneNode(!0);
|
|
231
|
+
return s.removeAttribute("slot"), s;
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
/** The option label without the text of slotted prefix/suffix content */
|
|
236
|
+
getOptionLabel(e) {
|
|
237
|
+
return e.label ? e.label : Array.from(e.childNodes).filter((t) => !(t instanceof Element && t.hasAttribute("slot"))).map((t) => t.textContent).join("").trim();
|
|
238
|
+
}
|
|
239
|
+
renderBaseSelectOption(e) {
|
|
240
|
+
const t = this.cloneSlotContent(e, "prefix"), i = this.cloneSlotContent(e, "suffix");
|
|
241
|
+
return o`
|
|
242
|
+
<option
|
|
243
|
+
part="native-option"
|
|
244
|
+
value=${e.value || ""}
|
|
245
|
+
?disabled=${e.disabled}
|
|
246
|
+
?selected=${e.value === this.value}>
|
|
247
|
+
${t.length ? o`<span class="option__prefix" aria-hidden="true"
|
|
248
|
+
>${t}</span
|
|
249
|
+
>` : g}
|
|
250
|
+
<span class="option__label">${this.getOptionLabel(e)}</span>
|
|
251
|
+
${i.length ? o`<span class="option__suffix" aria-hidden="true"
|
|
252
|
+
>${i}</span
|
|
253
|
+
>` : g}
|
|
254
|
+
</option>
|
|
255
|
+
`;
|
|
256
|
+
}
|
|
178
257
|
renderNativeOption(e) {
|
|
179
|
-
return
|
|
258
|
+
return this.useBaseSelect ? this.renderBaseSelectOption(e) : o`
|
|
180
259
|
<option
|
|
181
260
|
value=${e.value || ""}
|
|
182
261
|
?disabled=${e.disabled}
|
|
@@ -189,20 +268,29 @@ const c = class c extends k {
|
|
|
189
268
|
const t = Array.from(
|
|
190
269
|
e.querySelectorAll("dap-ds-option-item")
|
|
191
270
|
);
|
|
192
|
-
return
|
|
271
|
+
return o`
|
|
193
272
|
<optgroup label=${e.label || ""} ?disabled=${e.disabled}>
|
|
194
|
-
${t.map((
|
|
273
|
+
${t.map((i) => this.renderNativeOption(i))}
|
|
195
274
|
</optgroup>
|
|
196
275
|
`;
|
|
197
276
|
}
|
|
198
277
|
renderNativeOptions() {
|
|
199
|
-
return Array.from(this.children).map((t) => t.tagName === "DAP-DS-OPTION-GROUP" ? this.renderNativeOptgroup(t) : t.tagName === "DAP-DS-OPTION-ITEM" ? this.renderNativeOption(t) : "");
|
|
278
|
+
return this.items ? this.getOptions().map((t) => this.renderNativeOption(t)) : Array.from(this.children).map((t) => t.tagName === "DAP-DS-OPTION-GROUP" ? this.renderNativeOptgroup(t) : t.tagName === "DAP-DS-OPTION-ITEM" ? this.renderNativeOption(t) : "");
|
|
279
|
+
}
|
|
280
|
+
/** True when the customizable select is requested and supported by the browser */
|
|
281
|
+
get useBaseSelect() {
|
|
282
|
+
return !!this.customizable && this.baseSelectSupported;
|
|
200
283
|
}
|
|
201
284
|
renderNativeSelect() {
|
|
202
|
-
|
|
285
|
+
const e = this.useBaseSelect;
|
|
286
|
+
return o`
|
|
203
287
|
<div class="select-wrapper--native">
|
|
204
288
|
<select
|
|
205
|
-
|
|
289
|
+
style=${A(
|
|
290
|
+
e && this.maxHeight ? { "--dds-select-picker-max-height": `${this.maxHeight}px` } : {}
|
|
291
|
+
)}
|
|
292
|
+
class="${m("select", `select--${this.effectiveSize}`, {
|
|
293
|
+
"select--base": e,
|
|
206
294
|
"select--disabled": this.disabled,
|
|
207
295
|
"select--readonly": this.readonly,
|
|
208
296
|
"select--success": this.status === "success",
|
|
@@ -210,20 +298,32 @@ const c = class c extends k {
|
|
|
210
298
|
"select--loading": this.loading
|
|
211
299
|
})}"
|
|
212
300
|
part="trigger"
|
|
213
|
-
aria-labelledby=${
|
|
214
|
-
aria-describedby=${
|
|
301
|
+
aria-labelledby=${l(this.label ? "label" : void 0)}
|
|
302
|
+
aria-describedby=${l(this.getAriaDescribedBy())}
|
|
215
303
|
?disabled=${this.disabled}
|
|
216
304
|
?required=${this.required}
|
|
217
305
|
@change=${this.handleNativeChange}
|
|
218
306
|
@focus=${this.handleFocus}
|
|
219
307
|
@blur=${this.handleBlur}>
|
|
220
|
-
${
|
|
308
|
+
${e ? (
|
|
309
|
+
// Rendered as a nested template so the HTML parser never sees a
|
|
310
|
+
// <button> inside <select> (the legacy parser would drop it and
|
|
311
|
+
// desync Lit's template parts); DOM insertion is always allowed.
|
|
312
|
+
o`<button class="select__button" part="native-button">
|
|
313
|
+
<selectedcontent></selectedcontent>
|
|
314
|
+
</button>`
|
|
315
|
+
) : g}
|
|
316
|
+
${this.placeholder ? o`<option
|
|
317
|
+
class="option--placeholder"
|
|
318
|
+
value=""
|
|
319
|
+
disabled
|
|
320
|
+
?selected=${!this.value}>
|
|
221
321
|
${this.placeholder}
|
|
222
322
|
</option>` : ""}
|
|
223
323
|
${this.renderNativeOptions()}
|
|
224
324
|
</select>
|
|
225
325
|
<div class="icon" part="indicator-icon">
|
|
226
|
-
${this.loading ?
|
|
326
|
+
${this.loading ? o`<dap-ds-icon-loading-spinner></dap-ds-icon-loading-spinner>` : o`<slot name="indicator-icon"
|
|
227
327
|
><dap-ds-icon-arrow-down-s-line></dap-ds-icon-arrow-down-s-line
|
|
228
328
|
></slot>`}
|
|
229
329
|
</div>
|
|
@@ -231,11 +331,11 @@ const c = class c extends k {
|
|
|
231
331
|
`;
|
|
232
332
|
}
|
|
233
333
|
renderTriggerElement() {
|
|
234
|
-
return
|
|
334
|
+
return o` <button
|
|
235
335
|
slot="trigger"
|
|
236
336
|
part="trigger"
|
|
237
337
|
role="combobox"
|
|
238
|
-
class="${
|
|
338
|
+
class="${m("select", `select--${this.effectiveSize}`, {
|
|
239
339
|
"select--disabled": this.disabled,
|
|
240
340
|
"select--readonly": this.readonly,
|
|
241
341
|
"select--opened": this.opened,
|
|
@@ -246,20 +346,20 @@ const c = class c extends k {
|
|
|
246
346
|
"select--optional": this.optional
|
|
247
347
|
})}"
|
|
248
348
|
aria-expanded=${this.readonly || this.disabled ? "false" : this.opened ? "true" : "false"}
|
|
249
|
-
aria-haspopup=${
|
|
349
|
+
aria-haspopup=${l(
|
|
250
350
|
this.readonly || this.disabled ? void 0 : "listbox"
|
|
251
351
|
)}
|
|
252
|
-
aria-labelledby=${
|
|
253
|
-
aria-label=${
|
|
352
|
+
aria-labelledby=${l(this.label ? "label" : void 0)}
|
|
353
|
+
aria-label=${l(
|
|
254
354
|
this.label ? void 0 : this.ariaLabel || this.selectedDisplayText || this.placeholder || void 0
|
|
255
355
|
)}
|
|
256
|
-
aria-describedby=${
|
|
356
|
+
aria-describedby=${l(this.getAriaDescribedBy())}
|
|
257
357
|
aria-disabled=${this.disabled}
|
|
258
358
|
aria-controls="option-list"
|
|
259
|
-
aria-activedescendant=${
|
|
359
|
+
aria-activedescendant=${l(
|
|
260
360
|
// Options render in option-list's shadow root, out of this scope; a
|
|
261
361
|
// cross-scope IDREF is ignored by browsers, so only same-scope ids are set
|
|
262
|
-
|
|
362
|
+
V(this.shadowRoot, this.getActiveDescendant())
|
|
263
363
|
)}
|
|
264
364
|
?required=${this.required}
|
|
265
365
|
?readonly=${this.readonly}
|
|
@@ -270,55 +370,57 @@ const c = class c extends k {
|
|
|
270
370
|
@focus=${this.handleFocus}
|
|
271
371
|
@keydown=${this.handleKeyDown}
|
|
272
372
|
@click=${this.handleClick}>
|
|
273
|
-
<span
|
|
373
|
+
<span
|
|
374
|
+
class="text"
|
|
375
|
+
.textContent=${this.selectedDisplayText || this.placeholder || ""}></span>
|
|
274
376
|
<div
|
|
275
|
-
class="${
|
|
377
|
+
class="${m("icon", {
|
|
276
378
|
"icon--opened": this.opened,
|
|
277
379
|
"icon--no-animation": this.noAnimation
|
|
278
380
|
})}"
|
|
279
381
|
part="indicator-icon">
|
|
280
|
-
${this.loading ?
|
|
382
|
+
${this.loading ? o`<dap-ds-icon-loading-spinner></dap-ds-icon-loading-spinner>` : o`<slot name="indicator-icon"
|
|
281
383
|
><dap-ds-icon-arrow-down-s-line></dap-ds-icon-arrow-down-s-line
|
|
282
384
|
></slot>`}
|
|
283
385
|
</div>
|
|
284
386
|
</button>`;
|
|
285
387
|
}
|
|
286
388
|
renderOptionList() {
|
|
287
|
-
return
|
|
389
|
+
return o` <dap-ds-option-list
|
|
288
390
|
class="option-list"
|
|
289
391
|
part="option-list"
|
|
290
392
|
exportparts="option-item, option-item-base, option-item-label, option-item-prefix, option-item-suffix"
|
|
291
393
|
id="option-list"
|
|
292
|
-
aria-labelledby=${
|
|
394
|
+
aria-labelledby=${l(this.label ? "label" : void 0)}
|
|
293
395
|
searchMode="typehead"
|
|
294
|
-
size=${
|
|
396
|
+
size=${l(this.effectiveSize)}
|
|
295
397
|
value=${this.value}
|
|
296
398
|
disableDelaySet
|
|
399
|
+
.items=${this.items}
|
|
400
|
+
.renderOption=${this.renderOption}
|
|
297
401
|
@dds-option-change=${this.handleSelectedChange}
|
|
298
402
|
@dds-keydown=${this.handleListKeyDown}
|
|
299
403
|
@dds-option-deselect=${this.handleOptionDeselect}>
|
|
300
|
-
<slot></slot>
|
|
404
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
301
405
|
</dap-ds-option-list>`;
|
|
302
406
|
}
|
|
303
407
|
render() {
|
|
304
|
-
return
|
|
305
|
-
${
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
</dap-ds-form-label>`}
|
|
321
|
-
${this.tooltip && i` <dap-ds-tooltip
|
|
408
|
+
return o` <div class="label-container">
|
|
409
|
+
${T({
|
|
410
|
+
label: this.label,
|
|
411
|
+
id: "label",
|
|
412
|
+
htmlFor: "input",
|
|
413
|
+
size: this.effectiveSize,
|
|
414
|
+
required: this.required,
|
|
415
|
+
requiredLabel: this.requiredLabel,
|
|
416
|
+
optional: this.optional,
|
|
417
|
+
optionalLabel: this.optionalLabel,
|
|
418
|
+
subtle: this.subtle,
|
|
419
|
+
disabled: this.disabled,
|
|
420
|
+
noMargin: !!this.description,
|
|
421
|
+
hideLabel: this.hideLabel
|
|
422
|
+
})}
|
|
423
|
+
${this.tooltip && o` <dap-ds-tooltip
|
|
322
424
|
part="tooltip"
|
|
323
425
|
content=${this.tooltip}
|
|
324
426
|
mode="toggle"
|
|
@@ -336,18 +438,18 @@ const c = class c extends k {
|
|
|
336
438
|
</dap-ds-icon-button>
|
|
337
439
|
</dap-ds-tooltip>`}
|
|
338
440
|
</div>
|
|
339
|
-
${this.description &&
|
|
441
|
+
${this.description && o`
|
|
340
442
|
<dap-ds-typography
|
|
341
443
|
part="description"
|
|
342
444
|
variant="description"
|
|
343
|
-
class=${
|
|
344
|
-
size=${
|
|
445
|
+
class=${m("input-description")}
|
|
446
|
+
size=${l(this.effectiveSize)}
|
|
345
447
|
id="description">
|
|
346
448
|
${this.description}
|
|
347
449
|
</dap-ds-typography>
|
|
348
450
|
`}
|
|
349
451
|
<div>
|
|
350
|
-
${this.native ? this.renderNativeSelect() : this.isMobile ?
|
|
452
|
+
${this.native || this.customizable ? this.renderNativeSelect() : this.isMobile ? o`
|
|
351
453
|
${this.renderTriggerElement()}
|
|
352
454
|
<dap-ds-tray
|
|
353
455
|
part="mobile-tray"
|
|
@@ -357,8 +459,8 @@ const c = class c extends k {
|
|
|
357
459
|
header="false"
|
|
358
460
|
>${this.renderOptionList()}</dap-ds-tray
|
|
359
461
|
>
|
|
360
|
-
` :
|
|
361
|
-
floatingStrategy=${
|
|
462
|
+
` : o`<dap-ds-popup
|
|
463
|
+
floatingStrategy=${l(this.floatingStrategy)}
|
|
362
464
|
part="base"
|
|
363
465
|
exportparts="popup:popup-base"
|
|
364
466
|
class="select-popup"
|
|
@@ -366,17 +468,17 @@ const c = class c extends k {
|
|
|
366
468
|
?hasArrow=${!1}
|
|
367
469
|
overflow
|
|
368
470
|
placement=${this.placement}
|
|
369
|
-
maxHeight=${
|
|
471
|
+
maxHeight=${l(this.maxHeight)}
|
|
370
472
|
?sync=${this.sync}
|
|
371
473
|
?disableViewportAutoClose=${this.disableViewportAutoClose}
|
|
372
474
|
@dds-close=${this.handlePopupAutoClose}
|
|
373
|
-
size=${
|
|
475
|
+
size=${l(this.effectiveSize)}>
|
|
374
476
|
${this.renderTriggerElement()} ${this.renderOptionList()}
|
|
375
477
|
</dap-ds-popup>`}
|
|
376
|
-
${this.feedback &&
|
|
478
|
+
${this.feedback && o`<dap-ds-feedback
|
|
377
479
|
part="feedback"
|
|
378
|
-
feedbackType=${
|
|
379
|
-
feedbackSize="${
|
|
480
|
+
feedbackType=${l(this.feedbackType)}
|
|
481
|
+
feedbackSize="${l(this.effectiveSize)}"
|
|
380
482
|
id="feedback"
|
|
381
483
|
.subtle=${this.subtle}>
|
|
382
484
|
${this.feedback}
|
|
@@ -384,62 +486,71 @@ const c = class c extends k {
|
|
|
384
486
|
</div>`;
|
|
385
487
|
}
|
|
386
488
|
};
|
|
387
|
-
|
|
388
|
-
"dap-ds-icon-loading-spinner":
|
|
389
|
-
"dap-ds-icon-arrow-down-s-line":
|
|
390
|
-
"dap-ds-option-list":
|
|
391
|
-
"dap-ds-form-label":
|
|
392
|
-
"dap-ds-tooltip":
|
|
393
|
-
"dap-ds-icon-button":
|
|
394
|
-
"dap-ds-icon":
|
|
395
|
-
"dap-ds-typography":
|
|
396
|
-
"dap-ds-popup":
|
|
397
|
-
"dap-ds-tray":
|
|
398
|
-
"dap-ds-feedback":
|
|
399
|
-
},
|
|
400
|
-
let a =
|
|
489
|
+
u.tagName = "dap-ds-select", u.dependencies = {
|
|
490
|
+
"dap-ds-icon-loading-spinner": _,
|
|
491
|
+
"dap-ds-icon-arrow-down-s-line": M,
|
|
492
|
+
"dap-ds-option-list": U,
|
|
493
|
+
"dap-ds-form-label": N,
|
|
494
|
+
"dap-ds-tooltip": R,
|
|
495
|
+
"dap-ds-icon-button": E,
|
|
496
|
+
"dap-ds-icon": q,
|
|
497
|
+
"dap-ds-typography": J,
|
|
498
|
+
"dap-ds-popup": K,
|
|
499
|
+
"dap-ds-tray": G,
|
|
500
|
+
"dap-ds-feedback": z
|
|
501
|
+
}, u.styles = k(Q);
|
|
502
|
+
let a = u;
|
|
503
|
+
n([
|
|
504
|
+
S("button")
|
|
505
|
+
], a.prototype, "triggerButton", 2);
|
|
506
|
+
n([
|
|
507
|
+
S("dap-ds-option-list")
|
|
508
|
+
], a.prototype, "optionList", 2);
|
|
509
|
+
n([
|
|
510
|
+
r({ reflect: !0 })
|
|
511
|
+
], a.prototype, "placement", 2);
|
|
401
512
|
n([
|
|
402
|
-
|
|
403
|
-
], a.prototype, "
|
|
513
|
+
r({ type: Boolean, reflect: !0 })
|
|
514
|
+
], a.prototype, "opened", 2);
|
|
404
515
|
n([
|
|
405
|
-
|
|
406
|
-
], a.prototype, "
|
|
516
|
+
r()
|
|
517
|
+
], a.prototype, "placeholder", 2);
|
|
407
518
|
n([
|
|
408
|
-
|
|
409
|
-
], a.prototype, "
|
|
519
|
+
r({ type: Boolean })
|
|
520
|
+
], a.prototype, "sync", 2);
|
|
410
521
|
n([
|
|
411
|
-
|
|
412
|
-
], a.prototype, "
|
|
522
|
+
r({ type: Boolean })
|
|
523
|
+
], a.prototype, "isMobile", 2);
|
|
413
524
|
n([
|
|
414
|
-
|
|
415
|
-
], a.prototype, "
|
|
525
|
+
r({ type: Boolean })
|
|
526
|
+
], a.prototype, "native", 2);
|
|
416
527
|
n([
|
|
417
|
-
|
|
418
|
-
], a.prototype, "
|
|
528
|
+
r({ type: Boolean, reflect: !0 })
|
|
529
|
+
], a.prototype, "customizable", 2);
|
|
419
530
|
n([
|
|
420
|
-
|
|
421
|
-
], a.prototype, "
|
|
531
|
+
r({ type: Boolean })
|
|
532
|
+
], a.prototype, "loading", 2);
|
|
422
533
|
n([
|
|
423
|
-
|
|
424
|
-
], a.prototype, "
|
|
534
|
+
r({ type: Number })
|
|
535
|
+
], a.prototype, "maxHeight", 2);
|
|
425
536
|
n([
|
|
426
|
-
|
|
427
|
-
], a.prototype, "
|
|
537
|
+
r({ type: Boolean })
|
|
538
|
+
], a.prototype, "noAnimation", 2);
|
|
428
539
|
n([
|
|
429
|
-
|
|
430
|
-
], a.prototype, "
|
|
540
|
+
r({ reflect: !0 })
|
|
541
|
+
], a.prototype, "floatingStrategy", 2);
|
|
431
542
|
n([
|
|
432
|
-
|
|
433
|
-
], a.prototype, "
|
|
543
|
+
r({ type: Boolean })
|
|
544
|
+
], a.prototype, "disableViewportAutoClose", 2);
|
|
434
545
|
n([
|
|
435
|
-
|
|
436
|
-
], a.prototype, "
|
|
546
|
+
r({ converter: j })
|
|
547
|
+
], a.prototype, "items", 1);
|
|
437
548
|
n([
|
|
438
|
-
|
|
439
|
-
], a.prototype, "
|
|
549
|
+
r({ attribute: !1 })
|
|
550
|
+
], a.prototype, "renderOption", 2);
|
|
440
551
|
n([
|
|
441
|
-
|
|
442
|
-
], a.prototype, "selectedItem");
|
|
552
|
+
C()
|
|
553
|
+
], a.prototype, "selectedItem", 2);
|
|
443
554
|
export {
|
|
444
555
|
a as default
|
|
445
556
|
};
|