@daikin-oss/design-system-web-components 1.6.0 → 2.0.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 +184 -0
- package/custom-elements.json +2639 -1328
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +25 -8
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
- package/dist/cjs/components/calendar/daikin-calendar.cjs +73 -26
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +13 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +190 -52
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +18 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +195 -93
- package/dist/cjs/components/chip/daikin-chip.d.cts +20 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +111 -33
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +10 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +243 -65
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +37 -2
- package/dist/cjs/components/drawer/daikin-drawer.cjs +1 -1
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +164 -32
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +13 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +2 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -0
- package/dist/cjs/components/index.cjs +2 -2
- package/dist/cjs/components/input-group/daikin-input-group.cjs +88 -30
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +10 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +21 -10
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +1 -1
- package/dist/cjs/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs/components/menu/daikin-menu.cjs +2 -2
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +10 -4
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +1 -0
- package/dist/cjs/components/navigation/daikin-navigation.cjs +21 -0
- package/dist/cjs/components/navigation/daikin-navigation.d.cts +9 -0
- package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +18 -14
- package/dist/cjs/components/pagination/daikin-pagination.cjs +60 -19
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +11 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +27 -19
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +160 -35
- package/dist/cjs/components/radio/daikin-radio.d.cts +26 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +10 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +4 -0
- package/dist/cjs/components/select/daikin-select.cjs +128 -21
- package/dist/cjs/components/select/daikin-select.d.cts +11 -0
- package/dist/cjs/components/slider/daikin-slider.cjs +61 -16
- package/dist/cjs/components/slider/daikin-slider.d.cts +4 -0
- package/dist/cjs/components/status-message/daikin-status-message.cjs +1 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +2 -0
- package/dist/cjs/components/table/daikin-table.cjs +108 -16
- package/dist/cjs/components/table/daikin-table.d.cts +58 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +3 -4
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
- package/dist/cjs/components/tag/daikin-tag.cjs +99 -20
- package/dist/cjs/components/tag/daikin-tag.d.cts +14 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +22 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +96 -50
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +9 -0
- package/dist/cjs/components/text-field/number-utils.cjs +51 -19
- package/dist/cjs/components/text-field/number-utils.d.cts +7 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +325 -108
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +57 -14
- package/dist/cjs/components/time-picker/index.cjs +2 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +110 -35
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +5 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +1 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +24 -8
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +7 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +1 -0
- package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
- package/dist/cjs/controllers/custom-readonly.cjs +59 -0
- package/dist/cjs/controllers/custom-readonly.d.cts +28 -0
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -2
- package/dist/cjs/utils/calendar-common.d.cts +1 -1
- package/dist/cjs/utils/extract-half-width-digits.cjs +11 -0
- package/dist/cjs/utils/extract-half-width-digits.d.cts +15 -0
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +25 -8
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +73 -26
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +13 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +190 -52
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +18 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +195 -93
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +20 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +111 -33
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +10 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +243 -65
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +37 -2
- package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +1 -1
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +164 -32
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +13 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +2 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -0
- package/dist/cjs-dev/components/index.cjs +2 -2
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +88 -30
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +10 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +21 -10
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +1 -1
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +2 -2
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +10 -4
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +1 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +21 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +9 -0
- package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +18 -14
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +60 -19
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +11 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +27 -19
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +160 -35
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +26 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +10 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +4 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +128 -21
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -0
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +61 -16
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +4 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +1 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +2 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +108 -16
- package/dist/cjs-dev/components/table/daikin-table.d.cts +58 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +3 -4
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
- package/dist/cjs-dev/components/tag/daikin-tag.cjs +99 -20
- package/dist/cjs-dev/components/tag/daikin-tag.d.cts +14 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +22 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +96 -50
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +9 -0
- package/dist/cjs-dev/components/text-field/number-utils.cjs +51 -19
- package/dist/cjs-dev/components/text-field/number-utils.d.cts +7 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +325 -108
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +57 -14
- package/dist/cjs-dev/components/time-picker/index.cjs +2 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +110 -35
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +5 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +1 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +24 -8
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +7 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +1 -0
- package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
- package/dist/cjs-dev/controllers/custom-readonly.cjs +59 -0
- package/dist/cjs-dev/controllers/custom-readonly.d.cts +28 -0
- package/dist/cjs-dev/index.cjs +2 -2
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -2
- package/dist/cjs-dev/utils/calendar-common.d.cts +1 -1
- package/dist/cjs-dev/utils/extract-half-width-digits.cjs +11 -0
- package/dist/cjs-dev/utils/extract-half-width-digits.d.cts +15 -0
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.js +25 -8
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
- package/dist/es/components/calendar/daikin-calendar.d.ts +13 -0
- package/dist/es/components/calendar/daikin-calendar.js +73 -26
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +18 -0
- package/dist/es/components/checkbox/daikin-checkbox.js +190 -52
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +7 -1
- package/dist/es/components/chip/daikin-chip.d.ts +20 -0
- package/dist/es/components/chip/daikin-chip.js +195 -93
- package/dist/es/components/combobox/daikin-combobox.d.ts +10 -0
- package/dist/es/components/combobox/daikin-combobox.js +111 -33
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +37 -2
- package/dist/es/components/date-picker/daikin-date-picker.js +243 -65
- package/dist/es/components/drawer/daikin-drawer.js +1 -1
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +13 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +164 -32
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +13 -6
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -0
- package/dist/es/components/icon-button/daikin-icon-button.js +2 -0
- package/dist/es/components/index.js +4 -4
- package/dist/es/components/input-group/daikin-input-group.d.ts +10 -0
- package/dist/es/components/input-group/daikin-input-group.js +89 -31
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -0
- package/dist/es/components/list-item/daikin-list-item.js +21 -10
- package/dist/es/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es/components/logo/daikin-logo.js +1 -1
- package/dist/es/components/menu/daikin-menu.js +2 -2
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +10 -4
- package/dist/es/components/navigation/daikin-navigation.d.ts +9 -0
- package/dist/es/components/navigation/daikin-navigation.js +22 -1
- package/dist/es/components/navigation-item/daikin-navigation-item.js +18 -14
- package/dist/es/components/pagination/daikin-pagination.d.ts +11 -0
- package/dist/es/components/pagination/daikin-pagination.js +61 -20
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +1 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +27 -19
- package/dist/es/components/radio/daikin-radio.d.ts +26 -0
- package/dist/es/components/radio/daikin-radio.js +160 -35
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +4 -0
- package/dist/es/components/radio-group/daikin-radio-group.js +10 -1
- package/dist/es/components/select/daikin-select.d.ts +11 -0
- package/dist/es/components/select/daikin-select.js +128 -21
- package/dist/es/components/slider/daikin-slider.d.ts +4 -0
- package/dist/es/components/slider/daikin-slider.js +61 -16
- package/dist/es/components/status-message/daikin-status-message.d.ts +2 -0
- package/dist/es/components/status-message/daikin-status-message.js +1 -0
- package/dist/es/components/table/daikin-table.d.ts +58 -1
- package/dist/es/components/table/daikin-table.js +109 -17
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +21 -15
- package/dist/es/components/tag/daikin-tag.d.ts +14 -0
- package/dist/es/components/tag/daikin-tag.js +100 -21
- package/dist/es/components/text-area/daikin-text-area.js +22 -2
- package/dist/es/components/text-field/daikin-text-field.d.ts +9 -0
- package/dist/es/components/text-field/daikin-text-field.js +97 -51
- package/dist/es/components/text-field/number-utils.d.ts +7 -0
- package/dist/es/components/text-field/number-utils.js +51 -19
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +31 -7
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +57 -14
- package/dist/es/components/time-picker/daikin-time-picker.js +327 -110
- package/dist/es/components/time-picker/index.js +4 -4
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
- package/dist/es/components/toggle/daikin-toggle.d.ts +5 -0
- package/dist/es/components/toggle/daikin-toggle.js +110 -35
- package/dist/es/components/tooltip/daikin-tooltip.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +1 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +24 -8
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +1 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +7 -1
- package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
- package/dist/es/controllers/custom-readonly.d.ts +28 -0
- package/dist/es/controllers/custom-readonly.js +59 -0
- package/dist/es/index.js +4 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +1 -1
- package/dist/es/utils/calendar-common.js +6 -2
- package/dist/es/utils/extract-half-width-digits.d.ts +15 -0
- package/dist/es/utils/extract-half-width-digits.js +11 -0
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +25 -8
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +13 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +73 -26
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +18 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +190 -52
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +7 -1
- package/dist/es-dev/components/chip/daikin-chip.d.ts +20 -0
- package/dist/es-dev/components/chip/daikin-chip.js +195 -93
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +10 -0
- package/dist/es-dev/components/combobox/daikin-combobox.js +111 -33
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +37 -2
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +243 -65
- package/dist/es-dev/components/drawer/daikin-drawer.js +1 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +13 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +164 -32
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +13 -6
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -0
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +2 -0
- package/dist/es-dev/components/index.js +4 -4
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +10 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +89 -31
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +21 -10
- package/dist/es-dev/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es-dev/components/logo/daikin-logo.js +1 -1
- package/dist/es-dev/components/menu/daikin-menu.js +2 -2
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +10 -4
- package/dist/es-dev/components/navigation/daikin-navigation.d.ts +9 -0
- package/dist/es-dev/components/navigation/daikin-navigation.js +22 -1
- package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +18 -14
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +11 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +61 -20
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +1 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +27 -19
- package/dist/es-dev/components/radio/daikin-radio.d.ts +26 -0
- package/dist/es-dev/components/radio/daikin-radio.js +160 -35
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +4 -0
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +10 -1
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -0
- package/dist/es-dev/components/select/daikin-select.js +128 -21
- package/dist/es-dev/components/slider/daikin-slider.d.ts +4 -0
- package/dist/es-dev/components/slider/daikin-slider.js +61 -16
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +2 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +1 -0
- package/dist/es-dev/components/table/daikin-table.d.ts +58 -1
- package/dist/es-dev/components/table/daikin-table.js +109 -17
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +21 -15
- package/dist/es-dev/components/tag/daikin-tag.d.ts +14 -0
- package/dist/es-dev/components/tag/daikin-tag.js +100 -21
- package/dist/es-dev/components/text-area/daikin-text-area.js +22 -2
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +9 -0
- package/dist/es-dev/components/text-field/daikin-text-field.js +97 -51
- package/dist/es-dev/components/text-field/number-utils.d.ts +7 -0
- package/dist/es-dev/components/text-field/number-utils.js +51 -19
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +31 -7
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +57 -14
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +327 -110
- package/dist/es-dev/components/time-picker/index.js +4 -4
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +5 -0
- package/dist/es-dev/components/toggle/daikin-toggle.js +110 -35
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +1 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +24 -8
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +1 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +7 -1
- package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
- package/dist/es-dev/controllers/custom-readonly.d.ts +28 -0
- package/dist/es-dev/controllers/custom-readonly.js +59 -0
- package/dist/es-dev/index.js +4 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +1 -1
- package/dist/es-dev/utils/calendar-common.js +6 -2
- package/dist/es-dev/utils/extract-half-width-digits.d.ts +15 -0
- package/dist/es-dev/utils/extract-half-width-digits.js +11 -0
- package/icons/logo-negative.svg +16 -9
- package/icons/logo-positive.svg +16 -9
- package/package.json +6 -5
|
@@ -6,6 +6,7 @@ import "../../base/dds-form-element.js";
|
|
|
6
6
|
import { property } from "../../base/dds-property.js";
|
|
7
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
8
|
import "../../base/define.js";
|
|
9
|
+
import { CustomReadonlyController } from "../../controllers/custom-readonly.js";
|
|
9
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -21,26 +22,15 @@ const cvaSelect = cva(
|
|
|
21
22
|
[
|
|
22
23
|
"block",
|
|
23
24
|
"w-full",
|
|
24
|
-
"h-full",
|
|
25
25
|
"relative",
|
|
26
|
-
"after:icon-[daikin--chevron-down]",
|
|
27
|
-
"after:w-6",
|
|
28
|
-
"after:h-6",
|
|
29
|
-
"after:m-auto",
|
|
30
|
-
"after:absolute",
|
|
31
|
-
"after:top-0",
|
|
32
|
-
"after:bottom-0",
|
|
33
|
-
"after:right-3.25",
|
|
34
|
-
"after:pointer-events-none",
|
|
35
26
|
"slotted-select:appearance-none!",
|
|
36
27
|
"slotted-select:flex!",
|
|
37
28
|
"slotted-select:items-center!",
|
|
38
29
|
"slotted-select:gap-2!",
|
|
39
30
|
"slotted-select:w-full!",
|
|
40
31
|
"slotted-select:h-full!",
|
|
41
|
-
"slotted-select:min-h-
|
|
42
|
-
"slotted-select:
|
|
43
|
-
"slotted-select:pr-12!",
|
|
32
|
+
"slotted-select:min-h-(--dds-input-height)!",
|
|
33
|
+
"slotted-select:pr-[calc(var(--dds-padding-30)+var(--dds-gap-10)+var(--dds-icon))]!",
|
|
44
34
|
"slotted-select:text-base!",
|
|
45
35
|
"slotted-select:border!",
|
|
46
36
|
"slotted-select:border-(--color-base)!",
|
|
@@ -51,10 +41,7 @@ const cvaSelect = cva(
|
|
|
51
41
|
"slotted-select:-outline-offset-2!",
|
|
52
42
|
"slotted-select-focus-visible:outline-2!",
|
|
53
43
|
"slotted-select-focus-visible:outline-(--color-focus)!",
|
|
54
|
-
"slotted-select-enabled:cursor-pointer!",
|
|
55
44
|
"slotted-select-enabled:text-ddt-color-common-text-primary!",
|
|
56
|
-
"slotted-select-hover:bg-ddt-color-common-surface-hover!",
|
|
57
|
-
"slotted-select-active:bg-ddt-color-common-surface-press!",
|
|
58
45
|
"slotted-select-disabled:text-ddt-color-common-disabled!",
|
|
59
46
|
"slotted-select-disabled:border-ddt-color-common-disabled!"
|
|
60
47
|
],
|
|
@@ -64,6 +51,24 @@ const cvaSelect = cva(
|
|
|
64
51
|
false: ["after:text-ddt-color-common-text-primary"],
|
|
65
52
|
true: ["after:text-ddt-color-common-disabled"]
|
|
66
53
|
},
|
|
54
|
+
readonly: {
|
|
55
|
+
false: [
|
|
56
|
+
"after:icon-[daikin--chevron-down]",
|
|
57
|
+
"after:size-(--dds-icon)",
|
|
58
|
+
"after:m-auto",
|
|
59
|
+
"after:absolute",
|
|
60
|
+
"after:top-0",
|
|
61
|
+
"after:bottom-0",
|
|
62
|
+
"after:right-(--dds-padding-30)",
|
|
63
|
+
"after:pointer-events-none"
|
|
64
|
+
],
|
|
65
|
+
true: [
|
|
66
|
+
"slotted-select:[--color-base:var(--dds-color-common-surface-secondary)]",
|
|
67
|
+
"slotted-select:bg-(--dds-color-common-surface-secondary)!",
|
|
68
|
+
"slotted-select:hover:bg-(--dds-color-common-surface-secondary)!",
|
|
69
|
+
"slotted-select:active:bg-(--dds-color-common-surface-secondary)!"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
67
72
|
error: {
|
|
68
73
|
false: [
|
|
69
74
|
"slotted-select-enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
@@ -75,6 +80,63 @@ const cvaSelect = cva(
|
|
|
75
80
|
"[--color-base:var(--dds-color-common-danger-default)]",
|
|
76
81
|
"[--color-focus:var(--dds-color-common-danger-default)]"
|
|
77
82
|
]
|
|
83
|
+
},
|
|
84
|
+
hasLeftIcon: {
|
|
85
|
+
false: [
|
|
86
|
+
"slotted-select:pl-[calc(var(--dds-padding-30)+var(--dds-space-100))]!"
|
|
87
|
+
],
|
|
88
|
+
true: [
|
|
89
|
+
"slotted-select:pl-[calc(var(--dds-padding-30)+var(--dds-gap-10)+var(--dds-icon)+var(--dds-space-100))]!"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
compoundVariants: [
|
|
94
|
+
{
|
|
95
|
+
readonly: false,
|
|
96
|
+
disabled: false,
|
|
97
|
+
class: ["cursor-pointer slotted-select:cursor-pointer"]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
readonly: false,
|
|
101
|
+
class: [
|
|
102
|
+
"slotted-select-hover:bg-ddt-color-common-surface-hover!",
|
|
103
|
+
"slotted-select-active:bg-ddt-color-common-surface-press!"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
readonly: true,
|
|
108
|
+
error: false,
|
|
109
|
+
class: [
|
|
110
|
+
"slotted-select-enabled:[--color-base:var(--dds-color-common-surface-secondary)]",
|
|
111
|
+
"slotted-select-hover:[--color-base:var(--dds-color-common-surface-secondary)]",
|
|
112
|
+
"slotted-select-active:[--color-base:var(--dds-color-common-surface-secondary)]"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
readonly: true,
|
|
117
|
+
error: true,
|
|
118
|
+
class: [
|
|
119
|
+
"slotted-select-enabled:[--color-base:var(--dds-color-common-danger-default)]"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
const cvaLeftIcon = cva(
|
|
126
|
+
[
|
|
127
|
+
"absolute",
|
|
128
|
+
"z-1",
|
|
129
|
+
"top-1/2",
|
|
130
|
+
"-translate-y-1/2",
|
|
131
|
+
"left-(--dds-padding-30)",
|
|
132
|
+
"shrink-0",
|
|
133
|
+
"size-(--dds-icon)"
|
|
134
|
+
],
|
|
135
|
+
{
|
|
136
|
+
variants: {
|
|
137
|
+
disabled: {
|
|
138
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
139
|
+
true: ["text-ddt-color-common-disabled"]
|
|
78
140
|
}
|
|
79
141
|
}
|
|
80
142
|
}
|
|
@@ -84,8 +146,30 @@ let DaikinSelect = class extends DDSElement {
|
|
|
84
146
|
super(...arguments);
|
|
85
147
|
this.error = false;
|
|
86
148
|
this.required = false;
|
|
149
|
+
this.readonly = false;
|
|
87
150
|
this.disabled = false;
|
|
151
|
+
this._hasLeftIcon = false;
|
|
88
152
|
this._label = null;
|
|
153
|
+
this._readonlyController = new CustomReadonlyController(this, {
|
|
154
|
+
isReadonly: () => this.readonly,
|
|
155
|
+
isDisabled: () => this.disabled,
|
|
156
|
+
blockedKeys: [
|
|
157
|
+
"ArrowUp",
|
|
158
|
+
"ArrowDown",
|
|
159
|
+
"ArrowLeft",
|
|
160
|
+
"ArrowRight",
|
|
161
|
+
"Home",
|
|
162
|
+
"End",
|
|
163
|
+
"PageUp",
|
|
164
|
+
"PageDown",
|
|
165
|
+
"Enter",
|
|
166
|
+
" "
|
|
167
|
+
]
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
_handleLeftIconSlotChange(event) {
|
|
171
|
+
const slot = event.target;
|
|
172
|
+
this._hasLeftIcon = slot.assignedElements().length > 0;
|
|
89
173
|
}
|
|
90
174
|
get _select() {
|
|
91
175
|
return this._selects[0] ?? null;
|
|
@@ -93,23 +177,38 @@ let DaikinSelect = class extends DDSElement {
|
|
|
93
177
|
_updateSelect() {
|
|
94
178
|
const select = this._select;
|
|
95
179
|
if (!select) {
|
|
180
|
+
this._readonlyController.setTarget(null);
|
|
96
181
|
return;
|
|
97
182
|
}
|
|
98
183
|
select.disabled = this.disabled;
|
|
99
184
|
select.required = this.required;
|
|
100
185
|
select.ariaLabel = this._label;
|
|
186
|
+
this._readonlyController.setTarget(select);
|
|
101
187
|
}
|
|
102
188
|
_handleSlotChange() {
|
|
103
189
|
this._updateSelect();
|
|
104
190
|
}
|
|
105
191
|
render() {
|
|
106
|
-
return html`<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
192
|
+
return html`<span
|
|
193
|
+
class=${cvaLeftIcon({
|
|
194
|
+
disabled: this.disabled
|
|
195
|
+
})}
|
|
196
|
+
><slot
|
|
197
|
+
name="left-icon"
|
|
198
|
+
@slotchange=${this._handleLeftIconSlotChange}
|
|
199
|
+
></slot></span
|
|
200
|
+
><slot
|
|
201
|
+
class=${cvaSelect({
|
|
202
|
+
disabled: this.disabled,
|
|
203
|
+
readonly: this.readonly && !this.disabled,
|
|
204
|
+
error: this.error,
|
|
205
|
+
hasLeftIcon: this._hasLeftIcon
|
|
206
|
+
})}
|
|
207
|
+
@slotchange=${this._handleSlotChange}
|
|
208
|
+
></slot>`;
|
|
110
209
|
}
|
|
111
210
|
updated(changedProperties) {
|
|
112
|
-
if (changedProperties.has("disabled") || changedProperties.has("required")) {
|
|
211
|
+
if (changedProperties.has("disabled") || changedProperties.has("required") || changedProperties.has("readonly")) {
|
|
113
212
|
this._updateSelect();
|
|
114
213
|
}
|
|
115
214
|
}
|
|
@@ -120,6 +219,7 @@ let DaikinSelect = class extends DDSElement {
|
|
|
120
219
|
reflectInputGroup(inputGroup) {
|
|
121
220
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
122
221
|
this.disabled = !!inputGroup.disabled;
|
|
222
|
+
this.readonly = !!inputGroup.readonly;
|
|
123
223
|
this.required = !!inputGroup.required;
|
|
124
224
|
this.error = isError;
|
|
125
225
|
this._label = inputGroup.label;
|
|
@@ -159,6 +259,7 @@ DaikinSelect.styles = css`
|
|
|
159
259
|
:host {
|
|
160
260
|
display: block;
|
|
161
261
|
width: 100%;
|
|
262
|
+
position: relative;
|
|
162
263
|
}
|
|
163
264
|
`;
|
|
164
265
|
__decorateClass([
|
|
@@ -167,12 +268,18 @@ __decorateClass([
|
|
|
167
268
|
__decorateClass([
|
|
168
269
|
property({ type: Boolean, reflect: true })
|
|
169
270
|
], DaikinSelect.prototype, "required", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
property({ type: Boolean, reflect: true })
|
|
273
|
+
], DaikinSelect.prototype, "readonly", 2);
|
|
170
274
|
__decorateClass([
|
|
171
275
|
property({ type: Boolean, reflect: true })
|
|
172
276
|
], DaikinSelect.prototype, "disabled", 2);
|
|
173
277
|
__decorateClass([
|
|
174
278
|
queryAssignedElements({ selector: "select" })
|
|
175
279
|
], DaikinSelect.prototype, "_selects", 2);
|
|
280
|
+
__decorateClass([
|
|
281
|
+
state()
|
|
282
|
+
], DaikinSelect.prototype, "_hasLeftIcon", 2);
|
|
176
283
|
__decorateClass([
|
|
177
284
|
state()
|
|
178
285
|
], DaikinSelect.prototype, "_label", 2);
|
|
@@ -48,6 +48,10 @@ export declare class DaikinSlider extends DDSFormElement {
|
|
|
48
48
|
* Specify the slider disabled state.
|
|
49
49
|
*/
|
|
50
50
|
disabled: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the slider is readonly.
|
|
53
|
+
*/
|
|
54
|
+
readonly: boolean;
|
|
51
55
|
/**
|
|
52
56
|
* The aria-label of the slider.
|
|
53
57
|
* You should specify this value based on the slider's use case, such as "air conditioner temperature".
|
|
@@ -22,10 +22,21 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
const cvaWrapper = cva(["relative", "w-full", "h-6"], {
|
|
23
23
|
variants: {
|
|
24
24
|
disabled: {
|
|
25
|
-
false: [
|
|
25
|
+
false: [],
|
|
26
|
+
true: []
|
|
27
|
+
},
|
|
28
|
+
readonly: {
|
|
29
|
+
false: [],
|
|
26
30
|
true: []
|
|
27
31
|
}
|
|
28
|
-
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
{
|
|
35
|
+
disabled: false,
|
|
36
|
+
readonly: false,
|
|
37
|
+
class: ["cursor-pointer"]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
29
40
|
});
|
|
30
41
|
const cvaSliderThumb = cva(
|
|
31
42
|
[
|
|
@@ -33,27 +44,42 @@ const cvaSliderThumb = cva(
|
|
|
33
44
|
"top-1/2",
|
|
34
45
|
"-translate-x-1/2",
|
|
35
46
|
"-translate-y-1/2",
|
|
36
|
-
"w-4",
|
|
37
|
-
"h-4",
|
|
38
|
-
"rounded-full",
|
|
39
47
|
"left-(--slider-ratio)"
|
|
40
48
|
],
|
|
41
49
|
{
|
|
42
50
|
variants: {
|
|
43
51
|
disabled: {
|
|
44
52
|
false: [
|
|
45
|
-
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
46
|
-
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
47
|
-
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
48
|
-
"data-dragging:bg-ddt-color-common-brand-press",
|
|
49
53
|
"focus-visible:outline-solid",
|
|
50
54
|
"focus-visible:outline-2",
|
|
51
55
|
"focus-visible:outline-offset-2",
|
|
52
56
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
53
57
|
],
|
|
54
58
|
true: ["bg-ddt-color-common-disabled", "pointer-events-none"]
|
|
59
|
+
},
|
|
60
|
+
readonly: {
|
|
61
|
+
false: ["w-4", "h-4", "rounded-full"],
|
|
62
|
+
true: [
|
|
63
|
+
"w-1",
|
|
64
|
+
"h-3",
|
|
65
|
+
"rounded-xs",
|
|
66
|
+
"bg-ddt-color-common-neutral-default",
|
|
67
|
+
"pointer-events-none"
|
|
68
|
+
]
|
|
55
69
|
}
|
|
56
|
-
}
|
|
70
|
+
},
|
|
71
|
+
compoundVariants: [
|
|
72
|
+
{
|
|
73
|
+
disabled: false,
|
|
74
|
+
readonly: false,
|
|
75
|
+
class: [
|
|
76
|
+
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
77
|
+
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
78
|
+
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
79
|
+
"data-dragging:bg-ddt-color-common-brand-press"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
]
|
|
57
83
|
}
|
|
58
84
|
);
|
|
59
85
|
const cvaSliderTrack = cva(
|
|
@@ -70,6 +96,10 @@ const cvaSliderTrack = cva(
|
|
|
70
96
|
disabled: {
|
|
71
97
|
false: ["bg-ddt-color-common-brand-default"],
|
|
72
98
|
true: ["bg-ddt-color-common-border-empty"]
|
|
99
|
+
},
|
|
100
|
+
readonly: {
|
|
101
|
+
false: [],
|
|
102
|
+
true: ["bg-ddt-color-common-neutral-default"]
|
|
73
103
|
}
|
|
74
104
|
}
|
|
75
105
|
}
|
|
@@ -78,6 +108,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
78
108
|
constructor() {
|
|
79
109
|
super();
|
|
80
110
|
this.disabled = false;
|
|
111
|
+
this.readonly = false;
|
|
81
112
|
this._dragging = false;
|
|
82
113
|
this._sliderRef = createRef();
|
|
83
114
|
this._thumbRef = createRef();
|
|
@@ -120,7 +151,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
120
151
|
}
|
|
121
152
|
// This function is called when an arrow key is pressed while the thumb is focused.
|
|
122
153
|
_handleKeyDown(event) {
|
|
123
|
-
if (this.disabled) {
|
|
154
|
+
if (this.disabled || this.readonly) {
|
|
124
155
|
return;
|
|
125
156
|
}
|
|
126
157
|
const value = getValueByKeydown(this, event.key);
|
|
@@ -150,7 +181,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
150
181
|
_startDrag(event) {
|
|
151
182
|
var _a;
|
|
152
183
|
event.preventDefault();
|
|
153
|
-
if (this.disabled) {
|
|
184
|
+
if (this.disabled || this.readonly) {
|
|
154
185
|
return;
|
|
155
186
|
}
|
|
156
187
|
const controller = new AbortController();
|
|
@@ -178,7 +209,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
178
209
|
_startTouch(event) {
|
|
179
210
|
var _a;
|
|
180
211
|
event.preventDefault();
|
|
181
|
-
if (this.disabled) {
|
|
212
|
+
if (this.disabled || this.readonly) {
|
|
182
213
|
return;
|
|
183
214
|
}
|
|
184
215
|
const controller = new AbortController();
|
|
@@ -215,7 +246,10 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
215
246
|
return html`
|
|
216
247
|
<span
|
|
217
248
|
${ref(this._sliderRef)}
|
|
218
|
-
class=${cvaWrapper({
|
|
249
|
+
class=${cvaWrapper({
|
|
250
|
+
disabled: this.disabled,
|
|
251
|
+
readonly: this.readonly && !this.disabled
|
|
252
|
+
})}
|
|
219
253
|
style="--slider-ratio:${progress}%"
|
|
220
254
|
@mousedown=${this._startDrag}
|
|
221
255
|
@touchstart=${this._startTouch}
|
|
@@ -223,10 +257,18 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
223
257
|
<span
|
|
224
258
|
class="w-full absolute top-1/2 -translate-y-1/2 left-0 h-1 bg-ddt-color-common-border-empty"
|
|
225
259
|
></span>
|
|
226
|
-
<span
|
|
260
|
+
<span
|
|
261
|
+
class=${cvaSliderTrack({
|
|
262
|
+
disabled: this.disabled,
|
|
263
|
+
readonly: this.readonly && !this.disabled
|
|
264
|
+
})}
|
|
265
|
+
></span>
|
|
227
266
|
<span
|
|
228
267
|
${ref(this._thumbRef)}
|
|
229
|
-
class=${cvaSliderThumb({
|
|
268
|
+
class=${cvaSliderThumb({
|
|
269
|
+
disabled: this.disabled,
|
|
270
|
+
readonly: this.readonly && !this.disabled
|
|
271
|
+
})}
|
|
230
272
|
tabindex=${this.disabled ? -1 : 0}
|
|
231
273
|
role="slider"
|
|
232
274
|
?data-dragging=${this._dragging}
|
|
@@ -268,6 +310,9 @@ __decorateClass([
|
|
|
268
310
|
__decorateClass([
|
|
269
311
|
property({ type: Boolean, reflect: true })
|
|
270
312
|
], DaikinSlider.prototype, "disabled", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
property({ type: Boolean, reflect: true })
|
|
315
|
+
], DaikinSlider.prototype, "readonly", 2);
|
|
271
316
|
__decorateClass([
|
|
272
317
|
property({
|
|
273
318
|
type: String,
|
|
@@ -2,6 +2,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* A status message is a concise UI component for displaying status feedback, notifications, or contextual information to users. It typically indicates success, warning, error, or other states, helping users quickly understand the current state or important updates in the interface.
|
|
4
4
|
*
|
|
5
|
+
* @csspart status-message - CSS styles applied to the `status-message` part target the internal content container.
|
|
6
|
+
*
|
|
5
7
|
* @example
|
|
6
8
|
*
|
|
7
9
|
* ```js
|
|
@@ -29,6 +29,21 @@ export type HeaderType<T extends string = string> = {
|
|
|
29
29
|
* @slot cell:${rows[j].id}:${headers[i].key} - A slot for the data cell of a table. Use `daikin-table-cell` for the wrapper.
|
|
30
30
|
* @slot empty - A slot to define the content displayed when the table rows are empty. Typically, the `daikin-empty-state` component can be used.
|
|
31
31
|
*
|
|
32
|
+
* @csspart header - Targets the table header region.
|
|
33
|
+
* @csspart body - Targets the table body region.
|
|
34
|
+
* @csspart row - Targets all table rows.
|
|
35
|
+
* @csspart cell - Targets all table cells.
|
|
36
|
+
* @csspart row-${row.id} - Targets the specified body row.
|
|
37
|
+
* @csspart selected - Added to selected body rows and their body cells.
|
|
38
|
+
* @csspart odd - Added to body cells in odd-numbered rows (1st, 3rd, ...).
|
|
39
|
+
* @csspart checkbox-cell - Targets body cells in the selectable checkbox column.
|
|
40
|
+
* @csspart column-${header.key} - Targets both header and body cells for the specified column key. This is typically used to control a specific column's width and text wrapping. For example, you can allow the column to fit content by default, while enforcing min and max width: `daikin-table::part(column-name) { min-width: 12rem; max-width: 20rem; }` and optional truncation: `white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`.
|
|
41
|
+
*
|
|
42
|
+
* Background customization is also supported via CSS Parts. You can target an entire row (`row-${row.id} cell`), a specific column (`column-${header.key}`), or a row+column pair (`row-${row.id} column-${header.key}`), then apply design tokens for background colors. Example:
|
|
43
|
+
* `daikin-table::part(row-2 cell) { background-color: var(--dds-color-common-surface-danger-hover); }`
|
|
44
|
+
* `daikin-table::part(row-3 column-price) { background-color: var(--dds-color-common-warning); }`
|
|
45
|
+
* `daikin-table::part(row-2 cell):hover { background-color: var(--dds-color-common-surface-hover); }`
|
|
46
|
+
*
|
|
32
47
|
* @example
|
|
33
48
|
*
|
|
34
49
|
* ```js
|
|
@@ -38,7 +53,32 @@ export type HeaderType<T extends string = string> = {
|
|
|
38
53
|
* ```
|
|
39
54
|
*
|
|
40
55
|
* ```html
|
|
41
|
-
* <daikin-table
|
|
56
|
+
* <!-- Column width can be set on the slotted <daikin-table-header-cell>, or via daikin-table::part(column-${headers[i].key}). -->
|
|
57
|
+
* <style>
|
|
58
|
+
* daikin-table::part(column-price) {
|
|
59
|
+
* min-width: 8rem;
|
|
60
|
+
* max-width: 10rem;
|
|
61
|
+
* white-space: nowrap;
|
|
62
|
+
* }
|
|
63
|
+
*
|
|
64
|
+
* .table-status-color-sample::part(row-3 column-price) {
|
|
65
|
+
* background-color: var(--dds-color-common-warning);
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* .table-status-color-sample::part(row-2 row):hover {
|
|
69
|
+
* --row-2-hover-bg: var(--dds-color-common-surface-danger-press);
|
|
70
|
+
* }
|
|
71
|
+
*
|
|
72
|
+
* .table-status-color-sample::part(row-2 cell) {
|
|
73
|
+
* background-color: var(--row-2-hover-bg, var(--dds-color-common-surface-danger-hover));
|
|
74
|
+
* }
|
|
75
|
+
* </style>
|
|
76
|
+
*
|
|
77
|
+
* <daikin-table class="table-status-color-sample">
|
|
78
|
+
* <daikin-table-header-cell slot="header:name" style="min-width: 12rem; max-width: 20rem;">
|
|
79
|
+
* Name
|
|
80
|
+
* </daikin-table-header-cell>
|
|
81
|
+
*
|
|
42
82
|
* <!-- By using a slot, you can add a subtitle below the content in the name column for each row. -->
|
|
43
83
|
* <daikin-table-cell slot="cell:1:name">
|
|
44
84
|
* Apple
|
|
@@ -118,6 +158,23 @@ export declare class DaikinTable<T extends {
|
|
|
118
158
|
* When `true`, a sort button will be displayed to the right of each sortable header cell.
|
|
119
159
|
*/
|
|
120
160
|
sortable: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* The border style of the table row separators.
|
|
163
|
+
* - "none": Hide all table separator lines.
|
|
164
|
+
* - "underline": Show table separator lines.
|
|
165
|
+
*
|
|
166
|
+
* @default "underline"
|
|
167
|
+
*/
|
|
168
|
+
border: "none" | "underline";
|
|
169
|
+
/**
|
|
170
|
+
* Whether to keep the header row fixed while the body scrolls.
|
|
171
|
+
*
|
|
172
|
+
* When `true`, header cells become sticky relative to this component's
|
|
173
|
+
* nearest scroll container. This works with page scrolling, and also works
|
|
174
|
+
* with internal scrolling when the host has a constrained height and
|
|
175
|
+
* `overflow: auto`.
|
|
176
|
+
*/
|
|
177
|
+
stickyHeader: boolean;
|
|
121
178
|
/**
|
|
122
179
|
* An array of `id` values for the selected rows.
|
|
123
180
|
* When controlling this property externally, listen to the `change-check` event and read the updated `selection` from the component to keep your state in sync.
|