@daikin-oss/design-system-web-components 1.1.0 → 1.3.0-next.2
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 +145 -0
- package/LICENSE +1 -1
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/dds-form-element.cjs +139 -0
- package/dist/cjs/base/dds-form-element.d.cts +100 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +7 -3
- package/dist/cjs/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs/components/button/daikin-button.cjs +35 -13
- package/dist/cjs/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs/components/calendar/daikin-calendar.cjs +549 -0
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs/components/calendar/index.cjs +7 -0
- package/dist/cjs/components/calendar/index.d.cts +1 -0
- package/dist/cjs/components/card/daikin-card.cjs +1 -1
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +12 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +9 -12
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs/components/chip/index.cjs +7 -0
- package/dist/cjs/components/chip/index.d.cts +1 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs/components/combobox/index.cjs +8 -0
- package/dist/cjs/components/combobox/index.d.cts +1 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +626 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +106 -0
- package/dist/cjs/components/date-picker/index.cjs +7 -0
- package/dist/cjs/components/date-picker/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +91 -57
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -15
- package/dist/cjs/components/icon/daikin-icon.cjs +117 -12
- package/dist/cjs/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs/components/icon/icons.json.cjs +6 -2
- package/dist/cjs/components/icon/icons.json.d.cts +16 -16
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +30 -4
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +20 -2
- package/dist/cjs/components/index.cjs +81 -0
- package/dist/cjs/components/index.d.cts +14 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +50 -1
- package/dist/cjs/components/list/daikin-list.cjs +75 -3
- package/dist/cjs/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +27 -7
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs/components/loading/daikin-loading.cjs +1 -1
- package/dist/cjs/components/loading/daikin-loading.d.cts +1 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs/components/logo/index.cjs +7 -0
- package/dist/cjs/components/logo/index.d.cts +1 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs/components/menu/index.cjs +7 -0
- package/dist/cjs/components/menu/index.d.cts +1 -0
- package/dist/cjs/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs/components/modal/index.cjs +7 -0
- package/dist/cjs/components/modal/index.d.cts +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs/components/modal-footer/index.cjs +7 -0
- package/dist/cjs/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs/components/modal-header/index.cjs +7 -0
- package/dist/cjs/components/modal-header/index.d.cts +1 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +5 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs/components/select/daikin-select.cjs +6 -1
- package/dist/cjs/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs/components/slider/index.cjs +7 -0
- package/dist/cjs/components/slider/index.d.cts +1 -0
- package/dist/cjs/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +74 -15
- package/dist/cjs/components/table/daikin-table.d.cts +72 -34
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +8 -1
- package/dist/cjs/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs/components/text-field/daikin-text-field.cjs +289 -57
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +57 -18
- package/dist/cjs/components/text-field/number-utils.cjs +61 -0
- package/dist/cjs/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +577 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs/components/time-picker/index.cjs +17 -0
- package/dist/cjs/components/time-picker/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +24 -8
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +11 -3
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs/controllers/click-outside.cjs +3 -1
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs/controllers/focus-trap.cjs +42 -0
- package/dist/cjs/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs/icon-registry.cjs +170 -0
- package/dist/cjs/icon-registry.d.cts +120 -0
- package/dist/cjs/index.cjs +84 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +151 -0
- package/dist/cjs/utils/calendar-common.d.cts +64 -0
- package/dist/cjs/utils/notification-common.cjs +19 -15
- package/dist/cjs/utils/notification-common.d.cts +2 -2
- package/dist/cjs/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/dds-form-element.cjs +139 -0
- package/dist/cjs-dev/base/dds-form-element.d.cts +100 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +7 -3
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +35 -13
- package/dist/cjs-dev/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +560 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs-dev/components/calendar/index.cjs +7 -0
- package/dist/cjs-dev/components/calendar/index.d.cts +1 -0
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -1
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +12 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +9 -12
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs-dev/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs-dev/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs-dev/components/chip/index.cjs +7 -0
- package/dist/cjs-dev/components/chip/index.d.cts +1 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs-dev/components/combobox/index.cjs +8 -0
- package/dist/cjs-dev/components/combobox/index.d.cts +1 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +637 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +106 -0
- package/dist/cjs-dev/components/date-picker/index.cjs +7 -0
- package/dist/cjs-dev/components/date-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +91 -57
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -15
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +141 -16
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs-dev/components/icon/icons.json.cjs +6 -2
- package/dist/cjs-dev/components/icon/icons.json.d.cts +16 -16
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +30 -4
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +20 -2
- package/dist/cjs-dev/components/index.cjs +81 -0
- package/dist/cjs-dev/components/index.d.cts +14 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +50 -1
- package/dist/cjs-dev/components/list/daikin-list.cjs +75 -3
- package/dist/cjs-dev/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +27 -7
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +1 -1
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +1 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs-dev/components/logo/index.cjs +7 -0
- package/dist/cjs-dev/components/logo/index.d.cts +1 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs-dev/components/menu/index.cjs +7 -0
- package/dist/cjs-dev/components/menu/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs-dev/components/modal/index.cjs +7 -0
- package/dist/cjs-dev/components/modal/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs-dev/components/modal-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs-dev/components/modal-header/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +5 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +6 -1
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs-dev/components/slider/index.cjs +7 -0
- package/dist/cjs-dev/components/slider/index.d.cts +1 -0
- package/dist/cjs-dev/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs-dev/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +77 -18
- package/dist/cjs-dev/components/table/daikin-table.d.cts +72 -34
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +8 -1
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +289 -57
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +57 -18
- package/dist/cjs-dev/components/text-field/number-utils.cjs +64 -0
- package/dist/cjs-dev/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs-dev/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs-dev/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +589 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs-dev/components/time-picker/index.cjs +17 -0
- package/dist/cjs-dev/components/time-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +24 -8
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +11 -3
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs-dev/controllers/click-outside.cjs +3 -1
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs-dev/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs-dev/controllers/focus-trap.cjs +42 -0
- package/dist/cjs-dev/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs-dev/icon-registry.cjs +170 -0
- package/dist/cjs-dev/icon-registry.d.cts +120 -0
- package/dist/cjs-dev/index.cjs +84 -0
- package/dist/cjs-dev/index.d.cts +1 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +151 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +64 -0
- package/dist/cjs-dev/utils/notification-common.cjs +19 -15
- package/dist/cjs-dev/utils/notification-common.d.cts +2 -2
- package/dist/cjs-dev/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs-dev/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/dds-form-element.d.ts +100 -0
- package/dist/es/base/dds-form-element.js +139 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +8 -4
- package/dist/es/components/avatar/daikin-avatar.d.ts +3 -0
- package/dist/es/components/avatar/daikin-avatar.js +2 -1
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es/components/button/daikin-button.d.ts +20 -10
- package/dist/es/components/button/daikin-button.js +36 -14
- package/dist/es/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es/components/calendar/daikin-calendar.js +550 -0
- package/dist/es/components/calendar/index.d.ts +1 -0
- package/dist/es/components/calendar/index.js +4 -0
- package/dist/es/components/card/daikin-card.js +2 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es/components/card-header/daikin-card-header.js +2 -2
- package/dist/es/components/carousel/daikin-carousel.js +8 -4
- package/dist/es/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +9 -12
- package/dist/es/components/checkbox/daikin-checkbox.js +13 -17
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es/components/checkbox-group/index.d.ts +1 -0
- package/dist/es/components/checkbox-group/index.js +4 -0
- package/dist/es/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es/components/chip/daikin-chip.js +107 -0
- package/dist/es/components/chip/index.d.ts +1 -0
- package/dist/es/components/chip/index.js +4 -0
- package/dist/es/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es/components/combobox/daikin-combobox.js +605 -0
- package/dist/es/components/combobox/index.d.ts +1 -0
- package/dist/es/components/combobox/index.js +5 -0
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +106 -0
- package/dist/es/components/date-picker/daikin-date-picker.js +627 -0
- package/dist/es/components/date-picker/index.d.ts +1 -0
- package/dist/es/components/date-picker/index.js +4 -0
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -15
- package/dist/es/components/dropdown/daikin-dropdown.js +92 -58
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es/components/icon/daikin-icon.js +119 -14
- package/dist/es/components/icon/icons.json.d.ts +16 -16
- package/dist/es/components/icon/icons.json.js +5 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +20 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +31 -5
- package/dist/es/components/index.d.ts +14 -0
- package/dist/es/components/index.js +40 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es/components/input-group/daikin-input-group.d.ts +50 -1
- package/dist/es/components/input-group/daikin-input-group.js +5 -5
- package/dist/es/components/link/daikin-link.js +1 -1
- package/dist/es/components/list/daikin-list.d.ts +16 -0
- package/dist/es/components/list/daikin-list.js +76 -4
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es/components/list-item/daikin-list-item.js +28 -8
- package/dist/es/components/loading/daikin-loading.d.ts +1 -0
- package/dist/es/components/loading/daikin-loading.js +2 -2
- package/dist/es/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es/components/logo/daikin-logo.js +106 -0
- package/dist/es/components/logo/index.d.ts +1 -0
- package/dist/es/components/logo/index.js +4 -0
- package/dist/es/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es/components/menu/daikin-menu.js +206 -0
- package/dist/es/components/menu/index.d.ts +1 -0
- package/dist/es/components/menu/index.js +4 -0
- package/dist/es/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es/components/modal/daikin-modal.js +116 -0
- package/dist/es/components/modal/index.d.ts +1 -0
- package/dist/es/components/modal/index.js +4 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es/components/modal-footer/index.d.ts +1 -0
- package/dist/es/components/modal-footer/index.js +4 -0
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es/components/modal-header/index.d.ts +1 -0
- package/dist/es/components/modal-header/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.js +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +6 -6
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es/components/radio/daikin-radio.js +5 -14
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es/components/select/daikin-select.js +7 -2
- package/dist/es/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es/components/slider/daikin-slider.js +264 -0
- package/dist/es/components/slider/index.d.ts +1 -0
- package/dist/es/components/slider/index.js +4 -0
- package/dist/es/components/slider/slider-utils.d.ts +37 -0
- package/dist/es/components/slider/slider-utils.js +57 -0
- package/dist/es/components/tab/daikin-tab.js +2 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es/components/table/daikin-table.d.ts +72 -34
- package/dist/es/components/table/daikin-table.js +75 -16
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +8 -1
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +32 -7
- package/dist/es/components/tabs/daikin-tabs.js +3 -3
- package/dist/es/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es/components/text-area/daikin-text-area.js +5 -14
- package/dist/es/components/text-field/daikin-text-field.d.ts +57 -18
- package/dist/es/components/text-field/daikin-text-field.js +290 -58
- package/dist/es/components/text-field/number-utils.d.ts +26 -0
- package/dist/es/components/text-field/number-utils.js +61 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es/components/text-masked-field/index.d.ts +1 -0
- package/dist/es/components/text-masked-field/index.js +4 -0
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es/components/time-picker/daikin-time-picker.js +578 -0
- package/dist/es/components/time-picker/index.d.ts +1 -0
- package/dist/es/components/time-picker/index.js +14 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es/components/toggle/daikin-toggle.js +5 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +11 -3
- package/dist/es/components/tooltip/daikin-tooltip.js +25 -9
- package/dist/es/components/tree/daikin-tree.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es/controllers/click-outside.js +3 -1
- package/dist/es/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es/controllers/focus-trap.d.ts +10 -0
- package/dist/es/controllers/focus-trap.js +42 -0
- package/dist/es/icon-registry.d.ts +120 -0
- package/dist/es/icon-registry.js +170 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +43 -1
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +64 -0
- package/dist/es/utils/calendar-common.js +151 -0
- package/dist/es/utils/notification-common.d.ts +2 -2
- package/dist/es/utils/notification-common.js +19 -15
- package/dist/es/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es/{components/tabs → utils}/scroller.js +20 -12
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/dds-form-element.d.ts +100 -0
- package/dist/es-dev/base/dds-form-element.js +139 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +8 -4
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +2 -1
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +20 -10
- package/dist/es-dev/components/button/daikin-button.js +36 -14
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +561 -0
- package/dist/es-dev/components/calendar/index.d.ts +1 -0
- package/dist/es-dev/components/calendar/index.js +4 -0
- package/dist/es-dev/components/card/daikin-card.js +2 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es-dev/components/card-header/daikin-card-header.js +2 -2
- package/dist/es-dev/components/carousel/daikin-carousel.js +8 -4
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +9 -12
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +13 -17
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es-dev/components/checkbox-group/index.d.ts +1 -0
- package/dist/es-dev/components/checkbox-group/index.js +4 -0
- package/dist/es-dev/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es-dev/components/chip/daikin-chip.js +107 -0
- package/dist/es-dev/components/chip/index.d.ts +1 -0
- package/dist/es-dev/components/chip/index.js +4 -0
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es-dev/components/combobox/daikin-combobox.js +605 -0
- package/dist/es-dev/components/combobox/index.d.ts +1 -0
- package/dist/es-dev/components/combobox/index.js +5 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +106 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +638 -0
- package/dist/es-dev/components/date-picker/index.d.ts +1 -0
- package/dist/es-dev/components/date-picker/index.js +4 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +92 -58
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es-dev/components/icon/daikin-icon.js +143 -18
- package/dist/es-dev/components/icon/icons.json.d.ts +16 -16
- package/dist/es-dev/components/icon/icons.json.js +5 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +20 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +31 -5
- package/dist/es-dev/components/index.d.ts +14 -0
- package/dist/es-dev/components/index.js +40 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +50 -1
- package/dist/es-dev/components/input-group/daikin-input-group.js +5 -5
- package/dist/es-dev/components/link/daikin-link.js +1 -1
- package/dist/es-dev/components/list/daikin-list.d.ts +16 -0
- package/dist/es-dev/components/list/daikin-list.js +76 -4
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es-dev/components/list-item/daikin-list-item.js +28 -8
- package/dist/es-dev/components/loading/daikin-loading.d.ts +1 -0
- package/dist/es-dev/components/loading/daikin-loading.js +2 -2
- package/dist/es-dev/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es-dev/components/logo/daikin-logo.js +106 -0
- package/dist/es-dev/components/logo/index.d.ts +1 -0
- package/dist/es-dev/components/logo/index.js +4 -0
- package/dist/es-dev/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es-dev/components/menu/daikin-menu.js +206 -0
- package/dist/es-dev/components/menu/index.d.ts +1 -0
- package/dist/es-dev/components/menu/index.js +4 -0
- package/dist/es-dev/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es-dev/components/modal/daikin-modal.js +116 -0
- package/dist/es-dev/components/modal/index.d.ts +1 -0
- package/dist/es-dev/components/modal/index.js +4 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es-dev/components/modal-footer/index.d.ts +1 -0
- package/dist/es-dev/components/modal-footer/index.js +4 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es-dev/components/modal-header/index.d.ts +1 -0
- package/dist/es-dev/components/modal-header/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +6 -6
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es-dev/components/radio/daikin-radio.js +5 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es-dev/components/select/daikin-select.js +7 -2
- package/dist/es-dev/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es-dev/components/slider/daikin-slider.js +264 -0
- package/dist/es-dev/components/slider/index.d.ts +1 -0
- package/dist/es-dev/components/slider/index.js +4 -0
- package/dist/es-dev/components/slider/slider-utils.d.ts +37 -0
- package/dist/es-dev/components/slider/slider-utils.js +57 -0
- package/dist/es-dev/components/tab/daikin-tab.js +2 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +72 -34
- package/dist/es-dev/components/table/daikin-table.js +78 -19
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +8 -1
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +32 -7
- package/dist/es-dev/components/tabs/daikin-tabs.js +3 -3
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es-dev/components/text-area/daikin-text-area.js +5 -14
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +57 -18
- package/dist/es-dev/components/text-field/daikin-text-field.js +290 -58
- package/dist/es-dev/components/text-field/number-utils.d.ts +26 -0
- package/dist/es-dev/components/text-field/number-utils.js +64 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es-dev/components/text-masked-field/index.d.ts +1 -0
- package/dist/es-dev/components/text-masked-field/index.js +4 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +590 -0
- package/dist/es-dev/components/time-picker/index.d.ts +1 -0
- package/dist/es-dev/components/time-picker/index.js +14 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +11 -3
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +25 -9
- package/dist/es-dev/components/tree/daikin-tree.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es-dev/controllers/click-outside.js +3 -1
- package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es-dev/controllers/focus-trap.d.ts +10 -0
- package/dist/es-dev/controllers/focus-trap.js +42 -0
- package/dist/es-dev/icon-registry.d.ts +120 -0
- package/dist/es-dev/icon-registry.js +170 -0
- package/dist/es-dev/index.d.ts +1 -0
- package/dist/es-dev/index.js +43 -1
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +64 -0
- package/dist/es-dev/utils/calendar-common.js +151 -0
- package/dist/es-dev/utils/notification-common.d.ts +2 -2
- package/dist/es-dev/utils/notification-common.js +19 -15
- package/dist/es-dev/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es-dev/{components/tabs → utils}/scroller.js +20 -12
- package/icons/alarm.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/chevron-down.svg +3 -3
- package/icons/chevron-left.svg +2 -2
- package/icons/chevron-right.svg +2 -2
- package/icons/chevron-up.svg +2 -2
- package/icons/close.svg +3 -0
- package/icons/error.svg +3 -0
- package/icons/information.svg +3 -0
- package/icons/logo-negative.svg +10 -0
- package/icons/logo-positive.svg +10 -0
- package/icons/{dropdown-chevron-down.svg → number-minus.svg} +3 -1
- package/icons/number-plus.svg +5 -0
- package/icons/password-hidden.svg +3 -0
- package/icons/password-visible.svg +3 -0
- package/icons/pulldown-down.svg +3 -0
- package/icons/search.svg +3 -0
- package/icons/success.svg +3 -0
- package/icons/warning.svg +3 -0
- package/package.json +20 -6
- package/icons/cross.svg +0 -3
- package/icons/notification-close.svg +0 -5
- package/icons/status-alarm.svg +0 -5
- package/icons/status-error.svg +0 -3
- package/icons/status-information.svg +0 -5
- package/icons/status-negative.svg +0 -5
- package/icons/status-positive.svg +0 -5
- package/icons/status-warning.svg +0 -3
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
6
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
7
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
8
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
9
|
+
var _instance, _icons, _dynamicRegistrations, _cache;
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
function isDynamicRegistration(registration) {
|
|
12
|
+
return "match" in registration && "fetch" in registration;
|
|
13
|
+
}
|
|
14
|
+
function isDirectRegistration(registration) {
|
|
15
|
+
return "name" in registration && "svg" in registration;
|
|
16
|
+
}
|
|
17
|
+
function normalizeIconData(svg) {
|
|
18
|
+
if (typeof svg === "string") {
|
|
19
|
+
return { mode: "mask", svg };
|
|
20
|
+
}
|
|
21
|
+
return { mode: "mask", ...svg };
|
|
22
|
+
}
|
|
23
|
+
const _IconRegistry = class _IconRegistry {
|
|
24
|
+
constructor() {
|
|
25
|
+
/** Map of registered icons by name */
|
|
26
|
+
__privateAdd(this, _icons, /* @__PURE__ */ new Map());
|
|
27
|
+
/** Array of dynamic icon registrations */
|
|
28
|
+
__privateAdd(this, _dynamicRegistrations, []);
|
|
29
|
+
/** Cache for dynamically fetched icons */
|
|
30
|
+
__privateAdd(this, _cache, /* @__PURE__ */ new Map());
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get the singleton instance of IconRegistry
|
|
34
|
+
*/
|
|
35
|
+
static getGlobalInstance() {
|
|
36
|
+
const instance = __privateGet(_IconRegistry, _instance) ?? __privateSet(_IconRegistry, _instance, new _IconRegistry());
|
|
37
|
+
return instance;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Register an icon or dynamic icon fetcher
|
|
41
|
+
* @param registration Icon registration configuration
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* // Direct registration
|
|
45
|
+
* registry.register({ name: "custom-icon", svg: "<svg>...</svg>" });
|
|
46
|
+
*
|
|
47
|
+
* // Dynamic registration
|
|
48
|
+
* registry.register({
|
|
49
|
+
* match: /^custom-/,
|
|
50
|
+
* fetch: async (name) => {
|
|
51
|
+
* const response = await fetch(`/icons/${name}.svg`);
|
|
52
|
+
* return response.text();
|
|
53
|
+
* }
|
|
54
|
+
* });
|
|
55
|
+
*/
|
|
56
|
+
register(registration) {
|
|
57
|
+
if (isDirectRegistration(registration)) {
|
|
58
|
+
const iconData = normalizeIconData(registration.svg);
|
|
59
|
+
__privateGet(this, _icons).set(registration.name, iconData);
|
|
60
|
+
} else if (isDynamicRegistration(registration)) {
|
|
61
|
+
__privateGet(this, _dynamicRegistrations).push(registration);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get an icon by name
|
|
66
|
+
* @param name Icon name
|
|
67
|
+
* @returns Promise that resolves to IconData or null if not found
|
|
68
|
+
*/
|
|
69
|
+
async getIcon(name) {
|
|
70
|
+
const registered = __privateGet(this, _icons).get(name);
|
|
71
|
+
if (registered) {
|
|
72
|
+
return registered;
|
|
73
|
+
}
|
|
74
|
+
for (const registration of __privateGet(this, _dynamicRegistrations)) {
|
|
75
|
+
if (registration.match.test(name)) {
|
|
76
|
+
return this.fetchDynamicIcon(registration, name);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if an icon is registered (either directly or through dynamic registration)
|
|
83
|
+
* @param name Icon name
|
|
84
|
+
* @returns true if icon is available
|
|
85
|
+
*/
|
|
86
|
+
hasIcon(name) {
|
|
87
|
+
if (__privateGet(this, _icons).has(name)) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
return __privateGet(this, _dynamicRegistrations).some(
|
|
91
|
+
(registration) => registration.match.test(name)
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get all directly registered icon names
|
|
96
|
+
* @returns Array of icon names
|
|
97
|
+
*/
|
|
98
|
+
getRegisteredIconNames() {
|
|
99
|
+
return Array.from(__privateGet(this, _icons).keys());
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get all dynamic registration patterns
|
|
103
|
+
* @returns Array of regex patterns
|
|
104
|
+
*/
|
|
105
|
+
getDynamicPatterns() {
|
|
106
|
+
return __privateGet(this, _dynamicRegistrations).map((reg) => reg.match);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Clear all registrations and cache
|
|
110
|
+
*/
|
|
111
|
+
clear() {
|
|
112
|
+
__privateGet(this, _icons).clear();
|
|
113
|
+
__privateGet(this, _dynamicRegistrations).length = 0;
|
|
114
|
+
__privateGet(this, _cache).clear();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Remove a specific icon registration
|
|
118
|
+
* @param name Icon name to remove
|
|
119
|
+
*/
|
|
120
|
+
unregister(name) {
|
|
121
|
+
const existed = __privateGet(this, _icons).has(name);
|
|
122
|
+
__privateGet(this, _icons).delete(name);
|
|
123
|
+
return existed;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Fetch icon from dynamic registration
|
|
127
|
+
* @param registration Dynamic registration
|
|
128
|
+
* @param name Icon name
|
|
129
|
+
* @returns Promise that resolves to IconData or null
|
|
130
|
+
*/
|
|
131
|
+
async fetchDynamicIcon(registration, name) {
|
|
132
|
+
const cacheKey = `${registration.match.source}\0${name}`;
|
|
133
|
+
const cached = __privateGet(this, _cache).get(cacheKey);
|
|
134
|
+
if (cached) {
|
|
135
|
+
return cached;
|
|
136
|
+
}
|
|
137
|
+
const fetchPromise = this.performDynamicFetch(registration, name).then(
|
|
138
|
+
(result) => {
|
|
139
|
+
__privateGet(this, _cache).set(cacheKey, result);
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
__privateGet(this, _cache).set(cacheKey, fetchPromise);
|
|
144
|
+
return fetchPromise;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Perform the actual dynamic fetch
|
|
148
|
+
* @param registration Dynamic registration
|
|
149
|
+
* @param name Icon name
|
|
150
|
+
* @returns Promise that resolves to IconData or null
|
|
151
|
+
*/
|
|
152
|
+
async performDynamicFetch(registration, name) {
|
|
153
|
+
try {
|
|
154
|
+
const result = await registration.fetch(name);
|
|
155
|
+
return normalizeIconData(result);
|
|
156
|
+
} catch (error) {
|
|
157
|
+
console.warn(`Failed to fetch dynamic icon "${name}":`, error);
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
_instance = new WeakMap();
|
|
163
|
+
_icons = new WeakMap();
|
|
164
|
+
_dynamicRegistrations = new WeakMap();
|
|
165
|
+
_cache = new WeakMap();
|
|
166
|
+
__privateAdd(_IconRegistry, _instance);
|
|
167
|
+
let IconRegistry = _IconRegistry;
|
|
168
|
+
const iconRegistry = IconRegistry.getGlobalInstance();
|
|
169
|
+
exports.IconRegistry = IconRegistry;
|
|
170
|
+
exports.iconRegistry = iconRegistry;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon data structure containing SVG information
|
|
3
|
+
*/
|
|
4
|
+
export interface IconData {
|
|
5
|
+
/** SVG content as a string */
|
|
6
|
+
svg: string;
|
|
7
|
+
/** Default color for the icon */
|
|
8
|
+
defaultColor?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Determines how the SVG is rendered.
|
|
11
|
+
* This affects the styling and behavior of the icon.
|
|
12
|
+
*
|
|
13
|
+
* - "mask": Uses the SVG as a CSS mask, allowing for color customization. Use this for monochrome icons.
|
|
14
|
+
* - "background": Uses the SVG as a CSS background image. Use this for colorful icons with no complex styling.
|
|
15
|
+
* - "inline": Renders the SVG inline, allowing for more complex styling.
|
|
16
|
+
* **Be cautious with this mode as it can introduce security risks if the SVG content is not trusted.**
|
|
17
|
+
*
|
|
18
|
+
* @default "mask"
|
|
19
|
+
*/
|
|
20
|
+
mode?: "mask" | "background" | "inline";
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Direct icon registration configuration
|
|
24
|
+
*/
|
|
25
|
+
export interface DirectIconRegistration {
|
|
26
|
+
/** Icon name */
|
|
27
|
+
name: string;
|
|
28
|
+
/** SVG content or icon data */
|
|
29
|
+
svg: string | IconData;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Dynamic icon registration configuration using regex pattern matching
|
|
33
|
+
*/
|
|
34
|
+
export interface DynamicIconRegistration {
|
|
35
|
+
/** Regular expression to match icon names */
|
|
36
|
+
match: RegExp;
|
|
37
|
+
/** Function to fetch SVG content for matched names */
|
|
38
|
+
fetch: (name: string) => Promise<string | IconData> | string | IconData;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Icon registration configuration
|
|
42
|
+
*/
|
|
43
|
+
export type IconRegistration = DirectIconRegistration | DynamicIconRegistration;
|
|
44
|
+
/**
|
|
45
|
+
* Icon registry class that manages icon registration and retrieval
|
|
46
|
+
*/
|
|
47
|
+
export declare class IconRegistry {
|
|
48
|
+
#private;
|
|
49
|
+
/**
|
|
50
|
+
* Get the singleton instance of IconRegistry
|
|
51
|
+
*/
|
|
52
|
+
static getGlobalInstance(): IconRegistry;
|
|
53
|
+
/**
|
|
54
|
+
* Register an icon or dynamic icon fetcher
|
|
55
|
+
* @param registration Icon registration configuration
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* // Direct registration
|
|
59
|
+
* registry.register({ name: "custom-icon", svg: "<svg>...</svg>" });
|
|
60
|
+
*
|
|
61
|
+
* // Dynamic registration
|
|
62
|
+
* registry.register({
|
|
63
|
+
* match: /^custom-/,
|
|
64
|
+
* fetch: async (name) => {
|
|
65
|
+
* const response = await fetch(`/icons/${name}.svg`);
|
|
66
|
+
* return response.text();
|
|
67
|
+
* }
|
|
68
|
+
* });
|
|
69
|
+
*/
|
|
70
|
+
register(registration: IconRegistration): void;
|
|
71
|
+
/**
|
|
72
|
+
* Get an icon by name
|
|
73
|
+
* @param name Icon name
|
|
74
|
+
* @returns Promise that resolves to IconData or null if not found
|
|
75
|
+
*/
|
|
76
|
+
getIcon(name: string): Promise<IconData | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Check if an icon is registered (either directly or through dynamic registration)
|
|
79
|
+
* @param name Icon name
|
|
80
|
+
* @returns true if icon is available
|
|
81
|
+
*/
|
|
82
|
+
hasIcon(name: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Get all directly registered icon names
|
|
85
|
+
* @returns Array of icon names
|
|
86
|
+
*/
|
|
87
|
+
getRegisteredIconNames(): string[];
|
|
88
|
+
/**
|
|
89
|
+
* Get all dynamic registration patterns
|
|
90
|
+
* @returns Array of regex patterns
|
|
91
|
+
*/
|
|
92
|
+
getDynamicPatterns(): RegExp[];
|
|
93
|
+
/**
|
|
94
|
+
* Clear all registrations and cache
|
|
95
|
+
*/
|
|
96
|
+
clear(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Remove a specific icon registration
|
|
99
|
+
* @param name Icon name to remove
|
|
100
|
+
*/
|
|
101
|
+
unregister(name: string): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Fetch icon from dynamic registration
|
|
104
|
+
* @param registration Dynamic registration
|
|
105
|
+
* @param name Icon name
|
|
106
|
+
* @returns Promise that resolves to IconData or null
|
|
107
|
+
*/
|
|
108
|
+
private fetchDynamicIcon;
|
|
109
|
+
/**
|
|
110
|
+
* Perform the actual dynamic fetch
|
|
111
|
+
* @param registration Dynamic registration
|
|
112
|
+
* @param name Icon name
|
|
113
|
+
* @returns Promise that resolves to IconData or null
|
|
114
|
+
*/
|
|
115
|
+
private performDynamicFetch;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Global icon registry instance
|
|
119
|
+
*/
|
|
120
|
+
export declare const iconRegistry: IconRegistry;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -6,12 +6,17 @@ const daikinAvatar = require("./components/avatar/daikin-avatar.cjs");
|
|
|
6
6
|
const daikinBreadcrumb = require("./components/breadcrumb/daikin-breadcrumb.cjs");
|
|
7
7
|
const daikinBreadcrumbItem = require("./components/breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
8
8
|
const daikinButton = require("./components/button/daikin-button.cjs");
|
|
9
|
+
const daikinCalendar = require("./components/calendar/daikin-calendar.cjs");
|
|
9
10
|
const daikinCard = require("./components/card/daikin-card.cjs");
|
|
10
11
|
const daikinCardFooter = require("./components/card-footer/daikin-card-footer.cjs");
|
|
11
12
|
const daikinCardHeader = require("./components/card-header/daikin-card-header.cjs");
|
|
12
13
|
const daikinCarousel = require("./components/carousel/daikin-carousel.cjs");
|
|
13
14
|
const daikinCarouselItem = require("./components/carousel-item/daikin-carousel-item.cjs");
|
|
14
15
|
const daikinCheckbox = require("./components/checkbox/daikin-checkbox.cjs");
|
|
16
|
+
const daikinCheckboxGroup = require("./components/checkbox-group/daikin-checkbox-group.cjs");
|
|
17
|
+
const daikinChip = require("./components/chip/daikin-chip.cjs");
|
|
18
|
+
const daikinCombobox = require("./components/combobox/daikin-combobox.cjs");
|
|
19
|
+
const daikinDatePicker = require("./components/date-picker/daikin-date-picker.cjs");
|
|
15
20
|
const daikinDropdown = require("./components/dropdown/daikin-dropdown.cjs");
|
|
16
21
|
const daikinDropdownItem = require("./components/dropdown-item/daikin-dropdown-item.cjs");
|
|
17
22
|
const daikinIcon = require("./components/icon/daikin-icon.cjs");
|
|
@@ -22,12 +27,19 @@ const daikinLink = require("./components/link/daikin-link.cjs");
|
|
|
22
27
|
const daikinList = require("./components/list/daikin-list.cjs");
|
|
23
28
|
const daikinListItem = require("./components/list-item/daikin-list-item.cjs");
|
|
24
29
|
const daikinLoading = require("./components/loading/daikin-loading.cjs");
|
|
30
|
+
const daikinLogo = require("./components/logo/daikin-logo.cjs");
|
|
31
|
+
const daikinMenu = require("./components/menu/daikin-menu.cjs");
|
|
32
|
+
const daikinModal = require("./components/modal/daikin-modal.cjs");
|
|
33
|
+
const daikinModalFooter = require("./components/modal-footer/daikin-modal-footer.cjs");
|
|
34
|
+
const daikinModalHeader = require("./components/modal-header/daikin-modal-header.cjs");
|
|
25
35
|
const daikinPagination = require("./components/pagination/daikin-pagination.cjs");
|
|
26
36
|
const daikinProgressBar = require("./components/progress-bar/daikin-progress-bar.cjs");
|
|
27
37
|
const daikinProgressIndicator = require("./components/progress-indicator/daikin-progress-indicator.cjs");
|
|
28
38
|
const daikinProgressIndicatorItem = require("./components/progress-indicator-item/daikin-progress-indicator-item.cjs");
|
|
29
39
|
const daikinRadio = require("./components/radio/daikin-radio.cjs");
|
|
40
|
+
const daikinRadioGroup = require("./components/radio-group/daikin-radio-group.cjs");
|
|
30
41
|
const daikinSelect = require("./components/select/daikin-select.cjs");
|
|
42
|
+
const daikinSlider = require("./components/slider/daikin-slider.cjs");
|
|
31
43
|
const daikinTab = require("./components/tab/daikin-tab.cjs");
|
|
32
44
|
const daikinTabPanels = require("./components/tab-panels/daikin-tab-panels.cjs");
|
|
33
45
|
const daikinTable = require("./components/table/daikin-table.cjs");
|
|
@@ -36,6 +48,8 @@ const daikinTableHeaderCell = require("./components/table-header-cell/daikin-tab
|
|
|
36
48
|
const daikinTabs = require("./components/tabs/daikin-tabs.cjs");
|
|
37
49
|
const daikinTextArea = require("./components/text-area/daikin-text-area.cjs");
|
|
38
50
|
const daikinTextField = require("./components/text-field/daikin-text-field.cjs");
|
|
51
|
+
const daikinTextMaskedField = require("./components/text-masked-field/daikin-text-masked-field.cjs");
|
|
52
|
+
const daikinTimePicker = require("./components/time-picker/daikin-time-picker.cjs");
|
|
39
53
|
const daikinToastNotification = require("./components/toast-notification/daikin-toast-notification.cjs");
|
|
40
54
|
const daikinToastNotificationManager = require("./components/toast-notification-manager/daikin-toast-notification-manager.cjs");
|
|
41
55
|
const daikinToggle = require("./components/toggle/daikin-toggle.cjs");
|
|
@@ -43,6 +57,7 @@ const daikinTooltip = require("./components/tooltip/daikin-tooltip.cjs");
|
|
|
43
57
|
const daikinTree = require("./components/tree/daikin-tree.cjs");
|
|
44
58
|
const daikinTreeItem = require("./components/tree-item/daikin-tree-item.cjs");
|
|
45
59
|
const daikinTreeSection = require("./components/tree-section/daikin-tree-section.cjs");
|
|
60
|
+
const iconRegistry = require("./icon-registry.cjs");
|
|
46
61
|
Object.defineProperty(exports, "DaikinAccordion", {
|
|
47
62
|
enumerable: true,
|
|
48
63
|
get: () => daikinAccordion.DaikinAccordion
|
|
@@ -67,6 +82,10 @@ Object.defineProperty(exports, "DaikinButton", {
|
|
|
67
82
|
enumerable: true,
|
|
68
83
|
get: () => daikinButton.DaikinButton
|
|
69
84
|
});
|
|
85
|
+
Object.defineProperty(exports, "DaikinCalendar", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: () => daikinCalendar.DaikinCalendar
|
|
88
|
+
});
|
|
70
89
|
Object.defineProperty(exports, "DaikinCard", {
|
|
71
90
|
enumerable: true,
|
|
72
91
|
get: () => daikinCard.DaikinCard
|
|
@@ -91,6 +110,23 @@ Object.defineProperty(exports, "DaikinCheckbox", {
|
|
|
91
110
|
enumerable: true,
|
|
92
111
|
get: () => daikinCheckbox.DaikinCheckbox
|
|
93
112
|
});
|
|
113
|
+
Object.defineProperty(exports, "DaikinCheckboxGroup", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: () => daikinCheckboxGroup.DaikinCheckboxGroup
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "DaikinChip", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: () => daikinChip.DaikinChip
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "DaikinCombobox", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: () => daikinCombobox.DaikinCombobox
|
|
124
|
+
});
|
|
125
|
+
exports.defaultFilterFn = daikinCombobox.defaultFilterFn;
|
|
126
|
+
Object.defineProperty(exports, "DaikinDatePicker", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: () => daikinDatePicker.DaikinDatePicker
|
|
129
|
+
});
|
|
94
130
|
Object.defineProperty(exports, "DaikinDropdown", {
|
|
95
131
|
enumerable: true,
|
|
96
132
|
get: () => daikinDropdown.DaikinDropdown
|
|
@@ -132,6 +168,26 @@ Object.defineProperty(exports, "DaikinLoading", {
|
|
|
132
168
|
enumerable: true,
|
|
133
169
|
get: () => daikinLoading.DaikinLoading
|
|
134
170
|
});
|
|
171
|
+
Object.defineProperty(exports, "DaikinLogo", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: () => daikinLogo.DaikinLogo
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "DaikinMenu", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: () => daikinMenu.DaikinMenu
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "DaikinModal", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: () => daikinModal.DaikinModal
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "DaikinModalFooter", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: () => daikinModalFooter.DaikinModalFooter
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "DaikinModalHeader", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: () => daikinModalHeader.DaikinModalHeader
|
|
190
|
+
});
|
|
135
191
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
136
192
|
enumerable: true,
|
|
137
193
|
get: () => daikinPagination.DaikinPagination
|
|
@@ -152,10 +208,18 @@ Object.defineProperty(exports, "DaikinRadio", {
|
|
|
152
208
|
enumerable: true,
|
|
153
209
|
get: () => daikinRadio.DaikinRadio
|
|
154
210
|
});
|
|
211
|
+
Object.defineProperty(exports, "DaikinRadioGroup", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: () => daikinRadioGroup.DaikinRadioGroup
|
|
214
|
+
});
|
|
155
215
|
Object.defineProperty(exports, "DaikinSelect", {
|
|
156
216
|
enumerable: true,
|
|
157
217
|
get: () => daikinSelect.DaikinSelect
|
|
158
218
|
});
|
|
219
|
+
Object.defineProperty(exports, "DaikinSlider", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: () => daikinSlider.DaikinSlider
|
|
222
|
+
});
|
|
159
223
|
Object.defineProperty(exports, "DaikinTab", {
|
|
160
224
|
enumerable: true,
|
|
161
225
|
get: () => daikinTab.DaikinTab
|
|
@@ -188,6 +252,24 @@ Object.defineProperty(exports, "DaikinTextField", {
|
|
|
188
252
|
enumerable: true,
|
|
189
253
|
get: () => daikinTextField.DaikinTextField
|
|
190
254
|
});
|
|
255
|
+
Object.defineProperty(exports, "DaikinTextMaskedField", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: () => daikinTextMaskedField.DaikinTextMaskedField
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "DaikinTimePicker", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: () => daikinTimePicker.DaikinTimePicker
|
|
262
|
+
});
|
|
263
|
+
exports.calcDigitInput = daikinTimePicker.calcDigitInput;
|
|
264
|
+
exports.formatPartsForUI = daikinTimePicker.formatPartsForUI;
|
|
265
|
+
exports.formatTimeForUI = daikinTimePicker.formatTimeForUI;
|
|
266
|
+
exports.from24HourFormat = daikinTimePicker.from24HourFormat;
|
|
267
|
+
exports.getTimeItemInSelection = daikinTimePicker.getTimeItemInSelection;
|
|
268
|
+
exports.isTimeOutOfRange = daikinTimePicker.isTimeOutOfRange;
|
|
269
|
+
exports.isValidValueTime = daikinTimePicker.isValidValueTime;
|
|
270
|
+
exports.parsePartsFromUIValue = daikinTimePicker.parsePartsFromUIValue;
|
|
271
|
+
exports.to24HourFormat = daikinTimePicker.to24HourFormat;
|
|
272
|
+
exports.tryParseTimeFromUIValue = daikinTimePicker.tryParseTimeFromUIValue;
|
|
191
273
|
Object.defineProperty(exports, "DaikinToastNotification", {
|
|
192
274
|
enumerable: true,
|
|
193
275
|
get: () => daikinToastNotification.DaikinToastNotification
|
|
@@ -217,3 +299,5 @@ Object.defineProperty(exports, "DaikinTreeSection", {
|
|
|
217
299
|
enumerable: true,
|
|
218
300
|
get: () => daikinTreeSection.DaikinTreeSection
|
|
219
301
|
});
|
|
302
|
+
exports.IconRegistry = iconRegistry.IconRegistry;
|
|
303
|
+
exports.iconRegistry = iconRegistry.iconRegistry;
|
package/dist/cjs/index.d.cts
CHANGED