@daikin-oss/design-system-web-components 1.3.2 → 1.4.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +217 -0
- package/dist/cjs/base/dds-element.cjs +82 -1
- package/dist/cjs/base/dds-element.d.cts +40 -0
- package/dist/cjs/base/dds-form-element.cjs +15 -6
- package/dist/cjs/base/dds-form-element.d.cts +2 -2
- package/dist/cjs/base/dds-property.cjs +11 -0
- package/dist/cjs/base/dds-property.d.cts +92 -0
- package/dist/cjs/base/index.cjs +3 -0
- package/dist/cjs/base/index.d.cts +1 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +3 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -7
- package/dist/cjs/components/avatar/daikin-avatar.cjs +20 -15
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -1
- package/dist/cjs/components/badge/daikin-badge.cjs +154 -0
- package/dist/cjs/components/badge/daikin-badge.d.cts +91 -0
- package/dist/cjs/components/badge/index.cjs +7 -0
- package/dist/cjs/components/badge/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
- package/dist/cjs/components/button/daikin-button.cjs +57 -16
- package/dist/cjs/components/button/daikin-button.d.cts +18 -2
- package/dist/cjs/components/calendar/daikin-calendar.cjs +36 -15
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +14 -3
- package/dist/cjs/components/card/daikin-card.cjs +2 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +2 -1
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -2
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +24 -10
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +12 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +2 -1
- package/dist/cjs/components/combobox/daikin-combobox.cjs +34 -25
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +64 -26
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +18 -4
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +17 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
- package/dist/cjs/components/icon/daikin-icon.cjs +24 -11
- package/dist/cjs/components/icon/daikin-icon.d.cts +96 -39
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +12 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +58 -15
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +17 -3
- package/dist/cjs/components/index.cjs +10 -0
- package/dist/cjs/components/index.d.cts +2 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +112 -11
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +8 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +29 -13
- package/dist/cjs/components/link/daikin-link.cjs +28 -8
- package/dist/cjs/components/link/daikin-link.d.cts +11 -0
- package/dist/cjs/components/list/daikin-list.cjs +6 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +19 -8
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +4 -0
- package/dist/cjs/components/loading/daikin-loading.cjs +8 -3
- package/dist/cjs/components/logo/daikin-logo.cjs +18 -10
- package/dist/cjs/components/logo/daikin-logo.d.cts +4 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +79 -28
- package/dist/cjs/components/menu/daikin-menu.d.cts +29 -2
- package/dist/cjs/components/modal/daikin-modal.cjs +11 -6
- package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +3 -3
- package/dist/cjs/components/pagination/daikin-pagination.cjs +6 -5
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +21 -9
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +4 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +14 -9
- package/dist/cjs/components/radio/daikin-radio.d.cts +9 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +15 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +3 -1
- package/dist/cjs/components/select/daikin-select.cjs +4 -3
- package/dist/cjs/components/slider/daikin-slider.cjs +11 -9
- package/dist/cjs/components/slider/daikin-slider.d.cts +15 -0
- package/dist/cjs/components/status-message/daikin-status-message.cjs +123 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +55 -0
- package/dist/cjs/components/status-message/index.cjs +7 -0
- package/dist/cjs/components/status-message/index.d.cts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +10 -4
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +4 -4
- package/dist/cjs/components/table/daikin-table.cjs +11 -10
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +12 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +5 -3
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +9 -3
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +15 -12
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +9 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +28 -31
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +11 -2
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +40 -19
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +23 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +118 -13
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +15 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +7 -6
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +7 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +37 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -1
- package/dist/cjs/components/tree/daikin-tree.cjs +3 -2
- package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +8 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -0
- package/dist/cjs/utils/calendar-common.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +0 -94
- package/dist/cjs/utils/notification-common.d.cts +0 -13
- package/dist/cjs-dev/base/dds-element.cjs +92 -1
- package/dist/cjs-dev/base/dds-element.d.cts +40 -0
- package/dist/cjs-dev/base/dds-form-element.cjs +15 -6
- package/dist/cjs-dev/base/dds-form-element.d.cts +2 -2
- package/dist/cjs-dev/base/dds-property.cjs +11 -0
- package/dist/cjs-dev/base/dds-property.d.cts +92 -0
- package/dist/cjs-dev/base/index.cjs +3 -0
- package/dist/cjs-dev/base/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +3 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -7
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +20 -15
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -1
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +154 -0
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +91 -0
- package/dist/cjs-dev/components/badge/index.cjs +7 -0
- package/dist/cjs-dev/components/badge/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +33 -7
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +38 -6
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +52 -19
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +3 -1
- package/dist/cjs-dev/components/button/daikin-button.cjs +57 -16
- package/dist/cjs-dev/components/button/daikin-button.d.cts +18 -2
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +36 -15
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +14 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +2 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +2 -1
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -2
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +24 -10
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +12 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +12 -3
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -1
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +34 -25
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +9 -2
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +64 -26
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +18 -4
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +17 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +5 -4
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +24 -11
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +96 -39
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +12 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +58 -15
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +17 -3
- package/dist/cjs-dev/components/index.cjs +10 -0
- package/dist/cjs-dev/components/index.d.cts +2 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +112 -11
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +8 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +29 -13
- package/dist/cjs-dev/components/link/daikin-link.cjs +28 -8
- package/dist/cjs-dev/components/link/daikin-link.d.cts +11 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +6 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +19 -8
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +4 -0
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +8 -3
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +18 -10
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +4 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +79 -28
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +29 -2
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +11 -6
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +3 -3
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +6 -5
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +21 -9
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +4 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +2 -1
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +13 -8
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +2 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -9
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +9 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +15 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +3 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +4 -3
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +11 -9
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +15 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +123 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +55 -0
- package/dist/cjs-dev/components/status-message/index.cjs +7 -0
- package/dist/cjs-dev/components/status-message/index.d.cts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +10 -4
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +4 -4
- package/dist/cjs-dev/components/table/daikin-table.cjs +11 -10
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +12 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +5 -3
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +13 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +9 -3
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +15 -12
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +9 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +28 -31
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +11 -2
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +22 -19
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +9 -2
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +40 -19
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +23 -1
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +118 -13
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +15 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +14 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +3 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +7 -6
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +7 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +37 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -1
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +3 -2
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +6 -5
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +8 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +6 -5
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs-dev/index.cjs +10 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +0 -94
- package/dist/cjs-dev/utils/notification-common.d.cts +0 -13
- package/dist/es/base/dds-element.d.ts +40 -0
- package/dist/es/base/dds-element.js +82 -1
- package/dist/es/base/dds-form-element.d.ts +2 -2
- package/dist/es/base/dds-form-element.js +15 -6
- package/dist/es/base/dds-property.d.ts +92 -0
- package/dist/es/base/dds-property.js +11 -0
- package/dist/es/base/index.d.ts +1 -0
- package/dist/es/base/index.js +4 -1
- package/dist/es/components/accordion/daikin-accordion.js +2 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -5
- package/dist/es/components/avatar/daikin-avatar.d.ts +3 -1
- package/dist/es/components/avatar/daikin-avatar.js +18 -13
- package/dist/es/components/badge/daikin-badge.d.ts +91 -0
- package/dist/es/components/badge/daikin-badge.js +155 -0
- package/dist/es/components/badge/index.d.ts +1 -0
- package/dist/es/components/badge/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +33 -7
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
- package/dist/es/components/button/daikin-button.d.ts +18 -2
- package/dist/es/components/button/daikin-button.js +54 -13
- package/dist/es/components/calendar/daikin-calendar.d.ts +14 -3
- package/dist/es/components/calendar/daikin-calendar.js +36 -15
- package/dist/es/components/card/daikin-card.js +1 -1
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es/components/card-header/daikin-card-header.js +1 -0
- package/dist/es/components/carousel/daikin-carousel.js +2 -1
- package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -1
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +12 -1
- package/dist/es/components/checkbox/daikin-checkbox.js +22 -8
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +11 -2
- package/dist/es/components/chip/daikin-chip.js +2 -1
- package/dist/es/components/combobox/daikin-combobox.d.ts +9 -2
- package/dist/es/components/combobox/daikin-combobox.js +29 -20
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +18 -4
- package/dist/es/components/date-picker/daikin-date-picker.js +61 -23
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +12 -14
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es/components/icon/daikin-icon.d.ts +96 -39
- package/dist/es/components/icon/daikin-icon.js +24 -11
- package/dist/es/components/icon/icons.json.d.ts +12 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +17 -3
- package/dist/es/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es/components/index.d.ts +2 -0
- package/dist/es/components/index.js +4 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +8 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es/components/input-group/daikin-input-group.js +23 -7
- package/dist/es/components/link/daikin-link.d.ts +11 -0
- package/dist/es/components/link/daikin-link.js +24 -4
- package/dist/es/components/list/daikin-list.js +6 -2
- package/dist/es/components/list-item/daikin-list-item.d.ts +4 -0
- package/dist/es/components/list-item/daikin-list-item.js +17 -6
- package/dist/es/components/loading/daikin-loading.js +7 -2
- package/dist/es/components/logo/daikin-logo.d.ts +4 -0
- package/dist/es/components/logo/daikin-logo.js +17 -9
- package/dist/es/components/menu/daikin-menu.d.ts +29 -2
- package/dist/es/components/menu/daikin-menu.js +79 -28
- package/dist/es/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es/components/modal/daikin-modal.js +8 -3
- package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +2 -2
- package/dist/es/components/pagination/daikin-pagination.js +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +4 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +19 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +2 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
- package/dist/es/components/radio/daikin-radio.d.ts +9 -0
- package/dist/es/components/radio/daikin-radio.js +11 -6
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +3 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +14 -7
- package/dist/es/components/select/daikin-select.js +2 -1
- package/dist/es/components/slider/daikin-slider.d.ts +15 -0
- package/dist/es/components/slider/daikin-slider.js +11 -9
- package/dist/es/components/status-message/daikin-status-message.d.ts +55 -0
- package/dist/es/components/status-message/daikin-status-message.js +124 -0
- package/dist/es/components/status-message/index.d.ts +1 -0
- package/dist/es/components/status-message/index.js +4 -0
- package/dist/es/components/tab/daikin-tab.js +9 -3
- package/dist/es/components/tab-panels/daikin-tab-panels.js +2 -2
- package/dist/es/components/table/daikin-table.js +4 -3
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +5 -3
- package/dist/es/components/table-cell/daikin-table-cell.js +12 -7
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -3
- package/dist/es/components/tabs/daikin-tabs.d.ts +2 -0
- package/dist/es/components/tabs/daikin-tabs.js +10 -4
- package/dist/es/components/text-area/daikin-text-area.d.ts +9 -2
- package/dist/es/components/text-area/daikin-text-area.js +11 -8
- package/dist/es/components/text-field/daikin-text-field.d.ts +11 -2
- package/dist/es/components/text-field/daikin-text-field.js +18 -21
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +15 -12
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +23 -1
- package/dist/es/components/time-picker/daikin-time-picker.js +38 -17
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +15 -2
- package/dist/es/components/toast-notification/daikin-toast-notification.js +112 -7
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
- package/dist/es/components/toggle/daikin-toggle.d.ts +7 -0
- package/dist/es/components/toggle/daikin-toggle.js +5 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +36 -11
- package/dist/es/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es/components/tree/daikin-tree.js +2 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +8 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es/index.js +4 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +7 -0
- package/dist/es/utils/calendar-common.js +6 -0
- package/dist/es/utils/notification-common.d.ts +0 -13
- package/dist/es/utils/notification-common.js +0 -94
- package/dist/es-dev/base/dds-element.d.ts +40 -0
- package/dist/es-dev/base/dds-element.js +92 -1
- package/dist/es-dev/base/dds-form-element.d.ts +2 -2
- package/dist/es-dev/base/dds-form-element.js +15 -6
- package/dist/es-dev/base/dds-property.d.ts +92 -0
- package/dist/es-dev/base/dds-property.js +11 -0
- package/dist/es-dev/base/index.d.ts +1 -0
- package/dist/es-dev/base/index.js +4 -1
- package/dist/es-dev/components/accordion/daikin-accordion.js +2 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -5
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -1
- package/dist/es-dev/components/avatar/daikin-avatar.js +18 -13
- package/dist/es-dev/components/badge/daikin-badge.d.ts +91 -0
- package/dist/es-dev/components/badge/daikin-badge.js +155 -0
- package/dist/es-dev/components/badge/index.d.ts +1 -0
- package/dist/es-dev/components/badge/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +38 -6
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +33 -7
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +3 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +48 -15
- package/dist/es-dev/components/button/daikin-button.d.ts +18 -2
- package/dist/es-dev/components/button/daikin-button.js +54 -13
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +14 -3
- package/dist/es-dev/components/calendar/daikin-calendar.js +36 -15
- package/dist/es-dev/components/card/daikin-card.js +1 -1
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +2 -1
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +12 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +22 -8
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +11 -2
- package/dist/es-dev/components/chip/daikin-chip.js +2 -1
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +9 -2
- package/dist/es-dev/components/combobox/daikin-combobox.js +29 -20
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +18 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +61 -23
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +12 -14
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +2 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +96 -39
- package/dist/es-dev/components/icon/daikin-icon.js +24 -11
- package/dist/es-dev/components/icon/icons.json.d.ts +12 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +17 -3
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +54 -11
- package/dist/es-dev/components/index.d.ts +2 -0
- package/dist/es-dev/components/index.js +4 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +8 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +109 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +23 -7
- package/dist/es-dev/components/link/daikin-link.d.ts +11 -0
- package/dist/es-dev/components/link/daikin-link.js +24 -4
- package/dist/es-dev/components/list/daikin-list.js +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +4 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +17 -6
- package/dist/es-dev/components/loading/daikin-loading.js +7 -2
- package/dist/es-dev/components/logo/daikin-logo.d.ts +4 -0
- package/dist/es-dev/components/logo/daikin-logo.js +17 -9
- package/dist/es-dev/components/menu/daikin-menu.d.ts +29 -2
- package/dist/es-dev/components/menu/daikin-menu.js +79 -28
- package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es-dev/components/modal/daikin-modal.js +8 -3
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +2 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +4 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +19 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +2 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +13 -8
- package/dist/es-dev/components/radio/daikin-radio.d.ts +9 -0
- package/dist/es-dev/components/radio/daikin-radio.js +11 -6
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +3 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +14 -7
- package/dist/es-dev/components/select/daikin-select.js +2 -1
- package/dist/es-dev/components/slider/daikin-slider.d.ts +15 -0
- package/dist/es-dev/components/slider/daikin-slider.js +11 -9
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +55 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +124 -0
- package/dist/es-dev/components/status-message/index.d.ts +1 -0
- package/dist/es-dev/components/status-message/index.js +4 -0
- package/dist/es-dev/components/tab/daikin-tab.js +9 -3
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +2 -2
- package/dist/es-dev/components/table/daikin-table.js +4 -3
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +5 -3
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +12 -7
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -3
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -0
- package/dist/es-dev/components/tabs/daikin-tabs.js +10 -4
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +9 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +11 -8
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +11 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +18 -21
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +9 -2
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +15 -12
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +23 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +38 -17
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +15 -2
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +112 -7
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +3 -1
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +15 -3
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +7 -0
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +36 -11
- package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es-dev/components/tree/daikin-tree.js +2 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +8 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +2 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +2 -1
- package/dist/es-dev/index.js +4 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +7 -0
- package/dist/es-dev/utils/calendar-common.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +0 -13
- package/dist/es-dev/utils/notification-common.js +0 -94
- package/icons/download.svg +3 -0
- package/icons/neutral.svg +3 -0
- package/icons/notification.svg +3 -0
- package/package.json +18 -17
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import "../../base/dds-element.js";
|
|
6
6
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
7
|
+
import { property } 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";
|
|
@@ -69,7 +70,6 @@ const cvaTextArea = cva(
|
|
|
69
70
|
let DaikinTextArea = class extends DDSFormElement {
|
|
70
71
|
constructor() {
|
|
71
72
|
super(...arguments);
|
|
72
|
-
this.placeholder = null;
|
|
73
73
|
this.disabled = false;
|
|
74
74
|
this.readonly = false;
|
|
75
75
|
this.required = false;
|
|
@@ -93,10 +93,9 @@ let DaikinTextArea = class extends DDSFormElement {
|
|
|
93
93
|
error: !this.disabled && this.error,
|
|
94
94
|
resize: this.resizable
|
|
95
95
|
})}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
autocomplete=${
|
|
99
|
-
ifDefined(this.autocomplete)}
|
|
96
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
97
|
+
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
98
|
+
autocomplete=${ifDefined(this.getBackingProperty("autocomplete"))}
|
|
100
99
|
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
101
100
|
ifDefined(this._label)}
|
|
102
101
|
.value=${this.value}
|
|
@@ -136,7 +135,7 @@ DaikinTextArea.styles = css`
|
|
|
136
135
|
}
|
|
137
136
|
`;
|
|
138
137
|
__decorateClass([
|
|
139
|
-
property({ type: String, reflect: true })
|
|
138
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
140
139
|
], DaikinTextArea.prototype, "placeholder", 2);
|
|
141
140
|
__decorateClass([
|
|
142
141
|
property({ type: Boolean, reflect: true })
|
|
@@ -151,7 +150,11 @@ __decorateClass([
|
|
|
151
150
|
property({ type: Boolean, reflect: true })
|
|
152
151
|
], DaikinTextArea.prototype, "error", 2);
|
|
153
152
|
__decorateClass([
|
|
154
|
-
property({
|
|
153
|
+
property({
|
|
154
|
+
type: String,
|
|
155
|
+
reflect: true,
|
|
156
|
+
fallbackValue: ""
|
|
157
|
+
})
|
|
155
158
|
], DaikinTextArea.prototype, "autocomplete", 2);
|
|
156
159
|
__decorateClass([
|
|
157
160
|
property({ type: Boolean, reflect: true })
|
|
@@ -10,6 +10,13 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
10
10
|
* - `daikin-text-field` (can be used solely)
|
|
11
11
|
* - `daikin-input-group` > `daikin-text-field`
|
|
12
12
|
*
|
|
13
|
+
* @attr form - The form the component belongs to.
|
|
14
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
15
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
16
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
17
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
18
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
19
|
+
*
|
|
13
20
|
* @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>` element.
|
|
14
21
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
15
22
|
* @fires toggle - Emitted when the user toggles the password mask.
|
|
@@ -50,12 +57,14 @@ export declare class DaikinTextField extends DDSFormElement {
|
|
|
50
57
|
* - `"email"`: Email input with optional left and right icon slots.
|
|
51
58
|
* - `"tel"`: Telephone input with optional left and right icon slots.
|
|
52
59
|
* - `"search"`: Search input with built-in search icon and clear button when value is present.
|
|
60
|
+
*
|
|
61
|
+
* @default "text"
|
|
53
62
|
*/
|
|
54
63
|
type: "text" | "number" | "password" | "email" | "tel" | "search";
|
|
55
64
|
/**
|
|
56
65
|
* Placeholder text.
|
|
57
66
|
*/
|
|
58
|
-
placeholder: string
|
|
67
|
+
placeholder: string;
|
|
59
68
|
/**
|
|
60
69
|
* Whether the text field is readonly.
|
|
61
70
|
*/
|
|
@@ -103,7 +112,7 @@ export declare class DaikinTextField extends DDSFormElement {
|
|
|
103
112
|
/**
|
|
104
113
|
* Value of `autocomplete` attribute of the internal `<input>`.
|
|
105
114
|
*/
|
|
106
|
-
autocomplete
|
|
115
|
+
autocomplete: HTMLInputElement["autocomplete"];
|
|
107
116
|
/**
|
|
108
117
|
* When `type="password"`, whether to display the password with a black dot or as text.
|
|
109
118
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html, nothing } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import "../../base/dds-element.js";
|
|
6
6
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
7
|
+
import { property } 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";
|
|
@@ -126,8 +127,6 @@ const cvaShowPasswordIcon = cva(["icon-size-6"], {
|
|
|
126
127
|
let DaikinTextField = class extends DDSFormElement {
|
|
127
128
|
constructor() {
|
|
128
129
|
super(...arguments);
|
|
129
|
-
this.type = "text";
|
|
130
|
-
this.placeholder = null;
|
|
131
130
|
this.readonly = false;
|
|
132
131
|
this.disabled = false;
|
|
133
132
|
this.required = false;
|
|
@@ -337,29 +336,23 @@ let DaikinTextField = class extends DDSFormElement {
|
|
|
337
336
|
role=${ifDefined(role)}
|
|
338
337
|
type=${type}
|
|
339
338
|
inputmode=${ifDefined(inputMode)}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
minlength=${ifDefined(this.minlength
|
|
343
|
-
maxlength=${ifDefined(this.maxlength
|
|
339
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
340
|
+
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
341
|
+
minlength=${ifDefined(this.minlength)}
|
|
342
|
+
maxlength=${ifDefined(this.maxlength)}
|
|
344
343
|
step=${ifDefined(
|
|
345
344
|
this.type === "number" && this.step != null ? (
|
|
346
345
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
347
346
|
this.step
|
|
348
347
|
) : void 0
|
|
349
348
|
)}
|
|
350
|
-
pattern=${ifDefined(this.pattern
|
|
349
|
+
pattern=${ifDefined(this.pattern)}
|
|
351
350
|
autocomplete=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
352
351
|
ifDefined(this.autocomplete)}
|
|
353
|
-
aria-label=${ifDefined(this._label
|
|
354
|
-
aria-valuemin=${
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
aria-valuemax=${ifDefined(
|
|
358
|
-
this.type === "number" && this.max != null ? this.max : void 0
|
|
359
|
-
)}
|
|
360
|
-
aria-valuenow=${ifDefined(
|
|
361
|
-
this.type === "number" ? this.value : void 0
|
|
362
|
-
)}
|
|
352
|
+
aria-label=${ifDefined(this._label)}
|
|
353
|
+
aria-valuemin=${this.type === "number" && this.min != null ? this.min : nothing}
|
|
354
|
+
aria-valuemax=${this.type === "number" && this.max != null ? this.max : nothing}
|
|
355
|
+
aria-valuenow=${this.type === "number" ? this.value : nothing}
|
|
363
356
|
.value=${this.value}
|
|
364
357
|
?disabled=${this.disabled}
|
|
365
358
|
?readonly=${this.readonly}
|
|
@@ -407,10 +400,10 @@ DaikinTextField.styles = css`
|
|
|
407
400
|
}
|
|
408
401
|
`;
|
|
409
402
|
__decorateClass([
|
|
410
|
-
property({ type: String })
|
|
403
|
+
property({ type: String, reflect: true, fallbackValue: "text" })
|
|
411
404
|
], DaikinTextField.prototype, "type", 2);
|
|
412
405
|
__decorateClass([
|
|
413
|
-
property({ type: String })
|
|
406
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
414
407
|
], DaikinTextField.prototype, "placeholder", 2);
|
|
415
408
|
__decorateClass([
|
|
416
409
|
property({ type: Boolean, reflect: true })
|
|
@@ -443,7 +436,11 @@ __decorateClass([
|
|
|
443
436
|
property({ type: String, reflect: true })
|
|
444
437
|
], DaikinTextField.prototype, "pattern", 2);
|
|
445
438
|
__decorateClass([
|
|
446
|
-
property({
|
|
439
|
+
property({
|
|
440
|
+
type: String,
|
|
441
|
+
reflect: true,
|
|
442
|
+
fallbackValue: ""
|
|
443
|
+
})
|
|
447
444
|
], DaikinTextField.prototype, "autocomplete", 2);
|
|
448
445
|
__decorateClass([
|
|
449
446
|
property({ type: Boolean, reflect: true, attribute: "show-password" })
|
|
@@ -12,6 +12,13 @@ export type { FactoryOpts, InputMask };
|
|
|
12
12
|
* - `daikin-text-masked-field` (can be used solely)
|
|
13
13
|
* - `daikin-input-group` > `daikin-text-masked-field`
|
|
14
14
|
*
|
|
15
|
+
* @attr form - The form the component belongs to.
|
|
16
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
17
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
18
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
19
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
20
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
21
|
+
*
|
|
15
22
|
* @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>` element.
|
|
16
23
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
17
24
|
*
|
|
@@ -40,7 +47,7 @@ export declare class DaikinTextMaskedField extends DDSFormElement {
|
|
|
40
47
|
/**
|
|
41
48
|
* Placeholder text.
|
|
42
49
|
*/
|
|
43
|
-
placeholder: string
|
|
50
|
+
placeholder: string;
|
|
44
51
|
/**
|
|
45
52
|
* Whether the text masked field is readonly.
|
|
46
53
|
*/
|
|
@@ -97,7 +104,7 @@ export declare class DaikinTextMaskedField extends DDSFormElement {
|
|
|
97
104
|
/**
|
|
98
105
|
* Value of `autocomplete` attribute of the internal `<input>`.
|
|
99
106
|
*/
|
|
100
|
-
autocomplete
|
|
107
|
+
autocomplete: HTMLInputElement["autocomplete"];
|
|
101
108
|
private _unmaskedValue;
|
|
102
109
|
/**
|
|
103
110
|
* The label text used as the value of aria-label.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import IMask from "imask";
|
|
3
3
|
import { unsafeCSS, css, html } from "lit";
|
|
4
|
-
import {
|
|
4
|
+
import { state } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.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 tailwindStyles from "../../tailwind.css.js";
|
|
@@ -90,7 +91,6 @@ const cvaIcon = cva(
|
|
|
90
91
|
let DaikinTextMaskedField = class extends DDSFormElement {
|
|
91
92
|
constructor() {
|
|
92
93
|
super(...arguments);
|
|
93
|
-
this.placeholder = null;
|
|
94
94
|
this.readonly = false;
|
|
95
95
|
this.disabled = false;
|
|
96
96
|
this.required = false;
|
|
@@ -205,14 +205,13 @@ let DaikinTextMaskedField = class extends DDSFormElement {
|
|
|
205
205
|
rightIcon
|
|
206
206
|
})}
|
|
207
207
|
type="text"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
minlength=${ifDefined(this.minlength
|
|
211
|
-
maxlength=${ifDefined(this.maxlength
|
|
212
|
-
pattern=${ifDefined(this.pattern
|
|
213
|
-
autocomplete=${
|
|
214
|
-
|
|
215
|
-
aria-label=${ifDefined(this._label ?? void 0)}
|
|
208
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
209
|
+
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
210
|
+
minlength=${ifDefined(this.minlength)}
|
|
211
|
+
maxlength=${ifDefined(this.maxlength)}
|
|
212
|
+
pattern=${ifDefined(this.pattern)}
|
|
213
|
+
autocomplete=${ifDefined(this.getBackingProperty("autocomplete"))}
|
|
214
|
+
aria-label=${ifDefined(this._label)}
|
|
216
215
|
.value=${this.value}
|
|
217
216
|
?data-empty=${!this._unmaskedValue}
|
|
218
217
|
?disabled=${this.disabled}
|
|
@@ -264,7 +263,7 @@ DaikinTextMaskedField.styles = css`
|
|
|
264
263
|
}
|
|
265
264
|
`;
|
|
266
265
|
__decorateClass([
|
|
267
|
-
property({ type: String })
|
|
266
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
268
267
|
], DaikinTextMaskedField.prototype, "placeholder", 2);
|
|
269
268
|
__decorateClass([
|
|
270
269
|
property({ type: Boolean, reflect: true })
|
|
@@ -291,7 +290,11 @@ __decorateClass([
|
|
|
291
290
|
property({ attribute: false })
|
|
292
291
|
], DaikinTextMaskedField.prototype, "mask", 2);
|
|
293
292
|
__decorateClass([
|
|
294
|
-
property({
|
|
293
|
+
property({
|
|
294
|
+
type: String,
|
|
295
|
+
reflect: true,
|
|
296
|
+
fallbackValue: ""
|
|
297
|
+
})
|
|
295
298
|
], DaikinTextMaskedField.prototype, "autocomplete", 2);
|
|
296
299
|
__decorateClass([
|
|
297
300
|
state()
|
|
@@ -68,6 +68,13 @@ export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeIte
|
|
|
68
68
|
* The time picker provides a time input field and a dropdown button for selecting AM/PM, allowing users to quickly enter a specific time in 12-hour format.
|
|
69
69
|
* Please note that while the value displayed on the UI is in 12-hour format, the value you get from the component's value property will be automatically converted to 24-hour format.
|
|
70
70
|
*
|
|
71
|
+
* @attr form - The form the component belongs to.
|
|
72
|
+
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
73
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
74
|
+
* @prop {String} formAttr - The form the component belongs to.
|
|
75
|
+
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
76
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
77
|
+
*
|
|
71
78
|
* @fires change - A custom event emitted when the value of component changed. Validation errors will not trigger this event.
|
|
72
79
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event). Triggered when user type value to input area and change the value of component. change dropdown or validation errors will not trigger this event.
|
|
73
80
|
*
|
|
@@ -85,16 +92,22 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
85
92
|
static readonly styles: import('lit').CSSResult;
|
|
86
93
|
/**
|
|
87
94
|
* Placeholder text.
|
|
95
|
+
*
|
|
96
|
+
* @default "hh:mm"
|
|
88
97
|
*/
|
|
89
|
-
placeholder: string
|
|
98
|
+
placeholder: string;
|
|
90
99
|
/**
|
|
91
100
|
* Minimum time (00:00 - 23:59). If the user's input value is less than this value, the component will display an error state.
|
|
92
101
|
* Please note that while the UI displays time in a 12-hour format (AM/PM), the component's value is stored in a 24-hour format. The `min` property must also be provided in 24-hour format.
|
|
102
|
+
*
|
|
103
|
+
* @default "00:00"
|
|
93
104
|
*/
|
|
94
105
|
min: string;
|
|
95
106
|
/**
|
|
96
107
|
* Maximum time (00:00 - 23:59). If the user's input value is more than this value, the component will display an error state.
|
|
97
108
|
* Please note that while the UI displays time in a 12-hour format (AM/PM), the component's value is stored in a 24-hour format. The `max` property must also be provided in 24-hour format.
|
|
109
|
+
*
|
|
110
|
+
* @default "23:59"
|
|
98
111
|
*/
|
|
99
112
|
max: string;
|
|
100
113
|
/**
|
|
@@ -111,12 +124,21 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
111
124
|
error: boolean;
|
|
112
125
|
/**
|
|
113
126
|
* Minutes step. Specify the step size for the minutes when using the up and down arrow keys.
|
|
127
|
+
*
|
|
128
|
+
* @default "1"
|
|
114
129
|
*/
|
|
115
130
|
minutesStep: string;
|
|
116
131
|
private _label;
|
|
117
132
|
private _inputValue;
|
|
118
133
|
private _currentSelection;
|
|
119
134
|
private _meridiem;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the value to be displayed in the input field.
|
|
137
|
+
* - If the main value is a valid 24-hour time, returns the 12-hour formatted string for UI display.
|
|
138
|
+
* - If the current input value is not valid or meridiem is empty, returns the raw input value.
|
|
139
|
+
* - Otherwise, returns null.
|
|
140
|
+
*/
|
|
141
|
+
private get _value();
|
|
120
142
|
private _timeInputElement;
|
|
121
143
|
/**
|
|
122
144
|
* Tracks the current digit index for hour input (0: first digit, 1: second digit).
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
|
-
import {
|
|
3
|
+
import { state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.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 tailwindStyles from "../../tailwind.css.js";
|
|
@@ -155,7 +156,7 @@ const cvaField = cva(
|
|
|
155
156
|
"bg-ddt-color-common-background-default",
|
|
156
157
|
"p-3",
|
|
157
158
|
"rounded",
|
|
158
|
-
"
|
|
159
|
+
"truncate",
|
|
159
160
|
"outline",
|
|
160
161
|
"outline-[--color-border]",
|
|
161
162
|
"outline-0",
|
|
@@ -188,13 +189,9 @@ const cvaField = cva(
|
|
|
188
189
|
let DaikinTimePicker = class extends DDSFormElement {
|
|
189
190
|
constructor() {
|
|
190
191
|
super(...arguments);
|
|
191
|
-
this.placeholder = "hh:mm";
|
|
192
|
-
this.min = DEFAULT_MIN_TIME;
|
|
193
|
-
this.max = DEFAULT_MAX_TIME;
|
|
194
192
|
this.disabled = false;
|
|
195
193
|
this.required = false;
|
|
196
194
|
this.error = false;
|
|
197
|
-
this.minutesStep = "1";
|
|
198
195
|
this._label = null;
|
|
199
196
|
this._inputValue = "";
|
|
200
197
|
this._currentSelection = "hour";
|
|
@@ -202,6 +199,22 @@ let DaikinTimePicker = class extends DDSFormElement {
|
|
|
202
199
|
this._timeInputElement = createRef();
|
|
203
200
|
this._hourDigitIndex = 0;
|
|
204
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Returns the value to be displayed in the input field.
|
|
204
|
+
* - If the main value is a valid 24-hour time, returns the 12-hour formatted string for UI display.
|
|
205
|
+
* - If the current input value is not valid or meridiem is empty, returns the raw input value.
|
|
206
|
+
* - Otherwise, returns null.
|
|
207
|
+
*/
|
|
208
|
+
get _value() {
|
|
209
|
+
if (isValidValueTime(this.value)) {
|
|
210
|
+
const { time } = from24HourFormat(this.value);
|
|
211
|
+
return time;
|
|
212
|
+
}
|
|
213
|
+
if (this._timeValue && !isValidValueTime(this._timeValue) || this._meridiem === "") {
|
|
214
|
+
return this._timeValue;
|
|
215
|
+
}
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
205
218
|
/**
|
|
206
219
|
* Returns the value to display in the input field (from _inputValue state).
|
|
207
220
|
*/
|
|
@@ -470,9 +483,9 @@ let DaikinTimePicker = class extends DDSFormElement {
|
|
|
470
483
|
${ref(this._timeInputElement)}
|
|
471
484
|
class=${cvaField({ error: this.error })}
|
|
472
485
|
type="text"
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
.value=${this.
|
|
486
|
+
name=${ifDefined(this.getBackingProperty("name"))}
|
|
487
|
+
placeholder=${this.placeholder}
|
|
488
|
+
.value=${this._value ?? ""}
|
|
476
489
|
?disabled=${this.disabled}
|
|
477
490
|
?required=${this.required}
|
|
478
491
|
@change=${this._handleChange}
|
|
@@ -509,10 +522,13 @@ let DaikinTimePicker = class extends DDSFormElement {
|
|
|
509
522
|
}
|
|
510
523
|
}
|
|
511
524
|
if (changedProperties.has("value")) {
|
|
512
|
-
this.
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
525
|
+
if (isValidValueTime(this.value)) {
|
|
526
|
+
this._syncMeridiemWithValue();
|
|
527
|
+
if (isTimeOutOfRange(this.value, this.min, this.max)) {
|
|
528
|
+
this.error = true;
|
|
529
|
+
} else {
|
|
530
|
+
this.error = false;
|
|
531
|
+
}
|
|
516
532
|
}
|
|
517
533
|
}
|
|
518
534
|
}
|
|
@@ -543,13 +559,13 @@ DaikinTimePicker.styles = css`
|
|
|
543
559
|
}
|
|
544
560
|
`;
|
|
545
561
|
__decorateClass([
|
|
546
|
-
property({ type: String, reflect: true })
|
|
562
|
+
property({ type: String, reflect: true, fallbackValue: "hh:mm" })
|
|
547
563
|
], DaikinTimePicker.prototype, "placeholder", 2);
|
|
548
564
|
__decorateClass([
|
|
549
|
-
property({ type: String, reflect: true })
|
|
565
|
+
property({ type: String, reflect: true, fallbackValue: DEFAULT_MIN_TIME })
|
|
550
566
|
], DaikinTimePicker.prototype, "min", 2);
|
|
551
567
|
__decorateClass([
|
|
552
|
-
property({ type: String, reflect: true })
|
|
568
|
+
property({ type: String, reflect: true, fallbackValue: DEFAULT_MAX_TIME })
|
|
553
569
|
], DaikinTimePicker.prototype, "max", 2);
|
|
554
570
|
__decorateClass([
|
|
555
571
|
property({ type: Boolean, reflect: true })
|
|
@@ -561,7 +577,12 @@ __decorateClass([
|
|
|
561
577
|
property({ type: Boolean, reflect: true })
|
|
562
578
|
], DaikinTimePicker.prototype, "error", 2);
|
|
563
579
|
__decorateClass([
|
|
564
|
-
property({
|
|
580
|
+
property({
|
|
581
|
+
type: String,
|
|
582
|
+
reflect: true,
|
|
583
|
+
attribute: "minutes-step",
|
|
584
|
+
fallbackValue: "1"
|
|
585
|
+
})
|
|
565
586
|
], DaikinTimePicker.prototype, "minutesStep", 2);
|
|
566
587
|
__decorateClass([
|
|
567
588
|
state()
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cvaTimestamp } from "../../utils/notification-common.js";
|
|
4
4
|
export type ToastNotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaContent | typeof cvaTimestamp>;
|
|
5
|
+
declare const cvaContainer: (props?: ({
|
|
6
|
+
variant?: "inline" | "toast" | null | undefined;
|
|
7
|
+
status?: "negative" | "alarm" | "warning" | "positive" | "information" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
declare const cvaContent: (props?: ({
|
|
10
|
+
layout?: "horizontal" | "vertical" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
12
|
/**
|
|
6
13
|
* The toast notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
7
14
|
*
|
|
@@ -39,6 +46,8 @@ export declare class DaikinToastNotification extends DDSElement {
|
|
|
39
46
|
name: string;
|
|
40
47
|
/**
|
|
41
48
|
* Status of the toast notification.
|
|
49
|
+
*
|
|
50
|
+
* @default "positive"
|
|
42
51
|
*/
|
|
43
52
|
status: ToastNotificationVariantProps["status"];
|
|
44
53
|
/**
|
|
@@ -50,7 +59,10 @@ export declare class DaikinToastNotification extends DDSElement {
|
|
|
50
59
|
*/
|
|
51
60
|
closable: boolean;
|
|
52
61
|
/**
|
|
53
|
-
* The timestamp to display.
|
|
62
|
+
* The timestamp to display. Accepts a Date object and displays it in YYYY/MM/DD format.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* element.timestamp = new Date();
|
|
54
66
|
*/
|
|
55
67
|
timestamp: Date | null;
|
|
56
68
|
/**
|
|
@@ -69,3 +81,4 @@ declare global {
|
|
|
69
81
|
"daikin-toast-notification": DaikinToastNotification;
|
|
70
82
|
}
|
|
71
83
|
}
|
|
84
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
1
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
2
|
-
import { property } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import "../../base/dds-form-element.js";
|
|
5
|
+
import { property, oneOf } 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";
|
|
8
|
-
import { TOAST_ANIMATION_DURATION,
|
|
9
|
+
import { TOAST_ANIMATION_DURATION, cvaTimestamp, formatDate } from "../../utils/notification-common.js";
|
|
9
10
|
import "../icon-button/daikin-icon-button.js";
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -17,11 +18,96 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
17
18
|
if (kind && result) __defProp(target, key, result);
|
|
18
19
|
return result;
|
|
19
20
|
};
|
|
21
|
+
const cvaContainer = cva(
|
|
22
|
+
[
|
|
23
|
+
"flex",
|
|
24
|
+
"items-center",
|
|
25
|
+
"gap-3",
|
|
26
|
+
"w-full",
|
|
27
|
+
"h-full",
|
|
28
|
+
"text-ddt-color-common-text-primary",
|
|
29
|
+
"bg-ddt-color-common-background-default",
|
|
30
|
+
"p-4",
|
|
31
|
+
"overflow-hidden",
|
|
32
|
+
"font-daikinSerif",
|
|
33
|
+
"transition",
|
|
34
|
+
"box-border",
|
|
35
|
+
"before:size-6",
|
|
36
|
+
"before:flex-none"
|
|
37
|
+
],
|
|
38
|
+
{
|
|
39
|
+
variants: {
|
|
40
|
+
variant: {
|
|
41
|
+
toast: [
|
|
42
|
+
"rounded-lg",
|
|
43
|
+
"border",
|
|
44
|
+
"border-ddt-color-divider",
|
|
45
|
+
"translate-x-[--move-offset-x,0]",
|
|
46
|
+
"translate-y-[--move-offset-y,0]",
|
|
47
|
+
"opacity-[--opacity,1]",
|
|
48
|
+
"[pointer-events:var(--pointer-events,auto)]",
|
|
49
|
+
"[transition-duration:var(--transition-duration,var(--ddc-toast-animation-duration,0ms))]"
|
|
50
|
+
],
|
|
51
|
+
inline: []
|
|
52
|
+
},
|
|
53
|
+
status: {
|
|
54
|
+
positive: [
|
|
55
|
+
"before:text-ddt-color-common-success",
|
|
56
|
+
"before:i-daikin-success"
|
|
57
|
+
],
|
|
58
|
+
negative: [
|
|
59
|
+
"before:text-ddt-color-common-danger-default",
|
|
60
|
+
"before:i-daikin-error"
|
|
61
|
+
],
|
|
62
|
+
warning: [
|
|
63
|
+
"before:text-ddt-color-common-warning",
|
|
64
|
+
"before:i-daikin-warning"
|
|
65
|
+
],
|
|
66
|
+
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
67
|
+
information: [
|
|
68
|
+
"before:text-ddt-color-common-information",
|
|
69
|
+
"before:i-daikin-information"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
const cvaContent = cva(["flex", "items-center", "w-full"], {
|
|
76
|
+
variants: {
|
|
77
|
+
layout: {
|
|
78
|
+
horizontal: ["gap-3", "overflow-hidden"],
|
|
79
|
+
vertical: ["items-stretch", "flex-col", "gap-1"]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const cvaTitle = cva(["slotted:inline-block", "font-bold", "leading-[130%]"], {
|
|
84
|
+
variants: {
|
|
85
|
+
layout: {
|
|
86
|
+
vertical: ["slotted:natural-break"],
|
|
87
|
+
horizontal: [
|
|
88
|
+
"slotted:whitespace-nowrap",
|
|
89
|
+
"slotted:overflow-hidden",
|
|
90
|
+
"slotted:overflow-ellipsis"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const cvaDescription = cva(["inline-block", "leading-[130%]"], {
|
|
96
|
+
variants: {
|
|
97
|
+
layout: {
|
|
98
|
+
vertical: ["natural-break"],
|
|
99
|
+
horizontal: [
|
|
100
|
+
"whitespace-nowrap",
|
|
101
|
+
"overflow-hidden",
|
|
102
|
+
"overflow-ellipsis",
|
|
103
|
+
"flex-1"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
20
108
|
let DaikinToastNotification = class extends DDSElement {
|
|
21
109
|
constructor() {
|
|
22
110
|
super(...arguments);
|
|
23
|
-
this.name = "";
|
|
24
|
-
this.status = "positive";
|
|
25
111
|
this.layout = "horizontal";
|
|
26
112
|
this.closable = false;
|
|
27
113
|
this.timestamp = null;
|
|
@@ -74,13 +160,32 @@ DaikinToastNotification.styles = css`
|
|
|
74
160
|
}
|
|
75
161
|
`;
|
|
76
162
|
__decorateClass([
|
|
77
|
-
property({ type: String, reflect: true })
|
|
163
|
+
property({ type: String, reflect: true, fallbackValue: "" })
|
|
78
164
|
], DaikinToastNotification.prototype, "name", 2);
|
|
79
165
|
__decorateClass([
|
|
80
|
-
property({
|
|
166
|
+
property({
|
|
167
|
+
type: String,
|
|
168
|
+
reflect: true,
|
|
169
|
+
fallbackValue: "positive",
|
|
170
|
+
isAllowedValue: oneOf([
|
|
171
|
+
"positive",
|
|
172
|
+
"negative",
|
|
173
|
+
"warning",
|
|
174
|
+
"alarm",
|
|
175
|
+
"information"
|
|
176
|
+
])
|
|
177
|
+
})
|
|
81
178
|
], DaikinToastNotification.prototype, "status", 2);
|
|
82
179
|
__decorateClass([
|
|
83
|
-
property({
|
|
180
|
+
property({
|
|
181
|
+
type: String,
|
|
182
|
+
reflect: true,
|
|
183
|
+
fallbackValue: "horizontal",
|
|
184
|
+
isAllowedValue: oneOf([
|
|
185
|
+
"horizontal",
|
|
186
|
+
"vertical"
|
|
187
|
+
])
|
|
188
|
+
})
|
|
84
189
|
], DaikinToastNotification.prototype, "layout", 2);
|
|
85
190
|
__decorateClass([
|
|
86
191
|
property({ type: Boolean, reflect: true })
|
package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaContainer: (props?: ({
|
|
4
|
-
position?: "
|
|
4
|
+
position?: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type ToastPosition = MergeVariantProps<typeof cvaContainer>["position"];
|
|
7
7
|
/**
|
|
@@ -43,6 +43,8 @@ export declare class DaikinToastNotificationManager extends DDSElement {
|
|
|
43
43
|
static readonly styles: import('lit').CSSResult;
|
|
44
44
|
/**
|
|
45
45
|
* Specify where on the screen the toast will be displayed.
|
|
46
|
+
*
|
|
47
|
+
* @default "bottom-right"
|
|
46
48
|
*/
|
|
47
49
|
position: ToastPosition;
|
|
48
50
|
private readonly _items;
|