@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
|
@@ -6,7 +6,7 @@ import { createRef, ref } from "lit/directives/ref.js";
|
|
|
6
6
|
import { repeat } from "lit/directives/repeat.js";
|
|
7
7
|
import { DDSElement } from "../../base/dds-element.js";
|
|
8
8
|
import "../../base/dds-form-element.js";
|
|
9
|
-
import { property } from "../../base/dds-property.js";
|
|
9
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
10
10
|
import { ddsElement } from "../../base/decorators.js";
|
|
11
11
|
import "../../base/define.js";
|
|
12
12
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -23,11 +23,31 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
23
23
|
if (kind && result) __defProp(target, key, result);
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
|
+
const getColumnPartName = (key) => `column-${key.replace(/[^a-zA-Z0-9_-]/g, "-")}`;
|
|
27
|
+
const getRowPartName = (id) => `row-${id.replace(/[^a-zA-Z0-9_-]/g, "-")}`;
|
|
26
28
|
const defaultSort = (a, b, key) => String(a[key]).localeCompare(String(b[key]));
|
|
29
|
+
const cvaTableHeaderCell = cva(["h-full", "p-0"], {
|
|
30
|
+
variants: {
|
|
31
|
+
hoverEnabled: {
|
|
32
|
+
false: [],
|
|
33
|
+
true: ["hover:bg-ddt-color-common-surface-hover"]
|
|
34
|
+
},
|
|
35
|
+
sortable: {
|
|
36
|
+
false: [],
|
|
37
|
+
true: [
|
|
38
|
+
"active:bg-ddt-color-common-surface-press",
|
|
39
|
+
"focus-within:outline-solid",
|
|
40
|
+
"focus-within:outline-2",
|
|
41
|
+
"focus-within:-outline-offset-2",
|
|
42
|
+
"focus-within:outline-ddt-color-common-border-focus"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
27
47
|
const cvaRow = cva(
|
|
28
48
|
[
|
|
29
49
|
"border-b",
|
|
30
|
-
"border-b-
|
|
50
|
+
"border-b-(--ddc-table-border-color)",
|
|
31
51
|
"focus-visible:outline-solid",
|
|
32
52
|
"focus-visible:outline-2",
|
|
33
53
|
"focus-visible:-outline-offset-2",
|
|
@@ -37,6 +57,7 @@ const cvaRow = cva(
|
|
|
37
57
|
variants: {
|
|
38
58
|
selected: {
|
|
39
59
|
false: [
|
|
60
|
+
"bg-ddt-color-common-surface-default",
|
|
40
61
|
"hover:group-[:not([data-hover])]:bg-ddt-color-common-surface-hover",
|
|
41
62
|
"data-hover:bg-ddt-color-common-surface-hover"
|
|
42
63
|
],
|
|
@@ -56,6 +77,8 @@ let DaikinTable = class extends DDSElement {
|
|
|
56
77
|
this.rows = [];
|
|
57
78
|
this.selectable = false;
|
|
58
79
|
this.sortable = false;
|
|
80
|
+
this.border = "underline";
|
|
81
|
+
this.stickyHeader = false;
|
|
59
82
|
this.selection = [];
|
|
60
83
|
this.sort = null;
|
|
61
84
|
this.order = null;
|
|
@@ -154,12 +177,19 @@ let DaikinTable = class extends DDSElement {
|
|
|
154
177
|
this.headers,
|
|
155
178
|
({ key }) => key,
|
|
156
179
|
({ key, label, alignment, sortable }) => {
|
|
157
|
-
const
|
|
180
|
+
const isSortableHeader = this.sortable && sortable;
|
|
181
|
+
const isHeaderHoverEnabled = isSortableHeader;
|
|
182
|
+
const currentSort = isSortableHeader && this.sort === key ? this.order === "asc" ? "ascending" : "descending" : void 0;
|
|
158
183
|
return html`<th
|
|
159
|
-
class
|
|
184
|
+
class=${cvaTableHeaderCell({
|
|
185
|
+
hoverEnabled: isHeaderHoverEnabled,
|
|
186
|
+
sortable: isSortableHeader
|
|
187
|
+
})}
|
|
188
|
+
part=${`header cell ${getColumnPartName(String(key))}`}
|
|
160
189
|
aria-sort=${ifDefined(currentSort)}
|
|
161
190
|
>
|
|
162
191
|
<slot
|
|
192
|
+
class="block h-full"
|
|
163
193
|
name=${`header:${key}`}
|
|
164
194
|
data-key=${key}
|
|
165
195
|
@change-sort=${(event) => this._handleClickSort(event, key)}
|
|
@@ -167,7 +197,7 @@ let DaikinTable = class extends DDSElement {
|
|
|
167
197
|
>
|
|
168
198
|
<daikin-table-header-cell
|
|
169
199
|
alignment=${alignment ?? "left"}
|
|
170
|
-
?sortable=${
|
|
200
|
+
?sortable=${isSortableHeader}
|
|
171
201
|
order=${ifDefined(currentSort && this.order)}
|
|
172
202
|
>
|
|
173
203
|
${label}
|
|
@@ -176,10 +206,20 @@ let DaikinTable = class extends DDSElement {
|
|
|
176
206
|
</th>`;
|
|
177
207
|
}
|
|
178
208
|
);
|
|
179
|
-
const createRow = (item) => repeat(
|
|
209
|
+
const createRow = (item, isOddRow, isSelectedRow) => repeat(
|
|
180
210
|
this.headers,
|
|
181
211
|
({ key }) => `${item.id}:${key}`,
|
|
182
|
-
({ key, alignment }) => html`<td
|
|
212
|
+
({ key, alignment }) => html`<td
|
|
213
|
+
class="h-full p-0"
|
|
214
|
+
part=${[
|
|
215
|
+
"body",
|
|
216
|
+
"cell",
|
|
217
|
+
getRowPartName(String(item.id)),
|
|
218
|
+
getColumnPartName(String(key)),
|
|
219
|
+
isSelectedRow ? "selected" : null,
|
|
220
|
+
isOddRow ? "odd" : null
|
|
221
|
+
].filter((partName) => !!partName).join(" ")}
|
|
222
|
+
>
|
|
183
223
|
<slot name=${`cell:${item.id}:${key}`}>
|
|
184
224
|
<daikin-table-cell alignment=${alignment ?? "left"}>
|
|
185
225
|
${item[key]}
|
|
@@ -194,10 +234,13 @@ let DaikinTable = class extends DDSElement {
|
|
|
194
234
|
?data-hover=${this._currentTouchHoverRowId != null}
|
|
195
235
|
>
|
|
196
236
|
<thead>
|
|
197
|
-
<tr
|
|
237
|
+
<tr
|
|
238
|
+
class="border-b border-b-(--ddc-table-border-color)"
|
|
239
|
+
part="header row"
|
|
240
|
+
>
|
|
198
241
|
${this.selectable ? html`<td class="w-12 p-0">
|
|
199
242
|
<span
|
|
200
|
-
class="flex items-center justify-center size-full min-h-
|
|
243
|
+
class="flex items-center justify-center size-full min-h-(--dds-input-height)"
|
|
201
244
|
>
|
|
202
245
|
<daikin-checkbox
|
|
203
246
|
name="allItem"
|
|
@@ -226,16 +269,35 @@ let DaikinTable = class extends DDSElement {
|
|
|
226
269
|
${repeat(
|
|
227
270
|
this._currentView,
|
|
228
271
|
({ id }) => id,
|
|
229
|
-
(row) =>
|
|
272
|
+
(row, index) => {
|
|
273
|
+
const isOddRow = index % 2 === 0;
|
|
274
|
+
const isSelectedRow = this.selectable && this.selection.includes(row.id);
|
|
275
|
+
return html`<tr
|
|
230
276
|
class=${cvaRow({
|
|
231
|
-
|
|
232
|
-
|
|
277
|
+
selected: isSelectedRow
|
|
278
|
+
})}
|
|
279
|
+
part=${[
|
|
280
|
+
"body",
|
|
281
|
+
"row",
|
|
282
|
+
getRowPartName(String(row.id)),
|
|
283
|
+
isSelectedRow ? "selected" : null
|
|
284
|
+
].filter((partName) => !!partName).join(" ")}
|
|
233
285
|
data-id=${row.id}
|
|
234
286
|
?data-hover=${this._currentTouchHoverRowId === row.id}
|
|
235
287
|
>
|
|
236
|
-
${this.selectable ? html`<td
|
|
288
|
+
${this.selectable ? html`<td
|
|
289
|
+
class="w-12 p-0"
|
|
290
|
+
part=${[
|
|
291
|
+
"body",
|
|
292
|
+
"cell",
|
|
293
|
+
"checkbox-cell",
|
|
294
|
+
getRowPartName(String(row.id)),
|
|
295
|
+
isSelectedRow ? "selected" : null,
|
|
296
|
+
isOddRow ? "odd" : null
|
|
297
|
+
].filter((partName) => !!partName).join(" ")}
|
|
298
|
+
>
|
|
237
299
|
<span
|
|
238
|
-
class="flex justify-center items-center size-full min-h-
|
|
300
|
+
class="flex justify-center items-center size-full min-h-(--dds-input-height)"
|
|
239
301
|
>
|
|
240
302
|
<daikin-checkbox
|
|
241
303
|
name=${row.id}
|
|
@@ -246,8 +308,9 @@ let DaikinTable = class extends DDSElement {
|
|
|
246
308
|
></daikin-checkbox>
|
|
247
309
|
</span>
|
|
248
310
|
</td>` : nothing}
|
|
249
|
-
${createRow(row)}
|
|
250
|
-
</tr
|
|
311
|
+
${createRow(row, isOddRow, isSelectedRow)}
|
|
312
|
+
</tr>`;
|
|
313
|
+
}
|
|
251
314
|
)}
|
|
252
315
|
</tbody>
|
|
253
316
|
</table>
|
|
@@ -276,7 +339,25 @@ DaikinTable.styles = css`
|
|
|
276
339
|
:host {
|
|
277
340
|
display: block;
|
|
278
341
|
width: 100%;
|
|
279
|
-
overflow: auto;
|
|
342
|
+
overflow-x: auto;
|
|
343
|
+
overflow-y: visible;
|
|
344
|
+
--ddc-table-border-color: var(--dds-color-divider);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
:host([border="none"]) {
|
|
348
|
+
--ddc-table-border-color: transparent;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
:host([sticky-header]) {
|
|
352
|
+
overflow: visible;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:host([sticky-header]) thead tr > th,
|
|
356
|
+
:host([sticky-header]) thead tr > td {
|
|
357
|
+
position: sticky;
|
|
358
|
+
top: var(--table-sticky-header-top, 0px);
|
|
359
|
+
z-index: 1;
|
|
360
|
+
background-color: var(--dds-color-common-surface-default);
|
|
280
361
|
}
|
|
281
362
|
`;
|
|
282
363
|
__decorateClass([
|
|
@@ -291,6 +372,17 @@ __decorateClass([
|
|
|
291
372
|
__decorateClass([
|
|
292
373
|
property({ type: Boolean, reflect: true })
|
|
293
374
|
], DaikinTable.prototype, "sortable", 2);
|
|
375
|
+
__decorateClass([
|
|
376
|
+
property({
|
|
377
|
+
type: String,
|
|
378
|
+
reflect: true,
|
|
379
|
+
fallbackValue: "underline",
|
|
380
|
+
isAllowedValue: oneOf(["none", "underline"])
|
|
381
|
+
})
|
|
382
|
+
], DaikinTable.prototype, "border", 2);
|
|
383
|
+
__decorateClass([
|
|
384
|
+
property({ type: Boolean, reflect: true, attribute: "sticky-header" })
|
|
385
|
+
], DaikinTable.prototype, "stickyHeader", 2);
|
|
294
386
|
__decorateClass([
|
|
295
387
|
property({ type: Array, attribute: false })
|
|
296
388
|
], DaikinTable.prototype, "selection", 2);
|
|
@@ -23,9 +23,9 @@ const cvaCell = cva(
|
|
|
23
23
|
"gap-1",
|
|
24
24
|
"justify-center",
|
|
25
25
|
"size-full",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"px-(--dds-space-400)",
|
|
27
|
+
"py-(--dds-padding-30)",
|
|
28
|
+
"text-(length:--dds-font-size-label-text)",
|
|
29
29
|
"text-ddt-color-common-text-primary",
|
|
30
30
|
"natural-break"
|
|
31
31
|
],
|
|
@@ -56,7 +56,6 @@ DaikinTableCell.styles = css`
|
|
|
56
56
|
:host {
|
|
57
57
|
display: block;
|
|
58
58
|
width: 100%;
|
|
59
|
-
min-height: 3rem;
|
|
60
59
|
}
|
|
61
60
|
`;
|
|
62
61
|
__decorateClass([
|
|
@@ -23,9 +23,10 @@ const cvaHeaderCell = cva(
|
|
|
23
23
|
"items-center",
|
|
24
24
|
"gap-2",
|
|
25
25
|
"size-full",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"px-(--dds-space-400)",
|
|
27
|
+
"py-(--dds-padding-30)",
|
|
28
|
+
"text-(length:--dds-font-size-label-text)",
|
|
29
|
+
"leading-normal",
|
|
29
30
|
"text-ddt-color-common-text-primary",
|
|
30
31
|
"font-bold",
|
|
31
32
|
"natural-break"
|
|
@@ -39,16 +40,7 @@ const cvaHeaderCell = cva(
|
|
|
39
40
|
},
|
|
40
41
|
sortable: {
|
|
41
42
|
false: [],
|
|
42
|
-
true: [
|
|
43
|
-
"hover:bg-ddt-color-common-surface-hover",
|
|
44
|
-
"active:bg-ddt-color-common-surface-press",
|
|
45
|
-
"focus-visible:outline-solid",
|
|
46
|
-
"focus-visible:outline-2",
|
|
47
|
-
"focus-visible:-outline-offset-2",
|
|
48
|
-
"focus-visible:outline-ddt-color-common-border-focus",
|
|
49
|
-
"after:flex-none",
|
|
50
|
-
"after:size-6"
|
|
51
|
-
]
|
|
43
|
+
true: ["after:flex-none", "after:size-(--dds-icon)"]
|
|
52
44
|
},
|
|
53
45
|
order: {
|
|
54
46
|
asc: [],
|
|
@@ -91,20 +83,34 @@ let DaikinTableHeaderCell = class extends DDSElement {
|
|
|
91
83
|
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
92
84
|
}
|
|
93
85
|
render() {
|
|
86
|
+
const rootNode = this.getRootNode();
|
|
87
|
+
const rootHost = rootNode instanceof ShadowRoot ? rootNode.host : null;
|
|
88
|
+
const isInDaikinTable = !!this.closest("daikin-table") || (rootHost == null ? void 0 : rootHost.tagName) === "DAIKIN-TABLE";
|
|
94
89
|
const headerCellCN = cvaHeaderCell({
|
|
95
90
|
alignment: this.alignment,
|
|
96
91
|
sortable: this.sortable,
|
|
97
92
|
order: this.order === "asc" || this.order === "desc" ? this.order : null
|
|
98
93
|
});
|
|
94
|
+
const sortableInteractionCN = this.sortable && !isInDaikinTable ? "hover:bg-ddt-color-common-surface-hover active:bg-ddt-color-common-surface-press focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ddt-color-common-border-focus" : "";
|
|
95
|
+
const suppressNativeFocusRingCN = isInDaikinTable ? "focus:outline-none focus-visible:outline-none" : "";
|
|
99
96
|
const content = html`<slot
|
|
100
97
|
name="left-icon"
|
|
101
|
-
class="flex-none slotted:flex-none icon-size-
|
|
98
|
+
class="flex-none slotted:flex-none icon-size-token"
|
|
102
99
|
></slot
|
|
103
100
|
><slot></slot>`;
|
|
104
101
|
return this.sortable ? html`<button
|
|
105
102
|
${ref(this._focusableRef)}
|
|
106
103
|
type="button"
|
|
107
|
-
class=${
|
|
104
|
+
class=${[
|
|
105
|
+
headerCellCN,
|
|
106
|
+
sortableInteractionCN,
|
|
107
|
+
suppressNativeFocusRingCN
|
|
108
|
+
].filter((className) => !!className).join(" ")}
|
|
109
|
+
@mousedown=${(event) => {
|
|
110
|
+
if (isInDaikinTable) {
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
}
|
|
113
|
+
}}
|
|
108
114
|
@click=${() => this.dispatchEvent(new Event("change-sort", { bubbles: true }))}
|
|
109
115
|
>
|
|
110
116
|
${content}
|
|
@@ -4,6 +4,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
4
4
|
*
|
|
5
5
|
* @fires remove - A custom event emitted when a user clicks the remove button.
|
|
6
6
|
*
|
|
7
|
+
* @csspart tag - Targets the internal <span> element wrapping the tag. This is typically used to control the tag's styling and interactivity. For example, you can adjust spacing and customize the cursor appearance during dragging: daikin-tag::part(tag) { margin: -4px; padding: 4px; cursor: grab; } daikin-tag::part(tag):active { cursor: grabbing; }
|
|
8
|
+
*
|
|
7
9
|
* @slot - A slot for the tag content.
|
|
8
10
|
*
|
|
9
11
|
* @example
|
|
@@ -26,6 +28,18 @@ export declare class DaikinTag extends DDSElement {
|
|
|
26
28
|
* Provides an accessible name of the tag.
|
|
27
29
|
*/
|
|
28
30
|
tagAriaLabel: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Specify the color of the tag.
|
|
33
|
+
*
|
|
34
|
+
* @default "gray"
|
|
35
|
+
*/
|
|
36
|
+
color: "gray" | "red" | "blue" | "yellow" | "green" | "orange" | "purple";
|
|
37
|
+
/**
|
|
38
|
+
* Whether the tag has a shadow to indicate elevation.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
elevated: boolean;
|
|
29
43
|
/**
|
|
30
44
|
* Provides an accessible name of the remove button.
|
|
31
45
|
*/
|
|
@@ -4,7 +4,7 @@ import { query } from "lit/decorators.js";
|
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
6
|
import "../../base/dds-form-element.js";
|
|
7
|
-
import { property } from "../../base/dds-property.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -18,35 +18,53 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const cvaWrapper = cva(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
const cvaWrapper = cva(
|
|
22
|
+
[
|
|
23
|
+
"flex",
|
|
24
|
+
"items-center",
|
|
25
|
+
"justify-between",
|
|
26
|
+
"rounded",
|
|
27
|
+
"overflow-hidden",
|
|
28
|
+
"size-full",
|
|
29
|
+
"gap-1",
|
|
30
|
+
"bg-(--bg-color-base)"
|
|
31
|
+
],
|
|
32
|
+
{
|
|
33
|
+
variants: {
|
|
34
|
+
elevated: {
|
|
35
|
+
true: [
|
|
36
|
+
"shadow-[0px_1px_2px_1px_var(--dds-color-common-background-overlay)]"
|
|
37
|
+
],
|
|
38
|
+
false: []
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
31
43
|
const cvaRemoveButton = cva([
|
|
32
44
|
"mr-1",
|
|
45
|
+
"flex-none",
|
|
46
|
+
"relative",
|
|
33
47
|
"w-6",
|
|
34
48
|
"h-6",
|
|
35
49
|
"flex",
|
|
36
|
-
"flex-none",
|
|
37
50
|
"items-center",
|
|
38
51
|
"justify-center",
|
|
39
52
|
"rounded-full",
|
|
40
53
|
"overflow-hidden",
|
|
41
|
-
"focus-visible:outline
|
|
54
|
+
"focus-visible:outline",
|
|
42
55
|
"focus-visible:outline-2",
|
|
56
|
+
"after:absolute",
|
|
57
|
+
"after:bg-transparent",
|
|
58
|
+
"after:size-6",
|
|
59
|
+
"after:top-1/2",
|
|
60
|
+
"after:left-1/2",
|
|
61
|
+
"after:-translate-x-1/2",
|
|
62
|
+
"after:-translate-y-1/2",
|
|
63
|
+
"after:rounded-full",
|
|
43
64
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
44
|
-
"enabled:[--color-primary:var(--dds-color-common-
|
|
45
|
-
"enabled:hover:[--color-
|
|
46
|
-
"enabled:active:[--color-
|
|
47
|
-
"enabled:[--color-secondary:var(--dds-color-common-surface-secondary-default)]",
|
|
48
|
-
"enabled:hover:[--color-secondary:var(--dds-color-common-surface-secondary-hover)]",
|
|
49
|
-
"enabled:active:[--color-secondary:var(--dds-color-common-surface-secondary-press)]",
|
|
65
|
+
"enabled:[--color-primary:var(--dds-color-common-text-primary)]",
|
|
66
|
+
"enabled:hover:[--color-secondary:var(--dds-color-common-surface-neutral-overlay-hover)]",
|
|
67
|
+
"enabled:active:[--color-secondary:var(--dds-color-common-surface-neutral-overlay-press)]",
|
|
50
68
|
"text-(--color-primary)",
|
|
51
69
|
"bg-(--color-secondary)"
|
|
52
70
|
]);
|
|
@@ -55,6 +73,7 @@ let DaikinTag = class extends DDSElement {
|
|
|
55
73
|
super(...arguments);
|
|
56
74
|
this.hideRemoveButton = false;
|
|
57
75
|
this.tagAriaLabel = null;
|
|
76
|
+
this.elevated = false;
|
|
58
77
|
this.removeButtonAriaLabel = null;
|
|
59
78
|
}
|
|
60
79
|
_handleRemoveClick(event) {
|
|
@@ -64,9 +83,10 @@ let DaikinTag = class extends DDSElement {
|
|
|
64
83
|
render() {
|
|
65
84
|
return html`
|
|
66
85
|
<div
|
|
86
|
+
part="tag"
|
|
67
87
|
role="group"
|
|
68
88
|
aria-label=${ifDefined(this.tagAriaLabel ?? void 0)}
|
|
69
|
-
class=${cvaWrapper()}
|
|
89
|
+
class=${cvaWrapper({ elevated: this.elevated })}
|
|
70
90
|
>
|
|
71
91
|
<span
|
|
72
92
|
class="text-ddt-color-common-text-primary p-2 text-(length:--dds-font-size-350) natural-break"
|
|
@@ -80,7 +100,9 @@ let DaikinTag = class extends DDSElement {
|
|
|
80
100
|
aria-label=${ifDefined(this.removeButtonAriaLabel ?? "Remove")}
|
|
81
101
|
@click=${this._handleRemoveClick}
|
|
82
102
|
>
|
|
83
|
-
<span
|
|
103
|
+
<span
|
|
104
|
+
class="icon-[daikin--close] text-(--color-primary) size-6 flex-none"
|
|
105
|
+
></span>
|
|
84
106
|
</button>
|
|
85
107
|
`}
|
|
86
108
|
</div>
|
|
@@ -101,6 +123,52 @@ DaikinTag.styles = css`
|
|
|
101
123
|
:host {
|
|
102
124
|
display: block;
|
|
103
125
|
width: fit-content;
|
|
126
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-gray);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([color="gray"]) {
|
|
130
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-gray);
|
|
131
|
+
}
|
|
132
|
+
:host([color="red"]) {
|
|
133
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-red);
|
|
134
|
+
}
|
|
135
|
+
:host([color="blue"]) {
|
|
136
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-blue);
|
|
137
|
+
}
|
|
138
|
+
:host([color="yellow"]) {
|
|
139
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-yellow);
|
|
140
|
+
}
|
|
141
|
+
:host([color="green"]) {
|
|
142
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-green);
|
|
143
|
+
}
|
|
144
|
+
:host([color="orange"]) {
|
|
145
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-orange);
|
|
146
|
+
}
|
|
147
|
+
:host([color="purple"]) {
|
|
148
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-base-purple);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([elevated]),
|
|
152
|
+
:host([elevated][color="gray"]) {
|
|
153
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-gray);
|
|
154
|
+
}
|
|
155
|
+
:host([elevated][color="red"]) {
|
|
156
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-red);
|
|
157
|
+
}
|
|
158
|
+
:host([elevated][color="blue"]) {
|
|
159
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-blue);
|
|
160
|
+
}
|
|
161
|
+
:host([elevated][color="yellow"]) {
|
|
162
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-yellow);
|
|
163
|
+
}
|
|
164
|
+
:host([elevated][color="green"]) {
|
|
165
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-green);
|
|
166
|
+
}
|
|
167
|
+
:host([elevated][color="orange"]) {
|
|
168
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-orange);
|
|
169
|
+
}
|
|
170
|
+
:host([elevated][color="purple"]) {
|
|
171
|
+
--bg-color-base: var(--dds-color-common-accent-lv2-elevated-purple);
|
|
104
172
|
}
|
|
105
173
|
`;
|
|
106
174
|
__decorateClass([
|
|
@@ -109,6 +177,17 @@ __decorateClass([
|
|
|
109
177
|
__decorateClass([
|
|
110
178
|
property({ type: String, reflect: true, attribute: "tag-aria-label" })
|
|
111
179
|
], DaikinTag.prototype, "tagAriaLabel", 2);
|
|
180
|
+
__decorateClass([
|
|
181
|
+
property({
|
|
182
|
+
type: String,
|
|
183
|
+
reflect: true,
|
|
184
|
+
fallbackValue: "gray",
|
|
185
|
+
isAllowedValue: oneOf(["gray", "red", "blue", "yellow", "green", "orange", "purple"])
|
|
186
|
+
})
|
|
187
|
+
], DaikinTag.prototype, "color", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
property({ type: Boolean, reflect: true })
|
|
190
|
+
], DaikinTag.prototype, "elevated", 2);
|
|
112
191
|
__decorateClass([
|
|
113
192
|
property({
|
|
114
193
|
type: String,
|
|
@@ -21,8 +21,9 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
21
21
|
};
|
|
22
22
|
const cvaTextArea = cva(
|
|
23
23
|
[
|
|
24
|
+
"block",
|
|
24
25
|
"w-full",
|
|
25
|
-
"
|
|
26
|
+
"box-border",
|
|
26
27
|
"bg-ddt-color-common-background-default",
|
|
27
28
|
"px-4",
|
|
28
29
|
"py-3",
|
|
@@ -103,6 +104,7 @@ let DaikinTextArea = class extends DDSFormElement {
|
|
|
103
104
|
error: !this.disabled && this.error,
|
|
104
105
|
resize: this.resizable
|
|
105
106
|
})}
|
|
107
|
+
style="height: inherit; min-height: inherit;"
|
|
106
108
|
name=${ifDefined(this.getBackingProperty("name"))}
|
|
107
109
|
placeholder=${ifDefined(this.getBackingProperty("placeholder"))}
|
|
108
110
|
autocomplete=${ifDefined(this.getBackingProperty("autocomplete"))}
|
|
@@ -130,6 +132,7 @@ let DaikinTextArea = class extends DDSFormElement {
|
|
|
130
132
|
reflectInputGroup(inputGroup) {
|
|
131
133
|
const isError = !inputGroup.disabled && (!!inputGroup.error || !!inputGroup.textareaLimitExceeded);
|
|
132
134
|
this.disabled = !!inputGroup.disabled;
|
|
135
|
+
this.readonly = !!inputGroup.readonly;
|
|
133
136
|
this.required = !!inputGroup.required;
|
|
134
137
|
this.error = isError;
|
|
135
138
|
this._label = inputGroup.label;
|
|
@@ -140,9 +143,26 @@ DaikinTextArea.styles = css`
|
|
|
140
143
|
|
|
141
144
|
:host {
|
|
142
145
|
display: block;
|
|
143
|
-
height: 5.5rem;
|
|
146
|
+
min-height: 5.5rem;
|
|
144
147
|
position: relative;
|
|
145
148
|
}
|
|
149
|
+
|
|
150
|
+
:host([readonly]:not([disabled])) textarea {
|
|
151
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
152
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([readonly]:not([disabled])) textarea:hover,
|
|
156
|
+
:host([readonly]:not([disabled])) textarea:active {
|
|
157
|
+
--color-base: var(--dds-color-common-surface-secondary);
|
|
158
|
+
background-color: var(--dds-color-common-surface-secondary);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:host([readonly][error]:not([disabled])) textarea,
|
|
162
|
+
:host([readonly][error]:not([disabled])) textarea:hover,
|
|
163
|
+
:host([readonly][error]:not([disabled])) textarea:active {
|
|
164
|
+
--color-base: var(--dds-color-common-danger-default);
|
|
165
|
+
}
|
|
146
166
|
`;
|
|
147
167
|
__decorateClass([
|
|
148
168
|
property({ type: String, reflect: true, fallbackValue: "" })
|
|
@@ -97,6 +97,15 @@ export declare class DaikinTextField extends DDSFormElement {
|
|
|
97
97
|
* Interval between values. This is valid when `type="number"`.
|
|
98
98
|
*/
|
|
99
99
|
step: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* When `type="number"`, whether to allow free input or snap to step boundaries.
|
|
102
|
+
* - `"free"`: Do not snap to step boundaries; increment/decrement relative to the current value.
|
|
103
|
+
* - `"snap"`: If the current value is off a step boundary, snap to the next/previous step boundary in the given direction (and finish without applying an extra step).
|
|
104
|
+
* Note that step boundaries are aligned to the `min` value if specified; otherwise, they are aligned to `0`. For example, with `step="3"`, boundaries are `..., -3, 0, 3, 6, ...`. If `min="-4"` is also set, the boundaries become `-4, -1, 2, 5, ...`.
|
|
105
|
+
*
|
|
106
|
+
* @default "free"
|
|
107
|
+
*/
|
|
108
|
+
stepMode: "free" | "snap";
|
|
100
109
|
/**
|
|
101
110
|
* The minimum value. This is valid when `type="number"`.
|
|
102
111
|
*/
|