@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,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function getDirectionFromKey(key) {
|
|
4
|
+
return {
|
|
5
|
+
ArrowUp: "up",
|
|
6
|
+
ArrowDown: "down",
|
|
7
|
+
ArrowLeft: "left",
|
|
8
|
+
ArrowRight: "right"
|
|
9
|
+
}[key];
|
|
10
|
+
}
|
|
11
|
+
function handleTreeMoveFocusCommon(event, children) {
|
|
12
|
+
const moveOffset = {
|
|
13
|
+
up: -1,
|
|
14
|
+
down: 1,
|
|
15
|
+
left: 0
|
|
16
|
+
}[event.detail.direction];
|
|
17
|
+
if (!moveOffset) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const target = event.target;
|
|
21
|
+
const enabledChildren = children.filter(({ disabled }) => !disabled);
|
|
22
|
+
const focusedItemIndex = enabledChildren.findIndex((item) => item === target);
|
|
23
|
+
if (focusedItemIndex < 0) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
const child = enabledChildren[focusedItemIndex + moveOffset];
|
|
28
|
+
if (!child) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (moveOffset > 0) {
|
|
32
|
+
child.focus();
|
|
33
|
+
} else {
|
|
34
|
+
child.focusLastItem();
|
|
35
|
+
}
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function handleTreeMoveFocusSection(section, event, children) {
|
|
39
|
+
const { direction } = event.detail;
|
|
40
|
+
if (direction === "left") {
|
|
41
|
+
event.stopPropagation();
|
|
42
|
+
section.focus();
|
|
43
|
+
} else {
|
|
44
|
+
const result = handleTreeMoveFocusCommon(event, children);
|
|
45
|
+
if (result === false) {
|
|
46
|
+
if (direction === "up") {
|
|
47
|
+
section.focus();
|
|
48
|
+
} else {
|
|
49
|
+
emitTreeMoveFocus(section, "down");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function handleTreeMoveFocusRoot(event, children) {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
handleTreeMoveFocusCommon(event, children);
|
|
57
|
+
}
|
|
58
|
+
function emitTreeMoveFocus(target, direction) {
|
|
59
|
+
target.dispatchEvent(
|
|
60
|
+
new CustomEvent("tree-move-focus", {
|
|
61
|
+
detail: {
|
|
62
|
+
direction
|
|
63
|
+
},
|
|
64
|
+
composed: true,
|
|
65
|
+
bubbles: true
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function emitTreeSelect(target) {
|
|
70
|
+
target.dispatchEvent(
|
|
71
|
+
new Event("tree-select", {
|
|
72
|
+
composed: true,
|
|
73
|
+
bubbles: true
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function emitTreeUnselect(target) {
|
|
78
|
+
target.dispatchEvent(
|
|
79
|
+
new Event("tree-unselect", {
|
|
80
|
+
composed: true,
|
|
81
|
+
bubbles: true
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
exports.emitTreeMoveFocus = emitTreeMoveFocus;
|
|
86
|
+
exports.emitTreeSelect = emitTreeSelect;
|
|
87
|
+
exports.emitTreeUnselect = emitTreeUnselect;
|
|
88
|
+
exports.getDirectionFromKey = getDirectionFromKey;
|
|
89
|
+
exports.handleTreeMoveFocusRoot = handleTreeMoveFocusRoot;
|
|
90
|
+
exports.handleTreeMoveFocusSection = handleTreeMoveFocusSection;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DaikinTreeItem } from "../tree-item/index.cjs";
|
|
2
|
+
import { DaikinTreeSection } from "../tree-section/index.cjs";
|
|
3
|
+
export type Direction = "up" | "down" | "left" | "right";
|
|
4
|
+
export type DirectionDispatched = Exclude<Direction, "right">;
|
|
5
|
+
export type TreeMoveFocusEventDetail = {
|
|
6
|
+
direction: DirectionDispatched;
|
|
7
|
+
};
|
|
8
|
+
export type TreeMoveFocusEvent = CustomEvent<TreeMoveFocusEventDetail>;
|
|
9
|
+
/**
|
|
10
|
+
* Get direction from key name.
|
|
11
|
+
* @param key `event.key` where `event` is `KeyboardEvent`
|
|
12
|
+
* @returns direction
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDirectionFromKey(key: string): Direction | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* `tree-move-focus` event handler for `daikin-tree-section`.
|
|
17
|
+
*
|
|
18
|
+
* @param section `daikin-tree-section`
|
|
19
|
+
* @param event `TreeMoveFocusEvent`
|
|
20
|
+
* @param children Children in the slot.
|
|
21
|
+
*/
|
|
22
|
+
export declare function handleTreeMoveFocusSection(section: DaikinTreeSection, event: TreeMoveFocusEvent, children: readonly (DaikinTreeSection | DaikinTreeItem)[]): void;
|
|
23
|
+
/**
|
|
24
|
+
* `tree-move-focus` event handler for `daikin-tree`.
|
|
25
|
+
*
|
|
26
|
+
* @param event `TreeMoveFocusEvent`
|
|
27
|
+
* @param children Children in the slot.
|
|
28
|
+
*/
|
|
29
|
+
export declare function handleTreeMoveFocusRoot(event: TreeMoveFocusEvent, children: readonly (DaikinTreeSection | DaikinTreeItem)[]): void;
|
|
30
|
+
export declare function emitTreeMoveFocus(target: HTMLElement, direction: DirectionDispatched): void;
|
|
31
|
+
export declare function emitTreeSelect(target: HTMLElement): void;
|
|
32
|
+
export declare function emitTreeUnselect(target: HTMLElement): void;
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
const decorators = require("../../base/decorators.cjs");
|
|
7
|
+
require("../../base/define.cjs");
|
|
8
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
+
const common = require("./common.cjs");
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
exports.DaikinTree = class DaikinTree extends ddsElement.DDSElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.selectable = false;
|
|
24
|
+
this.selectedItems = [];
|
|
25
|
+
}
|
|
26
|
+
_handleMouseDown(event) {
|
|
27
|
+
if (event.detail >= 2) {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_handleSlotChange() {
|
|
32
|
+
this._children.forEach((child) => child.level = 0);
|
|
33
|
+
this.selectItems(this.selectedItems);
|
|
34
|
+
}
|
|
35
|
+
_handleTreeMoveFocus(event) {
|
|
36
|
+
common.handleTreeMoveFocusRoot(event, this._children);
|
|
37
|
+
}
|
|
38
|
+
_handleTreeSelect(event) {
|
|
39
|
+
if (!this.selectable) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
event.stopPropagation();
|
|
43
|
+
const target = event.target;
|
|
44
|
+
this.selectedItems = [target.value];
|
|
45
|
+
}
|
|
46
|
+
_handleTreeUnselect(event) {
|
|
47
|
+
if (!this.selectable) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
event.stopPropagation();
|
|
51
|
+
this.selectedItems = this.getSelectedItems();
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return lit.html`<div role="tree" @mousedown=${this._handleMouseDown}>
|
|
55
|
+
<slot
|
|
56
|
+
@slotchange=${this._handleSlotChange}
|
|
57
|
+
@tree-move-focus=${this._handleTreeMoveFocus}
|
|
58
|
+
@tree-select=${this._handleTreeSelect}
|
|
59
|
+
@tree-unselect=${this._handleTreeUnselect}
|
|
60
|
+
></slot>
|
|
61
|
+
</div>`;
|
|
62
|
+
}
|
|
63
|
+
updated(changedProperties) {
|
|
64
|
+
if (changedProperties.has("selectedItems")) {
|
|
65
|
+
this.selectItems(this.selectedItems);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Calls `selectItems` for the tree sections and tree items of the child elements in the slot.
|
|
70
|
+
*
|
|
71
|
+
* @param value Tree item value.
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
selectItems(values) {
|
|
75
|
+
this._children.forEach((child) => child.selectItems(values));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
79
|
+
* If nothing is selected, returns `[]`.
|
|
80
|
+
*
|
|
81
|
+
* @returns An array of the `value` of the selected sections and items (if any). `[]` if there is none.
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
getSelectedItems() {
|
|
85
|
+
return Array.from(
|
|
86
|
+
new Set(this._children.flatMap((child) => child.getSelectedItems()))
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
exports.DaikinTree.styles = lit.css`
|
|
91
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
92
|
+
|
|
93
|
+
:host {
|
|
94
|
+
display: block;
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
__decorateClass([
|
|
98
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
99
|
+
], exports.DaikinTree.prototype, "selectable", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
decorators_js.property({ type: Array, attribute: false })
|
|
102
|
+
], exports.DaikinTree.prototype, "selectedItems", 2);
|
|
103
|
+
__decorateClass([
|
|
104
|
+
decorators_js.queryAssignedElements({ selector: "daikin-tree-section,daikin-tree-item" })
|
|
105
|
+
], exports.DaikinTree.prototype, "_children", 2);
|
|
106
|
+
exports.DaikinTree = __decorateClass([
|
|
107
|
+
decorators.ddsElement("daikin-tree")
|
|
108
|
+
], exports.DaikinTree);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* The tree component is a component that creates a hierarchical list. You can create a hierarchical structure by placing tree section components and tree item components under the parent tree component.
|
|
5
|
+
*
|
|
6
|
+
* Hierarchy:
|
|
7
|
+
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-item`
|
|
8
|
+
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-section` ...
|
|
9
|
+
* - `daikin-tree` > `daikin-tree-item`
|
|
10
|
+
*
|
|
11
|
+
* @slot - A slot for tree sections and tree items. Place `daikin-tree-section` or `daikin-tree-item` elements here.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```js
|
|
16
|
+
* import "@daikin-oss/design-system-web-components/components/tree/index.js";
|
|
17
|
+
* import "@daikin-oss/design-system-web-components/components/tree-item/index.js";
|
|
18
|
+
* import "@daikin-oss/design-system-web-components/components/tree-section/index.js";
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <daikin-tree>
|
|
23
|
+
* <daikin-tree-section>
|
|
24
|
+
* <span slot="label">Tree section 1</span>
|
|
25
|
+
* <daikin-tree-item>Tree item 1-1</daikin-tree-item>
|
|
26
|
+
* <daikin-tree-item>Tree item 1-2</daikin-tree-item>
|
|
27
|
+
* <daikin-tree-item>Tree item 1-3</daikin-tree-item>
|
|
28
|
+
* </daikin-tree-section>
|
|
29
|
+
* </daikin-tree>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class DaikinTree extends DDSElement {
|
|
33
|
+
static readonly styles: import('lit').CSSResult;
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not to enable tree selection.
|
|
36
|
+
* When enabled, tree sections and items can be selected by click, and the `selected` property of the `daikin-tree` and its descendants will be automatically controlled.
|
|
37
|
+
* Even if this is disabled, you can still set the `selected` property yourself.
|
|
38
|
+
*/
|
|
39
|
+
selectable: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the currently selected tree section or tree item.
|
|
42
|
+
* Even if `selectable` is `false`, you can still set this property yourself.
|
|
43
|
+
*/
|
|
44
|
+
selectedItems: string[];
|
|
45
|
+
private readonly _children;
|
|
46
|
+
private _handleMouseDown;
|
|
47
|
+
private _handleSlotChange;
|
|
48
|
+
private _handleTreeMoveFocus;
|
|
49
|
+
private _handleTreeSelect;
|
|
50
|
+
private _handleTreeUnselect;
|
|
51
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
52
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
53
|
+
/**
|
|
54
|
+
* Calls `selectItems` for the tree sections and tree items of the child elements in the slot.
|
|
55
|
+
*
|
|
56
|
+
* @param value Tree item value.
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
selectItems(values: readonly string[]): void;
|
|
60
|
+
/**
|
|
61
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
62
|
+
* If nothing is selected, returns `[]`.
|
|
63
|
+
*
|
|
64
|
+
* @returns An array of the `value` of the selected sections and items (if any). `[]` if there is none.
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
getSelectedItems(): string[];
|
|
68
|
+
}
|
|
69
|
+
declare global {
|
|
70
|
+
interface HTMLElementTagNameMap {
|
|
71
|
+
"daikin-tree": DaikinTree;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tree.cjs";
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ref_js = require("lit/directives/ref.js");
|
|
8
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
|
+
const decorators = require("../../base/decorators.cjs");
|
|
10
|
+
require("../../base/define.cjs");
|
|
11
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
12
|
+
const isSimpleKey = require("../../utils/is-simple-key.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
|
+
const cvaTreeChildren = classVarianceAuthority.cva(
|
|
25
|
+
[
|
|
26
|
+
"flex",
|
|
27
|
+
"items-center",
|
|
28
|
+
"w-full",
|
|
29
|
+
"min-h-12",
|
|
30
|
+
"py-3",
|
|
31
|
+
"pr-4",
|
|
32
|
+
"pl-[calc((var(--level)+1)*1rem)]",
|
|
33
|
+
"leading-[130%]",
|
|
34
|
+
"focus-visible:outline",
|
|
35
|
+
"focus-visible:outline-2",
|
|
36
|
+
"focus-visible:-outline-offset-2",
|
|
37
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
38
|
+
],
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
disabled: {
|
|
42
|
+
false: [
|
|
43
|
+
"text-ddt-color-common-text-primary",
|
|
44
|
+
"bg-[--color-base]",
|
|
45
|
+
"cursor-pointer"
|
|
46
|
+
],
|
|
47
|
+
true: ["text-ddt-color-common-disabled"]
|
|
48
|
+
},
|
|
49
|
+
selected: {
|
|
50
|
+
false: [
|
|
51
|
+
"var-color-transparent/color-base",
|
|
52
|
+
"hover:var-color-ddt-color-common-surface-hover/color-base",
|
|
53
|
+
"active:var-color-ddt-color-common-surface-press/color-base"
|
|
54
|
+
],
|
|
55
|
+
true: [
|
|
56
|
+
"var-color-ddt-color-common-surface-selected-default/color-base",
|
|
57
|
+
"hover:var-color-ddt-color-common-surface-selected-hover/color-base",
|
|
58
|
+
"active:var-color-ddt-color-common-surface-selected-press/color-base"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
icon: {
|
|
62
|
+
false: ["before:size-6"],
|
|
63
|
+
true: [
|
|
64
|
+
"before:i-daikin-chevron-right",
|
|
65
|
+
"before:size-5",
|
|
66
|
+
"before:m-0.5",
|
|
67
|
+
"before:transition-all",
|
|
68
|
+
"before:flex-none"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
open: {
|
|
72
|
+
false: [],
|
|
73
|
+
true: ["before:rotate-90"]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
exports.DaikinTreeItem = class DaikinTreeItem extends ddsElement.DDSElement {
|
|
79
|
+
constructor() {
|
|
80
|
+
super();
|
|
81
|
+
this.value = "";
|
|
82
|
+
this.disabled = false;
|
|
83
|
+
this.selected = false;
|
|
84
|
+
this.level = 0;
|
|
85
|
+
this._focusableRef = ref_js.createRef();
|
|
86
|
+
this.addEventListener("click", (event) => {
|
|
87
|
+
if (this.disabled) {
|
|
88
|
+
event.stopImmediatePropagation();
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
get _selected() {
|
|
93
|
+
return this.selected && !this.disabled;
|
|
94
|
+
}
|
|
95
|
+
_handleKeyDown(event) {
|
|
96
|
+
if (!isSimpleKey.isSimpleKeyEvent(event)) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (!this.disabled && ["Enter", " "].includes(event.key)) {
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
common.emitTreeSelect(this);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const direction = common.getDirectionFromKey(event.key);
|
|
105
|
+
if (!direction) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
event.preventDefault();
|
|
109
|
+
if (direction !== "right") {
|
|
110
|
+
common.emitTreeMoveFocus(this, direction);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return lit.html`<div
|
|
115
|
+
${ref_js.ref(this._focusableRef)}
|
|
116
|
+
class=${cvaTreeChildren({
|
|
117
|
+
disabled: this.disabled,
|
|
118
|
+
selected: this._selected,
|
|
119
|
+
icon: false,
|
|
120
|
+
open: false
|
|
121
|
+
})}
|
|
122
|
+
role="treeitem"
|
|
123
|
+
aria-disabled=${this.disabled}
|
|
124
|
+
aria-selected=${this._selected}
|
|
125
|
+
tabindex=${ifDefined_js.ifDefined(!this.disabled ? 0 : void 0)}
|
|
126
|
+
style=${`--level:${this.level}`}
|
|
127
|
+
@click=${() => common.emitTreeSelect(this)}
|
|
128
|
+
@keydown=${this._handleKeyDown}
|
|
129
|
+
>
|
|
130
|
+
<slot></slot>
|
|
131
|
+
</div>`;
|
|
132
|
+
}
|
|
133
|
+
updated(changedProperties) {
|
|
134
|
+
if (changedProperties.has("disabled")) {
|
|
135
|
+
if (this.disabled) {
|
|
136
|
+
common.emitTreeUnselect(this);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Focuses on the inner button.
|
|
142
|
+
*
|
|
143
|
+
* @param options focus options
|
|
144
|
+
*/
|
|
145
|
+
focus(options) {
|
|
146
|
+
var _a;
|
|
147
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Focuses on the inner button.
|
|
151
|
+
* This is provided to ensure consistency of the interface.
|
|
152
|
+
*
|
|
153
|
+
* @param options focus options
|
|
154
|
+
* @private
|
|
155
|
+
*/
|
|
156
|
+
focusLastItem(options) {
|
|
157
|
+
var _a;
|
|
158
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
162
|
+
*
|
|
163
|
+
* @param value Tree item value.
|
|
164
|
+
* @private
|
|
165
|
+
*/
|
|
166
|
+
selectItems(values) {
|
|
167
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns `[this.value]` if selected, or `[]` if not selected.
|
|
171
|
+
*
|
|
172
|
+
* @returns `[this.value]` if selected. `[]` if not selected.
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
getSelectedItems() {
|
|
176
|
+
return !this.disabled && this.selected ? [this.value] : [];
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
exports.DaikinTreeItem.styles = lit.css`
|
|
180
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
181
|
+
|
|
182
|
+
:host {
|
|
183
|
+
display: block;
|
|
184
|
+
}
|
|
185
|
+
`;
|
|
186
|
+
__decorateClass([
|
|
187
|
+
decorators_js.property({ type: String })
|
|
188
|
+
], exports.DaikinTreeItem.prototype, "value", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
191
|
+
], exports.DaikinTreeItem.prototype, "disabled", 2);
|
|
192
|
+
__decorateClass([
|
|
193
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
194
|
+
], exports.DaikinTreeItem.prototype, "selected", 2);
|
|
195
|
+
__decorateClass([
|
|
196
|
+
decorators_js.property({ type: Number, attribute: false })
|
|
197
|
+
], exports.DaikinTreeItem.prototype, "level", 2);
|
|
198
|
+
exports.DaikinTreeItem = __decorateClass([
|
|
199
|
+
decorators.ddsElement("daikin-tree-item")
|
|
200
|
+
], exports.DaikinTreeItem);
|
|
201
|
+
exports.cvaTreeChildren = cvaTreeChildren;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
3
|
+
export declare const cvaTreeChildren: (props?: ({
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
selected?: boolean | null | undefined;
|
|
6
|
+
icon?: boolean | null | undefined;
|
|
7
|
+
open?: boolean | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
/**
|
|
10
|
+
* The tree item component that can be used within `daikin-tree` and `daikin-tree-section` component.
|
|
11
|
+
*
|
|
12
|
+
* This can be placed either under the tree section or directly under the tree. Elements cannot be placed any deeper than tree item.
|
|
13
|
+
*
|
|
14
|
+
* Hierarchy:
|
|
15
|
+
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-item`
|
|
16
|
+
* - `daikin-tree` > `daikin-tree-item`
|
|
17
|
+
*
|
|
18
|
+
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<a>` or `<button>` element. Suppressed if `disabled` is true,
|
|
19
|
+
* @fires tree-move-focus - _Internal use._ A custom event used to move the focus within a tree.
|
|
20
|
+
*
|
|
21
|
+
* @slot - A slot for the tree item content.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* import "@daikin-oss/design-system-web-components/components/tree-item/index.js";
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ```html
|
|
30
|
+
* <daikin-tree-item>Tree item</daikin-tree-item>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare class DaikinTreeItem extends DDSElement {
|
|
34
|
+
static readonly styles: import('lit').CSSResult;
|
|
35
|
+
/**
|
|
36
|
+
* Value of the tree item.
|
|
37
|
+
*/
|
|
38
|
+
value: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the tree item is disabled.
|
|
41
|
+
*/
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the tree item is selected.
|
|
45
|
+
* Controlled by `daikin-tree`.
|
|
46
|
+
*/
|
|
47
|
+
selected: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* _Internal use._
|
|
50
|
+
* The current nesting depth when the root's children are 0.
|
|
51
|
+
* Automatically set by the parent.
|
|
52
|
+
*
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
level: number;
|
|
56
|
+
private readonly _focusableRef;
|
|
57
|
+
private get _selected();
|
|
58
|
+
private _handleKeyDown;
|
|
59
|
+
constructor();
|
|
60
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
61
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
62
|
+
/**
|
|
63
|
+
* Focuses on the inner button.
|
|
64
|
+
*
|
|
65
|
+
* @param options focus options
|
|
66
|
+
*/
|
|
67
|
+
focus(options?: FocusOptions): void;
|
|
68
|
+
/**
|
|
69
|
+
* Focuses on the inner button.
|
|
70
|
+
* This is provided to ensure consistency of the interface.
|
|
71
|
+
*
|
|
72
|
+
* @param options focus options
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
focusLastItem(options?: FocusOptions): void;
|
|
76
|
+
/**
|
|
77
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
78
|
+
*
|
|
79
|
+
* @param value Tree item value.
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
selectItems(values: readonly string[]): void;
|
|
83
|
+
/**
|
|
84
|
+
* Returns `[this.value]` if selected, or `[]` if not selected.
|
|
85
|
+
*
|
|
86
|
+
* @returns `[this.value]` if selected. `[]` if not selected.
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
89
|
+
getSelectedItems(): string[];
|
|
90
|
+
}
|
|
91
|
+
declare global {
|
|
92
|
+
interface HTMLElementTagNameMap {
|
|
93
|
+
"daikin-tree-item": DaikinTreeItem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinTreeItem = require("./daikin-tree-item.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinTreeItem", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinTreeItem.DaikinTreeItem
|
|
7
|
+
});
|
|
8
|
+
exports.cvaTreeChildren = daikinTreeItem.cvaTreeChildren;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tree-item.cjs";
|