@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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
6
|
import "../../base/dds-form-element.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
7
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
9
|
import "../../base/define.js";
|
|
9
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -49,23 +50,20 @@ let DaikinLogo = class extends DDSElement {
|
|
|
49
50
|
super(...arguments);
|
|
50
51
|
this.href = null;
|
|
51
52
|
this.target = null;
|
|
52
|
-
this.logoAriaLabel = "Logo of Daikin";
|
|
53
|
-
this.mode = "positive";
|
|
54
53
|
}
|
|
55
54
|
render() {
|
|
56
55
|
if (!this.href) {
|
|
57
56
|
return html`<span
|
|
58
57
|
class=${cvaWrapper({ type: "logo", mode: this.mode })}
|
|
59
58
|
role="img"
|
|
60
|
-
aria-label=${ifDefined(this.logoAriaLabel
|
|
61
|
-
alt=${ifDefined(this.logoAriaLabel ?? void 0)}
|
|
59
|
+
aria-label=${ifDefined(this.logoAriaLabel)}
|
|
62
60
|
></span>`;
|
|
63
61
|
} else {
|
|
64
62
|
return html`<a
|
|
65
63
|
class=${cvaWrapper({ type: "link", mode: this.mode })}
|
|
66
|
-
aria-label=${ifDefined(this.logoAriaLabel
|
|
64
|
+
aria-label=${ifDefined(this.logoAriaLabel)}
|
|
67
65
|
href=${ifDefined(this.href)}
|
|
68
|
-
target=${ifDefined(this.target
|
|
66
|
+
target=${ifDefined(this.target)}
|
|
69
67
|
></a>`;
|
|
70
68
|
}
|
|
71
69
|
}
|
|
@@ -94,10 +92,20 @@ __decorateClass([
|
|
|
94
92
|
property({ type: String, reflect: true })
|
|
95
93
|
], DaikinLogo.prototype, "target", 2);
|
|
96
94
|
__decorateClass([
|
|
97
|
-
property({
|
|
95
|
+
property({
|
|
96
|
+
type: String,
|
|
97
|
+
reflect: true,
|
|
98
|
+
attribute: "logo-aria-label",
|
|
99
|
+
fallbackValue: "Logo of Daikin"
|
|
100
|
+
})
|
|
98
101
|
], DaikinLogo.prototype, "logoAriaLabel", 2);
|
|
99
102
|
__decorateClass([
|
|
100
|
-
property({
|
|
103
|
+
property({
|
|
104
|
+
type: String,
|
|
105
|
+
reflect: true,
|
|
106
|
+
fallbackValue: "positive",
|
|
107
|
+
isAllowedValue: oneOf(["positive", "negative"])
|
|
108
|
+
})
|
|
101
109
|
], DaikinLogo.prototype, "mode", 2);
|
|
102
110
|
__decorateClass([
|
|
103
111
|
query("a")
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { DDSElement } from "../../base/index.js";
|
|
3
|
+
import { DaikinAvatar } from "../avatar/index.js";
|
|
4
|
+
import { DaikinBreadcrumbItem } from "../breadcrumb-item/index.js";
|
|
5
|
+
import { DaikinButton } from "../button/index.js";
|
|
6
|
+
import { DaikinIconButton } from "../icon-button/index.js";
|
|
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.js";
|
|
|
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;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { offset, flip, shift } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { unsafeCSS, css, html } from "lit";
|
|
4
|
-
import { queryAssignedElements
|
|
4
|
+
import { queryAssignedElements } from "lit/decorators.js";
|
|
5
5
|
import { guard } from "lit/directives/guard.js";
|
|
6
6
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
7
|
import "../../base/dds-form-element.js";
|
|
8
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
9
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
10
|
import "../../base/define.js";
|
|
10
11
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
@@ -12,6 +13,7 @@ import { isClient } from "../../is-client.js";
|
|
|
12
13
|
import tailwindStyles from "../../tailwind.css.js";
|
|
13
14
|
import { reDispatch } from "../../utils/re-dispatch.js";
|
|
14
15
|
import { DaikinAvatar } from "../avatar/daikin-avatar.js";
|
|
16
|
+
import { DaikinBreadcrumbItem } from "../breadcrumb-item/daikin-breadcrumb-item.js";
|
|
15
17
|
import { DaikinButton } from "../button/daikin-button.js";
|
|
16
18
|
import { DaikinIconButton } from "../icon-button/daikin-icon-button.js";
|
|
17
19
|
import DaikinListItem from "../list-item/daikin-list-item.js";
|
|
@@ -42,10 +44,7 @@ const DEFAULT_MENU_SPACING = "0px";
|
|
|
42
44
|
let DaikinMenu = class extends DDSElement {
|
|
43
45
|
constructor() {
|
|
44
46
|
super(...arguments);
|
|
45
|
-
this.placement = "bottom";
|
|
46
47
|
this.open = false;
|
|
47
|
-
this.popoverValue = "auto";
|
|
48
|
-
this.trigger = "click";
|
|
49
48
|
this._autoUpdateController = new FloatingUIAutoUpdateController(this);
|
|
50
49
|
this._hostStyles = isClient ? window.getComputedStyle(this) : null;
|
|
51
50
|
}
|
|
@@ -60,6 +59,25 @@ let DaikinMenu = class extends DDSElement {
|
|
|
60
59
|
initialValue: "0px"
|
|
61
60
|
});
|
|
62
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Exposes the trigger element contained within the menu to the outside of the component.
|
|
64
|
+
*
|
|
65
|
+
* Supported trigger elements:
|
|
66
|
+
* - `<daikin-button>`
|
|
67
|
+
* - `<daikin-icon-button>`
|
|
68
|
+
* - `<daikin-avatar>`
|
|
69
|
+
* - `<daikin-breadcrumb-item>`
|
|
70
|
+
*
|
|
71
|
+
* Returns the first matching element from the slot.
|
|
72
|
+
*/
|
|
73
|
+
get triggerElement() {
|
|
74
|
+
for (const control of this._controls) {
|
|
75
|
+
if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button" || control instanceof DaikinAvatar && control.type === "button" || control instanceof DaikinBreadcrumbItem) {
|
|
76
|
+
return control;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
63
81
|
/**
|
|
64
82
|
* Reflects static attributes (e.g. ARIA roles) to slot components.
|
|
65
83
|
* These are typically set once when the slot changes and do not change frequently.
|
|
@@ -83,9 +101,9 @@ let DaikinMenu = class extends DDSElement {
|
|
|
83
101
|
_reflectDynamicProperties() {
|
|
84
102
|
for (const control of this._controls) {
|
|
85
103
|
if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button") {
|
|
86
|
-
control.buttonAriaExpanded = this.open
|
|
104
|
+
control.buttonAriaExpanded = `${this.open}`;
|
|
87
105
|
} else if (control instanceof DaikinAvatar && control.type === "button") {
|
|
88
|
-
control.avatarAriaExpanded = this.open
|
|
106
|
+
control.avatarAriaExpanded = `${this.open}`;
|
|
89
107
|
}
|
|
90
108
|
}
|
|
91
109
|
}
|
|
@@ -93,19 +111,26 @@ let DaikinMenu = class extends DDSElement {
|
|
|
93
111
|
this._reflectStaticProperties();
|
|
94
112
|
}
|
|
95
113
|
_handleTriggerClick(event) {
|
|
96
|
-
if (this.trigger
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
114
|
+
if (this.trigger !== "click") return;
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
this.open = !this.open;
|
|
117
|
+
if (this.open) {
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
this._lists[0].focusFirstItem();
|
|
120
|
+
});
|
|
104
121
|
}
|
|
105
122
|
}
|
|
106
|
-
|
|
123
|
+
_handleTouchEnd(event) {
|
|
124
|
+
if (this.trigger !== "click") return;
|
|
107
125
|
event.preventDefault();
|
|
108
|
-
|
|
126
|
+
this.open = !this.open;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Handles click events on the menu-item.
|
|
130
|
+
* 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.
|
|
131
|
+
*/
|
|
132
|
+
_handleClick(event) {
|
|
133
|
+
if (event.target instanceof DaikinListItem && !event.target.disabled && this.popoverValue === "auto") {
|
|
109
134
|
this.open = false;
|
|
110
135
|
}
|
|
111
136
|
}
|
|
@@ -126,17 +151,14 @@ let DaikinMenu = class extends DDSElement {
|
|
|
126
151
|
return html`<div
|
|
127
152
|
class="relative inline-block text-ddt-color-common-text-primary font-daikinSerif"
|
|
128
153
|
>
|
|
129
|
-
<div
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
>
|
|
135
|
-
<slot @click=${this._handleTriggerClick}></slot>
|
|
154
|
+
<div id="trigger" ${this._autoUpdateController.refReference()}>
|
|
155
|
+
<slot
|
|
156
|
+
@click=${this._handleTriggerClick}
|
|
157
|
+
@touchend=${this._handleTouchEnd}
|
|
158
|
+
></slot>
|
|
136
159
|
</div>
|
|
137
160
|
<span
|
|
138
161
|
id="menu"
|
|
139
|
-
aria-labelledby="menu"
|
|
140
162
|
part="menu"
|
|
141
163
|
class=${cvaMenu()}
|
|
142
164
|
popover=${this.popoverValue}
|
|
@@ -183,20 +205,49 @@ __decorateClass([
|
|
|
183
205
|
], DaikinMenu.prototype, "_lists", 2);
|
|
184
206
|
__decorateClass([
|
|
185
207
|
queryAssignedElements({
|
|
186
|
-
selector: "daikin-button,daikin-icon-button,daikin-avatar"
|
|
208
|
+
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item"
|
|
187
209
|
})
|
|
188
210
|
], DaikinMenu.prototype, "_controls", 2);
|
|
189
211
|
__decorateClass([
|
|
190
|
-
property({
|
|
212
|
+
property({
|
|
213
|
+
type: String,
|
|
214
|
+
reflect: true,
|
|
215
|
+
fallbackValue: "bottom",
|
|
216
|
+
isAllowedValue: oneOf([
|
|
217
|
+
"top",
|
|
218
|
+
"top-start",
|
|
219
|
+
"top-end",
|
|
220
|
+
"bottom",
|
|
221
|
+
"bottom-start",
|
|
222
|
+
"bottom-end",
|
|
223
|
+
"left",
|
|
224
|
+
"left-start",
|
|
225
|
+
"left-end",
|
|
226
|
+
"right",
|
|
227
|
+
"right-start",
|
|
228
|
+
"right-end"
|
|
229
|
+
])
|
|
230
|
+
})
|
|
191
231
|
], DaikinMenu.prototype, "placement", 2);
|
|
192
232
|
__decorateClass([
|
|
193
233
|
property({ type: Boolean, reflect: true })
|
|
194
234
|
], DaikinMenu.prototype, "open", 2);
|
|
195
235
|
__decorateClass([
|
|
196
|
-
property({
|
|
236
|
+
property({
|
|
237
|
+
type: String,
|
|
238
|
+
attribute: "popover-value",
|
|
239
|
+
reflect: true,
|
|
240
|
+
fallbackValue: "auto",
|
|
241
|
+
isAllowedValue: oneOf(["auto", "manual"])
|
|
242
|
+
})
|
|
197
243
|
], DaikinMenu.prototype, "popoverValue", 2);
|
|
198
244
|
__decorateClass([
|
|
199
|
-
property({
|
|
245
|
+
property({
|
|
246
|
+
type: String,
|
|
247
|
+
reflect: true,
|
|
248
|
+
fallbackValue: "click",
|
|
249
|
+
isAllowedValue: oneOf(["click", "manual"])
|
|
250
|
+
})
|
|
200
251
|
], DaikinMenu.prototype, "trigger", 2);
|
|
201
252
|
DaikinMenu = __decorateClass([
|
|
202
253
|
ddsElement("daikin-menu")
|
|
@@ -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
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
3
|
import { guard } from "lit/directives/guard.js";
|
|
5
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
6
|
import "../../base/dds-form-element.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
10
|
import { FocusTrapController } from "../../controllers/focus-trap.js";
|
|
@@ -56,7 +56,6 @@ let DaikinModal = class extends DDSElement {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super(...arguments);
|
|
58
58
|
this.open = false;
|
|
59
|
-
this.modalRole = "dialog";
|
|
60
59
|
this.modalAriaLabel = null;
|
|
61
60
|
this.persistent = false;
|
|
62
61
|
this._handleClose = () => {
|
|
@@ -101,7 +100,13 @@ __decorateClass([
|
|
|
101
100
|
property({ type: Boolean, reflect: true })
|
|
102
101
|
], DaikinModal.prototype, "open", 2);
|
|
103
102
|
__decorateClass([
|
|
104
|
-
property({
|
|
103
|
+
property({
|
|
104
|
+
type: String,
|
|
105
|
+
reflect: true,
|
|
106
|
+
attribute: "modal-role",
|
|
107
|
+
fallbackValue: "dialog",
|
|
108
|
+
isAllowedValue: oneOf(["dialog", "alertdialog"])
|
|
109
|
+
})
|
|
105
110
|
], DaikinModal.prototype, "modalRole", 2);
|
|
106
111
|
__decorateClass([
|
|
107
112
|
property({ type: String, reflect: true, attribute: "modal-aria-label" })
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { DDSElement } from "../../base/dds-element.js";
|
|
3
3
|
import "../../base/dds-form-element.js";
|
|
4
|
+
import "lit/decorators.js";
|
|
4
5
|
import { ddsElement } from "../../base/decorators.js";
|
|
5
6
|
import "../../base/define.js";
|
|
6
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
3
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
5
|
import "../../base/dds-form-element.js";
|
|
6
|
+
import { property } from "../../base/dds-property.js";
|
|
7
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
8
|
import "../../base/define.js";
|
|
9
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -53,7 +53,7 @@ let DaikinModalHeader = class extends DDSElement {
|
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
55
|
return html`<div class="flex w-full gap-2">
|
|
56
|
-
<div class="flex-1 flex flex-col pt-0.5 gap-2 break
|
|
56
|
+
<div class="flex-1 flex flex-col pt-0.5 gap-2 natural-break">
|
|
57
57
|
<slot class=${cvaTitle}></slot>
|
|
58
58
|
<slot name="description" class=${cvaDescription}></slot>
|
|
59
59
|
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
4
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
6
|
import "../../base/dds-form-element.js";
|
|
7
|
+
import { property } from "../../base/dds-property.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -137,9 +137,10 @@ let DaikinPagination = class extends DDSElement {
|
|
|
137
137
|
this.current,
|
|
138
138
|
this.window
|
|
139
139
|
);
|
|
140
|
+
const landmarkLabel = this.ariaLabel || "Pagination";
|
|
140
141
|
return html`
|
|
141
142
|
<div
|
|
142
|
-
aria-label
|
|
143
|
+
aria-label=${landmarkLabel}
|
|
143
144
|
role="navigation"
|
|
144
145
|
class="inline-flex flex-wrap"
|
|
145
146
|
>
|
|
@@ -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
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
4
|
import "../../base/dds-form-element.js";
|
|
5
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
6
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
7
|
import "../../base/define.js";
|
|
8
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -96,11 +96,8 @@ const cvaHelper = cva(["text-sm", "leading-[130%]"], {
|
|
|
96
96
|
let DaikinProgressBar = class extends DDSElement {
|
|
97
97
|
constructor() {
|
|
98
98
|
super(...arguments);
|
|
99
|
-
this.variant = "inprogress";
|
|
100
|
-
this.size = "medium";
|
|
101
99
|
this.value = 0;
|
|
102
100
|
this.max = 100;
|
|
103
|
-
this.helper = "";
|
|
104
101
|
}
|
|
105
102
|
// Validate the 'value' and 'max' properties to ensure they are valid
|
|
106
103
|
_validateProperties() {
|
|
@@ -171,10 +168,25 @@ DaikinProgressBar.styles = css`
|
|
|
171
168
|
}
|
|
172
169
|
`;
|
|
173
170
|
__decorateClass([
|
|
174
|
-
property({
|
|
171
|
+
property({
|
|
172
|
+
type: String,
|
|
173
|
+
reflect: true,
|
|
174
|
+
fallbackValue: "inprogress",
|
|
175
|
+
isAllowedValue: oneOf([
|
|
176
|
+
"inprogress",
|
|
177
|
+
"completed",
|
|
178
|
+
"indeterminate",
|
|
179
|
+
"error"
|
|
180
|
+
])
|
|
181
|
+
})
|
|
175
182
|
], DaikinProgressBar.prototype, "variant", 2);
|
|
176
183
|
__decorateClass([
|
|
177
|
-
property({
|
|
184
|
+
property({
|
|
185
|
+
type: String,
|
|
186
|
+
reflect: true,
|
|
187
|
+
fallbackValue: "medium",
|
|
188
|
+
isAllowedValue: oneOf(["medium", "large"])
|
|
189
|
+
})
|
|
178
190
|
], DaikinProgressBar.prototype, "size", 2);
|
|
179
191
|
__decorateClass([
|
|
180
192
|
property({ type: Number })
|
|
@@ -183,7 +195,7 @@ __decorateClass([
|
|
|
183
195
|
property({ type: Number })
|
|
184
196
|
], DaikinProgressBar.prototype, "max", 2);
|
|
185
197
|
__decorateClass([
|
|
186
|
-
property({ type: String })
|
|
198
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
187
199
|
], DaikinProgressBar.prototype, "helper", 2);
|
|
188
200
|
DaikinProgressBar = __decorateClass([
|
|
189
201
|
ddsElement("daikin-progress-bar")
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
|
-
import {
|
|
2
|
+
import { queryAssignedElements } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import "../../base/dds-form-element.js";
|
|
5
|
+
import { property } from "../../base/dds-property.js";
|
|
5
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
6
7
|
import "../../base/define.js";
|
|
7
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -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>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
|
-
import { property } from "lit/decorators.js";
|
|
4
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
5
|
import "../../base/dds-form-element.js";
|
|
6
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
7
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
8
|
import "../../base/define.js";
|
|
9
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -39,10 +39,6 @@ const cvaContainer = cva(
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
let DaikinProgressIndicatorItem = class extends DDSElement {
|
|
42
|
-
constructor() {
|
|
43
|
-
super(...arguments);
|
|
44
|
-
this.status = "unfinished";
|
|
45
|
-
}
|
|
46
42
|
render() {
|
|
47
43
|
return html`<div
|
|
48
44
|
class=${cvaContainer({ status: this.status })}
|
|
@@ -51,7 +47,7 @@ let DaikinProgressIndicatorItem = class extends DDSElement {
|
|
|
51
47
|
this.status === "inprogress" ? "step" : void 0
|
|
52
48
|
)}
|
|
53
49
|
>
|
|
54
|
-
<div class="flex flex-col gap-1 w-full">
|
|
50
|
+
<div class="flex flex-col gap-1 w-full overflow-auto">
|
|
55
51
|
<slot class="font-bold leading-[130%]"></slot>
|
|
56
52
|
<slot name="description" class="text-sm leading-[130%]"></slot>
|
|
57
53
|
</div>
|
|
@@ -71,11 +67,20 @@ DaikinProgressIndicatorItem.styles = css`
|
|
|
71
67
|
:host {
|
|
72
68
|
display: block;
|
|
73
69
|
width: 100%;
|
|
74
|
-
min-width:
|
|
70
|
+
min-width: 5rem;
|
|
75
71
|
}
|
|
76
72
|
`;
|
|
77
73
|
__decorateClass([
|
|
78
|
-
property({
|
|
74
|
+
property({
|
|
75
|
+
type: String,
|
|
76
|
+
reflect: true,
|
|
77
|
+
fallbackValue: "unfinished",
|
|
78
|
+
isAllowedValue: oneOf([
|
|
79
|
+
"unfinished",
|
|
80
|
+
"inprogress",
|
|
81
|
+
"finished"
|
|
82
|
+
])
|
|
83
|
+
})
|
|
79
84
|
], DaikinProgressIndicatorItem.prototype, "status", 2);
|
|
80
85
|
DaikinProgressIndicatorItem = __decorateClass([
|
|
81
86
|
ddsElement("daikin-progress-indicator-item")
|
|
@@ -7,6 +7,13 @@ import { DDSFormElement } from "../../base/index.js";
|
|
|
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
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import "../../base/dds-element.js";
|
|
6
6
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
7
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
9
|
import "../../base/define.js";
|
|
9
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -56,8 +57,6 @@ const cvaLabel = cva([], {
|
|
|
56
57
|
let DaikinRadio = class extends DDSFormElement {
|
|
57
58
|
constructor() {
|
|
58
59
|
super(...arguments);
|
|
59
|
-
this.label = "";
|
|
60
|
-
this.labelPosition = "right";
|
|
61
60
|
this.checked = false;
|
|
62
61
|
this.disabled = false;
|
|
63
62
|
this.disabledByParent = false;
|
|
@@ -98,7 +97,7 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
98
97
|
<input
|
|
99
98
|
class=${RADIO_CLASS_NAME}
|
|
100
99
|
type="radio"
|
|
101
|
-
name=${this.name}
|
|
100
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
102
101
|
aria-label=${this._labelHidden ? this.label : nothing}
|
|
103
102
|
tabindex=${ifDefined(this.skipTab ? "-1" : void 0)}
|
|
104
103
|
?disabled=${disabled}
|
|
@@ -140,10 +139,16 @@ DaikinRadio.styles = css`
|
|
|
140
139
|
}
|
|
141
140
|
`;
|
|
142
141
|
__decorateClass([
|
|
143
|
-
property({ type: String })
|
|
142
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
144
143
|
], DaikinRadio.prototype, "label", 2);
|
|
145
144
|
__decorateClass([
|
|
146
|
-
property({
|
|
145
|
+
property({
|
|
146
|
+
type: String,
|
|
147
|
+
reflect: true,
|
|
148
|
+
attribute: "label-position",
|
|
149
|
+
fallbackValue: "right",
|
|
150
|
+
isAllowedValue: oneOf(["right", "hidden"])
|
|
151
|
+
})
|
|
147
152
|
], DaikinRadio.prototype, "labelPosition", 2);
|
|
148
153
|
__decorateClass([
|
|
149
154
|
property({ type: Boolean, reflect: true })
|
|
@@ -37,6 +37,8 @@ export declare class DaikinRadioGroup extends DDSElement {
|
|
|
37
37
|
private readonly _radios;
|
|
38
38
|
/**
|
|
39
39
|
* Specify the radio group orientation
|
|
40
|
+
*
|
|
41
|
+
* @default "vertical"
|
|
40
42
|
*/
|
|
41
43
|
orientation: RadioGroupProps["orientation"];
|
|
42
44
|
/**
|
|
@@ -46,7 +48,7 @@ export declare class DaikinRadioGroup extends DDSElement {
|
|
|
46
48
|
name: string;
|
|
47
49
|
/**
|
|
48
50
|
* `value` of the currently selected radio.
|
|
49
|
-
*
|
|
51
|
+
* See {@link DaikinRadio.value}.
|
|
50
52
|
*/
|
|
51
53
|
value: string;
|
|
52
54
|
/**
|