@daikin-oss/design-system-web-components 0.7.0 → 1.1.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 +127 -12
- package/README.md +2 -2
- 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 +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- 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 +35 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +33 -3
- package/dist/cjs/components/index.d.cts +7 -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 +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- 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 +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- 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 +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- 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 +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- 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 +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- 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 +8 -5
- 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 +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- 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 +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +33 -3
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -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 +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- 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 +35 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +33 -3
- package/dist/cjs-dev/components/index.d.cts +7 -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 +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- 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 +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- 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 +16 -30
- 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 +24 -25
- 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 +45 -23
- 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 +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- 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 +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- 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 +8 -5
- 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 +16 -7
- 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 +16 -7
- 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 +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +33 -3
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -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 +36 -76
- package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- 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 +8 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +4 -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 +7 -4
- package/dist/es/components/index.d.ts +7 -1
- package/dist/es/components/index.js +14 -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 +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- 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 +7 -4
- package/dist/es/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- 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 +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- 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 +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- 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 +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- 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 +7 -4
- 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 +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- 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 +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +14 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -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 +36 -76
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- 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 +8 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +4 -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 +7 -4
- package/dist/es-dev/components/index.d.ts +7 -1
- package/dist/es-dev/components/index.js +14 -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 +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- 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 +7 -4
- package/dist/es-dev/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- 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 +12 -7
- 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 +15 -29
- 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 +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- 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 +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- 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 +8 -5
- 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 +7 -4
- 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 +7 -4
- 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 +15 -6
- 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 +15 -6
- 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 +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +14 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -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/profile.svg +4 -0
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- 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/components/notification/daikin-notification.cjs +0 -196
- 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/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- 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/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
/**
|
|
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.
|
|
4
5
|
*
|
|
@@ -28,23 +29,21 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
28
29
|
* </daikin-tree>
|
|
29
30
|
* ```
|
|
30
31
|
*/
|
|
31
|
-
export declare class DaikinTree extends
|
|
32
|
+
export declare class DaikinTree extends DDSElement {
|
|
32
33
|
static readonly styles: import('lit').CSSResult;
|
|
33
34
|
/**
|
|
34
35
|
* Whether or not to enable tree selection.
|
|
35
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.
|
|
36
|
-
* Even if this is disabled, you can still set the `selected` property
|
|
37
|
+
* Even if this is disabled, you can still set the `selected` property yourself.
|
|
37
38
|
*/
|
|
38
39
|
selectable: boolean;
|
|
39
40
|
/**
|
|
40
41
|
* The value of the currently selected tree section or tree item.
|
|
41
|
-
*
|
|
42
|
+
* Even if `selectable` is `false`, you can still set this property yourself.
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
selectedItems: string[];
|
|
44
45
|
private readonly _children;
|
|
45
|
-
private
|
|
46
|
-
private _updateChildrenLevel;
|
|
47
|
-
private _updateSections;
|
|
46
|
+
private _handleMouseDown;
|
|
48
47
|
private _handleSlotChange;
|
|
49
48
|
private _handleTreeMoveFocus;
|
|
50
49
|
private _handleTreeSelect;
|
|
@@ -52,20 +51,20 @@ export declare class DaikinTree extends LitElement {
|
|
|
52
51
|
render(): import('lit-html').TemplateResult<1>;
|
|
53
52
|
protected updated(changedProperties: PropertyValues): void;
|
|
54
53
|
/**
|
|
55
|
-
* Calls `
|
|
54
|
+
* Calls `selectItems` for the tree sections and tree items of the child elements in the slot.
|
|
56
55
|
*
|
|
57
56
|
* @param value Tree item value.
|
|
58
57
|
* @private
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
selectItems(values: readonly string[]): void;
|
|
61
60
|
/**
|
|
62
|
-
* Returns the `value` of the currently selected
|
|
63
|
-
* If nothing is selected, returns `
|
|
61
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
62
|
+
* If nothing is selected, returns `[]`.
|
|
64
63
|
*
|
|
65
|
-
* @returns
|
|
64
|
+
* @returns An array of the `value` of the selected sections and items (if any). `[]` if there is none.
|
|
66
65
|
* @private
|
|
67
66
|
*/
|
|
68
|
-
|
|
67
|
+
getSelectedItems(): string[];
|
|
69
68
|
}
|
|
70
69
|
declare global {
|
|
71
70
|
interface HTMLElementTagNameMap {
|
|
@@ -5,15 +5,18 @@ const lit = require("lit");
|
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
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");
|
|
8
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
12
|
const isSimpleKey = require("../../utils/is-simple-key.cjs");
|
|
10
13
|
const common = require("../tree/common.cjs");
|
|
11
14
|
var __defProp = Object.defineProperty;
|
|
12
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __decorateClass = (
|
|
16
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
17
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
-
for (var i =
|
|
16
|
-
if (decorator =
|
|
18
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
19
|
+
if (decorator = decorators2[i])
|
|
17
20
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
21
|
if (kind && result) __defProp(target, key, result);
|
|
19
22
|
return result;
|
|
@@ -27,6 +30,7 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
27
30
|
"py-3",
|
|
28
31
|
"pr-4",
|
|
29
32
|
"pl-[calc((var(--level)+1)*1rem)]",
|
|
33
|
+
"leading-[130%]",
|
|
30
34
|
"focus-visible:outline",
|
|
31
35
|
"focus-visible:outline-2",
|
|
32
36
|
"focus-visible:-outline-offset-2",
|
|
@@ -60,7 +64,8 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
60
64
|
"before:i-daikin-chevron-right",
|
|
61
65
|
"before:size-5",
|
|
62
66
|
"before:m-0.5",
|
|
63
|
-
"before:transition-all"
|
|
67
|
+
"before:transition-all",
|
|
68
|
+
"before:flex-none"
|
|
64
69
|
]
|
|
65
70
|
},
|
|
66
71
|
open: {
|
|
@@ -70,7 +75,7 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
);
|
|
73
|
-
exports.DaikinTreeItem = class DaikinTreeItem extends
|
|
78
|
+
exports.DaikinTreeItem = class DaikinTreeItem extends ddsElement.DDSElement {
|
|
74
79
|
constructor() {
|
|
75
80
|
super();
|
|
76
81
|
this.value = "";
|
|
@@ -84,6 +89,9 @@ exports.DaikinTreeItem = class DaikinTreeItem extends lit.LitElement {
|
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
91
|
}
|
|
92
|
+
get _selected() {
|
|
93
|
+
return this.selected && !this.disabled;
|
|
94
|
+
}
|
|
87
95
|
_handleKeyDown(event) {
|
|
88
96
|
if (!isSimpleKey.isSimpleKeyEvent(event)) {
|
|
89
97
|
return;
|
|
@@ -107,13 +115,13 @@ exports.DaikinTreeItem = class DaikinTreeItem extends lit.LitElement {
|
|
|
107
115
|
${ref_js.ref(this._focusableRef)}
|
|
108
116
|
class=${cvaTreeChildren({
|
|
109
117
|
disabled: this.disabled,
|
|
110
|
-
selected: this.
|
|
118
|
+
selected: this._selected,
|
|
111
119
|
icon: false,
|
|
112
120
|
open: false
|
|
113
121
|
})}
|
|
114
122
|
role="treeitem"
|
|
115
123
|
aria-disabled=${this.disabled}
|
|
116
|
-
aria-selected=${this.
|
|
124
|
+
aria-selected=${this._selected}
|
|
117
125
|
tabindex=${ifDefined_js.ifDefined(!this.disabled ? 0 : void 0)}
|
|
118
126
|
style=${`--level:${this.level}`}
|
|
119
127
|
@click=${() => common.emitTreeSelect(this)}
|
|
@@ -125,7 +133,6 @@ exports.DaikinTreeItem = class DaikinTreeItem extends lit.LitElement {
|
|
|
125
133
|
updated(changedProperties) {
|
|
126
134
|
if (changedProperties.has("disabled")) {
|
|
127
135
|
if (this.disabled) {
|
|
128
|
-
this.selectItem(null);
|
|
129
136
|
common.emitTreeUnselect(this);
|
|
130
137
|
}
|
|
131
138
|
}
|
|
@@ -156,20 +163,17 @@ exports.DaikinTreeItem = class DaikinTreeItem extends lit.LitElement {
|
|
|
156
163
|
* @param value Tree item value.
|
|
157
164
|
* @private
|
|
158
165
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
this.selected = this.value === value;
|
|
166
|
+
selectItems(values) {
|
|
167
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
164
168
|
}
|
|
165
169
|
/**
|
|
166
|
-
* Returns `this.value` if selected, or `
|
|
170
|
+
* Returns `[this.value]` if selected, or `[]` if not selected.
|
|
167
171
|
*
|
|
168
|
-
* @returns `this.value` if selected. `
|
|
172
|
+
* @returns `[this.value]` if selected. `[]` if not selected.
|
|
169
173
|
* @private
|
|
170
174
|
*/
|
|
171
|
-
|
|
172
|
-
return !this.disabled && this.selected ? this.value :
|
|
175
|
+
getSelectedItems() {
|
|
176
|
+
return !this.disabled && this.selected ? [this.value] : [];
|
|
173
177
|
}
|
|
174
178
|
};
|
|
175
179
|
exports.DaikinTreeItem.styles = lit.css`
|
|
@@ -192,6 +196,6 @@ __decorateClass([
|
|
|
192
196
|
decorators_js.property({ type: Number, attribute: false })
|
|
193
197
|
], exports.DaikinTreeItem.prototype, "level", 2);
|
|
194
198
|
exports.DaikinTreeItem = __decorateClass([
|
|
195
|
-
|
|
199
|
+
decorators.ddsElement("daikin-tree-item")
|
|
196
200
|
], exports.DaikinTreeItem);
|
|
197
201
|
exports.cvaTreeChildren = cvaTreeChildren;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
export declare const cvaTreeChildren: (props?: ({
|
|
3
4
|
disabled?: boolean | null | undefined;
|
|
4
5
|
selected?: boolean | null | undefined;
|
|
@@ -29,7 +30,7 @@ export declare const cvaTreeChildren: (props?: ({
|
|
|
29
30
|
* <daikin-tree-item>Tree item</daikin-tree-item>
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
export declare class DaikinTreeItem extends
|
|
33
|
+
export declare class DaikinTreeItem extends DDSElement {
|
|
33
34
|
static readonly styles: import('lit').CSSResult;
|
|
34
35
|
/**
|
|
35
36
|
* Value of the tree item.
|
|
@@ -41,9 +42,7 @@ export declare class DaikinTreeItem extends LitElement {
|
|
|
41
42
|
disabled: boolean;
|
|
42
43
|
/**
|
|
43
44
|
* Whether the tree item is selected.
|
|
44
|
-
*
|
|
45
|
-
* Controlled by `daikin-tree` if its `selectable` is true.
|
|
46
|
-
* If the tree's `selected` is false, you can manually set this property to control the display of the selected state.
|
|
45
|
+
* Controlled by `daikin-tree`.
|
|
47
46
|
*/
|
|
48
47
|
selected: boolean;
|
|
49
48
|
/**
|
|
@@ -55,6 +54,7 @@ export declare class DaikinTreeItem extends LitElement {
|
|
|
55
54
|
*/
|
|
56
55
|
level: number;
|
|
57
56
|
private readonly _focusableRef;
|
|
57
|
+
private get _selected();
|
|
58
58
|
private _handleKeyDown;
|
|
59
59
|
constructor();
|
|
60
60
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -79,14 +79,14 @@ export declare class DaikinTreeItem extends LitElement {
|
|
|
79
79
|
* @param value Tree item value.
|
|
80
80
|
* @private
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
selectItems(values: readonly string[]): void;
|
|
83
83
|
/**
|
|
84
|
-
* Returns `this.value` if selected, or `
|
|
84
|
+
* Returns `[this.value]` if selected, or `[]` if not selected.
|
|
85
85
|
*
|
|
86
|
-
* @returns `this.value` if selected. `
|
|
86
|
+
* @returns `[this.value]` if selected. `[]` if not selected.
|
|
87
87
|
* @private
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
getSelectedItems(): string[];
|
|
90
90
|
}
|
|
91
91
|
declare global {
|
|
92
92
|
interface HTMLElementTagNameMap {
|
|
@@ -4,26 +4,28 @@ const lit = require("lit");
|
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
6
6
|
const ref_js = require("lit/directives/ref.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
const isSimpleKey = require("../../utils/is-simple-key.cjs");
|
|
9
12
|
const daikinTreeItem = require("../tree-item/daikin-tree-item.cjs");
|
|
10
13
|
const common = require("../tree/common.cjs");
|
|
11
14
|
var __defProp = Object.defineProperty;
|
|
12
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __decorateClass = (
|
|
16
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
17
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
-
for (var i =
|
|
16
|
-
if (decorator =
|
|
18
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
19
|
+
if (decorator = decorators2[i])
|
|
17
20
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
21
|
if (kind && result) __defProp(target, key, result);
|
|
19
22
|
return result;
|
|
20
23
|
};
|
|
21
|
-
exports.DaikinTreeSection = class DaikinTreeSection extends
|
|
24
|
+
exports.DaikinTreeSection = class DaikinTreeSection extends ddsElement.DDSElement {
|
|
22
25
|
constructor() {
|
|
23
26
|
super(...arguments);
|
|
24
27
|
this.value = "";
|
|
25
28
|
this.disabled = false;
|
|
26
|
-
this.selectable = false;
|
|
27
29
|
this.selected = false;
|
|
28
30
|
this.open = false;
|
|
29
31
|
this.level = 0;
|
|
@@ -40,11 +42,6 @@ exports.DaikinTreeSection = class DaikinTreeSection extends lit.LitElement {
|
|
|
40
42
|
item.level = this.level + 1;
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
|
-
_updateSections() {
|
|
44
|
-
this._sections.forEach((section) => {
|
|
45
|
-
section.selectable = this.selectable;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
45
|
_handleClick() {
|
|
49
46
|
if (!this.disabled && this.dispatchEvent(
|
|
50
47
|
new Event("toggle", {
|
|
@@ -57,7 +54,6 @@ exports.DaikinTreeSection = class DaikinTreeSection extends lit.LitElement {
|
|
|
57
54
|
}
|
|
58
55
|
_handleSlotChange() {
|
|
59
56
|
this._updateChildrenLevel();
|
|
60
|
-
this._updateSections();
|
|
61
57
|
}
|
|
62
58
|
_handleTreeMoveFocus(event) {
|
|
63
59
|
common.handleTreeMoveFocusSection(this, event, this._children);
|
|
@@ -70,9 +66,7 @@ exports.DaikinTreeSection = class DaikinTreeSection extends lit.LitElement {
|
|
|
70
66
|
if (!this.disabled && ["Enter", " "].includes(event.key)) {
|
|
71
67
|
event.preventDefault();
|
|
72
68
|
this._handleClick();
|
|
73
|
-
|
|
74
|
-
common.emitTreeSelect(this);
|
|
75
|
-
}
|
|
69
|
+
common.emitTreeSelect(this);
|
|
76
70
|
return;
|
|
77
71
|
}
|
|
78
72
|
const direction = common.getDirectionFromKey(event.key);
|
|
@@ -145,13 +139,9 @@ exports.DaikinTreeSection = class DaikinTreeSection extends lit.LitElement {
|
|
|
145
139
|
}
|
|
146
140
|
if (changedProperties.has("disabled")) {
|
|
147
141
|
if (this.disabled) {
|
|
148
|
-
this.selectItem(null);
|
|
149
142
|
common.emitTreeUnselect(this);
|
|
150
143
|
}
|
|
151
144
|
}
|
|
152
|
-
if (changedProperties.has("selectable")) {
|
|
153
|
-
this._updateSections();
|
|
154
|
-
}
|
|
155
145
|
}
|
|
156
146
|
/**
|
|
157
147
|
* Focuses on the inner button.
|
|
@@ -180,33 +170,34 @@ exports.DaikinTreeSection = class DaikinTreeSection extends lit.LitElement {
|
|
|
180
170
|
}
|
|
181
171
|
/**
|
|
182
172
|
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
183
|
-
* In addition, calls `
|
|
173
|
+
* In addition, calls `selectItems` for the tree sections and tree items of the child elements in the slot in the same way.
|
|
184
174
|
*
|
|
185
175
|
* @param value Tree item value.
|
|
186
176
|
* @private
|
|
187
177
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
this._children.forEach((child) => child.selectItem(value));
|
|
178
|
+
selectItems(values) {
|
|
179
|
+
this.selected = !this.disabled && values.includes(this.value);
|
|
180
|
+
this._children.forEach(
|
|
181
|
+
(child) => child.selectItems(this.disabled ? [] : values)
|
|
182
|
+
);
|
|
194
183
|
}
|
|
195
184
|
/**
|
|
196
|
-
* Returns the `value` of the currently selected
|
|
197
|
-
* If nothing is selected, returns `
|
|
185
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
186
|
+
* If nothing is selected, returns `[]`.
|
|
198
187
|
*
|
|
199
|
-
* @returns
|
|
188
|
+
* @returns An array of the `value` of the currently selected sections and items (if any). `[]` if there is none.
|
|
200
189
|
* @private
|
|
201
190
|
*/
|
|
202
|
-
|
|
191
|
+
getSelectedItems() {
|
|
203
192
|
if (this.disabled) {
|
|
204
|
-
return
|
|
205
|
-
}
|
|
206
|
-
if (this.selected) {
|
|
207
|
-
return this.value;
|
|
193
|
+
return [];
|
|
208
194
|
}
|
|
209
|
-
return
|
|
195
|
+
return Array.from(
|
|
196
|
+
/* @__PURE__ */ new Set([
|
|
197
|
+
...this.selected ? [this.value] : [],
|
|
198
|
+
...this._children.flatMap((child) => child.getSelectedItems())
|
|
199
|
+
])
|
|
200
|
+
);
|
|
210
201
|
}
|
|
211
202
|
};
|
|
212
203
|
exports.DaikinTreeSection.styles = lit.css`
|
|
@@ -222,9 +213,6 @@ __decorateClass([
|
|
|
222
213
|
__decorateClass([
|
|
223
214
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
224
215
|
], exports.DaikinTreeSection.prototype, "disabled", 2);
|
|
225
|
-
__decorateClass([
|
|
226
|
-
decorators_js.property({ type: Boolean, attribute: false })
|
|
227
|
-
], exports.DaikinTreeSection.prototype, "selectable", 2);
|
|
228
216
|
__decorateClass([
|
|
229
217
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
230
218
|
], exports.DaikinTreeSection.prototype, "selected", 2);
|
|
@@ -237,9 +225,6 @@ __decorateClass([
|
|
|
237
225
|
__decorateClass([
|
|
238
226
|
decorators_js.queryAssignedElements({ selector: "daikin-tree-section,daikin-tree-item" })
|
|
239
227
|
], exports.DaikinTreeSection.prototype, "_children", 2);
|
|
240
|
-
__decorateClass([
|
|
241
|
-
decorators_js.queryAssignedElements({ selector: "daikin-tree-section" })
|
|
242
|
-
], exports.DaikinTreeSection.prototype, "_sections", 2);
|
|
243
228
|
exports.DaikinTreeSection = __decorateClass([
|
|
244
|
-
|
|
229
|
+
decorators.ddsElement("daikin-tree-section")
|
|
245
230
|
], exports.DaikinTreeSection);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* The tree section component that can be used within `daikin-tree` component.
|
|
4
5
|
*
|
|
@@ -30,7 +31,7 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
30
31
|
* </daikin-tree-section>
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
export declare class DaikinTreeSection extends
|
|
34
|
+
export declare class DaikinTreeSection extends DDSElement {
|
|
34
35
|
static readonly styles: import('lit').CSSResult;
|
|
35
36
|
/**
|
|
36
37
|
* Value of the tree section.
|
|
@@ -40,18 +41,9 @@ export declare class DaikinTreeSection extends LitElement {
|
|
|
40
41
|
* Whether the tree section is disabled.
|
|
41
42
|
*/
|
|
42
43
|
disabled: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Whether or not to enable tree selection.
|
|
45
|
-
* Controlled by `daikin-tree`.
|
|
46
|
-
*
|
|
47
|
-
* @private
|
|
48
|
-
*/
|
|
49
|
-
selectable: boolean;
|
|
50
44
|
/**
|
|
51
45
|
* Whether the tree item is selected.
|
|
52
|
-
*
|
|
53
|
-
* Controlled by `daikin-tree` if its `selectable` is true.
|
|
54
|
-
* If the tree's `selected` is false, you can manually set this property to control the display of the selected state.
|
|
46
|
+
* Controlled by `daikin-tree`.
|
|
55
47
|
*/
|
|
56
48
|
selected: boolean;
|
|
57
49
|
/**
|
|
@@ -68,12 +60,10 @@ export declare class DaikinTreeSection extends LitElement {
|
|
|
68
60
|
*/
|
|
69
61
|
level: number;
|
|
70
62
|
private readonly _children;
|
|
71
|
-
private readonly _sections;
|
|
72
63
|
private readonly _focusableRef;
|
|
73
64
|
private get _open();
|
|
74
65
|
private get _selected();
|
|
75
66
|
private _updateChildrenLevel;
|
|
76
|
-
private _updateSections;
|
|
77
67
|
private _handleClick;
|
|
78
68
|
private _handleSlotChange;
|
|
79
69
|
private _handleTreeMoveFocus;
|
|
@@ -97,20 +87,20 @@ export declare class DaikinTreeSection extends LitElement {
|
|
|
97
87
|
focusLastItem(options?: FocusOptions): void;
|
|
98
88
|
/**
|
|
99
89
|
* Updates the selection state (`this.selected`) to true if the argument `value` matches `this.value`. Otherwise, sets it to false.
|
|
100
|
-
* In addition, calls `
|
|
90
|
+
* In addition, calls `selectItems` for the tree sections and tree items of the child elements in the slot in the same way.
|
|
101
91
|
*
|
|
102
92
|
* @param value Tree item value.
|
|
103
93
|
* @private
|
|
104
94
|
*/
|
|
105
|
-
|
|
95
|
+
selectItems(values: readonly string[]): void;
|
|
106
96
|
/**
|
|
107
|
-
* Returns the `value` of the currently selected
|
|
108
|
-
* If nothing is selected, returns `
|
|
97
|
+
* Returns an array of the `value` of the currently selected sections and items.
|
|
98
|
+
* If nothing is selected, returns `[]`.
|
|
109
99
|
*
|
|
110
|
-
* @returns
|
|
100
|
+
* @returns An array of the `value` of the currently selected sections and items (if any). `[]` if there is none.
|
|
111
101
|
* @private
|
|
112
102
|
*/
|
|
113
|
-
|
|
103
|
+
getSelectedItems(): string[];
|
|
114
104
|
}
|
|
115
105
|
declare global {
|
|
116
106
|
interface HTMLElementTagNameMap {
|
package/dist/cjs-dev/index.cjs
CHANGED
|
@@ -2,22 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const daikinAccordion = require("./components/accordion/daikin-accordion.cjs");
|
|
4
4
|
const daikinAccordionItem = require("./components/accordion-item/daikin-accordion-item.cjs");
|
|
5
|
+
const daikinAvatar = require("./components/avatar/daikin-avatar.cjs");
|
|
5
6
|
const daikinBreadcrumb = require("./components/breadcrumb/daikin-breadcrumb.cjs");
|
|
6
7
|
const daikinBreadcrumbItem = require("./components/breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
7
8
|
const daikinButton = require("./components/button/daikin-button.cjs");
|
|
8
9
|
const daikinCard = require("./components/card/daikin-card.cjs");
|
|
9
10
|
const daikinCardFooter = require("./components/card-footer/daikin-card-footer.cjs");
|
|
10
11
|
const daikinCardHeader = require("./components/card-header/daikin-card-header.cjs");
|
|
12
|
+
const daikinCarousel = require("./components/carousel/daikin-carousel.cjs");
|
|
13
|
+
const daikinCarouselItem = require("./components/carousel-item/daikin-carousel-item.cjs");
|
|
11
14
|
const daikinCheckbox = require("./components/checkbox/daikin-checkbox.cjs");
|
|
12
15
|
const daikinDropdown = require("./components/dropdown/daikin-dropdown.cjs");
|
|
13
16
|
const daikinDropdownItem = require("./components/dropdown-item/daikin-dropdown-item.cjs");
|
|
14
17
|
const daikinIcon = require("./components/icon/daikin-icon.cjs");
|
|
15
18
|
const daikinIconButton = require("./components/icon-button/daikin-icon-button.cjs");
|
|
19
|
+
const daikinInlineNotification = require("./components/inline-notification/daikin-inline-notification.cjs");
|
|
16
20
|
const daikinInputGroup = require("./components/input-group/daikin-input-group.cjs");
|
|
17
21
|
const daikinLink = require("./components/link/daikin-link.cjs");
|
|
18
22
|
const daikinList = require("./components/list/daikin-list.cjs");
|
|
19
23
|
const daikinListItem = require("./components/list-item/daikin-list-item.cjs");
|
|
20
|
-
const
|
|
24
|
+
const daikinLoading = require("./components/loading/daikin-loading.cjs");
|
|
21
25
|
const daikinPagination = require("./components/pagination/daikin-pagination.cjs");
|
|
22
26
|
const daikinProgressBar = require("./components/progress-bar/daikin-progress-bar.cjs");
|
|
23
27
|
const daikinProgressIndicator = require("./components/progress-indicator/daikin-progress-indicator.cjs");
|
|
@@ -32,6 +36,8 @@ const daikinTableHeaderCell = require("./components/table-header-cell/daikin-tab
|
|
|
32
36
|
const daikinTabs = require("./components/tabs/daikin-tabs.cjs");
|
|
33
37
|
const daikinTextArea = require("./components/text-area/daikin-text-area.cjs");
|
|
34
38
|
const daikinTextField = require("./components/text-field/daikin-text-field.cjs");
|
|
39
|
+
const daikinToastNotification = require("./components/toast-notification/daikin-toast-notification.cjs");
|
|
40
|
+
const daikinToastNotificationManager = require("./components/toast-notification-manager/daikin-toast-notification-manager.cjs");
|
|
35
41
|
const daikinToggle = require("./components/toggle/daikin-toggle.cjs");
|
|
36
42
|
const daikinTooltip = require("./components/tooltip/daikin-tooltip.cjs");
|
|
37
43
|
const daikinTree = require("./components/tree/daikin-tree.cjs");
|
|
@@ -45,6 +51,10 @@ Object.defineProperty(exports, "DaikinAccordionItem", {
|
|
|
45
51
|
enumerable: true,
|
|
46
52
|
get: () => daikinAccordionItem.DaikinAccordionItem
|
|
47
53
|
});
|
|
54
|
+
Object.defineProperty(exports, "DaikinAvatar", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: () => daikinAvatar.DaikinAvatar
|
|
57
|
+
});
|
|
48
58
|
Object.defineProperty(exports, "DaikinBreadcrumb", {
|
|
49
59
|
enumerable: true,
|
|
50
60
|
get: () => daikinBreadcrumb.DaikinBreadcrumb
|
|
@@ -69,6 +79,14 @@ Object.defineProperty(exports, "DaikinCardHeader", {
|
|
|
69
79
|
enumerable: true,
|
|
70
80
|
get: () => daikinCardHeader.DaikinCardHeader
|
|
71
81
|
});
|
|
82
|
+
Object.defineProperty(exports, "DaikinCarousel", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: () => daikinCarousel.DaikinCarousel
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "DaikinCarouselItem", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: () => daikinCarouselItem.DaikinCarouselItem
|
|
89
|
+
});
|
|
72
90
|
Object.defineProperty(exports, "DaikinCheckbox", {
|
|
73
91
|
enumerable: true,
|
|
74
92
|
get: () => daikinCheckbox.DaikinCheckbox
|
|
@@ -90,6 +108,10 @@ Object.defineProperty(exports, "DaikinIconButton", {
|
|
|
90
108
|
enumerable: true,
|
|
91
109
|
get: () => daikinIconButton.DaikinIconButton
|
|
92
110
|
});
|
|
111
|
+
Object.defineProperty(exports, "DaikinInlineNotification", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: () => daikinInlineNotification.DaikinInlineNotification
|
|
114
|
+
});
|
|
93
115
|
Object.defineProperty(exports, "DaikinInputGroup", {
|
|
94
116
|
enumerable: true,
|
|
95
117
|
get: () => daikinInputGroup.DaikinInputGroup
|
|
@@ -106,9 +128,9 @@ Object.defineProperty(exports, "DaikinListItem", {
|
|
|
106
128
|
enumerable: true,
|
|
107
129
|
get: () => daikinListItem.DaikinListItem
|
|
108
130
|
});
|
|
109
|
-
Object.defineProperty(exports, "
|
|
131
|
+
Object.defineProperty(exports, "DaikinLoading", {
|
|
110
132
|
enumerable: true,
|
|
111
|
-
get: () =>
|
|
133
|
+
get: () => daikinLoading.DaikinLoading
|
|
112
134
|
});
|
|
113
135
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
114
136
|
enumerable: true,
|
|
@@ -166,6 +188,14 @@ Object.defineProperty(exports, "DaikinTextField", {
|
|
|
166
188
|
enumerable: true,
|
|
167
189
|
get: () => daikinTextField.DaikinTextField
|
|
168
190
|
});
|
|
191
|
+
Object.defineProperty(exports, "DaikinToastNotification", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: () => daikinToastNotification.DaikinToastNotification
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "DaikinToastNotificationManager", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: () => daikinToastNotificationManager.DaikinToastNotificationManager
|
|
198
|
+
});
|
|
169
199
|
Object.defineProperty(exports, "DaikinToggle", {
|
|
170
200
|
enumerable: true,
|
|
171
201
|
get: () => daikinToggle.DaikinToggle
|