@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
|
@@ -24,13 +24,13 @@ const cvaHeader = cva(
|
|
|
24
24
|
"flex",
|
|
25
25
|
"relative",
|
|
26
26
|
"items-start",
|
|
27
|
-
"gap-
|
|
27
|
+
"gap-0",
|
|
28
28
|
"w-full",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"py-3",
|
|
29
|
+
"px-(--dds-padding-30)",
|
|
30
|
+
"py-(--dds-padding-30)",
|
|
32
31
|
"font-bold",
|
|
33
32
|
"text-left",
|
|
33
|
+
"text-(length:--dds-font-size-label-text)",
|
|
34
34
|
"natural-break"
|
|
35
35
|
],
|
|
36
36
|
{
|
|
@@ -51,59 +51,169 @@ const cvaHeader = cva(
|
|
|
51
51
|
"focus-visible:before:z-1",
|
|
52
52
|
"focus-visible:before:border-2",
|
|
53
53
|
"focus-visible:before:border-ddt-color-common-border-focus"
|
|
54
|
+
],
|
|
55
|
+
section: [
|
|
56
|
+
"focus-visible:outline-hidden",
|
|
57
|
+
"focus-visible:before:absolute",
|
|
58
|
+
"focus-visible:before:-inset-1",
|
|
59
|
+
"focus-visible:before:z-1",
|
|
60
|
+
"focus-visible:before:border-2",
|
|
61
|
+
"focus-visible:before:border-ddt-color-common-border-focus"
|
|
54
62
|
]
|
|
55
63
|
},
|
|
56
64
|
disabled: {
|
|
57
|
-
false: [
|
|
65
|
+
false: [],
|
|
58
66
|
true: ["text-ddt-color-common-disabled"]
|
|
59
67
|
},
|
|
60
68
|
current: {
|
|
61
69
|
false: [],
|
|
62
|
-
true: []
|
|
70
|
+
true: [],
|
|
71
|
+
descendant: []
|
|
72
|
+
},
|
|
73
|
+
interactive: {
|
|
74
|
+
true: ["text-(length:--dds-font-size-label-text)"],
|
|
75
|
+
false: [
|
|
76
|
+
"font-normal",
|
|
77
|
+
"cursor-default",
|
|
78
|
+
"pointer-events-none",
|
|
79
|
+
"tracking-widest",
|
|
80
|
+
"text-(length:--dds-font-size-helper-text)"
|
|
81
|
+
]
|
|
63
82
|
}
|
|
64
83
|
},
|
|
84
|
+
defaultVariants: {
|
|
85
|
+
interactive: true
|
|
86
|
+
},
|
|
65
87
|
compoundVariants: [
|
|
66
88
|
{
|
|
67
|
-
type: ["link", "menu"],
|
|
89
|
+
type: ["link", "menu", "section"],
|
|
90
|
+
disabled: false,
|
|
91
|
+
class: ["text-ddt-color-common-neutral-default"]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: ["link", "menu", "section"],
|
|
68
95
|
disabled: false,
|
|
96
|
+
current: false,
|
|
69
97
|
class: [
|
|
70
98
|
"hover:text-ddt-color-common-neutral-hover",
|
|
71
99
|
"active:text-ddt-color-common-neutral-press"
|
|
72
100
|
]
|
|
73
101
|
},
|
|
102
|
+
{
|
|
103
|
+
type: ["link", "menu", "section"],
|
|
104
|
+
disabled: false,
|
|
105
|
+
current: true,
|
|
106
|
+
class: [
|
|
107
|
+
"hover:text-ddt-color-common-neutral-default",
|
|
108
|
+
"active:text-ddt-color-common-neutral-default"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
74
111
|
{
|
|
75
112
|
type: "menu",
|
|
76
113
|
disabled: false,
|
|
77
114
|
class: ["cursor-pointer"]
|
|
78
115
|
},
|
|
79
116
|
{
|
|
80
|
-
type: "
|
|
117
|
+
type: "menu",
|
|
118
|
+
disabled: false,
|
|
119
|
+
current: false,
|
|
120
|
+
class: [
|
|
121
|
+
"hover:bg-ddt-color-common-surface-hover",
|
|
122
|
+
"active:bg-ddt-color-common-surface-press"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: "menu",
|
|
127
|
+
disabled: false,
|
|
128
|
+
current: true,
|
|
129
|
+
class: [
|
|
130
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
131
|
+
"active:bg-ddt-color-common-surface-brand-press"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "section",
|
|
136
|
+
disabled: false,
|
|
137
|
+
class: ["cursor-pointer"]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: ["link", "section"],
|
|
81
141
|
disabled: true,
|
|
82
142
|
class: ["pointer-events-none"]
|
|
83
143
|
},
|
|
84
144
|
{
|
|
85
|
-
type: ["link", "menu"],
|
|
145
|
+
type: ["link", "menu", "section"],
|
|
86
146
|
disabled: false,
|
|
87
147
|
current: false,
|
|
88
148
|
class: [
|
|
89
|
-
"
|
|
90
|
-
"
|
|
149
|
+
"hover:bg-ddt-color-common-surface-hover",
|
|
150
|
+
"active:bg-ddt-color-common-surface-press"
|
|
91
151
|
]
|
|
92
152
|
},
|
|
93
153
|
{
|
|
94
|
-
type: ["link", "menu"],
|
|
154
|
+
type: ["link", "menu", "section"],
|
|
155
|
+
disabled: false,
|
|
156
|
+
current: "descendant",
|
|
157
|
+
class: [
|
|
158
|
+
"text-ddt-color-common-neutral-default",
|
|
159
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
160
|
+
"active:bg-ddt-color-common-surface-brand-press"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: ["link", "menu", "section"],
|
|
95
165
|
disabled: false,
|
|
96
166
|
current: true,
|
|
97
167
|
class: [
|
|
98
|
-
"
|
|
99
|
-
"
|
|
168
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
169
|
+
"active:bg-ddt-color-common-surface-brand-press"
|
|
100
170
|
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: ["link", "menu", "section"],
|
|
174
|
+
disabled: false,
|
|
175
|
+
current: "descendant",
|
|
176
|
+
interactive: true,
|
|
177
|
+
class: [
|
|
178
|
+
"bg-ddt-color-common-surface-selected-secondary",
|
|
179
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
180
|
+
"active:bg-ddt-color-common-surface-brand-press"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: ["menu", "section"],
|
|
185
|
+
disabled: false,
|
|
186
|
+
current: "descendant",
|
|
187
|
+
interactive: false,
|
|
188
|
+
class: ["bg-ddt-color-common-surface-selected-secondary"]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: ["link", "menu", "section"],
|
|
192
|
+
disabled: true,
|
|
193
|
+
class: ["text-ddt-color-common-disabled"]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
type: ["link", "menu", "section"],
|
|
197
|
+
disabled: true,
|
|
198
|
+
current: "descendant",
|
|
199
|
+
class: ["bg-ddt-color-common-surface-disabled-overlay/80"]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: ["link", "menu", "section"],
|
|
203
|
+
disabled: true,
|
|
204
|
+
interactive: false,
|
|
205
|
+
class: ["text-ddt-color-common-disabled"]
|
|
101
206
|
}
|
|
102
207
|
]
|
|
103
208
|
}
|
|
104
209
|
);
|
|
105
210
|
const cvaChevron = cva(
|
|
106
|
-
[
|
|
211
|
+
[
|
|
212
|
+
"size-(--dds-icon)",
|
|
213
|
+
"transition-all",
|
|
214
|
+
"icon-[daikin--chevron-down]",
|
|
215
|
+
"flex-none"
|
|
216
|
+
],
|
|
107
217
|
{
|
|
108
218
|
variants: {
|
|
109
219
|
open: {
|
|
@@ -143,7 +253,8 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
143
253
|
this.badgeMessage = null;
|
|
144
254
|
this.disabled = false;
|
|
145
255
|
this.addEventListener("click", (event) => {
|
|
146
|
-
|
|
256
|
+
const isLinkInvalid = this.disabled || this.type === "link" && this.href == null || this.type === "section" && this.href == null;
|
|
257
|
+
if (isLinkInvalid) {
|
|
147
258
|
event.stopImmediatePropagation();
|
|
148
259
|
}
|
|
149
260
|
});
|
|
@@ -179,6 +290,15 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
179
290
|
if (!slot) return [];
|
|
180
291
|
return slot.assignedElements({ flatten: true }).filter((el) => el.localName === "daikin-vertical-navigation-menu-item");
|
|
181
292
|
}
|
|
293
|
+
get _effectiveCurrent() {
|
|
294
|
+
if (this.current === true) {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
if (this.current === "descendant") {
|
|
298
|
+
return "descendant";
|
|
299
|
+
}
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
182
302
|
_propagateDisabledToChildren() {
|
|
183
303
|
for (const item of this._getSlottedItems()) {
|
|
184
304
|
if (this.disabled) {
|
|
@@ -204,11 +324,13 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
204
324
|
this._propagateDisabledToChildren();
|
|
205
325
|
}
|
|
206
326
|
render() {
|
|
207
|
-
const open = this.open;
|
|
208
|
-
const
|
|
327
|
+
const open = this.type === "section" ? true : this.open;
|
|
328
|
+
const current = this._effectiveCurrent;
|
|
329
|
+
const isCurrent = current === true;
|
|
330
|
+
const indicator = isCurrent ? html`<div class=${cvaIndicator({ disabled: this.disabled })}></div>` : nothing;
|
|
209
331
|
const leftIconSlot = html`<slot
|
|
210
332
|
name="left-icon"
|
|
211
|
-
class="icon-size-
|
|
333
|
+
class="icon-size-token flex-none slotted:flex-none"
|
|
212
334
|
></slot>`;
|
|
213
335
|
const badgeEl = this.badge !== "none" ? html`<daikin-badge
|
|
214
336
|
mode="standalone"
|
|
@@ -219,19 +341,18 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
219
341
|
${this.badgeMessage ? html`<span class="sr-only">${this.badgeMessage}</span>` : nothing}` : nothing;
|
|
220
342
|
if (this.type === "link") {
|
|
221
343
|
const disabled = this.disabled || this.href == null;
|
|
222
|
-
return html`<div
|
|
344
|
+
return html`<div
|
|
345
|
+
class="w-full relative ${disabled ? "pointer-events-none" : ""}"
|
|
346
|
+
role="listitem"
|
|
347
|
+
>
|
|
223
348
|
${indicator}
|
|
224
349
|
<a
|
|
225
350
|
${ref(this._triggerRef)}
|
|
226
|
-
class=${cvaHeader({
|
|
227
|
-
type: "link",
|
|
228
|
-
disabled,
|
|
229
|
-
current: this.current
|
|
230
|
-
})}
|
|
351
|
+
class=${cvaHeader({ type: "link", disabled, current })}
|
|
231
352
|
href=${ifDefined(!disabled ? this.href ?? void 0 : void 0)}
|
|
232
353
|
role=${ifDefined(disabled ? "link" : void 0)}
|
|
233
354
|
aria-disabled=${ifDefined(disabled ? "true" : void 0)}
|
|
234
|
-
aria-current=${ifDefined(
|
|
355
|
+
aria-current=${ifDefined(isCurrent ? "page" : void 0)}
|
|
235
356
|
tabindex=${disabled ? -1 : 0}
|
|
236
357
|
@click=${(event) => {
|
|
237
358
|
if (disabled) {
|
|
@@ -241,16 +362,78 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
241
362
|
}}
|
|
242
363
|
>
|
|
243
364
|
${leftIconSlot}
|
|
244
|
-
<span class="flex-1 min-w-0
|
|
245
|
-
|
|
365
|
+
<span class="flex-1 min-w-0 pl-1 leading-normal"
|
|
366
|
+
><slot name="label"></slot
|
|
367
|
+
></span>
|
|
368
|
+
<span class="flex items-center gap-1 flex-none pl-(--dds-space-200)">
|
|
246
369
|
<span class="size-3 flex-none flex items-center justify-center"
|
|
247
370
|
>${badgeEl}</span
|
|
248
371
|
>
|
|
249
|
-
<span class="size-
|
|
372
|
+
<span class="size-(--dds-icon) flex-none"></span>
|
|
250
373
|
</span>
|
|
251
374
|
</a>
|
|
252
375
|
</div>`;
|
|
253
376
|
}
|
|
377
|
+
if (this.type === "section") {
|
|
378
|
+
const disabled = this.disabled;
|
|
379
|
+
const isInteractive = !!this.href;
|
|
380
|
+
const headerClass = cvaHeader({
|
|
381
|
+
type: "section",
|
|
382
|
+
disabled,
|
|
383
|
+
current,
|
|
384
|
+
interactive: isInteractive
|
|
385
|
+
});
|
|
386
|
+
const renderSectionHeader = this.href ? html`<a
|
|
387
|
+
${ref(this._triggerRef)}
|
|
388
|
+
class=${headerClass}
|
|
389
|
+
href=${ifDefined(!disabled ? this.href : void 0)}
|
|
390
|
+
role=${ifDefined(disabled ? "link" : void 0)}
|
|
391
|
+
aria-disabled=${ifDefined(disabled ? "true" : void 0)}
|
|
392
|
+
aria-current=${ifDefined(isCurrent ? "page" : void 0)}
|
|
393
|
+
tabindex=${disabled ? -1 : 0}
|
|
394
|
+
@click=${(event) => {
|
|
395
|
+
if (disabled) {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
this.dispatchEvent(new Event("toggle", event));
|
|
399
|
+
}}
|
|
400
|
+
>
|
|
401
|
+
${leftIconSlot}
|
|
402
|
+
<span class="flex-1 min-w-0 pl-1 leading-normal"
|
|
403
|
+
><slot name="label"></slot
|
|
404
|
+
></span>
|
|
405
|
+
<span
|
|
406
|
+
class="flex items-center gap-1 flex-none pl-(--dds-space-200)"
|
|
407
|
+
>
|
|
408
|
+
<span class="size-3 flex-none flex items-center justify-center"
|
|
409
|
+
>${badgeEl}</span
|
|
410
|
+
>
|
|
411
|
+
<span class="size-(--dds-icon) flex-none"></span>
|
|
412
|
+
</span>
|
|
413
|
+
</a>` : html`<div ${ref(this._triggerRef)} class=${headerClass}>
|
|
414
|
+
${leftIconSlot}
|
|
415
|
+
<span
|
|
416
|
+
class="relative top-px flex-1 min-w-0 pl-1 tracking-widest text-(length:--dds-font-size-helper-text) leading-normal"
|
|
417
|
+
><slot name="label"></slot
|
|
418
|
+
></span>
|
|
419
|
+
<span
|
|
420
|
+
class="flex items-center gap-1 flex-none pl-(--dds-space-200)"
|
|
421
|
+
>
|
|
422
|
+
<span class="size-3 flex-none flex items-center justify-center"
|
|
423
|
+
>${badgeEl}</span
|
|
424
|
+
>
|
|
425
|
+
<span class="size-(--dds-icon) flex-none"></span>
|
|
426
|
+
</span>
|
|
427
|
+
</div>`;
|
|
428
|
+
return html`<div class="w-full" role="listitem">
|
|
429
|
+
<div class="relative">${indicator} ${renderSectionHeader}</div>
|
|
430
|
+
<div role="region" class=${cvaContent({ open: true })}>
|
|
431
|
+
<div class="overflow-hidden" role="list">
|
|
432
|
+
<slot @slotchange=${this._handleMenuSlotChange}></slot>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
</div>`;
|
|
436
|
+
}
|
|
254
437
|
return html`<div class="w-full" role="listitem">
|
|
255
438
|
<div class="relative">
|
|
256
439
|
${indicator}
|
|
@@ -261,18 +444,20 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
261
444
|
class=${cvaHeader({
|
|
262
445
|
type: "menu",
|
|
263
446
|
disabled: this.disabled,
|
|
264
|
-
current
|
|
447
|
+
current
|
|
265
448
|
})}
|
|
266
449
|
?disabled=${this.disabled}
|
|
267
|
-
aria-current=${ifDefined(
|
|
450
|
+
aria-current=${ifDefined(isCurrent ? "page" : void 0)}
|
|
268
451
|
aria-expanded=${open}
|
|
269
452
|
aria-controls="content"
|
|
270
453
|
tabindex=${this.disabled ? -1 : 0}
|
|
271
454
|
@click=${this._handleTriggerClick}
|
|
272
455
|
>
|
|
273
456
|
${leftIconSlot}
|
|
274
|
-
<span class="flex-1 min-w-0
|
|
275
|
-
|
|
457
|
+
<span class="flex-1 min-w-0 pl-1 leading-normal"
|
|
458
|
+
><slot name="label"></slot
|
|
459
|
+
></span>
|
|
460
|
+
<span class="flex items-center gap-1 flex-none pl-(--dds-space-200)">
|
|
276
461
|
<span class="size-3 flex-none flex items-center justify-center"
|
|
277
462
|
>${badgeEl}</span
|
|
278
463
|
>
|
|
@@ -285,7 +470,7 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
285
470
|
role="region"
|
|
286
471
|
class=${cvaContent({ open })}
|
|
287
472
|
aria-labelledby="menu-button"
|
|
288
|
-
|
|
473
|
+
.inert=${!open}
|
|
289
474
|
>
|
|
290
475
|
<div class="overflow-hidden" role="list">
|
|
291
476
|
<slot @slotchange=${this._handleMenuSlotChange}></slot>
|
|
@@ -300,7 +485,7 @@ let DaikinVerticalNavigationItem = class extends DDSElement {
|
|
|
300
485
|
*/
|
|
301
486
|
focus(options) {
|
|
302
487
|
var _a;
|
|
303
|
-
const isDisabled = this.disabled || this.type
|
|
488
|
+
const isDisabled = this.disabled || this.type !== "menu" && this.href == null;
|
|
304
489
|
if (isDisabled) {
|
|
305
490
|
return;
|
|
306
491
|
}
|
|
@@ -315,7 +500,6 @@ DaikinVerticalNavigationItem.styles = css`
|
|
|
315
500
|
position: relative;
|
|
316
501
|
--divider-bottom-display: none;
|
|
317
502
|
}
|
|
318
|
-
|
|
319
503
|
:host::after {
|
|
320
504
|
content: "";
|
|
321
505
|
display: var(--divider-bottom-display, none);
|
|
@@ -334,7 +518,8 @@ __decorateClass([
|
|
|
334
518
|
fallbackValue: "link",
|
|
335
519
|
isAllowedValue: oneOf([
|
|
336
520
|
"link",
|
|
337
|
-
"menu"
|
|
521
|
+
"menu",
|
|
522
|
+
"section"
|
|
338
523
|
])
|
|
339
524
|
})
|
|
340
525
|
], DaikinVerticalNavigationItem.prototype, "type", 2);
|
|
@@ -348,7 +533,32 @@ __decorateClass([
|
|
|
348
533
|
property({ type: Boolean, reflect: true })
|
|
349
534
|
], DaikinVerticalNavigationItem.prototype, "open", 2);
|
|
350
535
|
__decorateClass([
|
|
351
|
-
property({
|
|
536
|
+
property({
|
|
537
|
+
reflect: true,
|
|
538
|
+
converter: {
|
|
539
|
+
fromAttribute(value) {
|
|
540
|
+
if (value === null) {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
if (value === "" || value === "true") {
|
|
544
|
+
return true;
|
|
545
|
+
}
|
|
546
|
+
if (value === "descendant") {
|
|
547
|
+
return "descendant";
|
|
548
|
+
}
|
|
549
|
+
return false;
|
|
550
|
+
},
|
|
551
|
+
toAttribute(value) {
|
|
552
|
+
if (value === false) {
|
|
553
|
+
return null;
|
|
554
|
+
}
|
|
555
|
+
if (value === true) {
|
|
556
|
+
return "";
|
|
557
|
+
}
|
|
558
|
+
return "descendant";
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
})
|
|
352
562
|
], DaikinVerticalNavigationItem.prototype, "current", 2);
|
|
353
563
|
__decorateClass([
|
|
354
564
|
property({
|
|
@@ -38,7 +38,7 @@ import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js"
|
|
|
38
38
|
export declare class DaikinVerticalNavigationMenuItem extends DDSElement implements DDSNavigable {
|
|
39
39
|
static readonly styles: import('lit').CSSResult;
|
|
40
40
|
/**
|
|
41
|
-
* The link `href`. When omitted, the item is rendered as
|
|
41
|
+
* The link `href`. When omitted, the item is rendered as an interactive item without navigation target.
|
|
42
42
|
*/
|
|
43
43
|
href: string | null;
|
|
44
44
|
/**
|
|
@@ -46,6 +46,11 @@ export declare class DaikinVerticalNavigationMenuItem extends DDSElement impleme
|
|
|
46
46
|
* A disabled item cannot be clicked or focused.
|
|
47
47
|
*/
|
|
48
48
|
disabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether this sub-menu item is the currently active/selected item.
|
|
51
|
+
* When `true`, a blue vertical indicator bar is displayed on the left side.
|
|
52
|
+
*/
|
|
53
|
+
current: boolean;
|
|
49
54
|
/**
|
|
50
55
|
* Badge to display on the right side of the item.
|
|
51
56
|
* Uses `daikin-badge` in standalone dot mode. Set to `"none"` (default) to hide the badge.
|
package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { unsafeCSS, css,
|
|
2
|
+
import { unsafeCSS, css, html, nothing } from "lit";
|
|
3
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
5
|
import "../../base/dds-form-element.js";
|
|
@@ -20,29 +20,30 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
20
|
};
|
|
21
21
|
const cvaInner = cva(
|
|
22
22
|
[
|
|
23
|
+
"block",
|
|
24
|
+
"relative",
|
|
25
|
+
"flex",
|
|
26
|
+
"justify-between",
|
|
27
|
+
"items-start",
|
|
28
|
+
"gap-0",
|
|
23
29
|
"text-left",
|
|
30
|
+
"relative",
|
|
31
|
+
"w-full",
|
|
32
|
+
"py-(--dds-padding-10)",
|
|
33
|
+
"px-(--dds-padding-40)",
|
|
24
34
|
// Hover/active background overlay
|
|
25
35
|
"before:absolute",
|
|
26
36
|
"before:inset-0",
|
|
27
37
|
"before:w-full",
|
|
28
38
|
"before:h-full",
|
|
29
|
-
|
|
30
|
-
"after:absolute",
|
|
31
|
-
"after:inset-0",
|
|
32
|
-
"after:w-full",
|
|
33
|
-
"after:h-full",
|
|
34
|
-
"focus-visible:outline-hidden",
|
|
35
|
-
"focus-visible:after:outline-solid",
|
|
36
|
-
"focus-visible:after:outline-2",
|
|
37
|
-
"focus-visible:after:-outline-offset-2",
|
|
38
|
-
"focus-visible:after:outline-ddt-color-common-border-focus",
|
|
39
|
-
"focus-visible:after:z-1",
|
|
40
|
-
// Background on hover/press (link-enabled = <a> with href)
|
|
41
|
-
"not-active:group-hover:link-enabled:before:bg-ddt-color-common-surface-hover",
|
|
42
|
-
"active:link-enabled:before:bg-ddt-color-common-surface-press"
|
|
39
|
+
"focus-visible:outline-hidden"
|
|
43
40
|
],
|
|
44
41
|
{
|
|
45
42
|
variants: {
|
|
43
|
+
current: {
|
|
44
|
+
false: [],
|
|
45
|
+
true: []
|
|
46
|
+
},
|
|
46
47
|
disabled: {
|
|
47
48
|
false: [
|
|
48
49
|
// Vertical navigation neutral text colors (hard-coded for this component)
|
|
@@ -52,14 +53,77 @@ const cvaInner = cva(
|
|
|
52
53
|
],
|
|
53
54
|
true: ["text-ddt-color-common-disabled", "pointer-events-none"]
|
|
54
55
|
}
|
|
55
|
-
}
|
|
56
|
+
},
|
|
57
|
+
compoundVariants: [
|
|
58
|
+
{
|
|
59
|
+
current: true,
|
|
60
|
+
disabled: false,
|
|
61
|
+
class: [
|
|
62
|
+
"group-hover:text-ddt-color-common-neutral-default",
|
|
63
|
+
"active:text-ddt-color-common-neutral-default"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
const cvaContainer = cva(
|
|
70
|
+
[
|
|
71
|
+
"group",
|
|
72
|
+
"flex",
|
|
73
|
+
"justify-between",
|
|
74
|
+
"items-start",
|
|
75
|
+
"w-full",
|
|
76
|
+
"py-(--dds-padding-20)",
|
|
77
|
+
"px-(--dds-padding-60)",
|
|
78
|
+
"text-left",
|
|
79
|
+
"isolate",
|
|
80
|
+
"natural-break"
|
|
81
|
+
],
|
|
82
|
+
{
|
|
83
|
+
variants: {
|
|
84
|
+
disabled: {
|
|
85
|
+
false: [
|
|
86
|
+
"cursor-pointer",
|
|
87
|
+
"has-focus-visible:outline-2",
|
|
88
|
+
"has-focus-visible:-outline-offset-2",
|
|
89
|
+
"has-focus-visible:outline-ddt-color-common-border-focus"
|
|
90
|
+
],
|
|
91
|
+
true: []
|
|
92
|
+
},
|
|
93
|
+
current: {
|
|
94
|
+
false: [
|
|
95
|
+
"hover:bg-ddt-color-common-surface-hover",
|
|
96
|
+
"active:bg-ddt-color-common-surface-press"
|
|
97
|
+
],
|
|
98
|
+
true: [
|
|
99
|
+
"bg-ddt-color-common-surface-default",
|
|
100
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
101
|
+
"active:bg-ddt-color-common-surface-brand-press"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
compoundVariants: [
|
|
106
|
+
{
|
|
107
|
+
disabled: true,
|
|
108
|
+
class: ["pointer-events-none"]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
56
111
|
}
|
|
57
112
|
);
|
|
113
|
+
const cvaIndicator = cva(["absolute", "inset-y-0", "w-1", "z-1", "left-0"], {
|
|
114
|
+
variants: {
|
|
115
|
+
disabled: {
|
|
116
|
+
false: ["bg-ddt-color-common-brand-default"],
|
|
117
|
+
true: ["bg-ddt-color-common-disabled"]
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
});
|
|
58
121
|
let DaikinVerticalNavigationMenuItem = class extends DDSElement {
|
|
59
122
|
constructor() {
|
|
60
123
|
super();
|
|
61
124
|
this.href = null;
|
|
62
125
|
this.disabled = false;
|
|
126
|
+
this.current = false;
|
|
63
127
|
this.badgeMessage = null;
|
|
64
128
|
this.addEventListener("click", (event) => {
|
|
65
129
|
if (this._disabled) {
|
|
@@ -80,7 +144,7 @@ let DaikinVerticalNavigationMenuItem = class extends DDSElement {
|
|
|
80
144
|
* @private
|
|
81
145
|
*/
|
|
82
146
|
getDDSNavigationTarget() {
|
|
83
|
-
if (this.href == null
|
|
147
|
+
if (this.disabled || this.href == null) {
|
|
84
148
|
return null;
|
|
85
149
|
}
|
|
86
150
|
return {
|
|
@@ -90,37 +154,40 @@ let DaikinVerticalNavigationMenuItem = class extends DDSElement {
|
|
|
90
154
|
}
|
|
91
155
|
render() {
|
|
92
156
|
const disabled = this._disabled;
|
|
157
|
+
const indicator = this.current ? html`<span class=${cvaIndicator({ disabled })}></span>` : nothing;
|
|
93
158
|
return html`
|
|
94
159
|
<div
|
|
95
|
-
class
|
|
160
|
+
class=${cvaContainer({ disabled, current: this.current })}
|
|
96
161
|
role="listitem"
|
|
97
162
|
>
|
|
98
163
|
<a
|
|
99
|
-
class=${cvaInner({ disabled })}
|
|
164
|
+
class=${cvaInner({ disabled, current: this.current })}
|
|
100
165
|
href=${ifDefined(!disabled ? this.href ?? void 0 : void 0)}
|
|
101
166
|
role=${ifDefined(disabled ? "link" : void 0)}
|
|
102
167
|
aria-disabled=${ifDefined(disabled ? "true" : void 0)}
|
|
168
|
+
aria-current=${ifDefined(this.current ? "page" : void 0)}
|
|
103
169
|
tabindex=${disabled ? -1 : 0}
|
|
104
170
|
>
|
|
105
|
-
|
|
106
|
-
|
|
171
|
+
${indicator}
|
|
172
|
+
<span class="flex items-start flex-1 min-w-0 relative"
|
|
173
|
+
><slot
|
|
107
174
|
name="left-icon"
|
|
108
|
-
class="icon-size-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
175
|
+
class="icon-size-token slotted:flex-none z-1 slotted:text-inherit"
|
|
176
|
+
><span class="flex-none block -ml-1"></span></slot
|
|
177
|
+
><span
|
|
178
|
+
class="relative block pl-1 pr-(--dds-space-200) text-left min-w-0 text-(length:--dds-font-size-label-text) leading-normal natural-break"
|
|
179
|
+
><slot></slot></span
|
|
180
|
+
></span>
|
|
181
|
+
<span class="flex items-start mt-1.5 z-1 pointer-events-none">
|
|
182
|
+
${this.badge !== "none" ? html`<daikin-badge
|
|
183
|
+
mode="standalone"
|
|
184
|
+
type="dot"
|
|
185
|
+
size="large"
|
|
186
|
+
color=${this.badge}
|
|
187
|
+
></daikin-badge>` : html`<span class="block -mr-1 w-3"></span>`}
|
|
113
188
|
</span>
|
|
114
189
|
${this.badgeMessage && this.badge !== "none" ? html`<span class="sr-only">${this.badgeMessage}</span>` : nothing}
|
|
115
190
|
</a>
|
|
116
|
-
<span class="flex items-start mt-1.5 z-1 pointer-events-none">
|
|
117
|
-
${this.badge !== "none" ? html`<daikin-badge
|
|
118
|
-
mode="standalone"
|
|
119
|
-
type="dot"
|
|
120
|
-
size="large"
|
|
121
|
-
color=${this.badge}
|
|
122
|
-
></daikin-badge>` : html`<span class="block -mr-1 w-3"></span>`}
|
|
123
|
-
</span>
|
|
124
191
|
</div>
|
|
125
192
|
`;
|
|
126
193
|
}
|
|
@@ -151,6 +218,9 @@ __decorateClass([
|
|
|
151
218
|
__decorateClass([
|
|
152
219
|
property({ type: Boolean, reflect: true })
|
|
153
220
|
], DaikinVerticalNavigationMenuItem.prototype, "disabled", 2);
|
|
221
|
+
__decorateClass([
|
|
222
|
+
property({ type: Boolean, reflect: true })
|
|
223
|
+
], DaikinVerticalNavigationMenuItem.prototype, "current", 2);
|
|
154
224
|
__decorateClass([
|
|
155
225
|
property({
|
|
156
226
|
type: String,
|