@daikin-oss/design-system-web-components 1.4.0-next.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +345 -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/define.cjs +2 -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 +37 -16
- package/dist/cjs/components/badge/daikin-badge.d.cts +11 -5
- 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 +19 -3
- package/dist/cjs/components/calendar/daikin-calendar.cjs +8 -9
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +5 -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 +29 -23
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +38 -24
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +13 -4
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +13 -13
- 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 +20 -7
- package/dist/cjs/components/icon/daikin-icon.d.cts +88 -39
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +4 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +18 -4
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +9 -8
- 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 +58 -19
- package/dist/cjs/components/menu/daikin-menu.d.cts +23 -1
- 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 +4 -4
- 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 +11 -6
- 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 +23 -10
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +4 -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 +9 -8
- 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 +39 -18
- 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 +11 -1
- 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 -13
- 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-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +2 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs/tailwind.css.cjs +1 -1
- 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/define.cjs +2 -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 +37 -16
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +11 -5
- 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 +19 -3
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +8 -9
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +5 -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 +29 -23
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +38 -24
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +13 -4
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +13 -13
- 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 +20 -7
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +88 -39
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -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 +18 -4
- 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 +4 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +9 -8
- 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 +58 -19
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +23 -1
- 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 +4 -4
- 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 +11 -6
- 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 +23 -10
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +4 -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 +9 -8
- 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 +39 -18
- 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 +11 -1
- 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 -13
- 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-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +2 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- 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/define.js +2 -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 +11 -5
- package/dist/es/components/badge/daikin-badge.js +34 -13
- 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 +19 -3
- package/dist/es/components/button/daikin-button.js +54 -13
- package/dist/es/components/calendar/daikin-calendar.d.ts +5 -3
- package/dist/es/components/calendar/daikin-calendar.js +7 -8
- 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 +24 -18
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +13 -4
- package/dist/es/components/date-picker/daikin-date-picker.js +35 -21
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +7 -7
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es/components/icon/daikin-icon.d.ts +88 -39
- package/dist/es/components/icon/daikin-icon.js +20 -7
- package/dist/es/components/icon/icons.json.d.ts +4 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +18 -4
- package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +4 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es/components/input-group/daikin-input-group.js +3 -2
- 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 +23 -1
- package/dist/es/components/menu/daikin-menu.js +58 -19
- 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 +1 -1
- 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 +11 -6
- 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 +4 -0
- package/dist/es/components/status-message/daikin-status-message.js +21 -8
- 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 +2 -1
- 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 +37 -16
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +11 -1
- 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 -12
- package/dist/es/components/tree/daikin-tree.js +2 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +2 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es/tailwind.css.js +1 -1
- 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/define.js +2 -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 +11 -5
- package/dist/es-dev/components/badge/daikin-badge.js +34 -13
- 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 +19 -3
- package/dist/es-dev/components/button/daikin-button.js +54 -13
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +5 -3
- package/dist/es-dev/components/calendar/daikin-calendar.js +7 -8
- 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 +24 -18
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +13 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +35 -21
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +7 -7
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +88 -39
- package/dist/es-dev/components/icon/daikin-icon.js +20 -7
- package/dist/es-dev/components/icon/icons.json.d.ts +4 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +18 -4
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +4 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +3 -2
- 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 +23 -1
- package/dist/es-dev/components/menu/daikin-menu.js +58 -19
- 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 +1 -1
- 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 +11 -6
- 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 +4 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +21 -8
- 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 +2 -1
- 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 +37 -16
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +11 -1
- 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 -12
- package/dist/es-dev/components/tree/daikin-tree.js +2 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +2 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es-dev/tailwind.css.js +1 -1
- 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/package.json +18 -17
|
@@ -2,6 +2,7 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import "../../base/dds-form-element.js";
|
|
5
|
+
import "lit/decorators.js";
|
|
5
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
6
7
|
import "../../base/define.js";
|
|
7
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { queryAssignedElements, state } from "lit/decorators.js";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
6
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
7
|
import "../../base/dds-form-element.js";
|
|
8
|
+
import { property } from "../../base/dds-property.js";
|
|
8
9
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
10
|
import "../../base/define.js";
|
|
10
11
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
|
-
import {
|
|
2
|
+
import { queryAssignedElements, state } 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";
|
|
@@ -5,11 +5,18 @@ import { DDSFormElement } from "../../base/index.js";
|
|
|
5
5
|
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
6
6
|
* This component is ideal for cases where multiple selections are allowed or required.
|
|
7
7
|
*
|
|
8
|
+
* @attr form - The form the component belongs to.
|
|
9
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
10
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
11
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
12
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
13
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
14
|
+
*
|
|
8
15
|
* @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="checkbox">` element.
|
|
9
16
|
*
|
|
10
17
|
* @slot - A slot for the checkbox label content.
|
|
11
18
|
*
|
|
12
|
-
* @csspart label -
|
|
19
|
+
* @csspart label - CSS styles applied to the `label` part target the internal `<label>` element containing the checkbox. For instance, setting `cursor: pointer;` is useful when the checkbox acts as part of a larger interactive component.
|
|
13
20
|
*
|
|
14
21
|
* @example
|
|
15
22
|
*
|
|
@@ -31,10 +38,14 @@ export declare class DaikinCheckbox extends DDSFormElement {
|
|
|
31
38
|
* Label position.
|
|
32
39
|
* - `right` (default): The label will be placed to the right of the checkbox.
|
|
33
40
|
* - `hidden`: The label will not be shown.
|
|
41
|
+
*
|
|
42
|
+
* @default "right"
|
|
34
43
|
*/
|
|
35
44
|
labelPosition: "right" | "hidden";
|
|
36
45
|
/**
|
|
37
46
|
* Specify the checkbox checked state.
|
|
47
|
+
*
|
|
48
|
+
* @default "unchecked"
|
|
38
49
|
*/
|
|
39
50
|
checkState: "unchecked" | "indeterminate" | "checked";
|
|
40
51
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
4
|
import "../../base/dds-element.js";
|
|
5
5
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
6
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -76,9 +77,6 @@ const cvaLabel = cva([], {
|
|
|
76
77
|
let DaikinCheckbox = class extends DDSFormElement {
|
|
77
78
|
constructor() {
|
|
78
79
|
super(...arguments);
|
|
79
|
-
this.label = "";
|
|
80
|
-
this.labelPosition = "right";
|
|
81
|
-
this.checkState = "unchecked";
|
|
82
80
|
this.disabled = false;
|
|
83
81
|
this.disabledByParent = false;
|
|
84
82
|
}
|
|
@@ -124,7 +122,7 @@ let DaikinCheckbox = class extends DDSFormElement {
|
|
|
124
122
|
<input
|
|
125
123
|
class=${CHECKBOX_CLASS_NAME}
|
|
126
124
|
type="checkbox"
|
|
127
|
-
name=${this.name}
|
|
125
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
128
126
|
?disabled=${disabled}
|
|
129
127
|
aria-label=${this._labelHidden ? this.label : nothing}
|
|
130
128
|
.checked=${this.checked}
|
|
@@ -158,13 +156,29 @@ DaikinCheckbox.styles = css`
|
|
|
158
156
|
}
|
|
159
157
|
`;
|
|
160
158
|
__decorateClass([
|
|
161
|
-
property({ type: String })
|
|
159
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
162
160
|
], DaikinCheckbox.prototype, "label", 2);
|
|
163
161
|
__decorateClass([
|
|
164
|
-
property({
|
|
162
|
+
property({
|
|
163
|
+
type: String,
|
|
164
|
+
reflect: true,
|
|
165
|
+
attribute: "label-position",
|
|
166
|
+
fallbackValue: "right",
|
|
167
|
+
isAllowedValue: oneOf(["right", "hidden"])
|
|
168
|
+
})
|
|
165
169
|
], DaikinCheckbox.prototype, "labelPosition", 2);
|
|
166
170
|
__decorateClass([
|
|
167
|
-
property({
|
|
171
|
+
property({
|
|
172
|
+
type: String,
|
|
173
|
+
reflect: true,
|
|
174
|
+
attribute: "check-state",
|
|
175
|
+
fallbackValue: "unchecked",
|
|
176
|
+
isAllowedValue: oneOf([
|
|
177
|
+
"unchecked",
|
|
178
|
+
"indeterminate",
|
|
179
|
+
"checked"
|
|
180
|
+
])
|
|
181
|
+
})
|
|
168
182
|
], DaikinCheckbox.prototype, "checkState", 2);
|
|
169
183
|
__decorateClass([
|
|
170
184
|
property({ type: Boolean, reflect: true })
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { state, queryAssignedElements } 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";
|
|
@@ -75,7 +76,15 @@ DaikinCheckboxGroup.styles = css`
|
|
|
75
76
|
}
|
|
76
77
|
`;
|
|
77
78
|
__decorateClass([
|
|
78
|
-
property({
|
|
79
|
+
property({
|
|
80
|
+
type: String,
|
|
81
|
+
reflect: true,
|
|
82
|
+
fallbackValue: "vertical",
|
|
83
|
+
isAllowedValue: oneOf([
|
|
84
|
+
"vertical",
|
|
85
|
+
"horizontal"
|
|
86
|
+
])
|
|
87
|
+
})
|
|
79
88
|
], DaikinCheckboxGroup.prototype, "orientation", 2);
|
|
80
89
|
__decorateClass([
|
|
81
90
|
property({ type: Boolean, reflect: true })
|
|
@@ -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 } 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";
|
|
@@ -16,7 +16,14 @@ export type ComboboxItem = string | ComboboxOption;
|
|
|
16
16
|
export declare function defaultFilterFn(items: readonly ComboboxItem[], value: string): readonly ComboboxItem[];
|
|
17
17
|
/**
|
|
18
18
|
* A combobox component.
|
|
19
|
-
* Unlike a dropdown component, a combobox primarily functions as a text field (using a native
|
|
19
|
+
* Unlike a dropdown component, a combobox primarily functions as a text field (using a native `<input>` tag) that can accept custom user input. The dropdown list serves as a helpful aid to expedite the user's input process.
|
|
20
|
+
*
|
|
21
|
+
* @attr form - The form the component belongs to.
|
|
22
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
23
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
24
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
25
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
26
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
20
27
|
*
|
|
21
28
|
* @fires change - A custom event emitted when a user selects a combobox item or inputs a custom value.
|
|
22
29
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event). Triggered when the user types in the input field, clicks clear button, or selects from dropdown options.
|
|
@@ -41,7 +48,7 @@ export declare class DaikinCombobox extends DDSFormElement {
|
|
|
41
48
|
/**
|
|
42
49
|
* Placeholder text of the combobox.
|
|
43
50
|
*/
|
|
44
|
-
placeholder: string
|
|
51
|
+
placeholder: string;
|
|
45
52
|
/**
|
|
46
53
|
* Whether the combobox is disabled.
|
|
47
54
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { flip, offset, size } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
4
|
-
import {
|
|
4
|
+
import { state, query } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
6
|
import { repeat } from "lit/directives/repeat.js";
|
|
7
7
|
import "../../base/dds-element.js";
|
|
8
8
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
9
|
+
import { property } from "../../base/dds-property.js";
|
|
9
10
|
import { ddsElement } from "../../base/decorators.js";
|
|
10
11
|
import "../../base/define.js";
|
|
11
12
|
import { ClickOutsideController } from "../../controllers/click-outside.js";
|
|
@@ -186,7 +187,6 @@ function defaultFilterFn(items, value) {
|
|
|
186
187
|
let DaikinCombobox = class extends DDSFormElement {
|
|
187
188
|
constructor() {
|
|
188
189
|
super(...arguments);
|
|
189
|
-
this.placeholder = null;
|
|
190
190
|
this.disabled = false;
|
|
191
191
|
this.required = false;
|
|
192
192
|
this.error = false;
|
|
@@ -250,7 +250,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
250
250
|
this._currentFocusItemIndex = null;
|
|
251
251
|
}
|
|
252
252
|
_handleFocusOut(event) {
|
|
253
|
-
if (
|
|
253
|
+
if (this.open && // ignore if focusing within the component, especially to the menu items
|
|
254
|
+
// or menu item will be destroyed before click event is handled
|
|
255
|
+
(!event.relatedTarget || !this.renderRoot.contains(event.relatedTarget))) {
|
|
254
256
|
this._closePopup();
|
|
255
257
|
}
|
|
256
258
|
}
|
|
@@ -275,8 +277,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
275
277
|
}
|
|
276
278
|
_handleClickItem(item) {
|
|
277
279
|
const value = getItemValue(item);
|
|
278
|
-
this._handleClick();
|
|
279
280
|
this.value = value;
|
|
281
|
+
this.open = false;
|
|
282
|
+
this._currentFocusItemIndex = null;
|
|
280
283
|
this.dispatchEvent(
|
|
281
284
|
new Event("input", {
|
|
282
285
|
bubbles: true,
|
|
@@ -400,9 +403,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
400
403
|
_handleInput(event) {
|
|
401
404
|
this.value = event.target.value;
|
|
402
405
|
this._synchronizeShowItems("filtered");
|
|
403
|
-
|
|
404
|
-
this.open = true;
|
|
405
|
-
}
|
|
406
|
+
this.open = this._viewItems.length > 0;
|
|
406
407
|
}
|
|
407
408
|
/**
|
|
408
409
|
* Handles change events from the combobox input field.
|
|
@@ -427,20 +428,18 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
427
428
|
placeholder: !this.value || this.value.length === 0
|
|
428
429
|
})}
|
|
429
430
|
role="combobox"
|
|
430
|
-
|
|
431
|
-
|
|
431
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
432
|
+
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
432
433
|
.value=${this.value}
|
|
433
434
|
?disabled=${this.disabled}
|
|
434
|
-
aria-label=${ifDefined(this._label
|
|
435
|
+
aria-label=${ifDefined(this._label)}
|
|
435
436
|
aria-expanded=${this.open && !this.disabled}
|
|
436
437
|
aria-disabled=${this.disabled}
|
|
437
|
-
aria-controls=${
|
|
438
|
+
aria-controls=${this.open ? "combobox-items" : nothing}
|
|
438
439
|
aria-autocomplete="list"
|
|
439
440
|
aria-required=${this.required}
|
|
440
441
|
aria-haspopup="listbox"
|
|
441
|
-
aria-activedescendant=${
|
|
442
|
-
this._currentFocusItemIndex !== null ? `combobox-item-${this._currentFocusItemIndex}` : void 0
|
|
443
|
-
)}
|
|
442
|
+
aria-activedescendant=${this._currentFocusItemIndex !== null ? `combobox-item-${this._currentFocusItemIndex}` : nothing}
|
|
444
443
|
@input=${this._handleInput}
|
|
445
444
|
@change=${this._handleChange}
|
|
446
445
|
@click=${this._handleClick}
|
|
@@ -456,7 +455,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
456
455
|
variant="ghost"
|
|
457
456
|
?disabled=${this.disabled}
|
|
458
457
|
button-aria-label="Clear"
|
|
459
|
-
|
|
458
|
+
button-tabindex="-1"
|
|
460
459
|
@click=${this._handleClearClick}
|
|
461
460
|
@focusout=${this._handleFocusOut}
|
|
462
461
|
>
|
|
@@ -464,7 +463,8 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
464
463
|
</daikin-icon-button>` : nothing}
|
|
465
464
|
<span
|
|
466
465
|
class=${cvaArrow({ open: this.open, disabled: this.disabled })}
|
|
467
|
-
|
|
466
|
+
role="img"
|
|
467
|
+
aria-label=${this.open ? "Close" : "Open"}
|
|
468
468
|
@mousedown=${this._handleArrowClick}
|
|
469
469
|
@keydown=${this._handleKeyDown}
|
|
470
470
|
>
|
|
@@ -474,12 +474,14 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
474
474
|
<div
|
|
475
475
|
id="combobox-items"
|
|
476
476
|
popover="manual"
|
|
477
|
+
tabindex="-1"
|
|
477
478
|
class="flex flex-col overflow-hidden rounded border border-ddt-color-divider floating-unready:hidden absolute left-[--floating-x,0] top-[--floating-y,0] min-w-[--floating-width] max-h-[12.5rem] opacity-1 transition-[opacity] max-w-min"
|
|
478
479
|
@floating-ready=${this._handleFloatingReady}
|
|
479
480
|
${this._autoUpdateController.refFloating()}
|
|
480
481
|
>
|
|
481
482
|
<div
|
|
482
|
-
|
|
483
|
+
tabindex="-1"
|
|
484
|
+
class="flex-1 overflow-y-auto natural-break"
|
|
483
485
|
aria-label=${ifDefined(this._label ?? void 0)}
|
|
484
486
|
role="listbox"
|
|
485
487
|
>
|
|
@@ -541,6 +543,10 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
541
543
|
this.focus();
|
|
542
544
|
}
|
|
543
545
|
}
|
|
546
|
+
if (changedProperties.has("_currentFocusItemIndex")) {
|
|
547
|
+
const focusedItem = this.renderRoot.querySelector("[data-focus]");
|
|
548
|
+
focusedItem == null ? void 0 : focusedItem.scrollIntoView({ block: "nearest" });
|
|
549
|
+
}
|
|
544
550
|
}
|
|
545
551
|
/**
|
|
546
552
|
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
@@ -567,7 +573,7 @@ DaikinCombobox.styles = css`
|
|
|
567
573
|
}
|
|
568
574
|
`;
|
|
569
575
|
__decorateClass([
|
|
570
|
-
property({ type: String, reflect: true })
|
|
576
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
571
577
|
], DaikinCombobox.prototype, "placeholder", 2);
|
|
572
578
|
__decorateClass([
|
|
573
579
|
property({ type: Boolean, reflect: true })
|
|
@@ -4,6 +4,13 @@ import { DaikinInputGroup } from "../input-group/daikin-input-group.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* The date picker component provides a date selection function that can be combined with forms. This component uses `daikin-calendar` internally (users do not need to nest this).
|
|
6
6
|
*
|
|
7
|
+
* @attr form - The form the component belongs to.
|
|
8
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
9
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
10
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
11
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
12
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
13
|
+
*
|
|
7
14
|
* @fires select - Fires when the date is selected.
|
|
8
15
|
*
|
|
9
16
|
* @example
|
|
@@ -21,15 +28,17 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
21
28
|
/**
|
|
22
29
|
* The placeholder text.
|
|
23
30
|
*/
|
|
24
|
-
placeholder: string
|
|
31
|
+
placeholder: string;
|
|
25
32
|
/**
|
|
26
33
|
* The minimum date.
|
|
27
|
-
*
|
|
34
|
+
*
|
|
35
|
+
* @default "1900-01-01"
|
|
28
36
|
*/
|
|
29
37
|
min: string;
|
|
30
38
|
/**
|
|
31
39
|
* The maximum date.
|
|
32
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* @default "2099-12-31"
|
|
33
42
|
*/
|
|
34
43
|
max: string;
|
|
35
44
|
/**
|
|
@@ -74,7 +83,6 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
74
83
|
private get _value();
|
|
75
84
|
private get _min();
|
|
76
85
|
private get _max();
|
|
77
|
-
private get _defaultValue();
|
|
78
86
|
private get _viewDate();
|
|
79
87
|
private get _open();
|
|
80
88
|
private _ignoreCloseByFocusTrap;
|
|
@@ -95,6 +103,7 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
95
103
|
private _updateValue;
|
|
96
104
|
private _updateInputSelection;
|
|
97
105
|
private _updateSelection;
|
|
106
|
+
label: string | null;
|
|
98
107
|
render(): import('lit-html').TemplateResult<1>;
|
|
99
108
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
100
109
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { offset, flip, shift } from "@floating-ui/dom";
|
|
1
|
+
import { offset, flip, shift, size } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { unsafeCSS, css, html } from "lit";
|
|
4
|
-
import {
|
|
3
|
+
import { unsafeCSS, css, nothing, html } from "lit";
|
|
4
|
+
import { state } from "lit/decorators.js";
|
|
5
5
|
import { guard } from "lit/directives/guard.js";
|
|
6
6
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
8
|
import "../../base/dds-element.js";
|
|
9
9
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
10
|
+
import { property } from "../../base/dds-property.js";
|
|
10
11
|
import { ddsElement } from "../../base/decorators.js";
|
|
11
12
|
import "../../base/define.js";
|
|
12
13
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
@@ -230,9 +231,6 @@ function handleOffsetInput(parts, item, offset2, viewDate, minDate, maxDate) {
|
|
|
230
231
|
let DaikinDatePicker = class extends DDSFormElement {
|
|
231
232
|
constructor() {
|
|
232
233
|
super(...arguments);
|
|
233
|
-
this.placeholder = null;
|
|
234
|
-
this.min = "";
|
|
235
|
-
this.max = "";
|
|
236
234
|
this.readonly = false;
|
|
237
235
|
this.disabled = false;
|
|
238
236
|
this.required = false;
|
|
@@ -256,6 +254,7 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
256
254
|
this,
|
|
257
255
|
this._handleCloseCalendar
|
|
258
256
|
);
|
|
257
|
+
this.label = null;
|
|
259
258
|
}
|
|
260
259
|
get _value() {
|
|
261
260
|
return tryParseDateFromProperty(this.value);
|
|
@@ -266,9 +265,6 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
266
265
|
get _max() {
|
|
267
266
|
return tryParseDateFromProperty(this.max) ?? parseDateFromProperty(DEFAULT_MAX_DATE);
|
|
268
267
|
}
|
|
269
|
-
get _defaultValue() {
|
|
270
|
-
return tryParseDateFromProperty(this.defaultValue ?? "");
|
|
271
|
-
}
|
|
272
268
|
get _viewDate() {
|
|
273
269
|
var _a;
|
|
274
270
|
return ((_a = this._calendarElement.value) == null ? void 0 : _a.viewDate) ?? null;
|
|
@@ -506,13 +502,13 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
506
502
|
${ref(this._dateInputElement)}
|
|
507
503
|
class=${cvaField({ error: this.error })}
|
|
508
504
|
type="text"
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
aria-label=${ifDefined(this._label ??
|
|
512
|
-
.value=${this._value ? formatDateForUI(this._value) : ""}
|
|
505
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
506
|
+
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
507
|
+
aria-label=${ifDefined(this._label ?? this.label ?? "Date Picker")}
|
|
513
508
|
?disabled=${this.disabled}
|
|
514
509
|
?readonly=${this.readonly}
|
|
515
510
|
?required=${this.required}
|
|
511
|
+
.value=${this._value ? formatDateForUI(this._value) : ""}
|
|
516
512
|
@change=${this._handleChange}
|
|
517
513
|
@focusin=${this._handleFocusIn}
|
|
518
514
|
@focusout=${this._handleFocusOut}
|
|
@@ -539,12 +535,10 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
539
535
|
${ref(this._calendarElement)}
|
|
540
536
|
${this._focusTrapController.refContainer()}
|
|
541
537
|
id="calendar"
|
|
542
|
-
|
|
538
|
+
value=${this._value ? formatDateForProperty(this._value) : nothing}
|
|
543
539
|
min=${formatDateForProperty(min)}
|
|
544
540
|
max=${formatDateForProperty(max)}
|
|
545
|
-
default-value=${ifDefined(
|
|
546
|
-
this._defaultValue ? formatDateForProperty(this._defaultValue) : void 0
|
|
547
|
-
)}
|
|
541
|
+
default-value=${ifDefined(this.defaultValue)}
|
|
548
542
|
popover="manual"
|
|
549
543
|
class="absolute left-[--floating-x,0] top-[--floating-y,0]"
|
|
550
544
|
@toggle=${this._handleToggle}
|
|
@@ -553,6 +547,9 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
553
547
|
${this._autoUpdateController.refFloating()}
|
|
554
548
|
>
|
|
555
549
|
</daikin-calendar>
|
|
550
|
+
<span class="sr-only" aria-live="polite"
|
|
551
|
+
>${this.value ? `${this._label ?? ""} Selected: ${this.value}` : ""}
|
|
552
|
+
</span>
|
|
556
553
|
${// Activate auto update only when the tooltip is open.
|
|
557
554
|
// TODO(DDS-1226): refactor here with CSS Anchor Positioning instead of using floating-ui
|
|
558
555
|
guard(
|
|
@@ -560,7 +557,18 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
560
557
|
() => this._autoUpdateController.directive(
|
|
561
558
|
{
|
|
562
559
|
placement: "bottom-start",
|
|
563
|
-
middleware: [
|
|
560
|
+
middleware: [
|
|
561
|
+
offset({ mainAxis: 0 }),
|
|
562
|
+
flip(),
|
|
563
|
+
shift(),
|
|
564
|
+
size({
|
|
565
|
+
apply({ availableHeight, elements }) {
|
|
566
|
+
Object.assign(elements.floating.style, {
|
|
567
|
+
maxHeight: `${availableHeight}px`
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
})
|
|
571
|
+
]
|
|
564
572
|
},
|
|
565
573
|
this.open
|
|
566
574
|
)
|
|
@@ -574,6 +582,12 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
574
582
|
if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
|
|
575
583
|
this.open = this._open;
|
|
576
584
|
}
|
|
585
|
+
if (changedProperties.has("value")) {
|
|
586
|
+
if (tryParseDateFromProperty(this.value)) {
|
|
587
|
+
const newDate = parseDateFromProperty(this.value);
|
|
588
|
+
this.error = isDateOutOfRange(newDate, this._min, this._max);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
577
591
|
}
|
|
578
592
|
updated(changedProperties) {
|
|
579
593
|
var _a;
|
|
@@ -614,13 +628,13 @@ DaikinDatePicker.styles = css`
|
|
|
614
628
|
}
|
|
615
629
|
`;
|
|
616
630
|
__decorateClass([
|
|
617
|
-
property({ type: String, reflect: true })
|
|
631
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
618
632
|
], DaikinDatePicker.prototype, "placeholder", 2);
|
|
619
633
|
__decorateClass([
|
|
620
|
-
property({ type: String, reflect: true })
|
|
634
|
+
property({ type: String, reflect: true, fallbackValue: "1900-01-01" })
|
|
621
635
|
], DaikinDatePicker.prototype, "min", 2);
|
|
622
636
|
__decorateClass([
|
|
623
|
-
property({ type: String, reflect: true })
|
|
637
|
+
property({ type: String, reflect: true, fallbackValue: "2099-12-31" })
|
|
624
638
|
], DaikinDatePicker.prototype, "max", 2);
|
|
625
639
|
__decorateClass([
|
|
626
640
|
property({ type: Boolean, reflect: true })
|
|
@@ -8,6 +8,13 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
8
8
|
* - `daikin-dropdown` > `daikin-dropdown-item`
|
|
9
9
|
* - `daikin-input-group` > `daikin-dropdown` > `daikin-dropdown-item`
|
|
10
10
|
*
|
|
11
|
+
* @attr form - The form the component belongs to.
|
|
12
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
13
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
14
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
15
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
16
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
17
|
+
*
|
|
11
18
|
* @fires change - A custom event emitted when a user selects a dropdown item.
|
|
12
19
|
*
|
|
13
20
|
* @slot - Dropdown item list slot. Place `daikin-dropdown-item` elements here.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { flip, offset, size } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
4
|
-
import {
|
|
4
|
+
import { queryAssignedElements, query, state } from "lit/decorators.js";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import "../../base/dds-element.js";
|
|
7
7
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
|
+
import { property } 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";
|
|
@@ -43,7 +44,7 @@ const cvaButton = cva(
|
|
|
43
44
|
"outline",
|
|
44
45
|
"outline-1",
|
|
45
46
|
"-outline-offset-1",
|
|
46
|
-
"break
|
|
47
|
+
"natural-break",
|
|
47
48
|
"focus-visible:outline-2",
|
|
48
49
|
"focus-visible:-outline-offset-2",
|
|
49
50
|
"enabled:outline-[--color-base]",
|
|
@@ -102,7 +103,6 @@ const floatingPositionOptions = {
|
|
|
102
103
|
let DaikinDropdown = class extends DDSFormElement {
|
|
103
104
|
constructor() {
|
|
104
105
|
super(...arguments);
|
|
105
|
-
this.placeholder = "";
|
|
106
106
|
this.disabled = false;
|
|
107
107
|
this.required = false;
|
|
108
108
|
this.error = false;
|
|
@@ -319,7 +319,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
319
319
|
this._updateItemsSelectable();
|
|
320
320
|
}
|
|
321
321
|
render() {
|
|
322
|
-
const fallbackLabel = this.open && !this.disabled ? "Close dropdown" : this.selectedOptions.length ? `Selected: ${this._selectionLabels.join(", ")}` : "Open dropdown";
|
|
322
|
+
const fallbackLabel = this.open && !this.disabled ? "Close dropdown" : this.selectedOptions.length ? `Selected: ${this._selectionLabels.join(", ")}` : this.value ? `Selected: ${this.value}` : "Open dropdown";
|
|
323
323
|
return html`<div class="w-full" @keydown=${this._handleKeyDown}>
|
|
324
324
|
<button
|
|
325
325
|
${ref(this._dropdownRef)}
|
|
@@ -331,7 +331,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
331
331
|
placeholder: !this.selectedOptions.length
|
|
332
332
|
})}
|
|
333
333
|
?disabled=${this.disabled}
|
|
334
|
-
aria-label=${this._label ?? fallbackLabel}
|
|
334
|
+
aria-label=${`${this._label ?? ""} ${fallbackLabel}`}
|
|
335
335
|
aria-expanded=${this.open && !this.disabled}
|
|
336
336
|
aria-disabled=${this.disabled}
|
|
337
337
|
aria-controls=${this.open ? "dropdown-items" : nothing}
|
|
@@ -355,7 +355,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
355
355
|
@floating-ready=${this._handleFloatingReady}
|
|
356
356
|
${this._autoUpdateController.refFloating()}
|
|
357
357
|
>
|
|
358
|
-
<div class="flex-1 overflow-y-auto break
|
|
358
|
+
<div class="flex-1 overflow-y-auto natural-break">
|
|
359
359
|
<slot
|
|
360
360
|
@slotchange=${this._handleSlotChange}
|
|
361
361
|
@select=${this._handleSelect}
|
|
@@ -447,7 +447,7 @@ DaikinDropdown.styles = css`
|
|
|
447
447
|
}
|
|
448
448
|
`;
|
|
449
449
|
__decorateClass([
|
|
450
|
-
property({ type: String, reflect: true })
|
|
450
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
451
451
|
], DaikinDropdown.prototype, "placeholder", 2);
|
|
452
452
|
__decorateClass([
|
|
453
453
|
property({ type: Boolean, reflect: true })
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { DDSElement } from "../../base/dds-element.js";
|
|
5
5
|
import "../../base/dds-form-element.js";
|
|
6
|
+
import { property } from "../../base/dds-property.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|