dap-design-system 0.62.3 → 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.d.ts +8 -0
- package/dist/common/utils.js +53 -48
- 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 +29 -0
- package/dist/components/combobox/comboboxBase.js +218 -150
- 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 +68 -14
- package/dist/components/option-list/option-list.component.js +364 -274
- 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.d.ts +6 -0
- package/dist/components/popup/popup-base-element.js +96 -71
- 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 +271 -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/locales/de.json.js +7 -7
- package/dist/localization/locales/en.json.js +6 -6
- package/dist/localization/locales/hu.json.js +1 -1
- 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 +509 -292
- package/dist/manifest/vscode.html-custom-data.json +328 -269
- package/dist/manifest/web-types.json +834 -720
- 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 +362 -356
- package/dist/react.js.map +1 -1
- package/package.json +17 -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,45 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var x = (m, e, t) =>
|
|
4
|
-
var h = (m, e, t) => new Promise((i,
|
|
5
|
-
var
|
|
1
|
+
var C = Object.getPrototypeOf;
|
|
2
|
+
var O = Reflect.get;
|
|
3
|
+
var x = (m, e, t) => O(C(m), t, e);
|
|
4
|
+
var h = (m, e, t) => new Promise((i, s) => {
|
|
5
|
+
var a = (u) => {
|
|
6
6
|
try {
|
|
7
7
|
c(t.next(u));
|
|
8
8
|
} catch (b) {
|
|
9
|
-
|
|
9
|
+
s(b);
|
|
10
10
|
}
|
|
11
11
|
}, o = (u) => {
|
|
12
12
|
try {
|
|
13
13
|
c(t.throw(u));
|
|
14
14
|
} catch (b) {
|
|
15
|
-
|
|
15
|
+
s(b);
|
|
16
16
|
}
|
|
17
|
-
}, c = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(
|
|
17
|
+
}, c = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(a, o);
|
|
18
18
|
c((t = t.apply(m, e)).next());
|
|
19
19
|
});
|
|
20
20
|
import { clsx as g } from "../../node_modules/clsx/dist/clsx.js";
|
|
21
|
-
import "
|
|
22
|
-
import {
|
|
23
|
-
import "
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { query as C } from "../../node_modules/@lit/reactive-element/decorators/query.js";
|
|
27
|
-
import { ifDefined as p } from "../../node_modules/lit-html/directives/if-defined.js";
|
|
28
|
-
import { html as d } from "../../node_modules/lit-html/static.js";
|
|
29
|
-
import { getValidityStateObject as D } from "../../common/utils.js";
|
|
21
|
+
import { unsafeCSS as S, nothing as v } from "lit";
|
|
22
|
+
import { query as w, property as r, state as y } from "lit/decorators.js";
|
|
23
|
+
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
24
|
+
import { html as d } from "lit/static-html.js";
|
|
25
|
+
import { getValidityStateObject as D, idInScope as T } from "../../common/utils.js";
|
|
30
26
|
import { GenericFormElement as V } from "../../internal/mixin/genericFormElement.js";
|
|
31
27
|
import "../../localization/localization.js";
|
|
32
|
-
import $ from "
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
import { filterOptions as $ } from "../option-list/listbox-state.js";
|
|
29
|
+
import { toOptionItems as A, optionElementsFor as k, optionItemsConverter as M } from "../option-list/option-data.js";
|
|
30
|
+
import L from "./combobox.scss.js";
|
|
31
|
+
import { t as f } from "../../node_modules/i18next/dist/esm/i18next.js";
|
|
32
|
+
var E = Object.defineProperty, B = Object.getOwnPropertyDescriptor, n = (m, e, t, i) => {
|
|
33
|
+
for (var s = i > 1 ? void 0 : i ? B(e, t) : e, a = m.length - 1, o; a >= 0; a--)
|
|
34
|
+
(o = m[a]) && (s = (i ? o(e, t, s) : o(s)) || s);
|
|
35
|
+
return i && s && E(e, t, s), s;
|
|
39
36
|
};
|
|
40
|
-
const
|
|
37
|
+
const I = class I extends V {
|
|
41
38
|
constructor() {
|
|
42
|
-
super(...arguments), this.placement = "bottom-start", this.opened = !1, this.searchMode = "autocomplete", this.search = !1, this.clearButton = "true", this.allowManualInput = !1, this.searchForText = !1, this.searchOnValueSet = "false", this.loading = !1, this.selectable = "true", this.noAnimation = !1, this.textComplete = !1, this.openOnEmpty = !1, this.disableViewportAutoClose = !1, this.multiselect = !1, this.clearButtonTestId = "combobox-clear-button", this.searchButtonTestId = "combobox-search-button", this.disableSearchWhenEmpty = !1, this.selectedItems = [], this.optionListObserver = null, this.isUserInteraction = !1, this.pendingInitialValues = [], this.handleClick = () => {
|
|
39
|
+
super(...arguments), this.placement = "bottom-start", this.opened = !1, this.searchMode = "autocomplete", this.search = !1, this.clearButton = "true", this.allowManualInput = !1, this.searchForText = !1, this.searchOnValueSet = "false", this.loading = !1, this.selectable = "true", this.noAnimation = !1, this.textComplete = !1, this.openOnEmpty = !1, this.disableViewportAutoClose = !1, this.multiselect = !1, this.clearButtonTestId = "combobox-clear-button", this.searchButtonTestId = "combobox-search-button", this.disableSearchWhenEmpty = !1, this.selectedItems = [], this.filtering = !0, this.optionListObserver = null, this.isUserInteraction = !1, this.pendingInitialValues = [], this.handleClick = () => {
|
|
43
40
|
!this.getComboboxOptions().length && !this.openOnEmpty ? this.hideDropDown() : this.opened ? this.hideDropDown() : this.showDropDown();
|
|
44
41
|
}, this.handleKeyDown = (e) => h(this, null, function* () {
|
|
45
42
|
var t, i;
|
|
@@ -53,24 +50,24 @@ const f = class f extends V {
|
|
|
53
50
|
return this.hideDropDown(), this.focus();
|
|
54
51
|
if (e.key === "Backspace" && this.multiselect && (((t = this.triggerInput) == null ? void 0 : t.value) || "") === "" && this.selectedItems.length > 0) {
|
|
55
52
|
e.preventDefault();
|
|
56
|
-
const
|
|
57
|
-
this.removeSelectedItem(
|
|
53
|
+
const a = this.selectedItems[this.selectedItems.length - 1];
|
|
54
|
+
this.removeSelectedItem(a), this.emit("dds-change", {
|
|
58
55
|
value: this.selectedItems.map((o) => o.value).join(","),
|
|
59
56
|
selectedItems: this.selectedItems,
|
|
60
57
|
type: "remove",
|
|
61
|
-
item:
|
|
58
|
+
item: a
|
|
62
59
|
}), this.setValidity();
|
|
63
60
|
return;
|
|
64
61
|
}
|
|
65
62
|
if ((e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "ArrowLeft" || e.key === "ArrowRight") && this.isAutoComplete)
|
|
66
63
|
return this.handleArrowKeys(e);
|
|
67
64
|
if (this.isAutoComplete && ((i = this.triggerInput) != null && i.value) && !this.opened) {
|
|
68
|
-
const
|
|
69
|
-
(this.openOnEmpty ||
|
|
65
|
+
const s = this.getComboboxOptions().length > 0;
|
|
66
|
+
(this.openOnEmpty || s) && this.showDropDown();
|
|
70
67
|
}
|
|
71
68
|
}), this.handleInput = (e) => h(this, null, function* () {
|
|
72
69
|
const t = this.triggerInput;
|
|
73
|
-
if (this.isUserInteraction = !0, e.inputType !== "deleteContentBackward" || e.inputType === "deleteContentBackward" && this.allowManualInput ? (this.selectedText = t.value, this.search && (this.value = t.value)) : this.search ? (this.selectedText = t.value, this.value = t.value) : t.value === "" && e.inputType === "deleteContentBackward"
|
|
70
|
+
if (this.filtering = !0, this.isUserInteraction = !0, e.inputType !== "deleteContentBackward" || e.inputType === "deleteContentBackward" && this.allowManualInput ? (this.selectedText = t.value, this.search && (this.value = t.value)) : this.search ? (this.selectedText = t.value, this.value = t.value) : t.value === "" && e.inputType === "deleteContentBackward" ? this.clearSelection() : this.textComplete || (this.selectedText = t.value), this.emit("dds-input", { input: t.value, originalEvent: e }), this.setValidity(), this.requestUpdate(), this.isAutoComplete && t.value && !this.opened) {
|
|
74
71
|
const i = this.getComboboxOptions().length > 0;
|
|
75
72
|
(this.openOnEmpty || i) && this.showDropDown();
|
|
76
73
|
}
|
|
@@ -80,7 +77,10 @@ const f = class f extends V {
|
|
|
80
77
|
this.hideDropDown({ skipFocus: !0 }), this.triggerInput.focus();
|
|
81
78
|
return;
|
|
82
79
|
}
|
|
83
|
-
((i = e.detail) == null ? void 0 : i.key) === "Escape"
|
|
80
|
+
if (((i = e.detail) == null ? void 0 : i.key) === "Escape") {
|
|
81
|
+
const s = this.selectedText || "";
|
|
82
|
+
this.hideDropDown(), this.currentItem = this.selectedItem, this.selectedText = "", this.selectedItem ? this.triggerInput.value = this.selectedItemText : this.triggerInput.value = s, this.triggerInput.focus();
|
|
83
|
+
}
|
|
84
84
|
}, this.handleDocumentMouseDown = (e) => {
|
|
85
85
|
const t = e.composedPath();
|
|
86
86
|
this && !t.includes(this) && this.hideDropDown();
|
|
@@ -116,12 +116,14 @@ const f = class f extends V {
|
|
|
116
116
|
type: "deselect"
|
|
117
117
|
}), this.requestUpdate(), this.setValidity();
|
|
118
118
|
}, this.handleCurrentOptionChange = (e) => {
|
|
119
|
-
this.currentItem = e.detail, !this.multiselect && e.detail && (this.textComplete && this.searchMode !== "manual" && this.searchMode !== "none" && (this.triggerInput.value = e.detail.text), this.isAutoComplete && this.selectedText && this.selectedText !== "" && !this.allowManualInput && this.textComplete && (this.triggerInput.value = e.detail.text, this.setSelectionRange(
|
|
119
|
+
this.currentItem = e.detail, !this.multiselect && e.detail && (this.textComplete && this.selectedText && this.searchMode !== "manual" && this.searchMode !== "none" && (this.triggerInput.value = e.detail.text), this.isAutoComplete && this.selectedText && this.selectedText !== "" && !this.allowManualInput && this.textComplete && (this.triggerInput.value = e.detail.text, this.setSelectionRange(
|
|
120
120
|
this.selectedText.length,
|
|
121
121
|
this.triggerInput.value.length
|
|
122
122
|
)));
|
|
123
123
|
}, this.handleListChanged = (e) => {
|
|
124
|
-
|
|
124
|
+
var s;
|
|
125
|
+
const t = this.filtering && this.selectedText || "", i = this.searchMode !== "manual" && $(this.getComboboxOptions(), t).length > 0;
|
|
126
|
+
!e.detail.elements.length && !this.openOnEmpty && !i ? this.hideDropDown() : this.opened && e.detail.elements.length && ((s = this.optionList) == null || s.revealActiveOption());
|
|
125
127
|
}, this.handleClearClick = () => {
|
|
126
128
|
this.disabled || (this.multiselect ? this.clearAllSelections() : this.clearSelection(), this.triggerInput.focus(), this.setValidity(), this.openOnEmpty || this.hideDropDown(), this.emit("dds-clear"));
|
|
127
129
|
}, this.handleSearchClick = (e) => {
|
|
@@ -135,6 +137,12 @@ const f = class f extends V {
|
|
|
135
137
|
}), this.setValidity(), this.triggerInput.focus();
|
|
136
138
|
};
|
|
137
139
|
}
|
|
140
|
+
get items() {
|
|
141
|
+
return this._items;
|
|
142
|
+
}
|
|
143
|
+
set items(e) {
|
|
144
|
+
this._items = A(e);
|
|
145
|
+
}
|
|
138
146
|
/** True when the search input currently holds non-whitespace text. */
|
|
139
147
|
get hasSearchText() {
|
|
140
148
|
return (this.selectedText || this.selectedItemText || this.value || "").trim().length > 0;
|
|
@@ -145,34 +153,34 @@ const f = class f extends V {
|
|
|
145
153
|
* when picked by the user; reading `.text` alone yields "undefined" for the former.
|
|
146
154
|
*/
|
|
147
155
|
get selectedItemText() {
|
|
148
|
-
var e, t, i,
|
|
149
|
-
return (
|
|
156
|
+
var e, t, i, s;
|
|
157
|
+
return (s = (i = (e = this.selectedItem) == null ? void 0 : e.text) != null ? i : (t = this.selectedItem) == null ? void 0 : t.optionText) != null ? s : "";
|
|
150
158
|
}
|
|
151
159
|
firstUpdated(e) {
|
|
152
160
|
return h(this, null, function* () {
|
|
153
|
-
var
|
|
154
|
-
x(
|
|
161
|
+
var s;
|
|
162
|
+
x(I.prototype, this, "firstUpdated").call(this, e), yield this.optionList.updateComplete, yield new Promise((a) => requestAnimationFrame(a));
|
|
155
163
|
const t = this.getComboboxOptions();
|
|
156
|
-
yield Promise.all(t.map((
|
|
157
|
-
const i = x(
|
|
164
|
+
yield Promise.all(t.map((a) => a.updateComplete));
|
|
165
|
+
const i = x(I.prototype, this, "value");
|
|
158
166
|
if (i)
|
|
159
167
|
if (this.multiselect) {
|
|
160
|
-
const
|
|
161
|
-
this.pendingInitialValues =
|
|
168
|
+
const a = i.split(",").map((o) => o.trim()).filter((o) => o);
|
|
169
|
+
this.pendingInitialValues = a, this.updateMultipleSelectionsFromValues(a);
|
|
162
170
|
} else
|
|
163
|
-
this.selectedItem = (
|
|
171
|
+
this.selectedItem = (s = this.optionList) == null ? void 0 : s.getAllOptions().find((a) => a.value === i), this.selectedItem ? this.selectedText = this.selectedItem.optionText || "" : this.selectedText = "", !this.selectedText && (this.allowManualInput || this.searchMode === "none") && (this.selectedText = i);
|
|
164
172
|
this.setupOptionListObserver();
|
|
165
173
|
});
|
|
166
174
|
}
|
|
167
175
|
updated(e) {
|
|
168
|
-
var t;
|
|
169
|
-
if (super.updated(e), e.has("value") && this.triggerInput && !this.search && !this.multiselect) {
|
|
170
|
-
const
|
|
171
|
-
|
|
176
|
+
var t, i;
|
|
177
|
+
if (super.updated(e), e.has("opened") && this.opened && ((t = this.optionList) == null || t.revealActiveOption()), e.has("items") && this.updateComboboxState(), e.has("value") && this.triggerInput && !this.search && !this.multiselect) {
|
|
178
|
+
const s = this.value;
|
|
179
|
+
s ? this.handleValueChange(s) : this.clearSelection();
|
|
172
180
|
}
|
|
173
181
|
if (e.has("value") && this.triggerInput && this.isFreeTextSearch) {
|
|
174
|
-
const
|
|
175
|
-
this.triggerInput.value !==
|
|
182
|
+
const a = (this.selectedItem && this.selectedItem.value === this.value ? this.selectedItemText : "") || ((i = this.value) != null ? i : "");
|
|
183
|
+
this.triggerInput.value !== a && (this.triggerInput.value = a), this.selectedText = a;
|
|
176
184
|
}
|
|
177
185
|
}
|
|
178
186
|
get isFreeTextSearch() {
|
|
@@ -185,7 +193,7 @@ const f = class f extends V {
|
|
|
185
193
|
handleValueChange(e) {
|
|
186
194
|
if (!e) return;
|
|
187
195
|
this.isUserInteraction = !1;
|
|
188
|
-
const t = this.
|
|
196
|
+
const t = this.findOptionForValue(e);
|
|
189
197
|
t ? (this.selectedItem = t, this.selectedText = t.optionText || t.textContent || "", this.triggerInput && (this.triggerInput.value = this.selectedText), this.requestUpdate()) : (this.selectedItem = null, this.search || (this.selectedText = "", this.triggerInput && (this.triggerInput.value = "")), this.requestUpdate());
|
|
190
198
|
}
|
|
191
199
|
setupOptionListObserver() {
|
|
@@ -193,12 +201,12 @@ const f = class f extends V {
|
|
|
193
201
|
let t = !1;
|
|
194
202
|
e.forEach((i) => {
|
|
195
203
|
if (i.type === "childList") {
|
|
196
|
-
const
|
|
204
|
+
const s = Array.from(i.addedNodes).some(
|
|
197
205
|
(o) => o.nodeName === "DAP-DS-OPTION-ITEM"
|
|
198
|
-
),
|
|
206
|
+
), a = Array.from(i.removedNodes).some(
|
|
199
207
|
(o) => o.nodeName === "DAP-DS-OPTION-ITEM"
|
|
200
208
|
);
|
|
201
|
-
(
|
|
209
|
+
(s || a) && (t = !0);
|
|
202
210
|
}
|
|
203
211
|
}), t && this.updateComboboxState();
|
|
204
212
|
}), this.optionListObserver.observe(this, {
|
|
@@ -222,9 +230,7 @@ const f = class f extends V {
|
|
|
222
230
|
updateSelectionFromValue() {
|
|
223
231
|
if (!this.value) return;
|
|
224
232
|
this.isUserInteraction = !1;
|
|
225
|
-
const e = this.
|
|
226
|
-
(t) => t.value === this.value
|
|
227
|
-
);
|
|
233
|
+
const e = this.findOptionForValue(this.value);
|
|
228
234
|
e && (this.selectedItem = e, this.selectedText = e.optionText || e.textContent || "", this.triggerInput && (this.triggerInput.value = this.selectedText), this.requestUpdate());
|
|
229
235
|
}
|
|
230
236
|
cleanupOptionListObserver() {
|
|
@@ -239,12 +245,27 @@ const f = class f extends V {
|
|
|
239
245
|
get isAutoComplete() {
|
|
240
246
|
return this.searchMode === "autocomplete" || this.searchMode === "manual";
|
|
241
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* The option a value refers to. With `searchForText` a pick stores the
|
|
250
|
+
* option's text as the value, so fall back to matching the text; otherwise
|
|
251
|
+
* the pick is treated as an unknown value and the input gets cleared.
|
|
252
|
+
*/
|
|
253
|
+
findOptionForValue(e) {
|
|
254
|
+
var i;
|
|
255
|
+
const t = this.getComboboxOptions();
|
|
256
|
+
return (i = t.find((s) => s.value === e)) != null ? i : this.searchForText ? t.find((s) => s.optionText === e) : void 0;
|
|
257
|
+
}
|
|
258
|
+
/** The option value the list should mark as selected. */
|
|
259
|
+
get listValue() {
|
|
260
|
+
var e, t;
|
|
261
|
+
return this.searchForText ? (t = (e = this.selectedItem) == null ? void 0 : e.value) != null ? t : this.value : this.value;
|
|
262
|
+
}
|
|
242
263
|
/**
|
|
243
264
|
* Get all option items directly from the combobox element
|
|
244
265
|
* This is more reliable for dynamic updates than the option list component
|
|
245
266
|
*/
|
|
246
267
|
getComboboxOptions() {
|
|
247
|
-
return Array.from(this.querySelectorAll("dap-ds-option-item"));
|
|
268
|
+
return this.items ? k(this.items) : Array.from(this.querySelectorAll("dap-ds-option-item"));
|
|
248
269
|
}
|
|
249
270
|
get isOpenOnEmpty() {
|
|
250
271
|
return this.openOnEmpty || !this.openOnEmpty && this.getComboboxOptions().length > 0;
|
|
@@ -288,12 +309,12 @@ const f = class f extends V {
|
|
|
288
309
|
value: this.selectedItem.value,
|
|
289
310
|
selectedItem: this.selectedItem,
|
|
290
311
|
type: "select"
|
|
291
|
-
}), yield this.updateComplete, this.value = this.selectedItem.value, this.selectedText = this.currentItem.text, this.triggerInput.value = this.currentItem.text, this.triggerInput.focus(), this.setValidity();
|
|
312
|
+
}), yield this.updateComplete, this.value = this.selectedItem.value, this.selectedText = this.currentItem.text, this.triggerInput.value = this.currentItem.text, this.triggerInput.focus(), this.setValidity(), this.multiselect || (yield this.hideDropDown());
|
|
292
313
|
});
|
|
293
314
|
}
|
|
294
315
|
handleTextSearch(e) {
|
|
295
316
|
return h(this, null, function* () {
|
|
296
|
-
this.value = e, this.selectedText = e, this.triggerInput.value = e, this.triggerInput.focus(), this.emit("dds-search", { search: e }), this.setValidity();
|
|
317
|
+
this.value = e, this.selectedText = e, this.triggerInput.value = e, this.triggerInput.focus(), this.emit("dds-search", { search: e }), this.setValidity(), yield this.hideDropDown();
|
|
297
318
|
});
|
|
298
319
|
}
|
|
299
320
|
handleArrowKeys(e) {
|
|
@@ -325,7 +346,7 @@ const f = class f extends V {
|
|
|
325
346
|
}
|
|
326
347
|
addSelectedItem(e) {
|
|
327
348
|
if (!this.multiselect || this.selectedItems.some(
|
|
328
|
-
(
|
|
349
|
+
(s) => s.value === e.value
|
|
329
350
|
) || this.isMaxSelectionsReached()) return;
|
|
330
351
|
this.selectedItems = [...this.selectedItems, e];
|
|
331
352
|
const i = this.getSelectedValues().join(",");
|
|
@@ -351,13 +372,13 @@ const f = class f extends V {
|
|
|
351
372
|
if (!this.multiselect) return;
|
|
352
373
|
const t = this.getComboboxOptions();
|
|
353
374
|
this.selectedItems.length === 0 && (this.selectedItems = []);
|
|
354
|
-
let
|
|
355
|
-
e.forEach((
|
|
375
|
+
let s = !1;
|
|
376
|
+
e.forEach((a) => {
|
|
356
377
|
const o = t.find(
|
|
357
|
-
(c) => c.value ===
|
|
378
|
+
(c) => c.value === a || c.getAttribute("value") === a
|
|
358
379
|
);
|
|
359
|
-
o && (this.selectedItems.some((u) => u.value ===
|
|
360
|
-
}),
|
|
380
|
+
o && (this.selectedItems.some((u) => u.value === a) || (this.selectedItems.push(o), s = !0));
|
|
381
|
+
}), s && this.pendingInitialValues.length > 0 && (this.pendingInitialValues = []), this.requestUpdate();
|
|
361
382
|
}
|
|
362
383
|
/**
|
|
363
384
|
* Override value getter/setter to handle multiselect mode
|
|
@@ -378,7 +399,11 @@ const f = class f extends V {
|
|
|
378
399
|
}
|
|
379
400
|
showDropDown() {
|
|
380
401
|
return h(this, null, function* () {
|
|
381
|
-
|
|
402
|
+
var t, i;
|
|
403
|
+
if (this.disabled || this.readonly || !this.isAutoComplete || this.opened || !this.openOnEmpty && !this.getComboboxOptions().length && !this.isAutoComplete)
|
|
404
|
+
return;
|
|
405
|
+
const e = (i = (t = this.triggerInput) == null ? void 0 : t.value) != null ? i : "";
|
|
406
|
+
e && e === this.selectedItemText && (this.filtering = !1), this.opened = !0, document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
382
407
|
});
|
|
383
408
|
}
|
|
384
409
|
hideDropDown(e) {
|
|
@@ -430,7 +455,7 @@ const f = class f extends V {
|
|
|
430
455
|
});
|
|
431
456
|
}
|
|
432
457
|
get validationMessage() {
|
|
433
|
-
return
|
|
458
|
+
return f("form.validationMessage.select");
|
|
434
459
|
}
|
|
435
460
|
checkValidity() {
|
|
436
461
|
return this.required ? this.getValidity() : !0;
|
|
@@ -450,6 +475,26 @@ const f = class f extends V {
|
|
|
450
475
|
handleInvalid(e) {
|
|
451
476
|
e.preventDefault();
|
|
452
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* Screen-reader status for the highlighted option while focus stays in the input.
|
|
480
|
+
* aria-activedescendant cannot reach options inside option-list's shadow root, so
|
|
481
|
+
* the highlight (e.g. the first match after typing) is announced through a polite
|
|
482
|
+
* live region instead. Once focus moves onto an option it is announced natively,
|
|
483
|
+
* so the status is cleared to avoid a double announcement.
|
|
484
|
+
*/
|
|
485
|
+
get activeOptionStatus() {
|
|
486
|
+
var i, s, a;
|
|
487
|
+
if (!this.opened || !this.currentItem || ((i = this.shadowRoot) == null ? void 0 : i.activeElement) !== this.triggerInput)
|
|
488
|
+
return "";
|
|
489
|
+
const e = (a = (s = this.optionList) == null ? void 0 : s.getAllAvailabeOptions()) != null ? a : [], t = e.findIndex(
|
|
490
|
+
(o) => o.value === this.currentItem.value
|
|
491
|
+
);
|
|
492
|
+
return t < 0 ? "" : f("combobox.activeOption", {
|
|
493
|
+
option: this.currentItem.text,
|
|
494
|
+
position: t + 1,
|
|
495
|
+
count: e.length
|
|
496
|
+
});
|
|
497
|
+
}
|
|
453
498
|
getActiveDescendant() {
|
|
454
499
|
var t;
|
|
455
500
|
return this.opened ? (t = this.optionList) == null ? void 0 : t.getActiveOption() : this.triggerInput;
|
|
@@ -491,14 +536,14 @@ const f = class f extends V {
|
|
|
491
536
|
`;
|
|
492
537
|
}
|
|
493
538
|
renderChips() {
|
|
494
|
-
return !this.multiselect || this.selectedItems.length === 0 ?
|
|
539
|
+
return !this.multiselect || this.selectedItems.length === 0 ? v : d`
|
|
495
540
|
<div class="combobox__chips" part="chips">
|
|
496
541
|
${this.selectedItems.map((e) => this.renderChip(e))}
|
|
497
542
|
</div>
|
|
498
543
|
`;
|
|
499
544
|
}
|
|
500
545
|
renderInput() {
|
|
501
|
-
var t
|
|
546
|
+
var t;
|
|
502
547
|
const e = this.multiselect ? this.selectedText : this.selectedText !== "" ? this.selectedText : this.selectedItemText;
|
|
503
548
|
return d`<input
|
|
504
549
|
id="input"
|
|
@@ -509,22 +554,26 @@ const f = class f extends V {
|
|
|
509
554
|
"input--readonly": this.readonly,
|
|
510
555
|
"input--multiselect": this.multiselect
|
|
511
556
|
})}"
|
|
512
|
-
aria-expanded=${this.opened}
|
|
557
|
+
aria-expanded=${this.opened ? "true" : "false"}
|
|
513
558
|
aria-haspopup="listbox"
|
|
514
559
|
aria-labelledby="label"
|
|
515
560
|
aria-describedby="description ${this.feedback ? "feedback" : ""}"
|
|
516
561
|
aria-disabled=${this.disabled}
|
|
517
562
|
aria-autocomplete="both"
|
|
518
563
|
aria-controls="option-list"
|
|
519
|
-
aria-activedescendant=${p(
|
|
520
|
-
|
|
564
|
+
aria-activedescendant=${p(
|
|
565
|
+
// Options render in option-list's shadow root, out of this scope; a
|
|
566
|
+
// cross-scope IDREF is ignored by browsers, so only same-scope ids are set.
|
|
567
|
+
// Closed: no active descendant (the input must not reference itself).
|
|
568
|
+
this.opened ? T(this.shadowRoot, this.getActiveDescendant()) : void 0
|
|
569
|
+
)}
|
|
521
570
|
?required=${this.required}
|
|
522
571
|
?readonly=${this.readonly}
|
|
523
572
|
?autofocus=${this.autofocus}
|
|
524
573
|
autocomplete=${this.autocomplete}
|
|
525
574
|
?disabled=${this.disabled}
|
|
526
575
|
value=${e}
|
|
527
|
-
placeholder=${p((
|
|
576
|
+
placeholder=${p((t = this.placeholder) != null ? t : "")}
|
|
528
577
|
type=${this.search ? "search" : "text"}
|
|
529
578
|
@blur=${this.handleBlur}
|
|
530
579
|
@focus=${this.handleFocus}
|
|
@@ -533,14 +582,14 @@ const f = class f extends V {
|
|
|
533
582
|
@click=${this.handleClick} />`;
|
|
534
583
|
}
|
|
535
584
|
renderClearButton() {
|
|
536
|
-
return this.clearButton !== "true" || this.readonly ?
|
|
585
|
+
return this.clearButton !== "true" || this.readonly ? v : d`<div
|
|
537
586
|
class="${g("clear-icon", {
|
|
538
587
|
"clear-icon--hidden": this.shouldHideClearIcon
|
|
539
588
|
})}">
|
|
540
589
|
<dap-ds-icon-button
|
|
541
590
|
icon="close-line"
|
|
542
591
|
data-testid=${this.clearButtonTestId}
|
|
543
|
-
aria-label=${
|
|
592
|
+
aria-label=${f("clear")}
|
|
544
593
|
?disabled=${this.disabled}
|
|
545
594
|
@click=${this.handleClearClick}></dap-ds-icon-button>
|
|
546
595
|
</div>`;
|
|
@@ -571,10 +620,10 @@ const f = class f extends V {
|
|
|
571
620
|
?disabled=${this.disableSearchWhenEmpty && !this.hasSearchText}
|
|
572
621
|
data-testid=${this.searchButtonTestId}
|
|
573
622
|
iconSize=${this.getInnerIconSize(this.size)}
|
|
574
|
-
aria-label=${(i = this.searchButtonAriaLabel) != null ? i :
|
|
623
|
+
aria-label=${(i = this.searchButtonAriaLabel) != null ? i : f("search")}
|
|
575
624
|
@click=${this.handleSearchClick}>
|
|
576
625
|
</dap-ds-icon-button>`}
|
|
577
|
-
</div>` :
|
|
626
|
+
</div>` : v;
|
|
578
627
|
}
|
|
579
628
|
renderSelectActions() {
|
|
580
629
|
return d`<div
|
|
@@ -595,10 +644,13 @@ const f = class f extends V {
|
|
|
595
644
|
.search=${this.search}
|
|
596
645
|
searchMode=${this.allowManualInput ? "none" : this.searchMode}
|
|
597
646
|
searchOnValueSet=${this.searchOnValueSet === "true"}
|
|
598
|
-
filterText=${this.selectedText}
|
|
647
|
+
filterText=${this.filtering ? this.selectedText : ""}
|
|
599
648
|
size=${p(this.size)}
|
|
600
|
-
value=${p(this.
|
|
649
|
+
value=${p(this.listValue)}
|
|
601
650
|
selectable=${p(this.selectable)}
|
|
651
|
+
?multiselectable=${this.multiselect}
|
|
652
|
+
.items=${this.items}
|
|
653
|
+
.renderOption=${this.renderOption}
|
|
602
654
|
@dds-option-change=${this.handleSelectedChange}
|
|
603
655
|
@dds-option-deselect=${this.handleOptionDeselect}
|
|
604
656
|
@dds-keydown=${this.handleListKeyDown}
|
|
@@ -608,7 +660,7 @@ const f = class f extends V {
|
|
|
608
660
|
</dap-ds-option-list>`;
|
|
609
661
|
}
|
|
610
662
|
renderCombobox() {
|
|
611
|
-
return d` ${this.renderLabel()}
|
|
663
|
+
return d` ${this.renderLabel(void 0, "input")}
|
|
612
664
|
<div>
|
|
613
665
|
<dap-ds-popup
|
|
614
666
|
part="base"
|
|
@@ -642,15 +694,22 @@ const f = class f extends V {
|
|
|
642
694
|
</div>
|
|
643
695
|
${this.renderOptionList()}
|
|
644
696
|
</dap-ds-popup>
|
|
697
|
+
<div
|
|
698
|
+
class="sr-only active-option-status"
|
|
699
|
+
role="status"
|
|
700
|
+
aria-live="polite"
|
|
701
|
+
aria-atomic="true">
|
|
702
|
+
${this.activeOptionStatus}
|
|
703
|
+
</div>
|
|
645
704
|
${this.multiselect ? d`<div
|
|
646
705
|
class="sr-only"
|
|
647
706
|
role="status"
|
|
648
707
|
aria-live="polite"
|
|
649
708
|
aria-atomic="true">
|
|
650
|
-
${this.selectedItems.length > 0 ?
|
|
709
|
+
${this.selectedItems.length > 0 ? f("combobox.multiselect.selected", {
|
|
651
710
|
count: this.selectedItems.length
|
|
652
711
|
}) : ""}
|
|
653
|
-
</div>` :
|
|
712
|
+
</div>` : v}
|
|
654
713
|
${this.feedback && d`<dap-ds-feedback
|
|
655
714
|
part="feedback"
|
|
656
715
|
feedbackType=${p(this.feedbackType)}
|
|
@@ -661,96 +720,105 @@ const f = class f extends V {
|
|
|
661
720
|
</div>`;
|
|
662
721
|
}
|
|
663
722
|
};
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
],
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
],
|
|
672
|
-
|
|
723
|
+
I.styles = S(L);
|
|
724
|
+
let l = I;
|
|
725
|
+
n([
|
|
726
|
+
w("input")
|
|
727
|
+
], l.prototype, "triggerInput", 2);
|
|
728
|
+
n([
|
|
729
|
+
w("dap-ds-option-list")
|
|
730
|
+
], l.prototype, "optionList", 2);
|
|
731
|
+
n([
|
|
673
732
|
r({ reflect: !0 })
|
|
674
|
-
],
|
|
675
|
-
|
|
733
|
+
], l.prototype, "placement", 2);
|
|
734
|
+
n([
|
|
676
735
|
r({ type: Boolean, reflect: !0 })
|
|
677
|
-
],
|
|
678
|
-
|
|
736
|
+
], l.prototype, "opened", 2);
|
|
737
|
+
n([
|
|
679
738
|
r()
|
|
680
|
-
],
|
|
681
|
-
|
|
739
|
+
], l.prototype, "searchMode", 2);
|
|
740
|
+
n([
|
|
682
741
|
r({ type: Boolean })
|
|
683
|
-
],
|
|
684
|
-
|
|
742
|
+
], l.prototype, "search", 2);
|
|
743
|
+
n([
|
|
685
744
|
r()
|
|
686
|
-
],
|
|
687
|
-
|
|
745
|
+
], l.prototype, "clearButton", 2);
|
|
746
|
+
n([
|
|
688
747
|
r()
|
|
689
|
-
],
|
|
690
|
-
|
|
748
|
+
], l.prototype, "placeholder", 2);
|
|
749
|
+
n([
|
|
691
750
|
r({ type: Boolean })
|
|
692
|
-
],
|
|
693
|
-
|
|
751
|
+
], l.prototype, "sync", 2);
|
|
752
|
+
n([
|
|
694
753
|
r({ type: Boolean })
|
|
695
|
-
],
|
|
696
|
-
|
|
754
|
+
], l.prototype, "allowManualInput", 2);
|
|
755
|
+
n([
|
|
697
756
|
r({ type: Boolean })
|
|
698
|
-
],
|
|
699
|
-
|
|
757
|
+
], l.prototype, "searchForText", 2);
|
|
758
|
+
n([
|
|
700
759
|
r({ type: String })
|
|
701
|
-
],
|
|
702
|
-
|
|
760
|
+
], l.prototype, "searchOnValueSet", 2);
|
|
761
|
+
n([
|
|
703
762
|
r({ type: Boolean })
|
|
704
|
-
],
|
|
705
|
-
|
|
763
|
+
], l.prototype, "loading", 2);
|
|
764
|
+
n([
|
|
706
765
|
r({ type: String })
|
|
707
|
-
],
|
|
708
|
-
|
|
766
|
+
], l.prototype, "selectable", 2);
|
|
767
|
+
n([
|
|
709
768
|
r({ type: Boolean })
|
|
710
|
-
],
|
|
711
|
-
|
|
769
|
+
], l.prototype, "noAnimation", 2);
|
|
770
|
+
n([
|
|
712
771
|
r({ type: Boolean })
|
|
713
|
-
],
|
|
714
|
-
|
|
772
|
+
], l.prototype, "textComplete", 2);
|
|
773
|
+
n([
|
|
715
774
|
r({ type: Boolean })
|
|
716
|
-
],
|
|
717
|
-
|
|
775
|
+
], l.prototype, "openOnEmpty", 2);
|
|
776
|
+
n([
|
|
718
777
|
r({ type: Boolean })
|
|
719
|
-
],
|
|
720
|
-
|
|
778
|
+
], l.prototype, "disableViewportAutoClose", 2);
|
|
779
|
+
n([
|
|
721
780
|
r()
|
|
722
|
-
],
|
|
723
|
-
|
|
781
|
+
], l.prototype, "searchButtonAriaLabel", 2);
|
|
782
|
+
n([
|
|
724
783
|
r({ type: Boolean })
|
|
725
|
-
],
|
|
726
|
-
|
|
784
|
+
], l.prototype, "subtle", 2);
|
|
785
|
+
n([
|
|
727
786
|
r({ type: Boolean, reflect: !0 })
|
|
728
|
-
],
|
|
729
|
-
|
|
787
|
+
], l.prototype, "multiselect", 2);
|
|
788
|
+
n([
|
|
730
789
|
r({ type: Number, reflect: !0 })
|
|
731
|
-
],
|
|
732
|
-
|
|
790
|
+
], l.prototype, "maxSelections", 2);
|
|
791
|
+
n([
|
|
792
|
+
r({ converter: M })
|
|
793
|
+
], l.prototype, "items", 1);
|
|
794
|
+
n([
|
|
795
|
+
r({ attribute: !1 })
|
|
796
|
+
], l.prototype, "renderOption", 2);
|
|
797
|
+
n([
|
|
733
798
|
r()
|
|
734
|
-
],
|
|
735
|
-
|
|
799
|
+
], l.prototype, "clearButtonTestId", 2);
|
|
800
|
+
n([
|
|
736
801
|
r()
|
|
737
|
-
],
|
|
738
|
-
|
|
802
|
+
], l.prototype, "searchButtonTestId", 2);
|
|
803
|
+
n([
|
|
739
804
|
r({ type: Boolean })
|
|
740
|
-
],
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
],
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
],
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
],
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
],
|
|
805
|
+
], l.prototype, "disableSearchWhenEmpty", 2);
|
|
806
|
+
n([
|
|
807
|
+
y()
|
|
808
|
+
], l.prototype, "selectedItem", 2);
|
|
809
|
+
n([
|
|
810
|
+
y()
|
|
811
|
+
], l.prototype, "selectedItems", 2);
|
|
812
|
+
n([
|
|
813
|
+
y()
|
|
814
|
+
], l.prototype, "currentItem", 2);
|
|
815
|
+
n([
|
|
816
|
+
y()
|
|
817
|
+
], l.prototype, "selectedText", 2);
|
|
818
|
+
n([
|
|
819
|
+
y()
|
|
820
|
+
], l.prototype, "filtering", 2);
|
|
753
821
|
export {
|
|
754
|
-
|
|
822
|
+
l as default
|
|
755
823
|
};
|
|
756
824
|
//# sourceMappingURL=comboboxBase.js.map
|