@ukic/canary-web-components 2.0.0-canary.21 → 2.0.0-canary.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-081d6031.js → helpers-093368be.js} +3 -1
- package/dist/cjs/helpers-093368be.js.map +1 -0
- package/dist/cjs/{helpers-261701cd.js → helpers-85c5ca15.js} +14 -1
- package/dist/cjs/helpers-85c5ca15.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +8 -8
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +4 -4
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -3
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +12 -15
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +15 -27
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +27 -22
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/{ic-card.cjs.entry.js → ic-card-vertical.cjs.entry.js} +6 -6
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +6 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -15
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +9 -10
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +28 -0
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +9 -10
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +526 -71
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +4 -3
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +7 -3
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +12 -97
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -9
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +6 -7
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +8 -8
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +8 -9
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +21 -25
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +6 -7
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +9 -11
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +8 -10
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +9 -9
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -8
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +95 -101
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +3 -3
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +40 -25
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -18
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +18 -24
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +13 -21
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +7 -7
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +4 -5
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -11
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +40 -43
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +16 -16
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +5 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +0 -11
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +4 -5
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -8
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +4 -4
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +0 -7
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +83 -35
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +16 -16
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +13 -13
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-typography.cjs.entry.js +51 -16
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +16 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/arrow-dropdown.svg +3 -0
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/ic-data-table/ic-data-table.css +55 -5
- package/dist/collection/components/ic-data-table/ic-data-table.js +570 -77
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +364 -21
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +1 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js +21 -2
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +7 -0
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.css +24 -24
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +23 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/ic-menu.css +11 -11
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js +7 -30
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +1 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/ic-select.css +14 -12
- package/dist/collection/components/ic-select-with-multi/ic-select.js +13 -142
- package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +1 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +6 -6
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.css +150 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.css +56 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +2 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +11 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion-group.js +8 -8
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +3 -3
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +127 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +25 -16
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +17 -31
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +4 -4
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +3 -3
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +10 -10
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/{ic-card.js → ic-card-vertical.js} +11 -11
- package/dist/components/ic-card-vertical.js.map +1 -0
- package/dist/components/ic-checkbox-group.js +6 -6
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +6 -21
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +9 -11
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +51 -0
- package/dist/components/ic-data-list.js.map +1 -0
- package/dist/components/ic-data-row.js +10 -12
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table-title-bar.js +1 -1
- package/dist/components/ic-data-table-title-bar.js.map +1 -1
- package/dist/components/ic-data-table.js +531 -72
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +5 -3
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +8 -3
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +14 -112
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-empty-state2.js +7 -7
- package/dist/components/ic-empty-state2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +10 -10
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +13 -8
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +8 -8
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +8 -10
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +11 -16
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +10 -12
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +6 -8
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +9 -9
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-item2.js +3 -3
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +7 -10
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +9 -12
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-button.js +1 -1
- package/dist/components/ic-navigation-group.js +9 -9
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +5 -5
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +2 -2
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +7 -9
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +2 -2
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination2.js +38 -36
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +3 -3
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +41 -26
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +6 -25
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +20 -27
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select-with-multi.js +14 -29
- package/dist/components/ic-select-with-multi.js.map +1 -1
- package/dist/components/ic-select2.js +14 -29
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +7 -7
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +4 -6
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +1 -12
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +46 -49
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +16 -16
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +5 -7
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +0 -11
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +3 -5
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +1 -9
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +3 -3
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +51 -53
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -9
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +86 -36
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +16 -16
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +13 -13
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +12 -5
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.d.ts +11 -0
- package/dist/components/ic-tree-item.js +286 -0
- package/dist/components/ic-tree-item.js.map +1 -0
- package/dist/components/ic-tree-view.d.ts +11 -0
- package/dist/components/ic-tree-view.js +237 -0
- package/dist/components/ic-tree-view.js.map +1 -0
- package/dist/components/ic-typography2.js +57 -19
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-00b29b5c.entry.js +2 -0
- package/dist/core/p-00b29b5c.entry.js.map +1 -0
- package/dist/core/p-01937eb0.entry.js +2 -0
- package/dist/core/p-01937eb0.entry.js.map +1 -0
- package/dist/core/p-06db67a5.entry.js +2 -0
- package/dist/core/p-06db67a5.entry.js.map +1 -0
- package/dist/core/{p-e5b1dd58.entry.js → p-0896531a.entry.js} +2 -2
- package/dist/core/p-0896531a.entry.js.map +1 -0
- package/dist/core/{p-fdacc7f7.entry.js → p-125bc120.entry.js} +2 -2
- package/dist/core/p-155054f4.entry.js +2 -0
- package/dist/core/p-155054f4.entry.js.map +1 -0
- package/dist/core/p-19be677b.entry.js +2 -0
- package/dist/core/p-19be677b.entry.js.map +1 -0
- package/dist/core/p-20aae323.entry.js +2 -0
- package/dist/core/p-20aae323.entry.js.map +1 -0
- package/dist/core/{p-b3ed5423.entry.js → p-21ecca00.entry.js} +2 -2
- package/dist/core/p-21ecca00.entry.js.map +1 -0
- package/dist/core/{p-1d0cff8a.entry.js → p-22260ed4.entry.js} +2 -2
- package/dist/core/{p-fab8da25.entry.js → p-2533d147.entry.js} +2 -2
- package/dist/core/p-2533d147.entry.js.map +1 -0
- package/dist/core/p-2ec4ced3.entry.js +2 -0
- package/dist/core/p-2ec4ced3.entry.js.map +1 -0
- package/dist/core/{p-45ebcb74.js → p-2fb52051.js} +2 -2
- package/dist/{esm/helpers-d41662f3.js.map → core/p-2fb52051.js.map} +1 -1
- package/dist/core/{p-d5d36143.entry.js → p-30d385c6.entry.js} +2 -2
- package/dist/core/p-30d385c6.entry.js.map +1 -0
- package/dist/core/p-3bd8a4fa.entry.js +2 -0
- package/dist/core/p-3bd8a4fa.entry.js.map +1 -0
- package/dist/core/{p-9e7a5c72.entry.js → p-3f2ae26e.entry.js} +2 -2
- package/dist/core/p-3f2ae26e.entry.js.map +1 -0
- package/dist/core/p-401d0c66.entry.js +2 -0
- package/dist/core/p-401d0c66.entry.js.map +1 -0
- package/dist/core/{p-452985d9.entry.js → p-4188b38a.entry.js} +2 -2
- package/dist/core/p-4188b38a.entry.js.map +1 -0
- package/dist/core/{p-d44b7f21.entry.js → p-41a53070.entry.js} +2 -2
- package/dist/core/p-41a53070.entry.js.map +1 -0
- package/dist/core/p-4309460f.entry.js +2 -0
- package/dist/core/p-4309460f.entry.js.map +1 -0
- package/dist/core/p-436d179b.entry.js +2 -0
- package/dist/core/p-436d179b.entry.js.map +1 -0
- package/dist/core/p-439d1a97.entry.js +2 -0
- package/dist/core/p-439d1a97.entry.js.map +1 -0
- package/dist/core/p-4974da93.entry.js +2 -0
- package/dist/core/p-4974da93.entry.js.map +1 -0
- package/dist/core/p-4d316a43.entry.js +2 -0
- package/dist/core/p-4d316a43.entry.js.map +1 -0
- package/dist/core/{p-5fea8f1c.entry.js → p-54306250.entry.js} +2 -2
- package/dist/core/{p-5fea8f1c.entry.js.map → p-54306250.entry.js.map} +1 -1
- package/dist/core/p-57527684.entry.js +2 -0
- package/dist/core/p-57527684.entry.js.map +1 -0
- package/dist/core/p-5a95dd44.entry.js +2 -0
- package/dist/core/p-5a95dd44.entry.js.map +1 -0
- package/dist/core/p-5cecbd1f.entry.js +2 -0
- package/dist/core/p-5cecbd1f.entry.js.map +1 -0
- package/dist/core/p-5e41f96d.entry.js +2 -0
- package/dist/core/p-5e41f96d.entry.js.map +1 -0
- package/dist/core/p-64826d54.entry.js +2 -0
- package/dist/core/p-64826d54.entry.js.map +1 -0
- package/dist/core/{p-d91428b4.entry.js → p-64b1e4a8.entry.js} +2 -2
- package/dist/core/p-64b1e4a8.entry.js.map +1 -0
- package/dist/core/p-65cf6a11.entry.js +2 -0
- package/dist/core/p-65cf6a11.entry.js.map +1 -0
- package/dist/core/{p-a589ead8.entry.js → p-6a5ffe7d.entry.js} +2 -2
- package/dist/core/p-6a5ffe7d.entry.js.map +1 -0
- package/dist/core/p-6c6c71ba.entry.js +2 -0
- package/dist/core/p-6c6c71ba.entry.js.map +1 -0
- package/dist/core/p-6f0e9434.entry.js +2 -0
- package/dist/core/p-6f0e9434.entry.js.map +1 -0
- package/dist/core/p-84eaa486.entry.js +2 -0
- package/dist/core/p-84eaa486.entry.js.map +1 -0
- package/dist/core/p-85cb6bb7.entry.js +2 -0
- package/dist/core/p-85cb6bb7.entry.js.map +1 -0
- package/dist/core/{p-fb4219d6.entry.js → p-88ba5a88.entry.js} +2 -2
- package/dist/core/{p-6b74397a.entry.js → p-8c5b63c6.entry.js} +2 -2
- package/dist/core/p-8c5b63c6.entry.js.map +1 -0
- package/dist/core/p-8da08c05.entry.js +2 -0
- package/dist/core/p-8da08c05.entry.js.map +1 -0
- package/dist/core/{p-569a68c0.entry.js → p-91cf89c8.entry.js} +2 -2
- package/dist/core/p-91cf89c8.entry.js.map +1 -0
- package/dist/core/p-98981fa7.entry.js +2 -0
- package/dist/core/p-98981fa7.entry.js.map +1 -0
- package/dist/core/p-9d3e0e60.entry.js +2 -0
- package/dist/core/p-9d3e0e60.entry.js.map +1 -0
- package/dist/core/p-a2194364.entry.js +2 -0
- package/dist/core/p-a2194364.entry.js.map +1 -0
- package/dist/core/{p-59d9ea22.entry.js → p-a4d0f166.entry.js} +2 -2
- package/dist/core/p-a4d0f166.entry.js.map +1 -0
- package/dist/core/p-aaa6f849.entry.js +2 -0
- package/dist/core/p-aaa6f849.entry.js.map +1 -0
- package/dist/core/p-adbe0d89.js +2 -0
- package/dist/core/p-adbe0d89.js.map +1 -0
- package/dist/core/p-b4ab627a.entry.js +2 -0
- package/dist/core/p-b4ab627a.entry.js.map +1 -0
- package/dist/core/{p-9e69f517.entry.js → p-b6e208e3.entry.js} +2 -2
- package/dist/core/p-b7abaec8.entry.js +2 -0
- package/dist/core/p-b7abaec8.entry.js.map +1 -0
- package/dist/core/p-bc4aec3a.entry.js +2 -0
- package/dist/core/p-bc4aec3a.entry.js.map +1 -0
- package/dist/core/{p-0ea28e7a.entry.js → p-bcf04b18.entry.js} +2 -2
- package/dist/core/p-bcf04b18.entry.js.map +1 -0
- package/dist/core/{p-d39239be.entry.js → p-be70c278.entry.js} +2 -2
- package/dist/core/{p-d39239be.entry.js.map → p-be70c278.entry.js.map} +1 -1
- package/dist/core/p-bf009b9a.entry.js +2 -0
- package/dist/core/p-bf009b9a.entry.js.map +1 -0
- package/dist/core/{p-40fc7162.entry.js → p-cbd730aa.entry.js} +2 -2
- package/dist/core/p-cbd730aa.entry.js.map +1 -0
- package/dist/core/p-d76e24e4.entry.js +2 -0
- package/dist/core/p-d76e24e4.entry.js.map +1 -0
- package/dist/core/p-d7bf1057.entry.js +2 -0
- package/dist/core/p-d7bf1057.entry.js.map +1 -0
- package/dist/core/p-d9254b14.entry.js +2 -0
- package/dist/core/p-d9254b14.entry.js.map +1 -0
- package/dist/core/p-e20f8772.entry.js +2 -0
- package/dist/core/p-e20f8772.entry.js.map +1 -0
- package/dist/core/p-e26769b0.entry.js +2 -0
- package/dist/core/p-e26769b0.entry.js.map +1 -0
- package/dist/core/p-e2dba05a.entry.js +2 -0
- package/dist/core/p-e2dba05a.entry.js.map +1 -0
- package/dist/core/p-ec862c7e.entry.js +2 -0
- package/dist/core/p-ec862c7e.entry.js.map +1 -0
- package/dist/core/{p-145c8074.entry.js → p-ede631c5.entry.js} +2 -2
- package/dist/core/p-ef9175d8.entry.js +2 -0
- package/dist/core/p-ef9175d8.entry.js.map +1 -0
- package/dist/core/{p-787ffd96.entry.js → p-f1072c28.entry.js} +2 -2
- package/dist/core/{p-452985d9.entry.js.map → p-f1072c28.entry.js.map} +1 -1
- package/dist/core/p-f4db39eb.entry.js +2 -0
- package/dist/core/p-f4db39eb.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-d41662f3.js → helpers-0f5fe29b.js} +3 -2
- package/dist/esm/helpers-0f5fe29b.js.map +1 -0
- package/dist/esm/{helpers-e75fd113.js → helpers-f543bc77.js} +12 -2
- package/dist/esm/helpers-f543bc77.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +8 -8
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +4 -4
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +1 -3
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +12 -15
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +15 -27
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +4 -4
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +3 -3
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +27 -22
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +1 -1
- package/dist/esm/{ic-card.entry.js → ic-card-vertical.entry.js} +6 -6
- package/dist/esm/ic-card-vertical.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +6 -5
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +6 -15
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +9 -10
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +24 -0
- package/dist/esm/ic-data-list.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +9 -10
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +2 -2
- package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +526 -71
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +4 -3
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +7 -3
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +12 -97
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +8 -8
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +9 -9
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +6 -7
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +8 -8
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +8 -9
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +21 -25
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +6 -7
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +3 -3
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +9 -11
- package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-menu.entry.js +8 -10
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +9 -9
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +5 -5
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +2 -2
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +7 -8
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +95 -101
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +3 -3
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +40 -25
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +5 -18
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +18 -24
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +13 -21
- package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +7 -7
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +4 -5
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +2 -11
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +40 -43
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +16 -16
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +5 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +0 -11
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +4 -5
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +1 -8
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +4 -4
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js +0 -7
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +83 -35
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +16 -16
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +13 -13
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +4 -4
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +237 -0
- package/dist/esm/ic-tree-item.entry.js.map +1 -0
- package/dist/esm/ic-tree-view.entry.js +199 -0
- package/dist/esm/ic-tree-view.entry.js.map +1 -0
- package/dist/esm/ic-typography.entry.js +52 -17
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +16 -8
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +68 -7
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +9 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +112 -0
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +4 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +0 -4
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +1 -31
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
- package/dist/types/components.d.ts +175 -72
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +1925 -1126
- package/package.json +3 -3
- package/dist/cjs/helpers-081d6031.js.map +0 -1
- package/dist/cjs/helpers-261701cd.js.map +0 -1
- package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
- package/dist/components/ic-alert2.js +0 -133
- package/dist/components/ic-alert2.js.map +0 -1
- package/dist/components/ic-card.js.map +0 -1
- package/dist/components/ic-data-entity.js +0 -53
- package/dist/components/ic-data-entity.js.map +0 -1
- package/dist/core/p-007da09d.entry.js +0 -2
- package/dist/core/p-007da09d.entry.js.map +0 -1
- package/dist/core/p-01008e8d.entry.js +0 -2
- package/dist/core/p-01008e8d.entry.js.map +0 -1
- package/dist/core/p-01297278.entry.js +0 -2
- package/dist/core/p-01297278.entry.js.map +0 -1
- package/dist/core/p-0551f0cf.entry.js +0 -2
- package/dist/core/p-0551f0cf.entry.js.map +0 -1
- package/dist/core/p-0944d33b.entry.js +0 -2
- package/dist/core/p-0944d33b.entry.js.map +0 -1
- package/dist/core/p-0ea28e7a.entry.js.map +0 -1
- package/dist/core/p-169bcf0f.entry.js +0 -2
- package/dist/core/p-169bcf0f.entry.js.map +0 -1
- package/dist/core/p-1733278a.entry.js +0 -2
- package/dist/core/p-1733278a.entry.js.map +0 -1
- package/dist/core/p-1ac733c1.entry.js +0 -2
- package/dist/core/p-1ac733c1.entry.js.map +0 -1
- package/dist/core/p-2647931d.entry.js +0 -2
- package/dist/core/p-2647931d.entry.js.map +0 -1
- package/dist/core/p-32a3b6c8.entry.js +0 -2
- package/dist/core/p-32a3b6c8.entry.js.map +0 -1
- package/dist/core/p-354e5dbe.entry.js +0 -2
- package/dist/core/p-354e5dbe.entry.js.map +0 -1
- package/dist/core/p-3ba4335c.entry.js +0 -2
- package/dist/core/p-3ba4335c.entry.js.map +0 -1
- package/dist/core/p-3be4aae0.entry.js +0 -2
- package/dist/core/p-3be4aae0.entry.js.map +0 -1
- package/dist/core/p-3d9eca50.entry.js +0 -2
- package/dist/core/p-3d9eca50.entry.js.map +0 -1
- package/dist/core/p-40fc7162.entry.js.map +0 -1
- package/dist/core/p-45ebcb74.js.map +0 -1
- package/dist/core/p-4e6f7cfe.entry.js +0 -2
- package/dist/core/p-4e6f7cfe.entry.js.map +0 -1
- package/dist/core/p-569a68c0.entry.js.map +0 -1
- package/dist/core/p-59d9ea22.entry.js.map +0 -1
- package/dist/core/p-6358925c.entry.js +0 -2
- package/dist/core/p-6358925c.entry.js.map +0 -1
- package/dist/core/p-66595f5f.entry.js +0 -2
- package/dist/core/p-66595f5f.entry.js.map +0 -1
- package/dist/core/p-693a77bb.entry.js +0 -2
- package/dist/core/p-693a77bb.entry.js.map +0 -1
- package/dist/core/p-6b74397a.entry.js.map +0 -1
- package/dist/core/p-6e697a16.entry.js +0 -2
- package/dist/core/p-6e697a16.entry.js.map +0 -1
- package/dist/core/p-6f8fd43e.entry.js +0 -2
- package/dist/core/p-6f8fd43e.entry.js.map +0 -1
- package/dist/core/p-787ffd96.entry.js.map +0 -1
- package/dist/core/p-7f690fa3.entry.js +0 -2
- package/dist/core/p-7f690fa3.entry.js.map +0 -1
- package/dist/core/p-96670e29.entry.js +0 -2
- package/dist/core/p-96670e29.entry.js.map +0 -1
- package/dist/core/p-9777ebb1.entry.js +0 -2
- package/dist/core/p-9777ebb1.entry.js.map +0 -1
- package/dist/core/p-9e7a5c72.entry.js.map +0 -1
- package/dist/core/p-9f8ef2bc.entry.js +0 -2
- package/dist/core/p-9f8ef2bc.entry.js.map +0 -1
- package/dist/core/p-a4585c7e.entry.js +0 -2
- package/dist/core/p-a4585c7e.entry.js.map +0 -1
- package/dist/core/p-a589ead8.entry.js.map +0 -1
- package/dist/core/p-a6d3743c.entry.js +0 -2
- package/dist/core/p-a6d3743c.entry.js.map +0 -1
- package/dist/core/p-a8c97918.entry.js +0 -2
- package/dist/core/p-a8c97918.entry.js.map +0 -1
- package/dist/core/p-a970d653.entry.js +0 -2
- package/dist/core/p-a970d653.entry.js.map +0 -1
- package/dist/core/p-ae7c2c39.entry.js +0 -2
- package/dist/core/p-ae7c2c39.entry.js.map +0 -1
- package/dist/core/p-b3ed5423.entry.js.map +0 -1
- package/dist/core/p-be4c0cc8.entry.js +0 -2
- package/dist/core/p-be4c0cc8.entry.js.map +0 -1
- package/dist/core/p-c04f1bfb.entry.js +0 -2
- package/dist/core/p-c04f1bfb.entry.js.map +0 -1
- package/dist/core/p-d06c0049.entry.js +0 -2
- package/dist/core/p-d06c0049.entry.js.map +0 -1
- package/dist/core/p-d3ea79e1.entry.js +0 -2
- package/dist/core/p-d3ea79e1.entry.js.map +0 -1
- package/dist/core/p-d448bdbd.entry.js +0 -2
- package/dist/core/p-d448bdbd.entry.js.map +0 -1
- package/dist/core/p-d44b7f21.entry.js.map +0 -1
- package/dist/core/p-d5d36143.entry.js.map +0 -1
- package/dist/core/p-d68e0c94.entry.js +0 -2
- package/dist/core/p-d68e0c94.entry.js.map +0 -1
- package/dist/core/p-d91428b4.entry.js.map +0 -1
- package/dist/core/p-e191290c.entry.js +0 -2
- package/dist/core/p-e191290c.entry.js.map +0 -1
- package/dist/core/p-e2421111.entry.js +0 -2
- package/dist/core/p-e2421111.entry.js.map +0 -1
- package/dist/core/p-e393e53c.entry.js +0 -2
- package/dist/core/p-e393e53c.entry.js.map +0 -1
- package/dist/core/p-e5b1dd58.entry.js.map +0 -1
- package/dist/core/p-f6735e4a.js +0 -2
- package/dist/core/p-f6735e4a.js.map +0 -1
- package/dist/core/p-fab8da25.entry.js.map +0 -1
- package/dist/core/p-fc0eac8b.entry.js +0 -2
- package/dist/core/p-fc0eac8b.entry.js.map +0 -1
- package/dist/core/p-ffeca3c7.entry.js +0 -2
- package/dist/core/p-ffeca3c7.entry.js.map +0 -1
- package/dist/esm/helpers-e75fd113.js.map +0 -1
- package/dist/esm/ic-card.entry.js.map +0 -1
- package/dist/esm/ic-data-entity.entry.js +0 -25
- package/dist/esm/ic-data-entity.entry.js.map +0 -1
- /package/dist/core/{p-fdacc7f7.entry.js.map → p-125bc120.entry.js.map} +0 -0
- /package/dist/core/{p-1d0cff8a.entry.js.map → p-22260ed4.entry.js.map} +0 -0
- /package/dist/core/{p-fb4219d6.entry.js.map → p-88ba5a88.entry.js.map} +0 -0
- /package/dist/core/{p-9e69f517.entry.js.map → p-b6e208e3.entry.js.map} +0 -0
- /package/dist/core/{p-145c8074.entry.js.map → p-ede631c5.entry.js.map} +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-4cf27b16.js');
|
6
|
-
const helpers = require('./helpers-
|
6
|
+
const helpers = require('./helpers-85c5ca15.js');
|
7
7
|
|
8
8
|
const unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
|
9
9
|
<path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
|
@@ -17,23 +17,161 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
17
17
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
18
18
|
</svg>`;
|
19
19
|
|
20
|
-
const icDataTableCss = ":host{position:relative;display:block;height:100%;max-height:100%}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs))}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:fixed;border-spacing:0;width:100%}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-border-light)}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-table-row-selected) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-action-dark-bg-hover)}.sort-button:active{background-color:var(--ic-action-dark-bg-active)}.sort-button svg{color:var(--ic-architectural-black)}.sort-button-unsorted svg{color:var(--ic-color-tertiary-text)}.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.column-header,.row-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-border-light) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row:nth-child(even){background-color:var(--ic-architectural-20)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px)}.data-type-string{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;justify-content:end;vertical-align:top}.cell-alignment-top{vertical-align:top}.cell-alignment-middle{vertical-align:middle}.cell-alignment-bottom{vertical-align:bottom}.cell-emphasis-low{color:var(--ic-color-secondary-text)}.cell-emphasis-high{font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-border-light)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading.show-background{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.row-header-alignment-right>ic-typography,.cell-alignment-center>ic-typography{flex:1}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}@media screen and (min-width: 576px){.column-header-inner-container{display:flex;align-items:center}
|
20
|
+
const icDataTableCss = ":host{position:relative;display:block;height:100%;max-height:100%}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden}.truncation-show-hide{overflow:visible;display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:fixed;border-spacing:0;width:100%}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-border-light)}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-table-row-selected) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-action-dark-bg-hover)}.sort-button:active{background-color:var(--ic-action-dark-bg-active)}.sort-button svg{color:var(--ic-architectural-black)}.sort-button-unsorted svg{color:var(--ic-color-tertiary-text)}.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.column-header,.row-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-border-light) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row:nth-child(even){background-color:var(--ic-architectural-20)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px);overflow:hidden}.data-type-string,.data-type-address{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;justify-content:end;vertical-align:top}.cell-alignment-top{vertical-align:top;align-items:flex-start}.cell-alignment-middle{vertical-align:middle;align-items:center}.cell-alignment-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low{color:var(--ic-color-secondary-text)}.cell-emphasis-high{font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-border-light)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading.show-background{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.row-header-alignment-right>ic-typography,.cell-alignment-center>ic-typography{flex:1}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden}@media screen and (min-width: 576px){.column-header-inner-container{display:flex;align-items:center}}";
|
21
21
|
|
22
|
-
const DENSITY_HEIGHT_MULTIPLIER = {
|
23
|
-
dense: 0.8,
|
24
|
-
default: 1,
|
25
|
-
spacious: 1.2,
|
26
|
-
};
|
27
|
-
const SORT_ICONS = {
|
28
|
-
unsorted: unsortedIcon,
|
29
|
-
ascending: ascendingIcon,
|
30
|
-
descending: descendingIcon,
|
31
|
-
};
|
32
22
|
const DataTable = class {
|
33
23
|
constructor(hostRef) {
|
34
24
|
index.registerInstance(this, hostRef);
|
35
25
|
this.icRowHeightChange = index.createEvent(this, "icRowHeightChange", 7);
|
26
|
+
this.DENSITY_HEIGHT_MULTIPLIER = {
|
27
|
+
dense: 0.8,
|
28
|
+
default: 1,
|
29
|
+
spacious: 1.2,
|
30
|
+
};
|
31
|
+
this.DENSITY_PADDING_HEIGHT_DIFF = {
|
32
|
+
dense: 8,
|
33
|
+
default: 16,
|
34
|
+
spacious: 20,
|
35
|
+
};
|
36
|
+
this.SORT_ICONS = {
|
37
|
+
unsorted: unsortedIcon,
|
38
|
+
ascending: ascendingIcon,
|
39
|
+
descending: descendingIcon,
|
40
|
+
};
|
36
41
|
this.hasLoadedForOneSecond = true;
|
42
|
+
this.resizeObserver = null;
|
43
|
+
this.SHOW_HIDE_STRING = "show-hide";
|
44
|
+
this.SHOW_HIDE_CSS_CLASS = `${this.SHOW_HIDE_STRING}-wrap`;
|
45
|
+
this.TOOLTIP_STRING = "tooltip";
|
46
|
+
this.TOOLTIP = `ic-${this.TOOLTIP_STRING}`;
|
47
|
+
this.TEXT_WRAP_STRING = "text-wrap";
|
48
|
+
this.TEXT_WRAP_CLASS = `.${this.TEXT_WRAP_STRING}`;
|
49
|
+
this.dataUpdated = false;
|
50
|
+
this.rowHeightSet = false;
|
51
|
+
this.initialLoad = false;
|
52
|
+
this.icPageChangeEvent = false;
|
53
|
+
this.itemsPerPageChange = false;
|
54
|
+
this.DATA_ROW_HEIGHT_STRING = "data-row-height";
|
55
|
+
this.DEFAULT_LINE_HEIGHT = 24;
|
56
|
+
this.densityUpdate = false;
|
57
|
+
this.updateSetRowHeight = (typographyEl) => {
|
58
|
+
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
59
|
+
if (typographyEl) {
|
60
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
61
|
+
const rowHeight = fontSize *
|
62
|
+
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
63
|
+
if (typographyEl.scrollHeight > rowHeight) {
|
64
|
+
cellContainer.style.removeProperty("height");
|
65
|
+
}
|
66
|
+
}
|
67
|
+
else {
|
68
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
69
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
70
|
+
const rowHeight = fontSize *
|
71
|
+
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
72
|
+
if (typographyEl.scrollHeight > rowHeight) {
|
73
|
+
cellContainer.style.removeProperty("height");
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}
|
77
|
+
};
|
78
|
+
this.debounceDataTruncation = () => {
|
79
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
80
|
+
if (!typographyEl.classList.contains(this.TEXT_WRAP_STRING)) {
|
81
|
+
this.resizeObserver = new ResizeObserver(
|
82
|
+
// This gets triggered twice due to updated data and see more/see less button
|
83
|
+
helpers.debounce(() => {
|
84
|
+
// console.log("resizeObserver triggered");
|
85
|
+
this.dataTruncation(typographyEl);
|
86
|
+
}, 200));
|
87
|
+
this.resizeObserver.observe(typographyEl);
|
88
|
+
}
|
89
|
+
});
|
90
|
+
};
|
91
|
+
this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
|
92
|
+
this.truncate = (typographyEl, cellContainer, tooltip) => {
|
93
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
94
|
+
//24 is the height of a single line
|
95
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
96
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
97
|
+
this.addTooltipTruncation(typographyEl, cellContainer, tooltip);
|
98
|
+
}
|
99
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
100
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
else {
|
105
|
+
if (this.truncationPattern === this.TOOLTIP_STRING && tooltip) {
|
106
|
+
typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
|
107
|
+
cellContainer.appendChild(typographyEl);
|
108
|
+
tooltip.remove();
|
109
|
+
}
|
110
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
111
|
+
!helpers.isEmptyString(typographyEl.getAttribute("max-lines"))) {
|
112
|
+
this.resetShowHideTruncation(typographyEl);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
};
|
116
|
+
this.dataTruncation = (typographyEl) => {
|
117
|
+
// Tooltip truncation mentioned in AC. Will need revisiting
|
118
|
+
const tooltip = this.getTooltip(typographyEl);
|
119
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
120
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.classList.contains("data-type-element")) ||
|
121
|
+
this.dataUpdated) {
|
122
|
+
return;
|
123
|
+
}
|
124
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
125
|
+
typographyEl.shadowRoot.querySelector("button")) {
|
126
|
+
const showHideBtn = typographyEl.shadowRoot.querySelector("button");
|
127
|
+
// If the see more/see less is present and the max lines is equal to the cell container
|
128
|
+
// remove the see more/see less button
|
129
|
+
if (showHideBtn) {
|
130
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
131
|
+
if (this.getLines(truncWrapper.scrollHeight) ===
|
132
|
+
+typographyEl.getAttribute("max-lines")) {
|
133
|
+
this.resetShowHideTruncation(typographyEl);
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
// Deals with setting and resetting row height and re-truncating data
|
138
|
+
if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
|
139
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
140
|
+
// cellContainer.clientHeight - 24 removes the extra line by see more/see less
|
141
|
+
if (truncWrapper &&
|
142
|
+
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
|
143
|
+
truncWrapper.scrollHeight) {
|
144
|
+
this.resetShowHideTruncation(typographyEl);
|
145
|
+
return;
|
146
|
+
}
|
147
|
+
if (typographyEl.scrollHeight > cellContainer.clientHeight) {
|
148
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
149
|
+
return;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > 0 &&
|
153
|
+
(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > 0 &&
|
154
|
+
(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) === (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
155
|
+
if (tooltip) {
|
156
|
+
this.removeTooltip(cellContainer, typographyEl, tooltip);
|
157
|
+
}
|
158
|
+
return;
|
159
|
+
}
|
160
|
+
this.truncate(typographyEl, cellContainer, tooltip);
|
161
|
+
};
|
162
|
+
this.removeTextWrap = () => {
|
163
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
164
|
+
const tableCell = typographyEl.closest("td");
|
165
|
+
if (tableCell.classList.contains(this.TEXT_WRAP_STRING)) {
|
166
|
+
tableCell.classList.remove(this.TEXT_WRAP_STRING);
|
167
|
+
}
|
168
|
+
});
|
169
|
+
};
|
170
|
+
this.getCellContainer = (typographyEl) => {
|
171
|
+
return typographyEl.closest(".cell-container");
|
172
|
+
};
|
173
|
+
this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
|
174
|
+
array.forEach((val) => val.textWrap && delete val.textWrap);
|
37
175
|
this.startLoadingTimer = () => {
|
38
176
|
this.hasLoadedForOneSecond = false;
|
39
177
|
this.timerStarted = Date.now();
|
@@ -59,13 +197,31 @@ const DataTable = class {
|
|
59
197
|
return this.getObjectValue(this.getObjectValue(cell, "cellAlignment"), alignment);
|
60
198
|
}
|
61
199
|
};
|
200
|
+
this.getCellOptions = (cell, key) => {
|
201
|
+
if (!(this.isObject(cell) && Object.keys(cell).includes(key)))
|
202
|
+
return;
|
203
|
+
return this.getObjectValue(cell, key);
|
204
|
+
};
|
62
205
|
this.createUpdatingIndicator = () => {
|
63
206
|
const { appearance, description, max, min, progress } = this.updatingOptions || {};
|
64
207
|
return (index.h("th", { colSpan: this.columns.length, class: "updating-state" }, index.h("ic-loading-indicator", { appearance: appearance, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
65
208
|
};
|
209
|
+
this.setRowHeight = (height) => {
|
210
|
+
return helpers.pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
211
|
+
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
212
|
+
};
|
213
|
+
this.setTruncationClass = () => {
|
214
|
+
if (this.truncationPattern) {
|
215
|
+
return { [`truncation-${this.truncationPattern}`]: true };
|
216
|
+
}
|
217
|
+
return {};
|
218
|
+
};
|
66
219
|
this.createCells = (row, rowIndex) => {
|
220
|
+
var _a;
|
67
221
|
const rowValues = Object.values(row);
|
68
222
|
const rowKeys = Object.keys(row);
|
223
|
+
const index$1 = rowIndex;
|
224
|
+
const rowOptions = this.getRowOptions(rowKeys, rowValues);
|
69
225
|
let rowAlignment;
|
70
226
|
let rowEmphasis;
|
71
227
|
const headerIndex = rowKeys.indexOf("header");
|
@@ -73,42 +229,63 @@ const DataTable = class {
|
|
73
229
|
rowAlignment = this.getObjectValue(rowValues[headerIndex], "rowAlignment");
|
74
230
|
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
75
231
|
}
|
232
|
+
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: index$1 }));
|
233
|
+
const currentRowHeight = variableRowHeightVal
|
234
|
+
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
235
|
+
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
76
236
|
return rowValues.map((cell, index$1) => {
|
77
|
-
var _a, _b, _c, _d, _e;
|
237
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
78
238
|
const columnProps = this.columns[index$1];
|
79
239
|
const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
|
80
240
|
const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
|
81
241
|
const cellValue = (key) => this.getObjectValue(cell, key);
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
this.
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
242
|
+
if (rowKeys[index$1] === "header") {
|
243
|
+
return (index.h("th", { scope: "row", colSpan: cellValue("colspan"), class: {
|
244
|
+
["row-header"]: true,
|
245
|
+
[`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
|
246
|
+
["row-header-sticky"]: this.stickyRowHeaders,
|
247
|
+
} }, cellValue("title")));
|
248
|
+
}
|
249
|
+
if (rowKeys[index$1] !== "rowOptions") {
|
250
|
+
return (index.h("td", { class: {
|
251
|
+
["table-cell"]: true,
|
252
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
253
|
+
} }, index.h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
254
|
+
!helpers.isSlotUsed(this.el, cellSlotName)
|
255
|
+
? cell
|
256
|
+
: null, class: Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", [`cell-alignment-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
257
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
258
|
+
rowAlignment ||
|
259
|
+
this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
260
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
261
|
+
!!rowAlignment ||
|
262
|
+
!!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
263
|
+
((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
|
264
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
|
265
|
+
!!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
|
266
|
+
!!this.getCellAlignment(cell, "horizontal"), [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true, [this.TEXT_WRAP_STRING]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) ||
|
267
|
+
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
268
|
+
!!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((_j = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _j === void 0 ? void 0 : _j.icon) }, this.setTruncationClass()), style: {
|
269
|
+
height: (this.truncationPattern || currentRowHeight) &&
|
270
|
+
!columnProps.textWrap &&
|
271
|
+
!rowOptions.textWrap &&
|
272
|
+
!this.getCellOptions(cell, "textWrap") &&
|
273
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element"
|
274
|
+
? this.setRowHeight(currentRowHeight)
|
275
|
+
: null,
|
276
|
+
}, "data-row-height": this.truncationPattern || currentRowHeight
|
277
|
+
? this.setRowHeight(currentRowHeight)
|
278
|
+
: null }, helpers.isSlotUsed(this.el, cellSlotName) ? (index.h("slot", { name: cellSlotName })) : (index.h(index.Fragment, null, helpers.isSlotUsed(this.el, `${cellSlotName}-icon`) ? (index.h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) && (index.h("span", { class: "icon", innerHTML: cellValue("icon") || (columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
279
|
+
!helpers.isSlotUsed(this.el, cellSlotName) && (index.h("ic-typography", { variant: "body", class: {
|
280
|
+
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
281
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
282
|
+
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
283
|
+
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
284
|
+
!!rowEmphasis,
|
285
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
286
|
+
} }, this.isObject(cell) &&
|
287
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (index.h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType)))))))));
|
288
|
+
}
|
112
289
|
});
|
113
290
|
};
|
114
291
|
this.createColumnHeaders = () => {
|
@@ -125,7 +302,7 @@ const DataTable = class {
|
|
125
302
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
126
303
|
} }, title), this.sortable && (index.h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
127
304
|
// eslint-disable-next-line react/jsx-no-bind
|
128
|
-
onClick: () => this.sortRows(key), innerHTML: SORT_ICONS[this.sortedColumn === key
|
305
|
+
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
129
306
|
? this.sortedColumnOrder
|
130
307
|
: "unsorted"], class: {
|
131
308
|
["sort-button"]: true,
|
@@ -133,6 +310,10 @@ const DataTable = class {
|
|
133
310
|
this.sortedColumnOrder === "unsorted",
|
134
311
|
} }))))));
|
135
312
|
};
|
313
|
+
this.onRowClick = (row) => {
|
314
|
+
this.selectedRow =
|
315
|
+
this.selectedRow !== row && !this.loading && !this.updating && row;
|
316
|
+
};
|
136
317
|
this.createRows = () => {
|
137
318
|
const data = this.showPagination
|
138
319
|
? this.data.slice(this.fromRow, this.toRow)
|
@@ -152,24 +333,11 @@ const DataTable = class {
|
|
152
333
|
return data
|
153
334
|
.sort(!this.sortable ? undefined : this.getSortFunction())
|
154
335
|
.map((row, index$1) => {
|
155
|
-
var _a;
|
156
|
-
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: index$1 }));
|
157
|
-
const findRowHeight = variableRowHeightVal
|
158
|
-
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
159
|
-
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
160
336
|
return (index.h("tr", {
|
161
337
|
// eslint-disable-next-line react/jsx-no-bind
|
162
|
-
onClick: () =>
|
163
|
-
this.selectedRow !== row &&
|
164
|
-
!this.loading &&
|
165
|
-
!this.updating &&
|
166
|
-
row), class: {
|
338
|
+
onClick: () => this.onRowClick(row), class: {
|
167
339
|
["table-row"]: true,
|
168
340
|
["table-row-selected"]: this.selectedRow === row,
|
169
|
-
}, style: {
|
170
|
-
height: findRowHeight
|
171
|
-
? `${findRowHeight * DENSITY_HEIGHT_MULTIPLIER[this.density]}px`
|
172
|
-
: null,
|
173
341
|
}
|
174
342
|
}, this.createCells(row, index$1)));
|
175
343
|
});
|
@@ -232,6 +400,25 @@ const DataTable = class {
|
|
232
400
|
}
|
233
401
|
this.sortedColumnOrder = sortOrders[nextSortOrderIndex];
|
234
402
|
sortButton.setAttribute("aria-label", this.getSortButtonLabel(column));
|
403
|
+
this.tableSorted = true;
|
404
|
+
};
|
405
|
+
this.getTypographyElements = () => {
|
406
|
+
return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)"));
|
407
|
+
};
|
408
|
+
this.getTooltip = (typographyEl) => {
|
409
|
+
return typographyEl.closest(this.TOOLTIP);
|
410
|
+
};
|
411
|
+
this.updateTruncationTooltip = (removeTooltipOnly = false) => {
|
412
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
413
|
+
const tooltip = this.getTooltip(typographyEl);
|
414
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
415
|
+
if (typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
416
|
+
this.removeTooltip(cellContainer, typographyEl, tooltip);
|
417
|
+
typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
|
418
|
+
return;
|
419
|
+
}
|
420
|
+
this.regenerateTooltip(cellContainer, typographyEl, tooltip, removeTooltipOnly);
|
421
|
+
});
|
235
422
|
};
|
236
423
|
this.updateScrollOffset = () => {
|
237
424
|
this.scrollOffset = this.el.shadowRoot.querySelector(".table-row-container").scrollTop;
|
@@ -245,12 +432,13 @@ const DataTable = class {
|
|
245
432
|
this.sortedColumn = undefined;
|
246
433
|
this.sortedColumnOrder = undefined;
|
247
434
|
this.toRow = undefined;
|
435
|
+
this.currentRowHeight = undefined;
|
248
436
|
this.caption = undefined;
|
249
437
|
this.columns = undefined;
|
250
438
|
this.data = undefined;
|
251
439
|
this.density = "default";
|
252
440
|
this.embedded = false;
|
253
|
-
this.globalRowHeight =
|
441
|
+
this.globalRowHeight = "auto";
|
254
442
|
this.hideColumnHeaders = false;
|
255
443
|
this.loading = false;
|
256
444
|
this.loadingOptions = undefined;
|
@@ -279,10 +467,15 @@ const DataTable = class {
|
|
279
467
|
};
|
280
468
|
this.stickyColumnHeaders = false;
|
281
469
|
this.stickyRowHeaders = false;
|
470
|
+
this.truncationPattern = undefined;
|
282
471
|
this.updating = false;
|
283
472
|
this.updatingOptions = undefined;
|
284
473
|
this.variableRowHeight = undefined;
|
285
474
|
}
|
475
|
+
disconnectedCallback() {
|
476
|
+
var _a;
|
477
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
478
|
+
}
|
286
479
|
componentWillLoad() {
|
287
480
|
var _a;
|
288
481
|
this.rowsPerPage = Number(this.paginationBarOptions.itemsPerPageOptions[0].value);
|
@@ -291,10 +484,15 @@ const DataTable = class {
|
|
291
484
|
this.sortedColumn = this.sortOptions.defaultColumn;
|
292
485
|
this.sortedColumnOrder = this.sortOptions.sortOrders[0];
|
293
486
|
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
|
487
|
+
this.initialLoad = true;
|
488
|
+
this.previousItemsPerPage = this.rowsPerPage;
|
294
489
|
}
|
295
490
|
componentDidLoad() {
|
296
491
|
const tableElement = this.el.shadowRoot.querySelector("table");
|
297
492
|
const tableContainer = this.el.shadowRoot.querySelector(".table-container");
|
493
|
+
if (this.dataUpdated) {
|
494
|
+
this.dataUpdated = false;
|
495
|
+
}
|
298
496
|
if ((tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientHeight) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientHeight) ||
|
299
497
|
(tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientWidth)) {
|
300
498
|
this.scrollable = true;
|
@@ -303,11 +501,144 @@ const DataTable = class {
|
|
303
501
|
this.startLoadingTimer();
|
304
502
|
this.showLoadingIndicator();
|
305
503
|
}
|
504
|
+
if (this.truncationPattern) {
|
505
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
506
|
+
if (!typographyEl.classList.contains(this.TEXT_WRAP_STRING)) {
|
507
|
+
this.dataTruncation(typographyEl);
|
508
|
+
}
|
509
|
+
});
|
510
|
+
this.debounceDataTruncation();
|
511
|
+
}
|
512
|
+
if (this.globalRowHeight !== "auto") {
|
513
|
+
this.updateSetRowHeight();
|
514
|
+
}
|
306
515
|
}
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
516
|
+
componentDidUpdate() {
|
517
|
+
this.truncateUpdatedData();
|
518
|
+
}
|
519
|
+
truncateUpdatedData() {
|
520
|
+
if (this.dataUpdated) {
|
521
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
522
|
+
this.resetShowHideTruncation();
|
523
|
+
}
|
524
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
525
|
+
this.updateTruncationTooltip();
|
526
|
+
}
|
527
|
+
this.dataUpdated = false;
|
528
|
+
}
|
529
|
+
if (this.tableSorted) {
|
530
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
531
|
+
this.updateTruncationTooltip();
|
532
|
+
}
|
533
|
+
this.tableSorted = false;
|
534
|
+
}
|
535
|
+
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
536
|
+
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
537
|
+
if (this.rowHeightSet) {
|
538
|
+
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
539
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
540
|
+
var _a;
|
541
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
542
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
543
|
+
const rowHeight = fontSize *
|
544
|
+
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
545
|
+
// If the set row height is bigger than the cell container even
|
546
|
+
// with textWrap, set the row height
|
547
|
+
if (!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
|
548
|
+
rowHeight > cellContainer.clientHeight) {
|
549
|
+
cellContainer.style.setProperty("height", cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
550
|
+
}
|
551
|
+
if (this.truncationPattern) {
|
552
|
+
// If the set row height is bigger than the typography truncation wrapper
|
553
|
+
// scroll height, remove see more / see less button
|
554
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
555
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
556
|
+
const showHideBtn = typographyEl.shadowRoot.querySelector("button");
|
557
|
+
if (showHideBtn &&
|
558
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight) <= cellContainer.clientHeight) {
|
559
|
+
this.resetShowHideTruncation(typographyEl);
|
560
|
+
return;
|
561
|
+
}
|
562
|
+
}
|
563
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
564
|
+
}
|
565
|
+
else {
|
566
|
+
this.updateSetRowHeight(typographyEl);
|
567
|
+
}
|
568
|
+
});
|
569
|
+
this.rowHeightSet = false;
|
570
|
+
}
|
571
|
+
// Only run truncation on the new rows
|
572
|
+
// when the number of items per page has increased
|
573
|
+
if (this.itemsPerPageChange) {
|
574
|
+
const allRows = this.el.shadowRoot.querySelectorAll(".table-row");
|
575
|
+
if (this.rowsPerPage > this.previousItemsPerPage) {
|
576
|
+
const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
|
577
|
+
newRows.forEach((row) => {
|
578
|
+
row
|
579
|
+
.querySelectorAll("ic-typography")
|
580
|
+
.forEach((typographyEl) => {
|
581
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
582
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
583
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
584
|
+
});
|
585
|
+
});
|
586
|
+
}
|
587
|
+
this.previousItemsPerPage = this.rowsPerPage;
|
588
|
+
this.itemsPerPageChange = false;
|
589
|
+
}
|
590
|
+
if (!this.initialLoad && this.icPageChangeEvent) {
|
591
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
592
|
+
this.updateTruncationTooltip();
|
593
|
+
}
|
594
|
+
// set truncation to see more if opened and next/previous page is pressed
|
595
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
596
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
597
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
598
|
+
const showHideBtn = typographyEl.shadowRoot.querySelector("button");
|
599
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
|
600
|
+
!showHideBtn) {
|
601
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
602
|
+
}
|
603
|
+
});
|
604
|
+
}
|
605
|
+
this.icPageChangeEvent = false;
|
606
|
+
}
|
607
|
+
if (this.densityUpdate) {
|
608
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
609
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
610
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
611
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
612
|
+
});
|
613
|
+
this.densityUpdate = false;
|
614
|
+
}
|
615
|
+
}
|
616
|
+
createShowHideTruncation(typographyEl, cellContainer) {
|
617
|
+
typographyEl.checkMaxLines(typographyEl.scrollHeight);
|
618
|
+
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
619
|
+
typographyEl.setShowHideExpanded(false);
|
620
|
+
cellContainer.style.height = null;
|
621
|
+
}
|
622
|
+
addTooltipTruncation(typographyEl, cellContainer, tooltip) {
|
623
|
+
this.addLineClampCSS(typographyEl, cellContainer);
|
624
|
+
if (!tooltip) {
|
625
|
+
this.createTruncationTooltip(typographyEl, cellContainer);
|
626
|
+
}
|
627
|
+
}
|
628
|
+
addShowHideTruncation(cellContainer, typographyEl) {
|
629
|
+
cellContainer.classList.add(this.SHOW_HIDE_CSS_CLASS);
|
630
|
+
this.createShowHideTruncation(typographyEl, cellContainer);
|
631
|
+
}
|
632
|
+
getTruncWrapper(typographyEl) {
|
633
|
+
return typographyEl.shadowRoot.querySelector(".trunc-wrapper");
|
634
|
+
}
|
635
|
+
// Set the height to initial if row height is set and the show / hide truncation
|
636
|
+
// is clicked
|
637
|
+
handleTypographyTruncationExpandToggle({ detail, }) {
|
638
|
+
const { expanded, typographyEl } = detail;
|
639
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
640
|
+
if (cellContainer.style.height && expanded) {
|
641
|
+
cellContainer.style.height = "inherit";
|
311
642
|
}
|
312
643
|
}
|
313
644
|
handlePageChange({ detail, target }) {
|
@@ -326,6 +657,19 @@ const DataTable = class {
|
|
326
657
|
this.previousRowsPerPage = this.rowsPerPage;
|
327
658
|
}
|
328
659
|
}
|
660
|
+
if (!this.initialLoad && this.previousPaginationPage !== detail.value) {
|
661
|
+
// This is to prevent icPageChange from triggering truncation on first load
|
662
|
+
this.icPageChangeEvent = true;
|
663
|
+
}
|
664
|
+
this.previousPaginationPage = detail.value;
|
665
|
+
this.initialLoad = false;
|
666
|
+
}
|
667
|
+
handleItemsPerPageChange({ detail, target, }) {
|
668
|
+
if (target.parentElement !== this.el) {
|
669
|
+
this.previousRowsPerPage = this.rowsPerPage;
|
670
|
+
this.rowsPerPage = detail.value;
|
671
|
+
}
|
672
|
+
this.itemsPerPageChange = true;
|
329
673
|
}
|
330
674
|
handleDensityChange(ev) {
|
331
675
|
this.density = ev.detail.value;
|
@@ -343,7 +687,23 @@ const DataTable = class {
|
|
343
687
|
}, 500);
|
344
688
|
}
|
345
689
|
}
|
346
|
-
|
690
|
+
truncationPatternHandler(newValue) {
|
691
|
+
if (newValue === this.SHOW_HIDE_STRING) {
|
692
|
+
this.updateTruncationTooltip(true);
|
693
|
+
// Not using debounceDataTruncation here due to resizeObserver not being triggered
|
694
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
695
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
696
|
+
const tooltip = this.getTooltip(typographyEl);
|
697
|
+
this.truncate(typographyEl, cellContainer, tooltip);
|
698
|
+
});
|
699
|
+
}
|
700
|
+
if (newValue === this.TOOLTIP_STRING) {
|
701
|
+
// ResizeObserver is trigger here due to the see more/see less links being removed.
|
702
|
+
// The resizeObserver will also apply the tooltip where relevant
|
703
|
+
this.resetShowHideTruncation();
|
704
|
+
}
|
705
|
+
}
|
706
|
+
async dataHandler(newData) {
|
347
707
|
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
348
708
|
if (this.loading) {
|
349
709
|
!this.hasLoadedForOneSecond
|
@@ -353,31 +713,124 @@ const DataTable = class {
|
|
353
713
|
}
|
354
714
|
if (this.updating)
|
355
715
|
this.updating = false;
|
716
|
+
this.dataUpdated = true;
|
356
717
|
}
|
357
|
-
|
358
|
-
this.
|
718
|
+
async densityHandler() {
|
719
|
+
this.densityUpdate = true;
|
720
|
+
}
|
721
|
+
resetShowHideTruncation(typographyEl) {
|
722
|
+
if (typographyEl) {
|
723
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
724
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
725
|
+
if ((truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
|
726
|
+
!helpers.isEmptyString(typographyEl.getAttribute("max-lines")) &&
|
727
|
+
Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
|
728
|
+
+typographyEl.getAttribute("max-lines")) {
|
729
|
+
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
730
|
+
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
731
|
+
typographyEl.setShowHideExpanded(false);
|
732
|
+
cellContainer.style.height = null;
|
733
|
+
}
|
734
|
+
else {
|
735
|
+
typographyEl.resetTruncation().then(() => {
|
736
|
+
cellContainer.style.setProperty("height", cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
737
|
+
});
|
738
|
+
}
|
739
|
+
}
|
740
|
+
else {
|
741
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
742
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
743
|
+
typographyEl.resetTruncation().then(() => {
|
744
|
+
cellContainer.style.setProperty("height", cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
745
|
+
});
|
746
|
+
});
|
747
|
+
}
|
748
|
+
}
|
749
|
+
rowHeightChangeHandler(newValue, oldValue) {
|
750
|
+
if (+newValue !== +oldValue) {
|
751
|
+
this.deleteTextWrapDataKey(this.data);
|
752
|
+
this.deleteTextWrapDataKey(this.columns);
|
753
|
+
this.removeTextWrap();
|
754
|
+
this.icRowHeightChange.emit();
|
755
|
+
this.rowHeightSet = true;
|
756
|
+
}
|
359
757
|
}
|
360
758
|
/**
|
361
|
-
* Resets the `globalRowHeight` prop to
|
759
|
+
* Resets the `globalRowHeight` prop to number or auto and sets the `variableRowHeight` prop to `null`.
|
362
760
|
*/
|
363
|
-
async resetRowHeights() {
|
364
|
-
this.globalRowHeight =
|
761
|
+
async resetRowHeights(rowHeight) {
|
762
|
+
this.globalRowHeight = rowHeight || "auto";
|
365
763
|
this.variableRowHeight = null;
|
366
764
|
}
|
367
765
|
showLoadingIndicator() {
|
368
766
|
this.loadingIndicator.classList.add("show");
|
369
767
|
}
|
768
|
+
getRowOptions(rowKeys, rowValues) {
|
769
|
+
const rowOptionsIndex = rowKeys.indexOf("rowOptions");
|
770
|
+
return rowOptionsIndex > -1 && rowValues[rowOptionsIndex];
|
771
|
+
}
|
772
|
+
regenerateTooltip(cellContainer, typographyEl, tooltip, removeTooltipOnly) {
|
773
|
+
// When sorting the table, instead of regenerating the tooltip,
|
774
|
+
// the tooltip details are updated
|
775
|
+
if (tooltip) {
|
776
|
+
if (this.tableSorted) {
|
777
|
+
tooltip.setAttribute("target", typographyEl.id);
|
778
|
+
tooltip.setAttribute("label", typographyEl.textContent);
|
779
|
+
}
|
780
|
+
else {
|
781
|
+
this.removeTooltip(cellContainer, typographyEl, tooltip);
|
782
|
+
}
|
783
|
+
if (removeTooltipOnly) {
|
784
|
+
return;
|
785
|
+
}
|
786
|
+
}
|
787
|
+
// This add line clamp to data only when
|
788
|
+
// the data object has been updated
|
789
|
+
if (!typographyEl.getAttribute("style") && this.dataUpdated) {
|
790
|
+
this.addLineClampCSS(typographyEl, cellContainer);
|
791
|
+
}
|
792
|
+
// Adding the tableSorted boolean prevents the tooltip
|
793
|
+
// being regenerated and flashing
|
794
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
|
795
|
+
!this.tableSorted) {
|
796
|
+
if (!typographyEl.getAttribute("style")) {
|
797
|
+
this.addLineClampCSS(typographyEl, cellContainer);
|
798
|
+
}
|
799
|
+
this.createTruncationTooltip(typographyEl, cellContainer);
|
800
|
+
}
|
801
|
+
}
|
802
|
+
removeTooltip(cellContainer, typographyEl, tooltip) {
|
803
|
+
cellContainer.appendChild(typographyEl);
|
804
|
+
if (tooltip) {
|
805
|
+
tooltip.remove();
|
806
|
+
}
|
807
|
+
}
|
808
|
+
addLineClampCSS(typographyEl, cellContainer) {
|
809
|
+
typographyEl.setAttribute("style", `--ic-line-clamp: ${this.getLines(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)}`);
|
810
|
+
}
|
811
|
+
createTruncationTooltip(typographyEl, cellContainer) {
|
812
|
+
const tooltipEl = document.createElement("ic-tooltip");
|
813
|
+
tooltipEl.setAttribute("target", typographyEl.id);
|
814
|
+
tooltipEl.setAttribute("label", typographyEl.textContent);
|
815
|
+
tooltipEl.classList.add("ic-tooltip-overflow");
|
816
|
+
tooltipEl.setExternalPopperProps({
|
817
|
+
// This might need reverting back to absolute if the tooltip doesn't dynamically position itself correctly
|
818
|
+
strategy: "fixed",
|
819
|
+
});
|
820
|
+
cellContainer.appendChild(tooltipEl);
|
821
|
+
tooltipEl.appendChild(typographyEl);
|
822
|
+
}
|
370
823
|
render() {
|
371
824
|
const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
|
372
825
|
return (index.h("div", { class: "table-container" }, helpers.isSlotUsed(this.el, "title-bar") && index.h("slot", { name: "title-bar" }), index.h("div", { class: {
|
373
826
|
["table-row-container"]: true,
|
374
827
|
scrollable,
|
375
|
-
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, index.h("table", null, index.h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (index.h("thead", { class: {
|
828
|
+
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, helpers.isSlotUsed(this.el, "title-bar") && index.h("slot", { name: "title-bar" }), index.h("table", null, index.h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (index.h("thead", { class: {
|
376
829
|
["column-header-sticky"]: stickyColumnHeaders,
|
377
830
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
378
831
|
} }, index.h("tr", null, createColumnHeaders()))), updating &&
|
379
832
|
!loading &&
|
380
|
-
(hideColumnHeaders ? (index.h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && index.h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
|
833
|
+
(hideColumnHeaders ? (index.h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && !loading && index.h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
|
381
834
|
!loading &&
|
382
835
|
(helpers.isSlotUsed(this.el, "empty-state") ? (index.h("slot", { name: "empty-state" })) : (index.h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (index.h("ic-loading-indicator", { appearance: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, class: {
|
383
836
|
"loading-empty": loading,
|
@@ -390,7 +843,9 @@ const DataTable = class {
|
|
390
843
|
get el() { return index.getElement(this); }
|
391
844
|
static get watchers() { return {
|
392
845
|
"loading": ["loadingHandler"],
|
846
|
+
"truncationPattern": ["truncationPatternHandler"],
|
393
847
|
"data": ["dataHandler"],
|
848
|
+
"density": ["densityHandler"],
|
394
849
|
"globalRowHeight": ["rowHeightChangeHandler"],
|
395
850
|
"variableRowHeight": ["rowHeightChangeHandler"]
|
396
851
|
}; }
|