@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
|
@@ -31,11 +31,9 @@ const cvaInput = cva(
|
|
|
31
31
|
"gap-2",
|
|
32
32
|
"w-full",
|
|
33
33
|
"h-full",
|
|
34
|
-
"min-h-
|
|
34
|
+
"min-h-(--dds-input-height)",
|
|
35
35
|
"bg-ddt-color-common-background-default",
|
|
36
|
-
"
|
|
37
|
-
"pl-4",
|
|
38
|
-
"pr-16",
|
|
36
|
+
"pr-[calc(var(--dds-padding-30)+var(--dds-gap-10)*2+var(--dds-icon)*2)]",
|
|
39
37
|
"rounded-sm",
|
|
40
38
|
"overflow-hidden",
|
|
41
39
|
"text-left",
|
|
@@ -52,6 +50,7 @@ const cvaInput = cva(
|
|
|
52
50
|
"enabled:outline-(--color-base)",
|
|
53
51
|
"disabled:text-ddt-color-common-disabled",
|
|
54
52
|
"disabled:outline-ddt-color-common-disabled",
|
|
53
|
+
"disabled:placeholder:text-ddt-color-common-disabled",
|
|
55
54
|
"enabled:after:text-ddt-color-common-text-primary",
|
|
56
55
|
"disabled:after:text-ddt-color-common-disabled",
|
|
57
56
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
@@ -66,6 +65,12 @@ const cvaInput = cva(
|
|
|
66
65
|
"focus-visible:[--color-base:var(--dds-color-common-border-focus)]"
|
|
67
66
|
],
|
|
68
67
|
true: ["[--color-base:var(--dds-color-common-danger-default)]"]
|
|
68
|
+
},
|
|
69
|
+
hasLeftIcon: {
|
|
70
|
+
false: ["pl-[calc(var(--dds-padding-30)+var(--dds-space-100))]"],
|
|
71
|
+
true: [
|
|
72
|
+
"pl-[calc(var(--dds-padding-30)+var(--dds-gap-10)+var(--dds-icon)+var(--dds-space-100))]"
|
|
73
|
+
]
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
76
|
}
|
|
@@ -76,9 +81,11 @@ const cvaOption = cva(
|
|
|
76
81
|
"items-center",
|
|
77
82
|
"gap-1",
|
|
78
83
|
"size-full",
|
|
79
|
-
"min-h-
|
|
80
|
-
"
|
|
84
|
+
"min-h-(--dds-input-height)",
|
|
85
|
+
"py-[calc(var(--dds-padding-30)+0.09375rem)]",
|
|
86
|
+
"px-(--dds-padding-30)",
|
|
81
87
|
"text-left",
|
|
88
|
+
"text-(length:--dds-font-size-label-text)",
|
|
82
89
|
"relative",
|
|
83
90
|
"data-focus:outline-solid",
|
|
84
91
|
"data-focus:outline-2",
|
|
@@ -98,10 +105,10 @@ const cvaOption = cva(
|
|
|
98
105
|
"hover:[--color-primary:var(--dds-color-common-surface-selected-hover)]",
|
|
99
106
|
"active:[--color-primary:var(--dds-color-common-surface-selected-press)]",
|
|
100
107
|
"after:icon-[daikin--dropdown-check]",
|
|
101
|
-
"after:size-
|
|
102
|
-
"pr-10",
|
|
108
|
+
"after:size-(--dds-icon)",
|
|
109
|
+
"pr-[calc((var(--dds-padding-10))+var(--dds-icon)+var(--dds-padding-30))]",
|
|
103
110
|
"after:absolute",
|
|
104
|
-
"after:right-
|
|
111
|
+
"after:right-(--dds-padding-30)",
|
|
105
112
|
"after:top-1/2",
|
|
106
113
|
"after:-translate-y-1/2"
|
|
107
114
|
]
|
|
@@ -123,7 +130,7 @@ const cvaOption = cva(
|
|
|
123
130
|
const cvaArrow = cva(
|
|
124
131
|
[
|
|
125
132
|
"icon-[daikin--chevron-down]",
|
|
126
|
-
"size-
|
|
133
|
+
"size-(--dds-icon)",
|
|
127
134
|
"shrink-0",
|
|
128
135
|
"z-10",
|
|
129
136
|
"pointer-events-auto"
|
|
@@ -185,17 +192,22 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
185
192
|
this.required = false;
|
|
186
193
|
this.error = false;
|
|
187
194
|
this.open = false;
|
|
195
|
+
this.readonly = false;
|
|
188
196
|
this.items = [];
|
|
189
197
|
this._viewItems = [];
|
|
190
198
|
this._currentFocusItemIndex = null;
|
|
191
199
|
this.filter = defaultFilterFn;
|
|
192
200
|
this._label = null;
|
|
201
|
+
this._hasLeftIcon = false;
|
|
193
202
|
this._autoUpdateController = new FloatingUIAutoUpdateController(this);
|
|
194
203
|
this._clickOutsideController = new ClickOutsideController(
|
|
195
204
|
this,
|
|
196
205
|
this._onClickOutside
|
|
197
206
|
);
|
|
198
207
|
}
|
|
208
|
+
get _isPopupOpen() {
|
|
209
|
+
return this.open && !this.disabled && !this.readonly;
|
|
210
|
+
}
|
|
199
211
|
_onClickOutside() {
|
|
200
212
|
this._closePopup();
|
|
201
213
|
}
|
|
@@ -243,6 +255,10 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
243
255
|
this.open = false;
|
|
244
256
|
this._currentFocusItemIndex = null;
|
|
245
257
|
}
|
|
258
|
+
_handleLeftIconSlotChange(event) {
|
|
259
|
+
const slot = event.target;
|
|
260
|
+
this._hasLeftIcon = slot.assignedElements().length > 0;
|
|
261
|
+
}
|
|
246
262
|
_handleFocusOut(event) {
|
|
247
263
|
if (this.open && // ignore if focusing within the component, especially to the menu items
|
|
248
264
|
// or menu item will be destroyed before click event is handled
|
|
@@ -251,7 +267,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
251
267
|
}
|
|
252
268
|
}
|
|
253
269
|
_handleClick() {
|
|
254
|
-
if (this.disabled) {
|
|
270
|
+
if (this.disabled || this.readonly) {
|
|
255
271
|
return;
|
|
256
272
|
}
|
|
257
273
|
this._autoUpdateController.setTriggerContext({
|
|
@@ -270,6 +286,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
270
286
|
this._handleClick();
|
|
271
287
|
}
|
|
272
288
|
_handleClickItem(item) {
|
|
289
|
+
if (this.disabled || this.readonly) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
273
292
|
const value = getItemValue(item);
|
|
274
293
|
this.value = value;
|
|
275
294
|
this.open = false;
|
|
@@ -287,6 +306,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
287
306
|
);
|
|
288
307
|
}
|
|
289
308
|
_handleKeyDown(event) {
|
|
309
|
+
if (this.disabled || this.readonly) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
290
312
|
if (event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
|
|
291
313
|
if (event.key === "ArrowDown") {
|
|
292
314
|
event.preventDefault();
|
|
@@ -370,6 +392,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
370
392
|
* Clears the current value and triggers form value update.
|
|
371
393
|
*/
|
|
372
394
|
_handleClearClick() {
|
|
395
|
+
if (this.disabled || this.readonly) {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
373
398
|
this.value = "";
|
|
374
399
|
this.dispatchEvent(
|
|
375
400
|
new Event("input", {
|
|
@@ -395,6 +420,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
395
420
|
* Updates the value, applies filtering, and opens dropdown if matches are found.
|
|
396
421
|
*/
|
|
397
422
|
_handleInput(event) {
|
|
423
|
+
if (this.disabled || this.readonly) {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
398
426
|
this.value = event.target.value;
|
|
399
427
|
this._synchronizeShowItems("filtered");
|
|
400
428
|
this.open = this._viewItems.length > 0;
|
|
@@ -404,6 +432,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
404
432
|
* Dispatches a custom change event when the input value changes and loses focus.
|
|
405
433
|
*/
|
|
406
434
|
_handleChange() {
|
|
435
|
+
if (this.disabled || this.readonly) {
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
407
438
|
this.dispatchEvent(
|
|
408
439
|
new Event("change", {
|
|
409
440
|
bubbles: true
|
|
@@ -416,19 +447,30 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
416
447
|
>${`${this._viewItems.length} available results`}</span
|
|
417
448
|
>
|
|
418
449
|
<div class="w-full relative">
|
|
450
|
+
<div
|
|
451
|
+
class="absolute left-(--dds-padding-30) top-1/2 -translate-y-1/2 flex items-center pointer-events-none z-10 ${this.disabled ? "text-ddt-color-common-disabled" : "text-ddt-color-common-text-primary"}"
|
|
452
|
+
>
|
|
453
|
+
<slot
|
|
454
|
+
name="left-icon"
|
|
455
|
+
class="slotted:size-(--dds-icon)"
|
|
456
|
+
@slotchange=${this._handleLeftIconSlotChange}
|
|
457
|
+
></slot>
|
|
458
|
+
</div>
|
|
419
459
|
<input
|
|
420
460
|
class=${cvaInput({
|
|
421
|
-
error: this.error
|
|
461
|
+
error: this.error,
|
|
462
|
+
hasLeftIcon: this._hasLeftIcon
|
|
422
463
|
})}
|
|
423
464
|
role="combobox"
|
|
424
465
|
name=${ifDefined(this.getBackingProperty("name"))}
|
|
425
466
|
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
426
467
|
.value=${this.value}
|
|
427
468
|
?disabled=${this.disabled}
|
|
469
|
+
?readonly=${this.readonly}
|
|
428
470
|
aria-label=${ifDefined(this._label)}
|
|
429
|
-
aria-expanded=${this.
|
|
471
|
+
aria-expanded=${this._isPopupOpen}
|
|
430
472
|
aria-disabled=${this.disabled}
|
|
431
|
-
aria-controls=${this.
|
|
473
|
+
aria-controls=${this._isPopupOpen ? "combobox-items" : nothing}
|
|
432
474
|
aria-autocomplete="list"
|
|
433
475
|
aria-required=${this.required}
|
|
434
476
|
aria-haspopup="listbox"
|
|
@@ -440,33 +482,36 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
440
482
|
${this._autoUpdateController.refReference()}
|
|
441
483
|
/>
|
|
442
484
|
<div
|
|
443
|
-
class="absolute right-
|
|
485
|
+
class="absolute right-(--dds-padding-30) top-1/2 -translate-y-1/2 flex items-center gap-1"
|
|
444
486
|
>
|
|
445
|
-
${!!this.value && !!this.value.length ? html`<daikin-icon-button
|
|
446
|
-
class="size-
|
|
487
|
+
${!!this.value && !!this.value.length && !this.readonly ? html`<daikin-icon-button
|
|
488
|
+
class="size-(--dds-icon) shrink-0 part-icon-button:p-(--dds-padding-10)!"
|
|
447
489
|
color="neutral"
|
|
448
490
|
variant="ghost"
|
|
449
|
-
?disabled=${this.disabled}
|
|
491
|
+
?disabled=${this.disabled || this.readonly}
|
|
450
492
|
button-aria-label="Clear"
|
|
451
493
|
button-tabindex="-1"
|
|
452
494
|
@click=${this._handleClearClick}
|
|
453
495
|
@focusout=${this._handleFocusOut}
|
|
454
496
|
>
|
|
455
|
-
<span class="icon-[daikin--close] size-
|
|
497
|
+
<span class="icon-[daikin--close] size-(--dds-icon)"></span>
|
|
456
498
|
</daikin-icon-button>` : nothing}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
499
|
+
${this.readonly && !this.disabled ? nothing : html`<span
|
|
500
|
+
class=${cvaArrow({
|
|
501
|
+
open: this._isPopupOpen,
|
|
502
|
+
disabled: this.disabled
|
|
503
|
+
})}
|
|
504
|
+
role="img"
|
|
505
|
+
aria-label=${this._isPopupOpen ? "Close" : "Open"}
|
|
506
|
+
@mousedown=${this._handleArrowClick}
|
|
507
|
+
@keydown=${this._handleKeyDown}
|
|
508
|
+
>
|
|
509
|
+
</span>`}
|
|
465
510
|
</div>
|
|
466
511
|
</div>
|
|
467
512
|
<div
|
|
468
513
|
id="combobox-items"
|
|
469
|
-
popover
|
|
514
|
+
.popover=${"manual"}
|
|
470
515
|
tabindex="-1"
|
|
471
516
|
class="flex flex-col overflow-hidden rounded-sm border border-ddt-color-divider floating-unready:hidden absolute left-(--floating-x,0) top-(--floating-y,0) min-w-(--floating-width) max-h-50 max-w-min"
|
|
472
517
|
@floating-ready=${this._handleFloatingReady}
|
|
@@ -506,10 +551,10 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
506
551
|
// TODO(DDS-1226): refactor here with CSS Anchor Positioning instead of using floating-ui
|
|
507
552
|
this._autoUpdateController.directive(
|
|
508
553
|
floatingPositionOptions,
|
|
509
|
-
this.
|
|
554
|
+
this._isPopupOpen
|
|
510
555
|
)}
|
|
511
556
|
${// Listen to click outside only when the combobox is open.
|
|
512
|
-
this._clickOutsideController.directive(this.
|
|
557
|
+
this._clickOutsideController.directive(this._isPopupOpen)}
|
|
513
558
|
</div>`;
|
|
514
559
|
}
|
|
515
560
|
/**
|
|
@@ -520,6 +565,11 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
520
565
|
var _a;
|
|
521
566
|
(_a = this._input) == null ? void 0 : _a.focus(options);
|
|
522
567
|
}
|
|
568
|
+
willUpdate(changedProperties) {
|
|
569
|
+
if ((changedProperties.has("open") || changedProperties.has("readonly")) && this.readonly && this.open) {
|
|
570
|
+
this.open = false;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
523
573
|
updated(changedProperties) {
|
|
524
574
|
var _a;
|
|
525
575
|
if (changedProperties.has("items")) {
|
|
@@ -528,9 +578,9 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
528
578
|
if (changedProperties.has("value")) {
|
|
529
579
|
this._updateFormValue();
|
|
530
580
|
}
|
|
531
|
-
if (changedProperties.has("open") || changedProperties.has("disabled")) {
|
|
581
|
+
if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
|
|
532
582
|
(_a = this._autoUpdateController.floatingElement) == null ? void 0 : _a.togglePopover(
|
|
533
|
-
this.
|
|
583
|
+
this._isPopupOpen
|
|
534
584
|
);
|
|
535
585
|
if (changedProperties.get("open") && !this.open && !this.disabled) {
|
|
536
586
|
this.focus();
|
|
@@ -538,7 +588,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
538
588
|
}
|
|
539
589
|
if (changedProperties.has("open")) {
|
|
540
590
|
const wasOpen = changedProperties.get("open");
|
|
541
|
-
if (wasOpen !== void 0) {
|
|
591
|
+
if (wasOpen !== void 0 && wasOpen !== this.open) {
|
|
542
592
|
this.dispatchEvent(
|
|
543
593
|
new ToggleEvent("toggle", {
|
|
544
594
|
oldState: wasOpen ? "open" : "closed",
|
|
@@ -559,6 +609,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
559
609
|
reflectInputGroup(inputGroup) {
|
|
560
610
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
561
611
|
this.disabled = !!inputGroup.disabled;
|
|
612
|
+
this.readonly = !!inputGroup.readonly;
|
|
562
613
|
this.required = !!inputGroup.required;
|
|
563
614
|
this.error = isError;
|
|
564
615
|
this._label = inputGroup.label;
|
|
@@ -572,6 +623,27 @@ DaikinCombobox.styles = css`
|
|
|
572
623
|
width: 100%;
|
|
573
624
|
}
|
|
574
625
|
|
|
626
|
+
:host([readonly]:not([disabled])) input {
|
|
627
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
628
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
:host([readonly]:not([disabled])) input:hover,
|
|
632
|
+
:host([readonly]:not([disabled])) input:active {
|
|
633
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
634
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
:host([readonly]:not([disabled])) input:focus-visible {
|
|
638
|
+
--color-base: var(--dds-color-common-border-focus);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
:host([readonly][error]:not([disabled])) input,
|
|
642
|
+
:host([readonly][error]:not([disabled])) input:hover,
|
|
643
|
+
:host([readonly][error]:not([disabled])) input:active {
|
|
644
|
+
--color-base: var(--dds-color-common-danger-default);
|
|
645
|
+
}
|
|
646
|
+
|
|
575
647
|
::slotted {
|
|
576
648
|
width: 100%;
|
|
577
649
|
}
|
|
@@ -591,6 +663,9 @@ __decorateClass([
|
|
|
591
663
|
__decorateClass([
|
|
592
664
|
property({ type: Boolean, reflect: true })
|
|
593
665
|
], DaikinCombobox.prototype, "open", 2);
|
|
666
|
+
__decorateClass([
|
|
667
|
+
property({ type: Boolean, reflect: true })
|
|
668
|
+
], DaikinCombobox.prototype, "readonly", 2);
|
|
594
669
|
__decorateClass([
|
|
595
670
|
property({ type: Array, attribute: false })
|
|
596
671
|
], DaikinCombobox.prototype, "items", 2);
|
|
@@ -609,6 +684,9 @@ __decorateClass([
|
|
|
609
684
|
__decorateClass([
|
|
610
685
|
state()
|
|
611
686
|
], DaikinCombobox.prototype, "_label", 2);
|
|
687
|
+
__decorateClass([
|
|
688
|
+
state()
|
|
689
|
+
], DaikinCombobox.prototype, "_hasLeftIcon", 2);
|
|
612
690
|
DaikinCombobox = __decorateClass([
|
|
613
691
|
ddsElement("daikin-combobox")
|
|
614
692
|
], DaikinCombobox);
|
|
@@ -73,19 +73,33 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
73
73
|
* If there is a `value` attribute, this is ignored.
|
|
74
74
|
*/
|
|
75
75
|
defaultValue: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* The locale used for date picker.
|
|
78
|
+
* If not provided, the browser's default locale will be used.
|
|
79
|
+
* Currently, only English and Japanese are supported.
|
|
80
|
+
* The locale determined by this property controls the language of the text inside the calendar popup.
|
|
81
|
+
*
|
|
82
|
+
* **Note**: The pre-filled input format (such as YYYY/MM/DD) is independent of this property and is dynamically configured according to the user's current device locale.
|
|
83
|
+
*/
|
|
84
|
+
locale: "en" | "ja" | null;
|
|
76
85
|
/**
|
|
77
86
|
* The locale used for date formatting.
|
|
78
87
|
* If not provided, the browser's default locale will be used. It is usually not necessary to specify it explicitly.
|
|
79
88
|
*
|
|
80
89
|
* @private
|
|
81
90
|
*/
|
|
82
|
-
|
|
91
|
+
inputLocale: string | null;
|
|
83
92
|
/**
|
|
84
93
|
* The label text used as the value of aria-label.
|
|
85
94
|
* Set automatically by `reflectInputGroup` method.
|
|
86
95
|
*/
|
|
87
96
|
private _label;
|
|
88
97
|
private _currentSelection;
|
|
98
|
+
private _preCompositionValue;
|
|
99
|
+
private _inputValue;
|
|
100
|
+
private _monthDigitIndex;
|
|
101
|
+
private _dayDigitIndex;
|
|
102
|
+
private _yearDigitIndex;
|
|
89
103
|
private _autoUpdateController;
|
|
90
104
|
private _dateInputElement;
|
|
91
105
|
private _calendarElement;
|
|
@@ -98,7 +112,19 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
98
112
|
private _formatDateForUI;
|
|
99
113
|
private _getPlaceholderAll;
|
|
100
114
|
private _getDateItemInSelection;
|
|
101
|
-
private get
|
|
115
|
+
private get _dateValue();
|
|
116
|
+
/**
|
|
117
|
+
* Returns the string to bind to the <input> element's .value property.
|
|
118
|
+
*
|
|
119
|
+
* - When this.value holds a valid date, show the locale-formatted date.
|
|
120
|
+
* - When _inputValue contains partial or invalid content (placeholders / impossible
|
|
121
|
+
* dates like 02/31), return it so the user's in-progress entry is preserved
|
|
122
|
+
* across Lit re-renders.
|
|
123
|
+
* - Otherwise (e.g. this.value was cleared externally while _inputValue still
|
|
124
|
+
* holds a now-stale complete valid date string) return "" so the CSS placeholder
|
|
125
|
+
* text is visible instead.
|
|
126
|
+
*/
|
|
127
|
+
private get _displayValue();
|
|
102
128
|
private get _min();
|
|
103
129
|
private get _max();
|
|
104
130
|
private get _viewDate();
|
|
@@ -111,6 +137,10 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
111
137
|
private _handleFocusOut;
|
|
112
138
|
private _handleChange;
|
|
113
139
|
private _handleMouseUp;
|
|
140
|
+
private _handleCompositionStart;
|
|
141
|
+
private _handleCompositionEnd;
|
|
142
|
+
private _applyDigitToPart;
|
|
143
|
+
private _applyDigits;
|
|
114
144
|
private _handleKeyDown;
|
|
115
145
|
private _handleBeforeInput;
|
|
116
146
|
private _handleSelect;
|
|
@@ -118,6 +148,11 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
118
148
|
private _handlePointerUp;
|
|
119
149
|
private _handleCalendarKeyDown;
|
|
120
150
|
private _handleToggle;
|
|
151
|
+
/**
|
|
152
|
+
* Returns true if all date parts (year/month/day) in the input are filled with
|
|
153
|
+
* digits and no placeholder text (YYYY, MM, DD) remains.
|
|
154
|
+
*/
|
|
155
|
+
private _isInputComplete;
|
|
121
156
|
private _updateValue;
|
|
122
157
|
private _updateInputSelection;
|
|
123
158
|
private _updateSelection;
|