@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
|
@@ -113,29 +113,37 @@ let DaikinProgressBar = class extends DDSElement {
|
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
115
|
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
116
|
-
return html`<div class="flex flex-
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
return html`<div class="flex flex-row gap-(--dds-space-100) items-start">
|
|
117
|
+
<slot
|
|
118
|
+
name="left-icon"
|
|
119
|
+
class="slotted:shrink-0 slotted:icon-size-6 size-(--dds-icon)"
|
|
120
|
+
></slot>
|
|
120
121
|
<div
|
|
121
|
-
class
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
class="flex flex-col gap-(--dds-space-200) w-full pt-(--dds-space-050)"
|
|
123
|
+
>
|
|
124
|
+
<div class=${cvaBarContainer({ variant: this.variant })}>
|
|
125
|
+
<slot></slot>
|
|
126
|
+
</div>
|
|
127
|
+
<div
|
|
128
|
+
class=${cvaBar({ variant: this.variant, size: this.size })}
|
|
129
|
+
role="progressbar"
|
|
130
|
+
aria-label=${this.textContent ?? ""}
|
|
131
|
+
aria-valuenow=${this.value}
|
|
132
|
+
aria-valuemin="0"
|
|
133
|
+
aria-valuemax=${this.max}
|
|
134
|
+
aria-busy=${progressRatio < 1 && this.variant === "inprogress" || this.variant === "indeterminate"}
|
|
135
|
+
style=${`--bar-width:${progressRatio * 100}%`}
|
|
136
|
+
></div>
|
|
137
|
+
<span
|
|
138
|
+
class=${cvaHelper({
|
|
132
139
|
variant: this.variant,
|
|
133
140
|
visible: !!this.helper.length
|
|
134
141
|
})}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
142
|
+
aria-live="polite"
|
|
143
|
+
>
|
|
144
|
+
${this.helper}
|
|
145
|
+
</span>
|
|
146
|
+
</div>
|
|
139
147
|
</div>`;
|
|
140
148
|
}
|
|
141
149
|
updated(changedProperties) {
|
|
@@ -51,6 +51,11 @@ export declare class DaikinRadio extends DDSFormElement {
|
|
|
51
51
|
* Specify the radio button disabled state.
|
|
52
52
|
*/
|
|
53
53
|
disabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Specify the radio button readonly state.
|
|
56
|
+
* When readonly, the user cannot change the checked state.
|
|
57
|
+
*/
|
|
58
|
+
readonly: boolean;
|
|
54
59
|
/**
|
|
55
60
|
* Specify the radio disabled state controlled by the parent component.
|
|
56
61
|
* Controlled by `daikin-radio-group`.
|
|
@@ -58,6 +63,27 @@ export declare class DaikinRadio extends DDSFormElement {
|
|
|
58
63
|
* @private
|
|
59
64
|
*/
|
|
60
65
|
disabledByParent: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Specify the radio readonly state controlled by the parent component.
|
|
68
|
+
* Controlled by `daikin-radio-group`.
|
|
69
|
+
*
|
|
70
|
+
* @private
|
|
71
|
+
*/
|
|
72
|
+
readonlyByParent: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The effective disabled state of the radio button.
|
|
75
|
+
* Returns `true` if either `disabled` or `disabledByParent` is `true`.
|
|
76
|
+
*
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
private get _disabled();
|
|
80
|
+
/**
|
|
81
|
+
* The effective readonly state of the radio button.
|
|
82
|
+
* Returns `true` if either `readonly` or `readonlyByParent` is `true`.
|
|
83
|
+
*
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
private get _readonly();
|
|
61
87
|
/**
|
|
62
88
|
* Whether the radio button can be focused.
|
|
63
89
|
* Automatically set by `daikin-radio-group` component.
|
|
@@ -23,37 +23,107 @@ const cvaWrapper = cva(
|
|
|
23
23
|
{
|
|
24
24
|
variants: {
|
|
25
25
|
disabled: {
|
|
26
|
-
false: [
|
|
26
|
+
false: [],
|
|
27
|
+
true: []
|
|
28
|
+
},
|
|
29
|
+
readonly: {
|
|
30
|
+
false: [],
|
|
27
31
|
true: []
|
|
28
32
|
}
|
|
29
|
-
}
|
|
33
|
+
},
|
|
34
|
+
compoundVariants: [
|
|
35
|
+
{
|
|
36
|
+
disabled: false,
|
|
37
|
+
readonly: false,
|
|
38
|
+
class: ["cursor-pointer"]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const RADIO_CLASS_NAME = cva(
|
|
44
|
+
[
|
|
45
|
+
"flex",
|
|
46
|
+
"justify-center",
|
|
47
|
+
"items-center",
|
|
48
|
+
"size-4",
|
|
49
|
+
"rounded-full",
|
|
50
|
+
"relative",
|
|
51
|
+
"appearance-none",
|
|
52
|
+
"focus-visible:outline-solid",
|
|
53
|
+
"focus-visible:outline-2",
|
|
54
|
+
"focus-visible:outline-offset-2",
|
|
55
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
56
|
+
"disabled:border-ddt-color-common-disabled"
|
|
57
|
+
],
|
|
58
|
+
{
|
|
59
|
+
variants: {
|
|
60
|
+
disabled: {
|
|
61
|
+
false: [],
|
|
62
|
+
true: []
|
|
63
|
+
},
|
|
64
|
+
readonly: {
|
|
65
|
+
false: [],
|
|
66
|
+
true: []
|
|
67
|
+
},
|
|
68
|
+
checked: {
|
|
69
|
+
false: [],
|
|
70
|
+
true: []
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
compoundVariants: [
|
|
74
|
+
{
|
|
75
|
+
disabled: false,
|
|
76
|
+
readonly: false,
|
|
77
|
+
class: ["cursor-pointer"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
readonly: false,
|
|
81
|
+
checked: false,
|
|
82
|
+
class: [
|
|
83
|
+
"unchecked:border-2",
|
|
84
|
+
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
85
|
+
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
86
|
+
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
87
|
+
"group-hover:unchecked:enabled:bg-ddt-color-common-surface-neutral-hover",
|
|
88
|
+
"group-active:unchecked:enabled:bg-ddt-color-common-surface-neutral-press"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
readonly: false,
|
|
93
|
+
checked: true,
|
|
94
|
+
class: [
|
|
95
|
+
"checked:border-[5px]",
|
|
96
|
+
"enabled:checked:border-ddt-color-common-brand-default",
|
|
97
|
+
"group-hover:checked:enabled:border-ddt-color-common-brand-hover",
|
|
98
|
+
"group-active:checked:enabled:border-ddt-color-common-brand-press"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
readonly: true,
|
|
103
|
+
checked: false,
|
|
104
|
+
class: [
|
|
105
|
+
"border",
|
|
106
|
+
"border-ddt-color-common-disabled",
|
|
107
|
+
"bg-ddt-color-common-surface-secondary"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
readonly: true,
|
|
112
|
+
checked: true,
|
|
113
|
+
class: [
|
|
114
|
+
"border",
|
|
115
|
+
"border-ddt-color-common-neutral-default",
|
|
116
|
+
"before:content-['']",
|
|
117
|
+
"before:absolute",
|
|
118
|
+
"before:size-2",
|
|
119
|
+
"before:rounded-full",
|
|
120
|
+
"before:bg-ddt-color-common-neutral-default",
|
|
121
|
+
"bg-ddt-color-common-surface-secondary"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
30
125
|
}
|
|
31
126
|
);
|
|
32
|
-
const RADIO_CLASS_NAME = cva([
|
|
33
|
-
"flex",
|
|
34
|
-
"justify-center",
|
|
35
|
-
"items-center",
|
|
36
|
-
"size-4",
|
|
37
|
-
"rounded-full",
|
|
38
|
-
"relative",
|
|
39
|
-
"appearance-none",
|
|
40
|
-
"focus-visible:outline-solid",
|
|
41
|
-
"focus-visible:outline-2",
|
|
42
|
-
"focus-visible:outline-offset-2",
|
|
43
|
-
"focus-visible:outline-ddt-color-common-border-focus",
|
|
44
|
-
"unchecked:border-2",
|
|
45
|
-
"enabled:cursor-pointer",
|
|
46
|
-
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
47
|
-
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
48
|
-
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
49
|
-
"group-hover:unchecked:enabled:bg-ddt-color-common-surface-neutral-hover",
|
|
50
|
-
"group-active:unchecked:enabled:bg-ddt-color-common-surface-neutral-press",
|
|
51
|
-
"checked:border-[5px]",
|
|
52
|
-
"enabled:checked:border-ddt-color-common-brand-default",
|
|
53
|
-
"group-hover:checked:enabled:border-ddt-color-common-brand-hover",
|
|
54
|
-
"group-active:checked:enabled:border-ddt-color-common-brand-press",
|
|
55
|
-
"disabled:border-ddt-color-common-disabled"
|
|
56
|
-
])();
|
|
57
127
|
const cvaLabel = cva(["natural-break"], {
|
|
58
128
|
variants: {
|
|
59
129
|
disabled: {
|
|
@@ -63,17 +133,54 @@ const cvaLabel = cva(["natural-break"], {
|
|
|
63
133
|
hidden: {
|
|
64
134
|
false: ["inline-block"],
|
|
65
135
|
true: ["hidden"]
|
|
136
|
+
},
|
|
137
|
+
readonly: {
|
|
138
|
+
false: [],
|
|
139
|
+
true: []
|
|
140
|
+
},
|
|
141
|
+
checked: {
|
|
142
|
+
false: [],
|
|
143
|
+
true: []
|
|
66
144
|
}
|
|
67
|
-
}
|
|
145
|
+
},
|
|
146
|
+
compoundVariants: [
|
|
147
|
+
{
|
|
148
|
+
readonly: true,
|
|
149
|
+
checked: false,
|
|
150
|
+
disabled: false,
|
|
151
|
+
hidden: false,
|
|
152
|
+
class: ["text-ddt-color-common-disabled!"]
|
|
153
|
+
}
|
|
154
|
+
]
|
|
68
155
|
});
|
|
69
156
|
let DaikinRadio = class extends DDSFormElement {
|
|
70
157
|
constructor() {
|
|
71
158
|
super(...arguments);
|
|
72
159
|
this.checked = false;
|
|
73
160
|
this.disabled = false;
|
|
161
|
+
this.readonly = false;
|
|
74
162
|
this.disabledByParent = false;
|
|
163
|
+
this.readonlyByParent = false;
|
|
75
164
|
this.skipTab = false;
|
|
76
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* The effective disabled state of the radio button.
|
|
168
|
+
* Returns `true` if either `disabled` or `disabledByParent` is `true`.
|
|
169
|
+
*
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
172
|
+
get _disabled() {
|
|
173
|
+
return this.disabled || this.disabledByParent;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The effective readonly state of the radio button.
|
|
177
|
+
* Returns `true` if either `readonly` or `readonlyByParent` is `true`.
|
|
178
|
+
*
|
|
179
|
+
* @private
|
|
180
|
+
*/
|
|
181
|
+
get _readonly() {
|
|
182
|
+
return this.readonly || this.readonlyByParent;
|
|
183
|
+
}
|
|
77
184
|
get _labelHidden() {
|
|
78
185
|
return this.labelPosition === "hidden";
|
|
79
186
|
}
|
|
@@ -82,7 +189,7 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
82
189
|
}
|
|
83
190
|
_handleClick(event) {
|
|
84
191
|
var _a;
|
|
85
|
-
if (this.
|
|
192
|
+
if (this._disabled || this._readonly) {
|
|
86
193
|
event.preventDefault();
|
|
87
194
|
}
|
|
88
195
|
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
@@ -90,6 +197,10 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
90
197
|
}
|
|
91
198
|
}
|
|
92
199
|
_handleChange(event) {
|
|
200
|
+
if (this._readonly) {
|
|
201
|
+
event.preventDefault();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
93
204
|
this.checked = event.target.checked;
|
|
94
205
|
this._updateFormValue();
|
|
95
206
|
this.dispatchEvent(
|
|
@@ -100,19 +211,25 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
100
211
|
);
|
|
101
212
|
}
|
|
102
213
|
render() {
|
|
103
|
-
const disabled = this.disabled || this.disabledByParent;
|
|
104
214
|
return html`<label
|
|
105
|
-
class=${cvaWrapper({
|
|
215
|
+
class=${cvaWrapper({
|
|
216
|
+
disabled: this._disabled,
|
|
217
|
+
readonly: this._readonly
|
|
218
|
+
})}
|
|
106
219
|
@click=${this._handleClick}
|
|
107
220
|
>
|
|
108
221
|
<span class="p-2">
|
|
109
222
|
<input
|
|
110
|
-
class=${RADIO_CLASS_NAME
|
|
223
|
+
class=${RADIO_CLASS_NAME({
|
|
224
|
+
disabled: this._disabled,
|
|
225
|
+
readonly: this._readonly && !this._disabled,
|
|
226
|
+
checked: this.checked
|
|
227
|
+
})}
|
|
111
228
|
type="radio"
|
|
112
229
|
name=${ifDefined(this.getBackingProperty("name"))}
|
|
113
230
|
aria-label=${this._labelHidden ? this.label : nothing}
|
|
114
231
|
tabindex=${ifDefined(this.skipTab ? "-1" : void 0)}
|
|
115
|
-
?disabled=${
|
|
232
|
+
?disabled=${this._disabled}
|
|
116
233
|
.checked=${this.checked}
|
|
117
234
|
.value=${this.value}
|
|
118
235
|
@change=${this._handleChange}
|
|
@@ -120,8 +237,10 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
120
237
|
</span>
|
|
121
238
|
<slot
|
|
122
239
|
class=${cvaLabel({
|
|
123
|
-
disabled,
|
|
124
|
-
hidden: this._labelHidden
|
|
240
|
+
disabled: this._disabled,
|
|
241
|
+
hidden: this._labelHidden,
|
|
242
|
+
readonly: this._readonly && !this._disabled,
|
|
243
|
+
checked: this.checked
|
|
125
244
|
})}
|
|
126
245
|
?hidden=${this._labelHidden}
|
|
127
246
|
>
|
|
@@ -168,9 +287,15 @@ __decorateClass([
|
|
|
168
287
|
__decorateClass([
|
|
169
288
|
property({ type: Boolean, reflect: true })
|
|
170
289
|
], DaikinRadio.prototype, "disabled", 2);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
property({ type: Boolean, reflect: true })
|
|
292
|
+
], DaikinRadio.prototype, "readonly", 2);
|
|
171
293
|
__decorateClass([
|
|
172
294
|
property({ type: Boolean, reflect: true, attribute: false })
|
|
173
295
|
], DaikinRadio.prototype, "disabledByParent", 2);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
property({ type: Boolean, reflect: true, attribute: false })
|
|
298
|
+
], DaikinRadio.prototype, "readonlyByParent", 2);
|
|
174
299
|
__decorateClass([
|
|
175
300
|
property({ type: Boolean, attribute: false })
|
|
176
301
|
], DaikinRadio.prototype, "skipTab", 2);
|
|
@@ -62,6 +62,10 @@ export declare class DaikinRadioGroup extends DDSElement {
|
|
|
62
62
|
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
63
63
|
*/
|
|
64
64
|
disabled: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the radio group is readonly.
|
|
67
|
+
*/
|
|
68
|
+
readonly: boolean;
|
|
65
69
|
/**
|
|
66
70
|
* The label text used as the value of aria-label.
|
|
67
71
|
* Set automatically by `reflectInputGroup` method.
|
|
@@ -19,7 +19,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
if (kind && result) __defProp(target, key, result);
|
|
20
20
|
return result;
|
|
21
21
|
};
|
|
22
|
-
const cvaRadioGroup = cva(["
|
|
22
|
+
const cvaRadioGroup = cva(["w-full", "flex", "gap-x-8", "gap-y-2"], {
|
|
23
23
|
variants: {
|
|
24
24
|
orientation: {
|
|
25
25
|
horizontal: ["flex-row", "flex-wrap"],
|
|
@@ -33,6 +33,7 @@ let DaikinRadioGroup = class extends DDSElement {
|
|
|
33
33
|
this.value = "";
|
|
34
34
|
this.required = false;
|
|
35
35
|
this.disabled = false;
|
|
36
|
+
this.readonly = false;
|
|
36
37
|
this._label = null;
|
|
37
38
|
this._handleRadioChange = (event) => {
|
|
38
39
|
event.stopPropagation();
|
|
@@ -43,6 +44,7 @@ let DaikinRadioGroup = class extends DDSElement {
|
|
|
43
44
|
_reflectSlotProperties() {
|
|
44
45
|
for (const radio of this._radios) {
|
|
45
46
|
radio.disabledByParent = this.disabled;
|
|
47
|
+
radio.readonlyByParent = this.readonly;
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
_updateRadios() {
|
|
@@ -67,6 +69,9 @@ let DaikinRadioGroup = class extends DDSElement {
|
|
|
67
69
|
* https://www.w3.org/WAI/ARIA/apg/patterns/radio/
|
|
68
70
|
*/
|
|
69
71
|
_handleKeyDown(event) {
|
|
72
|
+
if (this.disabled || this.readonly) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
70
75
|
const moveOffset = {
|
|
71
76
|
ArrowRight: 1,
|
|
72
77
|
ArrowDown: 1,
|
|
@@ -130,6 +135,7 @@ let DaikinRadioGroup = class extends DDSElement {
|
|
|
130
135
|
this._label = inputGroup.label;
|
|
131
136
|
this.required = !!inputGroup.required;
|
|
132
137
|
this.disabled = inputGroup.disabled;
|
|
138
|
+
this.readonly = inputGroup.readonly;
|
|
133
139
|
}
|
|
134
140
|
};
|
|
135
141
|
DaikinRadioGroup.styles = css`
|
|
@@ -165,6 +171,9 @@ __decorateClass([
|
|
|
165
171
|
__decorateClass([
|
|
166
172
|
property({ type: Boolean, reflect: true })
|
|
167
173
|
], DaikinRadioGroup.prototype, "disabled", 2);
|
|
174
|
+
__decorateClass([
|
|
175
|
+
property({ type: Boolean, reflect: true })
|
|
176
|
+
], DaikinRadioGroup.prototype, "readonly", 2);
|
|
168
177
|
__decorateClass([
|
|
169
178
|
state()
|
|
170
179
|
], DaikinRadioGroup.prototype, "_label", 2);
|
|
@@ -10,6 +10,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
10
10
|
* - `daikin-input-group` > `daikin-select`
|
|
11
11
|
*
|
|
12
12
|
* @slot - A slot for an HTML `<select>` element which may contain `<option>` and `<optgroup>`.
|
|
13
|
+
* @slot left-icon - A slot for an icon to be placed to the left of the summary text. Place `daikin-icon` or something similar.
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
*
|
|
@@ -40,18 +41,28 @@ export declare class DaikinSelect extends DDSElement {
|
|
|
40
41
|
* Whether the select component is required.
|
|
41
42
|
*/
|
|
42
43
|
required: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the select is readonly.
|
|
46
|
+
*/
|
|
47
|
+
readonly: boolean;
|
|
43
48
|
/**
|
|
44
49
|
* Whether the select component is disabled.
|
|
45
50
|
* This value will also be applied to the `disabled` property of the `<select>` element in the slot.
|
|
46
51
|
*/
|
|
47
52
|
disabled: boolean;
|
|
48
53
|
private readonly _selects;
|
|
54
|
+
private _hasLeftIcon;
|
|
49
55
|
/**
|
|
50
56
|
* The label text used as the value of aria-label.
|
|
51
57
|
* Set automatically by `reflectInputGroup` method.
|
|
52
58
|
*/
|
|
53
59
|
private _label;
|
|
60
|
+
private _handleLeftIconSlotChange;
|
|
54
61
|
private get _select();
|
|
62
|
+
/**
|
|
63
|
+
* Native <select> elements do not support the readonly attribute, so a custom controller is used to achieve a similar readonly behavior.
|
|
64
|
+
*/
|
|
65
|
+
private readonly _readonlyController;
|
|
55
66
|
private _updateSelect;
|
|
56
67
|
private _handleSlotChange;
|
|
57
68
|
render(): import('lit-html').TemplateResult<1>;
|