@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
|
@@ -33,11 +33,9 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
33
33
|
"gap-2",
|
|
34
34
|
"w-full",
|
|
35
35
|
"h-full",
|
|
36
|
-
"min-h-
|
|
36
|
+
"min-h-(--dds-input-height)",
|
|
37
37
|
"bg-ddt-color-common-background-default",
|
|
38
|
-
"
|
|
39
|
-
"pl-4",
|
|
40
|
-
"pr-16",
|
|
38
|
+
"pr-[calc(var(--dds-padding-30)+var(--dds-gap-10)*2+var(--dds-icon)*2)]",
|
|
41
39
|
"rounded-sm",
|
|
42
40
|
"overflow-hidden",
|
|
43
41
|
"text-left",
|
|
@@ -54,6 +52,7 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
54
52
|
"enabled:outline-(--color-base)",
|
|
55
53
|
"disabled:text-ddt-color-common-disabled",
|
|
56
54
|
"disabled:outline-ddt-color-common-disabled",
|
|
55
|
+
"disabled:placeholder:text-ddt-color-common-disabled",
|
|
57
56
|
"enabled:after:text-ddt-color-common-text-primary",
|
|
58
57
|
"disabled:after:text-ddt-color-common-disabled",
|
|
59
58
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
@@ -68,6 +67,12 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
68
67
|
"focus-visible:[--color-base:var(--dds-color-common-border-focus)]"
|
|
69
68
|
],
|
|
70
69
|
true: ["[--color-base:var(--dds-color-common-danger-default)]"]
|
|
70
|
+
},
|
|
71
|
+
hasLeftIcon: {
|
|
72
|
+
false: ["pl-[calc(var(--dds-padding-30)+var(--dds-space-100))]"],
|
|
73
|
+
true: [
|
|
74
|
+
"pl-[calc(var(--dds-padding-30)+var(--dds-gap-10)+var(--dds-icon)+var(--dds-space-100))]"
|
|
75
|
+
]
|
|
71
76
|
}
|
|
72
77
|
}
|
|
73
78
|
}
|
|
@@ -78,9 +83,11 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
78
83
|
"items-center",
|
|
79
84
|
"gap-1",
|
|
80
85
|
"size-full",
|
|
81
|
-
"min-h-
|
|
82
|
-
"
|
|
86
|
+
"min-h-(--dds-input-height)",
|
|
87
|
+
"py-[calc(var(--dds-padding-30)+0.09375rem)]",
|
|
88
|
+
"px-(--dds-padding-30)",
|
|
83
89
|
"text-left",
|
|
90
|
+
"text-(length:--dds-font-size-label-text)",
|
|
84
91
|
"relative",
|
|
85
92
|
"data-focus:outline-solid",
|
|
86
93
|
"data-focus:outline-2",
|
|
@@ -100,10 +107,10 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
100
107
|
"hover:[--color-primary:var(--dds-color-common-surface-selected-hover)]",
|
|
101
108
|
"active:[--color-primary:var(--dds-color-common-surface-selected-press)]",
|
|
102
109
|
"after:icon-[daikin--dropdown-check]",
|
|
103
|
-
"after:size-
|
|
104
|
-
"pr-10",
|
|
110
|
+
"after:size-(--dds-icon)",
|
|
111
|
+
"pr-[calc((var(--dds-padding-10))+var(--dds-icon)+var(--dds-padding-30))]",
|
|
105
112
|
"after:absolute",
|
|
106
|
-
"after:right-
|
|
113
|
+
"after:right-(--dds-padding-30)",
|
|
107
114
|
"after:top-1/2",
|
|
108
115
|
"after:-translate-y-1/2"
|
|
109
116
|
]
|
|
@@ -125,7 +132,7 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
125
132
|
const cvaArrow = classVarianceAuthority.cva(
|
|
126
133
|
[
|
|
127
134
|
"icon-[daikin--chevron-down]",
|
|
128
|
-
"size-
|
|
135
|
+
"size-(--dds-icon)",
|
|
129
136
|
"shrink-0",
|
|
130
137
|
"z-10",
|
|
131
138
|
"pointer-events-auto"
|
|
@@ -187,17 +194,22 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
187
194
|
this.required = false;
|
|
188
195
|
this.error = false;
|
|
189
196
|
this.open = false;
|
|
197
|
+
this.readonly = false;
|
|
190
198
|
this.items = [];
|
|
191
199
|
this._viewItems = [];
|
|
192
200
|
this._currentFocusItemIndex = null;
|
|
193
201
|
this.filter = defaultFilterFn;
|
|
194
202
|
this._label = null;
|
|
203
|
+
this._hasLeftIcon = false;
|
|
195
204
|
this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
|
|
196
205
|
this._clickOutsideController = new clickOutside.ClickOutsideController(
|
|
197
206
|
this,
|
|
198
207
|
this._onClickOutside
|
|
199
208
|
);
|
|
200
209
|
}
|
|
210
|
+
get _isPopupOpen() {
|
|
211
|
+
return this.open && !this.disabled && !this.readonly;
|
|
212
|
+
}
|
|
201
213
|
_onClickOutside() {
|
|
202
214
|
this._closePopup();
|
|
203
215
|
}
|
|
@@ -245,6 +257,10 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
245
257
|
this.open = false;
|
|
246
258
|
this._currentFocusItemIndex = null;
|
|
247
259
|
}
|
|
260
|
+
_handleLeftIconSlotChange(event) {
|
|
261
|
+
const slot = event.target;
|
|
262
|
+
this._hasLeftIcon = slot.assignedElements().length > 0;
|
|
263
|
+
}
|
|
248
264
|
_handleFocusOut(event) {
|
|
249
265
|
if (this.open && // ignore if focusing within the component, especially to the menu items
|
|
250
266
|
// or menu item will be destroyed before click event is handled
|
|
@@ -253,7 +269,7 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
253
269
|
}
|
|
254
270
|
}
|
|
255
271
|
_handleClick() {
|
|
256
|
-
if (this.disabled) {
|
|
272
|
+
if (this.disabled || this.readonly) {
|
|
257
273
|
return;
|
|
258
274
|
}
|
|
259
275
|
this._autoUpdateController.setTriggerContext({
|
|
@@ -272,6 +288,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
272
288
|
this._handleClick();
|
|
273
289
|
}
|
|
274
290
|
_handleClickItem(item) {
|
|
291
|
+
if (this.disabled || this.readonly) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
275
294
|
const value = getItemValue(item);
|
|
276
295
|
this.value = value;
|
|
277
296
|
this.open = false;
|
|
@@ -289,6 +308,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
289
308
|
);
|
|
290
309
|
}
|
|
291
310
|
_handleKeyDown(event) {
|
|
311
|
+
if (this.disabled || this.readonly) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
292
314
|
if (event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
|
|
293
315
|
if (event.key === "ArrowDown") {
|
|
294
316
|
event.preventDefault();
|
|
@@ -372,6 +394,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
372
394
|
* Clears the current value and triggers form value update.
|
|
373
395
|
*/
|
|
374
396
|
_handleClearClick() {
|
|
397
|
+
if (this.disabled || this.readonly) {
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
375
400
|
this.value = "";
|
|
376
401
|
this.dispatchEvent(
|
|
377
402
|
new Event("input", {
|
|
@@ -397,6 +422,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
397
422
|
* Updates the value, applies filtering, and opens dropdown if matches are found.
|
|
398
423
|
*/
|
|
399
424
|
_handleInput(event) {
|
|
425
|
+
if (this.disabled || this.readonly) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
400
428
|
this.value = event.target.value;
|
|
401
429
|
this._synchronizeShowItems("filtered");
|
|
402
430
|
this.open = this._viewItems.length > 0;
|
|
@@ -406,6 +434,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
406
434
|
* Dispatches a custom change event when the input value changes and loses focus.
|
|
407
435
|
*/
|
|
408
436
|
_handleChange() {
|
|
437
|
+
if (this.disabled || this.readonly) {
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
409
440
|
this.dispatchEvent(
|
|
410
441
|
new Event("change", {
|
|
411
442
|
bubbles: true
|
|
@@ -418,19 +449,30 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
418
449
|
>${`${this._viewItems.length} available results`}</span
|
|
419
450
|
>
|
|
420
451
|
<div class="w-full relative">
|
|
452
|
+
<div
|
|
453
|
+
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"}"
|
|
454
|
+
>
|
|
455
|
+
<slot
|
|
456
|
+
name="left-icon"
|
|
457
|
+
class="slotted:size-(--dds-icon)"
|
|
458
|
+
@slotchange=${this._handleLeftIconSlotChange}
|
|
459
|
+
></slot>
|
|
460
|
+
</div>
|
|
421
461
|
<input
|
|
422
462
|
class=${cvaInput({
|
|
423
|
-
error: this.error
|
|
463
|
+
error: this.error,
|
|
464
|
+
hasLeftIcon: this._hasLeftIcon
|
|
424
465
|
})}
|
|
425
466
|
role="combobox"
|
|
426
467
|
name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
|
|
427
468
|
placeholder=${ifDefined_js.ifDefined(this.getBackingProperty("placeholder"))}
|
|
428
469
|
.value=${this.value}
|
|
429
470
|
?disabled=${this.disabled}
|
|
471
|
+
?readonly=${this.readonly}
|
|
430
472
|
aria-label=${ifDefined_js.ifDefined(this._label)}
|
|
431
|
-
aria-expanded=${this.
|
|
473
|
+
aria-expanded=${this._isPopupOpen}
|
|
432
474
|
aria-disabled=${this.disabled}
|
|
433
|
-
aria-controls=${this.
|
|
475
|
+
aria-controls=${this._isPopupOpen ? "combobox-items" : lit.nothing}
|
|
434
476
|
aria-autocomplete="list"
|
|
435
477
|
aria-required=${this.required}
|
|
436
478
|
aria-haspopup="listbox"
|
|
@@ -442,33 +484,36 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
442
484
|
${this._autoUpdateController.refReference()}
|
|
443
485
|
/>
|
|
444
486
|
<div
|
|
445
|
-
class="absolute right-
|
|
487
|
+
class="absolute right-(--dds-padding-30) top-1/2 -translate-y-1/2 flex items-center gap-1"
|
|
446
488
|
>
|
|
447
|
-
${!!this.value && !!this.value.length ? lit.html`<daikin-icon-button
|
|
448
|
-
class="size-
|
|
489
|
+
${!!this.value && !!this.value.length && !this.readonly ? lit.html`<daikin-icon-button
|
|
490
|
+
class="size-(--dds-icon) shrink-0 part-icon-button:p-(--dds-padding-10)!"
|
|
449
491
|
color="neutral"
|
|
450
492
|
variant="ghost"
|
|
451
|
-
?disabled=${this.disabled}
|
|
493
|
+
?disabled=${this.disabled || this.readonly}
|
|
452
494
|
button-aria-label="Clear"
|
|
453
495
|
button-tabindex="-1"
|
|
454
496
|
@click=${this._handleClearClick}
|
|
455
497
|
@focusout=${this._handleFocusOut}
|
|
456
498
|
>
|
|
457
|
-
<span class="icon-[daikin--close] size-
|
|
499
|
+
<span class="icon-[daikin--close] size-(--dds-icon)"></span>
|
|
458
500
|
</daikin-icon-button>` : lit.nothing}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
501
|
+
${this.readonly && !this.disabled ? lit.nothing : lit.html`<span
|
|
502
|
+
class=${cvaArrow({
|
|
503
|
+
open: this._isPopupOpen,
|
|
504
|
+
disabled: this.disabled
|
|
505
|
+
})}
|
|
506
|
+
role="img"
|
|
507
|
+
aria-label=${this._isPopupOpen ? "Close" : "Open"}
|
|
508
|
+
@mousedown=${this._handleArrowClick}
|
|
509
|
+
@keydown=${this._handleKeyDown}
|
|
510
|
+
>
|
|
511
|
+
</span>`}
|
|
467
512
|
</div>
|
|
468
513
|
</div>
|
|
469
514
|
<div
|
|
470
515
|
id="combobox-items"
|
|
471
|
-
popover
|
|
516
|
+
.popover=${"manual"}
|
|
472
517
|
tabindex="-1"
|
|
473
518
|
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"
|
|
474
519
|
@floating-ready=${this._handleFloatingReady}
|
|
@@ -508,10 +553,10 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
508
553
|
// TODO(DDS-1226): refactor here with CSS Anchor Positioning instead of using floating-ui
|
|
509
554
|
this._autoUpdateController.directive(
|
|
510
555
|
floatingPositionOptions,
|
|
511
|
-
this.
|
|
556
|
+
this._isPopupOpen
|
|
512
557
|
)}
|
|
513
558
|
${// Listen to click outside only when the combobox is open.
|
|
514
|
-
this._clickOutsideController.directive(this.
|
|
559
|
+
this._clickOutsideController.directive(this._isPopupOpen)}
|
|
515
560
|
</div>`;
|
|
516
561
|
}
|
|
517
562
|
/**
|
|
@@ -522,6 +567,11 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
522
567
|
var _a;
|
|
523
568
|
(_a = this._input) == null ? void 0 : _a.focus(options);
|
|
524
569
|
}
|
|
570
|
+
willUpdate(changedProperties) {
|
|
571
|
+
if ((changedProperties.has("open") || changedProperties.has("readonly")) && this.readonly && this.open) {
|
|
572
|
+
this.open = false;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
525
575
|
updated(changedProperties) {
|
|
526
576
|
var _a;
|
|
527
577
|
if (changedProperties.has("items")) {
|
|
@@ -530,9 +580,9 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
530
580
|
if (changedProperties.has("value")) {
|
|
531
581
|
this._updateFormValue();
|
|
532
582
|
}
|
|
533
|
-
if (changedProperties.has("open") || changedProperties.has("disabled")) {
|
|
583
|
+
if (changedProperties.has("open") || changedProperties.has("disabled") || changedProperties.has("readonly")) {
|
|
534
584
|
(_a = this._autoUpdateController.floatingElement) == null ? void 0 : _a.togglePopover(
|
|
535
|
-
this.
|
|
585
|
+
this._isPopupOpen
|
|
536
586
|
);
|
|
537
587
|
if (changedProperties.get("open") && !this.open && !this.disabled) {
|
|
538
588
|
this.focus();
|
|
@@ -540,7 +590,7 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
540
590
|
}
|
|
541
591
|
if (changedProperties.has("open")) {
|
|
542
592
|
const wasOpen = changedProperties.get("open");
|
|
543
|
-
if (wasOpen !== void 0) {
|
|
593
|
+
if (wasOpen !== void 0 && wasOpen !== this.open) {
|
|
544
594
|
this.dispatchEvent(
|
|
545
595
|
new ToggleEvent("toggle", {
|
|
546
596
|
oldState: wasOpen ? "open" : "closed",
|
|
@@ -561,6 +611,7 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
561
611
|
reflectInputGroup(inputGroup) {
|
|
562
612
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
563
613
|
this.disabled = !!inputGroup.disabled;
|
|
614
|
+
this.readonly = !!inputGroup.readonly;
|
|
564
615
|
this.required = !!inputGroup.required;
|
|
565
616
|
this.error = isError;
|
|
566
617
|
this._label = inputGroup.label;
|
|
@@ -574,6 +625,27 @@ exports.DaikinCombobox.styles = lit.css`
|
|
|
574
625
|
width: 100%;
|
|
575
626
|
}
|
|
576
627
|
|
|
628
|
+
:host([readonly]:not([disabled])) input {
|
|
629
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
630
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
:host([readonly]:not([disabled])) input:hover,
|
|
634
|
+
:host([readonly]:not([disabled])) input:active {
|
|
635
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
636
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
:host([readonly]:not([disabled])) input:focus-visible {
|
|
640
|
+
--color-base: var(--dds-color-common-border-focus);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
:host([readonly][error]:not([disabled])) input,
|
|
644
|
+
:host([readonly][error]:not([disabled])) input:hover,
|
|
645
|
+
:host([readonly][error]:not([disabled])) input:active {
|
|
646
|
+
--color-base: var(--dds-color-common-danger-default);
|
|
647
|
+
}
|
|
648
|
+
|
|
577
649
|
::slotted {
|
|
578
650
|
width: 100%;
|
|
579
651
|
}
|
|
@@ -593,6 +665,9 @@ __decorateClass([
|
|
|
593
665
|
__decorateClass([
|
|
594
666
|
ddsProperty.property({ type: Boolean, reflect: true })
|
|
595
667
|
], exports.DaikinCombobox.prototype, "open", 2);
|
|
668
|
+
__decorateClass([
|
|
669
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
670
|
+
], exports.DaikinCombobox.prototype, "readonly", 2);
|
|
596
671
|
__decorateClass([
|
|
597
672
|
ddsProperty.property({ type: Array, attribute: false })
|
|
598
673
|
], exports.DaikinCombobox.prototype, "items", 2);
|
|
@@ -611,6 +686,9 @@ __decorateClass([
|
|
|
611
686
|
__decorateClass([
|
|
612
687
|
decorators_js.state()
|
|
613
688
|
], exports.DaikinCombobox.prototype, "_label", 2);
|
|
689
|
+
__decorateClass([
|
|
690
|
+
decorators_js.state()
|
|
691
|
+
], exports.DaikinCombobox.prototype, "_hasLeftIcon", 2);
|
|
614
692
|
exports.DaikinCombobox = __decorateClass([
|
|
615
693
|
decorators.ddsElement("daikin-combobox")
|
|
616
694
|
], exports.DaikinCombobox);
|
|
@@ -29,6 +29,8 @@ export declare function defaultFilterFn(items: readonly ComboboxItem[], value: s
|
|
|
29
29
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event). Triggered when the user types in the input field, clicks clear button, or selects from dropdown options.
|
|
30
30
|
* @fires toggle - A custom event emitted when the combobox menu opens or closes.
|
|
31
31
|
*
|
|
32
|
+
* @slot left-icon - A slot for an icon to be placed to the left of the text. Place `daikin-icon` or something similar.
|
|
33
|
+
*
|
|
32
34
|
* @example
|
|
33
35
|
*
|
|
34
36
|
* ```js
|
|
@@ -67,6 +69,10 @@ export declare class DaikinCombobox extends DDSFormElement {
|
|
|
67
69
|
* When controlling this property externally, listen to the `toggle` event and sync your state based on `event.newState` to keep it in sync.
|
|
68
70
|
*/
|
|
69
71
|
open: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the combobox is readonly.
|
|
74
|
+
*/
|
|
75
|
+
readonly: boolean;
|
|
70
76
|
/**
|
|
71
77
|
* An array of items for the combobox dropdown. Can be:
|
|
72
78
|
* - Array of strings: ['Option 1', 'Option 2']
|
|
@@ -86,12 +92,15 @@ export declare class DaikinCombobox extends DDSFormElement {
|
|
|
86
92
|
* Set automatically by `reflectInputGroup` method.
|
|
87
93
|
*/
|
|
88
94
|
private _label;
|
|
95
|
+
private _hasLeftIcon;
|
|
96
|
+
private get _isPopupOpen();
|
|
89
97
|
private _autoUpdateController;
|
|
90
98
|
private _clickOutsideController;
|
|
91
99
|
private _onClickOutside;
|
|
92
100
|
private _moveFocusByKeydown;
|
|
93
101
|
private _updateFormValue;
|
|
94
102
|
private _closePopup;
|
|
103
|
+
private _handleLeftIconSlotChange;
|
|
95
104
|
private _handleFocusOut;
|
|
96
105
|
private _handleClick;
|
|
97
106
|
private _handleArrowClick;
|
|
@@ -129,6 +138,7 @@ export declare class DaikinCombobox extends DDSFormElement {
|
|
|
129
138
|
* @param options focus options
|
|
130
139
|
*/
|
|
131
140
|
focus(options?: FocusOptions): void;
|
|
141
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
132
142
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
133
143
|
/**
|
|
134
144
|
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|