@ukic/canary-web-components 3.0.0-canary.17 → 3.0.0-canary.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-6f33d131.js → helpers-a5405964.js} +12 -20
- package/dist/cjs/helpers-a5405964.js.map +1 -0
- package/dist/cjs/{helpers-e2bbcec9.js → helpers-f4e7322b.js} +21 -37
- package/dist/cjs/helpers-f4e7322b.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +10 -8
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +110 -131
- 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 +6 -6
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +50 -66
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +26 -38
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +312 -320
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +7 -6
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +23 -22
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +12 -4
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +116 -164
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +65 -62
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +184 -252
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +149 -154
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +25 -6
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- 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-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +54 -68
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +62 -64
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +65 -63
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +8 -3
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +3 -5
- package/dist/collection/components/ic-data-table/ic-data-table.js +311 -319
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +1 -0
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +30 -22
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -2
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +13 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/utils/helpers.js +23 -51
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +20 -36
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +12 -20
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion.js +9 -7
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-badge.js +3 -3
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +57 -78
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +32 -51
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +105 -126
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +5 -5
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +8 -9
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox2.js +39 -43
- package/dist/components/ic-checkbox2.js.map +1 -1
- package/dist/components/ic-chip.js +28 -40
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +312 -320
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-empty-state2.js +2 -2
- package/dist/components/ic-empty-state2.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-hero.js +6 -5
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +4 -4
- 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 +11 -3
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +4 -4
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +17 -16
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +115 -163
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +67 -62
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +12 -23
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +4 -4
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +7 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +150 -154
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +141 -217
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +25 -5
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +5 -5
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +39 -30
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +53 -67
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +61 -63
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +2 -2
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +65 -63
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.js +8 -2
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +159 -109
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-bcf8c3d9.entry.js → p-0c9c6c31.entry.js} +2 -2
- package/dist/core/{p-bcf8c3d9.entry.js.map → p-0c9c6c31.entry.js.map} +1 -1
- package/dist/core/p-0e0e0942.js +2 -0
- package/dist/core/p-0e0e0942.js.map +1 -0
- package/dist/core/{p-1a76b6b4.entry.js → p-1673d010.entry.js} +2 -2
- package/dist/core/{p-1a76b6b4.entry.js.map → p-1673d010.entry.js.map} +1 -1
- package/dist/core/{p-0725255c.entry.js → p-16e78c1d.entry.js} +2 -2
- package/dist/core/p-16e78c1d.entry.js.map +1 -0
- package/dist/core/p-17926ee3.entry.js +2 -0
- package/dist/core/p-17926ee3.entry.js.map +1 -0
- package/dist/core/{p-75061bd0.entry.js → p-188ba287.entry.js} +2 -2
- package/dist/core/p-188ba287.entry.js.map +1 -0
- package/dist/core/{p-4f2391ec.entry.js → p-1f18bbf6.entry.js} +2 -2
- package/dist/core/{p-4f2391ec.entry.js.map → p-1f18bbf6.entry.js.map} +1 -1
- package/dist/core/{p-fa08e75c.entry.js → p-1fd22368.entry.js} +2 -2
- package/dist/core/{p-0e3a62cc.entry.js → p-2667c808.entry.js} +2 -2
- package/dist/core/p-28611f52.entry.js +2 -0
- package/dist/core/p-28611f52.entry.js.map +1 -0
- package/dist/core/{p-ba444517.entry.js → p-29a49ea2.entry.js} +2 -2
- package/dist/core/{p-ba444517.entry.js.map → p-29a49ea2.entry.js.map} +1 -1
- package/dist/core/{p-f34eee68.entry.js → p-3cb4ecef.entry.js} +2 -2
- package/dist/core/{p-f34eee68.entry.js.map → p-3cb4ecef.entry.js.map} +1 -1
- package/dist/core/p-4444e787.entry.js +2 -0
- package/dist/core/{p-30bcc30c.entry.js.map → p-4444e787.entry.js.map} +1 -1
- package/dist/core/p-4aaf10a5.entry.js +2 -0
- package/dist/core/p-4aaf10a5.entry.js.map +1 -0
- package/dist/core/{p-23665b88.entry.js → p-578a02ff.entry.js} +2 -2
- package/dist/core/{p-23665b88.entry.js.map → p-578a02ff.entry.js.map} +1 -1
- package/dist/core/{p-513619d5.entry.js → p-582da938.entry.js} +2 -2
- package/dist/core/{p-513619d5.entry.js.map → p-582da938.entry.js.map} +1 -1
- package/dist/core/{p-f35d81cb.entry.js → p-5926c2b2.entry.js} +2 -2
- package/dist/core/{p-f35d81cb.entry.js.map → p-5926c2b2.entry.js.map} +1 -1
- package/dist/core/p-61e78ce0.entry.js +2 -0
- package/dist/core/p-61e78ce0.entry.js.map +1 -0
- package/dist/core/p-671acf27.entry.js +2 -0
- package/dist/core/p-671acf27.entry.js.map +1 -0
- package/dist/core/{p-e6d3cd31.entry.js → p-6a63a73a.entry.js} +2 -2
- package/dist/core/{p-e6d3cd31.entry.js.map → p-6a63a73a.entry.js.map} +1 -1
- package/dist/core/{p-c3ba79d7.entry.js → p-6bfff7ba.entry.js} +2 -2
- package/dist/core/p-6bfff7ba.entry.js.map +1 -0
- package/dist/core/{p-9689784b.entry.js → p-6e0f4278.entry.js} +2 -2
- package/dist/core/p-7c3cd0b8.entry.js +2 -0
- package/dist/core/p-7c3cd0b8.entry.js.map +1 -0
- package/dist/core/p-7e4f5717.entry.js +2 -0
- package/dist/core/p-7e4f5717.entry.js.map +1 -0
- package/dist/core/{p-5aab7bb1.entry.js → p-7eaa223b.entry.js} +2 -2
- package/dist/core/{p-5aab7bb1.entry.js.map → p-7eaa223b.entry.js.map} +1 -1
- package/dist/core/p-8112444e.entry.js +2 -0
- package/dist/core/p-8112444e.entry.js.map +1 -0
- package/dist/core/{p-af1d6e41.entry.js → p-85a17585.entry.js} +2 -2
- package/dist/core/{p-3a9d2c5c.entry.js → p-864e337f.entry.js} +2 -2
- package/dist/core/{p-3a9d2c5c.entry.js.map → p-864e337f.entry.js.map} +1 -1
- package/dist/core/{p-bf903faa.entry.js → p-887b1302.entry.js} +2 -2
- package/dist/core/{p-bf903faa.entry.js.map → p-887b1302.entry.js.map} +1 -1
- package/dist/core/p-8ae0fd6f.entry.js +2 -0
- package/dist/core/p-8ae0fd6f.entry.js.map +1 -0
- package/dist/core/p-8d2d9e11.entry.js +2 -0
- package/dist/core/p-8d2d9e11.entry.js.map +1 -0
- package/dist/core/p-920f6480.entry.js +2 -0
- package/dist/core/p-920f6480.entry.js.map +1 -0
- package/dist/core/{p-74e0aa60.entry.js → p-9687e929.entry.js} +2 -2
- package/dist/core/{p-74e0aa60.entry.js.map → p-9687e929.entry.js.map} +1 -1
- package/dist/core/{p-7656c88f.entry.js → p-976f4280.entry.js} +2 -2
- package/dist/core/{p-7656c88f.entry.js.map → p-976f4280.entry.js.map} +1 -1
- package/dist/core/p-9989ec00.entry.js +2 -0
- package/dist/core/p-9989ec00.entry.js.map +1 -0
- package/dist/core/{p-7c819f45.entry.js → p-9a78f449.entry.js} +2 -2
- package/dist/core/{p-7c819f45.entry.js.map → p-9a78f449.entry.js.map} +1 -1
- package/dist/core/{p-09472c5e.entry.js → p-9aecbfe9.entry.js} +2 -2
- package/dist/core/{p-09472c5e.entry.js.map → p-9aecbfe9.entry.js.map} +1 -1
- package/dist/core/{p-45dbbdcb.entry.js → p-a894ddb6.entry.js} +2 -2
- package/dist/core/p-a894ddb6.entry.js.map +1 -0
- package/dist/core/p-abcaf14d.entry.js +2 -0
- package/dist/core/p-abcaf14d.entry.js.map +1 -0
- package/dist/core/p-aeeff0e5.entry.js +2 -0
- package/dist/core/p-aeeff0e5.entry.js.map +1 -0
- package/dist/core/{p-02cee2a0.entry.js → p-b7d117e8.entry.js} +2 -2
- package/dist/core/{p-e01ffbb8.entry.js → p-b92727c0.entry.js} +2 -2
- package/dist/core/{p-e01ffbb8.entry.js.map → p-b92727c0.entry.js.map} +1 -1
- package/dist/core/{p-27780b85.entry.js → p-b92e5fb3.entry.js} +2 -2
- package/dist/core/p-ba5e1b21.entry.js +2 -0
- package/dist/core/p-ba5e1b21.entry.js.map +1 -0
- package/dist/core/{p-de43d375.entry.js → p-bf3b853e.entry.js} +2 -2
- package/dist/core/{p-de43d375.entry.js.map → p-bf3b853e.entry.js.map} +1 -1
- package/dist/core/p-c3be8a0f.entry.js +2 -0
- package/dist/core/p-c3be8a0f.entry.js.map +1 -0
- package/dist/core/{p-f815f8c9.entry.js → p-c5ffe2cf.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js.map → p-c5ffe2cf.entry.js.map} +1 -1
- package/dist/core/{p-aa83f828.entry.js → p-c8d207e1.entry.js} +2 -2
- package/dist/core/p-ca7e1219.entry.js +2 -0
- package/dist/core/p-ca7e1219.entry.js.map +1 -0
- package/dist/core/p-d0c38d58.entry.js +2 -0
- package/dist/core/p-d0c38d58.entry.js.map +1 -0
- package/dist/core/{p-23ed8b99.entry.js → p-d4903dcd.entry.js} +2 -2
- package/dist/core/{p-23ed8b99.entry.js.map → p-d4903dcd.entry.js.map} +1 -1
- package/dist/core/{p-40f2f58e.entry.js → p-de1e04ac.entry.js} +2 -2
- package/dist/core/{p-40f2f58e.entry.js.map → p-de1e04ac.entry.js.map} +1 -1
- package/dist/core/{p-4b601e06.entry.js → p-dee21f6d.entry.js} +2 -2
- package/dist/core/{p-4b601e06.entry.js.map → p-dee21f6d.entry.js.map} +1 -1
- package/dist/core/{p-112d96ce.entry.js → p-e003ad46.entry.js} +2 -2
- package/dist/core/{p-112d96ce.entry.js.map → p-e003ad46.entry.js.map} +1 -1
- package/dist/core/{p-b3ac38c5.entry.js → p-e2629bfe.entry.js} +2 -2
- package/dist/core/{p-b3ac38c5.entry.js.map → p-e2629bfe.entry.js.map} +1 -1
- package/dist/core/p-e38dd019.entry.js +2 -0
- package/dist/core/p-e38dd019.entry.js.map +1 -0
- package/dist/core/{p-29f472ab.entry.js → p-e546d477.entry.js} +2 -2
- package/dist/core/p-e546d477.entry.js.map +1 -0
- package/dist/core/{p-b4168d61.entry.js → p-e64e27be.entry.js} +2 -2
- package/dist/core/{p-b4168d61.entry.js.map → p-e64e27be.entry.js.map} +1 -1
- package/dist/core/{p-eb4add0d.entry.js → p-ead9900a.entry.js} +2 -2
- package/dist/core/{p-eb4add0d.entry.js.map → p-ead9900a.entry.js.map} +1 -1
- package/dist/core/{p-c7080f8d.entry.js → p-eb74cab5.entry.js} +2 -2
- package/dist/core/{p-c7080f8d.entry.js.map → p-eb74cab5.entry.js.map} +1 -1
- package/dist/core/p-eca2fea1.js +2 -0
- package/dist/core/p-eca2fea1.js.map +1 -0
- package/dist/core/{p-f39cf9b1.entry.js → p-f6eaec92.entry.js} +2 -2
- package/dist/core/{p-5c363e21.entry.js → p-f9e78341.entry.js} +2 -2
- package/dist/core/{p-0a0b25c5.entry.js → p-fedfd000.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-0bb68835.js → helpers-ef2db990.js} +13 -21
- package/dist/esm/helpers-ef2db990.js.map +1 -0
- package/dist/esm/{helpers-fb59efa8.js → helpers-fc03923c.js} +22 -38
- package/dist/esm/helpers-fc03923c.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +10 -8
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +32 -51
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +111 -132
- 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 +6 -6
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +50 -66
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +26 -38
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +312 -320
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +1 -1
- package/dist/esm/ic-date-picker.entry.js +1 -1
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +7 -6
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +23 -22
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +12 -4
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +5 -5
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +116 -164
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +65 -62
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +184 -252
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +149 -154
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +25 -6
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +54 -68
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +62 -64
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +66 -64
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +8 -3
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +15 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +4 -1
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/dist/types/utils/helpers.d.ts +3 -3
- package/dist/types/utils/types.d.ts +2 -0
- package/hydrate/index.js +1524 -1738
- package/hydrate/index.mjs +1524 -1738
- package/package.json +3 -3
- package/dist/cjs/helpers-6f33d131.js.map +0 -1
- package/dist/cjs/helpers-e2bbcec9.js.map +0 -1
- package/dist/core/p-00df60bd.entry.js +0 -2
- package/dist/core/p-00df60bd.entry.js.map +0 -1
- package/dist/core/p-0725255c.entry.js.map +0 -1
- package/dist/core/p-1024726b.entry.js +0 -2
- package/dist/core/p-1024726b.entry.js.map +0 -1
- package/dist/core/p-29f472ab.entry.js.map +0 -1
- package/dist/core/p-30bcc30c.entry.js +0 -2
- package/dist/core/p-315ac907.entry.js +0 -2
- package/dist/core/p-315ac907.entry.js.map +0 -1
- package/dist/core/p-3ddf2dc7.entry.js +0 -2
- package/dist/core/p-3ddf2dc7.entry.js.map +0 -1
- package/dist/core/p-3ec9c8c2.entry.js +0 -2
- package/dist/core/p-3ec9c8c2.entry.js.map +0 -1
- package/dist/core/p-423c721c.entry.js +0 -2
- package/dist/core/p-423c721c.entry.js.map +0 -1
- package/dist/core/p-45dbbdcb.entry.js.map +0 -1
- package/dist/core/p-4933549f.entry.js +0 -2
- package/dist/core/p-4933549f.entry.js.map +0 -1
- package/dist/core/p-4c77e828.entry.js +0 -2
- package/dist/core/p-4c77e828.entry.js.map +0 -1
- package/dist/core/p-657321ee.entry.js +0 -2
- package/dist/core/p-657321ee.entry.js.map +0 -1
- package/dist/core/p-661f22bd.entry.js +0 -2
- package/dist/core/p-661f22bd.entry.js.map +0 -1
- package/dist/core/p-6634052e.entry.js +0 -2
- package/dist/core/p-6634052e.entry.js.map +0 -1
- package/dist/core/p-71166167.entry.js +0 -2
- package/dist/core/p-71166167.entry.js.map +0 -1
- package/dist/core/p-75061bd0.entry.js.map +0 -1
- package/dist/core/p-78709ece.entry.js +0 -2
- package/dist/core/p-78709ece.entry.js.map +0 -1
- package/dist/core/p-789f423c.entry.js +0 -2
- package/dist/core/p-789f423c.entry.js.map +0 -1
- package/dist/core/p-7d9ab461.entry.js +0 -2
- package/dist/core/p-7d9ab461.entry.js.map +0 -1
- package/dist/core/p-9e4a0c01.entry.js +0 -2
- package/dist/core/p-9e4a0c01.entry.js.map +0 -1
- package/dist/core/p-bdbd185c.js +0 -2
- package/dist/core/p-bdbd185c.js.map +0 -1
- package/dist/core/p-c3ba79d7.entry.js.map +0 -1
- package/dist/core/p-e185bfa7.entry.js +0 -2
- package/dist/core/p-e185bfa7.entry.js.map +0 -1
- package/dist/core/p-ed542433.js +0 -2
- package/dist/core/p-ed542433.js.map +0 -1
- package/dist/core/p-fc852e9b.entry.js +0 -2
- package/dist/core/p-fc852e9b.entry.js.map +0 -1
- package/dist/core/p-fe85b5b2.entry.js +0 -2
- package/dist/core/p-fe85b5b2.entry.js.map +0 -1
- package/dist/esm/helpers-0bb68835.js.map +0 -1
- package/dist/esm/helpers-fb59efa8.js.map +0 -1
- /package/dist/core/{p-fa08e75c.entry.js.map → p-1fd22368.entry.js.map} +0 -0
- /package/dist/core/{p-0e3a62cc.entry.js.map → p-2667c808.entry.js.map} +0 -0
- /package/dist/core/{p-9689784b.entry.js.map → p-6e0f4278.entry.js.map} +0 -0
- /package/dist/core/{p-af1d6e41.entry.js.map → p-85a17585.entry.js.map} +0 -0
- /package/dist/core/{p-02cee2a0.entry.js.map → p-b7d117e8.entry.js.map} +0 -0
- /package/dist/core/{p-27780b85.entry.js.map → p-b92e5fb3.entry.js.map} +0 -0
- /package/dist/core/{p-aa83f828.entry.js.map → p-c8d207e1.entry.js.map} +0 -0
- /package/dist/core/{p-f39cf9b1.entry.js.map → p-f6eaec92.entry.js.map} +0 -0
- /package/dist/core/{p-5c363e21.entry.js.map → p-f9e78341.entry.js.map} +0 -0
- /package/dist/core/{p-0a0b25c5.entry.js.map → p-fedfd000.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { b as isEmptyString, p as pxToRem, i as isSlotUsed, c as addDataToPosition, d as deviceSizeMatches, e as getSlotElements, f as checkResizeObserver, h as dynamicDebounce, j as IC_DEVICE_SIZES } from './helpers2.js';
|
3
3
|
import { d as defineCustomElement$i } from './ic-button2.js';
|
4
4
|
import { d as defineCustomElement$h } from './ic-checkbox2.js';
|
5
5
|
import { d as defineCustomElement$g } from './ic-empty-state2.js';
|
@@ -30,7 +30,7 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
30
30
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
31
31
|
</svg>`;
|
32
32
|
|
33
|
-
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);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{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-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.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-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.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)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.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-space-1px) solid var(--ic-data-table-header-keyline) !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{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left
|
33
|
+
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);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{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-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.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-data-table-cell-background-selected) !important}.table-row:hover{background-color:var(--ic-data-table-cell-background-hover) !important}.table-row-selected:hover{background-color:var(\n --ic-data-table-cell-background-selected-hover\n ) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.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)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.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-space-1px) solid var(--ic-data-table-header-keyline) !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{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.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-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-dialog) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.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 .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.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,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.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%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-dialog) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-description-text)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
34
34
|
const IcDataTableStyle0 = icDataTableCss;
|
35
35
|
|
36
36
|
const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLElement {
|
@@ -138,6 +138,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
138
138
|
pageLabel: "Page",
|
139
139
|
rangeLabelType: "page",
|
140
140
|
selectedItemsPerPage: 10,
|
141
|
+
selectItemsPerPageOnEnter: true,
|
141
142
|
setToFirstPageOnPaginationChange: false,
|
142
143
|
showGoToPageControl: true,
|
143
144
|
showItemsPerPageControl: true,
|
@@ -210,6 +211,176 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
210
211
|
};
|
211
212
|
this.getRowHeight = (cellContainer) => parseInt(getComputedStyle(document.documentElement).fontSize) *
|
212
213
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING) || "");
|
214
|
+
this.truncateUpdatedData = () => {
|
215
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
216
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
217
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
218
|
+
if (cellContainer) {
|
219
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
220
|
+
if (truncWrapper &&
|
221
|
+
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
|
222
|
+
truncWrapper.scrollHeight) {
|
223
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
224
|
+
return;
|
225
|
+
}
|
226
|
+
setTimeout(() => {
|
227
|
+
// slight delay due to data rendering
|
228
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
229
|
+
}, 150);
|
230
|
+
}
|
231
|
+
});
|
232
|
+
}
|
233
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
234
|
+
this.updateTruncationTooltip();
|
235
|
+
}
|
236
|
+
this.dataUpdated = false;
|
237
|
+
};
|
238
|
+
this.truncateTableSorted = () => {
|
239
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
240
|
+
this.updateTruncationTooltip();
|
241
|
+
}
|
242
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
243
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
244
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
245
|
+
if (cellContainer) {
|
246
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
247
|
+
this.createShowHideTruncation(typographyEl, cellContainer);
|
248
|
+
}
|
249
|
+
else {
|
250
|
+
typographyEl.resetTruncation().then(() => {
|
251
|
+
cellContainer.removeAttribute("style");
|
252
|
+
});
|
253
|
+
}
|
254
|
+
}
|
255
|
+
});
|
256
|
+
}
|
257
|
+
this.tableSorted = false;
|
258
|
+
};
|
259
|
+
this.truncateRowHeightSet = () => {
|
260
|
+
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
261
|
+
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
262
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
263
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
264
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
265
|
+
if (cellContainer) {
|
266
|
+
if (this.globalRowHeight === "auto") {
|
267
|
+
cellContainer.style.height = "";
|
268
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
269
|
+
cellContainer.removeAttribute(this.DATA_ROW_HEIGHT_STRING);
|
270
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
271
|
+
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
272
|
+
typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
|
273
|
+
}
|
274
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
275
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
276
|
+
}
|
277
|
+
return;
|
278
|
+
}
|
279
|
+
// If the set row height is bigger than the cell container even
|
280
|
+
// with textWrap, set the row height
|
281
|
+
if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
|
282
|
+
!cellContainer.style.height &&
|
283
|
+
this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
|
284
|
+
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
285
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
286
|
+
}
|
287
|
+
if (this.truncationPattern) {
|
288
|
+
// If the set row height is bigger than the typography truncation wrapper
|
289
|
+
// scroll height, remove see more / see less button
|
290
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
291
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
292
|
+
if (this.getShowHideButton(typographyEl) &&
|
293
|
+
truncWrapper &&
|
294
|
+
truncWrapper.scrollHeight <= cellContainer.clientHeight) {
|
295
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
296
|
+
return;
|
297
|
+
}
|
298
|
+
}
|
299
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
300
|
+
}
|
301
|
+
else {
|
302
|
+
this.updateSetRowHeight(typographyEl);
|
303
|
+
}
|
304
|
+
}
|
305
|
+
});
|
306
|
+
this.rowHeightSet = false;
|
307
|
+
};
|
308
|
+
this.truncateItemsPerPageChange = () => {
|
309
|
+
var _a;
|
310
|
+
// Only run truncation on the new rows
|
311
|
+
// when the number of items per page has increased
|
312
|
+
const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
|
313
|
+
if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
|
314
|
+
const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
|
315
|
+
newRows.forEach((row) => {
|
316
|
+
row.querySelectorAll("ic-typography").forEach((typographyEl) => {
|
317
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
318
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
319
|
+
if (cellContainer)
|
320
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
321
|
+
});
|
322
|
+
});
|
323
|
+
}
|
324
|
+
this.previousItemsPerPage = this.rowsPerPage;
|
325
|
+
this.itemsPerPageChange = false;
|
326
|
+
};
|
327
|
+
this.truncatePageChange = () => {
|
328
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
329
|
+
this.updateTruncationTooltip();
|
330
|
+
}
|
331
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
332
|
+
// set truncation to see more if opened and next/previous page is pressed
|
333
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
334
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
335
|
+
if (cellContainer &&
|
336
|
+
this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer) &&
|
337
|
+
!this.getShowHideButton(typographyEl)) {
|
338
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
339
|
+
}
|
340
|
+
});
|
341
|
+
}
|
342
|
+
this.icPageChangeEvent = false;
|
343
|
+
};
|
344
|
+
this.truncateDensityUpdate = () => {
|
345
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
346
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
347
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
348
|
+
if (cellContainer)
|
349
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
350
|
+
});
|
351
|
+
this.densityUpdate = false;
|
352
|
+
};
|
353
|
+
this.typographyScrollHeightExceedsContainerHeight = (typographyEl, cellContainer) => cellContainer && typographyEl.scrollHeight > cellContainer.clientHeight;
|
354
|
+
this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight = (typographyEl, cellContainer) => {
|
355
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
356
|
+
return (truncWrapper &&
|
357
|
+
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
|
358
|
+
truncWrapper.scrollHeight);
|
359
|
+
};
|
360
|
+
this.truncatePatternUpdated = () => {
|
361
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
362
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
363
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
364
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
365
|
+
if (cellContainer &&
|
366
|
+
this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
367
|
+
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
368
|
+
}
|
369
|
+
});
|
370
|
+
}
|
371
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
372
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
373
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
374
|
+
if (cellContainer) {
|
375
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
376
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
377
|
+
return;
|
378
|
+
}
|
379
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
380
|
+
}
|
381
|
+
});
|
382
|
+
}
|
383
|
+
};
|
213
384
|
this.updateSetRowHeight = (typographyEl) => {
|
214
385
|
const removeRowHeightVariable = (element) => {
|
215
386
|
const cellContainer = this.getCellContainer(element);
|
@@ -227,28 +398,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
227
398
|
});
|
228
399
|
}
|
229
400
|
};
|
230
|
-
this.debounceDataTruncation = () => {
|
231
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
232
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
233
|
-
if (cellContainer &&
|
234
|
-
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
235
|
-
this.resizeObserver = new ResizeObserver(
|
236
|
-
// This gets triggered twice due to updated data and see more/see less button
|
237
|
-
dynamicDebounce(() => {
|
238
|
-
this.dataTruncation(typographyEl);
|
239
|
-
if (!this.isNewDebounceDelaySet) {
|
240
|
-
this.debounceDelay = 200;
|
241
|
-
this.isNewDebounceDelaySet = true;
|
242
|
-
}
|
243
|
-
}, () => this.debounceDelay));
|
244
|
-
this.resizeObserver.observe(typographyEl);
|
245
|
-
}
|
246
|
-
});
|
247
|
-
};
|
248
401
|
this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
|
249
402
|
this.truncate = (typographyEl, cellContainer, tooltip) => {
|
250
403
|
var _a;
|
251
|
-
if ((typographyEl
|
404
|
+
if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
252
405
|
//24 is the height of a single line
|
253
406
|
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
254
407
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
@@ -268,52 +421,49 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
268
421
|
}
|
269
422
|
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
270
423
|
!isEmptyString(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.getAttribute("max-lines"))) {
|
271
|
-
this.
|
424
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
272
425
|
}
|
273
426
|
}
|
274
427
|
};
|
275
|
-
this.
|
276
|
-
|
428
|
+
this.addShowHideTruncationIfNeeded = (typographyEl, cellContainer) => {
|
429
|
+
if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
430
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
431
|
+
return true;
|
432
|
+
}
|
433
|
+
return false;
|
434
|
+
};
|
435
|
+
this.dataTruncation = (typographyEl, cellContainer) => {
|
277
436
|
// Tooltip truncation mentioned in AC. Will need revisiting
|
278
437
|
const tooltip = this.getTooltip(typographyEl);
|
279
|
-
|
280
|
-
if (!cellContainer ||
|
281
|
-
cellContainer.classList.contains("data-type-element") ||
|
438
|
+
if (cellContainer.classList.contains("data-type-element") ||
|
282
439
|
this.dataUpdated) {
|
283
440
|
return;
|
284
441
|
}
|
285
442
|
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
286
|
-
(
|
287
|
-
const showHideBtn = typographyEl.shadowRoot.querySelector("button");
|
443
|
+
this.getShowHideButton(typographyEl)) {
|
288
444
|
// If the see more/see less is present and the max lines is equal to the cell container
|
289
445
|
// remove the see more/see less button
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
this.resetShowHideTruncation(typographyEl);
|
296
|
-
}
|
446
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
447
|
+
if (truncWrapper &&
|
448
|
+
this.getLines(truncWrapper.scrollHeight) ===
|
449
|
+
Number(typographyEl.getAttribute("max-lines"))) {
|
450
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
297
451
|
}
|
298
452
|
}
|
299
453
|
// Deals with setting and resetting row height and re-truncating data
|
300
454
|
if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
|
301
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
302
455
|
// cellContainer.clientHeight - 24 removes the extra line by see more/see less
|
303
|
-
if (
|
304
|
-
|
305
|
-
truncWrapper.scrollHeight) {
|
306
|
-
this.resetShowHideTruncation(typographyEl);
|
456
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
457
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
307
458
|
return;
|
308
459
|
}
|
309
|
-
if (typographyEl
|
310
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
460
|
+
if (this.addShowHideTruncationIfNeeded(typographyEl, cellContainer)) {
|
311
461
|
return;
|
312
462
|
}
|
313
463
|
}
|
314
|
-
if (
|
315
|
-
|
316
|
-
|
464
|
+
if (typographyEl.scrollHeight > 0 &&
|
465
|
+
cellContainer.clientHeight > 0 &&
|
466
|
+
typographyEl.scrollHeight === cellContainer.clientHeight) {
|
317
467
|
if (tooltip) {
|
318
468
|
this.removeTooltip(cellContainer, typographyEl, tooltip);
|
319
469
|
}
|
@@ -322,6 +472,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
322
472
|
this.truncate(typographyEl, cellContainer, tooltip);
|
323
473
|
};
|
324
474
|
this.getTruncWrapper = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".trunc-wrapper"); };
|
475
|
+
this.getShowHideButton = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"); };
|
325
476
|
this.removeTextWrap = () => {
|
326
477
|
this.getTypographyElements().forEach((typographyEl) => {
|
327
478
|
const tableCell = typographyEl.closest("td");
|
@@ -333,6 +484,37 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
333
484
|
this.getCellContainer = (typographyEl) => typographyEl.closest(".cell-container");
|
334
485
|
this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
|
335
486
|
array.forEach((val) => val.textWrap && delete val.textWrap);
|
487
|
+
this.resetSingleShowHideTruncation = (typographyEl, cellContainer) => {
|
488
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
489
|
+
if (!(cellContainer && truncWrapper))
|
490
|
+
return;
|
491
|
+
if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
|
492
|
+
!isEmptyString(typographyEl.getAttribute("max-lines")) &&
|
493
|
+
Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
|
494
|
+
Number(typographyEl.getAttribute("max-lines"))) {
|
495
|
+
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
496
|
+
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
497
|
+
typographyEl.setShowHideExpanded(false);
|
498
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
499
|
+
}
|
500
|
+
else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
|
501
|
+
typographyEl.resetTruncation().then(() => {
|
502
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
503
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
504
|
+
}
|
505
|
+
});
|
506
|
+
}
|
507
|
+
};
|
508
|
+
this.resetAllShowHideTruncation = () => {
|
509
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
510
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
511
|
+
typographyEl.resetTruncation().then(() => {
|
512
|
+
if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
513
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
514
|
+
}
|
515
|
+
});
|
516
|
+
});
|
517
|
+
};
|
336
518
|
this.startLoadingTimer = () => {
|
337
519
|
this.hasLoadedForOneSecond = false;
|
338
520
|
this.timerStarted = Date.now();
|
@@ -365,7 +547,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
365
547
|
};
|
366
548
|
this.createUpdatingIndicator = () => {
|
367
549
|
const { description, max, min, progress, monochrome } = this.updatingOptions || {};
|
368
|
-
return (h("th", { colSpan: this.columns.length, class: "updating-state" }, h("ic-loading-indicator", { theme: this.theme, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
550
|
+
return (h("th", { colSpan: this.columns.length + (this.rowSelection && this.data ? 1 : 0), class: "updating-state" }, h("ic-loading-indicator", { theme: this.theme, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
369
551
|
};
|
370
552
|
this.setRowHeight = (height) => pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
371
553
|
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
@@ -411,31 +593,25 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
411
593
|
gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
|
412
594
|
});
|
413
595
|
};
|
414
|
-
this.createCellContent = (columnProps, cell, cellSlotName, rowOptions,
|
415
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
596
|
+
this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
|
597
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
416
598
|
return (h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
417
599
|
!isSlotUsed(this.el, cellSlotName)
|
418
600
|
? cell
|
419
|
-
: undefined, class: Object.assign(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.
|
420
|
-
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.
|
421
|
-
|
422
|
-
|
423
|
-
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
424
|
-
!!rowAlignment ||
|
425
|
-
!!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
426
|
-
((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
|
427
|
-
this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
|
428
|
-
!!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
|
601
|
+
: undefined, class: Object.assign(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.horizontal) ||
|
602
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
603
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
604
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
429
605
|
!!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) ||
|
430
606
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
431
|
-
!!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((
|
607
|
+
!!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _e === void 0 ? void 0 : _e.icon), [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
432
608
|
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
433
609
|
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
434
610
|
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
435
611
|
!!rowEmphasis }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getCalculatedRowHeight(columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell, currentRowHeight)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
436
612
|
? this.setRowHeight(currentRowHeight)
|
437
|
-
: null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((
|
438
|
-
(cellValue("icon") || ((
|
613
|
+
: null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_f = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _f === void 0 ? void 0 : _f.onAllCells)) &&
|
614
|
+
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (h("span", { class: "icon", innerHTML: cellValue("icon") || ((_h = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _h === void 0 ? void 0 : _h.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
439
615
|
!isSlotUsed(this.el, cellSlotName) && (h("div", { class: {
|
440
616
|
"cell-text-wrapper": true,
|
441
617
|
"cell-text-no-wrap": !this.truncationPattern,
|
@@ -450,7 +626,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
450
626
|
Object.keys(cell).includes("description") && (h("div", { class: {
|
451
627
|
["cell-description"]: true,
|
452
628
|
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
453
|
-
} }, ((
|
629
|
+
} }, ((_j = cellValue("description")) === null || _j === void 0 ? void 0 : _j.icon) && (h("span", { class: "cell-description-icon", innerHTML: cellValue("description").icon })), h("ic-typography", { variant: "caption", class: "cell-description-text" }, (_l = (_k = cellValue("description")) === null || _k === void 0 ? void 0 : _k.data) !== null && _l !== void 0 ? _l : cellValue("description"))))))))));
|
454
630
|
};
|
455
631
|
this.createCells = (row, rowIndex) => {
|
456
632
|
var _a;
|
@@ -468,6 +644,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
468
644
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
469
645
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
470
646
|
return this.columns.map((columnName, index) => {
|
647
|
+
var _a, _b, _c, _d;
|
471
648
|
const cell = this.getObjectValue(row, columnName["key"]);
|
472
649
|
const columnProps = this.columns[index];
|
473
650
|
const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
|
@@ -480,12 +657,19 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
480
657
|
["row-header-sticky"]: this.stickyRowHeaders,
|
481
658
|
} }, cellValue("title")));
|
482
659
|
}
|
483
|
-
const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions,
|
660
|
+
const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
|
484
661
|
if (rowKeys[index] !== "rowOptions") {
|
485
662
|
return (h("td", { class: {
|
486
663
|
["table-cell"]: true,
|
487
664
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
488
665
|
["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
|
666
|
+
[`cell-vertical-align-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
667
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
668
|
+
rowAlignment ||
|
669
|
+
this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
670
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
671
|
+
!!rowAlignment ||
|
672
|
+
!!this.getCellAlignment(cell, "vertical"),
|
489
673
|
}, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, this.isObject(cell) &&
|
490
674
|
Object.keys(cell).includes("actionElement") ? (h("div", { class: "cell-grid-wrapper" }, CellContent, h("span", { class: "action-element", innerHTML: cellValue("actionElement"),
|
491
675
|
// eslint-disable-next-line react/jsx-no-bind
|
@@ -672,52 +856,50 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
672
856
|
cellContainer.setAttribute(this.DATA_ROW_HEIGHT_STRING, rowHeight.toString());
|
673
857
|
cellContainer.setAttribute("style", `${this.ROW_HEIGHT_CSS_VARIABLE}: ${rowHeight}px`);
|
674
858
|
};
|
859
|
+
this.getDescriptionHeight = (description) => {
|
860
|
+
const descriptionMarginTop = window
|
861
|
+
.getComputedStyle(description)
|
862
|
+
.getPropertyValue("margin-top");
|
863
|
+
return description.clientHeight + parseInt(descriptionMarginTop, 10);
|
864
|
+
};
|
675
865
|
/** Method to update the row heights on cells with descriptions and tooltip truncation */
|
676
866
|
this.updateCellHeightsWithDescriptions = () => {
|
677
867
|
var _a, _b;
|
868
|
+
const isXSDevice = deviceSizeMatches(IC_DEVICE_SIZES.XS);
|
678
869
|
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.CELL_DESCRIPTION_STRING)) === null || _b === void 0 ? void 0 : _b.forEach((description) => {
|
679
870
|
const cellContainer = description.closest(`.${this.CELL_CONTAINER_WITH_DESCRIPTION_STRING}`);
|
680
871
|
const typography = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(this.IC_TYPOGRAPHY_STRING);
|
681
|
-
const descriptionMarginTop = window
|
682
|
-
.getComputedStyle(description)
|
683
|
-
.getPropertyValue("margin-top");
|
684
|
-
const descriptionHeight = description.clientHeight + parseInt(descriptionMarginTop, 10);
|
685
872
|
if (typography &&
|
686
873
|
cellContainer &&
|
687
874
|
this.globalRowHeight &&
|
688
875
|
this.globalRowHeight !== "auto") {
|
876
|
+
const descriptionHeight = this.getDescriptionHeight(description);
|
877
|
+
const descriptionHeightPlusLineHeight = descriptionHeight + this.DEFAULT_LINE_HEIGHT;
|
689
878
|
if (!typography.textContent &&
|
690
|
-
|
879
|
+
descriptionHeightPlusLineHeight > this.globalRowHeight) {
|
691
880
|
this.updateRowHeightForDescriptions(descriptionHeight, cellContainer);
|
692
881
|
}
|
693
882
|
else if (this.truncationPattern === this.TOOLTIP_STRING) {
|
694
|
-
if (
|
695
|
-
this.globalRowHeight) {
|
883
|
+
if (descriptionHeightPlusLineHeight > this.globalRowHeight) {
|
696
884
|
const cellIcon = cellContainer.querySelector(".icon");
|
697
|
-
|
885
|
+
let rowHeight = descriptionHeightPlusLineHeight;
|
886
|
+
if (cellIcon && isXSDevice) {
|
698
887
|
// recalculate descriptionHeight as when a word break occurs this value changes
|
699
888
|
// Additional spacing given for 300-400% zoom
|
700
|
-
|
701
|
-
this.DEFAULT_LINE_HEIGHT +
|
702
|
-
cellIcon.clientHeight, cellContainer);
|
703
|
-
}
|
704
|
-
else {
|
705
|
-
this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
|
889
|
+
rowHeight += cellIcon.clientHeight;
|
706
890
|
}
|
891
|
+
this.updateRowHeightForDescriptions(rowHeight, cellContainer);
|
707
892
|
}
|
708
893
|
this.addLineClampCSS(typography, cellContainer);
|
709
894
|
// Additional case for show/hide truncation for when a description is present, but the text
|
710
895
|
// isn't overflowing the cell to trigger the show more button to appear.
|
711
896
|
}
|
712
897
|
else if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
713
|
-
|
714
|
-
this.globalRowHeight &&
|
898
|
+
descriptionHeightPlusLineHeight > this.globalRowHeight &&
|
715
899
|
typography.style.getPropertyValue("--truncation-max-lines") !==
|
716
900
|
"initial") {
|
717
|
-
this.updateRowHeightForDescriptions(
|
718
|
-
|
719
|
-
this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
|
720
|
-
}
|
901
|
+
this.updateRowHeightForDescriptions(descriptionHeightPlusLineHeight, cellContainer);
|
902
|
+
this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
|
721
903
|
}
|
722
904
|
}
|
723
905
|
});
|
@@ -768,12 +950,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
768
950
|
this.fixCellTooltip(slottedEl);
|
769
951
|
});
|
770
952
|
});
|
771
|
-
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) =>
|
772
|
-
const actionElement = actionElementSpan.firstChild;
|
773
|
-
if (actionElement) {
|
774
|
-
this.fixCellTooltip(actionElement);
|
775
|
-
}
|
776
|
-
});
|
953
|
+
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => this.fixCellTooltip(actionElementSpan));
|
777
954
|
};
|
778
955
|
this.handleClick = (event, callback) => callback(event);
|
779
956
|
this.renderTableBody = (loading, data, overlay) => {
|
@@ -873,10 +1050,19 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
873
1050
|
const cellContainer = this.getCellContainer(typographyEl);
|
874
1051
|
if (cellContainer &&
|
875
1052
|
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
876
|
-
this.dataTruncation(typographyEl);
|
1053
|
+
this.dataTruncation(typographyEl, cellContainer);
|
1054
|
+
this.resizeObserver = new ResizeObserver(
|
1055
|
+
// This gets triggered twice due to updated data and see more/see less button
|
1056
|
+
dynamicDebounce(() => {
|
1057
|
+
this.dataTruncation(typographyEl, cellContainer);
|
1058
|
+
if (!this.isNewDebounceDelaySet) {
|
1059
|
+
this.debounceDelay = 200;
|
1060
|
+
this.isNewDebounceDelaySet = true;
|
1061
|
+
}
|
1062
|
+
}, () => this.debounceDelay));
|
1063
|
+
this.resizeObserver.observe(typographyEl);
|
877
1064
|
}
|
878
1065
|
});
|
879
|
-
this.debounceDataTruncation();
|
880
1066
|
}
|
881
1067
|
if (this.globalRowHeight !== "auto") {
|
882
1068
|
this.updateSetRowHeight();
|
@@ -888,188 +1074,34 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
888
1074
|
// rendered to take into account updated .cell-container/ic-typography box model updates.
|
889
1075
|
if (this.truncationPattern === this.SHOW_HIDE_STRING ||
|
890
1076
|
this.truncationPattern === this.TOOLTIP_STRING) {
|
891
|
-
this.
|
892
|
-
|
893
|
-
}
|
894
|
-
componentDidRender() {
|
895
|
-
this.fixCellTooltips();
|
896
|
-
this.updateCellHeightsWithDescriptions();
|
897
|
-
this.adjustWidthForActionElement();
|
898
|
-
}
|
899
|
-
truncateUpdatedData() {
|
900
|
-
var _a;
|
901
|
-
if (this.dataUpdated) {
|
902
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
903
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
904
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
905
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
906
|
-
if (truncWrapper &&
|
907
|
-
cellContainer &&
|
908
|
-
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
|
909
|
-
truncWrapper.scrollHeight) {
|
910
|
-
this.resetShowHideTruncation(typographyEl);
|
911
|
-
return;
|
912
|
-
}
|
913
|
-
setTimeout(() => {
|
914
|
-
// slight delay due to data rendering
|
915
|
-
if (cellContainer &&
|
916
|
-
typographyEl.scrollHeight > cellContainer.clientHeight) {
|
917
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
918
|
-
}
|
919
|
-
}, 150);
|
920
|
-
});
|
921
|
-
}
|
922
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
923
|
-
this.updateTruncationTooltip();
|
1077
|
+
if (this.dataUpdated) {
|
1078
|
+
this.truncateUpdatedData();
|
924
1079
|
}
|
925
|
-
this.
|
926
|
-
|
927
|
-
if (this.tableSorted) {
|
928
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
929
|
-
this.updateTruncationTooltip();
|
930
|
-
}
|
931
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
932
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
933
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
934
|
-
if (cellContainer) {
|
935
|
-
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
936
|
-
this.createShowHideTruncation(typographyEl, cellContainer);
|
937
|
-
}
|
938
|
-
else {
|
939
|
-
typographyEl.resetTruncation().then(() => {
|
940
|
-
cellContainer.removeAttribute("style");
|
941
|
-
});
|
942
|
-
}
|
943
|
-
}
|
944
|
-
});
|
1080
|
+
if (this.tableSorted) {
|
1081
|
+
this.truncateTableSorted();
|
945
1082
|
}
|
946
|
-
this.
|
947
|
-
|
948
|
-
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
949
|
-
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
950
|
-
if (this.rowHeightSet) {
|
951
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
952
|
-
var _a, _b;
|
953
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
954
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
955
|
-
if (cellContainer) {
|
956
|
-
if (this.globalRowHeight === "auto") {
|
957
|
-
cellContainer.style.height = "";
|
958
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
959
|
-
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
960
|
-
typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
|
961
|
-
}
|
962
|
-
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
963
|
-
this.resetShowHideTruncation(typographyEl);
|
964
|
-
}
|
965
|
-
return;
|
966
|
-
}
|
967
|
-
// If the set row height is bigger than the cell container even
|
968
|
-
// with textWrap, set the row height
|
969
|
-
if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
|
970
|
-
!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
|
971
|
-
this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
|
972
|
-
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
973
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
974
|
-
}
|
975
|
-
if (this.truncationPattern) {
|
976
|
-
// If the set row height is bigger than the typography truncation wrapper
|
977
|
-
// scroll height, remove see more / see less button
|
978
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
979
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
980
|
-
const showHideBtn = (_b = typographyEl.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
|
981
|
-
if (showHideBtn &&
|
982
|
-
truncWrapper &&
|
983
|
-
truncWrapper.scrollHeight <= cellContainer.clientHeight) {
|
984
|
-
this.resetShowHideTruncation(typographyEl);
|
985
|
-
return;
|
986
|
-
}
|
987
|
-
}
|
988
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
989
|
-
}
|
990
|
-
else {
|
991
|
-
this.updateSetRowHeight(typographyEl);
|
992
|
-
}
|
993
|
-
}
|
994
|
-
});
|
995
|
-
this.rowHeightSet = false;
|
996
|
-
}
|
997
|
-
// Only run truncation on the new rows
|
998
|
-
// when the number of items per page has increased
|
999
|
-
if (this.itemsPerPageChange) {
|
1000
|
-
const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
|
1001
|
-
if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
|
1002
|
-
const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
|
1003
|
-
newRows.forEach((row) => {
|
1004
|
-
row.querySelectorAll("ic-typography").forEach((typographyEl) => {
|
1005
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1006
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
1007
|
-
if (cellContainer)
|
1008
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
1009
|
-
});
|
1010
|
-
});
|
1083
|
+
if (this.rowHeightSet) {
|
1084
|
+
this.truncateRowHeightSet();
|
1011
1085
|
}
|
1012
|
-
this.
|
1013
|
-
|
1014
|
-
}
|
1015
|
-
if (!this.initialLoad && this.icPageChangeEvent) {
|
1016
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
1017
|
-
this.updateTruncationTooltip();
|
1086
|
+
if (this.itemsPerPageChange) {
|
1087
|
+
this.truncateItemsPerPageChange();
|
1018
1088
|
}
|
1019
|
-
|
1020
|
-
|
1021
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1022
|
-
var _a;
|
1023
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1024
|
-
const showHideBtn = (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
|
1025
|
-
if (cellContainer &&
|
1026
|
-
(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
|
1027
|
-
!showHideBtn) {
|
1028
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1029
|
-
}
|
1030
|
-
});
|
1089
|
+
if (!this.initialLoad && this.icPageChangeEvent) {
|
1090
|
+
this.truncatePageChange();
|
1031
1091
|
}
|
1032
|
-
this.
|
1033
|
-
|
1034
|
-
if (this.densityUpdate) {
|
1035
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1036
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1037
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
1038
|
-
if (cellContainer)
|
1039
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
1040
|
-
});
|
1041
|
-
this.densityUpdate = false;
|
1042
|
-
}
|
1043
|
-
if (this.truncationPatternUpdated) {
|
1044
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
1045
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1046
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1047
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
1048
|
-
if (cellContainer &&
|
1049
|
-
typographyEl.scrollHeight > cellContainer.clientHeight) {
|
1050
|
-
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
1051
|
-
}
|
1052
|
-
});
|
1092
|
+
if (this.densityUpdate) {
|
1093
|
+
this.truncateDensityUpdate();
|
1053
1094
|
}
|
1054
|
-
|
1055
|
-
this.
|
1056
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1057
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1058
|
-
if (cellContainer) {
|
1059
|
-
if (truncWrapper &&
|
1060
|
-
(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
1061
|
-
truncWrapper.scrollHeight) {
|
1062
|
-
this.resetShowHideTruncation(typographyEl);
|
1063
|
-
return;
|
1064
|
-
}
|
1065
|
-
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
1066
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1067
|
-
}
|
1068
|
-
}
|
1069
|
-
});
|
1095
|
+
if (this.truncationPatternUpdated) {
|
1096
|
+
this.truncatePatternUpdated();
|
1070
1097
|
}
|
1071
1098
|
}
|
1072
1099
|
}
|
1100
|
+
componentDidRender() {
|
1101
|
+
this.fixCellTooltips();
|
1102
|
+
this.updateCellHeightsWithDescriptions();
|
1103
|
+
this.adjustWidthForActionElement();
|
1104
|
+
}
|
1073
1105
|
createShowHideTruncation(typographyEl, cellContainer, descriptionHeight = 0) {
|
1074
1106
|
typographyEl.checkMaxLines(typographyEl.scrollHeight);
|
1075
1107
|
typographyEl.setAttribute("max-lines", `${this.getLines(cellContainer.clientHeight - descriptionHeight)}`);
|
@@ -1133,18 +1165,17 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
1133
1165
|
handleDensityChange(ev) {
|
1134
1166
|
this.density = ev.detail.value;
|
1135
1167
|
}
|
1136
|
-
loadingHandler(
|
1137
|
-
if (newValue)
|
1138
|
-
this.startLoadingTimer();
|
1168
|
+
loadingHandler() {
|
1139
1169
|
if (this.loading) {
|
1170
|
+
this.startLoadingTimer();
|
1140
1171
|
setTimeout(() => {
|
1141
1172
|
this.showLoadingIndicator();
|
1142
1173
|
}, 500);
|
1143
1174
|
}
|
1144
1175
|
}
|
1145
|
-
truncationPatternHandler(
|
1146
|
-
if (
|
1147
|
-
this.
|
1176
|
+
truncationPatternHandler() {
|
1177
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
1178
|
+
this.resetAllShowHideTruncation();
|
1148
1179
|
this.updateTruncationTooltip(true);
|
1149
1180
|
// Not using debounceDataTruncation here due to resizeObserver not being triggered
|
1150
1181
|
this.getTypographyElements().forEach((typographyEl) => {
|
@@ -1154,25 +1185,20 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
1154
1185
|
this.truncate(typographyEl, cellContainer, tooltip);
|
1155
1186
|
});
|
1156
1187
|
}
|
1157
|
-
if (
|
1188
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
1158
1189
|
// ResizeObserver is trigger here due to the see more/see less links being removed.
|
1159
1190
|
// The resizeObserver will also apply the tooltip where relevant
|
1160
1191
|
this.updateTruncationTooltip(true);
|
1161
1192
|
this.getTypographyElements().forEach((typographyEl) => {
|
1162
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1163
1193
|
const cellContainer = this.getCellContainer(typographyEl);
|
1164
1194
|
if (cellContainer) {
|
1165
|
-
if (
|
1166
|
-
|
1167
|
-
truncWrapper.scrollHeight) {
|
1168
|
-
this.resetShowHideTruncation(typographyEl);
|
1195
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
1196
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
1169
1197
|
return;
|
1170
1198
|
}
|
1171
1199
|
setTimeout(() => {
|
1172
1200
|
// slight delay due to data rendering
|
1173
|
-
|
1174
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1175
|
-
}
|
1201
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
1176
1202
|
}, 150);
|
1177
1203
|
}
|
1178
1204
|
});
|
@@ -1194,40 +1220,6 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
1194
1220
|
async densityHandler() {
|
1195
1221
|
this.densityUpdate = true;
|
1196
1222
|
}
|
1197
|
-
resetShowHideTruncation(typographyEl) {
|
1198
|
-
if (typographyEl) {
|
1199
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1200
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1201
|
-
if (!(cellContainer && truncWrapper))
|
1202
|
-
return;
|
1203
|
-
if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
|
1204
|
-
!isEmptyString(typographyEl.getAttribute("max-lines")) &&
|
1205
|
-
Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
|
1206
|
-
Number(typographyEl.getAttribute("max-lines"))) {
|
1207
|
-
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
1208
|
-
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
1209
|
-
typographyEl.setShowHideExpanded(false);
|
1210
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
1211
|
-
}
|
1212
|
-
else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
|
1213
|
-
typographyEl.resetTruncation().then(() => {
|
1214
|
-
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
1215
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
1216
|
-
}
|
1217
|
-
});
|
1218
|
-
}
|
1219
|
-
}
|
1220
|
-
else {
|
1221
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1222
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1223
|
-
typographyEl.resetTruncation().then(() => {
|
1224
|
-
if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
1225
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
1226
|
-
}
|
1227
|
-
});
|
1228
|
-
});
|
1229
|
-
}
|
1230
|
-
}
|
1231
1223
|
rowHeightChangeHandler(newValue, oldValue) {
|
1232
1224
|
if (+newValue !== +oldValue) {
|
1233
1225
|
this.deleteTextWrapDataKey(this.data);
|
@@ -1326,22 +1318,22 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
1326
1318
|
? "deselect all"
|
1327
1319
|
: "select all remaining"
|
1328
1320
|
: "select all";
|
1329
|
-
return (h(Host, { key: '
|
1321
|
+
return (h(Host, { key: '2b548f8d26428034d51e7475883d6e7b407f28ec', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, h("div", { key: '5663c5ce124cf6f67435a8d18ddda4bc63a88e4f', class: "table-container" }, isSlotUsed(this.el, "title-bar") && h("slot", { key: '1ea59340e9633ca9a2f6d9fdba53d734050ddf84', name: "title-bar" }), h("div", { key: 'f2aef7502ca0c4124bf70b0fb4173e29b892004b', class: {
|
1330
1322
|
["table-row-container"]: true,
|
1331
1323
|
scrollable,
|
1332
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '
|
1324
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '061ab3f20e857b05a4cd668656b0a730f1d0645a', style: {
|
1333
1325
|
"--table-layout": tableLayout,
|
1334
|
-
} }, h("caption", { key: '
|
1326
|
+
} }, h("caption", { key: '727550fa24947c102cd231b1a4e262ffcba6e3b3', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: 'c07fa1fddf4fa8364c52444a3cc8df0d1bdaabaf', class: {
|
1335
1327
|
["column-header-sticky"]: stickyColumnHeaders,
|
1336
1328
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
1337
|
-
} }, h("tr", { key: '
|
1329
|
+
} }, h("tr", { key: '01735185f99abdd22a71edcaf944642d6e2c45de' }, rowSelection && data && (h("th", { key: '40c7157f3f3e45b6e9a9a0dfc65e2374526e150d', class: {
|
1338
1330
|
"column-header": true,
|
1339
1331
|
"checkbox-cell": true,
|
1340
1332
|
"updating-state-headers": updating && !loading,
|
1341
1333
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
1342
|
-
} }, h("div", { key: '
|
1334
|
+
} }, h("div", { key: '8d53b98f553294d9b2b9483f4ed001da905fcff4', class: "checkbox-wrapper" }, h("ic-checkbox", { key: 'b08cd440baff49256037e3ca3d27059a64c19d98', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
|
1343
1335
|
!loading &&
|
1344
|
-
(hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), h("div", { key: '
|
1336
|
+
(hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), h("div", { key: '8ddc07463825ac2c637cf7f413840acc2662d2c2', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (h("div", { key: 'd619ff136af4258047c21f7ea83ad8dd9ec77873', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (h("slot", { name: "pagination-bar" })) : (h("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (h("div", { key: 'f0a61b27a9e5dda26ed7c7ad0b4b7cadb0d910d7', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
1345
1337
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
1346
1338
|
sortedColumn} sorted ${sortedColumnOrder}`
|
1347
1339
|
: "table unsorted")))));
|