@ukic/canary-web-components 2.0.0-canary.23 → 2.0.0-canary.25
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-85c5ca15.js → helpers-6817cfbb.js} +20 -31
- package/dist/cjs/helpers-6817cfbb.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +7 -7
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +3 -3
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +11 -4
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +14 -11
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +26 -14
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +21 -18
- 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-vertical.cjs.entry.js → ic-card.cjs.entry.js} +5 -5
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +14 -5
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +9 -2
- 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-entity.cjs.entry.js +29 -0
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +9 -8
- 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 +205 -51
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +3 -2
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +5 -3
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +96 -11
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +7 -7
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +8 -8
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +6 -5
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +7 -7
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +8 -7
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +4 -4
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +24 -20
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +6 -5
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +11 -9
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +9 -7
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +8 -8
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -6
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +99 -92
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +2 -2
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +25 -14
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +17 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +23 -17
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +21 -13
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +5 -4
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +10 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +42 -39
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +15 -15
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +5 -4
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +11 -0
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +4 -3
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +7 -0
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +7 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +34 -82
- 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 +12 -12
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +5 -5
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +10 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/ic-data-table/ic-data-table.css +31 -7
- package/dist/collection/components/ic-data-table/ic-data-table.js +323 -56
- 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 +149 -54
- 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 +15 -0
- 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 +20 -1
- 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 +9 -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 +21 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +10 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.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 +30 -7
- 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 +12 -14
- package/dist/collection/components/ic-select-with-multi/ic-select.js +142 -13
- 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/utils/helpers.js +22 -0
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers2.js +18 -29
- 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 +1 -127
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-alert2.js +139 -0
- package/dist/components/ic-alert2.js.map +1 -0
- package/dist/components/ic-back-to-top.js +15 -24
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +30 -16
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +3 -3
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +14 -11
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/{ic-card-vertical.js → ic-card.js} +10 -10
- package/dist/components/ic-card.js.map +1 -0
- package/dist/components/ic-checkbox-group.js +5 -5
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +20 -5
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +10 -2
- 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-entity.js +53 -0
- package/dist/components/ic-data-entity.js.map +1 -0
- package/dist/components/ic-data-row.js +11 -9
- 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 +212 -52
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +3 -1
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +5 -2
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +112 -14
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-empty-state2.js +6 -6
- package/dist/components/ic-empty-state2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +9 -9
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +7 -12
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +7 -7
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +9 -7
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +15 -10
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +11 -9
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +7 -5
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +8 -8
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-item2.js +2 -2
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +10 -7
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +11 -8
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-group.js +8 -8
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +4 -4
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +8 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +1 -1
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination2.js +34 -36
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +2 -2
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +27 -15
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +25 -6
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +26 -19
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select-with-multi.js +28 -13
- package/dist/components/ic-select-with-multi.js.map +1 -1
- package/dist/components/ic-select2.js +28 -13
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +6 -6
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +6 -4
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +12 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +48 -45
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +15 -15
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +6 -4
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +11 -0
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +5 -3
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +8 -0
- 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 +54 -50
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-toast-region.js +9 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +35 -85
- 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-top-navigation.js +3 -3
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +5 -5
- 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-0896531a.entry.js → p-0180e00a.entry.js} +2 -2
- package/dist/core/p-0180e00a.entry.js.map +1 -0
- package/dist/core/p-046f4de6.entry.js +2 -0
- package/dist/core/p-046f4de6.entry.js.map +1 -0
- package/dist/core/{p-00b29b5c.entry.js → p-0ec04c16.entry.js} +2 -2
- package/dist/core/p-0ec04c16.entry.js.map +1 -0
- package/dist/core/p-13993bf3.entry.js +2 -0
- package/dist/core/p-13993bf3.entry.js.map +1 -0
- package/dist/core/p-16a48a63.entry.js +2 -0
- package/dist/core/p-16a48a63.entry.js.map +1 -0
- package/dist/core/{p-401d0c66.entry.js → p-20997691.entry.js} +2 -2
- package/dist/core/{p-64b1e4a8.entry.js → p-216fbd5e.entry.js} +2 -2
- package/dist/core/p-216fbd5e.entry.js.map +1 -0
- package/dist/core/p-297e99cf.js +2 -0
- package/dist/core/p-297e99cf.js.map +1 -0
- package/dist/core/p-2d063032.entry.js +2 -0
- package/dist/core/p-2d063032.entry.js.map +1 -0
- package/dist/core/p-2ee5d3fb.entry.js +2 -0
- package/dist/core/p-2ee5d3fb.entry.js.map +1 -0
- package/dist/core/p-2f7e6e38.entry.js +2 -0
- package/dist/core/p-2f7e6e38.entry.js.map +1 -0
- package/dist/core/p-3a59391f.entry.js +2 -0
- package/dist/core/p-3a59391f.entry.js.map +1 -0
- package/dist/core/p-3ba4335c.entry.js +2 -0
- package/dist/core/p-3ba4335c.entry.js.map +1 -0
- package/dist/core/p-40e5fa80.entry.js +2 -0
- package/dist/core/p-40e5fa80.entry.js.map +1 -0
- package/dist/core/p-418a84d4.entry.js +2 -0
- package/dist/core/p-418a84d4.entry.js.map +1 -0
- package/dist/core/p-41916ef7.entry.js +2 -0
- package/dist/core/p-41916ef7.entry.js.map +1 -0
- package/dist/core/{p-4188b38a.entry.js → p-452985d9.entry.js} +2 -2
- package/dist/core/{p-f1072c28.entry.js.map → p-452985d9.entry.js.map} +1 -1
- package/dist/core/p-486a6957.entry.js +2 -0
- package/dist/core/p-486a6957.entry.js.map +1 -0
- package/dist/core/{p-21ecca00.entry.js → p-5348af01.entry.js} +2 -2
- package/dist/core/p-5348af01.entry.js.map +1 -0
- package/dist/core/{p-54306250.entry.js → p-5fea8f1c.entry.js} +2 -2
- package/dist/core/{p-54306250.entry.js.map → p-5fea8f1c.entry.js.map} +1 -1
- package/dist/core/p-6358925c.entry.js +2 -0
- package/dist/core/p-6358925c.entry.js.map +1 -0
- package/dist/core/p-6398a726.entry.js +2 -0
- package/dist/core/p-6398a726.entry.js.map +1 -0
- package/dist/core/{p-3f2ae26e.entry.js → p-648fb902.entry.js} +2 -2
- package/dist/core/p-648fb902.entry.js.map +1 -0
- package/dist/core/p-673a4a62.entry.js +2 -0
- package/dist/core/p-673a4a62.entry.js.map +1 -0
- package/dist/core/{p-88ba5a88.entry.js → p-67ae9d37.entry.js} +2 -2
- package/dist/core/p-6af080d3.entry.js +2 -0
- package/dist/core/p-6af080d3.entry.js.map +1 -0
- package/dist/core/{p-bcf04b18.entry.js → p-6b01e096.entry.js} +2 -2
- package/dist/core/p-6b01e096.entry.js.map +1 -0
- package/dist/core/{p-cbd730aa.entry.js → p-6b1fcf87.entry.js} +2 -2
- package/dist/core/p-6b1fcf87.entry.js.map +1 -0
- package/dist/core/{p-22260ed4.entry.js → p-6fb3d61e.entry.js} +2 -2
- package/dist/core/p-74abc3bb.entry.js +2 -0
- package/dist/core/p-74abc3bb.entry.js.map +1 -0
- package/dist/core/{p-f1072c28.entry.js → p-787ffd96.entry.js} +2 -2
- package/dist/core/p-787ffd96.entry.js.map +1 -0
- package/dist/core/p-789ae7f5.entry.js +2 -0
- package/dist/core/p-789ae7f5.entry.js.map +1 -0
- package/dist/core/{p-4309460f.entry.js → p-80d6a6b5.entry.js} +2 -2
- package/dist/core/{p-2fb52051.js → p-8128572e.js} +2 -2
- package/dist/core/p-89c7ea3e.entry.js +2 -0
- package/dist/core/p-89c7ea3e.entry.js.map +1 -0
- package/dist/core/p-8d276e8f.entry.js +2 -0
- package/dist/core/p-8d276e8f.entry.js.map +1 -0
- package/dist/core/{p-30d385c6.entry.js → p-92f701e7.entry.js} +2 -2
- package/dist/core/p-92f701e7.entry.js.map +1 -0
- package/dist/core/p-969cadfa.entry.js +2 -0
- package/dist/core/p-969cadfa.entry.js.map +1 -0
- package/dist/core/p-9777ebb1.entry.js +2 -0
- package/dist/core/p-9777ebb1.entry.js.map +1 -0
- package/dist/core/{p-41a53070.entry.js → p-97f141a6.entry.js} +2 -2
- package/dist/core/p-97f141a6.entry.js.map +1 -0
- package/dist/core/p-989310a8.entry.js +2 -0
- package/dist/core/p-989310a8.entry.js.map +1 -0
- package/dist/core/p-99185fd5.entry.js +2 -0
- package/dist/core/p-99185fd5.entry.js.map +1 -0
- package/dist/core/p-99f96c33.entry.js +2 -0
- package/dist/core/p-99f96c33.entry.js.map +1 -0
- package/dist/core/{p-ede631c5.entry.js → p-9b34989b.entry.js} +2 -2
- package/dist/core/{p-b6e208e3.entry.js → p-a72af8db.entry.js} +2 -2
- package/dist/core/p-aa72f551.entry.js +2 -0
- package/dist/core/p-aa72f551.entry.js.map +1 -0
- package/dist/core/p-aaaa9261.entry.js +2 -0
- package/dist/core/p-aaaa9261.entry.js.map +1 -0
- package/dist/core/p-b2c433e2.entry.js +2 -0
- package/dist/core/p-b2c433e2.entry.js.map +1 -0
- package/dist/core/p-bd1f8741.entry.js +2 -0
- package/dist/core/p-bd1f8741.entry.js.map +1 -0
- package/dist/core/p-bee3fdb0.entry.js +2 -0
- package/dist/core/p-bee3fdb0.entry.js.map +1 -0
- package/dist/core/{p-2533d147.entry.js → p-bfc5f3f4.entry.js} +2 -2
- package/dist/core/p-bfc5f3f4.entry.js.map +1 -0
- package/dist/core/p-c6bdbe69.entry.js +2 -0
- package/dist/core/p-c6bdbe69.entry.js.map +1 -0
- package/dist/core/p-c98ce508.entry.js +2 -0
- package/dist/core/p-c98ce508.entry.js.map +1 -0
- package/dist/core/p-cb3afdbf.entry.js +2 -0
- package/dist/core/p-cb3afdbf.entry.js.map +1 -0
- package/dist/core/p-ccf72538.entry.js +2 -0
- package/dist/core/p-ccf72538.entry.js.map +1 -0
- package/dist/core/p-ce0999f1.entry.js +2 -0
- package/dist/core/p-ce0999f1.entry.js.map +1 -0
- package/dist/core/p-d02a4d1b.entry.js +2 -0
- package/dist/core/p-d02a4d1b.entry.js.map +1 -0
- package/dist/core/p-d362992d.entry.js +2 -0
- package/dist/core/p-d362992d.entry.js.map +1 -0
- package/dist/core/p-d8322108.entry.js +2 -0
- package/dist/core/p-d8322108.entry.js.map +1 -0
- package/dist/core/{p-125bc120.entry.js → p-d86cdbc8.entry.js} +2 -2
- package/dist/core/{p-a4d0f166.entry.js → p-da8255b8.entry.js} +2 -2
- package/dist/core/p-da8255b8.entry.js.map +1 -0
- package/dist/core/p-ee8a3de6.entry.js +2 -0
- package/dist/core/p-ee8a3de6.entry.js.map +1 -0
- package/dist/core/{p-be70c278.entry.js → p-f09b2041.entry.js} +2 -2
- package/dist/core/{p-be70c278.entry.js.map → p-f09b2041.entry.js.map} +1 -1
- package/dist/core/p-f1044e4d.entry.js +2 -0
- package/dist/core/p-f1044e4d.entry.js.map +1 -0
- package/dist/core/p-f10f7f37.entry.js +2 -0
- package/dist/core/p-f10f7f37.entry.js.map +1 -0
- package/dist/core/p-fa77211d.entry.js +2 -0
- package/dist/core/p-fa77211d.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f543bc77.js → helpers-5bd2012a.js} +19 -30
- package/dist/esm/helpers-5bd2012a.js.map +1 -0
- package/dist/esm/{helpers-0f5fe29b.js → helpers-886489d5.js} +2 -2
- package/dist/esm/{helpers-0f5fe29b.js.map → helpers-886489d5.js.map} +1 -1
- 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 +12 -5
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +15 -12
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +27 -15
- 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 +22 -19
- 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-vertical.entry.js → ic-card.entry.js} +6 -6
- package/dist/esm/ic-card.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +5 -6
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +15 -6
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +10 -3
- 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-entity.entry.js +25 -0
- package/dist/esm/ic-data-entity.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +10 -9
- 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 +206 -52
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +3 -2
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +5 -3
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +97 -12
- 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 +7 -6
- 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 +9 -8
- 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 +25 -21
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +7 -6
- 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 +11 -9
- package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-menu.entry.js +10 -8
- 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 +8 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +100 -93
- 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 +26 -15
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +18 -5
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +24 -18
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +21 -13
- 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 +5 -4
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +11 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +43 -40
- 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 +6 -5
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +11 -0
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +5 -4
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +8 -1
- 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 +7 -0
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +35 -83
- 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 +1 -1
- package/dist/esm/ic-tree-view.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js +6 -6
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +36 -9
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +16 -4
- package/dist/types/components/ic-data-table/story-data.d.ts +69 -8
- 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 +4 -0
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +31 -1
- package/dist/types/components.d.ts +133 -8
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +6 -0
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +1231 -843
- package/package.json +3 -3
- package/dist/cjs/helpers-85c5ca15.js.map +0 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +0 -28
- package/dist/cjs/ic-data-list.cjs.entry.js.map +0 -1
- package/dist/components/ic-card-vertical.js.map +0 -1
- package/dist/components/ic-data-list.js +0 -51
- package/dist/components/ic-data-list.js.map +0 -1
- package/dist/core/p-00b29b5c.entry.js.map +0 -1
- package/dist/core/p-01937eb0.entry.js +0 -2
- package/dist/core/p-01937eb0.entry.js.map +0 -1
- package/dist/core/p-06db67a5.entry.js +0 -2
- package/dist/core/p-06db67a5.entry.js.map +0 -1
- package/dist/core/p-0896531a.entry.js.map +0 -1
- package/dist/core/p-155054f4.entry.js +0 -2
- package/dist/core/p-155054f4.entry.js.map +0 -1
- package/dist/core/p-19be677b.entry.js +0 -2
- package/dist/core/p-19be677b.entry.js.map +0 -1
- package/dist/core/p-20aae323.entry.js +0 -2
- package/dist/core/p-20aae323.entry.js.map +0 -1
- package/dist/core/p-21ecca00.entry.js.map +0 -1
- package/dist/core/p-2533d147.entry.js.map +0 -1
- package/dist/core/p-2ec4ced3.entry.js +0 -2
- package/dist/core/p-2ec4ced3.entry.js.map +0 -1
- package/dist/core/p-30d385c6.entry.js.map +0 -1
- package/dist/core/p-3bd8a4fa.entry.js +0 -2
- package/dist/core/p-3bd8a4fa.entry.js.map +0 -1
- package/dist/core/p-3f2ae26e.entry.js.map +0 -1
- package/dist/core/p-4188b38a.entry.js.map +0 -1
- package/dist/core/p-41a53070.entry.js.map +0 -1
- package/dist/core/p-436d179b.entry.js +0 -2
- package/dist/core/p-436d179b.entry.js.map +0 -1
- package/dist/core/p-439d1a97.entry.js +0 -2
- package/dist/core/p-439d1a97.entry.js.map +0 -1
- package/dist/core/p-4974da93.entry.js +0 -2
- package/dist/core/p-4974da93.entry.js.map +0 -1
- package/dist/core/p-4d316a43.entry.js +0 -2
- package/dist/core/p-4d316a43.entry.js.map +0 -1
- package/dist/core/p-57527684.entry.js +0 -2
- package/dist/core/p-57527684.entry.js.map +0 -1
- package/dist/core/p-5a95dd44.entry.js +0 -2
- package/dist/core/p-5a95dd44.entry.js.map +0 -1
- package/dist/core/p-5cecbd1f.entry.js +0 -2
- package/dist/core/p-5cecbd1f.entry.js.map +0 -1
- package/dist/core/p-5e41f96d.entry.js +0 -2
- package/dist/core/p-5e41f96d.entry.js.map +0 -1
- package/dist/core/p-64826d54.entry.js +0 -2
- package/dist/core/p-64826d54.entry.js.map +0 -1
- package/dist/core/p-64b1e4a8.entry.js.map +0 -1
- package/dist/core/p-65cf6a11.entry.js +0 -2
- package/dist/core/p-65cf6a11.entry.js.map +0 -1
- package/dist/core/p-6a5ffe7d.entry.js +0 -2
- package/dist/core/p-6a5ffe7d.entry.js.map +0 -1
- package/dist/core/p-6c6c71ba.entry.js +0 -2
- package/dist/core/p-6c6c71ba.entry.js.map +0 -1
- package/dist/core/p-6f0e9434.entry.js +0 -2
- package/dist/core/p-6f0e9434.entry.js.map +0 -1
- package/dist/core/p-84eaa486.entry.js +0 -2
- package/dist/core/p-84eaa486.entry.js.map +0 -1
- package/dist/core/p-85cb6bb7.entry.js +0 -2
- package/dist/core/p-85cb6bb7.entry.js.map +0 -1
- package/dist/core/p-8c5b63c6.entry.js +0 -2
- package/dist/core/p-8c5b63c6.entry.js.map +0 -1
- package/dist/core/p-8da08c05.entry.js +0 -2
- package/dist/core/p-8da08c05.entry.js.map +0 -1
- package/dist/core/p-91cf89c8.entry.js +0 -2
- package/dist/core/p-91cf89c8.entry.js.map +0 -1
- package/dist/core/p-98981fa7.entry.js +0 -2
- package/dist/core/p-98981fa7.entry.js.map +0 -1
- package/dist/core/p-9d3e0e60.entry.js +0 -2
- package/dist/core/p-9d3e0e60.entry.js.map +0 -1
- package/dist/core/p-a2194364.entry.js +0 -2
- package/dist/core/p-a2194364.entry.js.map +0 -1
- package/dist/core/p-a4d0f166.entry.js.map +0 -1
- package/dist/core/p-aaa6f849.entry.js +0 -2
- package/dist/core/p-aaa6f849.entry.js.map +0 -1
- package/dist/core/p-adbe0d89.js +0 -2
- package/dist/core/p-adbe0d89.js.map +0 -1
- package/dist/core/p-b4ab627a.entry.js +0 -2
- package/dist/core/p-b4ab627a.entry.js.map +0 -1
- package/dist/core/p-b7abaec8.entry.js +0 -2
- package/dist/core/p-b7abaec8.entry.js.map +0 -1
- package/dist/core/p-bc4aec3a.entry.js +0 -2
- package/dist/core/p-bc4aec3a.entry.js.map +0 -1
- package/dist/core/p-bcf04b18.entry.js.map +0 -1
- package/dist/core/p-bf009b9a.entry.js +0 -2
- package/dist/core/p-bf009b9a.entry.js.map +0 -1
- package/dist/core/p-cbd730aa.entry.js.map +0 -1
- package/dist/core/p-d76e24e4.entry.js +0 -2
- package/dist/core/p-d76e24e4.entry.js.map +0 -1
- package/dist/core/p-d7bf1057.entry.js +0 -2
- package/dist/core/p-d7bf1057.entry.js.map +0 -1
- package/dist/core/p-d9254b14.entry.js +0 -2
- package/dist/core/p-d9254b14.entry.js.map +0 -1
- package/dist/core/p-e20f8772.entry.js +0 -2
- package/dist/core/p-e20f8772.entry.js.map +0 -1
- package/dist/core/p-e26769b0.entry.js +0 -2
- package/dist/core/p-e26769b0.entry.js.map +0 -1
- package/dist/core/p-e2dba05a.entry.js +0 -2
- package/dist/core/p-e2dba05a.entry.js.map +0 -1
- package/dist/core/p-ec862c7e.entry.js +0 -2
- package/dist/core/p-ec862c7e.entry.js.map +0 -1
- package/dist/core/p-ef9175d8.entry.js +0 -2
- package/dist/core/p-ef9175d8.entry.js.map +0 -1
- package/dist/core/p-f4db39eb.entry.js +0 -2
- package/dist/core/p-f4db39eb.entry.js.map +0 -1
- package/dist/esm/helpers-f543bc77.js.map +0 -1
- package/dist/esm/ic-card-vertical.entry.js.map +0 -1
- package/dist/esm/ic-data-list.entry.js +0 -24
- package/dist/esm/ic-data-list.entry.js.map +0 -1
- /package/dist/core/{p-401d0c66.entry.js.map → p-20997691.entry.js.map} +0 -0
- /package/dist/core/{p-88ba5a88.entry.js.map → p-67ae9d37.entry.js.map} +0 -0
- /package/dist/core/{p-22260ed4.entry.js.map → p-6fb3d61e.entry.js.map} +0 -0
- /package/dist/core/{p-4309460f.entry.js.map → p-80d6a6b5.entry.js.map} +0 -0
- /package/dist/core/{p-2fb52051.js.map → p-8128572e.js.map} +0 -0
- /package/dist/core/{p-ede631c5.entry.js.map → p-9b34989b.entry.js.map} +0 -0
- /package/dist/core/{p-b6e208e3.entry.js.map → p-a72af8db.entry.js.map} +0 -0
- /package/dist/core/{p-125bc120.entry.js.map → p-d86cdbc8.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-93509377.js';
|
2
|
-
import { d as
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-93509377.js';
|
2
|
+
import { d as dynamicDebounce, a as isEmptyString, p as pxToRem, i as isSlotUsed, b as addDataToPosition } from './helpers-5bd2012a.js';
|
3
3
|
|
4
4
|
const unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
|
5
5
|
<path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
|
@@ -13,12 +13,13 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
13
13
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
14
14
|
</svg>`;
|
15
15
|
|
16
|
-
const icDataTableCss = ":host{position:relative;display:
|
16
|
+
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height)}.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:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.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-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.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 .column-header-inner-container,td.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 .column-header-inner-container,td.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)}.row-header,.column-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{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.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;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.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;width:100%}@media screen and (min-width: 576px){.column-header-inner-container{display:flex;align-items:center}}";
|
17
17
|
|
18
18
|
const DataTable = class {
|
19
19
|
constructor(hostRef) {
|
20
20
|
registerInstance(this, hostRef);
|
21
21
|
this.icRowHeightChange = createEvent(this, "icRowHeightChange", 7);
|
22
|
+
this.icSortChange = createEvent(this, "icSortChange", 7);
|
22
23
|
this.DENSITY_HEIGHT_MULTIPLIER = {
|
23
24
|
dense: 0.8,
|
24
25
|
default: 1,
|
@@ -48,8 +49,11 @@ const DataTable = class {
|
|
48
49
|
this.icPageChangeEvent = false;
|
49
50
|
this.itemsPerPageChange = false;
|
50
51
|
this.DATA_ROW_HEIGHT_STRING = "data-row-height";
|
52
|
+
this.ROW_HEIGHT_CSS_VARIABLE = "--row-height";
|
51
53
|
this.DEFAULT_LINE_HEIGHT = 24;
|
52
54
|
this.densityUpdate = false;
|
55
|
+
this.truncationPatternUpdated = false;
|
56
|
+
this.isNewDebounceDelaySet = false;
|
53
57
|
this.updateSetRowHeight = (typographyEl) => {
|
54
58
|
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
55
59
|
if (typographyEl) {
|
@@ -57,7 +61,7 @@ const DataTable = class {
|
|
57
61
|
const rowHeight = fontSize *
|
58
62
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
59
63
|
if (typographyEl.scrollHeight > rowHeight) {
|
60
|
-
cellContainer.style.removeProperty(
|
64
|
+
cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
|
61
65
|
}
|
62
66
|
}
|
63
67
|
else {
|
@@ -66,24 +70,31 @@ const DataTable = class {
|
|
66
70
|
const rowHeight = fontSize *
|
67
71
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
68
72
|
if (typographyEl.scrollHeight > rowHeight) {
|
69
|
-
cellContainer.style.removeProperty(
|
73
|
+
cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
|
70
74
|
}
|
71
75
|
});
|
72
76
|
}
|
73
77
|
};
|
74
78
|
this.debounceDataTruncation = () => {
|
75
79
|
this.getTypographyElements().forEach((typographyEl) => {
|
76
|
-
|
80
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
81
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
77
82
|
this.resizeObserver = new ResizeObserver(
|
78
83
|
// This gets triggered twice due to updated data and see more/see less button
|
79
|
-
|
80
|
-
// console.log("resizeObserver triggered");
|
84
|
+
dynamicDebounce(() => {
|
81
85
|
this.dataTruncation(typographyEl);
|
82
|
-
|
86
|
+
if (!this.isNewDebounceDelaySet) {
|
87
|
+
this.setNewDebounceDelay(200);
|
88
|
+
}
|
89
|
+
}, () => this.debounceDelay));
|
83
90
|
this.resizeObserver.observe(typographyEl);
|
84
91
|
}
|
85
92
|
});
|
86
93
|
};
|
94
|
+
this.setNewDebounceDelay = (delay) => {
|
95
|
+
this.debounceDelay = delay;
|
96
|
+
this.isNewDebounceDelaySet = true;
|
97
|
+
};
|
87
98
|
this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
|
88
99
|
this.truncate = (typographyEl, cellContainer, tooltip) => {
|
89
100
|
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
@@ -212,11 +223,40 @@ const DataTable = class {
|
|
212
223
|
}
|
213
224
|
return {};
|
214
225
|
};
|
226
|
+
this.getColumnWidth = (columnWidth) => {
|
227
|
+
// TODO: Setting max width on columns
|
228
|
+
let columnWidthStyling = {};
|
229
|
+
if (columnWidth) {
|
230
|
+
if (typeof columnWidth === "string") {
|
231
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-width"]: columnWidth });
|
232
|
+
}
|
233
|
+
if (typeof columnWidth === "object" && !!Object.keys(columnWidth)) {
|
234
|
+
if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth) {
|
235
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-min-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth });
|
236
|
+
}
|
237
|
+
if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth) {
|
238
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-max-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth });
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
return columnWidthStyling;
|
243
|
+
};
|
244
|
+
this.getRowHeight = (currentRowHeight, columnProps, rowTextWrap, cell) => {
|
245
|
+
if ((this.truncationPattern || currentRowHeight) &&
|
246
|
+
!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) &&
|
247
|
+
!rowTextWrap &&
|
248
|
+
!this.getCellOptions(cell, "textWrap") &&
|
249
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element") {
|
250
|
+
return {
|
251
|
+
[this.ROW_HEIGHT_CSS_VARIABLE]: this.setRowHeight(currentRowHeight),
|
252
|
+
};
|
253
|
+
}
|
254
|
+
return {};
|
255
|
+
};
|
215
256
|
this.createCells = (row, rowIndex) => {
|
216
257
|
var _a;
|
217
258
|
const rowValues = Object.values(row);
|
218
259
|
const rowKeys = Object.keys(row);
|
219
|
-
const index = rowIndex;
|
220
260
|
const rowOptions = this.getRowOptions(rowKeys, rowValues);
|
221
261
|
let rowAlignment;
|
222
262
|
let rowEmphasis;
|
@@ -225,7 +265,7 @@ const DataTable = class {
|
|
225
265
|
rowAlignment = this.getObjectValue(rowValues[headerIndex], "rowAlignment");
|
226
266
|
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
227
267
|
}
|
228
|
-
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index }));
|
268
|
+
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: rowIndex }));
|
229
269
|
const currentRowHeight = variableRowHeightVal
|
230
270
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
231
271
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
@@ -246,7 +286,7 @@ const DataTable = class {
|
|
246
286
|
return (h("td", { class: {
|
247
287
|
["table-cell"]: true,
|
248
288
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
249
|
-
} }, h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
289
|
+
}, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
250
290
|
!isSlotUsed(this.el, cellSlotName)
|
251
291
|
? cell
|
252
292
|
: 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) ||
|
@@ -261,15 +301,7 @@ const DataTable = class {
|
|
261
301
|
!!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
|
262
302
|
!!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) ||
|
263
303
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
264
|
-
!!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: {
|
265
|
-
height: (this.truncationPattern || currentRowHeight) &&
|
266
|
-
!columnProps.textWrap &&
|
267
|
-
!rowOptions.textWrap &&
|
268
|
-
!this.getCellOptions(cell, "textWrap") &&
|
269
|
-
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element"
|
270
|
-
? this.setRowHeight(currentRowHeight)
|
271
|
-
: null,
|
272
|
-
}, "data-row-height": this.truncationPattern || currentRowHeight
|
304
|
+
!!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: Object.assign(Object.assign({}, this.getRowHeight(currentRowHeight, columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
273
305
|
? this.setRowHeight(currentRowHeight)
|
274
306
|
: null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) && (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" &&
|
275
307
|
!isSlotUsed(this.el, cellSlotName) && (h("ic-typography", { variant: "body", class: {
|
@@ -285,11 +317,11 @@ const DataTable = class {
|
|
285
317
|
});
|
286
318
|
};
|
287
319
|
this.createColumnHeaders = () => {
|
288
|
-
return this.columns.map(({ cellAlignment, colspan, icon, key, title }) => (h("th", { scope: "col", class: {
|
320
|
+
return this.columns.map(({ cellAlignment, colspan, icon, key, title, columnWidth }) => (h("th", { scope: "col", class: {
|
289
321
|
["column-header"]: true,
|
290
322
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
291
323
|
["updating-state-headers"]: this.updating && !this.loading,
|
292
|
-
}, colSpan: colspan }, h("div", { class: {
|
324
|
+
}, style: Object.assign({}, this.getColumnWidth(columnWidth)), colSpan: colspan }, h("div", { class: {
|
293
325
|
"column-header-inner-container": true,
|
294
326
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
295
327
|
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (h("slot", { name: `${key}-column-icon` })) : (icon &&
|
@@ -317,16 +349,18 @@ const DataTable = class {
|
|
317
349
|
/**
|
318
350
|
* Ensures that createCells has a value in data to map over to actually render the slot.
|
319
351
|
* Removes the need for the user to add it multiple times.
|
352
|
+
* `addDataToPosition` used to add the element in the correct column order.
|
353
|
+
* Adding empty string value in to give `createCells` something to loop over.
|
320
354
|
*/
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
355
|
+
const organisedData = data.map((row, rowIndex) => {
|
356
|
+
const slottedColumns = this.columns
|
357
|
+
.map(({ key }, index) => isSlotUsed(this.el, `${key}-${rowIndex}`) && { key, index })
|
358
|
+
.filter((col) => !!col);
|
359
|
+
return slottedColumns.length > 0
|
360
|
+
? addDataToPosition(row, slottedColumns, "")
|
361
|
+
: row;
|
328
362
|
});
|
329
|
-
return
|
363
|
+
return organisedData
|
330
364
|
.sort(!this.sortable ? undefined : this.getSortFunction())
|
331
365
|
.map((row, index) => {
|
332
366
|
return (h("tr", {
|
@@ -397,6 +431,10 @@ const DataTable = class {
|
|
397
431
|
this.sortedColumnOrder = sortOrders[nextSortOrderIndex];
|
398
432
|
sortButton.setAttribute("aria-label", this.getSortButtonLabel(column));
|
399
433
|
this.tableSorted = true;
|
434
|
+
this.icSortChange.emit({
|
435
|
+
columnName: column,
|
436
|
+
sorted: this.sortedColumnOrder,
|
437
|
+
});
|
400
438
|
};
|
401
439
|
this.getTypographyElements = () => {
|
402
440
|
return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)"));
|
@@ -419,6 +457,22 @@ const DataTable = class {
|
|
419
457
|
this.updateScrollOffset = () => {
|
420
458
|
this.scrollOffset = this.el.shadowRoot.querySelector(".table-row-container").scrollTop;
|
421
459
|
};
|
460
|
+
this.setTableDimensions = () => {
|
461
|
+
let tableHostDimensions = {};
|
462
|
+
if (this.width) {
|
463
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-width"]: this.width });
|
464
|
+
}
|
465
|
+
if (this.height) {
|
466
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-height"]: this.height });
|
467
|
+
}
|
468
|
+
if (this.maxWidth) {
|
469
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-max-width"]: this.maxWidth });
|
470
|
+
}
|
471
|
+
if (this.minWidth) {
|
472
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-min-width"]: this.minWidth });
|
473
|
+
}
|
474
|
+
return tableHostDimensions;
|
475
|
+
};
|
422
476
|
this.fromRow = 0;
|
423
477
|
this.previousRowsPerPage = undefined;
|
424
478
|
this.rowsPerPage = undefined;
|
@@ -429,15 +483,19 @@ const DataTable = class {
|
|
429
483
|
this.sortedColumnOrder = undefined;
|
430
484
|
this.toRow = undefined;
|
431
485
|
this.currentRowHeight = undefined;
|
486
|
+
this.debounceDelay = 0;
|
432
487
|
this.caption = undefined;
|
433
488
|
this.columns = undefined;
|
434
489
|
this.data = undefined;
|
435
490
|
this.density = "default";
|
436
491
|
this.embedded = false;
|
437
492
|
this.globalRowHeight = "auto";
|
493
|
+
this.height = undefined;
|
438
494
|
this.hideColumnHeaders = false;
|
439
495
|
this.loading = false;
|
440
496
|
this.loadingOptions = undefined;
|
497
|
+
this.maxWidth = undefined;
|
498
|
+
this.minWidth = undefined;
|
441
499
|
this.minimumLoadingDisplayDuration = 1000;
|
442
500
|
this.paginationBarOptions = {
|
443
501
|
itemsPerPageOptions: [
|
@@ -463,10 +521,12 @@ const DataTable = class {
|
|
463
521
|
};
|
464
522
|
this.stickyColumnHeaders = false;
|
465
523
|
this.stickyRowHeaders = false;
|
524
|
+
this.tableLayout = "fixed";
|
466
525
|
this.truncationPattern = undefined;
|
467
526
|
this.updating = false;
|
468
527
|
this.updatingOptions = undefined;
|
469
528
|
this.variableRowHeight = undefined;
|
529
|
+
this.width = undefined;
|
470
530
|
}
|
471
531
|
disconnectedCallback() {
|
472
532
|
var _a;
|
@@ -499,7 +559,8 @@ const DataTable = class {
|
|
499
559
|
}
|
500
560
|
if (this.truncationPattern) {
|
501
561
|
this.getTypographyElements().forEach((typographyEl) => {
|
502
|
-
|
562
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
563
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
503
564
|
this.dataTruncation(typographyEl);
|
504
565
|
}
|
505
566
|
});
|
@@ -510,12 +571,31 @@ const DataTable = class {
|
|
510
571
|
}
|
511
572
|
}
|
512
573
|
componentDidUpdate() {
|
513
|
-
|
574
|
+
// truncation updates invoked here once new/updated data has
|
575
|
+
// rendered to take into account updated .cell-container/ic-typography box model updates.
|
576
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING ||
|
577
|
+
this.truncationPattern === this.TOOLTIP_STRING) {
|
578
|
+
this.truncateUpdatedData();
|
579
|
+
}
|
514
580
|
}
|
515
581
|
truncateUpdatedData() {
|
516
582
|
if (this.dataUpdated) {
|
517
583
|
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
518
|
-
this.
|
584
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
585
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
586
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
587
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >=
|
588
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
589
|
+
this.resetShowHideTruncation(typographyEl);
|
590
|
+
return;
|
591
|
+
}
|
592
|
+
setTimeout(() => {
|
593
|
+
// slight delay due to data rendering
|
594
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
595
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
596
|
+
}
|
597
|
+
}, 150);
|
598
|
+
});
|
519
599
|
}
|
520
600
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
521
601
|
this.updateTruncationTooltip();
|
@@ -526,23 +606,49 @@ const DataTable = class {
|
|
526
606
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
527
607
|
this.updateTruncationTooltip();
|
528
608
|
}
|
609
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
610
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
611
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
612
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
613
|
+
this.createShowHideTruncation(typographyEl, cellContainer);
|
614
|
+
}
|
615
|
+
else {
|
616
|
+
typographyEl.resetTruncation().then(() => {
|
617
|
+
cellContainer.removeAttribute("style");
|
618
|
+
});
|
619
|
+
}
|
620
|
+
});
|
621
|
+
}
|
529
622
|
this.tableSorted = false;
|
530
623
|
}
|
531
624
|
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
532
625
|
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
533
626
|
if (this.rowHeightSet) {
|
534
627
|
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
628
|
+
const hasAutoRowHeight = this.globalRowHeight === "auto";
|
535
629
|
this.getTypographyElements().forEach((typographyEl) => {
|
536
630
|
var _a;
|
537
631
|
const cellContainer = this.getCellContainer(typographyEl);
|
538
632
|
const tooltipEl = this.getTooltip(typographyEl);
|
633
|
+
if (hasAutoRowHeight) {
|
634
|
+
cellContainer.style.height = null;
|
635
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
636
|
+
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
637
|
+
typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
|
638
|
+
}
|
639
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
640
|
+
this.resetShowHideTruncation(typographyEl);
|
641
|
+
}
|
642
|
+
return;
|
643
|
+
}
|
539
644
|
const rowHeight = fontSize *
|
540
645
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
541
646
|
// If the set row height is bigger than the cell container even
|
542
647
|
// with textWrap, set the row height
|
543
648
|
if (!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
|
544
|
-
rowHeight > cellContainer.clientHeight
|
545
|
-
cellContainer.
|
649
|
+
rowHeight > cellContainer.clientHeight &&
|
650
|
+
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
651
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
546
652
|
}
|
547
653
|
if (this.truncationPattern) {
|
548
654
|
// If the set row height is bigger than the typography truncation wrapper
|
@@ -608,12 +714,37 @@ const DataTable = class {
|
|
608
714
|
});
|
609
715
|
this.densityUpdate = false;
|
610
716
|
}
|
717
|
+
if (this.truncationPatternUpdated) {
|
718
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
719
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
720
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
721
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
722
|
+
if (typographyEl.scrollHeight > cellContainer.clientHeight) {
|
723
|
+
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
724
|
+
}
|
725
|
+
});
|
726
|
+
}
|
727
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
728
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
729
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
730
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
731
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
732
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
733
|
+
this.resetShowHideTruncation(typographyEl);
|
734
|
+
return;
|
735
|
+
}
|
736
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
737
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
738
|
+
}
|
739
|
+
});
|
740
|
+
}
|
741
|
+
}
|
611
742
|
}
|
612
743
|
createShowHideTruncation(typographyEl, cellContainer) {
|
613
744
|
typographyEl.checkMaxLines(typographyEl.scrollHeight);
|
614
745
|
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
615
746
|
typographyEl.setShowHideExpanded(false);
|
616
|
-
cellContainer.style.
|
747
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
617
748
|
}
|
618
749
|
addTooltipTruncation(typographyEl, cellContainer, tooltip) {
|
619
750
|
this.addLineClampCSS(typographyEl, cellContainer);
|
@@ -633,8 +764,9 @@ const DataTable = class {
|
|
633
764
|
handleTypographyTruncationExpandToggle({ detail, }) {
|
634
765
|
const { expanded, typographyEl } = detail;
|
635
766
|
const cellContainer = this.getCellContainer(typographyEl);
|
636
|
-
if (cellContainer.style.
|
637
|
-
|
767
|
+
if (cellContainer.style.getPropertyValue(this.ROW_HEIGHT_CSS_VARIABLE) &&
|
768
|
+
expanded) {
|
769
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, "inherit");
|
638
770
|
}
|
639
771
|
}
|
640
772
|
handlePageChange({ detail, target }) {
|
@@ -684,7 +816,8 @@ const DataTable = class {
|
|
684
816
|
}
|
685
817
|
}
|
686
818
|
truncationPatternHandler(newValue) {
|
687
|
-
if (newValue === this.
|
819
|
+
if (newValue === this.TOOLTIP_STRING) {
|
820
|
+
this.resetShowHideTruncation();
|
688
821
|
this.updateTruncationTooltip(true);
|
689
822
|
// Not using debounceDataTruncation here due to resizeObserver not being triggered
|
690
823
|
this.getTypographyElements().forEach((typographyEl) => {
|
@@ -693,11 +826,27 @@ const DataTable = class {
|
|
693
826
|
this.truncate(typographyEl, cellContainer, tooltip);
|
694
827
|
});
|
695
828
|
}
|
696
|
-
if (newValue === this.
|
829
|
+
if (newValue === this.SHOW_HIDE_STRING) {
|
697
830
|
// ResizeObserver is trigger here due to the see more/see less links being removed.
|
698
831
|
// The resizeObserver will also apply the tooltip where relevant
|
699
|
-
this.
|
832
|
+
this.updateTruncationTooltip(true);
|
833
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
834
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
835
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
836
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
837
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
838
|
+
this.resetShowHideTruncation(typographyEl);
|
839
|
+
return;
|
840
|
+
}
|
841
|
+
setTimeout(() => {
|
842
|
+
// slight delay due to data rendering
|
843
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
844
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
845
|
+
}
|
846
|
+
}, 150);
|
847
|
+
});
|
700
848
|
}
|
849
|
+
this.truncationPatternUpdated = true;
|
701
850
|
}
|
702
851
|
async dataHandler(newData) {
|
703
852
|
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
@@ -725,11 +874,13 @@ const DataTable = class {
|
|
725
874
|
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
726
875
|
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
727
876
|
typographyEl.setShowHideExpanded(false);
|
728
|
-
cellContainer.style.
|
877
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
729
878
|
}
|
730
879
|
else {
|
731
880
|
typographyEl.resetTruncation().then(() => {
|
732
|
-
|
881
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
882
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
883
|
+
}
|
733
884
|
});
|
734
885
|
}
|
735
886
|
}
|
@@ -737,7 +888,9 @@ const DataTable = class {
|
|
737
888
|
this.getTypographyElements().forEach((typographyEl) => {
|
738
889
|
const cellContainer = this.getCellContainer(typographyEl);
|
739
890
|
typographyEl.resetTruncation().then(() => {
|
740
|
-
|
891
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
892
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
893
|
+
}
|
741
894
|
});
|
742
895
|
});
|
743
896
|
}
|
@@ -785,11 +938,10 @@ const DataTable = class {
|
|
785
938
|
if (!typographyEl.getAttribute("style") && this.dataUpdated) {
|
786
939
|
this.addLineClampCSS(typographyEl, cellContainer);
|
787
940
|
}
|
788
|
-
// Adding the tableSorted boolean prevents the tooltip
|
789
|
-
// being regenerated and flashing
|
790
941
|
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
|
791
|
-
|
792
|
-
if (!typographyEl.getAttribute("style")
|
942
|
+
this.truncationPattern === this.TOOLTIP_STRING) {
|
943
|
+
if (!typographyEl.getAttribute("style") ||
|
944
|
+
typographyEl.style.cssText.includes("--ic-line-clamp: 0;")) {
|
793
945
|
this.addLineClampCSS(typographyEl, cellContainer);
|
794
946
|
}
|
795
947
|
this.createTruncationTooltip(typographyEl, cellContainer);
|
@@ -818,10 +970,12 @@ const DataTable = class {
|
|
818
970
|
}
|
819
971
|
render() {
|
820
972
|
const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
|
821
|
-
return (h("div", { class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("div", { class: {
|
973
|
+
return (h(Host, { style: Object.assign({}, this.setTableDimensions()) }, h("div", { class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("div", { class: {
|
822
974
|
["table-row-container"]: true,
|
823
975
|
scrollable,
|
824
|
-
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("table",
|
976
|
+
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("table", { style: {
|
977
|
+
["--table-layout"]: this.tableLayout,
|
978
|
+
} }, h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { class: {
|
825
979
|
["column-header-sticky"]: stickyColumnHeaders,
|
826
980
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
827
981
|
} }, h("tr", null, createColumnHeaders()))), updating &&
|
@@ -834,7 +988,7 @@ const DataTable = class {
|
|
834
988
|
"show-background": loadingOptions.showBackground,
|
835
989
|
}, description: loadingOptions.description || "Loading table data", label: loadingOptions.label || "Loading...", labelDuration: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.labelDuration, max: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.max, min: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.min, progress: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.progress, ref: (el) => (this.loadingIndicator = el) })), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (h("div", { class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (h("slot", { name: "pagination-bar" })) : (h("ic-pagination-bar", { totalItems: data.length, type: paginationBarOptions.type, rangeLabelType: paginationBarOptions.rangeLabelType, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, showGoToPageControl: paginationBarOptions.showGoToPageControl, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, alignment: paginationBarOptions.alignment, appearance: paginationBarOptions.appearance, itemLabel: paginationBarOptions.itemLabel, pageLabel: paginationBarOptions.pageLabel, hideRangeLabel: paginationBarOptions.hideRangeLabel })))), sortable && (h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
836
990
|
? `${sortedColumn} sorted ${sortedColumnOrder}`
|
837
|
-
: "table unsorted"))));
|
991
|
+
: "table unsorted")))));
|
838
992
|
}
|
839
993
|
get el() { return getElement(this); }
|
840
994
|
static get watchers() { return {
|