@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 { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
2
|
-
import { d as
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
2
|
+
import { d as dynamicDebounce, a as isEmptyString, p as pxToRem, i as isSlotUsed, b as addDataToPosition } from './helpers2.js';
|
3
3
|
import { d as defineCustomElement$h } from './ic-button2.js';
|
4
4
|
import { d as defineCustomElement$g } from './ic-empty-state2.js';
|
5
5
|
import { d as defineCustomElement$f } from './ic-input-component-container2.js';
|
@@ -29,7 +29,7 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
29
29
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
30
30
|
</svg>`;
|
31
31
|
|
32
|
-
const icDataTableCss = ":host{position:relative;display:
|
32
|
+
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}}";
|
33
33
|
|
34
34
|
const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLElement {
|
35
35
|
constructor() {
|
@@ -37,6 +37,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
37
37
|
this.__registerHost();
|
38
38
|
this.__attachShadow();
|
39
39
|
this.icRowHeightChange = createEvent(this, "icRowHeightChange", 7);
|
40
|
+
this.icSortChange = createEvent(this, "icSortChange", 7);
|
40
41
|
this.DENSITY_HEIGHT_MULTIPLIER = {
|
41
42
|
dense: 0.8,
|
42
43
|
default: 1,
|
@@ -66,8 +67,11 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
66
67
|
this.icPageChangeEvent = false;
|
67
68
|
this.itemsPerPageChange = false;
|
68
69
|
this.DATA_ROW_HEIGHT_STRING = "data-row-height";
|
70
|
+
this.ROW_HEIGHT_CSS_VARIABLE = "--row-height";
|
69
71
|
this.DEFAULT_LINE_HEIGHT = 24;
|
70
72
|
this.densityUpdate = false;
|
73
|
+
this.truncationPatternUpdated = false;
|
74
|
+
this.isNewDebounceDelaySet = false;
|
71
75
|
this.updateSetRowHeight = (typographyEl) => {
|
72
76
|
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
73
77
|
if (typographyEl) {
|
@@ -75,7 +79,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
75
79
|
const rowHeight = fontSize *
|
76
80
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
77
81
|
if (typographyEl.scrollHeight > rowHeight) {
|
78
|
-
cellContainer.style.removeProperty(
|
82
|
+
cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
|
79
83
|
}
|
80
84
|
}
|
81
85
|
else {
|
@@ -84,24 +88,31 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
84
88
|
const rowHeight = fontSize *
|
85
89
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
86
90
|
if (typographyEl.scrollHeight > rowHeight) {
|
87
|
-
cellContainer.style.removeProperty(
|
91
|
+
cellContainer.style.removeProperty(this.ROW_HEIGHT_CSS_VARIABLE);
|
88
92
|
}
|
89
93
|
});
|
90
94
|
}
|
91
95
|
};
|
92
96
|
this.debounceDataTruncation = () => {
|
93
97
|
this.getTypographyElements().forEach((typographyEl) => {
|
94
|
-
|
98
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
99
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
95
100
|
this.resizeObserver = new ResizeObserver(
|
96
101
|
// This gets triggered twice due to updated data and see more/see less button
|
97
|
-
|
98
|
-
// console.log("resizeObserver triggered");
|
102
|
+
dynamicDebounce(() => {
|
99
103
|
this.dataTruncation(typographyEl);
|
100
|
-
|
104
|
+
if (!this.isNewDebounceDelaySet) {
|
105
|
+
this.setNewDebounceDelay(200);
|
106
|
+
}
|
107
|
+
}, () => this.debounceDelay));
|
101
108
|
this.resizeObserver.observe(typographyEl);
|
102
109
|
}
|
103
110
|
});
|
104
111
|
};
|
112
|
+
this.setNewDebounceDelay = (delay) => {
|
113
|
+
this.debounceDelay = delay;
|
114
|
+
this.isNewDebounceDelaySet = true;
|
115
|
+
};
|
105
116
|
this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
|
106
117
|
this.truncate = (typographyEl, cellContainer, tooltip) => {
|
107
118
|
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
@@ -230,11 +241,40 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
230
241
|
}
|
231
242
|
return {};
|
232
243
|
};
|
244
|
+
this.getColumnWidth = (columnWidth) => {
|
245
|
+
// TODO: Setting max width on columns
|
246
|
+
let columnWidthStyling = {};
|
247
|
+
if (columnWidth) {
|
248
|
+
if (typeof columnWidth === "string") {
|
249
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-width"]: columnWidth });
|
250
|
+
}
|
251
|
+
if (typeof columnWidth === "object" && !!Object.keys(columnWidth)) {
|
252
|
+
if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth) {
|
253
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-min-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.minWidth });
|
254
|
+
}
|
255
|
+
if (columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth) {
|
256
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-max-width"]: columnWidth === null || columnWidth === void 0 ? void 0 : columnWidth.maxWidth });
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
return columnWidthStyling;
|
261
|
+
};
|
262
|
+
this.getRowHeight = (currentRowHeight, columnProps, rowTextWrap, cell) => {
|
263
|
+
if ((this.truncationPattern || currentRowHeight) &&
|
264
|
+
!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) &&
|
265
|
+
!rowTextWrap &&
|
266
|
+
!this.getCellOptions(cell, "textWrap") &&
|
267
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element") {
|
268
|
+
return {
|
269
|
+
[this.ROW_HEIGHT_CSS_VARIABLE]: this.setRowHeight(currentRowHeight),
|
270
|
+
};
|
271
|
+
}
|
272
|
+
return {};
|
273
|
+
};
|
233
274
|
this.createCells = (row, rowIndex) => {
|
234
275
|
var _a;
|
235
276
|
const rowValues = Object.values(row);
|
236
277
|
const rowKeys = Object.keys(row);
|
237
|
-
const index = rowIndex;
|
238
278
|
const rowOptions = this.getRowOptions(rowKeys, rowValues);
|
239
279
|
let rowAlignment;
|
240
280
|
let rowEmphasis;
|
@@ -243,7 +283,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
243
283
|
rowAlignment = this.getObjectValue(rowValues[headerIndex], "rowAlignment");
|
244
284
|
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
245
285
|
}
|
246
|
-
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index }));
|
286
|
+
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: rowIndex }));
|
247
287
|
const currentRowHeight = variableRowHeightVal
|
248
288
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
249
289
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
@@ -264,7 +304,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
264
304
|
return (h("td", { class: {
|
265
305
|
["table-cell"]: true,
|
266
306
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
267
|
-
} }, h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
307
|
+
}, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
268
308
|
!isSlotUsed(this.el, cellSlotName)
|
269
309
|
? cell
|
270
310
|
: 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) ||
|
@@ -279,15 +319,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
279
319
|
!!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
|
280
320
|
!!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) ||
|
281
321
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
282
|
-
!!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: {
|
283
|
-
height: (this.truncationPattern || currentRowHeight) &&
|
284
|
-
!columnProps.textWrap &&
|
285
|
-
!rowOptions.textWrap &&
|
286
|
-
!this.getCellOptions(cell, "textWrap") &&
|
287
|
-
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element"
|
288
|
-
? this.setRowHeight(currentRowHeight)
|
289
|
-
: null,
|
290
|
-
}, "data-row-height": this.truncationPattern || currentRowHeight
|
322
|
+
!!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
|
291
323
|
? this.setRowHeight(currentRowHeight)
|
292
324
|
: 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" &&
|
293
325
|
!isSlotUsed(this.el, cellSlotName) && (h("ic-typography", { variant: "body", class: {
|
@@ -303,11 +335,11 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
303
335
|
});
|
304
336
|
};
|
305
337
|
this.createColumnHeaders = () => {
|
306
|
-
return this.columns.map(({ cellAlignment, colspan, icon, key, title }) => (h("th", { scope: "col", class: {
|
338
|
+
return this.columns.map(({ cellAlignment, colspan, icon, key, title, columnWidth }) => (h("th", { scope: "col", class: {
|
307
339
|
["column-header"]: true,
|
308
340
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
309
341
|
["updating-state-headers"]: this.updating && !this.loading,
|
310
|
-
}, colSpan: colspan }, h("div", { class: {
|
342
|
+
}, style: Object.assign({}, this.getColumnWidth(columnWidth)), colSpan: colspan }, h("div", { class: {
|
311
343
|
"column-header-inner-container": true,
|
312
344
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
313
345
|
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (h("slot", { name: `${key}-column-icon` })) : (icon &&
|
@@ -335,16 +367,18 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
335
367
|
/**
|
336
368
|
* Ensures that createCells has a value in data to map over to actually render the slot.
|
337
369
|
* Removes the need for the user to add it multiple times.
|
370
|
+
* `addDataToPosition` used to add the element in the correct column order.
|
371
|
+
* Adding empty string value in to give `createCells` something to loop over.
|
338
372
|
*/
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
373
|
+
const organisedData = data.map((row, rowIndex) => {
|
374
|
+
const slottedColumns = this.columns
|
375
|
+
.map(({ key }, index) => isSlotUsed(this.el, `${key}-${rowIndex}`) && { key, index })
|
376
|
+
.filter((col) => !!col);
|
377
|
+
return slottedColumns.length > 0
|
378
|
+
? addDataToPosition(row, slottedColumns, "")
|
379
|
+
: row;
|
346
380
|
});
|
347
|
-
return
|
381
|
+
return organisedData
|
348
382
|
.sort(!this.sortable ? undefined : this.getSortFunction())
|
349
383
|
.map((row, index) => {
|
350
384
|
return (h("tr", {
|
@@ -415,6 +449,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
415
449
|
this.sortedColumnOrder = sortOrders[nextSortOrderIndex];
|
416
450
|
sortButton.setAttribute("aria-label", this.getSortButtonLabel(column));
|
417
451
|
this.tableSorted = true;
|
452
|
+
this.icSortChange.emit({
|
453
|
+
columnName: column,
|
454
|
+
sorted: this.sortedColumnOrder,
|
455
|
+
});
|
418
456
|
};
|
419
457
|
this.getTypographyElements = () => {
|
420
458
|
return Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)"));
|
@@ -437,6 +475,22 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
437
475
|
this.updateScrollOffset = () => {
|
438
476
|
this.scrollOffset = this.el.shadowRoot.querySelector(".table-row-container").scrollTop;
|
439
477
|
};
|
478
|
+
this.setTableDimensions = () => {
|
479
|
+
let tableHostDimensions = {};
|
480
|
+
if (this.width) {
|
481
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-width"]: this.width });
|
482
|
+
}
|
483
|
+
if (this.height) {
|
484
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-height"]: this.height });
|
485
|
+
}
|
486
|
+
if (this.maxWidth) {
|
487
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-max-width"]: this.maxWidth });
|
488
|
+
}
|
489
|
+
if (this.minWidth) {
|
490
|
+
tableHostDimensions = Object.assign(Object.assign({}, tableHostDimensions), { ["--table-min-width"]: this.minWidth });
|
491
|
+
}
|
492
|
+
return tableHostDimensions;
|
493
|
+
};
|
440
494
|
this.fromRow = 0;
|
441
495
|
this.previousRowsPerPage = undefined;
|
442
496
|
this.rowsPerPage = undefined;
|
@@ -447,15 +501,19 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
447
501
|
this.sortedColumnOrder = undefined;
|
448
502
|
this.toRow = undefined;
|
449
503
|
this.currentRowHeight = undefined;
|
504
|
+
this.debounceDelay = 0;
|
450
505
|
this.caption = undefined;
|
451
506
|
this.columns = undefined;
|
452
507
|
this.data = undefined;
|
453
508
|
this.density = "default";
|
454
509
|
this.embedded = false;
|
455
510
|
this.globalRowHeight = "auto";
|
511
|
+
this.height = undefined;
|
456
512
|
this.hideColumnHeaders = false;
|
457
513
|
this.loading = false;
|
458
514
|
this.loadingOptions = undefined;
|
515
|
+
this.maxWidth = undefined;
|
516
|
+
this.minWidth = undefined;
|
459
517
|
this.minimumLoadingDisplayDuration = 1000;
|
460
518
|
this.paginationBarOptions = {
|
461
519
|
itemsPerPageOptions: [
|
@@ -481,10 +539,12 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
481
539
|
};
|
482
540
|
this.stickyColumnHeaders = false;
|
483
541
|
this.stickyRowHeaders = false;
|
542
|
+
this.tableLayout = "fixed";
|
484
543
|
this.truncationPattern = undefined;
|
485
544
|
this.updating = false;
|
486
545
|
this.updatingOptions = undefined;
|
487
546
|
this.variableRowHeight = undefined;
|
547
|
+
this.width = undefined;
|
488
548
|
}
|
489
549
|
disconnectedCallback() {
|
490
550
|
var _a;
|
@@ -517,7 +577,8 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
517
577
|
}
|
518
578
|
if (this.truncationPattern) {
|
519
579
|
this.getTypographyElements().forEach((typographyEl) => {
|
520
|
-
|
580
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
581
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
521
582
|
this.dataTruncation(typographyEl);
|
522
583
|
}
|
523
584
|
});
|
@@ -528,12 +589,31 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
528
589
|
}
|
529
590
|
}
|
530
591
|
componentDidUpdate() {
|
531
|
-
|
592
|
+
// truncation updates invoked here once new/updated data has
|
593
|
+
// rendered to take into account updated .cell-container/ic-typography box model updates.
|
594
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING ||
|
595
|
+
this.truncationPattern === this.TOOLTIP_STRING) {
|
596
|
+
this.truncateUpdatedData();
|
597
|
+
}
|
532
598
|
}
|
533
599
|
truncateUpdatedData() {
|
534
600
|
if (this.dataUpdated) {
|
535
601
|
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
536
|
-
this.
|
602
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
603
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
604
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
605
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >=
|
606
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
607
|
+
this.resetShowHideTruncation(typographyEl);
|
608
|
+
return;
|
609
|
+
}
|
610
|
+
setTimeout(() => {
|
611
|
+
// slight delay due to data rendering
|
612
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
613
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
614
|
+
}
|
615
|
+
}, 150);
|
616
|
+
});
|
537
617
|
}
|
538
618
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
539
619
|
this.updateTruncationTooltip();
|
@@ -544,23 +624,49 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
544
624
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
545
625
|
this.updateTruncationTooltip();
|
546
626
|
}
|
627
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
628
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
629
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
630
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
631
|
+
this.createShowHideTruncation(typographyEl, cellContainer);
|
632
|
+
}
|
633
|
+
else {
|
634
|
+
typographyEl.resetTruncation().then(() => {
|
635
|
+
cellContainer.removeAttribute("style");
|
636
|
+
});
|
637
|
+
}
|
638
|
+
});
|
639
|
+
}
|
547
640
|
this.tableSorted = false;
|
548
641
|
}
|
549
642
|
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
550
643
|
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
551
644
|
if (this.rowHeightSet) {
|
552
645
|
const fontSize = parseInt(getComputedStyle(document.documentElement).fontSize);
|
646
|
+
const hasAutoRowHeight = this.globalRowHeight === "auto";
|
553
647
|
this.getTypographyElements().forEach((typographyEl) => {
|
554
648
|
var _a;
|
555
649
|
const cellContainer = this.getCellContainer(typographyEl);
|
556
650
|
const tooltipEl = this.getTooltip(typographyEl);
|
651
|
+
if (hasAutoRowHeight) {
|
652
|
+
cellContainer.style.height = null;
|
653
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
654
|
+
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
655
|
+
typographyEl.setAttribute("style", `--ic-line-clamp: 0`);
|
656
|
+
}
|
657
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
658
|
+
this.resetShowHideTruncation(typographyEl);
|
659
|
+
}
|
660
|
+
return;
|
661
|
+
}
|
557
662
|
const rowHeight = fontSize *
|
558
663
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
559
664
|
// If the set row height is bigger than the cell container even
|
560
665
|
// with textWrap, set the row height
|
561
666
|
if (!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
|
562
|
-
rowHeight > cellContainer.clientHeight
|
563
|
-
cellContainer.
|
667
|
+
rowHeight > cellContainer.clientHeight &&
|
668
|
+
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
669
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
564
670
|
}
|
565
671
|
if (this.truncationPattern) {
|
566
672
|
// If the set row height is bigger than the typography truncation wrapper
|
@@ -626,12 +732,37 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
626
732
|
});
|
627
733
|
this.densityUpdate = false;
|
628
734
|
}
|
735
|
+
if (this.truncationPatternUpdated) {
|
736
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
737
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
738
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
739
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
740
|
+
if (typographyEl.scrollHeight > cellContainer.clientHeight) {
|
741
|
+
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
742
|
+
}
|
743
|
+
});
|
744
|
+
}
|
745
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
746
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
747
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
748
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
749
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
750
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
751
|
+
this.resetShowHideTruncation(typographyEl);
|
752
|
+
return;
|
753
|
+
}
|
754
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
755
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
756
|
+
}
|
757
|
+
});
|
758
|
+
}
|
759
|
+
}
|
629
760
|
}
|
630
761
|
createShowHideTruncation(typographyEl, cellContainer) {
|
631
762
|
typographyEl.checkMaxLines(typographyEl.scrollHeight);
|
632
763
|
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
633
764
|
typographyEl.setShowHideExpanded(false);
|
634
|
-
cellContainer.style.
|
765
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
635
766
|
}
|
636
767
|
addTooltipTruncation(typographyEl, cellContainer, tooltip) {
|
637
768
|
this.addLineClampCSS(typographyEl, cellContainer);
|
@@ -651,8 +782,9 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
651
782
|
handleTypographyTruncationExpandToggle({ detail, }) {
|
652
783
|
const { expanded, typographyEl } = detail;
|
653
784
|
const cellContainer = this.getCellContainer(typographyEl);
|
654
|
-
if (cellContainer.style.
|
655
|
-
|
785
|
+
if (cellContainer.style.getPropertyValue(this.ROW_HEIGHT_CSS_VARIABLE) &&
|
786
|
+
expanded) {
|
787
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, "inherit");
|
656
788
|
}
|
657
789
|
}
|
658
790
|
handlePageChange({ detail, target }) {
|
@@ -702,7 +834,8 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
702
834
|
}
|
703
835
|
}
|
704
836
|
truncationPatternHandler(newValue) {
|
705
|
-
if (newValue === this.
|
837
|
+
if (newValue === this.TOOLTIP_STRING) {
|
838
|
+
this.resetShowHideTruncation();
|
706
839
|
this.updateTruncationTooltip(true);
|
707
840
|
// Not using debounceDataTruncation here due to resizeObserver not being triggered
|
708
841
|
this.getTypographyElements().forEach((typographyEl) => {
|
@@ -711,11 +844,27 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
711
844
|
this.truncate(typographyEl, cellContainer, tooltip);
|
712
845
|
});
|
713
846
|
}
|
714
|
-
if (newValue === this.
|
847
|
+
if (newValue === this.SHOW_HIDE_STRING) {
|
715
848
|
// ResizeObserver is trigger here due to the see more/see less links being removed.
|
716
849
|
// The resizeObserver will also apply the tooltip where relevant
|
717
|
-
this.
|
850
|
+
this.updateTruncationTooltip(true);
|
851
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
852
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
853
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
854
|
+
if ((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
855
|
+
(truncWrapper === null || truncWrapper === void 0 ? void 0 : truncWrapper.scrollHeight)) {
|
856
|
+
this.resetShowHideTruncation(typographyEl);
|
857
|
+
return;
|
858
|
+
}
|
859
|
+
setTimeout(() => {
|
860
|
+
// slight delay due to data rendering
|
861
|
+
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
862
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
863
|
+
}
|
864
|
+
}, 150);
|
865
|
+
});
|
718
866
|
}
|
867
|
+
this.truncationPatternUpdated = true;
|
719
868
|
}
|
720
869
|
async dataHandler(newData) {
|
721
870
|
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
@@ -743,11 +892,13 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
743
892
|
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
744
893
|
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
745
894
|
typographyEl.setShowHideExpanded(false);
|
746
|
-
cellContainer.style.
|
895
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
747
896
|
}
|
748
897
|
else {
|
749
898
|
typographyEl.resetTruncation().then(() => {
|
750
|
-
|
899
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
900
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
901
|
+
}
|
751
902
|
});
|
752
903
|
}
|
753
904
|
}
|
@@ -755,7 +906,9 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
755
906
|
this.getTypographyElements().forEach((typographyEl) => {
|
756
907
|
const cellContainer = this.getCellContainer(typographyEl);
|
757
908
|
typographyEl.resetTruncation().then(() => {
|
758
|
-
|
909
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
910
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
911
|
+
}
|
759
912
|
});
|
760
913
|
});
|
761
914
|
}
|
@@ -803,11 +956,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
803
956
|
if (!typographyEl.getAttribute("style") && this.dataUpdated) {
|
804
957
|
this.addLineClampCSS(typographyEl, cellContainer);
|
805
958
|
}
|
806
|
-
// Adding the tableSorted boolean prevents the tooltip
|
807
|
-
// being regenerated and flashing
|
808
959
|
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) &&
|
809
|
-
|
810
|
-
if (!typographyEl.getAttribute("style")
|
960
|
+
this.truncationPattern === this.TOOLTIP_STRING) {
|
961
|
+
if (!typographyEl.getAttribute("style") ||
|
962
|
+
typographyEl.style.cssText.includes("--ic-line-clamp: 0;")) {
|
811
963
|
this.addLineClampCSS(typographyEl, cellContainer);
|
812
964
|
}
|
813
965
|
this.createTruncationTooltip(typographyEl, cellContainer);
|
@@ -836,10 +988,12 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
836
988
|
}
|
837
989
|
render() {
|
838
990
|
const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationBarOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
|
839
|
-
return (h("div", { class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("div", { class: {
|
991
|
+
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: {
|
840
992
|
["table-row-container"]: true,
|
841
993
|
scrollable,
|
842
|
-
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("table",
|
994
|
+
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, isSlotUsed(this.el, "title-bar") && h("slot", { name: "title-bar" }), h("table", { style: {
|
995
|
+
["--table-layout"]: this.tableLayout,
|
996
|
+
} }, h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { class: {
|
843
997
|
["column-header-sticky"]: stickyColumnHeaders,
|
844
998
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
845
999
|
} }, h("tr", null, createColumnHeaders()))), updating &&
|
@@ -852,7 +1006,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
852
1006
|
"show-background": loadingOptions.showBackground,
|
853
1007
|
}, 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
|
854
1008
|
? `${sortedColumn} sorted ${sortedColumnOrder}`
|
855
|
-
: "table unsorted"))));
|
1009
|
+
: "table unsorted")))));
|
856
1010
|
}
|
857
1011
|
get el() { return this; }
|
858
1012
|
static get watchers() { return {
|
@@ -871,9 +1025,12 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
871
1025
|
"density": [1025],
|
872
1026
|
"embedded": [4],
|
873
1027
|
"globalRowHeight": [1032, "global-row-height"],
|
1028
|
+
"height": [1],
|
874
1029
|
"hideColumnHeaders": [4, "hide-column-headers"],
|
875
1030
|
"loading": [1028],
|
876
1031
|
"loadingOptions": [16],
|
1032
|
+
"maxWidth": [1, "max-width"],
|
1033
|
+
"minWidth": [1, "min-width"],
|
877
1034
|
"minimumLoadingDisplayDuration": [2, "minimum-loading-display-duration"],
|
878
1035
|
"paginationBarOptions": [16],
|
879
1036
|
"showPagination": [4, "show-pagination"],
|
@@ -881,10 +1038,12 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
881
1038
|
"sortOptions": [16],
|
882
1039
|
"stickyColumnHeaders": [4, "sticky-column-headers"],
|
883
1040
|
"stickyRowHeaders": [4, "sticky-row-headers"],
|
1041
|
+
"tableLayout": [1, "table-layout"],
|
884
1042
|
"truncationPattern": [1, "truncation-pattern"],
|
885
1043
|
"updating": [4],
|
886
1044
|
"updatingOptions": [16],
|
887
1045
|
"variableRowHeight": [1040],
|
1046
|
+
"width": [1],
|
888
1047
|
"fromRow": [32],
|
889
1048
|
"previousRowsPerPage": [32],
|
890
1049
|
"rowsPerPage": [32],
|
@@ -895,6 +1054,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
895
1054
|
"sortedColumnOrder": [32],
|
896
1055
|
"toRow": [32],
|
897
1056
|
"currentRowHeight": [32],
|
1057
|
+
"debounceDelay": [32],
|
898
1058
|
"resetRowHeights": [64]
|
899
1059
|
}, [[0, "typographyTruncationExpandToggle", "handleTypographyTruncationExpandToggle"], [0, "icPageChange", "handlePageChange"], [0, "icItemsPerPageChange", "handleItemsPerPageChange"], [0, "icTableDensityUpdate", "handleDensityChange"], [8, "click", "clickListener"]], {
|
900
1060
|
"loading": ["loadingHandler"],
|