@daikin-oss/design-system-web-components 0.6.0 → 1.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 +167 -12
- package/README.md +40 -23
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs/components/button/daikin-button.cjs +36 -23
- package/dist/cjs/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs/components/card/daikin-card.cjs +67 -0
- package/dist/cjs/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +56 -5
- package/dist/cjs/components/index.d.cts +11 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs/components/link/daikin-link.cjs +40 -55
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +17 -26
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +25 -16
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +15 -12
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs-dev/components/button/daikin-button.cjs +36 -23
- package/dist/cjs-dev/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs-dev/components/card/daikin-card.cjs +67 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +56 -5
- package/dist/cjs-dev/components/index.d.cts +11 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs-dev/components/link/daikin-link.cjs +40 -55
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +17 -36
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +25 -16
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +15 -12
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +56 -7
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es/components/button/daikin-button.d.ts +8 -5
- package/dist/es/components/button/daikin-button.js +35 -22
- package/dist/es/components/card/daikin-card.d.ts +48 -0
- package/dist/es/components/card/daikin-card.js +68 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es/components/icon/daikin-icon.js +15 -12
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es/components/index.d.ts +11 -1
- package/dist/es/components/index.js +23 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es/components/input-group/daikin-input-group.js +70 -51
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +39 -54
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +15 -12
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +39 -32
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +16 -25
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +56 -32
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +24 -15
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +37 -22
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +14 -11
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +30 -19
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +28 -18
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +17 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es/components/tree/daikin-tree.js +109 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.d.ts +0 -1
- package/dist/es/index.js +23 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es-dev/components/button/daikin-button.d.ts +8 -5
- package/dist/es-dev/components/button/daikin-button.js +35 -22
- package/dist/es-dev/components/card/daikin-card.d.ts +48 -0
- package/dist/es-dev/components/card/daikin-card.js +68 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es-dev/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es-dev/components/icon/daikin-icon.js +15 -12
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es-dev/components/index.d.ts +11 -1
- package/dist/es-dev/components/index.js +23 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +70 -51
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +39 -54
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +15 -12
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +39 -32
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +16 -35
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +56 -32
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +24 -15
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +37 -22
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +14 -11
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +30 -19
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +28 -18
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +17 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es-dev/components/tree/daikin-tree.js +109 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.d.ts +0 -1
- package/dist/es-dev/index.js +23 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +58 -49
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -198
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -198
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const lit = require("lit");
|
|
4
|
+
const decorators_js = require("lit/decorators.js");
|
|
5
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
6
|
+
const ref_js = require("lit/directives/ref.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
10
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
const isSimpleKey = require("../../utils/is-simple-key.cjs");
|
|
12
|
+
const daikinTreeItem = require("../tree-item/daikin-tree-item.cjs");
|
|
13
|
+
const common = require("../tree/common.cjs");
|
|
14
|
+
var __defProp = Object.defineProperty;
|
|
15
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
16
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
17
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
18
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
19
|
+
if (decorator = decorators2[i])
|
|
20
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
21
|
+
if (kind && result) __defProp(target, key, result);
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
exports.DaikinTreeSection = class DaikinTreeSection extends ddsElement.DDSElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.value = "";
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
this.selected = false;
|
|
30
|
+
this.open = false;
|
|
31
|
+
this.level = 0;
|
|
32
|
+
this._focusableRef = ref_js.createRef();
|
|
33
|
+
}
|
|
34
|
+
get _open() {
|
|
35
|
+
return this.open && !this.disabled;
|
|
36
|
+
}
|
|
37
|
+
get _selected() {
|
|
38
|
+
return this.selected && !this.disabled;
|
|
39
|
+
}
|
|
40
|
+
_updateChildrenLevel() {
|
|
41
|
+
for (const item of this._children) {
|
|
42
|
+
item.level = this.level + 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
_handleClick() {
|
|
46
|
+
if (!this.disabled && this.dispatchEvent(
|
|
47
|
+
new Event("toggle", {
|
|
48
|
+
cancelable: true
|
|
49
|
+
})
|
|
50
|
+
)) {
|
|
51
|
+
this.open = !this.open;
|
|
52
|
+
}
|
|
53
|
+
common.emitTreeSelect(this);
|
|
54
|
+
}
|
|
55
|
+
_handleSlotChange() {
|
|
56
|
+
this._updateChildrenLevel();
|
|
57
|
+
}
|
|
58
|
+
_handleTreeMoveFocus(event) {
|
|
59
|
+
common.handleTreeMoveFocusSection(this, event, this._children);
|
|
60
|
+
}
|
|
61
|
+
_handleKeyDown(event) {
|
|
62
|
+
var _a;
|
|
63
|
+
if (!isSimpleKey.isSimpleKeyEvent(event)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (!this.disabled && ["Enter", " "].includes(event.key)) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
this._handleClick();
|
|
69
|
+
common.emitTreeSelect(this);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const direction = common.getDirectionFromKey(event.key);
|
|
73
|
+
if (!direction) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
switch (direction) {
|
|
78
|
+
case "up":
|
|
79
|
+
common.emitTreeMoveFocus(this, "up");
|
|
80
|
+
break;
|
|
81
|
+
case "down": {
|
|
82
|
+
const nextItem = this.open && this._children[0];
|
|
83
|
+
if (nextItem) {
|
|
84
|
+
nextItem.focus();
|
|
85
|
+
} else {
|
|
86
|
+
common.emitTreeMoveFocus(this, "down");
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
case "left":
|
|
91
|
+
if (this._open) {
|
|
92
|
+
this.open = false;
|
|
93
|
+
} else {
|
|
94
|
+
common.emitTreeMoveFocus(this, "left");
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "right":
|
|
98
|
+
if (!this._open) {
|
|
99
|
+
this.open = true;
|
|
100
|
+
} else {
|
|
101
|
+
(_a = this._children[0]) == null ? void 0 : _a.focus();
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
return lit.html`<div
|
|
108
|
+
role="treeitem"
|
|
109
|
+
aria-expanded=${this._open}
|
|
110
|
+
aria-disabled=${this.disabled}
|
|
111
|
+
aria-selected=${this._selected}
|
|
112
|
+
>
|
|
113
|
+
<div
|
|
114
|
+
${ref_js.ref(this._focusableRef)}
|
|
115
|
+
class=${daikinTreeItem.cvaTreeChildren({
|
|
116
|
+
selected: this._selected,
|
|
117
|
+
disabled: this.disabled,
|
|
118
|
+
icon: true,
|
|
119
|
+
open: this._open
|
|
120
|
+
})}
|
|
121
|
+
tabindex=${ifDefined_js.ifDefined(!this.disabled ? 0 : void 0)}
|
|
122
|
+
style=${`--level:${this.level}`}
|
|
123
|
+
@click=${this._handleClick}
|
|
124
|
+
@keydown=${this._handleKeyDown}
|
|
125
|
+
>
|
|
126
|
+
<slot name="label"></slot>
|
|
127
|
+
</div>
|
|
128
|
+
<div role="group" ?hidden=${!this._open}>
|
|
129
|
+
<slot
|
|
130
|
+
@slotchange=${this._handleSlotChange}
|
|
131
|
+
@tree-move-focus=${this._handleTreeMoveFocus}
|
|
132
|
+
></slot>
|
|
133
|
+
</div>
|
|
134
|
+
</div>`;
|
|
135
|
+
}
|
|
136
|
+
updated(changedProperties) {
|
|
137
|
+
if (changedProperties.has("level")) {
|
|
138
|
+
this._updateChildrenLevel();
|
|
139
|
+
}
|
|
140
|
+
if (changedProperties.has("disabled")) {
|
|
141
|
+
if (this.disabled) {
|
|
142
|
+
common.emitTreeUnselect(this);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Focuses on the inner button.
|
|
148
|
+
*s
|
|
149
|
+
* @param options focus options
|
|
150
|
+
*/
|
|
151
|
+
focus(options) {
|
|
152
|
+
var _a;
|
|
153
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Focuses on the last enabled item in the slot recursively.
|
|
157
|
+
* If the tree is closed or there are no enabled items in the slot, this will focus on itself.
|
|
158
|
+
* This is called from the next item to move the focus to the item above it in the display.
|
|
159
|
+
*
|
|
160
|
+
* @param options focus options
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
focusLastItem(options) {
|
|
164
|
+
const child = this._open && this._children.findLast((element) => !element.disabled);
|
|
165
|
+
if (child) {
|
|
166
|
+
child.focusLastItem(options);
|
|
167
|
+
} else {
|
|
168
|
+
this.focus(options);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
173
|
+
* In addition, calls `selectItems` for the tree sections and tree items of the child elements in the slot in the same way.
|
|
174
|
+
*
|
|
175
|
+
* @param value Tree item value.
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
selectItems(values) {
|
|
179
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
180
|
+
this._children.forEach(
|
|
181
|
+
(child) => child.selectItems(this.disabled ? [] : values)
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
186
|
+
* If nothing is selected, returns `[]`.
|
|
187
|
+
*
|
|
188
|
+
* @returns An array of the `value` of the currently selected sections and items (if any). `[]` if there is none.
|
|
189
|
+
* @private
|
|
190
|
+
*/
|
|
191
|
+
getSelectedItems() {
|
|
192
|
+
if (this.disabled) {
|
|
193
|
+
return [];
|
|
194
|
+
}
|
|
195
|
+
return Array.from(
|
|
196
|
+
/* @__PURE__ */ new Set([
|
|
197
|
+
...this.selected ? [this.value] : [],
|
|
198
|
+
...this._children.flatMap((child) => child.getSelectedItems())
|
|
199
|
+
])
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
exports.DaikinTreeSection.styles = lit.css`
|
|
204
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
205
|
+
|
|
206
|
+
:host {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
__decorateClass([
|
|
211
|
+
decorators_js.property({ type: String })
|
|
212
|
+
], exports.DaikinTreeSection.prototype, "value", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
215
|
+
], exports.DaikinTreeSection.prototype, "disabled", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
218
|
+
], exports.DaikinTreeSection.prototype, "selected", 2);
|
|
219
|
+
__decorateClass([
|
|
220
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
221
|
+
], exports.DaikinTreeSection.prototype, "open", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
decorators_js.property({ type: Number, attribute: false })
|
|
224
|
+
], exports.DaikinTreeSection.prototype, "level", 2);
|
|
225
|
+
__decorateClass([
|
|
226
|
+
decorators_js.queryAssignedElements({ selector: "daikin-tree-section,daikin-tree-item" })
|
|
227
|
+
], exports.DaikinTreeSection.prototype, "_children", 2);
|
|
228
|
+
exports.DaikinTreeSection = __decorateClass([
|
|
229
|
+
decorators.ddsElement("daikin-tree-section")
|
|
230
|
+
], exports.DaikinTreeSection);
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* The tree section component that can be used within `daikin-tree` component.
|
|
5
|
+
*
|
|
6
|
+
* The tree section accepts either a tree item or a tree section. By stacking tree sections, you can create a multi-level structure.
|
|
7
|
+
*
|
|
8
|
+
* Hierarchy:
|
|
9
|
+
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-item`
|
|
10
|
+
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-section` ...
|
|
11
|
+
*
|
|
12
|
+
* @fires toggle - _Cancellable._ A custom event emitted when the user clicks the header.
|
|
13
|
+
* @fires tree-move-focus - _Internal use._ A custom event used to move the focus within a tree.
|
|
14
|
+
*
|
|
15
|
+
* @slot - A slot for tree children. Place `daikin-tree-section` and `daikin-tree-item` elements here.
|
|
16
|
+
* @slot label - A slot for section header content. Place a `span` element here.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/tree-item/index.js";
|
|
22
|
+
* import "@daikin-oss/design-system-web-components/components/tree-section/index.js";
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```html
|
|
26
|
+
* <daikin-tree-section>
|
|
27
|
+
* <span slot="label">Tree section</span>
|
|
28
|
+
* <daikin-tree-item>Tree item 1</daikin-tree-item>
|
|
29
|
+
* <daikin-tree-item>Tree item 2</daikin-tree-item>
|
|
30
|
+
* <daikin-tree-item>Tree item 3</daikin-tree-item>
|
|
31
|
+
* </daikin-tree-section>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class DaikinTreeSection extends DDSElement {
|
|
35
|
+
static readonly styles: import('lit').CSSResult;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the tree section.
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the tree section is disabled.
|
|
42
|
+
*/
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the tree item is selected.
|
|
46
|
+
* Controlled by `daikin-tree`.
|
|
47
|
+
*/
|
|
48
|
+
selected: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the tree section is open.
|
|
51
|
+
* Treated as `false` when `disabled` is `true`.
|
|
52
|
+
*/
|
|
53
|
+
open: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* _Internal use._
|
|
56
|
+
* The current nesting depth when the root's children are 0.
|
|
57
|
+
* Automatically set by the parent.
|
|
58
|
+
*
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
61
|
+
level: number;
|
|
62
|
+
private readonly _children;
|
|
63
|
+
private readonly _focusableRef;
|
|
64
|
+
private get _open();
|
|
65
|
+
private get _selected();
|
|
66
|
+
private _updateChildrenLevel;
|
|
67
|
+
private _handleClick;
|
|
68
|
+
private _handleSlotChange;
|
|
69
|
+
private _handleTreeMoveFocus;
|
|
70
|
+
private _handleKeyDown;
|
|
71
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
72
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
73
|
+
/**
|
|
74
|
+
* Focuses on the inner button.
|
|
75
|
+
*s
|
|
76
|
+
* @param options focus options
|
|
77
|
+
*/
|
|
78
|
+
focus(options?: FocusOptions): void;
|
|
79
|
+
/**
|
|
80
|
+
* Focuses on the last enabled item in the slot recursively.
|
|
81
|
+
* If the tree is closed or there are no enabled items in the slot, this will focus on itself.
|
|
82
|
+
* This is called from the next item to move the focus to the item above it in the display.
|
|
83
|
+
*
|
|
84
|
+
* @param options focus options
|
|
85
|
+
* @private
|
|
86
|
+
*/
|
|
87
|
+
focusLastItem(options?: FocusOptions): void;
|
|
88
|
+
/**
|
|
89
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
90
|
+
* In addition, calls `selectItems` for the tree sections and tree items of the child elements in the slot in the same way.
|
|
91
|
+
*
|
|
92
|
+
* @param value Tree item value.
|
|
93
|
+
* @private
|
|
94
|
+
*/
|
|
95
|
+
selectItems(values: readonly string[]): void;
|
|
96
|
+
/**
|
|
97
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
98
|
+
* If nothing is selected, returns `[]`.
|
|
99
|
+
*
|
|
100
|
+
* @returns An array of the `value` of the currently selected sections and items (if any). `[]` if there is none.
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
getSelectedItems(): string[];
|
|
104
|
+
}
|
|
105
|
+
declare global {
|
|
106
|
+
interface HTMLElementTagNameMap {
|
|
107
|
+
"daikin-tree-section": DaikinTreeSection;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinTreeSection = require("./daikin-tree-section.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinTreeSection", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinTreeSection.DaikinTreeSection
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tree-section.cjs";
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const colors = require("./colors.cjs");
|
|
4
3
|
const daikinAccordion = require("./components/accordion/daikin-accordion.cjs");
|
|
5
4
|
const daikinAccordionItem = require("./components/accordion-item/daikin-accordion-item.cjs");
|
|
6
5
|
const daikinBreadcrumb = require("./components/breadcrumb/daikin-breadcrumb.cjs");
|
|
7
6
|
const daikinBreadcrumbItem = require("./components/breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
8
7
|
const daikinButton = require("./components/button/daikin-button.cjs");
|
|
8
|
+
const daikinCard = require("./components/card/daikin-card.cjs");
|
|
9
|
+
const daikinCardFooter = require("./components/card-footer/daikin-card-footer.cjs");
|
|
10
|
+
const daikinCardHeader = require("./components/card-header/daikin-card-header.cjs");
|
|
11
|
+
const daikinCarousel = require("./components/carousel/daikin-carousel.cjs");
|
|
12
|
+
const daikinCarouselItem = require("./components/carousel-item/daikin-carousel-item.cjs");
|
|
9
13
|
const daikinCheckbox = require("./components/checkbox/daikin-checkbox.cjs");
|
|
10
14
|
const daikinDropdown = require("./components/dropdown/daikin-dropdown.cjs");
|
|
11
15
|
const daikinDropdownItem = require("./components/dropdown-item/daikin-dropdown-item.cjs");
|
|
12
16
|
const daikinIcon = require("./components/icon/daikin-icon.cjs");
|
|
13
17
|
const daikinIconButton = require("./components/icon-button/daikin-icon-button.cjs");
|
|
18
|
+
const daikinInlineNotification = require("./components/inline-notification/daikin-inline-notification.cjs");
|
|
14
19
|
const daikinInputGroup = require("./components/input-group/daikin-input-group.cjs");
|
|
15
20
|
const daikinLink = require("./components/link/daikin-link.cjs");
|
|
16
21
|
const daikinList = require("./components/list/daikin-list.cjs");
|
|
17
22
|
const daikinListItem = require("./components/list-item/daikin-list-item.cjs");
|
|
18
|
-
const daikinNotification = require("./components/notification/daikin-notification.cjs");
|
|
19
23
|
const daikinPagination = require("./components/pagination/daikin-pagination.cjs");
|
|
20
24
|
const daikinProgressBar = require("./components/progress-bar/daikin-progress-bar.cjs");
|
|
21
25
|
const daikinProgressIndicator = require("./components/progress-indicator/daikin-progress-indicator.cjs");
|
|
@@ -30,9 +34,13 @@ const daikinTableHeaderCell = require("./components/table-header-cell/daikin-tab
|
|
|
30
34
|
const daikinTabs = require("./components/tabs/daikin-tabs.cjs");
|
|
31
35
|
const daikinTextArea = require("./components/text-area/daikin-text-area.cjs");
|
|
32
36
|
const daikinTextField = require("./components/text-field/daikin-text-field.cjs");
|
|
37
|
+
const daikinToastNotification = require("./components/toast-notification/daikin-toast-notification.cjs");
|
|
38
|
+
const daikinToastNotificationManager = require("./components/toast-notification-manager/daikin-toast-notification-manager.cjs");
|
|
33
39
|
const daikinToggle = require("./components/toggle/daikin-toggle.cjs");
|
|
34
40
|
const daikinTooltip = require("./components/tooltip/daikin-tooltip.cjs");
|
|
35
|
-
|
|
41
|
+
const daikinTree = require("./components/tree/daikin-tree.cjs");
|
|
42
|
+
const daikinTreeItem = require("./components/tree-item/daikin-tree-item.cjs");
|
|
43
|
+
const daikinTreeSection = require("./components/tree-section/daikin-tree-section.cjs");
|
|
36
44
|
Object.defineProperty(exports, "DaikinAccordion", {
|
|
37
45
|
enumerable: true,
|
|
38
46
|
get: () => daikinAccordion.DaikinAccordion
|
|
@@ -53,6 +61,26 @@ Object.defineProperty(exports, "DaikinButton", {
|
|
|
53
61
|
enumerable: true,
|
|
54
62
|
get: () => daikinButton.DaikinButton
|
|
55
63
|
});
|
|
64
|
+
Object.defineProperty(exports, "DaikinCard", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: () => daikinCard.DaikinCard
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "DaikinCardFooter", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: () => daikinCardFooter.DaikinCardFooter
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "DaikinCardHeader", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: () => daikinCardHeader.DaikinCardHeader
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "DaikinCarousel", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: () => daikinCarousel.DaikinCarousel
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "DaikinCarouselItem", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: () => daikinCarouselItem.DaikinCarouselItem
|
|
83
|
+
});
|
|
56
84
|
Object.defineProperty(exports, "DaikinCheckbox", {
|
|
57
85
|
enumerable: true,
|
|
58
86
|
get: () => daikinCheckbox.DaikinCheckbox
|
|
@@ -74,6 +102,10 @@ Object.defineProperty(exports, "DaikinIconButton", {
|
|
|
74
102
|
enumerable: true,
|
|
75
103
|
get: () => daikinIconButton.DaikinIconButton
|
|
76
104
|
});
|
|
105
|
+
Object.defineProperty(exports, "DaikinInlineNotification", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: () => daikinInlineNotification.DaikinInlineNotification
|
|
108
|
+
});
|
|
77
109
|
Object.defineProperty(exports, "DaikinInputGroup", {
|
|
78
110
|
enumerable: true,
|
|
79
111
|
get: () => daikinInputGroup.DaikinInputGroup
|
|
@@ -90,10 +122,6 @@ Object.defineProperty(exports, "DaikinListItem", {
|
|
|
90
122
|
enumerable: true,
|
|
91
123
|
get: () => daikinListItem.DaikinListItem
|
|
92
124
|
});
|
|
93
|
-
Object.defineProperty(exports, "DaikinNotification", {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: () => daikinNotification.DaikinNotification
|
|
96
|
-
});
|
|
97
125
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
98
126
|
enumerable: true,
|
|
99
127
|
get: () => daikinPagination.DaikinPagination
|
|
@@ -150,6 +178,14 @@ Object.defineProperty(exports, "DaikinTextField", {
|
|
|
150
178
|
enumerable: true,
|
|
151
179
|
get: () => daikinTextField.DaikinTextField
|
|
152
180
|
});
|
|
181
|
+
Object.defineProperty(exports, "DaikinToastNotification", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: () => daikinToastNotification.DaikinToastNotification
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "DaikinToastNotificationManager", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: () => daikinToastNotificationManager.DaikinToastNotificationManager
|
|
188
|
+
});
|
|
153
189
|
Object.defineProperty(exports, "DaikinToggle", {
|
|
154
190
|
enumerable: true,
|
|
155
191
|
get: () => daikinToggle.DaikinToggle
|
|
@@ -158,3 +194,16 @@ Object.defineProperty(exports, "DaikinTooltip", {
|
|
|
158
194
|
enumerable: true,
|
|
159
195
|
get: () => daikinTooltip.DaikinTooltip
|
|
160
196
|
});
|
|
197
|
+
Object.defineProperty(exports, "DaikinTree", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: () => daikinTree.DaikinTree
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "DaikinTreeItem", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: () => daikinTreeItem.DaikinTreeItem
|
|
204
|
+
});
|
|
205
|
+
exports.cvaTreeChildren = daikinTreeItem.cvaTreeChildren;
|
|
206
|
+
Object.defineProperty(exports, "DaikinTreeSection", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: () => daikinTreeSection.DaikinTreeSection
|
|
209
|
+
});
|
package/dist/cjs/index.d.cts
CHANGED