@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,95 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
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,202 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
7
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
8
|
+
import "../../base/define.js";
|
|
9
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
10
|
+
import { isSimpleKeyEvent } from "../../utils/is-simple-key.js";
|
|
11
|
+
import { emitTreeSelect, getDirectionFromKey, emitTreeMoveFocus, emitTreeUnselect } from "../tree/common.js";
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators[i])
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result) __defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
const cvaTreeChildren = cva(
|
|
23
|
+
[
|
|
24
|
+
"flex",
|
|
25
|
+
"items-center",
|
|
26
|
+
"w-full",
|
|
27
|
+
"min-h-12",
|
|
28
|
+
"py-3",
|
|
29
|
+
"pr-4",
|
|
30
|
+
"pl-[calc((var(--level)+1)*1rem)]",
|
|
31
|
+
"leading-[130%]",
|
|
32
|
+
"focus-visible:outline",
|
|
33
|
+
"focus-visible:outline-2",
|
|
34
|
+
"focus-visible:-outline-offset-2",
|
|
35
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
36
|
+
],
|
|
37
|
+
{
|
|
38
|
+
variants: {
|
|
39
|
+
disabled: {
|
|
40
|
+
false: [
|
|
41
|
+
"text-ddt-color-common-text-primary",
|
|
42
|
+
"bg-[--color-base]",
|
|
43
|
+
"cursor-pointer"
|
|
44
|
+
],
|
|
45
|
+
true: ["text-ddt-color-common-disabled"]
|
|
46
|
+
},
|
|
47
|
+
selected: {
|
|
48
|
+
false: [
|
|
49
|
+
"var-color-transparent/color-base",
|
|
50
|
+
"hover:var-color-ddt-color-common-surface-hover/color-base",
|
|
51
|
+
"active:var-color-ddt-color-common-surface-press/color-base"
|
|
52
|
+
],
|
|
53
|
+
true: [
|
|
54
|
+
"var-color-ddt-color-common-surface-selected-default/color-base",
|
|
55
|
+
"hover:var-color-ddt-color-common-surface-selected-hover/color-base",
|
|
56
|
+
"active:var-color-ddt-color-common-surface-selected-press/color-base"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
icon: {
|
|
60
|
+
false: ["before:size-6"],
|
|
61
|
+
true: [
|
|
62
|
+
"before:i-daikin-chevron-right",
|
|
63
|
+
"before:size-5",
|
|
64
|
+
"before:m-0.5",
|
|
65
|
+
"before:transition-all",
|
|
66
|
+
"before:flex-none"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
open: {
|
|
70
|
+
false: [],
|
|
71
|
+
true: ["before:rotate-90"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
let DaikinTreeItem = class extends DDSElement {
|
|
77
|
+
constructor() {
|
|
78
|
+
super();
|
|
79
|
+
this.value = "";
|
|
80
|
+
this.disabled = false;
|
|
81
|
+
this.selected = false;
|
|
82
|
+
this.level = 0;
|
|
83
|
+
this._focusableRef = createRef();
|
|
84
|
+
this.addEventListener("click", (event) => {
|
|
85
|
+
if (this.disabled) {
|
|
86
|
+
event.stopImmediatePropagation();
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
get _selected() {
|
|
91
|
+
return this.selected && !this.disabled;
|
|
92
|
+
}
|
|
93
|
+
_handleKeyDown(event) {
|
|
94
|
+
if (!isSimpleKeyEvent(event)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (!this.disabled && ["Enter", " "].includes(event.key)) {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
emitTreeSelect(this);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const direction = getDirectionFromKey(event.key);
|
|
103
|
+
if (!direction) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
if (direction !== "right") {
|
|
108
|
+
emitTreeMoveFocus(this, direction);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
return html`<div
|
|
113
|
+
${ref(this._focusableRef)}
|
|
114
|
+
class=${cvaTreeChildren({
|
|
115
|
+
disabled: this.disabled,
|
|
116
|
+
selected: this._selected,
|
|
117
|
+
icon: false,
|
|
118
|
+
open: false
|
|
119
|
+
})}
|
|
120
|
+
role="treeitem"
|
|
121
|
+
aria-disabled=${this.disabled}
|
|
122
|
+
aria-selected=${this._selected}
|
|
123
|
+
tabindex=${ifDefined(!this.disabled ? 0 : void 0)}
|
|
124
|
+
style=${`--level:${this.level}`}
|
|
125
|
+
@click=${() => emitTreeSelect(this)}
|
|
126
|
+
@keydown=${this._handleKeyDown}
|
|
127
|
+
>
|
|
128
|
+
<slot></slot>
|
|
129
|
+
</div>`;
|
|
130
|
+
}
|
|
131
|
+
updated(changedProperties) {
|
|
132
|
+
if (changedProperties.has("disabled")) {
|
|
133
|
+
if (this.disabled) {
|
|
134
|
+
emitTreeUnselect(this);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Focuses on the inner button.
|
|
140
|
+
*
|
|
141
|
+
* @param options focus options
|
|
142
|
+
*/
|
|
143
|
+
focus(options) {
|
|
144
|
+
var _a;
|
|
145
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Focuses on the inner button.
|
|
149
|
+
* This is provided to ensure consistency of the interface.
|
|
150
|
+
*
|
|
151
|
+
* @param options focus options
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
focusLastItem(options) {
|
|
155
|
+
var _a;
|
|
156
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
160
|
+
*
|
|
161
|
+
* @param value Tree item value.
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
selectItems(values) {
|
|
165
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Returns `[this.value]` if selected, or `[]` if not selected.
|
|
169
|
+
*
|
|
170
|
+
* @returns `[this.value]` if selected. `[]` if not selected.
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
getSelectedItems() {
|
|
174
|
+
return !this.disabled && this.selected ? [this.value] : [];
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
DaikinTreeItem.styles = css`
|
|
178
|
+
${unsafeCSS(tailwindStyles)}
|
|
179
|
+
|
|
180
|
+
:host {
|
|
181
|
+
display: block;
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
__decorateClass([
|
|
185
|
+
property({ type: String })
|
|
186
|
+
], DaikinTreeItem.prototype, "value", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
property({ type: Boolean, reflect: true })
|
|
189
|
+
], DaikinTreeItem.prototype, "disabled", 2);
|
|
190
|
+
__decorateClass([
|
|
191
|
+
property({ type: Boolean, reflect: true })
|
|
192
|
+
], DaikinTreeItem.prototype, "selected", 2);
|
|
193
|
+
__decorateClass([
|
|
194
|
+
property({ type: Number, attribute: false })
|
|
195
|
+
], DaikinTreeItem.prototype, "level", 2);
|
|
196
|
+
DaikinTreeItem = __decorateClass([
|
|
197
|
+
ddsElement("daikin-tree-item")
|
|
198
|
+
], DaikinTreeItem);
|
|
199
|
+
export {
|
|
200
|
+
DaikinTreeItem,
|
|
201
|
+
cvaTreeChildren
|
|
202
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tree-item.js";
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
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,231 @@
|
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
8
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
9
|
+
import { isSimpleKeyEvent } from "../../utils/is-simple-key.js";
|
|
10
|
+
import { cvaTreeChildren } from "../tree-item/daikin-tree-item.js";
|
|
11
|
+
import { emitTreeSelect, handleTreeMoveFocusSection, getDirectionFromKey, emitTreeMoveFocus, emitTreeUnselect } from "../tree/common.js";
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators[i])
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result) __defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
let DaikinTreeSection = class extends DDSElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.value = "";
|
|
26
|
+
this.disabled = false;
|
|
27
|
+
this.selected = false;
|
|
28
|
+
this.open = false;
|
|
29
|
+
this.level = 0;
|
|
30
|
+
this._focusableRef = createRef();
|
|
31
|
+
}
|
|
32
|
+
get _open() {
|
|
33
|
+
return this.open && !this.disabled;
|
|
34
|
+
}
|
|
35
|
+
get _selected() {
|
|
36
|
+
return this.selected && !this.disabled;
|
|
37
|
+
}
|
|
38
|
+
_updateChildrenLevel() {
|
|
39
|
+
for (const item of this._children) {
|
|
40
|
+
item.level = this.level + 1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
_handleClick() {
|
|
44
|
+
if (!this.disabled && this.dispatchEvent(
|
|
45
|
+
new Event("toggle", {
|
|
46
|
+
cancelable: true
|
|
47
|
+
})
|
|
48
|
+
)) {
|
|
49
|
+
this.open = !this.open;
|
|
50
|
+
}
|
|
51
|
+
emitTreeSelect(this);
|
|
52
|
+
}
|
|
53
|
+
_handleSlotChange() {
|
|
54
|
+
this._updateChildrenLevel();
|
|
55
|
+
}
|
|
56
|
+
_handleTreeMoveFocus(event) {
|
|
57
|
+
handleTreeMoveFocusSection(this, event, this._children);
|
|
58
|
+
}
|
|
59
|
+
_handleKeyDown(event) {
|
|
60
|
+
var _a;
|
|
61
|
+
if (!isSimpleKeyEvent(event)) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!this.disabled && ["Enter", " "].includes(event.key)) {
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
this._handleClick();
|
|
67
|
+
emitTreeSelect(this);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const direction = getDirectionFromKey(event.key);
|
|
71
|
+
if (!direction) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
event.preventDefault();
|
|
75
|
+
switch (direction) {
|
|
76
|
+
case "up":
|
|
77
|
+
emitTreeMoveFocus(this, "up");
|
|
78
|
+
break;
|
|
79
|
+
case "down": {
|
|
80
|
+
const nextItem = this.open && this._children[0];
|
|
81
|
+
if (nextItem) {
|
|
82
|
+
nextItem.focus();
|
|
83
|
+
} else {
|
|
84
|
+
emitTreeMoveFocus(this, "down");
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
case "left":
|
|
89
|
+
if (this._open) {
|
|
90
|
+
this.open = false;
|
|
91
|
+
} else {
|
|
92
|
+
emitTreeMoveFocus(this, "left");
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "right":
|
|
96
|
+
if (!this._open) {
|
|
97
|
+
this.open = true;
|
|
98
|
+
} else {
|
|
99
|
+
(_a = this._children[0]) == null ? void 0 : _a.focus();
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
return html`<div
|
|
106
|
+
role="treeitem"
|
|
107
|
+
aria-expanded=${this._open}
|
|
108
|
+
aria-disabled=${this.disabled}
|
|
109
|
+
aria-selected=${this._selected}
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
${ref(this._focusableRef)}
|
|
113
|
+
class=${cvaTreeChildren({
|
|
114
|
+
selected: this._selected,
|
|
115
|
+
disabled: this.disabled,
|
|
116
|
+
icon: true,
|
|
117
|
+
open: this._open
|
|
118
|
+
})}
|
|
119
|
+
tabindex=${ifDefined(!this.disabled ? 0 : void 0)}
|
|
120
|
+
style=${`--level:${this.level}`}
|
|
121
|
+
@click=${this._handleClick}
|
|
122
|
+
@keydown=${this._handleKeyDown}
|
|
123
|
+
>
|
|
124
|
+
<slot name="label"></slot>
|
|
125
|
+
</div>
|
|
126
|
+
<div role="group" ?hidden=${!this._open}>
|
|
127
|
+
<slot
|
|
128
|
+
@slotchange=${this._handleSlotChange}
|
|
129
|
+
@tree-move-focus=${this._handleTreeMoveFocus}
|
|
130
|
+
></slot>
|
|
131
|
+
</div>
|
|
132
|
+
</div>`;
|
|
133
|
+
}
|
|
134
|
+
updated(changedProperties) {
|
|
135
|
+
if (changedProperties.has("level")) {
|
|
136
|
+
this._updateChildrenLevel();
|
|
137
|
+
}
|
|
138
|
+
if (changedProperties.has("disabled")) {
|
|
139
|
+
if (this.disabled) {
|
|
140
|
+
emitTreeUnselect(this);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Focuses on the inner button.
|
|
146
|
+
*s
|
|
147
|
+
* @param options focus options
|
|
148
|
+
*/
|
|
149
|
+
focus(options) {
|
|
150
|
+
var _a;
|
|
151
|
+
(_a = this._focusableRef.value) == null ? void 0 : _a.focus(options);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Focuses on the last enabled item in the slot recursively.
|
|
155
|
+
* If the tree is closed or there are no enabled items in the slot, this will focus on itself.
|
|
156
|
+
* This is called from the next item to move the focus to the item above it in the display.
|
|
157
|
+
*
|
|
158
|
+
* @param options focus options
|
|
159
|
+
* @private
|
|
160
|
+
*/
|
|
161
|
+
focusLastItem(options) {
|
|
162
|
+
const child = this._open && this._children.findLast((element) => !element.disabled);
|
|
163
|
+
if (child) {
|
|
164
|
+
child.focusLastItem(options);
|
|
165
|
+
} else {
|
|
166
|
+
this.focus(options);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
171
|
+
* In addition, calls `selectItems` for the tree sections and tree items of the child elements in the slot in the same way.
|
|
172
|
+
*
|
|
173
|
+
* @param value Tree item value.
|
|
174
|
+
* @private
|
|
175
|
+
*/
|
|
176
|
+
selectItems(values) {
|
|
177
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
178
|
+
this._children.forEach(
|
|
179
|
+
(child) => child.selectItems(this.disabled ? [] : values)
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
184
|
+
* If nothing is selected, returns `[]`.
|
|
185
|
+
*
|
|
186
|
+
* @returns An array of the `value` of the currently selected sections and items (if any). `[]` if there is none.
|
|
187
|
+
* @private
|
|
188
|
+
*/
|
|
189
|
+
getSelectedItems() {
|
|
190
|
+
if (this.disabled) {
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
return Array.from(
|
|
194
|
+
/* @__PURE__ */ new Set([
|
|
195
|
+
...this.selected ? [this.value] : [],
|
|
196
|
+
...this._children.flatMap((child) => child.getSelectedItems())
|
|
197
|
+
])
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
DaikinTreeSection.styles = css`
|
|
202
|
+
${unsafeCSS(tailwindStyles)}
|
|
203
|
+
|
|
204
|
+
:host {
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
`;
|
|
208
|
+
__decorateClass([
|
|
209
|
+
property({ type: String })
|
|
210
|
+
], DaikinTreeSection.prototype, "value", 2);
|
|
211
|
+
__decorateClass([
|
|
212
|
+
property({ type: Boolean, reflect: true })
|
|
213
|
+
], DaikinTreeSection.prototype, "disabled", 2);
|
|
214
|
+
__decorateClass([
|
|
215
|
+
property({ type: Boolean, reflect: true })
|
|
216
|
+
], DaikinTreeSection.prototype, "selected", 2);
|
|
217
|
+
__decorateClass([
|
|
218
|
+
property({ type: Boolean, reflect: true })
|
|
219
|
+
], DaikinTreeSection.prototype, "open", 2);
|
|
220
|
+
__decorateClass([
|
|
221
|
+
property({ type: Number, attribute: false })
|
|
222
|
+
], DaikinTreeSection.prototype, "level", 2);
|
|
223
|
+
__decorateClass([
|
|
224
|
+
queryAssignedElements({ selector: "daikin-tree-section,daikin-tree-item" })
|
|
225
|
+
], DaikinTreeSection.prototype, "_children", 2);
|
|
226
|
+
DaikinTreeSection = __decorateClass([
|
|
227
|
+
ddsElement("daikin-tree-section")
|
|
228
|
+
], DaikinTreeSection);
|
|
229
|
+
export {
|
|
230
|
+
DaikinTreeSection
|
|
231
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tree-section.js";
|
package/dist/es/index.d.ts
CHANGED