@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
|
@@ -14,16 +14,24 @@ type TimeParts = {
|
|
|
14
14
|
*/
|
|
15
15
|
type TimeItem = "hour" | "minute";
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Hour cycle for time input UI.
|
|
18
|
+
* - h12: 12-hour UI (01:00〜12:59) + AM/PM dropdown.
|
|
19
|
+
* - h23: 24-hour UI (00:00〜23:59) without AM/PM dropdown.
|
|
18
20
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
time: string;
|
|
21
|
+
type HourCycle = "h12" | "h23";
|
|
22
|
+
type UiTimeObject = {
|
|
23
|
+
hourCycle: "h12";
|
|
24
|
+
hour: string;
|
|
25
|
+
minute: string;
|
|
25
26
|
meridiem: "AM" | "PM";
|
|
27
|
+
} | {
|
|
28
|
+
hourCycle: "h23";
|
|
29
|
+
hour: string;
|
|
30
|
+
minute: string;
|
|
31
|
+
meridiem: null;
|
|
26
32
|
};
|
|
33
|
+
export declare function uiToTimeValue(object: UiTimeObject): string;
|
|
34
|
+
export declare function timeValueToUI(time: string, hourCycle: HourCycle): UiTimeObject;
|
|
27
35
|
/**
|
|
28
36
|
* Validates if a time string matches the 24-hour format.
|
|
29
37
|
*/
|
|
@@ -60,13 +68,16 @@ export declare function getTimeItemInSelection(selectionStart: number, selection
|
|
|
60
68
|
* Calculate digit key input, returns new time parts and whether input is complete.
|
|
61
69
|
* @returns { parts, done } or null
|
|
62
70
|
*/
|
|
63
|
-
export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeItem, digit: string, hourDigitIndex: number): {
|
|
71
|
+
export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeItem, digit: string, hourDigitIndex: number, hourCycle: HourCycle): {
|
|
64
72
|
parts: TimeParts;
|
|
65
73
|
done: boolean;
|
|
66
74
|
} | null;
|
|
67
75
|
/**
|
|
68
|
-
* The time picker provides a time input field and
|
|
69
|
-
*
|
|
76
|
+
* The time picker provides a time input field and supports two hour cycles via `hourCycle`.
|
|
77
|
+
* - h12: input in 12-hour format with AM/PM dropdown.
|
|
78
|
+
* - h23: input in 24-hour format without AM/PM dropdown.
|
|
79
|
+
*
|
|
80
|
+
* Please note that the component's `value` is always stored in 24-hour format.
|
|
70
81
|
*
|
|
71
82
|
* @attr form - The form the component belongs to.
|
|
72
83
|
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
@@ -98,14 +109,16 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
98
109
|
placeholder: string;
|
|
99
110
|
/**
|
|
100
111
|
* Minimum time (00:00 - 23:59). If the user's input value is less than this value, the component will display an error state.
|
|
101
|
-
* Please note that
|
|
112
|
+
* Please note that regardless of the selected UI hour cycle, the component value is stored in 24-hour format.
|
|
113
|
+
* The `min` property must be provided in 24-hour format.
|
|
102
114
|
*
|
|
103
115
|
* @default "00:00"
|
|
104
116
|
*/
|
|
105
117
|
min: string;
|
|
106
118
|
/**
|
|
107
119
|
* Maximum time (00:00 - 23:59). If the user's input value is more than this value, the component will display an error state.
|
|
108
|
-
* Please note that
|
|
120
|
+
* Please note that regardless of the selected UI hour cycle, the component value is stored in 24-hour format.
|
|
121
|
+
* The `max` property must be provided in 24-hour format.
|
|
109
122
|
*
|
|
110
123
|
* @default "23:59"
|
|
111
124
|
*/
|
|
@@ -114,6 +127,11 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
114
127
|
* Whether the field is disabled. Controlled by daikin-input-group.
|
|
115
128
|
*/
|
|
116
129
|
disabled: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the field is readonly.
|
|
132
|
+
* When readonly, the user cannot change the value.
|
|
133
|
+
*/
|
|
134
|
+
readonly: boolean;
|
|
117
135
|
/**
|
|
118
136
|
* Whether the field is required. Controlled by daikin-input-group.
|
|
119
137
|
*/
|
|
@@ -122,28 +140,48 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
122
140
|
* Whether to show error state. Controlled by daikin-input-group. Ignored if disabled.
|
|
123
141
|
*/
|
|
124
142
|
error: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Hour cycle for the UI.
|
|
145
|
+
* - h12: input uses 12-hour UI + AM/PM dropdown.
|
|
146
|
+
* - h23: input uses 24-hour UI and hides AM/PM dropdown.
|
|
147
|
+
*
|
|
148
|
+
* @default "h12"
|
|
149
|
+
*/
|
|
150
|
+
hourCycle: HourCycle;
|
|
125
151
|
/**
|
|
126
152
|
* Minutes step. Specify the step size for the minutes when using the up and down arrow keys.
|
|
127
153
|
*
|
|
128
154
|
* @default "1"
|
|
129
155
|
*/
|
|
130
156
|
minutesStep: string;
|
|
157
|
+
/**
|
|
158
|
+
* Whether AM/PM dropdown should be single-open across sibling time pickers in the same root.
|
|
159
|
+
*/
|
|
160
|
+
meridiemSingleOpen: boolean;
|
|
131
161
|
private _label;
|
|
132
162
|
private _inputValue;
|
|
133
163
|
private _currentSelection;
|
|
134
164
|
private _meridiem;
|
|
135
165
|
/**
|
|
136
166
|
* Returns the value to be displayed in the input field.
|
|
137
|
-
* - If the main value is a valid 24-hour time, returns
|
|
167
|
+
* - If the main value is a valid 24-hour time, returns a display string based on the selected hour cycle.
|
|
138
168
|
* - If the current input value is not valid or meridiem is empty, returns the raw input value.
|
|
139
169
|
* - Otherwise, returns null.
|
|
140
170
|
*/
|
|
141
171
|
private get _value();
|
|
142
172
|
private _timeInputElement;
|
|
173
|
+
private _meridiemDropdown;
|
|
143
174
|
/**
|
|
144
175
|
* Tracks the current digit index for hour input (0: first digit, 1: second digit).
|
|
145
176
|
*/
|
|
146
177
|
private _hourDigitIndex;
|
|
178
|
+
private _preCompositionValue;
|
|
179
|
+
/**
|
|
180
|
+
* Tracks the current digit index for minute input (0: first digit, 1: second digit).
|
|
181
|
+
* When 0 (fresh entry), always starts with "0X" regardless of the existing value,
|
|
182
|
+
* preventing pre-existing values like "04" from being mistaken as a first-digit state.
|
|
183
|
+
*/
|
|
184
|
+
private _minuteDigitIndex;
|
|
147
185
|
/**
|
|
148
186
|
* Returns the value to display in the input field (from _inputValue state).
|
|
149
187
|
*/
|
|
@@ -160,16 +198,21 @@ export declare class DaikinTimePicker extends DDSFormElement {
|
|
|
160
198
|
private _handleChange;
|
|
161
199
|
private _handleMouseUp;
|
|
162
200
|
private _handleDigitInput;
|
|
201
|
+
private _handleCompositionStart;
|
|
202
|
+
private _handleCompositionEnd;
|
|
203
|
+
private _applyDigits;
|
|
163
204
|
private _handleKeyDown;
|
|
164
205
|
private _updateTimeByOffset;
|
|
165
206
|
private _handleBeforeInput;
|
|
166
207
|
/**
|
|
167
|
-
* Updates the value in 24-hour format if the input is valid,
|
|
208
|
+
* Updates the value in 24-hour format if the input is valid, while preserving the selected UI hour cycle.
|
|
168
209
|
*/
|
|
169
210
|
private _updateValue;
|
|
170
211
|
private _updateInputSelection;
|
|
171
212
|
private _updateSelection;
|
|
172
213
|
private _handleDropdownChange;
|
|
214
|
+
private _closeMeridiemDropdown;
|
|
215
|
+
private _handleMeridiemDropdownToggle;
|
|
173
216
|
/**
|
|
174
217
|
* Focuses on the inner time input.
|
|
175
218
|
* @param options focus options
|
|
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "DaikinTimePicker", {
|
|
|
8
8
|
exports.calcDigitInput = daikinTimePicker.calcDigitInput;
|
|
9
9
|
exports.formatPartsForUI = daikinTimePicker.formatPartsForUI;
|
|
10
10
|
exports.formatTimeForUI = daikinTimePicker.formatTimeForUI;
|
|
11
|
-
exports.from24HourFormat = daikinTimePicker.from24HourFormat;
|
|
12
11
|
exports.getTimeItemInSelection = daikinTimePicker.getTimeItemInSelection;
|
|
13
12
|
exports.isTimeOutOfRange = daikinTimePicker.isTimeOutOfRange;
|
|
14
13
|
exports.isValidValueTime = daikinTimePicker.isValidValueTime;
|
|
15
14
|
exports.parsePartsFromUIValue = daikinTimePicker.parsePartsFromUIValue;
|
|
16
|
-
exports.
|
|
15
|
+
exports.timeValueToUI = daikinTimePicker.timeValueToUI;
|
|
17
16
|
exports.tryParseTimeFromUIValue = daikinTimePicker.tryParseTimeFromUIValue;
|
|
17
|
+
exports.uiToTimeValue = daikinTimePicker.uiToTimeValue;
|
package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs
CHANGED
|
@@ -159,7 +159,7 @@ exports.DaikinToastNotificationManager = class DaikinToastNotificationManager ex
|
|
|
159
159
|
return lit.html`<aside
|
|
160
160
|
${ref_js.ref(this._containerRef)}
|
|
161
161
|
class=${cvaContainer({ position: this.position })}
|
|
162
|
-
popover
|
|
162
|
+
.popover=${"manual"}
|
|
163
163
|
>
|
|
164
164
|
<slot
|
|
165
165
|
@close=${this._handleClose}
|
|
@@ -20,45 +20,103 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
-
const TOGGLE_CLASS_NAME = classVarianceAuthority.cva(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
23
|
+
const TOGGLE_CLASS_NAME = classVarianceAuthority.cva(
|
|
24
|
+
[
|
|
25
|
+
"w-12",
|
|
26
|
+
"h-6",
|
|
27
|
+
"relative",
|
|
28
|
+
"rounded-full",
|
|
29
|
+
"transition-colors",
|
|
30
|
+
"duration-300",
|
|
31
|
+
"appearance-none",
|
|
32
|
+
"enabled:cursor-pointer",
|
|
33
|
+
"focus-visible:outline-solid",
|
|
34
|
+
"focus-visible:outline-2",
|
|
35
|
+
"focus-visible:outline-offset-2",
|
|
36
|
+
"enabled:outline-ddt-color-common-border-focus",
|
|
37
|
+
"disabled:bg-ddt-color-common-disabled",
|
|
38
|
+
"before:size-4",
|
|
39
|
+
"before:m-auto",
|
|
40
|
+
"before:rounded-full",
|
|
41
|
+
"before:absolute",
|
|
42
|
+
"before:top-0",
|
|
43
|
+
"before:bottom-0",
|
|
44
|
+
"before:left-1",
|
|
45
|
+
"before:transition",
|
|
46
|
+
"before:duration-300",
|
|
47
|
+
"before:border",
|
|
48
|
+
"before:border-transparent",
|
|
49
|
+
"disabled:before:bg-ddt-color-common-surface-hover"
|
|
50
|
+
],
|
|
51
|
+
{
|
|
52
|
+
variants: {
|
|
53
|
+
disabled: {
|
|
54
|
+
false: [],
|
|
55
|
+
true: ["cursor-default!"]
|
|
56
|
+
},
|
|
57
|
+
readonly: {
|
|
58
|
+
false: [],
|
|
59
|
+
true: ["cursor-default!"]
|
|
60
|
+
},
|
|
61
|
+
checked: {
|
|
62
|
+
false: [],
|
|
63
|
+
true: []
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
compoundVariants: [
|
|
67
|
+
{
|
|
68
|
+
readonly: false,
|
|
69
|
+
checked: false,
|
|
70
|
+
class: [
|
|
71
|
+
"bg-ddt-color-common-neutral-default",
|
|
72
|
+
"enabled:hover:bg-ddt-color-common-neutral-hover",
|
|
73
|
+
"enabled:active:bg-ddt-color-common-neutral-press",
|
|
74
|
+
"enabled:before:bg-ddt-color-common-background-default"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
readonly: false,
|
|
79
|
+
checked: true,
|
|
80
|
+
class: [
|
|
81
|
+
"bg-ddt-color-common-brand-default",
|
|
82
|
+
"enabled:hover:bg-ddt-color-common-brand-hover",
|
|
83
|
+
"enabled:active:bg-ddt-color-common-brand-press",
|
|
84
|
+
"before:translate-x-6",
|
|
85
|
+
"enabled:before:bg-ddt-color-common-background-default"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
readonly: true,
|
|
90
|
+
checked: false,
|
|
91
|
+
class: [
|
|
92
|
+
"border",
|
|
93
|
+
"border-ddt-color-common-disabled",
|
|
94
|
+
"bg-(--dds-color-common-surface-secondary)",
|
|
95
|
+
"before:bg-ddt-color-common-disabled",
|
|
96
|
+
"before:border-ddt-color-common-disabled"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
readonly: true,
|
|
101
|
+
checked: true,
|
|
102
|
+
class: [
|
|
103
|
+
"border",
|
|
104
|
+
"border-ddt-color-common-neutral-default",
|
|
105
|
+
"bg-(--dds-color-common-surface-secondary)",
|
|
106
|
+
"before:translate-x-6",
|
|
107
|
+
"before:bg-ddt-color-common-neutral-default",
|
|
108
|
+
"before:border-ddt-color-common-neutral-default"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
);
|
|
57
114
|
exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement {
|
|
58
115
|
constructor() {
|
|
59
116
|
super(...arguments);
|
|
60
117
|
this.checked = false;
|
|
61
118
|
this.disabled = false;
|
|
119
|
+
this.readonly = false;
|
|
62
120
|
this._inputRef = ref_js.createRef();
|
|
63
121
|
}
|
|
64
122
|
/**
|
|
@@ -72,7 +130,17 @@ exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement
|
|
|
72
130
|
_updateFormValue() {
|
|
73
131
|
this.setFormValue(this.checked ? this.value : null);
|
|
74
132
|
}
|
|
133
|
+
_handleClick(event) {
|
|
134
|
+
if (this.readonly) {
|
|
135
|
+
event.preventDefault();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
75
138
|
_handleChange(event) {
|
|
139
|
+
if (this.readonly) {
|
|
140
|
+
event.target.checked = this.checked;
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
76
144
|
this.checked = event.target.checked;
|
|
77
145
|
this._updateFormValue();
|
|
78
146
|
this.dispatchEvent(new Event("change", event));
|
|
@@ -80,13 +148,17 @@ exports.DaikinToggle = class DaikinToggle extends ddsFormElement.DDSFormElement
|
|
|
80
148
|
render() {
|
|
81
149
|
return lit.html`<input
|
|
82
150
|
${ref_js.ref(this._inputRef)}
|
|
83
|
-
class=${TOGGLE_CLASS_NAME
|
|
151
|
+
class=${TOGGLE_CLASS_NAME({
|
|
152
|
+
readonly: this.readonly && !this.disabled,
|
|
153
|
+
checked: this.checked
|
|
154
|
+
})}
|
|
84
155
|
type="checkbox"
|
|
85
156
|
name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
|
|
86
157
|
role="switch"
|
|
87
158
|
?disabled=${this.disabled}
|
|
88
159
|
.checked=${this.checked}
|
|
89
160
|
.value=${this.value}
|
|
161
|
+
@click=${this._handleClick}
|
|
90
162
|
@change=${this._handleChange}
|
|
91
163
|
/>`;
|
|
92
164
|
}
|
|
@@ -109,6 +181,9 @@ __decorateClass([
|
|
|
109
181
|
__decorateClass([
|
|
110
182
|
ddsProperty.property({ type: Boolean, reflect: true })
|
|
111
183
|
], exports.DaikinToggle.prototype, "disabled", 2);
|
|
184
|
+
__decorateClass([
|
|
185
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
186
|
+
], exports.DaikinToggle.prototype, "readonly", 2);
|
|
112
187
|
exports.DaikinToggle = __decorateClass([
|
|
113
188
|
decorators.ddsElement("daikin-toggle")
|
|
114
189
|
], exports.DaikinToggle);
|
|
@@ -36,6 +36,10 @@ export declare class DaikinToggle extends DDSFormElement {
|
|
|
36
36
|
* Specify the toggle switch disabled state.
|
|
37
37
|
*/
|
|
38
38
|
disabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the toggle switch is readonly.
|
|
41
|
+
*/
|
|
42
|
+
readonly: boolean;
|
|
39
43
|
private readonly _inputRef;
|
|
40
44
|
/**
|
|
41
45
|
* Focuses on the inner input.
|
|
@@ -43,6 +47,7 @@ export declare class DaikinToggle extends DDSFormElement {
|
|
|
43
47
|
*/
|
|
44
48
|
focus(options?: FocusOptions): void;
|
|
45
49
|
private _updateFormValue;
|
|
50
|
+
private _handleClick;
|
|
46
51
|
private _handleChange;
|
|
47
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
48
53
|
updated(changedProperties: PropertyValues<this>): void;
|
|
@@ -146,7 +146,7 @@ exports.DaikinTooltip = class DaikinTooltip extends ddsElement.DDSElement {
|
|
|
146
146
|
aria-labelledby="tooltip"
|
|
147
147
|
part="tooltip"
|
|
148
148
|
class=${cvaTooltip({ color: this.color })}
|
|
149
|
-
popover=${this.popoverValue}
|
|
149
|
+
.popover=${this.popoverValue}
|
|
150
150
|
@beforetoggle=${this._handleBeforeToggle}
|
|
151
151
|
@toggle=${this._handleToggle}
|
|
152
152
|
${this._autoUpdateController.refFloating()}
|
|
@@ -27,10 +27,10 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
27
27
|
"flex",
|
|
28
28
|
"items-center",
|
|
29
29
|
"w-full",
|
|
30
|
-
"
|
|
31
|
-
"py-
|
|
32
|
-
"
|
|
33
|
-
"pl-[calc((var(--level)+1)*
|
|
30
|
+
"text-(length:--dds-font-size-label-text)",
|
|
31
|
+
"py-(--dds-padding-30)",
|
|
32
|
+
"px-(--dds-padding-40)",
|
|
33
|
+
"pl-[calc((var(--level)+1)*(var(--dds-padding-40)))]",
|
|
34
34
|
"natural-break",
|
|
35
35
|
"focus-visible:outline-solid",
|
|
36
36
|
"focus-visible:outline-2",
|
|
@@ -60,11 +60,10 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
icon: {
|
|
63
|
-
false: ["before:size-
|
|
63
|
+
false: ["before:size-(--dds-icon)", "before:flex-none"],
|
|
64
64
|
true: [
|
|
65
65
|
"before:icon-[daikin--chevron-right]",
|
|
66
|
-
"before:size-
|
|
67
|
-
"before:m-0.5",
|
|
66
|
+
"before:size-(--dds-icon)",
|
|
68
67
|
"before:transition-all",
|
|
69
68
|
"before:flex-none",
|
|
70
69
|
"before:self-start"
|
|
@@ -130,7 +129,15 @@ exports.DaikinTreeItem = class DaikinTreeItem extends ddsElement.DDSElement {
|
|
|
130
129
|
@click=${() => common.emitTreeSelect(this)}
|
|
131
130
|
@keydown=${this._handleKeyDown}
|
|
132
131
|
>
|
|
133
|
-
<
|
|
132
|
+
<div class="flex items-start gap-(--dds-gap-20)">
|
|
133
|
+
<slot
|
|
134
|
+
name="left-icon"
|
|
135
|
+
class="slotted:shrink-0 size-(--dds-icon) slotted:size-(--dds-icon)"
|
|
136
|
+
></slot>
|
|
137
|
+
<span class="pt-(--dds-padding-05)">
|
|
138
|
+
<slot></slot>
|
|
139
|
+
</span>
|
|
140
|
+
</div>
|
|
134
141
|
</div>`;
|
|
135
142
|
}
|
|
136
143
|
updated(changedProperties) {
|
|
@@ -184,6 +191,15 @@ exports.DaikinTreeItem.styles = lit.css`
|
|
|
184
191
|
|
|
185
192
|
:host {
|
|
186
193
|
display: block;
|
|
194
|
+
|
|
195
|
+
--ddc-tree-item-min-h: var(--dds-input-height, 3rem);
|
|
196
|
+
--ddc-tree-item-padding-y: var(--dds-padding-30);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([data-density="compact"]),
|
|
200
|
+
:host-context([data-density="compact"]) {
|
|
201
|
+
--ddc-tree-item-min-h: calc(var(--dds-input-height) + 4px);
|
|
202
|
+
--ddc-tree-item-padding-y: var(--dds-padding-30);
|
|
187
203
|
}
|
|
188
204
|
`;
|
|
189
205
|
__decorateClass([
|
|
@@ -19,6 +19,7 @@ export declare const cvaTreeChildren: (props?: ({
|
|
|
19
19
|
* @fires tree-move-focus - _Internal use._ A custom event used to move the focus within a tree.
|
|
20
20
|
*
|
|
21
21
|
* @slot - A slot for the tree item content.
|
|
22
|
+
* @slot left-icon - A slot for an icon to be placed to the left of the content. Place `daikin-icon` or something similar.
|
|
22
23
|
*
|
|
23
24
|
* @csspart item - CSS styles applied to the `item` part target the internal `<div>` element wrapping the content. For instance, setting `cursor: grab;` changes the hover cursor, signaling that the tree item is draggable.
|
|
24
25
|
*
|
|
@@ -129,7 +129,13 @@ exports.DaikinTreeSection = class DaikinTreeSection extends ddsElement.DDSElemen
|
|
|
129
129
|
@click=${this._handleClick}
|
|
130
130
|
@keydown=${this._handleKeyDown}
|
|
131
131
|
>
|
|
132
|
-
<
|
|
132
|
+
<div class="flex items-start gap-(--dds-gap-20)">
|
|
133
|
+
<slot
|
|
134
|
+
name="left-icon"
|
|
135
|
+
class="slotted:shrink-0 size-(--dds-icon) slotted:size-(--dds-icon) mr-2"
|
|
136
|
+
></slot
|
|
137
|
+
><span class="pt-(--dds-padding-05)"><slot name="label"></slot></span>
|
|
138
|
+
</div>
|
|
133
139
|
</div>
|
|
134
140
|
<div role="group" ?hidden=${!this._open}>
|
|
135
141
|
<slot
|
|
@@ -16,6 +16,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
16
16
|
*
|
|
17
17
|
* @slot - A slot for tree children. Place `daikin-tree-section` and `daikin-tree-item` elements here.
|
|
18
18
|
* @slot label - A slot for section header content. Place a `span` element here.
|
|
19
|
+
* @slot left-icon - A slot for an icon to be placed to the right of the arrow and to the left of the label. Place `daikin-icon` or something similar.
|
|
19
20
|
*
|
|
20
21
|
* @example
|
|
21
22
|
*
|
|
@@ -28,7 +28,7 @@ exports.DaikinVerticalNavigation = class DaikinVerticalNavigation extends ddsEle
|
|
|
28
28
|
}
|
|
29
29
|
_handleToggle(event) {
|
|
30
30
|
const target = event.target;
|
|
31
|
-
if (target.type
|
|
31
|
+
if (target.type !== "menu") {
|
|
32
32
|
if (this.exclusive && this.openItems.length > 0) {
|
|
33
33
|
this.openItems = [];
|
|
34
34
|
this._reflectItemOpen();
|