@daikin-oss/design-system-web-components 1.3.0 → 1.4.0-next.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 +96 -0
- package/dist/cjs/base/dds-element.cjs +1 -1
- 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 +1 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs/components/avatar/daikin-avatar.cjs +9 -5
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +2 -2
- package/dist/cjs/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs/components/badge/daikin-badge.d.cts +85 -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 +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +1 -1
- package/dist/cjs/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs/components/calendar/daikin-calendar.cjs +37 -11
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +12 -2
- package/dist/cjs/components/card/daikin-card.cjs +1 -0
- 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 +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +1 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +9 -5
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -2
- package/dist/cjs/components/chip/daikin-chip.cjs +9 -5
- package/dist/cjs/components/chip/daikin-chip.d.cts +2 -2
- package/dist/cjs/components/combobox/daikin-combobox.cjs +7 -4
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +1 -1
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +33 -6
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +6 -1
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +6 -8
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +1 -1
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +1 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +5 -4
- package/dist/cjs/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +1 -1
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- 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 +1 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +22 -6
- package/dist/cjs/components/link/daikin-link.cjs +1 -0
- package/dist/cjs/components/list/daikin-list.cjs +1 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +1 -0
- package/dist/cjs/components/loading/daikin-loading.cjs +9 -5
- package/dist/cjs/components/loading/daikin-loading.d.cts +2 -2
- package/dist/cjs/components/logo/daikin-logo.cjs +9 -5
- package/dist/cjs/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs/components/menu/daikin-menu.cjs +22 -10
- package/dist/cjs/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs/components/modal/daikin-modal.cjs +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +3 -1
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +1 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +3 -2
- package/dist/cjs/components/radio/daikin-radio.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.d.cts +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs/components/select/daikin-select.cjs +1 -0
- package/dist/cjs/components/slider/daikin-slider.cjs +7 -4
- package/dist/cjs/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +51 -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 +1 -0
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +3 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +1 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +1 -0
- package/dist/cjs/components/tabs/daikin-tabs.cjs +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +1 -1
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +1 -1
- package/dist/cjs/components/text-field/daikin-text-field.cjs +1 -1
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +1 -1
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +1 -1
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +8 -5
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +1 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +1 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +1 -1
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +1 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +1 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +1 -0
- 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.d.cts +1 -1
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- 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 +1 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +9 -5
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +2 -2
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +85 -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 +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +1 -1
- package/dist/cjs-dev/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +37 -11
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +12 -2
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -0
- 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 +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +1 -1
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +1 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +9 -5
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -2
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +9 -5
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +2 -2
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +7 -4
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +1 -1
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +33 -6
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +6 -1
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +6 -8
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +1 -1
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +5 -4
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +1 -1
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- 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 +1 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +22 -6
- package/dist/cjs-dev/components/link/daikin-link.cjs +1 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +1 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +1 -0
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +9 -5
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +2 -2
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +9 -5
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +22 -10
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +1 -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 +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +3 -1
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +1 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +3 -2
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +1 -0
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +7 -4
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +51 -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 +1 -0
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +3 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +1 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +1 -0
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +1 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +1 -1
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +1 -1
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +1 -1
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +1 -1
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +1 -1
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +8 -5
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +1 -1
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +1 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +1 -1
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +1 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +1 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +1 -0
- 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.d.cts +1 -1
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/index.d.ts +1 -0
- package/dist/es/base/index.js +3 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es/components/avatar/daikin-avatar.d.ts +2 -2
- package/dist/es/components/avatar/daikin-avatar.js +8 -4
- package/dist/es/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es/components/badge/daikin-badge.js +134 -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.js +1 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -0
- package/dist/es/components/button/daikin-button.d.ts +2 -2
- package/dist/es/components/button/daikin-button.js +1 -1
- package/dist/es/components/calendar/daikin-calendar.d.ts +12 -2
- package/dist/es/components/calendar/daikin-calendar.js +37 -11
- package/dist/es/components/card/daikin-card.js +1 -0
- 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 +1 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +1 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +1 -1
- package/dist/es/components/checkbox/daikin-checkbox.js +1 -1
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -2
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +8 -4
- package/dist/es/components/chip/daikin-chip.d.ts +2 -2
- package/dist/es/components/chip/daikin-chip.js +8 -4
- package/dist/es/components/combobox/daikin-combobox.d.ts +1 -1
- package/dist/es/components/combobox/daikin-combobox.js +7 -4
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +6 -1
- package/dist/es/components/date-picker/daikin-date-picker.js +31 -4
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +1 -1
- package/dist/es/components/dropdown/daikin-dropdown.js +7 -9
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +1 -0
- package/dist/es/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es/components/icon/daikin-icon.js +5 -4
- package/dist/es/components/icon/icons.json.d.ts +8 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +1 -1
- 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 +4 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +1 -0
- package/dist/es/components/input-group/daikin-input-group.js +22 -6
- package/dist/es/components/link/daikin-link.js +1 -0
- package/dist/es/components/list/daikin-list.js +1 -0
- package/dist/es/components/list-item/daikin-list-item.js +1 -0
- package/dist/es/components/loading/daikin-loading.d.ts +2 -2
- package/dist/es/components/loading/daikin-loading.js +8 -4
- package/dist/es/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es/components/logo/daikin-logo.js +8 -4
- package/dist/es/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es/components/menu/daikin-menu.js +22 -10
- package/dist/es/components/modal/daikin-modal.js +1 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +1 -0
- package/dist/es/components/pagination/daikin-pagination.js +3 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +1 -0
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +3 -2
- package/dist/es/components/radio/daikin-radio.d.ts +1 -1
- package/dist/es/components/radio/daikin-radio.js +1 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es/components/select/daikin-select.js +1 -0
- package/dist/es/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es/components/slider/daikin-slider.js +5 -2
- package/dist/es/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es/components/status-message/daikin-status-message.js +111 -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 +1 -0
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -0
- package/dist/es/components/table/daikin-table.js +3 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +1 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +1 -0
- package/dist/es/components/tabs/daikin-tabs.js +1 -0
- package/dist/es/components/text-area/daikin-text-area.d.ts +1 -1
- package/dist/es/components/text-area/daikin-text-area.js +1 -1
- package/dist/es/components/text-field/daikin-text-field.d.ts +1 -1
- package/dist/es/components/text-field/daikin-text-field.js +1 -1
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +1 -1
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +1 -1
- package/dist/es/components/time-picker/daikin-time-picker.js +6 -3
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es/components/toast-notification/daikin-toast-notification.js +1 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +1 -1
- package/dist/es/components/toggle/daikin-toggle.js +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +1 -0
- package/dist/es/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es/components/tree/daikin-tree.js +1 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -0
- 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 +1 -1
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/index.d.ts +1 -0
- package/dist/es-dev/base/index.js +3 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +2 -2
- package/dist/es-dev/components/avatar/daikin-avatar.js +8 -4
- package/dist/es-dev/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es-dev/components/badge/daikin-badge.js +134 -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.js +1 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -0
- package/dist/es-dev/components/button/daikin-button.d.ts +2 -2
- package/dist/es-dev/components/button/daikin-button.js +1 -1
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +12 -2
- package/dist/es-dev/components/calendar/daikin-calendar.js +37 -11
- package/dist/es-dev/components/card/daikin-card.js +1 -0
- 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 +1 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +1 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +1 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +1 -1
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -2
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +8 -4
- package/dist/es-dev/components/chip/daikin-chip.d.ts +2 -2
- package/dist/es-dev/components/chip/daikin-chip.js +8 -4
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +1 -1
- package/dist/es-dev/components/combobox/daikin-combobox.js +7 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +6 -1
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +31 -4
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +1 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +7 -9
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +1 -0
- package/dist/es-dev/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es-dev/components/icon/daikin-icon.js +5 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +8 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +1 -1
- 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 +4 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +1 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +22 -6
- package/dist/es-dev/components/link/daikin-link.js +1 -0
- package/dist/es-dev/components/list/daikin-list.js +1 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +1 -0
- package/dist/es-dev/components/loading/daikin-loading.d.ts +2 -2
- package/dist/es-dev/components/loading/daikin-loading.js +8 -4
- package/dist/es-dev/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es-dev/components/logo/daikin-logo.js +8 -4
- package/dist/es-dev/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es-dev/components/menu/daikin-menu.js +22 -10
- package/dist/es-dev/components/modal/daikin-modal.js +1 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +1 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +3 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +1 -0
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +3 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +1 -1
- package/dist/es-dev/components/radio/daikin-radio.js +1 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es-dev/components/select/daikin-select.js +1 -0
- package/dist/es-dev/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es-dev/components/slider/daikin-slider.js +5 -2
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +111 -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 +1 -0
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -0
- package/dist/es-dev/components/table/daikin-table.js +3 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +1 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +1 -0
- package/dist/es-dev/components/tabs/daikin-tabs.js +1 -0
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +1 -1
- package/dist/es-dev/components/text-area/daikin-text-area.js +1 -1
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +1 -1
- package/dist/es-dev/components/text-field/daikin-text-field.js +1 -1
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +1 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +1 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +6 -3
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +1 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +1 -1
- package/dist/es-dev/components/toggle/daikin-toggle.js +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +1 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es-dev/components/tree/daikin-tree.js +1 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -0
- 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 +1 -0
- 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 +1 -1
- package/icons/neutral.svg +3 -0
- package/icons/notification.svg +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# @daikin-oss/design-system-web-components
|
|
2
2
|
|
|
3
|
+
## 1.4.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#268](https://github.com/dsv-rp/DDS/pull/268) [`1aab398`](https://github.com/dsv-rp/DDS/commit/1aab3981ca38f7e9c105b02c7087c6ea647feb37) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Badge: Add Badge component. (DDS-2613)
|
|
8
|
+
|
|
9
|
+
- [#287](https://github.com/dsv-rp/DDS/pull/287) [`b235f19`](https://github.com/dsv-rp/DDS/commit/b235f1952e77a68477fbe048c3400652186049fb) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Menu: Menu position now supports `top-start` , `top-end` , `bottom-start` , `bottom-end` , `left-start` , `left-end` , `right-start` , and `right-end` . (DDS-2636)
|
|
10
|
+
|
|
11
|
+
- [#275](https://github.com/dsv-rp/DDS/pull/275) [`2ed2500`](https://github.com/dsv-rp/DDS/commit/2ed2500d4e26afa858bb75f681d1ce895008203e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Status Message: Add Status Message component. (DDS-2415)
|
|
12
|
+
|
|
13
|
+
- [#291](https://github.com/dsv-rp/DDS/pull/291) [`1dadbac`](https://github.com/dsv-rp/DDS/commit/1dadbacb4c54bad3427116b78ce08e8129271ed3) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Date Time Range: Add date time range recipe. (DDS-2629)
|
|
14
|
+
Date Picker: Improved the appearance when the placeholder content is too long.
|
|
15
|
+
Time Picker: Improved the appearance when the placeholder content is too long.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#274](https://github.com/dsv-rp/DDS/pull/274) [`1c14478`](https://github.com/dsv-rp/DDS/commit/1c14478b2d9dc2d03dbfc6454698367e6e2bd886) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add progress indicator kitchen sink page for next version.
|
|
20
|
+
|
|
21
|
+
- [#281](https://github.com/dsv-rp/DDS/pull/281) [`5fc5fee`](https://github.com/dsv-rp/DDS/commit/5fc5feed083e8ff06af01d23929b94a32163250e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Adjust Storybook's default viewport width to facilitate testing. (DDS-2558)
|
|
22
|
+
|
|
23
|
+
- [#293](https://github.com/dsv-rp/DDS/pull/293) [`d8f89cd`](https://github.com/dsv-rp/DDS/commit/d8f89cd0c1c3c76997b6b5f3b28cef6d1439899e) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add tree item kitchen sink page.
|
|
24
|
+
|
|
25
|
+
- [#271](https://github.com/dsv-rp/DDS/pull/271) [`c6a8dca`](https://github.com/dsv-rp/DDS/commit/c6a8dcafa35ebc5570e3b2931d013063ab73cfb8) Thanks [@dk-wei](https://github.com/dk-wei)! - Add toast notification kitchen sink page for next branch.
|
|
26
|
+
|
|
27
|
+
- [#283](https://github.com/dsv-rp/DDS/pull/283) [`69ba47f`](https://github.com/dsv-rp/DDS/commit/69ba47f47d6e93ece20e45f2317da1d21d97b9ee) Thanks [@dk-wei](https://github.com/dk-wei)! - Add select kitchen sink page.
|
|
28
|
+
|
|
29
|
+
- [#270](https://github.com/dsv-rp/DDS/pull/270) [`fcab6cd`](https://github.com/dsv-rp/DDS/commit/fcab6cd5c0b6b9a6e37a54620a67b8542b88a2b6) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Icon: Update the actual size definitions in the code to match the Figma specifications.
|
|
30
|
+
|
|
31
|
+
- [#302](https://github.com/dsv-rp/DDS/pull/302) [`1ebe8a6`](https://github.com/dsv-rp/DDS/commit/1ebe8a636145dadc366a0fb066c77de784725a74) Thanks [@dk-wei](https://github.com/dk-wei)! - Table Cell (Storybook): Added kitchen sink.
|
|
32
|
+
|
|
33
|
+
- [#276](https://github.com/dsv-rp/DDS/pull/276) [`bc590c1`](https://github.com/dsv-rp/DDS/commit/bc590c1ae3b4c7d2d6720e615270abdc80097ae5) Thanks [@dk-wei](https://github.com/dk-wei)! - Add progress indicator item kitchen sink page for next version.
|
|
34
|
+
|
|
35
|
+
- [#296](https://github.com/dsv-rp/DDS/pull/296) [`1522517`](https://github.com/dsv-rp/DDS/commit/1522517ca379caf3cd487c93932eb5ef7d0ed2b2) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Fixed an issue where the menu popup could not be closed on touch devices under certain conditions. (DDS-2736)
|
|
36
|
+
|
|
37
|
+
- [#295](https://github.com/dsv-rp/DDS/pull/295) [`e8739ed`](https://github.com/dsv-rp/DDS/commit/e8739edffde9e6a58bb5b4bb406eb6e2e28362ef) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Toast Notification (Storybook): Changed control type to "date" for `timestamp` property.
|
|
38
|
+
Inline Notification (Storybook): Changed control type to "date" for `timestamp` property.
|
|
39
|
+
|
|
40
|
+
- [#265](https://github.com/dsv-rp/DDS/pull/265) [`f6f39c7`](https://github.com/dsv-rp/DDS/commit/f6f39c751a1a90fc1aca48aed9a774b6e4f7520d) Thanks [@dk-wei](https://github.com/dk-wei)! - Add icon kitchen sink page to the next branch.
|
|
41
|
+
|
|
42
|
+
- [#292](https://github.com/dsv-rp/DDS/pull/292) [`4730869`](https://github.com/dsv-rp/DDS/commit/47308699e3628c4ccd337f4239ef57c45413c551) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Tree: Updated the documentation regarding the `selectedItems` property.
|
|
43
|
+
Tree Section: Updated the documentation regarding the `value` property.
|
|
44
|
+
Tree Item: Updated the documentation regarding the `value` property.
|
|
45
|
+
|
|
46
|
+
- [#272](https://github.com/dsv-rp/DDS/pull/272) [`e0d3723`](https://github.com/dsv-rp/DDS/commit/e0d37231cb0f0ad7fb15b814071014652fc9f359) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add pagination kitchen sink page for next version.
|
|
47
|
+
|
|
48
|
+
- [#279](https://github.com/dsv-rp/DDS/pull/279) [`7b8867a`](https://github.com/dsv-rp/DDS/commit/7b8867af801e71f09a658e805a524be8c5896f04) Thanks [@dk-wei](https://github.com/dk-wei)! - Add radio group kitchen sink page.
|
|
49
|
+
|
|
50
|
+
- [#264](https://github.com/dsv-rp/DDS/pull/264) [`9bc7b5e`](https://github.com/dsv-rp/DDS/commit/9bc7b5efe162e52d1c1c96a959e42b5344cc9c26) Thanks [@dk-wei](https://github.com/dk-wei)! - Add Icon button Kitchen Sink page for next version.
|
|
51
|
+
|
|
52
|
+
- [#294](https://github.com/dsv-rp/DDS/pull/294) [`1823167`](https://github.com/dsv-rp/DDS/commit/18231671a77b1d8adbf504445d8a07e6114f2891) Thanks [@dk-wei](https://github.com/dk-wei)! - -Add tree section kitchen sink page.
|
|
53
|
+
|
|
54
|
+
- [#280](https://github.com/dsv-rp/DDS/pull/280) [`d29bc53`](https://github.com/dsv-rp/DDS/commit/d29bc535c1e89371fb56242fe500ac46f187557b) Thanks [@yodas7](https://github.com/yodas7)! - Fix sticky hover appearance on touch devices. (DDS-2676)
|
|
55
|
+
|
|
56
|
+
- [#278](https://github.com/dsv-rp/DDS/pull/278) [`fcd72f5`](https://github.com/dsv-rp/DDS/commit/fcd72f540f62c298fa93c9472f99aebec2f79a60) Thanks [@dk-wei](https://github.com/dk-wei)! - - Add radio kitchen sink page for next version.
|
|
57
|
+
|
|
58
|
+
- [#266](https://github.com/dsv-rp/DDS/pull/266) [`d214c31`](https://github.com/dsv-rp/DDS/commit/d214c31c77e4df43149bac8a1a7c6f7457a3533c) Thanks [@dk-wei](https://github.com/dk-wei)! - Add list item kitchen sink page for next version
|
|
59
|
+
|
|
60
|
+
- [#299](https://github.com/dsv-rp/DDS/pull/299) [`977cac8`](https://github.com/dsv-rp/DDS/commit/977cac81534d6fcf14acffc24ef3650104e3af66) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Date Picker: Added a focus trap. (DDS-2350)
|
|
61
|
+
|
|
62
|
+
- [#286](https://github.com/dsv-rp/DDS/pull/286) [`9e69012`](https://github.com/dsv-rp/DDS/commit/9e6901220162717d03dccdccb92db351282a24e7) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Adjusted the Storybook viewport to remove horizontal padding when a story is displayed in a mobile-sized window. (DDS-2724)
|
|
63
|
+
Carousel (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
64
|
+
Carousel Item (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
65
|
+
Modal Header (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
66
|
+
Modal Footer (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
67
|
+
Progress Indicator Item: Adjusted minimum width to align with the latest design spec. (DDS-2724)
|
|
68
|
+
Progress Indicator Item (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
69
|
+
Tab Panels (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
70
|
+
Tree (Storybook): Limited width to prevent horizontal scrolling in the mobile viewport. (DDS-2724)
|
|
71
|
+
|
|
72
|
+
- [#284](https://github.com/dsv-rp/DDS/pull/284) [`9f26649`](https://github.com/dsv-rp/DDS/commit/9f266495174698950393b0c97a304de0899482d9) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Chip (Storybook): Provide a control to manage the text content. (DDS-2538)
|
|
73
|
+
Combobox (Storybook): Fix example code. (DDS-2546)
|
|
74
|
+
Table (Storybook): Fix example code. (DDS-2546)
|
|
75
|
+
Text Mask Field (Storybook): Fix example code. (DDS-2546)
|
|
76
|
+
Dropdown (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
|
|
77
|
+
Dropdown Item (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
|
|
78
|
+
Pagination (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
|
|
79
|
+
Tooltip (Storybook): Hide the event handlers in the Controls panel. (DDS-2481)
|
|
80
|
+
Inline Notification: Update timestamp property's description. (DDS-2579)
|
|
81
|
+
Toast Notification: Update timestamp property's description. (DDS-2579)
|
|
82
|
+
Combobox: Fixed an issue where the selection icon was positioned at the far left edge of the item when an empty string was selected in the ComboBox dropdown. (DDS-2543)
|
|
83
|
+
Combobox: Fixed an accessibility issue regarding the inability to apply `aria-controls` to the ID of an element whose visibility is uncertain. (DDS-2545)
|
|
84
|
+
Dropdown: Fixed an accessibility issue regarding the inability to apply `aria-controls` to the ID of an element whose visibility is uncertain. (DDS-2545)
|
|
85
|
+
Date Picker: Add a disabled story. (DDS-2511)
|
|
86
|
+
|
|
87
|
+
- [#285](https://github.com/dsv-rp/DDS/pull/285) [`7d7d575`](https://github.com/dsv-rp/DDS/commit/7d7d575ebfa497a3ce5b0322014216ec5724dd85) Thanks [@dk-wei](https://github.com/dk-wei)! - Add toggle kitchen sink page.
|
|
88
|
+
|
|
89
|
+
- [#290](https://github.com/dsv-rp/DDS/pull/290) [`7df4f58`](https://github.com/dsv-rp/DDS/commit/7df4f583fb3153aae478da6673183e8c2189e737) Thanks [@dk-wei](https://github.com/dk-wei)! - Add tree kitchen sink page for next branch.
|
|
90
|
+
|
|
91
|
+
- [#267](https://github.com/dsv-rp/DDS/pull/267) [`e117a24`](https://github.com/dsv-rp/DDS/commit/e117a24096cee964e40948350c283153ea88f704) Thanks [@dk-wei](https://github.com/dk-wei)! - Add list kitchen sink page for DDS new version.
|
|
92
|
+
|
|
93
|
+
## 1.3.1
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- [#269](https://github.com/dsv-rp/DDS/pull/269) [`222e13e`](https://github.com/dsv-rp/DDS/commit/222e13efc58fa10b53b478def1769fadb10e5939) Thanks [@yodas7](https://github.com/yodas7)! - Fixed an issue where custom elements were not properly configured or registered in some components. (DDS-2660)
|
|
98
|
+
|
|
3
99
|
## 1.3.0
|
|
4
100
|
|
|
5
101
|
### Minor Changes
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const _DDSElement = class _DDSElement extends lit.LitElement {
|
|
5
5
|
};
|
|
6
|
-
_DDSElement.version = "1.
|
|
6
|
+
_DDSElement.version = "1.4.0-next.0";
|
|
7
7
|
let DDSElement = _DDSElement;
|
|
8
8
|
exports.DDSElement = DDSElement;
|
package/dist/cjs/base/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const ddsElement = require("./dds-element.cjs");
|
|
4
|
+
const ddsFormElement = require("./dds-form-element.cjs");
|
|
4
5
|
const decorators = require("./decorators.cjs");
|
|
5
6
|
const define = require("./define.cjs");
|
|
6
7
|
exports.DDSElement = ddsElement.DDSElement;
|
|
8
|
+
exports.DDSFormElement = ddsFormElement.DDSFormElement;
|
|
9
|
+
exports.DDSFormSubmitElement = ddsFormElement.DDSFormSubmitElement;
|
|
7
10
|
exports.ddsElement = decorators.ddsElement;
|
|
8
11
|
exports.defineDDSElement = define.defineDDSElement;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
require("../../base/dds-form-element.cjs");
|
|
6
7
|
const decorators = require("../../base/decorators.cjs");
|
|
7
8
|
require("../../base/define.cjs");
|
|
8
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -5,6 +5,7 @@ const lit = require("lit");
|
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ref_js = require("lit/directives/ref.js");
|
|
7
7
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
require("../../base/dds-form-element.cjs");
|
|
8
9
|
const decorators = require("../../base/decorators.cjs");
|
|
9
10
|
require("../../base/define.cjs");
|
|
10
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -4,13 +4,17 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
require("../../base/dds-form-element.cjs");
|
|
9
|
+
const decorators = require("../../base/decorators.cjs");
|
|
10
|
+
require("../../base/define.cjs");
|
|
7
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
12
|
var __defProp = Object.defineProperty;
|
|
9
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
11
15
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i =
|
|
13
|
-
if (decorator =
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
14
18
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
19
|
if (kind && result) __defProp(target, key, result);
|
|
16
20
|
return result;
|
|
@@ -59,7 +63,7 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
);
|
|
62
|
-
exports.DaikinAvatar = class DaikinAvatar extends
|
|
66
|
+
exports.DaikinAvatar = class DaikinAvatar extends ddsElement.DDSElement {
|
|
63
67
|
constructor() {
|
|
64
68
|
super();
|
|
65
69
|
this.type = "icon";
|
|
@@ -157,5 +161,5 @@ __decorateClass([
|
|
|
157
161
|
decorators_js.query("a,button")
|
|
158
162
|
], exports.DaikinAvatar.prototype, "_focusableElement", 2);
|
|
159
163
|
exports.DaikinAvatar = __decorateClass([
|
|
160
|
-
|
|
164
|
+
decorators.ddsElement("daikin-avatar")
|
|
161
165
|
], exports.DaikinAvatar);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
3
|
declare const cvaWrapper: (props?: ({
|
|
4
4
|
type?: "button" | "icon" | "link" | null | undefined;
|
|
@@ -19,7 +19,7 @@ type AvatarVariantProps = MergeVariantProps<typeof cvaWrapper>;
|
|
|
19
19
|
* <daikin-avatar></daikin-avatar>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare class DaikinAvatar extends
|
|
22
|
+
export declare class DaikinAvatar extends DDSElement {
|
|
23
23
|
static readonly styles: import('lit').CSSResult;
|
|
24
24
|
/**
|
|
25
25
|
* Replace the wrapping element.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
require("../../base/dds-form-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
10
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
|
|
22
|
+
variants: {
|
|
23
|
+
type: {
|
|
24
|
+
number: [
|
|
25
|
+
"h-4",
|
|
26
|
+
"min-w-4",
|
|
27
|
+
"px-1",
|
|
28
|
+
"text-[10px]",
|
|
29
|
+
"font-normal",
|
|
30
|
+
"font-daikinSerif",
|
|
31
|
+
"text-white",
|
|
32
|
+
"flex",
|
|
33
|
+
"items-center",
|
|
34
|
+
"justify-center",
|
|
35
|
+
"-top-[2px]",
|
|
36
|
+
"-right-[2px]",
|
|
37
|
+
"before:content-[attr(data-count)]",
|
|
38
|
+
"before:leading-none",
|
|
39
|
+
"before:whitespace-nowrap",
|
|
40
|
+
"data-[count=0]:hidden"
|
|
41
|
+
],
|
|
42
|
+
dot: ["w-2", "h-2", "top-1", "right-1"]
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
danger: ["bg-ddt-color-common-danger-default"],
|
|
46
|
+
alarm: ["bg-ddt-color-common-alarm"],
|
|
47
|
+
warning: ["bg-ddt-color-common-warning"],
|
|
48
|
+
success: ["bg-ddt-color-common-success"],
|
|
49
|
+
information: ["bg-ddt-color-common-information"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this.type = "dot";
|
|
57
|
+
this.count = null;
|
|
58
|
+
this.maxCount = "99";
|
|
59
|
+
this.invisible = false;
|
|
60
|
+
this.color = "danger";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Computes the actual number to display in the badge.
|
|
64
|
+
* - If count is null or invalid, displays "0".
|
|
65
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
66
|
+
* - Otherwise, displays the actual number.
|
|
67
|
+
*/
|
|
68
|
+
get _count() {
|
|
69
|
+
if (this.count == null) {
|
|
70
|
+
return "0";
|
|
71
|
+
}
|
|
72
|
+
const count = parseInt(this.count, 10);
|
|
73
|
+
const maxCount = this.maxCount ? parseInt(this.maxCount, 10) : null;
|
|
74
|
+
if (isNaN(count) || count < 0) {
|
|
75
|
+
return "0";
|
|
76
|
+
}
|
|
77
|
+
if (maxCount != null && !isNaN(maxCount) && count > maxCount) {
|
|
78
|
+
return `${maxCount.toLocaleString()}+`;
|
|
79
|
+
}
|
|
80
|
+
return count.toLocaleString();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Renders the badge component.
|
|
84
|
+
* - Renders a small dot when type="dot".
|
|
85
|
+
* - Renders a number when type="number" and count > 0.
|
|
86
|
+
* - Does not render the badge if invisible=true.
|
|
87
|
+
* - The slot wraps the icon button.
|
|
88
|
+
*/
|
|
89
|
+
render() {
|
|
90
|
+
return lit.html`
|
|
91
|
+
<slot></slot>
|
|
92
|
+
<span
|
|
93
|
+
role="presentation"
|
|
94
|
+
data-count=${this._count}
|
|
95
|
+
class=${cvaBadge({
|
|
96
|
+
type: this.type,
|
|
97
|
+
color: this.color
|
|
98
|
+
})}
|
|
99
|
+
?hidden=${this.invisible}
|
|
100
|
+
></span>
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
exports.DaikinBadge.styles = lit.css`
|
|
105
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
106
|
+
|
|
107
|
+
:host {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
position: relative;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
span[hidden] {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
__decorateClass([
|
|
117
|
+
decorators_js.property({ type: String, reflect: true })
|
|
118
|
+
], exports.DaikinBadge.prototype, "type", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
decorators_js.property({ type: String, reflect: true })
|
|
121
|
+
], exports.DaikinBadge.prototype, "count", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
decorators_js.property({ type: String, reflect: true, attribute: "max-count" })
|
|
124
|
+
], exports.DaikinBadge.prototype, "maxCount", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
127
|
+
], exports.DaikinBadge.prototype, "invisible", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
decorators_js.property({ type: String, reflect: true })
|
|
130
|
+
], exports.DaikinBadge.prototype, "color", 2);
|
|
131
|
+
exports.DaikinBadge = __decorateClass([
|
|
132
|
+
decorators.ddsElement("daikin-badge")
|
|
133
|
+
], exports.DaikinBadge);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* A badge is used to display notification counts, status indicators, or small dots in the UI—commonly for message alerts or status marking.
|
|
4
|
+
*
|
|
5
|
+
* @slot - A slot for anchoring element. Place `daikin-icon-button` here.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```js
|
|
10
|
+
* import "@daikin-oss/design-system-web-components/components/badge/index.js";
|
|
11
|
+
* import "@daikin-oss/design-system-web-components/components/icon/index.js";
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/icon-button/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <daikin-badge count="42" max-count="999" color="danger">
|
|
17
|
+
* <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
|
|
18
|
+
* <daikin-icon
|
|
19
|
+
* class="w-8 h-8"
|
|
20
|
+
* icon="notification"
|
|
21
|
+
* size="current"
|
|
22
|
+
* color="current"
|
|
23
|
+
* >
|
|
24
|
+
* </daikin-icon>
|
|
25
|
+
* </daikin-icon-button>
|
|
26
|
+
* </daikin-badge>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class DaikinBadge extends DDSElement {
|
|
30
|
+
static readonly styles: import('lit').CSSResult;
|
|
31
|
+
/**
|
|
32
|
+
* Badge type.
|
|
33
|
+
* - "number": Displays a number (e.g., message count, quantity).
|
|
34
|
+
* - "dot": Displays only a small dot (e.g., status indicator).
|
|
35
|
+
* @default "dot"
|
|
36
|
+
*/
|
|
37
|
+
type: "number" | "dot";
|
|
38
|
+
/**
|
|
39
|
+
* The numeric content displayed in the badge.
|
|
40
|
+
* Only effective when type="number".
|
|
41
|
+
* Accepts a string or null; will be parsed as a number internally.
|
|
42
|
+
* @example "5"
|
|
43
|
+
*/
|
|
44
|
+
count: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number to display in the badge.
|
|
47
|
+
* If the count exceeds this value, it will display as "maxCount+", e.g., "99+".
|
|
48
|
+
* Only effective when type="number".
|
|
49
|
+
* @example "99"
|
|
50
|
+
*/
|
|
51
|
+
maxCount: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to hide the badge.
|
|
54
|
+
* - true: The badge is not displayed (slot content remains visible).
|
|
55
|
+
* - false: The badge is displayed normally.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
invisible: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Badge color.
|
|
61
|
+
* Supports predefined semantic color tokens (danger, alarm, warning, success, information).
|
|
62
|
+
* @default "danger"
|
|
63
|
+
*/
|
|
64
|
+
color: "danger" | "alarm" | "warning" | "success" | "information";
|
|
65
|
+
/**
|
|
66
|
+
* Computes the actual number to display in the badge.
|
|
67
|
+
* - If count is null or invalid, displays "0".
|
|
68
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
69
|
+
* - Otherwise, displays the actual number.
|
|
70
|
+
*/
|
|
71
|
+
private get _count();
|
|
72
|
+
/**
|
|
73
|
+
* Renders the badge component.
|
|
74
|
+
* - Renders a small dot when type="dot".
|
|
75
|
+
* - Renders a number when type="number" and count > 0.
|
|
76
|
+
* - Does not render the badge if invisible=true.
|
|
77
|
+
* - The slot wraps the icon button.
|
|
78
|
+
*/
|
|
79
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
"daikin-badge": DaikinBadge;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-badge.cjs";
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
require("../../base/dds-form-element.cjs");
|
|
6
7
|
const decorators = require("../../base/decorators.cjs");
|
|
7
8
|
require("../../base/define.cjs");
|
|
8
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -4,6 +4,7 @@ const lit = require("lit");
|
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
6
6
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
require("../../base/dds-form-element.cjs");
|
|
7
8
|
const decorators = require("../../base/decorators.cjs");
|
|
8
9
|
require("../../base/define.cjs");
|
|
9
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
@@ -5,9 +5,9 @@ const lit = require("lit");
|
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
7
|
require("../../base/dds-element.cjs");
|
|
8
|
+
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
8
9
|
const decorators = require("../../base/decorators.cjs");
|
|
9
10
|
require("../../base/define.cjs");
|
|
10
|
-
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
11
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DDSFormSubmitElement } from "../../base/
|
|
1
|
+
import { DDSFormSubmitElement } from "../../base/index.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "danger" | "default" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -5,16 +5,20 @@ const lit = require("lit");
|
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
7
|
const repeat_js = require("lit/directives/repeat.js");
|
|
8
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
|
+
require("../../base/dds-form-element.cjs");
|
|
10
|
+
const decorators = require("../../base/decorators.cjs");
|
|
11
|
+
require("../../base/define.cjs");
|
|
8
12
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
13
|
const calendarCommon = require("../../utils/calendar-common.cjs");
|
|
10
14
|
const scroller = require("../../utils/scroller.cjs");
|
|
11
15
|
require("../icon-button/daikin-icon-button.cjs");
|
|
12
16
|
var __defProp = Object.defineProperty;
|
|
13
17
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __decorateClass = (
|
|
18
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
15
19
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
-
for (var i =
|
|
17
|
-
if (decorator =
|
|
20
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
21
|
+
if (decorator = decorators2[i])
|
|
18
22
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
23
|
if (kind && result) __defProp(target, key, result);
|
|
20
24
|
return result;
|
|
@@ -119,7 +123,7 @@ function getNextFocusDateByKey(date, event) {
|
|
|
119
123
|
}
|
|
120
124
|
return null;
|
|
121
125
|
}
|
|
122
|
-
exports.DaikinCalendar = class DaikinCalendar extends
|
|
126
|
+
exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
123
127
|
constructor() {
|
|
124
128
|
super(...arguments);
|
|
125
129
|
this.value = null;
|
|
@@ -127,6 +131,7 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
127
131
|
this.max = "2099-12-31";
|
|
128
132
|
this.defaultValue = null;
|
|
129
133
|
this.view = "day";
|
|
134
|
+
this._lastFocusedDate = null;
|
|
130
135
|
this._dateToBeFocused = null;
|
|
131
136
|
this._viewDate = getToday();
|
|
132
137
|
}
|
|
@@ -173,6 +178,7 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
173
178
|
}
|
|
174
179
|
_navigateMonth(date, offset) {
|
|
175
180
|
this._viewDate = calendarCommon.getDateByMonthOffsetClamped(date, offset);
|
|
181
|
+
this._lastFocusedDate = null;
|
|
176
182
|
}
|
|
177
183
|
_handleCalendarClick(date) {
|
|
178
184
|
this.value = calendarCommon.formatDateForProperty(date);
|
|
@@ -204,6 +210,7 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
204
210
|
`[data-type=day][data-date="${calendarCommon.formatDateForProperty(dateToBeFocused)}"]`
|
|
205
211
|
);
|
|
206
212
|
if (dateButton && calendarCommon.isSameYearMonth(dateToBeFocused, focusedDate)) {
|
|
213
|
+
this._lastFocusedDate = dateToBeFocused;
|
|
207
214
|
dateButton.focus();
|
|
208
215
|
} else {
|
|
209
216
|
this._dateToBeFocused = dateToBeFocused;
|
|
@@ -359,7 +366,19 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
359
366
|
viewDate.getUTCFullYear(),
|
|
360
367
|
viewDate.getUTCMonth()
|
|
361
368
|
);
|
|
362
|
-
const focusable =
|
|
369
|
+
const focusable = (
|
|
370
|
+
// If the last focused date is in the same month as the view date, use it as the focusable date.
|
|
371
|
+
this._lastFocusedDate && calendarCommon.isSameYearMonth(viewDate, this._lastFocusedDate) ? this._lastFocusedDate : (
|
|
372
|
+
// If the value is in the same month as the view date, use it as the focusable date.
|
|
373
|
+
value && calendarCommon.isSameYearMonth(viewDate, value) ? value : (
|
|
374
|
+
// If today's date is in the same month as the view date, use it as the focusable date.
|
|
375
|
+
calendarCommon.isSameYearMonth(viewDate, today) ? today : (
|
|
376
|
+
// Otherwise, use the first day of the month (clamped).
|
|
377
|
+
calendarCommon.clampDate(calendarCommon.toFirstDayOfMonth(viewDate), min, max)
|
|
378
|
+
)
|
|
379
|
+
)
|
|
380
|
+
)
|
|
381
|
+
);
|
|
363
382
|
return lit.html`<div class="flex flex-col gap-2 w-full h-72" role="grid">
|
|
364
383
|
<div class="flex gap-1 flex-wrap w-full px-4" role="row">
|
|
365
384
|
${repeat_js.repeat(
|
|
@@ -394,9 +413,7 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
394
413
|
})}
|
|
395
414
|
role="gridcell"
|
|
396
415
|
?disabled=${calendarCommon.isDateOutOfRange(date, min, max)}
|
|
397
|
-
tabindex=${
|
|
398
|
-
focusable.getTime() != date.getTime() ? -1 : void 0
|
|
399
|
-
)}
|
|
416
|
+
tabindex=${date.getTime() === focusable.getTime() ? lit.nothing : -1}
|
|
400
417
|
aria-current=${date.getTime() === today.getTime() ? "date" : lit.nothing}
|
|
401
418
|
aria-selected=${date.getTime() === (value == null ? void 0 : value.getTime())}
|
|
402
419
|
data-type="day"
|
|
@@ -494,11 +511,14 @@ exports.DaikinCalendar = class DaikinCalendar extends lit.LitElement {
|
|
|
494
511
|
}
|
|
495
512
|
}
|
|
496
513
|
updated(changedProperties) {
|
|
497
|
-
if (
|
|
514
|
+
if (this._dateToBeFocused != null) {
|
|
498
515
|
const dateButton = this.renderRoot.querySelector(
|
|
499
516
|
`[data-type=day][data-date="${calendarCommon.formatDateForProperty(this._dateToBeFocused)}"]`
|
|
500
517
|
);
|
|
501
|
-
|
|
518
|
+
if (dateButton) {
|
|
519
|
+
this._lastFocusedDate = this._dateToBeFocused;
|
|
520
|
+
dateButton.focus();
|
|
521
|
+
}
|
|
502
522
|
this._dateToBeFocused = null;
|
|
503
523
|
}
|
|
504
524
|
if (changedProperties.get("view") != null) {
|
|
@@ -541,9 +561,15 @@ __decorateClass([
|
|
|
541
561
|
__decorateClass([
|
|
542
562
|
decorators_js.property({ type: String, attribute: false })
|
|
543
563
|
], exports.DaikinCalendar.prototype, "view", 2);
|
|
564
|
+
__decorateClass([
|
|
565
|
+
decorators_js.state()
|
|
566
|
+
], exports.DaikinCalendar.prototype, "_lastFocusedDate", 2);
|
|
567
|
+
__decorateClass([
|
|
568
|
+
decorators_js.state()
|
|
569
|
+
], exports.DaikinCalendar.prototype, "_dateToBeFocused", 2);
|
|
544
570
|
__decorateClass([
|
|
545
571
|
decorators_js.state()
|
|
546
572
|
], exports.DaikinCalendar.prototype, "_viewDate", 2);
|
|
547
573
|
exports.DaikinCalendar = __decorateClass([
|
|
548
|
-
|
|
574
|
+
decorators.ddsElement("daikin-calendar")
|
|
549
575
|
], exports.DaikinCalendar);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* The calendar component provides calendar elements. It has a function for selecting dates, and is also used in `daikin-date-picker`.
|
|
4
5
|
*
|
|
@@ -15,7 +16,7 @@ import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
|
15
16
|
* <daikin-calendar></daikin-calendar>
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
|
-
export declare class DaikinCalendar extends
|
|
19
|
+
export declare class DaikinCalendar extends DDSElement {
|
|
19
20
|
static readonly styles: import('lit').CSSResult;
|
|
20
21
|
/**
|
|
21
22
|
* The current value of the input, submitted as a name/value pair with form data.
|
|
@@ -45,6 +46,15 @@ export declare class DaikinCalendar extends LitElement {
|
|
|
45
46
|
* Intended for use only by `daikin-date-picker`.
|
|
46
47
|
*/
|
|
47
48
|
view: "year" | "month" | "day";
|
|
49
|
+
/**
|
|
50
|
+
* The date that was last focused.
|
|
51
|
+
* Used to preserve focus when tabbing out and back in.
|
|
52
|
+
*/
|
|
53
|
+
private _lastFocusedDate;
|
|
54
|
+
/**
|
|
55
|
+
* The date to be focused.
|
|
56
|
+
* Used to set focus on a date that is not in the current view (year and month).
|
|
57
|
+
*/
|
|
48
58
|
private _dateToBeFocused;
|
|
49
59
|
private get _value();
|
|
50
60
|
private get _min();
|
|
@@ -4,6 +4,7 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
require("../../base/dds-form-element.cjs");
|
|
7
8
|
const decorators = require("../../base/decorators.cjs");
|
|
8
9
|
require("../../base/define.cjs");
|
|
9
10
|
const tailwind = require("../../tailwind.css.cjs");
|