@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
|
@@ -20,16 +20,51 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
const cvaLayout = classVarianceAuthority.cva(
|
|
24
|
+
["flex", "w-full", "text-ddt-color-common-text-primary"],
|
|
25
|
+
{
|
|
26
|
+
variants: {
|
|
27
|
+
orientation: {
|
|
28
|
+
vertical: ["flex-col", "justify-center", "gap-(--dds-gap-20)"],
|
|
29
|
+
horizontal: ["flex-row", "gap-6"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
const cvaContentArea = classVarianceAuthority.cva(
|
|
35
|
+
["flex", "flex-col", "gap-(--dds-gap-20)", "natural-break"],
|
|
36
|
+
{
|
|
37
|
+
variants: {
|
|
38
|
+
orientation: {
|
|
39
|
+
vertical: [],
|
|
40
|
+
horizontal: ["w-50", "shrink-0"]
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
}
|
|
30
|
-
|
|
44
|
+
);
|
|
45
|
+
const cvaLabel = classVarianceAuthority.cva(
|
|
46
|
+
[
|
|
47
|
+
"flex",
|
|
48
|
+
"items-center",
|
|
49
|
+
"font-bold",
|
|
50
|
+
"text-(length:--dds-font-size-label-text)"
|
|
51
|
+
],
|
|
52
|
+
{
|
|
53
|
+
variants: {
|
|
54
|
+
disabled: {
|
|
55
|
+
false: [],
|
|
56
|
+
true: ["text-ddt-color-common-disabled"]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
);
|
|
31
61
|
const cvaHelper = classVarianceAuthority.cva(
|
|
32
|
-
[
|
|
62
|
+
[
|
|
63
|
+
"flex",
|
|
64
|
+
"gap-1",
|
|
65
|
+
"items-center",
|
|
66
|
+
"text-(length:--dds-font-size-helper-text)"
|
|
67
|
+
],
|
|
33
68
|
{
|
|
34
69
|
variants: {
|
|
35
70
|
type: {
|
|
@@ -55,7 +90,7 @@ const cvaHelper = classVarianceAuthority.cva(
|
|
|
55
90
|
}
|
|
56
91
|
);
|
|
57
92
|
const cvaCounter = classVarianceAuthority.cva(
|
|
58
|
-
["text-(length:--dds-font-size-
|
|
93
|
+
["text-(length:--dds-font-size-helper-text)", "font-bold", "ml-auto"],
|
|
59
94
|
{
|
|
60
95
|
variants: {
|
|
61
96
|
variant: {
|
|
@@ -74,6 +109,7 @@ exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement
|
|
|
74
109
|
this.required = null;
|
|
75
110
|
this.error = null;
|
|
76
111
|
this.disabled = false;
|
|
112
|
+
this.readonly = false;
|
|
77
113
|
this.textareaMaxCount = null;
|
|
78
114
|
this.textareaLimitExceedError = null;
|
|
79
115
|
this._textareaCount = null;
|
|
@@ -122,6 +158,7 @@ exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement
|
|
|
122
158
|
case "error":
|
|
123
159
|
case "textareaLimitExceedError":
|
|
124
160
|
return lit.html`<daikin-status-message
|
|
161
|
+
class="part-status-message:text-(length:--dds-font-size-helper-text)"
|
|
125
162
|
status="negative"
|
|
126
163
|
status-message-role="alert"
|
|
127
164
|
size="small"
|
|
@@ -137,30 +174,37 @@ exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement
|
|
|
137
174
|
}
|
|
138
175
|
};
|
|
139
176
|
return lit.html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
140
|
-
<label
|
|
141
|
-
class
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
177
|
+
<label class=${cvaLayout({ orientation: this.orientation })}>
|
|
178
|
+
<div class=${cvaContentArea({ orientation: this.orientation })}>
|
|
179
|
+
<div class="flex items-center flex-wrap gap-(--dds-gap-10) font-bold">
|
|
180
|
+
${this.label ? lit.html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
181
|
+
${this.label}
|
|
182
|
+
</span>` : lit.nothing}
|
|
183
|
+
${this.required && !this.disabled ? lit.html`<span
|
|
184
|
+
class="text-ddt-color-common-danger-default text-(length:--dds-font-size-300)"
|
|
185
|
+
>
|
|
186
|
+
${this.required}
|
|
187
|
+
</span>` : lit.nothing}
|
|
188
|
+
</div>
|
|
189
|
+
${formatHelperText(helperTextVariant, helperText)}
|
|
152
190
|
</div>
|
|
153
|
-
${
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
191
|
+
${this.textareaMaxCount != null ? lit.html`<div class="flex flex-col gap-2 w-full min-w-0">
|
|
192
|
+
<slot
|
|
193
|
+
@slotchange=${this._handleSlotChange}
|
|
194
|
+
@input=${this._handleInput}
|
|
195
|
+
></slot>
|
|
196
|
+
${this._textareaCount != null ? lit.html`<div class="flex">
|
|
197
|
+
<span
|
|
198
|
+
class=${cvaCounter({
|
|
160
199
|
variant: this.disabled ? "disabled" : this.textareaLimitExceeded ? "error" : "normal"
|
|
161
200
|
})}
|
|
162
|
-
|
|
163
|
-
|
|
201
|
+
>${this._textareaCount}/${this.textareaMaxCount}</span
|
|
202
|
+
>
|
|
203
|
+
</div>` : lit.nothing}
|
|
204
|
+
</div>` : lit.html`<slot
|
|
205
|
+
@slotchange=${this._handleSlotChange}
|
|
206
|
+
@input=${this._handleInput}
|
|
207
|
+
></slot>`}
|
|
164
208
|
</label>
|
|
165
209
|
</fieldset>`;
|
|
166
210
|
}
|
|
@@ -176,6 +220,17 @@ exports.DaikinInputGroup.styles = lit.css`
|
|
|
176
220
|
width: 100%;
|
|
177
221
|
}
|
|
178
222
|
`;
|
|
223
|
+
__decorateClass([
|
|
224
|
+
ddsProperty.property({
|
|
225
|
+
type: String,
|
|
226
|
+
reflect: true,
|
|
227
|
+
fallbackValue: "vertical",
|
|
228
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
229
|
+
"vertical",
|
|
230
|
+
"horizontal"
|
|
231
|
+
])
|
|
232
|
+
})
|
|
233
|
+
], exports.DaikinInputGroup.prototype, "orientation", 2);
|
|
179
234
|
__decorateClass([
|
|
180
235
|
ddsProperty.property({ type: String, reflect: true })
|
|
181
236
|
], exports.DaikinInputGroup.prototype, "label", 2);
|
|
@@ -191,6 +246,9 @@ __decorateClass([
|
|
|
191
246
|
__decorateClass([
|
|
192
247
|
ddsProperty.property({ type: Boolean, reflect: true })
|
|
193
248
|
], exports.DaikinInputGroup.prototype, "disabled", 2);
|
|
249
|
+
__decorateClass([
|
|
250
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
251
|
+
], exports.DaikinInputGroup.prototype, "readonly", 2);
|
|
194
252
|
__decorateClass([
|
|
195
253
|
ddsProperty.property({ type: Number, reflect: true, attribute: "textarea-max-count" })
|
|
196
254
|
], exports.DaikinInputGroup.prototype, "textareaMaxCount", 2);
|
|
@@ -206,7 +264,7 @@ __decorateClass([
|
|
|
206
264
|
], exports.DaikinInputGroup.prototype, "_textareas", 2);
|
|
207
265
|
__decorateClass([
|
|
208
266
|
decorators_js.queryAssignedElements({
|
|
209
|
-
selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker"
|
|
267
|
+
selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker,daikin-text-masked-field"
|
|
210
268
|
})
|
|
211
269
|
], exports.DaikinInputGroup.prototype, "_controls", 2);
|
|
212
270
|
__decorateClass([
|
|
@@ -139,6 +139,11 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
139
139
|
*/
|
|
140
140
|
export declare class DaikinInputGroup extends DDSElement {
|
|
141
141
|
static readonly styles: import('lit').CSSResult;
|
|
142
|
+
/**
|
|
143
|
+
* Orientation of the input group.
|
|
144
|
+
* Possible values are `"vertical"` and `"horizontal"`.
|
|
145
|
+
*/
|
|
146
|
+
orientation: "vertical" | "horizontal";
|
|
142
147
|
/**
|
|
143
148
|
* Label text displayed at the top of the field.
|
|
144
149
|
*/
|
|
@@ -167,6 +172,11 @@ export declare class DaikinInputGroup extends DDSElement {
|
|
|
167
172
|
* Reflected in `disabled` attribute of the input control in the slot.
|
|
168
173
|
*/
|
|
169
174
|
disabled: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Whether the field is readonly.
|
|
177
|
+
* Reflected in `readonly` attribute of the input control in the slot.
|
|
178
|
+
*/
|
|
179
|
+
readonly: boolean;
|
|
170
180
|
/**
|
|
171
181
|
* The maximum number of characters that can be input into the text area.
|
|
172
182
|
* If set, a counter will be displayed at the bottom of the text area.
|
|
@@ -44,27 +44,38 @@ const INNER_CN = classVarianceAuthority.cva([
|
|
|
44
44
|
// For text
|
|
45
45
|
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
46
46
|
])();
|
|
47
|
-
const cvaContent = classVarianceAuthority.cva(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
const cvaContent = classVarianceAuthority.cva(
|
|
48
|
+
[
|
|
49
|
+
"block",
|
|
50
|
+
"pt-(--dds-padding-05)",
|
|
51
|
+
"pl-(--dds-space-100)",
|
|
52
|
+
"pr-(--dds-space-300)",
|
|
53
|
+
"pb-px",
|
|
54
|
+
"text-left"
|
|
55
|
+
],
|
|
56
|
+
{
|
|
57
|
+
variants: {
|
|
58
|
+
disabled: {
|
|
59
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
60
|
+
true: ["text-ddt-color-common-disabled"]
|
|
61
|
+
}
|
|
52
62
|
}
|
|
53
63
|
}
|
|
54
|
-
|
|
64
|
+
);
|
|
55
65
|
const WRAPPER = classVarianceAuthority.cva([
|
|
56
66
|
"group",
|
|
57
67
|
"flex",
|
|
58
68
|
"justify-between",
|
|
59
69
|
"items-start",
|
|
70
|
+
"p-(--dds-padding-30)",
|
|
60
71
|
"w-full",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
72
|
+
"p-(--dds-padding-30)",
|
|
73
|
+
"text-(length:--dds-font-size-label-text)",
|
|
63
74
|
"text-left",
|
|
64
75
|
"relative",
|
|
65
76
|
"natural-break"
|
|
66
77
|
])();
|
|
67
|
-
const cvaIcon = classVarianceAuthority.cva(["icon-size-
|
|
78
|
+
const cvaIcon = classVarianceAuthority.cva(["icon-size-token", "slotted:flex-none"], {
|
|
68
79
|
variants: {
|
|
69
80
|
position: {
|
|
70
81
|
left: [],
|
|
@@ -118,7 +129,7 @@ exports.DaikinListItem = class DaikinListItem extends ddsElement.DDSElement {
|
|
|
118
129
|
}
|
|
119
130
|
render() {
|
|
120
131
|
const disabled = this._disabled;
|
|
121
|
-
const content = lit.html`<span class="flex items-start w-full relative">
|
|
132
|
+
const content = lit.html`<span class="flex items-start w-full relative gap-1">
|
|
122
133
|
<slot
|
|
123
134
|
name="left-icon"
|
|
124
135
|
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
@@ -29,6 +29,15 @@ import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs
|
|
|
29
29
|
*
|
|
30
30
|
* ```html
|
|
31
31
|
* <daikin-list-item>List item label</daikin-list-item>
|
|
32
|
+
* <!-- With description -->
|
|
33
|
+
* <daikin-list-item>
|
|
34
|
+
* <div class="flex flex-col gap-0.5">
|
|
35
|
+
* <span>List item label</span>
|
|
36
|
+
* <span class="text-xs text-(--dds-color-common-text-secondary)">
|
|
37
|
+
* Description
|
|
38
|
+
* </span>
|
|
39
|
+
* </div>
|
|
40
|
+
* </daikin-list-item>
|
|
32
41
|
* ```
|
|
33
42
|
*/
|
|
34
43
|
export declare class DaikinListItem extends DDSElement implements DDSNavigable {
|
|
@@ -37,8 +37,8 @@ export declare class DaikinLogo extends DDSElement implements DDSNavigable {
|
|
|
37
37
|
*/
|
|
38
38
|
logoAriaLabel: string | null;
|
|
39
39
|
/**
|
|
40
|
-
* Specify the
|
|
41
|
-
* Notice:
|
|
40
|
+
* Specify the logo mode.
|
|
41
|
+
* Notice: "negative" mode can only be used in dark mode.
|
|
42
42
|
*
|
|
43
43
|
* @default "positive"
|
|
44
44
|
*/
|
|
@@ -34,7 +34,7 @@ const cvaMenu = classVarianceAuthority.cva([
|
|
|
34
34
|
"left-(--floating-x,0)",
|
|
35
35
|
"top-(--floating-y,0)",
|
|
36
36
|
"w-max",
|
|
37
|
-
"py-
|
|
37
|
+
"py-(--dds-padding-20)",
|
|
38
38
|
"border",
|
|
39
39
|
"rounded-lg",
|
|
40
40
|
"absolute",
|
|
@@ -248,7 +248,7 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
248
248
|
id="menu"
|
|
249
249
|
part="menu"
|
|
250
250
|
class=${cvaMenu()}
|
|
251
|
-
popover=${this.popoverValue}
|
|
251
|
+
.popover=${this.popoverValue}
|
|
252
252
|
@click=${this._handleClick}
|
|
253
253
|
@beforetoggle=${this._handleBeforeToggle}
|
|
254
254
|
@toggle=${this._handleToggle}
|
|
@@ -52,10 +52,16 @@ exports.DaikinModalHeader = class DaikinModalHeader extends ddsElement.DDSElemen
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return lit.html`<div class="flex w-full gap-2">
|
|
56
|
-
<div class="flex
|
|
57
|
-
<slot
|
|
58
|
-
|
|
55
|
+
return lit.html`<div class="flex w-full gap-2 justify-between">
|
|
56
|
+
<div class="flex flex-row gap-1 pt-0.5">
|
|
57
|
+
<slot
|
|
58
|
+
name="left-icon"
|
|
59
|
+
class="flex-none icon-size-6 text-ddt-color-common-text-primary"
|
|
60
|
+
></slot>
|
|
61
|
+
<div class="flex-1 flex flex-col gap-2 natural-break">
|
|
62
|
+
<slot class=${cvaTitle}></slot>
|
|
63
|
+
<slot name="description" class=${cvaDescription}></slot>
|
|
64
|
+
</div>
|
|
59
65
|
</div>
|
|
60
66
|
${this.withCloseButton ? lit.html`<div class="flex-none">
|
|
61
67
|
<daikin-icon-button
|
|
@@ -6,6 +6,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
6
6
|
* - `daikin-modal` > `daikin-modal-header`
|
|
7
7
|
*
|
|
8
8
|
* @slot description - An optional slot for description.
|
|
9
|
+
* @slot left-icon - An optional slot for an icon to be placed to the left of the title. Place a `daikin-icon` element or something similar.
|
|
9
10
|
* @slot - A slot for modal title.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
@@ -38,8 +38,29 @@ exports.DaikinNavigation.styles = lit.css`
|
|
|
38
38
|
display: flex;
|
|
39
39
|
min-width: 100%;
|
|
40
40
|
width: max-content;
|
|
41
|
+
|
|
42
|
+
--ddc-navigation-horizontal-padding: 2rem;
|
|
43
|
+
}
|
|
44
|
+
:host([horizontal-padding="medium"]) {
|
|
45
|
+
--ddc-navigation-horizontal-padding: 1.5rem;
|
|
46
|
+
}
|
|
47
|
+
:host([horizontal-padding="narrow"]) {
|
|
48
|
+
--ddc-navigation-horizontal-padding: 1rem;
|
|
41
49
|
}
|
|
42
50
|
`;
|
|
51
|
+
__decorateClass([
|
|
52
|
+
ddsProperty.property({
|
|
53
|
+
type: String,
|
|
54
|
+
reflect: true,
|
|
55
|
+
fallbackValue: "wide",
|
|
56
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
57
|
+
"wide",
|
|
58
|
+
"narrow",
|
|
59
|
+
"medium"
|
|
60
|
+
]),
|
|
61
|
+
attribute: "horizontal-padding"
|
|
62
|
+
})
|
|
63
|
+
], exports.DaikinNavigation.prototype, "horizontalPadding", 2);
|
|
43
64
|
__decorateClass([
|
|
44
65
|
ddsProperty.property({ type: String, reflect: true, attribute: "navigation-aria-label" })
|
|
45
66
|
], exports.DaikinNavigation.prototype, "navigationAriaLabel", 2);
|
|
@@ -43,6 +43,15 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
43
43
|
*/
|
|
44
44
|
export declare class DaikinNavigation extends DDSElement {
|
|
45
45
|
static readonly styles: import('lit').CSSResult;
|
|
46
|
+
/**
|
|
47
|
+
* The horizontal padding of all navigation items in the navigation.
|
|
48
|
+
* - `wide`: 2rem;
|
|
49
|
+
* - `narrow`: 1rem;
|
|
50
|
+
* - `medium`: 1.5rem;
|
|
51
|
+
*
|
|
52
|
+
* @default "wide"
|
|
53
|
+
*/
|
|
54
|
+
horizontalPadding?: "wide" | "narrow" | "medium";
|
|
46
55
|
/**
|
|
47
56
|
* The aria-label of the navigation.
|
|
48
57
|
*/
|
|
@@ -25,13 +25,11 @@ const cvaBaseClasses = [
|
|
|
25
25
|
"relative",
|
|
26
26
|
"h-full",
|
|
27
27
|
"w-full",
|
|
28
|
-
"gap-1",
|
|
29
28
|
"justify-center",
|
|
30
29
|
"items-center",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"pb-3",
|
|
30
|
+
"px-(--ddc-navigation-horizontal-padding,2rem)",
|
|
31
|
+
"py-(--dds-padding-30)",
|
|
32
|
+
"text-(length:--dds-font-size-label-text)",
|
|
35
33
|
"font-bold",
|
|
36
34
|
"focus-visible:outline-hidden",
|
|
37
35
|
"focus-visible:before:absolute",
|
|
@@ -75,8 +73,14 @@ const cvaBaseVariants = {
|
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
};
|
|
78
|
-
const cvaLinkItem = classVarianceAuthority.cva(cvaBaseClasses, cvaBaseVariants);
|
|
79
|
-
const cvaMenuItem = classVarianceAuthority.cva(
|
|
76
|
+
const cvaLinkItem = classVarianceAuthority.cva([...cvaBaseClasses, "gap-1"], cvaBaseVariants);
|
|
77
|
+
const cvaMenuItem = classVarianceAuthority.cva(
|
|
78
|
+
[
|
|
79
|
+
...cvaBaseClasses,
|
|
80
|
+
"gap-(--ddc-navigation-menu-item-gap,var(--dds-space-100))"
|
|
81
|
+
],
|
|
82
|
+
cvaBaseVariants
|
|
83
|
+
);
|
|
80
84
|
exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDSElement {
|
|
81
85
|
constructor() {
|
|
82
86
|
super();
|
|
@@ -126,9 +130,10 @@ exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDS
|
|
|
126
130
|
aria-disabled=${ifDefined_js.ifDefined(linkDisabled ? "true" : void 0)}
|
|
127
131
|
><slot
|
|
128
132
|
name="left-icon"
|
|
129
|
-
class="icon-size-
|
|
133
|
+
class="icon-size-token slotted:flex-none"
|
|
130
134
|
></slot
|
|
131
|
-
><span class="px-1 natural-break text-left"
|
|
135
|
+
><span class="px-1 natural-break text-left leading-normal"
|
|
136
|
+
><slot></slot></span
|
|
132
137
|
></a>
|
|
133
138
|
</div>
|
|
134
139
|
`;
|
|
@@ -149,11 +154,12 @@ exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDS
|
|
|
149
154
|
>
|
|
150
155
|
<slot
|
|
151
156
|
name="left-icon"
|
|
152
|
-
class="icon-size-
|
|
157
|
+
class="icon-size-token slotted:flex-none"
|
|
153
158
|
></slot
|
|
154
|
-
><span class="px-1 natural-break text-left"
|
|
159
|
+
><span class="px-1 natural-break text-left leading-normal"
|
|
160
|
+
><slot></slot></span
|
|
155
161
|
><span
|
|
156
|
-
class="icon-[daikin--chevron-down] size-
|
|
162
|
+
class="icon-[daikin--chevron-down] size-(--dds-icon) flex-none rotate-(--chevron-rotation)"
|
|
157
163
|
></span>
|
|
158
164
|
</button>
|
|
159
165
|
</div>
|
|
@@ -175,8 +181,6 @@ exports.DaikinNavigationItem.styles = lit.css`
|
|
|
175
181
|
:host {
|
|
176
182
|
display: block;
|
|
177
183
|
width: fit-content;
|
|
178
|
-
|
|
179
|
-
--chevron-rotation: 0deg;
|
|
180
184
|
}
|
|
181
185
|
`;
|
|
182
186
|
__decorateClass([
|
|
@@ -29,12 +29,13 @@ const cvaPageButton = classVarianceAuthority.cva(
|
|
|
29
29
|
"relative",
|
|
30
30
|
"items-center",
|
|
31
31
|
"justify-center",
|
|
32
|
-
"min-w-
|
|
33
|
-
"min-h-
|
|
32
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
33
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
34
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
34
35
|
"p-1",
|
|
35
|
-
"text-
|
|
36
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
36
37
|
"not-italic",
|
|
37
|
-
"leading-
|
|
38
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
38
39
|
"bg-clip-content",
|
|
39
40
|
"focus-visible:outline-solid",
|
|
40
41
|
"focus-visible:outline-2",
|
|
@@ -54,9 +55,9 @@ const cvaPageButton = classVarianceAuthority.cva(
|
|
|
54
55
|
"active:bg-ddt-color-common-surface-brand-press",
|
|
55
56
|
"after:bg-ddt-color-common-brand-default",
|
|
56
57
|
"after:content-['']",
|
|
57
|
-
"after:h-
|
|
58
|
+
"after:h-[var(--ddc-pagination-active-indicator-size)]",
|
|
58
59
|
"after:absolute",
|
|
59
|
-
"after:inset-
|
|
60
|
+
"after:inset-[var(--ddc-pagination-active-indicator-size)]",
|
|
60
61
|
"after:top-auto"
|
|
61
62
|
],
|
|
62
63
|
false: [
|
|
@@ -78,12 +79,14 @@ const cvaEllipsis = classVarianceAuthority.cva([
|
|
|
78
79
|
"flex",
|
|
79
80
|
"items-center",
|
|
80
81
|
"justify-center",
|
|
81
|
-
"w-
|
|
82
|
-
"h-
|
|
83
|
-
"
|
|
82
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
83
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
84
|
+
"w-[var(--ddc-pagination-item-size)]",
|
|
85
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
86
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
84
87
|
"not-italic",
|
|
85
88
|
"font-normal",
|
|
86
|
-
"leading-
|
|
89
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
87
90
|
"text-ddt-color-common-neutral-default"
|
|
88
91
|
]);
|
|
89
92
|
const cvaChevronButton = classVarianceAuthority.cva([
|
|
@@ -92,13 +95,15 @@ const cvaChevronButton = classVarianceAuthority.cva([
|
|
|
92
95
|
"flex",
|
|
93
96
|
"items-center",
|
|
94
97
|
"justify-center",
|
|
95
|
-
"w-
|
|
96
|
-
"h-
|
|
98
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
99
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
100
|
+
"w-[var(--ddc-pagination-item-size)]",
|
|
101
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
97
102
|
"text-ddt-color-common-neutral-default",
|
|
98
|
-
"text-
|
|
103
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
99
104
|
"not-italic",
|
|
100
105
|
"font-normal",
|
|
101
|
-
"leading-
|
|
106
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
102
107
|
"enabled:hover:bg-ddt-color-common-surface-neutral-hover",
|
|
103
108
|
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
104
109
|
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
@@ -115,6 +120,7 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
115
120
|
this.current = 1;
|
|
116
121
|
this.total = 1;
|
|
117
122
|
this.window = 5;
|
|
123
|
+
this.size = "medium";
|
|
118
124
|
}
|
|
119
125
|
_goto(page) {
|
|
120
126
|
const newPage = Math.max(Math.min(page, this.total), 1);
|
|
@@ -151,16 +157,18 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
151
157
|
<div
|
|
152
158
|
aria-label=${landmarkLabel}
|
|
153
159
|
role="navigation"
|
|
154
|
-
class="inline-flex flex-wrap"
|
|
160
|
+
class="inline-flex flex-wrap max-w-full"
|
|
155
161
|
>
|
|
156
162
|
<button
|
|
157
163
|
class=${cvaChevron}
|
|
158
164
|
type="button"
|
|
159
165
|
aria-label="Go to the previous page."
|
|
160
|
-
?disabled=${this.current === 1}
|
|
166
|
+
?disabled=${this.total <= 1 || this.current === 1}
|
|
161
167
|
@click=${() => this._gotoOffset(-1)}
|
|
162
168
|
>
|
|
163
|
-
<span
|
|
169
|
+
<span
|
|
170
|
+
class="icon-[daikin--chevron-left] w-(--ddc-pagination-icon-size) h-(--ddc-pagination-icon-size)"
|
|
171
|
+
></span>
|
|
164
172
|
</button>
|
|
165
173
|
${repeat_js.repeat(
|
|
166
174
|
pageArray,
|
|
@@ -201,10 +209,12 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
201
209
|
type="button"
|
|
202
210
|
class=${cvaChevron}
|
|
203
211
|
aria-label="Go to the next page."
|
|
204
|
-
?disabled=${this.current === this.total}
|
|
212
|
+
?disabled=${this.total <= 1 || this.current === this.total}
|
|
205
213
|
@click=${() => this._gotoOffset(1)}
|
|
206
214
|
>
|
|
207
|
-
<span
|
|
215
|
+
<span
|
|
216
|
+
class="icon-[daikin--chevron-right] w-(--ddc-pagination-icon-size) h-(--ddc-pagination-icon-size)"
|
|
217
|
+
></span>
|
|
208
218
|
</button>
|
|
209
219
|
</div>
|
|
210
220
|
`;
|
|
@@ -215,6 +225,29 @@ exports.DaikinPagination.styles = lit.css`
|
|
|
215
225
|
|
|
216
226
|
:host {
|
|
217
227
|
display: inline-flex;
|
|
228
|
+
--ddc-pagination-item-size: 3rem;
|
|
229
|
+
--ddc-pagination-font-size: 1rem;
|
|
230
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
231
|
+
--ddc-pagination-active-indicator-size: 0.25rem;
|
|
232
|
+
--ddc-pagination-icon-size: 2rem;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:host([size="small"]) {
|
|
236
|
+
--ddc-pagination-item-size: 2.25rem;
|
|
237
|
+
--ddc-pagination-font-size: 0.875rem;
|
|
238
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
239
|
+
--ddc-pagination-active-indicator-size: var(--dds-border-width-075);
|
|
240
|
+
--ddc-pagination-icon-size: 1.5rem;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@media (max-width: 767px) {
|
|
244
|
+
:host {
|
|
245
|
+
--ddc-pagination-item-size: 2.25rem;
|
|
246
|
+
--ddc-pagination-font-size: var(--text-sm);
|
|
247
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
248
|
+
--ddc-pagination-active-indicator-size: var(--dds-border-width-075);
|
|
249
|
+
--ddc-pagination-icon-size: 1.5rem;
|
|
250
|
+
}
|
|
218
251
|
}
|
|
219
252
|
`;
|
|
220
253
|
__decorateClass([
|
|
@@ -226,6 +259,14 @@ __decorateClass([
|
|
|
226
259
|
__decorateClass([
|
|
227
260
|
ddsProperty.property({ type: Number, reflect: true })
|
|
228
261
|
], exports.DaikinPagination.prototype, "window", 2);
|
|
262
|
+
__decorateClass([
|
|
263
|
+
ddsProperty.property({
|
|
264
|
+
type: String,
|
|
265
|
+
reflect: true,
|
|
266
|
+
fallbackValue: "medium",
|
|
267
|
+
isAllowedValue: ddsProperty.oneOf(["small", "medium"])
|
|
268
|
+
})
|
|
269
|
+
], exports.DaikinPagination.prototype, "size", 2);
|
|
229
270
|
exports.DaikinPagination = __decorateClass([
|
|
230
271
|
decorators.ddsElement("daikin-pagination")
|
|
231
272
|
], exports.DaikinPagination);
|
|
@@ -35,6 +35,17 @@ export declare class DaikinPagination extends DDSElement {
|
|
|
35
35
|
* If a value less than 5 is specified, it will be treated as 5.
|
|
36
36
|
*/
|
|
37
37
|
window: number;
|
|
38
|
+
/**
|
|
39
|
+
* Size of the pagination.
|
|
40
|
+
*
|
|
41
|
+
* - `medium`: Default size. Page button min size is `48px`.
|
|
42
|
+
* - `small`: Compact size. Page button min size is `36px`.
|
|
43
|
+
*
|
|
44
|
+
* Page buttons grow horizontally when content gets wider while keeping horizontal padding.
|
|
45
|
+
*
|
|
46
|
+
* On mobile viewport (`<= 767px`), pagination is always rendered in the small size.
|
|
47
|
+
*/
|
|
48
|
+
size: "small" | "medium";
|
|
38
49
|
private _goto;
|
|
39
50
|
private _gotoOffset;
|
|
40
51
|
render(): import('lit-html').TemplateResult<1>;
|