@daikin-oss/design-system-web-components 1.3.2 → 1.4.0-next.1
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/CHANGELOG.md +217 -0
- package/dist/cjs/base/dds-element.cjs +82 -1
- package/dist/cjs/base/dds-element.d.cts +40 -0
- package/dist/cjs/base/dds-form-element.cjs +15 -6
- package/dist/cjs/base/dds-form-element.d.cts +2 -2
- package/dist/cjs/base/dds-property.cjs +11 -0
- package/dist/cjs/base/dds-property.d.cts +92 -0
- package/dist/cjs/base/index.cjs +3 -0
- package/dist/cjs/base/index.d.cts +1 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -7
- package/dist/cjs/components/avatar/daikin-avatar.cjs +20 -15
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -1
- package/dist/cjs/components/badge/daikin-badge.cjs +154 -0
- package/dist/cjs/components/badge/daikin-badge.d.cts +91 -0
- package/dist/cjs/components/badge/index.cjs +7 -0
- package/dist/cjs/components/badge/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
- package/dist/cjs/components/button/daikin-button.cjs +57 -16
- package/dist/cjs/components/button/daikin-button.d.cts +18 -2
- package/dist/cjs/components/calendar/daikin-calendar.cjs +36 -15
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +14 -3
- package/dist/cjs/components/card/daikin-card.cjs +2 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +2 -1
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -2
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +24 -10
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +12 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +2 -1
- package/dist/cjs/components/combobox/daikin-combobox.cjs +34 -25
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +64 -26
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +18 -4
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +17 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
- package/dist/cjs/components/icon/daikin-icon.cjs +24 -11
- package/dist/cjs/components/icon/daikin-icon.d.cts +96 -39
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +12 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +17 -3
- package/dist/cjs/components/index.cjs +10 -0
- package/dist/cjs/components/index.d.cts +2 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +8 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +29 -13
- package/dist/cjs/components/link/daikin-link.cjs +28 -8
- package/dist/cjs/components/link/daikin-link.d.cts +11 -0
- package/dist/cjs/components/list/daikin-list.cjs +6 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +19 -8
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +4 -0
- package/dist/cjs/components/loading/daikin-loading.cjs +8 -3
- package/dist/cjs/components/logo/daikin-logo.cjs +18 -10
- package/dist/cjs/components/logo/daikin-logo.d.cts +4 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +79 -28
- package/dist/cjs/components/menu/daikin-menu.d.cts +29 -2
- package/dist/cjs/components/modal/daikin-modal.cjs +11 -6
- package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +3 -3
- package/dist/cjs/components/pagination/daikin-pagination.cjs +6 -5
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +21 -9
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +4 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +14 -9
- package/dist/cjs/components/radio/daikin-radio.d.cts +9 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +15 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +3 -1
- package/dist/cjs/components/select/daikin-select.cjs +4 -3
- package/dist/cjs/components/slider/daikin-slider.cjs +11 -9
- package/dist/cjs/components/slider/daikin-slider.d.cts +15 -0
- package/dist/cjs/components/status-message/daikin-status-message.cjs +123 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +55 -0
- package/dist/cjs/components/status-message/index.cjs +7 -0
- package/dist/cjs/components/status-message/index.d.cts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +10 -4
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +4 -4
- package/dist/cjs/components/table/daikin-table.cjs +11 -10
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +12 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +5 -3
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +9 -3
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +15 -12
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +9 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +28 -31
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +11 -2
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +40 -19
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +23 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +118 -13
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +15 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +7 -6
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +7 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +37 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -1
- package/dist/cjs/components/tree/daikin-tree.cjs +3 -2
- package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +8 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -0
- package/dist/cjs/utils/calendar-common.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +0 -94
- package/dist/cjs/utils/notification-common.d.cts +0 -13
- package/dist/cjs-dev/base/dds-element.cjs +92 -1
- package/dist/cjs-dev/base/dds-element.d.cts +40 -0
- package/dist/cjs-dev/base/dds-form-element.cjs +15 -6
- package/dist/cjs-dev/base/dds-form-element.d.cts +2 -2
- package/dist/cjs-dev/base/dds-property.cjs +11 -0
- package/dist/cjs-dev/base/dds-property.d.cts +92 -0
- package/dist/cjs-dev/base/index.cjs +3 -0
- package/dist/cjs-dev/base/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -7
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +20 -15
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -1
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +154 -0
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +91 -0
- package/dist/cjs-dev/components/badge/index.cjs +7 -0
- package/dist/cjs-dev/components/badge/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
- package/dist/cjs-dev/components/button/daikin-button.cjs +57 -16
- package/dist/cjs-dev/components/button/daikin-button.d.cts +18 -2
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +36 -15
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +14 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +2 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +2 -1
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -2
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +24 -10
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +12 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -1
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +34 -25
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +64 -26
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +18 -4
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +17 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +24 -11
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +96 -39
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +12 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +58 -15
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +17 -3
- package/dist/cjs-dev/components/index.cjs +10 -0
- package/dist/cjs-dev/components/index.d.cts +2 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +112 -11
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +8 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +29 -13
- package/dist/cjs-dev/components/link/daikin-link.cjs +28 -8
- package/dist/cjs-dev/components/link/daikin-link.d.cts +11 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +6 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +19 -8
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +4 -0
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +8 -3
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +18 -10
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +4 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +79 -28
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +29 -2
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +11 -6
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +3 -3
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +6 -5
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +21 -9
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +4 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -9
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +9 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +15 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +3 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +4 -3
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +11 -9
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +15 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +123 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +55 -0
- package/dist/cjs-dev/components/status-message/index.cjs +7 -0
- package/dist/cjs-dev/components/status-message/index.d.cts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +10 -4
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +4 -4
- package/dist/cjs-dev/components/table/daikin-table.cjs +11 -10
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +12 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +5 -3
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +9 -3
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +15 -12
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +9 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +28 -31
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +11 -2
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +40 -19
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +23 -1
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +118 -13
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +15 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +7 -6
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +7 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +37 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -1
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +3 -2
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +8 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs-dev/index.cjs +10 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +0 -94
- package/dist/cjs-dev/utils/notification-common.d.cts +0 -13
- package/dist/es/base/dds-element.d.ts +40 -0
- package/dist/es/base/dds-element.js +82 -1
- package/dist/es/base/dds-form-element.d.ts +2 -2
- package/dist/es/base/dds-form-element.js +15 -6
- package/dist/es/base/dds-property.d.ts +92 -0
- package/dist/es/base/dds-property.js +11 -0
- package/dist/es/base/index.d.ts +1 -0
- package/dist/es/base/index.js +4 -1
- package/dist/es/components/accordion/daikin-accordion.js +2 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -5
- package/dist/es/components/avatar/daikin-avatar.d.ts +3 -1
- package/dist/es/components/avatar/daikin-avatar.js +18 -13
- package/dist/es/components/badge/daikin-badge.d.ts +91 -0
- package/dist/es/components/badge/daikin-badge.js +155 -0
- package/dist/es/components/badge/index.d.ts +1 -0
- package/dist/es/components/badge/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +33 -7
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
- package/dist/es/components/button/daikin-button.d.ts +18 -2
- package/dist/es/components/button/daikin-button.js +54 -13
- package/dist/es/components/calendar/daikin-calendar.d.ts +14 -3
- package/dist/es/components/calendar/daikin-calendar.js +36 -15
- package/dist/es/components/card/daikin-card.js +1 -1
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es/components/card-header/daikin-card-header.js +1 -0
- package/dist/es/components/carousel/daikin-carousel.js +2 -1
- package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -1
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +12 -1
- package/dist/es/components/checkbox/daikin-checkbox.js +22 -8
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +11 -2
- package/dist/es/components/chip/daikin-chip.js +2 -1
- package/dist/es/components/combobox/daikin-combobox.d.ts +9 -2
- package/dist/es/components/combobox/daikin-combobox.js +29 -20
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +18 -4
- package/dist/es/components/date-picker/daikin-date-picker.js +61 -23
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +12 -14
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es/components/icon/daikin-icon.d.ts +96 -39
- package/dist/es/components/icon/daikin-icon.js +24 -11
- package/dist/es/components/icon/icons.json.d.ts +12 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +17 -3
- package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es/components/index.d.ts +2 -0
- package/dist/es/components/index.js +4 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +8 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es/components/input-group/daikin-input-group.js +23 -7
- package/dist/es/components/link/daikin-link.d.ts +11 -0
- package/dist/es/components/link/daikin-link.js +24 -4
- package/dist/es/components/list/daikin-list.js +6 -2
- package/dist/es/components/list-item/daikin-list-item.d.ts +4 -0
- package/dist/es/components/list-item/daikin-list-item.js +17 -6
- package/dist/es/components/loading/daikin-loading.js +7 -2
- package/dist/es/components/logo/daikin-logo.d.ts +4 -0
- package/dist/es/components/logo/daikin-logo.js +17 -9
- package/dist/es/components/menu/daikin-menu.d.ts +29 -2
- package/dist/es/components/menu/daikin-menu.js +79 -28
- package/dist/es/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es/components/modal/daikin-modal.js +8 -3
- package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +2 -2
- package/dist/es/components/pagination/daikin-pagination.js +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +4 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +19 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +2 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
- package/dist/es/components/radio/daikin-radio.d.ts +9 -0
- package/dist/es/components/radio/daikin-radio.js +11 -6
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +3 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +14 -7
- package/dist/es/components/select/daikin-select.js +2 -1
- package/dist/es/components/slider/daikin-slider.d.ts +15 -0
- package/dist/es/components/slider/daikin-slider.js +11 -9
- package/dist/es/components/status-message/daikin-status-message.d.ts +55 -0
- package/dist/es/components/status-message/daikin-status-message.js +124 -0
- package/dist/es/components/status-message/index.d.ts +1 -0
- package/dist/es/components/status-message/index.js +4 -0
- package/dist/es/components/tab/daikin-tab.js +9 -3
- package/dist/es/components/tab-panels/daikin-tab-panels.js +2 -2
- package/dist/es/components/table/daikin-table.js +4 -3
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +5 -3
- package/dist/es/components/table-cell/daikin-table-cell.js +12 -7
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -3
- package/dist/es/components/tabs/daikin-tabs.d.ts +2 -0
- package/dist/es/components/tabs/daikin-tabs.js +10 -4
- package/dist/es/components/text-area/daikin-text-area.d.ts +9 -2
- package/dist/es/components/text-area/daikin-text-area.js +11 -8
- package/dist/es/components/text-field/daikin-text-field.d.ts +11 -2
- package/dist/es/components/text-field/daikin-text-field.js +18 -21
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +15 -12
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +23 -1
- package/dist/es/components/time-picker/daikin-time-picker.js +38 -17
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +15 -2
- package/dist/es/components/toast-notification/daikin-toast-notification.js +112 -7
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
- package/dist/es/components/toggle/daikin-toggle.d.ts +7 -0
- package/dist/es/components/toggle/daikin-toggle.js +5 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +36 -11
- package/dist/es/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es/components/tree/daikin-tree.js +2 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +8 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es/index.js +4 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +7 -0
- package/dist/es/utils/calendar-common.js +6 -0
- package/dist/es/utils/notification-common.d.ts +0 -13
- package/dist/es/utils/notification-common.js +0 -94
- package/dist/es-dev/base/dds-element.d.ts +40 -0
- package/dist/es-dev/base/dds-element.js +92 -1
- package/dist/es-dev/base/dds-form-element.d.ts +2 -2
- package/dist/es-dev/base/dds-form-element.js +15 -6
- package/dist/es-dev/base/dds-property.d.ts +92 -0
- package/dist/es-dev/base/dds-property.js +11 -0
- package/dist/es-dev/base/index.d.ts +1 -0
- package/dist/es-dev/base/index.js +4 -1
- package/dist/es-dev/components/accordion/daikin-accordion.js +2 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -5
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -1
- package/dist/es-dev/components/avatar/daikin-avatar.js +18 -13
- package/dist/es-dev/components/badge/daikin-badge.d.ts +91 -0
- package/dist/es-dev/components/badge/daikin-badge.js +155 -0
- package/dist/es-dev/components/badge/index.d.ts +1 -0
- package/dist/es-dev/components/badge/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +33 -7
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
- package/dist/es-dev/components/button/daikin-button.d.ts +18 -2
- package/dist/es-dev/components/button/daikin-button.js +54 -13
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +14 -3
- package/dist/es-dev/components/calendar/daikin-calendar.js +36 -15
- package/dist/es-dev/components/card/daikin-card.js +1 -1
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +2 -1
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +12 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +22 -8
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +11 -2
- package/dist/es-dev/components/chip/daikin-chip.js +2 -1
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +9 -2
- package/dist/es-dev/components/combobox/daikin-combobox.js +29 -20
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +18 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +61 -23
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +12 -14
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +96 -39
- package/dist/es-dev/components/icon/daikin-icon.js +24 -11
- package/dist/es-dev/components/icon/icons.json.d.ts +12 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +17 -3
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es-dev/components/index.d.ts +2 -0
- package/dist/es-dev/components/index.js +4 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +8 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +23 -7
- package/dist/es-dev/components/link/daikin-link.d.ts +11 -0
- package/dist/es-dev/components/link/daikin-link.js +24 -4
- package/dist/es-dev/components/list/daikin-list.js +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +4 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +17 -6
- package/dist/es-dev/components/loading/daikin-loading.js +7 -2
- package/dist/es-dev/components/logo/daikin-logo.d.ts +4 -0
- package/dist/es-dev/components/logo/daikin-logo.js +17 -9
- package/dist/es-dev/components/menu/daikin-menu.d.ts +29 -2
- package/dist/es-dev/components/menu/daikin-menu.js +79 -28
- package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es-dev/components/modal/daikin-modal.js +8 -3
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +2 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +4 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +19 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +2 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
- package/dist/es-dev/components/radio/daikin-radio.d.ts +9 -0
- package/dist/es-dev/components/radio/daikin-radio.js +11 -6
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +3 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +14 -7
- package/dist/es-dev/components/select/daikin-select.js +2 -1
- package/dist/es-dev/components/slider/daikin-slider.d.ts +15 -0
- package/dist/es-dev/components/slider/daikin-slider.js +11 -9
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +55 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +124 -0
- package/dist/es-dev/components/status-message/index.d.ts +1 -0
- package/dist/es-dev/components/status-message/index.js +4 -0
- package/dist/es-dev/components/tab/daikin-tab.js +9 -3
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +2 -2
- package/dist/es-dev/components/table/daikin-table.js +4 -3
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +5 -3
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +12 -7
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -3
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -0
- package/dist/es-dev/components/tabs/daikin-tabs.js +10 -4
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +9 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +11 -8
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +11 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +18 -21
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +15 -12
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +23 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +38 -17
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +15 -2
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +112 -7
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +7 -0
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +36 -11
- package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es-dev/components/tree/daikin-tree.js +2 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +8 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es-dev/index.js +4 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +7 -0
- package/dist/es-dev/utils/calendar-common.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +0 -13
- package/dist/es-dev/utils/notification-common.js +0 -94
- package/icons/download.svg +3 -0
- package/icons/neutral.svg +3 -0
- package/icons/notification.svg +3 -0
- package/package.json +18 -17
|
@@ -7,6 +7,7 @@ const decorators_js = require("lit/decorators.js");
|
|
|
7
7
|
const guard_js = require("lit/directives/guard.js");
|
|
8
8
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
9
|
require("../../base/dds-form-element.cjs");
|
|
10
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
10
11
|
const decorators = require("../../base/decorators.cjs");
|
|
11
12
|
require("../../base/define.cjs");
|
|
12
13
|
const floatingUiAutoUpdate = require("../../controllers/floating-ui-auto-update.cjs");
|
|
@@ -14,6 +15,7 @@ const isClient = require("../../is-client.cjs");
|
|
|
14
15
|
const tailwind = require("../../tailwind.css.cjs");
|
|
15
16
|
const reDispatch = require("../../utils/re-dispatch.cjs");
|
|
16
17
|
const daikinAvatar = require("../avatar/daikin-avatar.cjs");
|
|
18
|
+
const daikinBreadcrumbItem = require("../breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
17
19
|
const daikinButton = require("../button/daikin-button.cjs");
|
|
18
20
|
const daikinIconButton = require("../icon-button/daikin-icon-button.cjs");
|
|
19
21
|
const daikinListItem = require("../list-item/daikin-list-item.cjs");
|
|
@@ -44,10 +46,7 @@ const DEFAULT_MENU_SPACING = "0px";
|
|
|
44
46
|
exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
45
47
|
constructor() {
|
|
46
48
|
super(...arguments);
|
|
47
|
-
this.placement = "bottom";
|
|
48
49
|
this.open = false;
|
|
49
|
-
this.popoverValue = "auto";
|
|
50
|
-
this.trigger = "click";
|
|
51
50
|
this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
|
|
52
51
|
this._hostStyles = isClient.isClient ? window.getComputedStyle(this) : null;
|
|
53
52
|
}
|
|
@@ -62,6 +61,25 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
62
61
|
initialValue: "0px"
|
|
63
62
|
});
|
|
64
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Exposes the trigger element contained within the menu to the outside of the component.
|
|
66
|
+
*
|
|
67
|
+
* Supported trigger elements:
|
|
68
|
+
* - `<daikin-button>`
|
|
69
|
+
* - `<daikin-icon-button>`
|
|
70
|
+
* - `<daikin-avatar>`
|
|
71
|
+
* - `<daikin-breadcrumb-item>`
|
|
72
|
+
*
|
|
73
|
+
* Returns the first matching element from the slot.
|
|
74
|
+
*/
|
|
75
|
+
get triggerElement() {
|
|
76
|
+
for (const control of this._controls) {
|
|
77
|
+
if (control instanceof daikinButton.DaikinButton || control instanceof daikinIconButton.DaikinIconButton && control.type === "button" || control instanceof daikinAvatar.DaikinAvatar && control.type === "button" || control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem) {
|
|
78
|
+
return control;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
65
83
|
/**
|
|
66
84
|
* Reflects static attributes (e.g. ARIA roles) to slot components.
|
|
67
85
|
* These are typically set once when the slot changes and do not change frequently.
|
|
@@ -85,9 +103,9 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
85
103
|
_reflectDynamicProperties() {
|
|
86
104
|
for (const control of this._controls) {
|
|
87
105
|
if (control instanceof daikinButton.DaikinButton || control instanceof daikinIconButton.DaikinIconButton && control.type === "button") {
|
|
88
|
-
control.buttonAriaExpanded = this.open
|
|
106
|
+
control.buttonAriaExpanded = `${this.open}`;
|
|
89
107
|
} else if (control instanceof daikinAvatar.DaikinAvatar && control.type === "button") {
|
|
90
|
-
control.avatarAriaExpanded = this.open
|
|
108
|
+
control.avatarAriaExpanded = `${this.open}`;
|
|
91
109
|
}
|
|
92
110
|
}
|
|
93
111
|
}
|
|
@@ -95,19 +113,26 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
95
113
|
this._reflectStaticProperties();
|
|
96
114
|
}
|
|
97
115
|
_handleTriggerClick(event) {
|
|
98
|
-
if (this.trigger
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
116
|
+
if (this.trigger !== "click") return;
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
this.open = !this.open;
|
|
119
|
+
if (this.open) {
|
|
120
|
+
setTimeout(() => {
|
|
121
|
+
this._lists[0].focusFirstItem();
|
|
122
|
+
});
|
|
106
123
|
}
|
|
107
124
|
}
|
|
108
|
-
|
|
125
|
+
_handleTouchEnd(event) {
|
|
126
|
+
if (this.trigger !== "click") return;
|
|
109
127
|
event.preventDefault();
|
|
110
|
-
|
|
128
|
+
this.open = !this.open;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Handles click events on the menu-item.
|
|
132
|
+
* When the popoverValue is manual, the logic for closing the popover should be entirely controlled by the developer and not be the responsibility of the component.
|
|
133
|
+
*/
|
|
134
|
+
_handleClick(event) {
|
|
135
|
+
if (event.target instanceof daikinListItem.default && !event.target.disabled && this.popoverValue === "auto") {
|
|
111
136
|
this.open = false;
|
|
112
137
|
}
|
|
113
138
|
}
|
|
@@ -128,17 +153,14 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
128
153
|
return lit.html`<div
|
|
129
154
|
class="relative inline-block text-ddt-color-common-text-primary font-daikinSerif"
|
|
130
155
|
>
|
|
131
|
-
<div
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
>
|
|
137
|
-
<slot @click=${this._handleTriggerClick}></slot>
|
|
156
|
+
<div id="trigger" ${this._autoUpdateController.refReference()}>
|
|
157
|
+
<slot
|
|
158
|
+
@click=${this._handleTriggerClick}
|
|
159
|
+
@touchend=${this._handleTouchEnd}
|
|
160
|
+
></slot>
|
|
138
161
|
</div>
|
|
139
162
|
<span
|
|
140
163
|
id="menu"
|
|
141
|
-
aria-labelledby="menu"
|
|
142
164
|
part="menu"
|
|
143
165
|
class=${cvaMenu()}
|
|
144
166
|
popover=${this.popoverValue}
|
|
@@ -185,20 +207,49 @@ __decorateClass([
|
|
|
185
207
|
], exports.DaikinMenu.prototype, "_lists", 2);
|
|
186
208
|
__decorateClass([
|
|
187
209
|
decorators_js.queryAssignedElements({
|
|
188
|
-
selector: "daikin-button,daikin-icon-button,daikin-avatar"
|
|
210
|
+
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item"
|
|
189
211
|
})
|
|
190
212
|
], exports.DaikinMenu.prototype, "_controls", 2);
|
|
191
213
|
__decorateClass([
|
|
192
|
-
|
|
214
|
+
ddsProperty.property({
|
|
215
|
+
type: String,
|
|
216
|
+
reflect: true,
|
|
217
|
+
fallbackValue: "bottom",
|
|
218
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
219
|
+
"top",
|
|
220
|
+
"top-start",
|
|
221
|
+
"top-end",
|
|
222
|
+
"bottom",
|
|
223
|
+
"bottom-start",
|
|
224
|
+
"bottom-end",
|
|
225
|
+
"left",
|
|
226
|
+
"left-start",
|
|
227
|
+
"left-end",
|
|
228
|
+
"right",
|
|
229
|
+
"right-start",
|
|
230
|
+
"right-end"
|
|
231
|
+
])
|
|
232
|
+
})
|
|
193
233
|
], exports.DaikinMenu.prototype, "placement", 2);
|
|
194
234
|
__decorateClass([
|
|
195
|
-
|
|
235
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
196
236
|
], exports.DaikinMenu.prototype, "open", 2);
|
|
197
237
|
__decorateClass([
|
|
198
|
-
|
|
238
|
+
ddsProperty.property({
|
|
239
|
+
type: String,
|
|
240
|
+
attribute: "popover-value",
|
|
241
|
+
reflect: true,
|
|
242
|
+
fallbackValue: "auto",
|
|
243
|
+
isAllowedValue: ddsProperty.oneOf(["auto", "manual"])
|
|
244
|
+
})
|
|
199
245
|
], exports.DaikinMenu.prototype, "popoverValue", 2);
|
|
200
246
|
__decorateClass([
|
|
201
|
-
|
|
247
|
+
ddsProperty.property({
|
|
248
|
+
type: String,
|
|
249
|
+
reflect: true,
|
|
250
|
+
fallbackValue: "click",
|
|
251
|
+
isAllowedValue: ddsProperty.oneOf(["click", "manual"])
|
|
252
|
+
})
|
|
202
253
|
], exports.DaikinMenu.prototype, "trigger", 2);
|
|
203
254
|
exports.DaikinMenu = __decorateClass([
|
|
204
255
|
decorators.ddsElement("daikin-menu")
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { DDSElement } from "../../base/index.cjs";
|
|
3
|
+
import { DaikinAvatar } from "../avatar/index.cjs";
|
|
4
|
+
import { DaikinBreadcrumbItem } from "../breadcrumb-item/index.cjs";
|
|
5
|
+
import { DaikinButton } from "../button/index.cjs";
|
|
6
|
+
import { DaikinIconButton } from "../icon-button/index.cjs";
|
|
3
7
|
/**
|
|
4
8
|
* A menu component is used to show list information when a user interacts with an element.
|
|
5
9
|
*
|
|
@@ -14,7 +18,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
14
18
|
*
|
|
15
19
|
* @cssprop [--ddc-menu-spacing=0px] - Spacing between the menu and the trigger.
|
|
16
20
|
*
|
|
17
|
-
* @csspart menu -
|
|
21
|
+
* @csspart menu - CSS styles applied to the `menu` part target the internal `<span>` element wrapping the list.
|
|
18
22
|
*
|
|
19
23
|
* @example
|
|
20
24
|
*
|
|
@@ -44,8 +48,10 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
44
48
|
/**
|
|
45
49
|
* Specifies the initial position of the menu relative to the trigger.
|
|
46
50
|
* However, if there isn't enough space in the specified direction, the menu will automatically adjust its direction.
|
|
51
|
+
*
|
|
52
|
+
* @default "bottom"
|
|
47
53
|
*/
|
|
48
|
-
placement: "top" | "bottom" | "left" | "right";
|
|
54
|
+
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
49
55
|
/**
|
|
50
56
|
* Whether the menu is open.
|
|
51
57
|
*/
|
|
@@ -54,16 +60,32 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
54
60
|
* Specify the value of the popover attribute in the Popover API.
|
|
55
61
|
* - `auto`: Clicking on a trigger element will open a menu, and clicking again will close it. You can also close it using the Esc button. You cannot open multiple menu at the same time.
|
|
56
62
|
* - `manual`: No click operation is specified for the trigger element. It will not close even if the Esc button is pressed. Multiple menu can be opened at once.
|
|
63
|
+
*
|
|
64
|
+
* @default "auto"
|
|
57
65
|
*/
|
|
58
66
|
popoverValue: "auto" | "manual";
|
|
59
67
|
/**
|
|
60
68
|
* How the menu is controlled.
|
|
61
69
|
* - `click`: The menu is displayed when the mouse clicks on the trigger element, and hidden when you click on it again. (default)
|
|
62
70
|
* - `manual`: The menu does not respond to user interaction. Use this to control the menu programmatically.
|
|
71
|
+
*
|
|
72
|
+
* @default "click"
|
|
63
73
|
*/
|
|
64
74
|
trigger: "click" | "manual";
|
|
65
75
|
private _autoUpdateController;
|
|
66
76
|
private _hostStyles;
|
|
77
|
+
/**
|
|
78
|
+
* Exposes the trigger element contained within the menu to the outside of the component.
|
|
79
|
+
*
|
|
80
|
+
* Supported trigger elements:
|
|
81
|
+
* - `<daikin-button>`
|
|
82
|
+
* - `<daikin-icon-button>`
|
|
83
|
+
* - `<daikin-avatar>`
|
|
84
|
+
* - `<daikin-breadcrumb-item>`
|
|
85
|
+
*
|
|
86
|
+
* Returns the first matching element from the slot.
|
|
87
|
+
*/
|
|
88
|
+
get triggerElement(): DaikinAvatar | DaikinButton | DaikinIconButton | DaikinBreadcrumbItem | null;
|
|
67
89
|
/**
|
|
68
90
|
* Reflects static attributes (e.g. ARIA roles) to slot components.
|
|
69
91
|
* These are typically set once when the slot changes and do not change frequently.
|
|
@@ -76,6 +98,11 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
76
98
|
private _reflectDynamicProperties;
|
|
77
99
|
private _handleSlotChange;
|
|
78
100
|
private _handleTriggerClick;
|
|
101
|
+
private _handleTouchEnd;
|
|
102
|
+
/**
|
|
103
|
+
* Handles click events on the menu-item.
|
|
104
|
+
* When the popoverValue is manual, the logic for closing the popover should be entirely controlled by the developer and not be the responsibility of the component.
|
|
105
|
+
*/
|
|
79
106
|
private _handleClick;
|
|
80
107
|
private _handleBeforeToggle;
|
|
81
108
|
private _handleToggle;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const guard_js = require("lit/directives/guard.js");
|
|
7
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
8
7
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
8
|
require("../../base/dds-form-element.cjs");
|
|
9
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
10
10
|
const decorators = require("../../base/decorators.cjs");
|
|
11
11
|
require("../../base/define.cjs");
|
|
12
12
|
const focusTrap = require("../../controllers/focus-trap.cjs");
|
|
@@ -58,7 +58,6 @@ exports.DaikinModal = class DaikinModal extends ddsElement.DDSElement {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super(...arguments);
|
|
60
60
|
this.open = false;
|
|
61
|
-
this.modalRole = "dialog";
|
|
62
61
|
this.modalAriaLabel = null;
|
|
63
62
|
this.persistent = false;
|
|
64
63
|
this._handleClose = () => {
|
|
@@ -100,16 +99,22 @@ exports.DaikinModal.styles = lit.css`
|
|
|
100
99
|
${lit.unsafeCSS(tailwind.default)}
|
|
101
100
|
`;
|
|
102
101
|
__decorateClass([
|
|
103
|
-
|
|
102
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
104
103
|
], exports.DaikinModal.prototype, "open", 2);
|
|
105
104
|
__decorateClass([
|
|
106
|
-
|
|
105
|
+
ddsProperty.property({
|
|
106
|
+
type: String,
|
|
107
|
+
reflect: true,
|
|
108
|
+
attribute: "modal-role",
|
|
109
|
+
fallbackValue: "dialog",
|
|
110
|
+
isAllowedValue: ddsProperty.oneOf(["dialog", "alertdialog"])
|
|
111
|
+
})
|
|
107
112
|
], exports.DaikinModal.prototype, "modalRole", 2);
|
|
108
113
|
__decorateClass([
|
|
109
|
-
|
|
114
|
+
ddsProperty.property({ type: String, reflect: true, attribute: "modal-aria-label" })
|
|
110
115
|
], exports.DaikinModal.prototype, "modalAriaLabel", 2);
|
|
111
116
|
__decorateClass([
|
|
112
|
-
|
|
117
|
+
ddsProperty.property({ type: Boolean })
|
|
113
118
|
], exports.DaikinModal.prototype, "persistent", 2);
|
|
114
119
|
exports.DaikinModal = __decorateClass([
|
|
115
120
|
decorators.ddsElement("daikin-modal")
|
|
@@ -39,6 +39,8 @@ export declare class DaikinModal extends DDSElement {
|
|
|
39
39
|
open: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* ARIA role of the modal. Choose the appropriate role for your modal based on its usage scenario.
|
|
42
|
+
*
|
|
43
|
+
* @default "dialog"
|
|
42
44
|
*/
|
|
43
45
|
modalRole: "dialog" | "alertdialog";
|
|
44
46
|
/**
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
5
5
|
require("../../base/dds-form-element.cjs");
|
|
6
|
+
require("lit/decorators.js");
|
|
6
7
|
const decorators = require("../../base/decorators.cjs");
|
|
7
8
|
require("../../base/define.cjs");
|
|
8
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const ref_js = require("lit/directives/ref.js");
|
|
7
6
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
7
|
require("../../base/dds-form-element.cjs");
|
|
8
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
9
9
|
const decorators = require("../../base/decorators.cjs");
|
|
10
10
|
require("../../base/define.cjs");
|
|
11
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -55,7 +55,7 @@ exports.DaikinModalHeader = class DaikinModalHeader extends ddsElement.DDSElemen
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
return lit.html`<div class="flex w-full gap-2">
|
|
58
|
-
<div class="flex-1 flex flex-col pt-0.5 gap-2 break
|
|
58
|
+
<div class="flex-1 flex flex-col pt-0.5 gap-2 natural-break">
|
|
59
59
|
<slot class=${cvaTitle}></slot>
|
|
60
60
|
<slot name="description" class=${cvaDescription}></slot>
|
|
61
61
|
</div>
|
|
@@ -90,7 +90,7 @@ exports.DaikinModalHeader.styles = lit.css`
|
|
|
90
90
|
}
|
|
91
91
|
`;
|
|
92
92
|
__decorateClass([
|
|
93
|
-
|
|
93
|
+
ddsProperty.property({ type: Boolean, reflect: true, attribute: "with-close-button" })
|
|
94
94
|
], exports.DaikinModalHeader.prototype, "withCloseButton", 2);
|
|
95
95
|
exports.DaikinModalHeader = __decorateClass([
|
|
96
96
|
decorators.ddsElement("daikin-modal-header")
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
6
|
const repeat_js = require("lit/directives/repeat.js");
|
|
8
7
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
8
|
require("../../base/dds-form-element.cjs");
|
|
9
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
10
10
|
const decorators = require("../../base/decorators.cjs");
|
|
11
11
|
require("../../base/define.cjs");
|
|
12
12
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -139,9 +139,10 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
139
139
|
this.current,
|
|
140
140
|
this.window
|
|
141
141
|
);
|
|
142
|
+
const landmarkLabel = this.ariaLabel || "Pagination";
|
|
142
143
|
return lit.html`
|
|
143
144
|
<div
|
|
144
|
-
aria-label
|
|
145
|
+
aria-label=${landmarkLabel}
|
|
145
146
|
role="navigation"
|
|
146
147
|
class="inline-flex flex-wrap"
|
|
147
148
|
>
|
|
@@ -210,13 +211,13 @@ exports.DaikinPagination.styles = lit.css`
|
|
|
210
211
|
}
|
|
211
212
|
`;
|
|
212
213
|
__decorateClass([
|
|
213
|
-
|
|
214
|
+
ddsProperty.property({ type: Number, reflect: true })
|
|
214
215
|
], exports.DaikinPagination.prototype, "current", 2);
|
|
215
216
|
__decorateClass([
|
|
216
|
-
|
|
217
|
+
ddsProperty.property({ type: Number, reflect: true })
|
|
217
218
|
], exports.DaikinPagination.prototype, "total", 2);
|
|
218
219
|
__decorateClass([
|
|
219
|
-
|
|
220
|
+
ddsProperty.property({ type: Number, reflect: true })
|
|
220
221
|
], exports.DaikinPagination.prototype, "window", 2);
|
|
221
222
|
exports.DaikinPagination = __decorateClass([
|
|
222
223
|
decorators.ddsElement("daikin-pagination")
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
6
|
require("../../base/dds-form-element.cjs");
|
|
7
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
8
8
|
const decorators = require("../../base/decorators.cjs");
|
|
9
9
|
require("../../base/define.cjs");
|
|
10
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -98,11 +98,8 @@ const cvaHelper = classVarianceAuthority.cva(["text-sm", "leading-[130%]"], {
|
|
|
98
98
|
exports.DaikinProgressBar = class DaikinProgressBar extends ddsElement.DDSElement {
|
|
99
99
|
constructor() {
|
|
100
100
|
super(...arguments);
|
|
101
|
-
this.variant = "inprogress";
|
|
102
|
-
this.size = "medium";
|
|
103
101
|
this.value = 0;
|
|
104
102
|
this.max = 100;
|
|
105
|
-
this.helper = "";
|
|
106
103
|
}
|
|
107
104
|
// Validate the 'value' and 'max' properties to ensure they are valid
|
|
108
105
|
_validateProperties() {
|
|
@@ -158,19 +155,34 @@ exports.DaikinProgressBar.styles = lit.css`
|
|
|
158
155
|
}
|
|
159
156
|
`;
|
|
160
157
|
__decorateClass([
|
|
161
|
-
|
|
158
|
+
ddsProperty.property({
|
|
159
|
+
type: String,
|
|
160
|
+
reflect: true,
|
|
161
|
+
fallbackValue: "inprogress",
|
|
162
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
163
|
+
"inprogress",
|
|
164
|
+
"completed",
|
|
165
|
+
"indeterminate",
|
|
166
|
+
"error"
|
|
167
|
+
])
|
|
168
|
+
})
|
|
162
169
|
], exports.DaikinProgressBar.prototype, "variant", 2);
|
|
163
170
|
__decorateClass([
|
|
164
|
-
|
|
171
|
+
ddsProperty.property({
|
|
172
|
+
type: String,
|
|
173
|
+
reflect: true,
|
|
174
|
+
fallbackValue: "medium",
|
|
175
|
+
isAllowedValue: ddsProperty.oneOf(["medium", "large"])
|
|
176
|
+
})
|
|
165
177
|
], exports.DaikinProgressBar.prototype, "size", 2);
|
|
166
178
|
__decorateClass([
|
|
167
|
-
|
|
179
|
+
ddsProperty.property({ type: Number })
|
|
168
180
|
], exports.DaikinProgressBar.prototype, "value", 2);
|
|
169
181
|
__decorateClass([
|
|
170
|
-
|
|
182
|
+
ddsProperty.property({ type: Number })
|
|
171
183
|
], exports.DaikinProgressBar.prototype, "max", 2);
|
|
172
184
|
__decorateClass([
|
|
173
|
-
|
|
185
|
+
ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
|
|
174
186
|
], exports.DaikinProgressBar.prototype, "helper", 2);
|
|
175
187
|
exports.DaikinProgressBar = __decorateClass([
|
|
176
188
|
decorators.ddsElement("daikin-progress-bar")
|
|
@@ -38,10 +38,14 @@ export declare class DaikinProgressBar extends DDSElement {
|
|
|
38
38
|
static readonly styles: import('lit').CSSResult;
|
|
39
39
|
/**
|
|
40
40
|
* Variant of the progress bar.
|
|
41
|
+
*
|
|
42
|
+
* @default "inprogress"
|
|
41
43
|
*/
|
|
42
44
|
variant: ProgressBarVariantProps["variant"];
|
|
43
45
|
/**
|
|
44
46
|
* Size of the progress bar
|
|
47
|
+
*
|
|
48
|
+
* @default "medium"
|
|
45
49
|
*/
|
|
46
50
|
size: ProgressBarVariantProps["size"];
|
|
47
51
|
/**
|
|
@@ -4,6 +4,7 @@ const lit = require("lit");
|
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
6
|
require("../../base/dds-form-element.cjs");
|
|
7
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
7
8
|
const decorators = require("../../base/decorators.cjs");
|
|
8
9
|
require("../../base/define.cjs");
|
|
9
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -57,7 +58,7 @@ exports.DaikinProgressIndicator.styles = lit.css`
|
|
|
57
58
|
}
|
|
58
59
|
`;
|
|
59
60
|
__decorateClass([
|
|
60
|
-
|
|
61
|
+
ddsProperty.property({ type: Number, attribute: "current-item", reflect: true })
|
|
61
62
|
], exports.DaikinProgressIndicator.prototype, "currentItem", 2);
|
|
62
63
|
__decorateClass([
|
|
63
64
|
decorators_js.queryAssignedElements({ selector: "daikin-progress-indicator-item" })
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
6
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
7
|
require("../../base/dds-form-element.cjs");
|
|
8
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
9
9
|
const decorators = require("../../base/decorators.cjs");
|
|
10
10
|
require("../../base/define.cjs");
|
|
11
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -41,10 +41,6 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends ddsElement.DDSElement {
|
|
44
|
-
constructor() {
|
|
45
|
-
super(...arguments);
|
|
46
|
-
this.status = "unfinished";
|
|
47
|
-
}
|
|
48
44
|
render() {
|
|
49
45
|
return lit.html`<div
|
|
50
46
|
class=${cvaContainer({ status: this.status })}
|
|
@@ -53,7 +49,7 @@ exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends
|
|
|
53
49
|
this.status === "inprogress" ? "step" : void 0
|
|
54
50
|
)}
|
|
55
51
|
>
|
|
56
|
-
<div class="flex flex-col gap-1 w-full">
|
|
52
|
+
<div class="flex flex-col gap-1 w-full overflow-auto">
|
|
57
53
|
<slot class="font-bold leading-[130%]"></slot>
|
|
58
54
|
<slot name="description" class="text-sm leading-[130%]"></slot>
|
|
59
55
|
</div>
|
|
@@ -73,11 +69,20 @@ exports.DaikinProgressIndicatorItem.styles = lit.css`
|
|
|
73
69
|
:host {
|
|
74
70
|
display: block;
|
|
75
71
|
width: 100%;
|
|
76
|
-
min-width:
|
|
72
|
+
min-width: 5rem;
|
|
77
73
|
}
|
|
78
74
|
`;
|
|
79
75
|
__decorateClass([
|
|
80
|
-
|
|
76
|
+
ddsProperty.property({
|
|
77
|
+
type: String,
|
|
78
|
+
reflect: true,
|
|
79
|
+
fallbackValue: "unfinished",
|
|
80
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
81
|
+
"unfinished",
|
|
82
|
+
"inprogress",
|
|
83
|
+
"finished"
|
|
84
|
+
])
|
|
85
|
+
})
|
|
81
86
|
], exports.DaikinProgressIndicatorItem.prototype, "status", 2);
|
|
82
87
|
exports.DaikinProgressIndicatorItem = __decorateClass([
|
|
83
88
|
decorators.ddsElement("daikin-progress-indicator-item")
|
|
@@ -33,6 +33,8 @@ export declare class DaikinProgressIndicatorItem extends DDSElement {
|
|
|
33
33
|
/**
|
|
34
34
|
* Status of the progress indicator item.
|
|
35
35
|
* Controlled by `daikin-progress-indicator`.
|
|
36
|
+
*
|
|
37
|
+
* @default "unfinished"
|
|
36
38
|
*/
|
|
37
39
|
status: ProgressIndicatorItemVariantProps["status"];
|
|
38
40
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -6,6 +6,7 @@ const decorators_js = require("lit/decorators.js");
|
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
7
|
require("../../base/dds-element.cjs");
|
|
8
8
|
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
9
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
9
10
|
const decorators = require("../../base/decorators.cjs");
|
|
10
11
|
require("../../base/define.cjs");
|
|
11
12
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -58,8 +59,6 @@ const cvaLabel = classVarianceAuthority.cva([], {
|
|
|
58
59
|
exports.DaikinRadio = class DaikinRadio extends ddsFormElement.DDSFormElement {
|
|
59
60
|
constructor() {
|
|
60
61
|
super(...arguments);
|
|
61
|
-
this.label = "";
|
|
62
|
-
this.labelPosition = "right";
|
|
63
62
|
this.checked = false;
|
|
64
63
|
this.disabled = false;
|
|
65
64
|
this.disabledByParent = false;
|
|
@@ -100,7 +99,7 @@ exports.DaikinRadio = class DaikinRadio extends ddsFormElement.DDSFormElement {
|
|
|
100
99
|
<input
|
|
101
100
|
class=${RADIO_CLASS_NAME}
|
|
102
101
|
type="radio"
|
|
103
|
-
name=${this.name}
|
|
102
|
+
name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
|
|
104
103
|
aria-label=${this._labelHidden ? this.label : lit.nothing}
|
|
105
104
|
tabindex=${ifDefined_js.ifDefined(this.skipTab ? "-1" : void 0)}
|
|
106
105
|
?disabled=${disabled}
|
|
@@ -142,22 +141,28 @@ exports.DaikinRadio.styles = lit.css`
|
|
|
142
141
|
}
|
|
143
142
|
`;
|
|
144
143
|
__decorateClass([
|
|
145
|
-
|
|
144
|
+
ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
|
|
146
145
|
], exports.DaikinRadio.prototype, "label", 2);
|
|
147
146
|
__decorateClass([
|
|
148
|
-
|
|
147
|
+
ddsProperty.property({
|
|
148
|
+
type: String,
|
|
149
|
+
reflect: true,
|
|
150
|
+
attribute: "label-position",
|
|
151
|
+
fallbackValue: "right",
|
|
152
|
+
isAllowedValue: ddsProperty.oneOf(["right", "hidden"])
|
|
153
|
+
})
|
|
149
154
|
], exports.DaikinRadio.prototype, "labelPosition", 2);
|
|
150
155
|
__decorateClass([
|
|
151
|
-
|
|
156
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
152
157
|
], exports.DaikinRadio.prototype, "checked", 2);
|
|
153
158
|
__decorateClass([
|
|
154
|
-
|
|
159
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
155
160
|
], exports.DaikinRadio.prototype, "disabled", 2);
|
|
156
161
|
__decorateClass([
|
|
157
|
-
|
|
162
|
+
ddsProperty.property({ type: Boolean, reflect: true, attribute: false })
|
|
158
163
|
], exports.DaikinRadio.prototype, "disabledByParent", 2);
|
|
159
164
|
__decorateClass([
|
|
160
|
-
|
|
165
|
+
ddsProperty.property({ type: Boolean, attribute: false })
|
|
161
166
|
], exports.DaikinRadio.prototype, "skipTab", 2);
|
|
162
167
|
__decorateClass([
|
|
163
168
|
decorators_js.query("input")
|
|
@@ -7,6 +7,13 @@ import { DDSFormElement } from "../../base/index.cjs";
|
|
|
7
7
|
* Hierarchies:
|
|
8
8
|
* - `daikin-radio-group` > `daikin-radio`
|
|
9
9
|
*
|
|
10
|
+
* @attr form - The form the component belongs to.
|
|
11
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
12
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
13
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
14
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
15
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
16
|
+
*
|
|
10
17
|
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input type="radio">` element.
|
|
11
18
|
*
|
|
12
19
|
* @slot - A slot for the radio label content.
|
|
@@ -31,6 +38,8 @@ export declare class DaikinRadio extends DDSFormElement {
|
|
|
31
38
|
* Label position.
|
|
32
39
|
* - `right` (default): The label will be placed to the right of the radio button.
|
|
33
40
|
* - `hidden`: The label will not be shown.
|
|
41
|
+
*
|
|
42
|
+
* @default "right"
|
|
34
43
|
*/
|
|
35
44
|
labelPosition: "right" | "hidden";
|
|
36
45
|
/**
|