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,20 +1,17 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import "../../
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
for (var t = void 0, s = o.length - 1, i; s >= 0; s--)
|
|
10
|
-
(i = o[s]) && (t = i(l, a, t) || t);
|
|
11
|
-
return t && b(l, a, t), t;
|
|
1
|
+
import { unsafeCSS as m, html as d } from "lit";
|
|
2
|
+
import { property as p } from "lit/decorators.js";
|
|
3
|
+
import { DdsElement as n } from "../../internal/dds-hu-element.js";
|
|
4
|
+
import v from "./option-group.scss.js";
|
|
5
|
+
var b = Object.defineProperty, f = (l, o, a, c) => {
|
|
6
|
+
for (var t = void 0, r = l.length - 1, i; r >= 0; r--)
|
|
7
|
+
(i = l[r]) && (t = i(o, a, t) || t);
|
|
8
|
+
return t && b(o, a, t), t;
|
|
12
9
|
};
|
|
13
|
-
const
|
|
10
|
+
const s = class s extends n {
|
|
14
11
|
render() {
|
|
15
|
-
return
|
|
12
|
+
return d`
|
|
16
13
|
<div part="base" class="option-group">
|
|
17
|
-
${this.label ?
|
|
14
|
+
${this.label ? d`<div part="label" class="option-group__label">
|
|
18
15
|
${this.label}
|
|
19
16
|
</div>` : ""}
|
|
20
17
|
<div class="option-group__items">
|
|
@@ -24,13 +21,13 @@ const r = class r extends f {
|
|
|
24
21
|
`;
|
|
25
22
|
}
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
let e =
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
s.tagName = "dap-ds-option-group", s.styles = m(v);
|
|
25
|
+
let e = s;
|
|
26
|
+
f([
|
|
27
|
+
p()
|
|
31
28
|
], e.prototype, "label");
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
f([
|
|
30
|
+
p({ type: Boolean, reflect: !0 })
|
|
34
31
|
], e.prototype, "disabled");
|
|
35
32
|
export {
|
|
36
33
|
e as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option-group.component.js","sources":["../../../src/components/option-group/option-group.component.ts"],"sourcesContent":["import { html, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\n\nimport styles from './option-group.scss?inline'\n\n/**\n * `dap-ds-option-group`\n * @summary An option group is a container for grouping related option items.\n * Used with dap-ds-select to create grouped options that render as native optgroup elements.\n * @element dap-ds-option-group\n * @title - Option group\n *\n * @property {string} label - The label of the option group (displayed in native optgroup).\n * @property {boolean} disabled - Whether all options in the group are disabled.\n *\n * @slot - The option items in this group.\n *\n * @csspart base - The main option group container.\n * @csspart label - The label of the option group.\n */\nexport default class DapDSOptionGroup extends DdsElement {\n static tagName = 'dap-ds-option-group'\n\n /** The label of the option group */\n @property() label?: string\n\n /** Whether all options in the group are disabled */\n @property({ type: Boolean, reflect: true }) disabled?: boolean\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`\n <div part=\"base\" class=\"option-group\">\n ${this.label\n ? html`<div part=\"label\" class=\"option-group__label\">\n ${this.label}\n </div>`\n : ''}\n <div class=\"option-group__items\">\n <slot></slot>\n </div>\n </div>\n `\n }\n}\n"],"names":["_DapDSOptionGroup","DdsElement","html","unsafeCSS","styles","DapDSOptionGroup","__decorateClass","property"],"mappings":"
|
|
1
|
+
{"version":3,"file":"option-group.component.js","sources":["../../../src/components/option-group/option-group.component.ts"],"sourcesContent":["import { html, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\n\nimport styles from './option-group.scss?inline'\n\n/**\n * `dap-ds-option-group`\n * @summary An option group is a container for grouping related option items.\n * Used with dap-ds-select to create grouped options that render as native optgroup elements.\n * @element dap-ds-option-group\n * @title - Option group\n *\n * @property {string} label - The label of the option group (displayed in native optgroup).\n * @property {boolean} disabled - Whether all options in the group are disabled.\n *\n * @slot - The option items in this group.\n *\n * @csspart base - The main option group container.\n * @csspart label - The label of the option group.\n */\nexport default class DapDSOptionGroup extends DdsElement {\n static tagName = 'dap-ds-option-group'\n\n /** The label of the option group */\n @property() label?: string\n\n /** Whether all options in the group are disabled */\n @property({ type: Boolean, reflect: true }) disabled?: boolean\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`\n <div part=\"base\" class=\"option-group\">\n ${this.label\n ? html`<div part=\"label\" class=\"option-group__label\">\n ${this.label}\n </div>`\n : ''}\n <div class=\"option-group__items\">\n <slot></slot>\n </div>\n </div>\n `\n }\n}\n"],"names":["_DapDSOptionGroup","DdsElement","html","unsafeCSS","styles","DapDSOptionGroup","__decorateClass","property"],"mappings":";;;;;;;;;AAsBA,MAAqBA,IAArB,MAAqBA,UAAyBC,EAAW;AAAA,EAWvD,SAAS;AACA,WAAAC;AAAA;AAAA,UAED,KAAK,QACHA;AAAA,gBACI,KAAK,KAAK;AAAA,sBAEd,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAOd;AAxBEF,EAAO,UAAU,uBAQDA,EAAA,SAASG,EAAUC,CAAM;AAT3C,IAAqBC,IAArBL;AAIcM,EAAA;AAAA,EAAXC,EAAS;AAAA,GAJSF,EAIP,WAAA,OAAA;AAGgCC,EAAA;AAAA,EAA3CC,EAAS,EAAE,MAAM,SAAS,SAAS,GAAM,CAAA;AAAA,GAPvBF,EAOyB,WAAA,UAAA;"}
|
|
@@ -17,6 +17,7 @@ declare const DapDSOptionItem_base: typeof DdsElement & {
|
|
|
17
17
|
* @csspart prefix - The prefix of the option item.
|
|
18
18
|
* @csspart label - The label of the option item.
|
|
19
19
|
* @csspart suffix - The suffix of the option item.
|
|
20
|
+
* @csspart high-contrast - The high contrast indicator of the option item.
|
|
20
21
|
*
|
|
21
22
|
* @slot prefix - The prefix of the option item.
|
|
22
23
|
* @slot - The label of the option item.
|
|
@@ -60,6 +61,15 @@ export default class DapDSOptionItem extends DapDSOptionItem_base {
|
|
|
60
61
|
private _hasPrefix;
|
|
61
62
|
private _hasSuffix;
|
|
62
63
|
static readonly styles: import('lit').CSSResult;
|
|
64
|
+
/**
|
|
65
|
+
* True for an option the caller wrote as a child of a list host (select,
|
|
66
|
+
* combobox, search or option list). Such an option is only the data source:
|
|
67
|
+
* the list renders its own copy in its shadow root, which is what users and
|
|
68
|
+
* assistive technology see. Its host attributes are therefore left alone,
|
|
69
|
+
* so the page's own DOM (often owned by a framework such as React) is never
|
|
70
|
+
* changed behind the framework's back, e.g. before it hydrates.
|
|
71
|
+
*/
|
|
72
|
+
private get isListSource();
|
|
63
73
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
64
74
|
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
65
75
|
private handleClick;
|
|
@@ -1,55 +1,62 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import "../../
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { queryAssignedElements as m } from "../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.js";
|
|
8
|
-
import { DdsElement as x } from "../../internal/dds-hu-element.js";
|
|
9
|
-
import { SizedMixin as b } from "../../internal/mixin/sizedMixin.js";
|
|
10
|
-
import _ from "../icons/system/system-check-line/system-check-line.component.js";
|
|
1
|
+
import { clsx as d } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { unsafeCSS as x, nothing as h, html as c } from "lit";
|
|
3
|
+
import { property as i, queryAssignedElements as u, state as m } from "lit/decorators.js";
|
|
4
|
+
import { DdsElement as b } from "../../internal/dds-hu-element.js";
|
|
5
|
+
import { SizedMixin as _ } from "../../internal/mixin/sizedMixin.js";
|
|
6
|
+
import y from "../icons/system/system-check-line/system-check-line.component.js";
|
|
11
7
|
import v from "../stack/stack.component.js";
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return o && $(t, r, o), o;
|
|
8
|
+
import k from "./option-item.scss.js";
|
|
9
|
+
var g = Object.defineProperty, s = (n, t, r, l) => {
|
|
10
|
+
for (var o = void 0, p = n.length - 1, f; p >= 0; p--)
|
|
11
|
+
(f = n[p]) && (o = f(t, r, o) || o);
|
|
12
|
+
return o && g(t, r, o), o;
|
|
18
13
|
};
|
|
19
|
-
const
|
|
14
|
+
const a = class a extends _(b) {
|
|
20
15
|
constructor() {
|
|
21
16
|
super(...arguments), this.selectable = "true", this.selectedIconPosition = "suffix", this._hasPrefix = !1, this._hasSuffix = !1;
|
|
22
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* True for an option the caller wrote as a child of a list host (select,
|
|
20
|
+
* combobox, search or option list). Such an option is only the data source:
|
|
21
|
+
* the list renders its own copy in its shadow root, which is what users and
|
|
22
|
+
* assistive technology see. Its host attributes are therefore left alone,
|
|
23
|
+
* so the page's own DOM (often owned by a framework such as React) is never
|
|
24
|
+
* changed behind the framework's back, e.g. before it hydrates.
|
|
25
|
+
*/
|
|
26
|
+
get isListSource() {
|
|
27
|
+
return typeof this.closest == "function" && !!this.closest(
|
|
28
|
+
"dap-ds-select, dap-ds-combobox, dap-ds-search, dap-ds-option-list"
|
|
29
|
+
);
|
|
30
|
+
}
|
|
23
31
|
firstUpdated(t) {
|
|
24
|
-
super.firstUpdated(t), this._hasPrefix = !!this._prefixNode.length, this._hasSuffix = !!this._postfixNode.length, this.addEventListener("click", this.handleClick), this.setAttribute("role", "option");
|
|
32
|
+
super.firstUpdated(t), this._hasPrefix = !!this._prefixNode.length, this._hasSuffix = !!this._postfixNode.length, this.addEventListener("click", this.handleClick), this.isListSource || this.setAttribute("role", "option");
|
|
25
33
|
}
|
|
26
34
|
updated(t) {
|
|
27
|
-
super.updated(t), t.has("disabled") && (this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.setAttribute("aria-disabled", this.disabled ? "true" : "false")), t.has("selected") && this.setAttribute("aria-selected", this.selected ? "true" : "false");
|
|
35
|
+
super.updated(t), !this.isListSource && (t.has("disabled") && (this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.setAttribute("aria-disabled", this.disabled ? "true" : "false")), t.has("selected") && this.setAttribute("aria-selected", this.selected ? "true" : "false"));
|
|
28
36
|
}
|
|
29
37
|
handleClick(t) {
|
|
30
38
|
this.disabled && (t.preventDefault(), t.stopPropagation());
|
|
31
39
|
}
|
|
32
40
|
get optionText() {
|
|
33
|
-
var t, r,
|
|
34
|
-
return (
|
|
41
|
+
var t, r, l;
|
|
42
|
+
return (l = (r = this.label) != null ? r : (t = this.textContent) == null ? void 0 : t.trim()) != null ? l : "";
|
|
35
43
|
}
|
|
36
44
|
render() {
|
|
37
|
-
return
|
|
45
|
+
return c`
|
|
38
46
|
<div
|
|
39
47
|
part="base"
|
|
40
|
-
class=${
|
|
48
|
+
class=${d("option-item", `option-item--${this.size}`, {
|
|
41
49
|
"option-item--selected": this.selected,
|
|
42
50
|
"option-item--disabled": this.disabled,
|
|
43
51
|
"option-item--focused": this.focused
|
|
44
52
|
})}>
|
|
45
53
|
<dap-ds-stack direction="row" class="option-item__stack">
|
|
46
|
-
${this.selectable === "true" && this.selectedIconPosition === "prefix" ?
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</div>` : p}
|
|
54
|
+
${this.selectable === "true" && this.selectedIconPosition === "prefix" ? c`<div class=${"selected-icon"}>
|
|
55
|
+
<dap-ds-icon-check-line size="16"></dap-ds-icon-check-line>
|
|
56
|
+
</div>` : h}
|
|
50
57
|
<div
|
|
51
58
|
part="prefix"
|
|
52
|
-
class=${
|
|
59
|
+
class=${d("option-item__prefix", {
|
|
53
60
|
"option-item__prefix--visible": !!this._hasPrefix
|
|
54
61
|
})}>
|
|
55
62
|
<slot name="prefix"></slot>
|
|
@@ -59,62 +66,61 @@ const d = class d extends b(x) {
|
|
|
59
66
|
</div>
|
|
60
67
|
<div
|
|
61
68
|
part="suffix"
|
|
62
|
-
class=${
|
|
69
|
+
class=${d("option-item__suffix", {
|
|
63
70
|
"option-item__suffix--visible": !!this._hasSuffix
|
|
64
71
|
})}>
|
|
65
72
|
<slot name="suffix"></slot>
|
|
66
73
|
</div>
|
|
67
74
|
</dap-ds-stack>
|
|
68
|
-
${this.selectable === "true" && this.selectedIconPosition === "suffix" ?
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</div>` : p}
|
|
75
|
+
${this.selectable === "true" && this.selectedIconPosition === "suffix" ? c`<div class=${"selected-icon-suffix"}>
|
|
76
|
+
<dap-ds-icon-check-line size="16"></dap-ds-icon-check-line>
|
|
77
|
+
</div>` : h}
|
|
72
78
|
<span
|
|
73
79
|
part="high-contrast"
|
|
74
|
-
class=${
|
|
80
|
+
class=${d("option-item__high-contrast", {
|
|
75
81
|
"option-item__high-contrast--disabled": this.disabled
|
|
76
82
|
})}></span>
|
|
77
83
|
</div>
|
|
78
84
|
`;
|
|
79
85
|
}
|
|
80
86
|
};
|
|
81
|
-
|
|
87
|
+
a.tagName = "dap-ds-option-item", a.dependencies = {
|
|
82
88
|
"dap-ds-stack": v,
|
|
83
|
-
"dap-ds-icon-check-line":
|
|
84
|
-
},
|
|
85
|
-
let e =
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
"dap-ds-icon-check-line": y
|
|
90
|
+
}, a.styles = x(k);
|
|
91
|
+
let e = a;
|
|
92
|
+
s([
|
|
93
|
+
i({ type: Boolean, reflect: !0 })
|
|
88
94
|
], e.prototype, "selected");
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
s([
|
|
96
|
+
i({ type: String })
|
|
91
97
|
], e.prototype, "selectable");
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
s([
|
|
99
|
+
i({ type: String })
|
|
94
100
|
], e.prototype, "selectedIconPosition");
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
s([
|
|
102
|
+
i({ reflect: !0 })
|
|
97
103
|
], e.prototype, "value");
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
s([
|
|
105
|
+
i({ type: Boolean, reflect: !0 })
|
|
100
106
|
], e.prototype, "disabled");
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
s([
|
|
108
|
+
i({ type: Boolean })
|
|
103
109
|
], e.prototype, "focused");
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
s([
|
|
111
|
+
i()
|
|
106
112
|
], e.prototype, "label");
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
s([
|
|
114
|
+
u({ slot: "prefix" })
|
|
109
115
|
], e.prototype, "_prefixNode");
|
|
110
|
-
|
|
111
|
-
|
|
116
|
+
s([
|
|
117
|
+
u({ slot: "suffix" })
|
|
112
118
|
], e.prototype, "_postfixNode");
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
s([
|
|
120
|
+
m()
|
|
115
121
|
], e.prototype, "_hasPrefix");
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
s([
|
|
123
|
+
m()
|
|
118
124
|
], e.prototype, "_hasSuffix");
|
|
119
125
|
export {
|
|
120
126
|
e as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option-item.component.js","sources":["../../../src/components/option-item/option-item.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { html, nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property, queryAssignedElements, state } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { SizedMixin } from '@/internal/mixin/sizedMixin'\n\nimport SystemCheckLine from '../icons/system/system-check-line/system-check-line.component'\nimport DapDSStack from '../stack/stack.component'\nimport styles from './option-item.scss?inline'\n\n/**\n * `dap-ds-option-item`\n * @summary An option item is a selectable item in a list of options.\n * @element dap-ds-option-item\n * @title - Option item\n * @group select,combobox\n * *\n * @csspart base - The main option item container.\n * @csspart prefix - The prefix of the option item.\n * @csspart label - The label of the option item.\n * @csspart suffix - The suffix of the option item.\n *\n * @slot prefix - The prefix of the option item.\n * @slot - The label of the option item.\n * @slot suffix - The suffix of the option item.\n *\n * @cssproperty --dds-option-item-padding-vertical - The vertical padding of the option item (default: var(--dds-spacing-100))\n * @cssproperty --dds-option-item-padding-horizontal - The horizontal padding of the option item (default: var(--dds-spacing-200))\n * @cssproperty --dds-option-item-border-radius - The border radius of the option item (default: var(--dds-radius-small, 4px))\n * @cssproperty --dds-option-item-color - The text color of the option item (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-option-item-hover-bg - The background color of the option item when hovered (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-option-item-active-bg - The background color of the option item when active (default: var(--dds-background-neutral-strong))\n * @cssproperty --dds-option-item-disabled-color - The text color of the option item when disabled (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-option-item-high-contrast-border - The border color of the option item in high contrast mode (default: var(--dds-border-neutral-transparent-interactive, #fff500))\n * @cssproperty --dds-option-item-selected-font-weight - The font weight of the option item when selected (default: var(--dds-font-weight-bold))\n * @cssproperty --dds-option-item-xs-font-size - The font size of the option item in extra small size (default: var(--dds-font-sm))\n * @cssproperty --dds-option-item-lg-font-size - The font size of the option item in large size (default: var(--dds-font-lg))\n * @cssproperty --dds-option-item-selected-icon-width - The width of the selected icon (default: var(--dds-spacing-400))\n */\nexport default class DapDSOptionItem extends SizedMixin(DdsElement) {\n static tagName = 'dap-ds-option-item'\n\n static dependencies = {\n 'dap-ds-stack': DapDSStack,\n 'dap-ds-icon-check-line': SystemCheckLine,\n }\n\n /** The selected state of the option item */\n @property({ type: Boolean, reflect: true }) selected?: boolean\n\n /** Wheteher the item is selectable, whether it shows the selected icon */\n @property({ type: String }) selectable? = 'true'\n\n /** The position of the selected icon */\n @property({ type: String }) selectedIconPosition? = 'suffix'\n\n /** The value of the option item */\n @property({ reflect: true }) value?: any\n\n /** The disabled state of the option item */\n @property({ type: Boolean, reflect: true }) disabled?: boolean\n\n /** The focused state of the option item */\n @property({ type: Boolean }) focused?: boolean\n\n /** The label of the option item, it can be a simplier version of an item */\n @property() label?: string\n @queryAssignedElements({ slot: 'prefix' })\n private readonly _prefixNode!: NodeListOf<HTMLElement>\n @queryAssignedElements({ slot: 'suffix' })\n private readonly _postfixNode!: NodeListOf<HTMLElement>\n\n @state() private _hasPrefix = false\n @state() private _hasSuffix = false\n\n static readonly styles = unsafeCSS(styles)\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n this._hasPrefix = !!this._prefixNode.length\n this._hasSuffix = !!this._postfixNode.length\n\n this.addEventListener('click', this.handleClick)\n this.setAttribute('role', 'option')\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (_changedProperties.has('disabled')) {\n this.setAttribute('tabindex', this.disabled ? '-1' : '0')\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false')\n }\n\n if (_changedProperties.has('selected')) {\n this.setAttribute('aria-selected', this.selected ? 'true' : 'false')\n }\n }\n\n private handleClick(event: MouseEvent): void {\n if (this.disabled) {\n event.preventDefault()\n event.stopPropagation()\n }\n }\n\n public get optionText(): string {\n return this.label ?? this.textContent?.trim() ?? ''\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx('option-item', `option-item--${this.size}`, {\n 'option-item--selected': this.selected,\n 'option-item--disabled': this.disabled,\n 'option-item--focused': this.focused,\n })}>\n <dap-ds-stack direction=\"row\" class=\"option-item__stack\">\n ${this.selectable === 'true' && this.selectedIconPosition === 'prefix'\n ? html`<div class=${'selected-icon'}>\n ${this.selected\n ? html`<dap-ds-icon-check-line\n size=\"16\"></dap-ds-icon-check-line>`\n : nothing}\n </div>`\n : nothing}\n <div\n part=\"prefix\"\n class=${clsx('option-item__prefix', {\n 'option-item__prefix--visible': !!this._hasPrefix,\n })}>\n <slot name=\"prefix\"></slot>\n </div>\n <div part=\"label\" class=\"label\">\n <slot></slot>\n </div>\n <div\n part=\"suffix\"\n class=${clsx('option-item__suffix', {\n 'option-item__suffix--visible': !!this._hasSuffix,\n })}>\n <slot name=\"suffix\"></slot>\n </div>\n </dap-ds-stack>\n ${this.selectable === 'true' && this.selectedIconPosition === 'suffix'\n ? html`<div class=${'selected-icon-suffix'}>\n ${this.selected\n ? html`<dap-ds-icon-check-line\n size=\"16\"></dap-ds-icon-check-line>`\n : nothing}\n </div>`\n : nothing}\n <span\n part=\"high-contrast\"\n class=${clsx('option-item__high-contrast', {\n 'option-item__high-contrast--disabled': this.disabled,\n })}></span>\n </div>\n `\n }\n}\n"],"names":["_DapDSOptionItem","SizedMixin","DdsElement","_changedProperties","event","_c","_b","_a","html","clsx","nothing","DapDSStack","SystemCheckLine","unsafeCSS","styles","DapDSOptionItem","__decorateClass","property","queryAssignedElements","state"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"option-item.component.js","sources":["../../../src/components/option-item/option-item.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport { html, nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property, queryAssignedElements, state } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { SizedMixin } from '@/internal/mixin/sizedMixin'\n\nimport SystemCheckLine from '../icons/system/system-check-line/system-check-line.component'\nimport DapDSStack from '../stack/stack.component'\nimport styles from './option-item.scss?inline'\n\n/**\n * `dap-ds-option-item`\n * @summary An option item is a selectable item in a list of options.\n * @element dap-ds-option-item\n * @title - Option item\n * @group select,combobox\n * *\n * @csspart base - The main option item container.\n * @csspart prefix - The prefix of the option item.\n * @csspart label - The label of the option item.\n * @csspart suffix - The suffix of the option item.\n * @csspart high-contrast - The high contrast indicator of the option item.\n *\n * @slot prefix - The prefix of the option item.\n * @slot - The label of the option item.\n * @slot suffix - The suffix of the option item.\n *\n * @cssproperty --dds-option-item-padding-vertical - The vertical padding of the option item (default: var(--dds-spacing-100))\n * @cssproperty --dds-option-item-padding-horizontal - The horizontal padding of the option item (default: var(--dds-spacing-200))\n * @cssproperty --dds-option-item-border-radius - The border radius of the option item (default: var(--dds-radius-small, 4px))\n * @cssproperty --dds-option-item-color - The text color of the option item (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-option-item-hover-bg - The background color of the option item when hovered (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-option-item-active-bg - The background color of the option item when active (default: var(--dds-background-neutral-strong))\n * @cssproperty --dds-option-item-disabled-color - The text color of the option item when disabled (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-option-item-high-contrast-border - The border color of the option item in high contrast mode (default: var(--dds-border-neutral-transparent-interactive, #fff500))\n * @cssproperty --dds-option-item-selected-font-weight - The font weight of the option item when selected (default: var(--dds-font-weight-bold))\n * @cssproperty --dds-option-item-xs-font-size - The font size of the option item in extra small size (default: var(--dds-font-sm))\n * @cssproperty --dds-option-item-lg-font-size - The font size of the option item in large size (default: var(--dds-font-lg))\n * @cssproperty --dds-option-item-selected-icon-width - The width of the selected icon (default: var(--dds-spacing-400))\n */\nexport default class DapDSOptionItem extends SizedMixin(DdsElement) {\n static tagName = 'dap-ds-option-item'\n\n static dependencies = {\n 'dap-ds-stack': DapDSStack,\n 'dap-ds-icon-check-line': SystemCheckLine,\n }\n\n /** The selected state of the option item */\n @property({ type: Boolean, reflect: true }) selected?: boolean\n\n /** Wheteher the item is selectable, whether it shows the selected icon */\n @property({ type: String }) selectable? = 'true'\n\n /** The position of the selected icon */\n @property({ type: String }) selectedIconPosition? = 'suffix'\n\n /** The value of the option item */\n @property({ reflect: true }) value?: any\n\n /** The disabled state of the option item */\n @property({ type: Boolean, reflect: true }) disabled?: boolean\n\n /** The focused state of the option item */\n @property({ type: Boolean }) focused?: boolean\n\n /** The label of the option item, it can be a simplier version of an item */\n @property() label?: string\n @queryAssignedElements({ slot: 'prefix' })\n private readonly _prefixNode!: NodeListOf<HTMLElement>\n @queryAssignedElements({ slot: 'suffix' })\n private readonly _postfixNode!: NodeListOf<HTMLElement>\n\n @state() private _hasPrefix = false\n @state() private _hasSuffix = false\n\n static readonly styles = unsafeCSS(styles)\n\n /**\n * True for an option the caller wrote as a child of a list host (select,\n * combobox, search or option list). Such an option is only the data source:\n * the list renders its own copy in its shadow root, which is what users and\n * assistive technology see. Its host attributes are therefore left alone,\n * so the page's own DOM (often owned by a framework such as React) is never\n * changed behind the framework's back, e.g. before it hydrates.\n */\n private get isListSource(): boolean {\n return (\n typeof this.closest === 'function' &&\n !!this.closest(\n 'dap-ds-select, dap-ds-combobox, dap-ds-search, dap-ds-option-list',\n )\n )\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n this._hasPrefix = !!this._prefixNode.length\n this._hasSuffix = !!this._postfixNode.length\n\n this.addEventListener('click', this.handleClick)\n if (!this.isListSource) {\n this.setAttribute('role', 'option')\n }\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (this.isListSource) {\n return\n }\n\n if (_changedProperties.has('disabled')) {\n this.setAttribute('tabindex', this.disabled ? '-1' : '0')\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false')\n }\n\n if (_changedProperties.has('selected')) {\n this.setAttribute('aria-selected', this.selected ? 'true' : 'false')\n }\n }\n\n private handleClick(event: MouseEvent): void {\n if (this.disabled) {\n event.preventDefault()\n event.stopPropagation()\n }\n }\n\n public get optionText(): string {\n return this.label ?? this.textContent?.trim() ?? ''\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx('option-item', `option-item--${this.size}`, {\n 'option-item--selected': this.selected,\n 'option-item--disabled': this.disabled,\n 'option-item--focused': this.focused,\n })}>\n <dap-ds-stack direction=\"row\" class=\"option-item__stack\">\n ${this.selectable === 'true' && this.selectedIconPosition === 'prefix'\n ? html`<div class=${'selected-icon'}>\n <dap-ds-icon-check-line size=\"16\"></dap-ds-icon-check-line>\n </div>`\n : nothing}\n <div\n part=\"prefix\"\n class=${clsx('option-item__prefix', {\n 'option-item__prefix--visible': !!this._hasPrefix,\n })}>\n <slot name=\"prefix\"></slot>\n </div>\n <div part=\"label\" class=\"label\">\n <slot></slot>\n </div>\n <div\n part=\"suffix\"\n class=${clsx('option-item__suffix', {\n 'option-item__suffix--visible': !!this._hasSuffix,\n })}>\n <slot name=\"suffix\"></slot>\n </div>\n </dap-ds-stack>\n ${this.selectable === 'true' && this.selectedIconPosition === 'suffix'\n ? html`<div class=${'selected-icon-suffix'}>\n <dap-ds-icon-check-line size=\"16\"></dap-ds-icon-check-line>\n </div>`\n : nothing}\n <span\n part=\"high-contrast\"\n class=${clsx('option-item__high-contrast', {\n 'option-item__high-contrast--disabled': this.disabled,\n })}></span>\n </div>\n `\n }\n}\n"],"names":["_DapDSOptionItem","SizedMixin","DdsElement","_changedProperties","event","_c","_b","_a","html","clsx","nothing","DapDSStack","SystemCheckLine","unsafeCSS","styles","DapDSOptionItem","__decorateClass","property","queryAssignedElements","state"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:host{display:block;--dds-option-item-padding-vertical: var(--dds-spacing-100);--dds-option-item-padding-horizontal: var(--dds-spacing-200);--dds-option-item-border-radius: var(--dds-radius-small, 4px);--dds-option-item-color: var(--dds-text-neutral-base);--dds-option-item-hover-bg: var(--dds-background-neutral-medium);--dds-option-item-active-bg: var(--dds-background-neutral-strong);--dds-option-item-disabled-color: var(--dds-text-neutral-disabled);--dds-option-item-high-contrast-border: var( --dds-border-neutral-transparent-interactive, #fff500 );--dds-option-item-selected-font-weight: var(--dds-font-weight-bold);--dds-option-item-xs-font-size: var(--dds-font-sm);--dds-option-item-lg-font-size: var(--dds-font-lg);--dds-option-item-selected-icon-width: var(--dds-spacing-400)}:host(:focus){outline:none}.option-item__high-contrast{display:inline-flex;position:absolute;box-sizing:border-box;flex:0 0 auto;width:100%;height:100%;margin:calc(var(--dds-option-item-padding-vertical) * -1) calc(var(--dds-option-item-padding-horizontal) * -1);border:var(--dds-border-width-large) solid var(--dds-option-item-high-contrast-border);border-radius:var(--dds-option-item-border-radius)}.option-item__high-contrast:hover{border-width:var(--dds-border-width-large)}.option-item__high-contrast:active{border-width:var(--dds-border-width-xlarge)}.option-item__high-contrast.input__control-high-contrast--disabled{border-color:var(--dds-border-neutral-transparent-disabled);background-color:var(--dds-button-primary-background-disabled);cursor:not-allowed}.option-item{outline-color:var(--dds-focus-outer-ring);outline-offset:var(--dds-spacing-50);outline-width:var(--dds-border-width-large);transition-property:all;transition-duration:var(--dds-transition-fast);transition-timing-function:var(--dds-easing-ease-in-out);display:flex;position:relative;padding:var(--dds-option-item-padding-vertical) var(--dds-option-item-padding-horizontal);border-radius:var(--dds-option-item-border-radius);color:var(--dds-option-item-color);cursor:pointer}.option-item:hover{background-color:var(--dds-option-item-hover-bg)}.option-item:active{background-color:var(--dds-option-item-active-bg)}.option-item--focused{outline-style:solid}.option-item--selected{font-weight:var(--dds-option-item-selected-font-weight)}.option-item--disabled{color:var(--dds-option-item-disabled-color);cursor:not-allowed;pointer-events:none}.option-item--xs{font-size:var(--dds-option-item-xs-font-size)}.option-item--lg{font-size:var(--dds-option-item-lg-font-size)}.option-item__stack::part(base){flex-wrap:nowrap}.option-item__prefix,.option-item__suffix{display:none}.option-item__prefix--visible,.option-item__suffix--visible{display:block}.selected-icon{min-width:var(--dds-option-item-selected-icon-width)}.selected-icon-suffix{display:flex;min-width:var(--dds-option-item-selected-icon-width);margin-left:auto;text-align:right}";
|
|
1
|
+
const t = "*,*:before,*:after{box-sizing:border-box;outline:none}* :not(dap-ds-table-cell,dap-ds-table-header){margin:0;padding:0}html:focus-within{scroll-behavior:smooth}a:not([class]){text-decoration-skip-ink:auto}img,picture,svg,video,canvas{max-width:100%;height:auto;background-repeat:no-repeat;background-size:cover;font-style:italic;vertical-align:middle}input,button,textarea,select{font:inherit}[hidden]{display:none!important}@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto}*,*:before,*:after{transition:none;transition-duration:.01ms!important;transition-delay:1ms!important;animation-duration:1ms!important;animation-delay:-1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important}}body,html{height:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=number]{appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{appearance:none}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.input-description{display:block;margin-bottom:var(--dds-spacing-200)}@keyframes dds-spin{to{transform:rotate(360deg)}}@keyframes dds-fade{0%,to{opacity:.3}50%{opacity:1}}:host{display:block;--dds-option-item-padding-vertical: var(--dds-spacing-100);--dds-option-item-padding-horizontal: var(--dds-spacing-200);--dds-option-item-border-radius: var(--dds-radius-small, 4px);--dds-option-item-color: var(--dds-text-neutral-base);--dds-option-item-hover-bg: var(--dds-background-neutral-medium);--dds-option-item-active-bg: var(--dds-background-neutral-strong);--dds-option-item-disabled-color: var(--dds-text-neutral-disabled);--dds-option-item-high-contrast-border: var( --dds-border-neutral-transparent-interactive, #fff500 );--dds-option-item-selected-font-weight: var(--dds-font-weight-bold);--dds-option-item-xs-font-size: var(--dds-font-sm);--dds-option-item-lg-font-size: var(--dds-font-lg);--dds-option-item-selected-icon-width: var(--dds-spacing-400)}:host([hidden]){display:none}:host(:focus){outline:none}.option-item__high-contrast{display:inline-flex;position:absolute;box-sizing:border-box;flex:0 0 auto;width:100%;height:100%;margin:calc(var(--dds-option-item-padding-vertical) * -1) calc(var(--dds-option-item-padding-horizontal) * -1);border:var(--dds-border-width-large) solid var(--dds-option-item-high-contrast-border);border-radius:var(--dds-option-item-border-radius)}.option-item__high-contrast:hover{border-width:var(--dds-border-width-large)}.option-item__high-contrast:active{border-width:var(--dds-border-width-xlarge)}.option-item__high-contrast.input__control-high-contrast--disabled{border-color:var(--dds-border-neutral-transparent-disabled);background-color:var(--dds-button-primary-background-disabled);cursor:not-allowed}.option-item{outline-color:var(--dds-focus-outer-ring);outline-offset:var(--dds-spacing-50);outline-width:var(--dds-border-width-large);transition-property:all;transition-duration:var(--dds-transition-fast);transition-timing-function:var(--dds-easing-ease-in-out);display:flex;position:relative;padding:var(--dds-option-item-padding-vertical) var(--dds-option-item-padding-horizontal);border-radius:var(--dds-option-item-border-radius);color:var(--dds-option-item-color);cursor:pointer}.option-item:hover{background-color:var(--dds-option-item-hover-bg)}.option-item:active{background-color:var(--dds-option-item-active-bg)}.option-item--focused{outline-style:solid}.option-item--selected{font-weight:var(--dds-option-item-selected-font-weight)}.option-item--disabled{color:var(--dds-option-item-disabled-color);cursor:not-allowed;pointer-events:none}.option-item--xs{font-size:var(--dds-option-item-xs-font-size)}.option-item--lg{font-size:var(--dds-option-item-lg-font-size)}.option-item__stack::part(base){flex-wrap:nowrap}.option-item__prefix,.option-item__suffix{display:none}.option-item__prefix--visible,.option-item__suffix--visible{display:block}.selected-icon{min-width:var(--dds-option-item-selected-icon-width)}.selected-icon-suffix{display:flex;min-width:var(--dds-option-item-selected-icon-width);margin-left:auto;text-align:right}.selected-icon dap-ds-icon-check-line,.selected-icon-suffix dap-ds-icon-check-line{display:none}.option-item--selected .selected-icon dap-ds-icon-check-line,.option-item--selected .selected-icon-suffix dap-ds-icon-check-line{display:inline-flex}";
|
|
2
2
|
export {
|
|
3
3
|
t as default
|
|
4
4
|
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
export declare const LISTBOX_EVENTS: readonly ["dds-option-change", "dds-option-deselect", "dds-current-change", "dds-list-changed", "dds-keydown", "dds-cancel"];
|
|
3
|
+
export declare const HOST_EVENTS: readonly ["dds-change", "dds-input", "dds-search", "dds-clear", "dds-opened", "dds-closed", "dds-keydown"];
|
|
4
|
+
export type AnyEl = HTMLElement & Record<string, any>;
|
|
5
|
+
/**
|
|
6
|
+
* open-wc only auto-cleans fixtures under mocha; register cleanup for vitest so
|
|
7
|
+
* elements (and focus) never leak between tests. Call once per spec file.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useFixtureCleanup(): void;
|
|
10
|
+
/** Mount a template and wait until it has fully settled. */
|
|
11
|
+
export declare function mount(template: TemplateResult | string): Promise<AnyEl>;
|
|
12
|
+
/** Wait for Lit updates of the host and its option-list plus two frames. */
|
|
13
|
+
export declare function settle(el: AnyEl): Promise<void>;
|
|
14
|
+
export declare function getList(el: AnyEl): AnyEl | null;
|
|
15
|
+
/** The innermost focused element, following shadow roots. */
|
|
16
|
+
export declare function deepActive(): Element | null;
|
|
17
|
+
/** Short, stable description of a value for snapshots. */
|
|
18
|
+
export declare function normalize(v: unknown, depth?: number): unknown;
|
|
19
|
+
export interface TraceEvent {
|
|
20
|
+
from: 'list' | 'host';
|
|
21
|
+
type: string;
|
|
22
|
+
detail: unknown;
|
|
23
|
+
}
|
|
24
|
+
/** Records listbox events on the option-list and host-originated events on the host. */
|
|
25
|
+
export declare function recordEvents(host: AnyEl): {
|
|
26
|
+
take(): TraceEvent[];
|
|
27
|
+
};
|
|
28
|
+
/** Observable state of the option-list: what a user / caller can see. */
|
|
29
|
+
export declare function listState(list: AnyEl | null): {
|
|
30
|
+
value: any;
|
|
31
|
+
selectedIndex: any;
|
|
32
|
+
available: any;
|
|
33
|
+
active: any;
|
|
34
|
+
rendered: string;
|
|
35
|
+
source: any;
|
|
36
|
+
} | null;
|
|
37
|
+
/** Host-level observable state per component kind. */
|
|
38
|
+
export declare function hostState(host: AnyEl): {
|
|
39
|
+
ariaMultiselectable: string | null;
|
|
40
|
+
focus: string | null;
|
|
41
|
+
value?: undefined;
|
|
42
|
+
opened?: undefined;
|
|
43
|
+
text?: undefined;
|
|
44
|
+
ariaExpanded?: undefined;
|
|
45
|
+
activedescendant?: undefined;
|
|
46
|
+
validity?: undefined;
|
|
47
|
+
input?: undefined;
|
|
48
|
+
selectedText?: undefined;
|
|
49
|
+
status?: undefined;
|
|
50
|
+
chips?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
value: any;
|
|
53
|
+
opened: boolean;
|
|
54
|
+
text: string | null;
|
|
55
|
+
ariaExpanded: string | null;
|
|
56
|
+
activedescendant: string | null;
|
|
57
|
+
validity: any;
|
|
58
|
+
focus: string | null;
|
|
59
|
+
ariaMultiselectable?: undefined;
|
|
60
|
+
input?: undefined;
|
|
61
|
+
selectedText?: undefined;
|
|
62
|
+
status?: undefined;
|
|
63
|
+
chips?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
value: any;
|
|
66
|
+
opened: boolean;
|
|
67
|
+
input: string | null;
|
|
68
|
+
selectedText: any;
|
|
69
|
+
ariaExpanded: string | null;
|
|
70
|
+
activedescendant: string | null;
|
|
71
|
+
status: string | null;
|
|
72
|
+
chips: string | null;
|
|
73
|
+
validity: any;
|
|
74
|
+
focus: string | null;
|
|
75
|
+
ariaMultiselectable?: undefined;
|
|
76
|
+
text?: undefined;
|
|
77
|
+
};
|
|
78
|
+
export type Step = [label: string, run: (ctx: Ctx) => unknown];
|
|
79
|
+
export interface Ctx {
|
|
80
|
+
host: AnyEl;
|
|
81
|
+
list: () => AnyEl | null;
|
|
82
|
+
input: () => HTMLInputElement | null;
|
|
83
|
+
trigger: () => AnyEl | null;
|
|
84
|
+
}
|
|
85
|
+
export interface TraceEntry {
|
|
86
|
+
step: string;
|
|
87
|
+
events: TraceEvent[];
|
|
88
|
+
host: unknown;
|
|
89
|
+
list: unknown;
|
|
90
|
+
}
|
|
91
|
+
/** Compact, reviewable rendering of a trace (one line per event / state). */
|
|
92
|
+
export declare function formatTrace(entries: TraceEntry[]): string;
|
|
93
|
+
/** Mount + run steps, returning the compact trace string for snapshots. */
|
|
94
|
+
export declare function traceText(template: TemplateResult | string, steps: Step[]): Promise<string>;
|
|
95
|
+
/** Mount a template, then run steps; returns the full trace. */
|
|
96
|
+
export declare function trace(template: TemplateResult | string, steps: Step[]): Promise<TraceEntry[]>;
|
|
97
|
+
/** Press a key on the deep-focused element (falls back to `fallback`). */
|
|
98
|
+
export declare const press: (key: string, mods?: KeyboardEventInit) => (ctx: Ctx) => void;
|
|
99
|
+
/** Press a key on a specific target regardless of focus. */
|
|
100
|
+
export declare const pressOn: (pick: (ctx: Ctx) => Element | null, key: string) => (ctx: Ctx) => void;
|
|
101
|
+
/** Type characters into the combobox/search input like a user would. */
|
|
102
|
+
export declare const type: (text: string) => (ctx: Ctx) => Promise<void>;
|
|
103
|
+
/** Delete one character from the end of the input. */
|
|
104
|
+
export declare const backspace: () => (ctx: Ctx) => Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Click a rendered option (the clone inside option-list's shadow root).
|
|
107
|
+
* No-op when the option is not rendered (e.g. filtered out); the trace's
|
|
108
|
+
* rendered-list line shows that, so a change in availability still diffs.
|
|
109
|
+
*/
|
|
110
|
+
export declare const clickOption: (value: string, mods?: MouseEventInit) => (ctx: Ctx) => void;
|
|
111
|
+
/** Click the trigger (select button / combobox input). */
|
|
112
|
+
export declare const clickTrigger: () => (ctx: Ctx) => void;
|
|
113
|
+
export declare const clickOutside: () => () => void;
|
|
114
|
+
export declare const setProp: (name: string, value: unknown) => (ctx: Ctx) => void;
|
|
115
|
+
export declare const setAttr: (name: string, value: string | null) => (ctx: Ctx) => void;
|
|
116
|
+
/** Append option items to the host (async/remote options). */
|
|
117
|
+
export declare const appendOptions: (items: Array<[value: string, text: string, attrs?: string]>) => (ctx: Ctx) => void;
|
|
118
|
+
export declare const removeAllOptions: () => (ctx: Ctx) => void;
|
|
119
|
+
/** Advance the (fake) clock, e.g. past the 500ms typeahead reset. */
|
|
120
|
+
export declare const wait: (ms: number) => () => void;
|
|
121
|
+
/** Focus a rendered option directly (e.g. Tab into a standalone list). */
|
|
122
|
+
export declare const focusOption: (value: string) => (ctx: Ctx) => void;
|
|
123
|
+
/** Click the combobox/search clear (×) button. */
|
|
124
|
+
export declare const clickClear: () => (ctx: Ctx) => void;
|
|
125
|
+
/** Click the search (magnifier) button. */
|
|
126
|
+
export declare const clickSearchButton: () => (ctx: Ctx) => void;
|
|
127
|
+
/** Click the remove button of a multiselect chip. */
|
|
128
|
+
export declare const removeChip: (value: string) => (ctx: Ctx) => void;
|
|
129
|
+
export declare const focusTrigger: () => (ctx: Ctx) => void;
|