@daikin-oss/design-system-web-components 1.6.0 → 2.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/custom-elements.json +1380 -69
- 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
|
@@ -8,6 +8,8 @@ import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
|
8
8
|
import { property } from "../../base/dds-property.js";
|
|
9
9
|
import { ddsElement } from "../../base/decorators.js";
|
|
10
10
|
import "../../base/define.js";
|
|
11
|
+
import { ClickOutsideController } from "../../controllers/click-outside.js";
|
|
12
|
+
import { CustomReadonlyController } from "../../controllers/custom-readonly.js";
|
|
11
13
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
12
14
|
import tailwindStyles from "../../tailwind.css.js";
|
|
13
15
|
import { isSimpleKeyEvent } from "../../utils/is-simple-key.js";
|
|
@@ -25,16 +27,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
25
27
|
const cvaButton = cva(
|
|
26
28
|
[
|
|
27
29
|
"flex",
|
|
28
|
-
"justify-between",
|
|
29
30
|
"items-center",
|
|
30
|
-
"gap-
|
|
31
|
+
"gap-(--dds-gap-10)",
|
|
31
32
|
"w-full",
|
|
32
|
-
"h-
|
|
33
|
-
"min-h-12",
|
|
33
|
+
"h-(--dds-input-height)",
|
|
34
34
|
"bg-ddt-color-common-background-default",
|
|
35
|
-
"
|
|
36
|
-
"pl-4",
|
|
37
|
-
"pr-3",
|
|
35
|
+
"px-(--dds-padding-30)",
|
|
38
36
|
"rounded-sm",
|
|
39
37
|
"overflow-hidden",
|
|
40
38
|
"text-left",
|
|
@@ -47,13 +45,7 @@ const cvaButton = cva(
|
|
|
47
45
|
"focus-visible:-outline-offset-2",
|
|
48
46
|
"enabled:outline-(--color-base)",
|
|
49
47
|
"disabled:text-ddt-color-common-disabled",
|
|
50
|
-
"disabled:outline-ddt-color-common-disabled"
|
|
51
|
-
"after:icon-[daikin--chevron-down]",
|
|
52
|
-
"after:size-6",
|
|
53
|
-
"after:flex-none",
|
|
54
|
-
"after:ml-auto",
|
|
55
|
-
"enabled:after:text-ddt-color-common-text-primary",
|
|
56
|
-
"disabled:after:text-ddt-color-common-disabled"
|
|
48
|
+
"disabled:outline-ddt-color-common-disabled"
|
|
57
49
|
],
|
|
58
50
|
{
|
|
59
51
|
variants: {
|
|
@@ -79,8 +71,41 @@ const cvaButton = cva(
|
|
|
79
71
|
placeholder: {
|
|
80
72
|
false: ["text-ddt-color-common-text-primary"],
|
|
81
73
|
true: ["text-ddt-color-common-text-secondary"]
|
|
74
|
+
},
|
|
75
|
+
readonly: {
|
|
76
|
+
false: [],
|
|
77
|
+
true: ["cursor-default"]
|
|
78
|
+
},
|
|
79
|
+
disabled: {
|
|
80
|
+
false: [],
|
|
81
|
+
true: []
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
|
+
compoundVariants: [
|
|
85
|
+
{
|
|
86
|
+
readonly: false,
|
|
87
|
+
class: [
|
|
88
|
+
"after:icon-[daikin--chevron-down]",
|
|
89
|
+
"after:size-(--dds-icon)",
|
|
90
|
+
"after:flex-none",
|
|
91
|
+
"after:ml-auto",
|
|
92
|
+
"enabled:after:text-ddt-color-common-text-primary",
|
|
93
|
+
"disabled:after:text-ddt-color-common-disabled"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
readonly: true,
|
|
98
|
+
disabled: true,
|
|
99
|
+
class: [
|
|
100
|
+
"after:icon-[daikin--chevron-down]",
|
|
101
|
+
"after:size-(--dds-icon)",
|
|
102
|
+
"after:flex-none",
|
|
103
|
+
"after:ml-auto",
|
|
104
|
+
"enabled:after:text-ddt-color-common-text-primary",
|
|
105
|
+
"disabled:after:text-ddt-color-common-disabled"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
84
109
|
}
|
|
85
110
|
);
|
|
86
111
|
const floatingPositionOptions = {
|
|
@@ -102,6 +127,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
102
127
|
constructor() {
|
|
103
128
|
super(...arguments);
|
|
104
129
|
this.disabled = false;
|
|
130
|
+
this.readonly = false;
|
|
105
131
|
this.required = false;
|
|
106
132
|
this.error = false;
|
|
107
133
|
this.open = false;
|
|
@@ -111,6 +137,26 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
111
137
|
this._label = null;
|
|
112
138
|
this._initialUpdateCompleted = false;
|
|
113
139
|
this._autoUpdateController = new FloatingUIAutoUpdateController(this);
|
|
140
|
+
this._readonlyController = new CustomReadonlyController(this, {
|
|
141
|
+
isReadonly: () => this.readonly,
|
|
142
|
+
isDisabled: () => this.disabled,
|
|
143
|
+
blockedKeys: [
|
|
144
|
+
"ArrowUp",
|
|
145
|
+
"ArrowDown",
|
|
146
|
+
"ArrowLeft",
|
|
147
|
+
"ArrowRight",
|
|
148
|
+
"Home",
|
|
149
|
+
"End",
|
|
150
|
+
"PageUp",
|
|
151
|
+
"PageDown",
|
|
152
|
+
"Enter",
|
|
153
|
+
" "
|
|
154
|
+
]
|
|
155
|
+
});
|
|
156
|
+
this._clickOutsideController = new ClickOutsideController(
|
|
157
|
+
this,
|
|
158
|
+
this._onClickOutside
|
|
159
|
+
);
|
|
114
160
|
this._willBeFocusedByPress = false;
|
|
115
161
|
this._lastFocusedItem = null;
|
|
116
162
|
this._dropdownRef = createRef();
|
|
@@ -124,6 +170,23 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
124
170
|
}
|
|
125
171
|
);
|
|
126
172
|
}
|
|
173
|
+
get _isMenuOpen() {
|
|
174
|
+
return this.open && !this.disabled && !this.readonly;
|
|
175
|
+
}
|
|
176
|
+
_syncSingleOpenState() {
|
|
177
|
+
const root = this.getRootNode();
|
|
178
|
+
const activeDropdown = DaikinDropdown._activeOpenByRoot.get(root);
|
|
179
|
+
if (this._isMenuOpen) {
|
|
180
|
+
if (activeDropdown && activeDropdown !== this && activeDropdown.open) {
|
|
181
|
+
activeDropdown.open = false;
|
|
182
|
+
}
|
|
183
|
+
DaikinDropdown._activeOpenByRoot.set(root, this);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (activeDropdown === this) {
|
|
187
|
+
DaikinDropdown._activeOpenByRoot.delete(root);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
127
190
|
_searchItem(prefix) {
|
|
128
191
|
const items = this._items.filter(
|
|
129
192
|
(item) => {
|
|
@@ -182,17 +245,29 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
182
245
|
* @param value The value of selected option.
|
|
183
246
|
*/
|
|
184
247
|
_handleSelectOption(value) {
|
|
248
|
+
if (this.disabled || this.readonly) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
185
251
|
this.value = value;
|
|
186
252
|
this.selectedOptions = this.multiple ? this.selectedOptions.includes(value) ? this.selectedOptions.filter((option) => option != value) : [...this.selectedOptions, value] : [value];
|
|
187
253
|
this.dispatchEvent(new Event("change"));
|
|
188
254
|
}
|
|
189
255
|
_handleFocusOut(event) {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
256
|
+
const relatedTarget = event.relatedTarget;
|
|
257
|
+
const movedFocusWithinSelf = !!relatedTarget && (this.contains(relatedTarget) || this.renderRoot.contains(relatedTarget));
|
|
258
|
+
if (movedFocusWithinSelf || this._willBeFocusedByPress) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
this._closeDropdownByBlur();
|
|
262
|
+
}
|
|
263
|
+
_closeDropdownByBlur() {
|
|
264
|
+
this.open = false;
|
|
265
|
+
}
|
|
266
|
+
_onClickOutside() {
|
|
267
|
+
if (!this.open || this.disabled || this._willBeFocusedByPress) {
|
|
268
|
+
return;
|
|
195
269
|
}
|
|
270
|
+
this._closeDropdownByBlur();
|
|
196
271
|
}
|
|
197
272
|
/**
|
|
198
273
|
* Removes the last selected option.
|
|
@@ -210,6 +285,15 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
210
285
|
}
|
|
211
286
|
}
|
|
212
287
|
_handleKeyDown(event) {
|
|
288
|
+
if (this.disabled || this.readonly) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (event.key === "Tab" && event.shiftKey && this.open) {
|
|
292
|
+
event.preventDefault();
|
|
293
|
+
this._closeDropdownByBlur();
|
|
294
|
+
this.focus();
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
213
297
|
if (event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
|
|
214
298
|
if (event.key === "ArrowDown") {
|
|
215
299
|
event.preventDefault();
|
|
@@ -276,7 +360,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
276
360
|
}
|
|
277
361
|
}
|
|
278
362
|
_handlePointerUp() {
|
|
279
|
-
if (this.disabled) {
|
|
363
|
+
if (this.disabled || this.readonly) {
|
|
280
364
|
return;
|
|
281
365
|
}
|
|
282
366
|
this._willBeFocusedByPress = false;
|
|
@@ -286,7 +370,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
286
370
|
if (event.key === "Enter" || event.key === " ") {
|
|
287
371
|
event.preventDefault();
|
|
288
372
|
event.stopPropagation();
|
|
289
|
-
if (this.disabled) {
|
|
373
|
+
if (this.disabled || this.readonly) {
|
|
290
374
|
return;
|
|
291
375
|
}
|
|
292
376
|
this.open = !this.open;
|
|
@@ -317,22 +401,24 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
317
401
|
this._updateItemsSelectable();
|
|
318
402
|
}
|
|
319
403
|
render() {
|
|
320
|
-
const fallbackLabel = this.
|
|
404
|
+
const fallbackLabel = this._isMenuOpen ? "Close dropdown" : this.selectedOptions.length ? `Selected: ${this._selectionLabels.join(", ")}` : this.value ? `Selected: ${this.value}` : "Open dropdown";
|
|
321
405
|
return html`<div class="w-full" @keydown=${this._handleKeyDown}>
|
|
322
406
|
<button
|
|
323
407
|
${ref(this._dropdownRef)}
|
|
324
408
|
id="dropdown-button"
|
|
325
409
|
type="button"
|
|
326
410
|
class=${cvaButton({
|
|
327
|
-
open: this.
|
|
411
|
+
open: this._isMenuOpen,
|
|
328
412
|
error: this.error,
|
|
413
|
+
disabled: this.disabled,
|
|
414
|
+
readonly: this.readonly,
|
|
329
415
|
placeholder: !this.selectedOptions.length
|
|
330
416
|
})}
|
|
331
417
|
?disabled=${this.disabled}
|
|
332
418
|
aria-label=${`${this._label ?? ""} ${fallbackLabel}`}
|
|
333
|
-
aria-expanded=${this.
|
|
419
|
+
aria-expanded=${this._isMenuOpen}
|
|
334
420
|
aria-disabled=${this.disabled}
|
|
335
|
-
aria-controls=${this.
|
|
421
|
+
aria-controls=${this._isMenuOpen ? "dropdown-items" : nothing}
|
|
336
422
|
aria-required=${this.required}
|
|
337
423
|
aria-haspopup="listbox"
|
|
338
424
|
@pointerup=${this._handlePointerUp}
|
|
@@ -340,15 +426,20 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
340
426
|
@keydown=${this._handleButtonKeyDown}
|
|
341
427
|
${this._autoUpdateController.refReference()}
|
|
342
428
|
>
|
|
343
|
-
<
|
|
429
|
+
<slot
|
|
430
|
+
name="left-icon"
|
|
431
|
+
class="slotted:shrink-0 size-(--dds-icon) slotted:size-(--dds-icon)"
|
|
432
|
+
></slot>
|
|
433
|
+
<span class="truncate pl-(--dds-space-100)">
|
|
344
434
|
${this.selectedOptions.length ? this.multiple && this.selectedOptions.length > (this.maxLabels ?? 0) ? this.selectedOptions.length === 1 ? `one item selected` : `${this.selectedOptions.length} items selected` : this._selectionLabels.join(", ") : this.placeholder}
|
|
345
435
|
</span>
|
|
346
436
|
</button>
|
|
347
437
|
<div
|
|
348
438
|
id="dropdown-items"
|
|
349
439
|
role="listbox"
|
|
350
|
-
popover
|
|
440
|
+
.popover=${"manual"}
|
|
351
441
|
class="flex flex-col overflow-hidden floating-unready:hidden absolute left-(--floating-x,0) top-(--floating-y,0) min-w-(--floating-width) max-h-50 border border-ddt-color-divider rounded-sm max-w-min"
|
|
442
|
+
tabindex="-1"
|
|
352
443
|
aria-labelledby="dropdown-button"
|
|
353
444
|
@floating-ready=${this._handleFloatingReady}
|
|
354
445
|
${this._autoUpdateController.refFloating()}
|
|
@@ -366,8 +457,10 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
366
457
|
// TODO(DDS-1226): refactor here with CSS Anchor Positioning instead of using floating-ui
|
|
367
458
|
this._autoUpdateController.directive(
|
|
368
459
|
floatingPositionOptions,
|
|
369
|
-
this.
|
|
460
|
+
this._isMenuOpen
|
|
370
461
|
)}
|
|
462
|
+
${// Ensure open dropdown is closed even when focusout/relatedTarget is unreliable across browsers.
|
|
463
|
+
this._clickOutsideController.directive(this._isMenuOpen)}
|
|
371
464
|
</div>`;
|
|
372
465
|
}
|
|
373
466
|
/**
|
|
@@ -388,6 +481,9 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
388
481
|
this._initialUpdateCompleted = true;
|
|
389
482
|
return;
|
|
390
483
|
}
|
|
484
|
+
if ((changedProperties.has("open") || changedProperties.has("readonly")) && this.readonly && this.open) {
|
|
485
|
+
this.open = false;
|
|
486
|
+
}
|
|
391
487
|
const hasChangedValue = changedProperties.has("value");
|
|
392
488
|
const hasChangedSelectedOptions = changedProperties.has("selectedOptions");
|
|
393
489
|
if (hasChangedValue && !hasChangedSelectedOptions) {
|
|
@@ -399,12 +495,18 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
399
495
|
}
|
|
400
496
|
updated(changedProperties) {
|
|
401
497
|
var _a;
|
|
498
|
+
this._readonlyController.setTarget(
|
|
499
|
+
this._button
|
|
500
|
+
);
|
|
501
|
+
if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
|
|
502
|
+
this._syncSingleOpenState();
|
|
503
|
+
}
|
|
402
504
|
if (changedProperties.has("value")) {
|
|
403
505
|
this._updateFormValue();
|
|
404
506
|
}
|
|
405
|
-
if (changedProperties.has("open") || changedProperties.has("disabled")) {
|
|
507
|
+
if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
|
|
406
508
|
(_a = this._autoUpdateController.floatingElement) == null ? void 0 : _a.togglePopover(
|
|
407
|
-
this.
|
|
509
|
+
this._isMenuOpen
|
|
408
510
|
);
|
|
409
511
|
if (changedProperties.get("open") && !this.open && !this.disabled) {
|
|
410
512
|
this.focus();
|
|
@@ -412,7 +514,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
412
514
|
}
|
|
413
515
|
if (changedProperties.has("open")) {
|
|
414
516
|
const wasOpen = changedProperties.get("open");
|
|
415
|
-
if (wasOpen !== void 0) {
|
|
517
|
+
if (wasOpen !== void 0 && wasOpen !== this.open) {
|
|
416
518
|
this.dispatchEvent(
|
|
417
519
|
new ToggleEvent("toggle", {
|
|
418
520
|
oldState: wasOpen ? "open" : "closed",
|
|
@@ -431,6 +533,10 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
431
533
|
this._updateItemsSelectable();
|
|
432
534
|
}
|
|
433
535
|
}
|
|
536
|
+
disconnectedCallback() {
|
|
537
|
+
this._syncSingleOpenState();
|
|
538
|
+
super.disconnectedCallback();
|
|
539
|
+
}
|
|
434
540
|
/**
|
|
435
541
|
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
436
542
|
* @private
|
|
@@ -438,11 +544,13 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
438
544
|
reflectInputGroup(inputGroup) {
|
|
439
545
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
440
546
|
this.disabled = !!inputGroup.disabled;
|
|
547
|
+
this.readonly = !!inputGroup.readonly;
|
|
441
548
|
this.required = !!inputGroup.required;
|
|
442
549
|
this.error = isError;
|
|
443
550
|
this._label = inputGroup.label;
|
|
444
551
|
}
|
|
445
552
|
};
|
|
553
|
+
DaikinDropdown._activeOpenByRoot = /* @__PURE__ */ new WeakMap();
|
|
446
554
|
DaikinDropdown.styles = css`
|
|
447
555
|
${unsafeCSS(tailwindStyles)}
|
|
448
556
|
|
|
@@ -451,6 +559,27 @@ DaikinDropdown.styles = css`
|
|
|
451
559
|
width: 100%;
|
|
452
560
|
}
|
|
453
561
|
|
|
562
|
+
:host([readonly]:not([disabled])) button {
|
|
563
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
564
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
:host([readonly]:not([disabled])) button:hover,
|
|
568
|
+
:host([readonly]:not([disabled])) button:active {
|
|
569
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
570
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
:host([readonly]:not([disabled])) button:focus-visible {
|
|
574
|
+
--color-base: var(--dds-color-common-border-focus);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
:host([readonly][error]:not([disabled])) button,
|
|
578
|
+
:host([readonly][error]:not([disabled])) button:hover,
|
|
579
|
+
:host([readonly][error]:not([disabled])) button:active {
|
|
580
|
+
--color-base: var(--dds-color-common-danger-default);
|
|
581
|
+
}
|
|
582
|
+
|
|
454
583
|
::slotted {
|
|
455
584
|
width: 100%;
|
|
456
585
|
}
|
|
@@ -461,6 +590,9 @@ __decorateClass([
|
|
|
461
590
|
__decorateClass([
|
|
462
591
|
property({ type: Boolean, reflect: true })
|
|
463
592
|
], DaikinDropdown.prototype, "disabled", 2);
|
|
593
|
+
__decorateClass([
|
|
594
|
+
property({ type: Boolean, reflect: true })
|
|
595
|
+
], DaikinDropdown.prototype, "readonly", 2);
|
|
464
596
|
__decorateClass([
|
|
465
597
|
property({ type: Boolean, reflect: true })
|
|
466
598
|
], DaikinDropdown.prototype, "required", 2);
|
|
@@ -25,8 +25,8 @@ const cvaOption = cva(
|
|
|
25
25
|
"items-center",
|
|
26
26
|
"gap-1",
|
|
27
27
|
"size-full",
|
|
28
|
-
"min-h-12",
|
|
29
28
|
"text-left",
|
|
29
|
+
"text-(length:--dds-font-size-label-text)",
|
|
30
30
|
"relative",
|
|
31
31
|
"focus-visible:outline-solid",
|
|
32
32
|
"focus-visible:outline-2",
|
|
@@ -46,7 +46,7 @@ const cvaOption = cva(
|
|
|
46
46
|
"hover:[--color-primary:var(--dds-color-common-surface-selected-hover)]",
|
|
47
47
|
"active:[--color-primary:var(--dds-color-common-surface-selected-press)]",
|
|
48
48
|
"after:icon-[daikin--dropdown-check]",
|
|
49
|
-
"after:size-
|
|
49
|
+
"after:size-(--dds-icon)",
|
|
50
50
|
"after:flex-none"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
@@ -62,8 +62,13 @@ const cvaOption = cva(
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
multiple: {
|
|
65
|
-
false: ["justify-between", "p-
|
|
66
|
-
true: [
|
|
65
|
+
false: ["justify-between", "p-(--dds-padding-30)"],
|
|
66
|
+
true: [
|
|
67
|
+
"after:hidden",
|
|
68
|
+
"py-(--dds-padding-20)",
|
|
69
|
+
"pl-(--dds-padding-20)",
|
|
70
|
+
"pr-(--dds-padding-30)"
|
|
71
|
+
]
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
}
|
|
@@ -120,7 +125,7 @@ let DaikinDropdownItem = class extends DDSElement {
|
|
|
120
125
|
@mousedown=${this._handleMousedown}
|
|
121
126
|
>
|
|
122
127
|
<daikin-checkbox
|
|
123
|
-
class="size-full part-label:
|
|
128
|
+
class="size-full part-label:cursor-pointer"
|
|
124
129
|
check-state=${this.selected ? "checked" : "unchecked"}
|
|
125
130
|
tabindex="-1"
|
|
126
131
|
?disabled=${this.disabled}
|
|
@@ -138,7 +143,9 @@ let DaikinDropdownItem = class extends DDSElement {
|
|
|
138
143
|
?disabled=${this.disabled}
|
|
139
144
|
@click=${this._handleClick}
|
|
140
145
|
>
|
|
141
|
-
<
|
|
146
|
+
<span class="mt-[0.09375rem] mb-[0.09375rem]">
|
|
147
|
+
<slot></slot>
|
|
148
|
+
</span>
|
|
142
149
|
</button>`;
|
|
143
150
|
}
|
|
144
151
|
/**
|
|
@@ -22,6 +22,8 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
|
22
22
|
*
|
|
23
23
|
* @slot - A slot for an icon. Place a daikin-icon element or something similar.
|
|
24
24
|
*
|
|
25
|
+
* @csspart icon-button - CSS styles applied to the `icon-button` part target the internal `<button>` element.
|
|
26
|
+
*
|
|
25
27
|
* @example
|
|
26
28
|
*
|
|
27
29
|
* ```js
|
|
@@ -158,6 +158,7 @@ let DaikinIconButton = class extends DDSFormSubmitElement {
|
|
|
158
158
|
if (this.type === "link") {
|
|
159
159
|
const linkDisabled = this.disabled || this.href == null;
|
|
160
160
|
return html`<a
|
|
161
|
+
part="icon-button"
|
|
161
162
|
class=${iconButtonCN}
|
|
162
163
|
href=${ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
|
|
163
164
|
tabindex=${ifDefined(this.getBackingProperty("buttonTabIndex"))}
|
|
@@ -172,6 +173,7 @@ let DaikinIconButton = class extends DDSFormSubmitElement {
|
|
|
172
173
|
}
|
|
173
174
|
return html`
|
|
174
175
|
<button
|
|
176
|
+
part="icon-button"
|
|
175
177
|
class=${iconButtonCN}
|
|
176
178
|
type=${this.type}
|
|
177
179
|
tabindex=${ifDefined(this.getBackingProperty("buttonTabIndex"))}
|
|
@@ -57,7 +57,7 @@ import { DaikinTag } from "./tag/daikin-tag.js";
|
|
|
57
57
|
import { DaikinTextArea } from "./text-area/daikin-text-area.js";
|
|
58
58
|
import { DaikinTextField } from "./text-field/daikin-text-field.js";
|
|
59
59
|
import { DaikinTextMaskedField } from "./text-masked-field/daikin-text-masked-field.js";
|
|
60
|
-
import { DaikinTimePicker, calcDigitInput, formatPartsForUI, formatTimeForUI,
|
|
60
|
+
import { DaikinTimePicker, calcDigitInput, formatPartsForUI, formatTimeForUI, getTimeItemInSelection, isTimeOutOfRange, isValidValueTime, parsePartsFromUIValue, timeValueToUI, tryParseTimeFromUIValue, uiToTimeValue } from "./time-picker/daikin-time-picker.js";
|
|
61
61
|
import { DaikinToastNotification } from "./toast-notification/daikin-toast-notification.js";
|
|
62
62
|
import { DaikinToastNotificationManager } from "./toast-notification-manager/daikin-toast-notification-manager.js";
|
|
63
63
|
import { DaikinToggle } from "./toggle/daikin-toggle.js";
|
|
@@ -144,12 +144,12 @@ export {
|
|
|
144
144
|
defaultFilterFn,
|
|
145
145
|
formatPartsForUI,
|
|
146
146
|
formatTimeForUI,
|
|
147
|
-
from24HourFormat,
|
|
148
147
|
getTimeItemInSelection,
|
|
149
148
|
iconList,
|
|
150
149
|
isTimeOutOfRange,
|
|
151
150
|
isValidValueTime,
|
|
152
151
|
parsePartsFromUIValue,
|
|
153
|
-
|
|
154
|
-
tryParseTimeFromUIValue
|
|
152
|
+
timeValueToUI,
|
|
153
|
+
tryParseTimeFromUIValue,
|
|
154
|
+
uiToTimeValue
|
|
155
155
|
};
|
|
@@ -139,6 +139,11 @@ import { DDSElement } from "../../base/index.js";
|
|
|
139
139
|
*/
|
|
140
140
|
export declare class DaikinInputGroup extends DDSElement {
|
|
141
141
|
static readonly styles: import('lit').CSSResult;
|
|
142
|
+
/**
|
|
143
|
+
* Orientation of the input group.
|
|
144
|
+
* Possible values are `"vertical"` and `"horizontal"`.
|
|
145
|
+
*/
|
|
146
|
+
orientation: "vertical" | "horizontal";
|
|
142
147
|
/**
|
|
143
148
|
* Label text displayed at the top of the field.
|
|
144
149
|
*/
|
|
@@ -167,6 +172,11 @@ export declare class DaikinInputGroup extends DDSElement {
|
|
|
167
172
|
* Reflected in `disabled` attribute of the input control in the slot.
|
|
168
173
|
*/
|
|
169
174
|
disabled: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Whether the field is readonly.
|
|
177
|
+
* Reflected in `readonly` attribute of the input control in the slot.
|
|
178
|
+
*/
|
|
179
|
+
readonly: boolean;
|
|
170
180
|
/**
|
|
171
181
|
* The maximum number of characters that can be input into the text area.
|
|
172
182
|
* If set, a counter will be displayed at the bottom of the text area.
|