@ukic/canary-web-components 3.0.0-canary.18 → 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/ic-accordion.cjs.entry.js +9 -7
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +8 -8
- 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 +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +20 -37
- package/dist/cjs/ic-checkbox_3.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 +2 -2
- 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 +311 -319
- 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 +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +6 -5
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +22 -21
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +11 -21
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +115 -163
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +64 -61
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +160 -231
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +49 -31
- 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 +23 -4
- 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 +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +13 -13
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- 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 +2 -2
- 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-theme.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +53 -67
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +61 -63
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +64 -62
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- 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 +310 -318
- 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/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/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-breadcrumb-group.js +2 -2
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +3 -3
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +1 -1
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox2.js +7 -12
- package/dist/components/ic-checkbox2.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 +311 -319
- 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 +12 -24
- 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-menu2.js +17 -16
- package/dist/components/ic-menu2.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 +5 -5
- 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 +50 -31
- 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 +24 -4
- 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 +4 -4
- 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-text-field2.js +16 -10
- 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-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.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-ef07630d.entry.js → p-0c9c6c31.entry.js} +2 -2
- package/dist/core/{p-ef07630d.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-824cbf95.entry.js → p-1673d010.entry.js} +2 -2
- package/dist/core/{p-824cbf95.entry.js.map → p-1673d010.entry.js.map} +1 -1
- package/dist/core/{p-e9683f52.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-fbcc2a11.entry.js → p-188ba287.entry.js} +2 -2
- package/dist/core/{p-fbcc2a11.entry.js.map → p-188ba287.entry.js.map} +1 -1
- package/dist/core/{p-bff6fef6.entry.js → p-1f18bbf6.entry.js} +2 -2
- package/dist/core/{p-bff6fef6.entry.js.map → p-1f18bbf6.entry.js.map} +1 -1
- package/dist/core/{p-0e3a62cc.entry.js → p-2667c808.entry.js} +2 -2
- package/dist/core/{p-3800cda8.entry.js → p-28611f52.entry.js} +2 -2
- package/dist/core/p-28611f52.entry.js.map +1 -0
- package/dist/core/{p-fb1fce87.entry.js → p-29a49ea2.entry.js} +2 -2
- package/dist/core/{p-fb1fce87.entry.js.map → p-29a49ea2.entry.js.map} +1 -1
- package/dist/core/{p-bc2ca778.entry.js → p-3cb4ecef.entry.js} +2 -2
- package/dist/core/{p-bc2ca778.entry.js.map → p-3cb4ecef.entry.js.map} +1 -1
- package/dist/core/p-4444e787.entry.js +2 -0
- package/dist/core/{p-cd770df5.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-e7c00131.entry.js → p-578a02ff.entry.js} +2 -2
- package/dist/core/{p-e7c00131.entry.js.map → p-578a02ff.entry.js.map} +1 -1
- package/dist/core/{p-a054bb1b.entry.js → p-582da938.entry.js} +2 -2
- package/dist/core/{p-a054bb1b.entry.js.map → p-582da938.entry.js.map} +1 -1
- package/dist/core/{p-d328f6fc.entry.js → p-5926c2b2.entry.js} +2 -2
- package/dist/core/{p-d328f6fc.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-5744b8b3.entry.js → p-6a63a73a.entry.js} +2 -2
- package/dist/core/{p-5744b8b3.entry.js.map → p-6a63a73a.entry.js.map} +1 -1
- package/dist/core/{p-266686d0.entry.js → p-6bfff7ba.entry.js} +2 -2
- package/dist/core/p-6bfff7ba.entry.js.map +1 -0
- package/dist/core/{p-f6141c29.entry.js → p-7c3cd0b8.entry.js} +2 -2
- package/dist/core/p-7e4f5717.entry.js +2 -0
- package/dist/core/p-7e4f5717.entry.js.map +1 -0
- package/dist/core/{p-eb88b348.entry.js → p-7eaa223b.entry.js} +2 -2
- package/dist/core/{p-eb88b348.entry.js.map → p-7eaa223b.entry.js.map} +1 -1
- package/dist/core/{p-09f54ca3.entry.js → p-8112444e.entry.js} +2 -2
- package/dist/core/{p-09f54ca3.entry.js.map → p-8112444e.entry.js.map} +1 -1
- package/dist/core/{p-af1d6e41.entry.js → p-85a17585.entry.js} +2 -2
- package/dist/core/{p-1aed572a.entry.js → p-864e337f.entry.js} +2 -2
- package/dist/core/{p-1aed572a.entry.js.map → p-864e337f.entry.js.map} +1 -1
- package/dist/core/{p-fb8d27fa.entry.js → p-887b1302.entry.js} +2 -2
- package/dist/core/{p-fb8d27fa.entry.js.map → p-887b1302.entry.js.map} +1 -1
- 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-7c096c5e.entry.js → p-9687e929.entry.js} +2 -2
- package/dist/core/{p-7c096c5e.entry.js.map → p-9687e929.entry.js.map} +1 -1
- package/dist/core/{p-33f4abc9.entry.js → p-976f4280.entry.js} +2 -2
- package/dist/core/{p-33f4abc9.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-93e154e0.entry.js → p-9a78f449.entry.js} +2 -2
- package/dist/core/{p-93e154e0.entry.js.map → p-9a78f449.entry.js.map} +1 -1
- package/dist/core/{p-f9a16fa8.entry.js → p-9aecbfe9.entry.js} +2 -2
- package/dist/core/{p-f9a16fa8.entry.js.map → p-9aecbfe9.entry.js.map} +1 -1
- package/dist/core/{p-45f32fea.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-e38b20bf.entry.js → p-b92727c0.entry.js} +2 -2
- package/dist/core/{p-e38b20bf.entry.js.map → p-b92727c0.entry.js.map} +1 -1
- package/dist/core/{p-d3d48548.entry.js → p-ba5e1b21.entry.js} +2 -2
- package/dist/core/{p-d3d48548.entry.js.map → p-ba5e1b21.entry.js.map} +1 -1
- package/dist/core/{p-b9459ba2.entry.js → p-bf3b853e.entry.js} +2 -2
- package/dist/core/{p-b9459ba2.entry.js.map → p-bf3b853e.entry.js.map} +1 -1
- package/dist/core/{p-9882c572.entry.js → p-c3be8a0f.entry.js} +2 -2
- package/dist/core/p-c3be8a0f.entry.js.map +1 -0
- package/dist/core/{p-72c117b6.entry.js → p-c5ffe2cf.entry.js} +2 -2
- package/dist/core/{p-72c117b6.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-df88ff5b.entry.js → p-d4903dcd.entry.js} +2 -2
- package/dist/core/{p-df88ff5b.entry.js.map → p-d4903dcd.entry.js.map} +1 -1
- package/dist/core/{p-9ca147f3.entry.js → p-de1e04ac.entry.js} +2 -2
- package/dist/core/{p-9ca147f3.entry.js.map → p-de1e04ac.entry.js.map} +1 -1
- package/dist/core/{p-8b5022bc.entry.js → p-dee21f6d.entry.js} +2 -2
- package/dist/core/{p-8b5022bc.entry.js.map → p-dee21f6d.entry.js.map} +1 -1
- package/dist/core/{p-ad390076.entry.js → p-e003ad46.entry.js} +2 -2
- package/dist/core/{p-ad390076.entry.js.map → p-e003ad46.entry.js.map} +1 -1
- package/dist/core/{p-1be17f22.entry.js → p-e2629bfe.entry.js} +2 -2
- package/dist/core/{p-1be17f22.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-84daed4d.entry.js → p-e546d477.entry.js} +2 -2
- package/dist/core/p-e546d477.entry.js.map +1 -0
- 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/ic-accordion.entry.js +9 -7
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +2 -2
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +8 -8
- 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 +1 -1
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +2 -2
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +20 -37
- package/dist/esm/ic-checkbox_3.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 +2 -2
- 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 +311 -319
- 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 +1 -1
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +6 -5
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +22 -21
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +7 -7
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +11 -21
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +115 -163
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +64 -61
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +4 -4
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +6 -6
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +161 -232
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +4 -4
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +4 -4
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +49 -31
- 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 +23 -4
- 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 +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +13 -13
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +2 -2
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +4 -4
- 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 +2 -2
- 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-theme.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +53 -67
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +61 -63
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +65 -63
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +1 -1
- package/dist/esm/ic-tree-view.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js +2 -2
- 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.d.ts +8 -0
- package/dist/types/utils/helpers.d.ts +3 -3
- package/dist/types/utils/types.d.ts +2 -0
- package/hydrate/index.js +1085 -1214
- package/hydrate/index.mjs +1085 -1214
- package/package.json +3 -3
- package/dist/cjs/helpers-6f33d131.js.map +0 -1
- package/dist/core/p-10703715.entry.js +0 -2
- package/dist/core/p-10703715.entry.js.map +0 -1
- package/dist/core/p-266686d0.entry.js.map +0 -1
- package/dist/core/p-3800cda8.entry.js.map +0 -1
- package/dist/core/p-45f32fea.entry.js.map +0 -1
- package/dist/core/p-59bc9fe7.entry.js +0 -2
- package/dist/core/p-59bc9fe7.entry.js.map +0 -1
- package/dist/core/p-6724039c.entry.js +0 -2
- package/dist/core/p-6724039c.entry.js.map +0 -1
- package/dist/core/p-84daed4d.entry.js.map +0 -1
- package/dist/core/p-92a969b3.entry.js +0 -2
- package/dist/core/p-92a969b3.entry.js.map +0 -1
- package/dist/core/p-954959d4.entry.js +0 -2
- package/dist/core/p-954959d4.entry.js.map +0 -1
- package/dist/core/p-95868542.entry.js +0 -2
- package/dist/core/p-95868542.entry.js.map +0 -1
- package/dist/core/p-9882c572.entry.js.map +0 -1
- package/dist/core/p-9918c411.entry.js +0 -2
- package/dist/core/p-9918c411.entry.js.map +0 -1
- package/dist/core/p-ad45f8f8.entry.js +0 -2
- package/dist/core/p-ad45f8f8.entry.js.map +0 -1
- package/dist/core/p-b947e4ff.entry.js +0 -2
- package/dist/core/p-b947e4ff.entry.js.map +0 -1
- package/dist/core/p-c472cb32.entry.js +0 -2
- package/dist/core/p-c472cb32.entry.js.map +0 -1
- package/dist/core/p-cd770df5.entry.js +0 -2
- package/dist/core/p-e9683f52.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-edeb3823.entry.js +0 -2
- package/dist/core/p-edeb3823.entry.js.map +0 -1
- package/dist/core/p-fb8214a9.entry.js +0 -2
- package/dist/core/p-fb8214a9.entry.js.map +0 -1
- package/dist/esm/helpers-0bb68835.js.map +0 -1
- /package/dist/core/{p-0e3a62cc.entry.js.map → p-2667c808.entry.js.map} +0 -0
- /package/dist/core/{p-f6141c29.entry.js.map → p-7c3cd0b8.entry.js.map} +0 -0
- /package/dist/core/{p-af1d6e41.entry.js.map → p-85a17585.entry.js.map} +0 -0
- /package/dist/core/{p-aa83f828.entry.js.map → p-c8d207e1.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
@@ -112,6 +112,7 @@ export class DataTable {
|
|
112
112
|
pageLabel: "Page",
|
113
113
|
rangeLabelType: "page",
|
114
114
|
selectedItemsPerPage: 10,
|
115
|
+
selectItemsPerPageOnEnter: true,
|
115
116
|
setToFirstPageOnPaginationChange: false,
|
116
117
|
showGoToPageControl: true,
|
117
118
|
showItemsPerPageControl: true,
|
@@ -184,6 +185,176 @@ export class DataTable {
|
|
184
185
|
};
|
185
186
|
this.getRowHeight = (cellContainer) => parseInt(getComputedStyle(document.documentElement).fontSize) *
|
186
187
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING) || "");
|
188
|
+
this.truncateUpdatedData = () => {
|
189
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
190
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
191
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
192
|
+
if (cellContainer) {
|
193
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
194
|
+
if (truncWrapper &&
|
195
|
+
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
|
196
|
+
truncWrapper.scrollHeight) {
|
197
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
198
|
+
return;
|
199
|
+
}
|
200
|
+
setTimeout(() => {
|
201
|
+
// slight delay due to data rendering
|
202
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
203
|
+
}, 150);
|
204
|
+
}
|
205
|
+
});
|
206
|
+
}
|
207
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
208
|
+
this.updateTruncationTooltip();
|
209
|
+
}
|
210
|
+
this.dataUpdated = false;
|
211
|
+
};
|
212
|
+
this.truncateTableSorted = () => {
|
213
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
214
|
+
this.updateTruncationTooltip();
|
215
|
+
}
|
216
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
217
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
218
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
219
|
+
if (cellContainer) {
|
220
|
+
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
221
|
+
this.createShowHideTruncation(typographyEl, cellContainer);
|
222
|
+
}
|
223
|
+
else {
|
224
|
+
typographyEl.resetTruncation().then(() => {
|
225
|
+
cellContainer.removeAttribute("style");
|
226
|
+
});
|
227
|
+
}
|
228
|
+
}
|
229
|
+
});
|
230
|
+
}
|
231
|
+
this.tableSorted = false;
|
232
|
+
};
|
233
|
+
this.truncateRowHeightSet = () => {
|
234
|
+
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
235
|
+
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
236
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
237
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
238
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
239
|
+
if (cellContainer) {
|
240
|
+
if (this.globalRowHeight === "auto") {
|
241
|
+
cellContainer.style.height = "";
|
242
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
243
|
+
cellContainer.removeAttribute(this.DATA_ROW_HEIGHT_STRING);
|
244
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
245
|
+
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
246
|
+
typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
|
247
|
+
}
|
248
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
249
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
250
|
+
}
|
251
|
+
return;
|
252
|
+
}
|
253
|
+
// If the set row height is bigger than the cell container even
|
254
|
+
// with textWrap, set the row height
|
255
|
+
if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
|
256
|
+
!cellContainer.style.height &&
|
257
|
+
this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
|
258
|
+
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
259
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
260
|
+
}
|
261
|
+
if (this.truncationPattern) {
|
262
|
+
// If the set row height is bigger than the typography truncation wrapper
|
263
|
+
// scroll height, remove see more / see less button
|
264
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
265
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
266
|
+
if (this.getShowHideButton(typographyEl) &&
|
267
|
+
truncWrapper &&
|
268
|
+
truncWrapper.scrollHeight <= cellContainer.clientHeight) {
|
269
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
270
|
+
return;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
274
|
+
}
|
275
|
+
else {
|
276
|
+
this.updateSetRowHeight(typographyEl);
|
277
|
+
}
|
278
|
+
}
|
279
|
+
});
|
280
|
+
this.rowHeightSet = false;
|
281
|
+
};
|
282
|
+
this.truncateItemsPerPageChange = () => {
|
283
|
+
var _a;
|
284
|
+
// Only run truncation on the new rows
|
285
|
+
// when the number of items per page has increased
|
286
|
+
const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
|
287
|
+
if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
|
288
|
+
const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
|
289
|
+
newRows.forEach((row) => {
|
290
|
+
row.querySelectorAll("ic-typography").forEach((typographyEl) => {
|
291
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
292
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
293
|
+
if (cellContainer)
|
294
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
295
|
+
});
|
296
|
+
});
|
297
|
+
}
|
298
|
+
this.previousItemsPerPage = this.rowsPerPage;
|
299
|
+
this.itemsPerPageChange = false;
|
300
|
+
};
|
301
|
+
this.truncatePageChange = () => {
|
302
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
303
|
+
this.updateTruncationTooltip();
|
304
|
+
}
|
305
|
+
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
306
|
+
// set truncation to see more if opened and next/previous page is pressed
|
307
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
308
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
309
|
+
if (cellContainer &&
|
310
|
+
this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer) &&
|
311
|
+
!this.getShowHideButton(typographyEl)) {
|
312
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
313
|
+
}
|
314
|
+
});
|
315
|
+
}
|
316
|
+
this.icPageChangeEvent = false;
|
317
|
+
};
|
318
|
+
this.truncateDensityUpdate = () => {
|
319
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
320
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
321
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
322
|
+
if (cellContainer)
|
323
|
+
this.truncate(typographyEl, cellContainer, tooltipEl);
|
324
|
+
});
|
325
|
+
this.densityUpdate = false;
|
326
|
+
};
|
327
|
+
this.typographyScrollHeightExceedsContainerHeight = (typographyEl, cellContainer) => cellContainer && typographyEl.scrollHeight > cellContainer.clientHeight;
|
328
|
+
this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight = (typographyEl, cellContainer) => {
|
329
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
330
|
+
return (truncWrapper &&
|
331
|
+
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >
|
332
|
+
truncWrapper.scrollHeight);
|
333
|
+
};
|
334
|
+
this.truncatePatternUpdated = () => {
|
335
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
336
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
337
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
338
|
+
const tooltipEl = this.getTooltip(typographyEl);
|
339
|
+
if (cellContainer &&
|
340
|
+
this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
341
|
+
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
342
|
+
}
|
343
|
+
});
|
344
|
+
}
|
345
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
346
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
347
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
348
|
+
if (cellContainer) {
|
349
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
350
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
351
|
+
return;
|
352
|
+
}
|
353
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
354
|
+
}
|
355
|
+
});
|
356
|
+
}
|
357
|
+
};
|
187
358
|
this.updateSetRowHeight = (typographyEl) => {
|
188
359
|
const removeRowHeightVariable = (element) => {
|
189
360
|
const cellContainer = this.getCellContainer(element);
|
@@ -201,28 +372,10 @@ export class DataTable {
|
|
201
372
|
});
|
202
373
|
}
|
203
374
|
};
|
204
|
-
this.debounceDataTruncation = () => {
|
205
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
206
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
207
|
-
if (cellContainer &&
|
208
|
-
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
209
|
-
this.resizeObserver = new ResizeObserver(
|
210
|
-
// This gets triggered twice due to updated data and see more/see less button
|
211
|
-
dynamicDebounce(() => {
|
212
|
-
this.dataTruncation(typographyEl);
|
213
|
-
if (!this.isNewDebounceDelaySet) {
|
214
|
-
this.debounceDelay = 200;
|
215
|
-
this.isNewDebounceDelaySet = true;
|
216
|
-
}
|
217
|
-
}, () => this.debounceDelay));
|
218
|
-
this.resizeObserver.observe(typographyEl);
|
219
|
-
}
|
220
|
-
});
|
221
|
-
};
|
222
375
|
this.getLines = (height) => Math.floor(height / this.DEFAULT_LINE_HEIGHT);
|
223
376
|
this.truncate = (typographyEl, cellContainer, tooltip) => {
|
224
377
|
var _a;
|
225
|
-
if ((typographyEl
|
378
|
+
if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
226
379
|
//24 is the height of a single line
|
227
380
|
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
228
381
|
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
@@ -242,52 +395,49 @@ export class DataTable {
|
|
242
395
|
}
|
243
396
|
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
244
397
|
!isEmptyString(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.getAttribute("max-lines"))) {
|
245
|
-
this.
|
398
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
246
399
|
}
|
247
400
|
}
|
248
401
|
};
|
249
|
-
this.
|
250
|
-
|
402
|
+
this.addShowHideTruncationIfNeeded = (typographyEl, cellContainer) => {
|
403
|
+
if (this.typographyScrollHeightExceedsContainerHeight(typographyEl, cellContainer)) {
|
404
|
+
this.addShowHideTruncation(cellContainer, typographyEl);
|
405
|
+
return true;
|
406
|
+
}
|
407
|
+
return false;
|
408
|
+
};
|
409
|
+
this.dataTruncation = (typographyEl, cellContainer) => {
|
251
410
|
// Tooltip truncation mentioned in AC. Will need revisiting
|
252
411
|
const tooltip = this.getTooltip(typographyEl);
|
253
|
-
|
254
|
-
if (!cellContainer ||
|
255
|
-
cellContainer.classList.contains("data-type-element") ||
|
412
|
+
if (cellContainer.classList.contains("data-type-element") ||
|
256
413
|
this.dataUpdated) {
|
257
414
|
return;
|
258
415
|
}
|
259
416
|
if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
260
|
-
(
|
261
|
-
const showHideBtn = typographyEl.shadowRoot.querySelector("button");
|
417
|
+
this.getShowHideButton(typographyEl)) {
|
262
418
|
// If the see more/see less is present and the max lines is equal to the cell container
|
263
419
|
// remove the see more/see less button
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
this.resetShowHideTruncation(typographyEl);
|
270
|
-
}
|
420
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
421
|
+
if (truncWrapper &&
|
422
|
+
this.getLines(truncWrapper.scrollHeight) ===
|
423
|
+
Number(typographyEl.getAttribute("max-lines"))) {
|
424
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
271
425
|
}
|
272
426
|
}
|
273
427
|
// Deals with setting and resetting row height and re-truncating data
|
274
428
|
if (this.rowHeightSet && this.truncationPattern === this.SHOW_HIDE_STRING) {
|
275
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
276
429
|
// cellContainer.clientHeight - 24 removes the extra line by see more/see less
|
277
|
-
if (
|
278
|
-
|
279
|
-
truncWrapper.scrollHeight) {
|
280
|
-
this.resetShowHideTruncation(typographyEl);
|
430
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
431
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
281
432
|
return;
|
282
433
|
}
|
283
|
-
if (typographyEl
|
284
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
434
|
+
if (this.addShowHideTruncationIfNeeded(typographyEl, cellContainer)) {
|
285
435
|
return;
|
286
436
|
}
|
287
437
|
}
|
288
|
-
if (
|
289
|
-
|
290
|
-
|
438
|
+
if (typographyEl.scrollHeight > 0 &&
|
439
|
+
cellContainer.clientHeight > 0 &&
|
440
|
+
typographyEl.scrollHeight === cellContainer.clientHeight) {
|
291
441
|
if (tooltip) {
|
292
442
|
this.removeTooltip(cellContainer, typographyEl, tooltip);
|
293
443
|
}
|
@@ -296,6 +446,7 @@ export class DataTable {
|
|
296
446
|
this.truncate(typographyEl, cellContainer, tooltip);
|
297
447
|
};
|
298
448
|
this.getTruncWrapper = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".trunc-wrapper"); };
|
449
|
+
this.getShowHideButton = (typographyEl) => { var _a; return (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button"); };
|
299
450
|
this.removeTextWrap = () => {
|
300
451
|
this.getTypographyElements().forEach((typographyEl) => {
|
301
452
|
const tableCell = typographyEl.closest("td");
|
@@ -307,6 +458,37 @@ export class DataTable {
|
|
307
458
|
this.getCellContainer = (typographyEl) => typographyEl.closest(".cell-container");
|
308
459
|
this.deleteTextWrapDataKey = (array) => Array.isArray(array) &&
|
309
460
|
array.forEach((val) => val.textWrap && delete val.textWrap);
|
461
|
+
this.resetSingleShowHideTruncation = (typographyEl, cellContainer) => {
|
462
|
+
const truncWrapper = this.getTruncWrapper(typographyEl);
|
463
|
+
if (!(cellContainer && truncWrapper))
|
464
|
+
return;
|
465
|
+
if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
|
466
|
+
!isEmptyString(typographyEl.getAttribute("max-lines")) &&
|
467
|
+
Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
|
468
|
+
Number(typographyEl.getAttribute("max-lines"))) {
|
469
|
+
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
470
|
+
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
471
|
+
typographyEl.setShowHideExpanded(false);
|
472
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
473
|
+
}
|
474
|
+
else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
|
475
|
+
typographyEl.resetTruncation().then(() => {
|
476
|
+
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
477
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
478
|
+
}
|
479
|
+
});
|
480
|
+
}
|
481
|
+
};
|
482
|
+
this.resetAllShowHideTruncation = () => {
|
483
|
+
this.getTypographyElements().forEach((typographyEl) => {
|
484
|
+
const cellContainer = this.getCellContainer(typographyEl);
|
485
|
+
typographyEl.resetTruncation().then(() => {
|
486
|
+
if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
487
|
+
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
488
|
+
}
|
489
|
+
});
|
490
|
+
});
|
491
|
+
};
|
310
492
|
this.startLoadingTimer = () => {
|
311
493
|
this.hasLoadedForOneSecond = false;
|
312
494
|
this.timerStarted = Date.now();
|
@@ -385,31 +567,25 @@ export class DataTable {
|
|
385
567
|
gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
|
386
568
|
});
|
387
569
|
};
|
388
|
-
this.createCellContent = (columnProps, cell, cellSlotName, rowOptions,
|
389
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
570
|
+
this.createCellContent = (columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight) => {
|
571
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
390
572
|
return (h("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
391
573
|
!isSlotUsed(this.el, cellSlotName)
|
392
574
|
? cell
|
393
|
-
: 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.
|
394
|
-
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.
|
395
|
-
|
396
|
-
|
397
|
-
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
398
|
-
!!rowAlignment ||
|
399
|
-
!!this.getCellAlignment(cell, "vertical"), [`cell-alignment-${((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
400
|
-
((_f = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _f === void 0 ? void 0 : _f.horizontal) ||
|
401
|
-
this.getCellAlignment(cell, "horizontal")}`]: !!((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _g === void 0 ? void 0 : _g.horizontal) ||
|
402
|
-
!!((_h = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _h === void 0 ? void 0 : _h.horizontal) ||
|
575
|
+
: 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) ||
|
576
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
577
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
578
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
403
579
|
!!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) ||
|
404
580
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
405
|
-
!!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((
|
581
|
+
!!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")) ||
|
406
582
|
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
407
583
|
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
408
584
|
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
409
585
|
!!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
|
410
586
|
? this.setRowHeight(currentRowHeight)
|
411
|
-
: null }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((
|
412
|
-
(cellValue("icon") || ((
|
587
|
+
: 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)) &&
|
588
|
+
(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" &&
|
413
589
|
!isSlotUsed(this.el, cellSlotName) && (h("div", { class: {
|
414
590
|
"cell-text-wrapper": true,
|
415
591
|
"cell-text-no-wrap": !this.truncationPattern,
|
@@ -424,7 +600,7 @@ export class DataTable {
|
|
424
600
|
Object.keys(cell).includes("description") && (h("div", { class: {
|
425
601
|
["cell-description"]: true,
|
426
602
|
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
427
|
-
} }, ((
|
603
|
+
} }, ((_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"))))))))));
|
428
604
|
};
|
429
605
|
this.createCells = (row, rowIndex) => {
|
430
606
|
var _a;
|
@@ -442,6 +618,7 @@ export class DataTable {
|
|
442
618
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
443
619
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
444
620
|
return this.columns.map((columnName, index) => {
|
621
|
+
var _a, _b, _c, _d;
|
445
622
|
const cell = this.getObjectValue(row, columnName["key"]);
|
446
623
|
const columnProps = this.columns[index];
|
447
624
|
const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
|
@@ -454,12 +631,19 @@ export class DataTable {
|
|
454
631
|
["row-header-sticky"]: this.stickyRowHeaders,
|
455
632
|
} }, cellValue("title")));
|
456
633
|
}
|
457
|
-
const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions,
|
634
|
+
const CellContent = this.createCellContent(columnProps, cell, cellSlotName, rowOptions, hasIcon, cellValue, rowEmphasis, currentRowHeight || undefined);
|
458
635
|
if (rowKeys[index] !== "rowOptions") {
|
459
636
|
return (h("td", { class: {
|
460
637
|
["table-cell"]: true,
|
461
638
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
462
639
|
["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
|
640
|
+
[`cell-vertical-align-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
641
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
642
|
+
rowAlignment ||
|
643
|
+
this.getCellAlignment(cell, "vertical")}`]: !!((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
644
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
645
|
+
!!rowAlignment ||
|
646
|
+
!!this.getCellAlignment(cell, "vertical"),
|
463
647
|
}, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, this.isObject(cell) &&
|
464
648
|
Object.keys(cell).includes("actionElement") ? (h("div", { class: "cell-grid-wrapper" }, CellContent, h("span", { class: "action-element", innerHTML: cellValue("actionElement"),
|
465
649
|
// eslint-disable-next-line react/jsx-no-bind
|
@@ -646,52 +830,50 @@ export class DataTable {
|
|
646
830
|
cellContainer.setAttribute(this.DATA_ROW_HEIGHT_STRING, rowHeight.toString());
|
647
831
|
cellContainer.setAttribute("style", `${this.ROW_HEIGHT_CSS_VARIABLE}: ${rowHeight}px`);
|
648
832
|
};
|
833
|
+
this.getDescriptionHeight = (description) => {
|
834
|
+
const descriptionMarginTop = window
|
835
|
+
.getComputedStyle(description)
|
836
|
+
.getPropertyValue("margin-top");
|
837
|
+
return description.clientHeight + parseInt(descriptionMarginTop, 10);
|
838
|
+
};
|
649
839
|
/** Method to update the row heights on cells with descriptions and tooltip truncation */
|
650
840
|
this.updateCellHeightsWithDescriptions = () => {
|
651
841
|
var _a, _b;
|
842
|
+
const isXSDevice = deviceSizeMatches(IC_DEVICE_SIZES.XS);
|
652
843
|
(_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) => {
|
653
844
|
const cellContainer = description.closest(`.${this.CELL_CONTAINER_WITH_DESCRIPTION_STRING}`);
|
654
845
|
const typography = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.querySelector(this.IC_TYPOGRAPHY_STRING);
|
655
|
-
const descriptionMarginTop = window
|
656
|
-
.getComputedStyle(description)
|
657
|
-
.getPropertyValue("margin-top");
|
658
|
-
const descriptionHeight = description.clientHeight + parseInt(descriptionMarginTop, 10);
|
659
846
|
if (typography &&
|
660
847
|
cellContainer &&
|
661
848
|
this.globalRowHeight &&
|
662
849
|
this.globalRowHeight !== "auto") {
|
850
|
+
const descriptionHeight = this.getDescriptionHeight(description);
|
851
|
+
const descriptionHeightPlusLineHeight = descriptionHeight + this.DEFAULT_LINE_HEIGHT;
|
663
852
|
if (!typography.textContent &&
|
664
|
-
|
853
|
+
descriptionHeightPlusLineHeight > this.globalRowHeight) {
|
665
854
|
this.updateRowHeightForDescriptions(descriptionHeight, cellContainer);
|
666
855
|
}
|
667
856
|
else if (this.truncationPattern === this.TOOLTIP_STRING) {
|
668
|
-
if (
|
669
|
-
this.globalRowHeight) {
|
857
|
+
if (descriptionHeightPlusLineHeight > this.globalRowHeight) {
|
670
858
|
const cellIcon = cellContainer.querySelector(".icon");
|
671
|
-
|
859
|
+
let rowHeight = descriptionHeightPlusLineHeight;
|
860
|
+
if (cellIcon && isXSDevice) {
|
672
861
|
// recalculate descriptionHeight as when a word break occurs this value changes
|
673
862
|
// Additional spacing given for 300-400% zoom
|
674
|
-
|
675
|
-
this.DEFAULT_LINE_HEIGHT +
|
676
|
-
cellIcon.clientHeight, cellContainer);
|
677
|
-
}
|
678
|
-
else {
|
679
|
-
this.updateRowHeightForDescriptions(descriptionHeight + this.DEFAULT_LINE_HEIGHT, cellContainer);
|
863
|
+
rowHeight += cellIcon.clientHeight;
|
680
864
|
}
|
865
|
+
this.updateRowHeightForDescriptions(rowHeight, cellContainer);
|
681
866
|
}
|
682
867
|
this.addLineClampCSS(typography, cellContainer);
|
683
868
|
// Additional case for show/hide truncation for when a description is present, but the text
|
684
869
|
// isn't overflowing the cell to trigger the show more button to appear.
|
685
870
|
}
|
686
871
|
else if (this.truncationPattern === this.SHOW_HIDE_STRING &&
|
687
|
-
|
688
|
-
this.globalRowHeight &&
|
872
|
+
descriptionHeightPlusLineHeight > this.globalRowHeight &&
|
689
873
|
typography.style.getPropertyValue("--truncation-max-lines") !==
|
690
874
|
"initial") {
|
691
|
-
this.updateRowHeightForDescriptions(
|
692
|
-
|
693
|
-
this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
|
694
|
-
}
|
875
|
+
this.updateRowHeightForDescriptions(descriptionHeightPlusLineHeight, cellContainer);
|
876
|
+
this.createShowHideTruncation(typography, cellContainer, descriptionHeight);
|
695
877
|
}
|
696
878
|
}
|
697
879
|
});
|
@@ -742,12 +924,7 @@ export class DataTable {
|
|
742
924
|
this.fixCellTooltip(slottedEl);
|
743
925
|
});
|
744
926
|
});
|
745
|
-
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) =>
|
746
|
-
const actionElement = actionElementSpan.firstChild;
|
747
|
-
if (actionElement) {
|
748
|
-
this.fixCellTooltip(actionElement);
|
749
|
-
}
|
750
|
-
});
|
927
|
+
(_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));
|
751
928
|
};
|
752
929
|
this.handleClick = (event, callback) => callback(event);
|
753
930
|
this.renderTableBody = (loading, data, overlay) => {
|
@@ -847,10 +1024,19 @@ export class DataTable {
|
|
847
1024
|
const cellContainer = this.getCellContainer(typographyEl);
|
848
1025
|
if (cellContainer &&
|
849
1026
|
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
850
|
-
this.dataTruncation(typographyEl);
|
1027
|
+
this.dataTruncation(typographyEl, cellContainer);
|
1028
|
+
this.resizeObserver = new ResizeObserver(
|
1029
|
+
// This gets triggered twice due to updated data and see more/see less button
|
1030
|
+
dynamicDebounce(() => {
|
1031
|
+
this.dataTruncation(typographyEl, cellContainer);
|
1032
|
+
if (!this.isNewDebounceDelaySet) {
|
1033
|
+
this.debounceDelay = 200;
|
1034
|
+
this.isNewDebounceDelaySet = true;
|
1035
|
+
}
|
1036
|
+
}, () => this.debounceDelay));
|
1037
|
+
this.resizeObserver.observe(typographyEl);
|
851
1038
|
}
|
852
1039
|
});
|
853
|
-
this.debounceDataTruncation();
|
854
1040
|
}
|
855
1041
|
if (this.globalRowHeight !== "auto") {
|
856
1042
|
this.updateSetRowHeight();
|
@@ -862,188 +1048,34 @@ export class DataTable {
|
|
862
1048
|
// rendered to take into account updated .cell-container/ic-typography box model updates.
|
863
1049
|
if (this.truncationPattern === this.SHOW_HIDE_STRING ||
|
864
1050
|
this.truncationPattern === this.TOOLTIP_STRING) {
|
865
|
-
this.
|
866
|
-
|
867
|
-
}
|
868
|
-
componentDidRender() {
|
869
|
-
this.fixCellTooltips();
|
870
|
-
this.updateCellHeightsWithDescriptions();
|
871
|
-
this.adjustWidthForActionElement();
|
872
|
-
}
|
873
|
-
truncateUpdatedData() {
|
874
|
-
var _a;
|
875
|
-
if (this.dataUpdated) {
|
876
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
877
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
878
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
879
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
880
|
-
if (truncWrapper &&
|
881
|
-
cellContainer &&
|
882
|
-
cellContainer.clientHeight - this.DEFAULT_LINE_HEIGHT >=
|
883
|
-
truncWrapper.scrollHeight) {
|
884
|
-
this.resetShowHideTruncation(typographyEl);
|
885
|
-
return;
|
886
|
-
}
|
887
|
-
setTimeout(() => {
|
888
|
-
// slight delay due to data rendering
|
889
|
-
if (cellContainer &&
|
890
|
-
typographyEl.scrollHeight > cellContainer.clientHeight) {
|
891
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
892
|
-
}
|
893
|
-
}, 150);
|
894
|
-
});
|
895
|
-
}
|
896
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
897
|
-
this.updateTruncationTooltip();
|
1051
|
+
if (this.dataUpdated) {
|
1052
|
+
this.truncateUpdatedData();
|
898
1053
|
}
|
899
|
-
this.
|
900
|
-
|
901
|
-
if (this.tableSorted) {
|
902
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
903
|
-
this.updateTruncationTooltip();
|
904
|
-
}
|
905
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
906
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
907
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
908
|
-
if (cellContainer) {
|
909
|
-
if (!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
910
|
-
this.createShowHideTruncation(typographyEl, cellContainer);
|
911
|
-
}
|
912
|
-
else {
|
913
|
-
typographyEl.resetTruncation().then(() => {
|
914
|
-
cellContainer.removeAttribute("style");
|
915
|
-
});
|
916
|
-
}
|
917
|
-
}
|
918
|
-
});
|
1054
|
+
if (this.tableSorted) {
|
1055
|
+
this.truncateTableSorted();
|
919
1056
|
}
|
920
|
-
this.
|
921
|
-
|
922
|
-
// This function recalculates the tooltip truncation when the rowHeight has been set.
|
923
|
-
// This is in componentDidUpdate so a setTimeout is not used to wait for the render to be complete
|
924
|
-
if (this.rowHeightSet) {
|
925
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
926
|
-
var _a, _b;
|
927
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
928
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
929
|
-
if (cellContainer) {
|
930
|
-
if (this.globalRowHeight === "auto") {
|
931
|
-
cellContainer.style.height = "";
|
932
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
933
|
-
this.removeTooltip(cellContainer, typographyEl, tooltipEl);
|
934
|
-
typographyEl.setAttribute("style", `${this.LINE_CLAMP_CSS_VARIABLE}: 0`);
|
935
|
-
}
|
936
|
-
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
937
|
-
this.resetShowHideTruncation(typographyEl);
|
938
|
-
}
|
939
|
-
return;
|
940
|
-
}
|
941
|
-
// If the set row height is bigger than the cell container even
|
942
|
-
// with textWrap, set the row height
|
943
|
-
if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING) &&
|
944
|
-
!((_a = cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.style) === null || _a === void 0 ? void 0 : _a.height) &&
|
945
|
-
this.getRowHeight(cellContainer) > cellContainer.clientHeight &&
|
946
|
-
!cellContainer.classList.contains(this.TEXT_WRAP_STRING)) {
|
947
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
948
|
-
}
|
949
|
-
if (this.truncationPattern) {
|
950
|
-
// If the set row height is bigger than the typography truncation wrapper
|
951
|
-
// scroll height, remove see more / see less button
|
952
|
-
if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
953
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
954
|
-
const showHideBtn = (_b = typographyEl.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("button");
|
955
|
-
if (showHideBtn &&
|
956
|
-
truncWrapper &&
|
957
|
-
truncWrapper.scrollHeight <= cellContainer.clientHeight) {
|
958
|
-
this.resetShowHideTruncation(typographyEl);
|
959
|
-
return;
|
960
|
-
}
|
961
|
-
}
|
962
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
963
|
-
}
|
964
|
-
else {
|
965
|
-
this.updateSetRowHeight(typographyEl);
|
966
|
-
}
|
967
|
-
}
|
968
|
-
});
|
969
|
-
this.rowHeightSet = false;
|
970
|
-
}
|
971
|
-
// Only run truncation on the new rows
|
972
|
-
// when the number of items per page has increased
|
973
|
-
if (this.itemsPerPageChange) {
|
974
|
-
const allRows = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".table-row");
|
975
|
-
if (allRows && this.rowsPerPage > this.previousItemsPerPage) {
|
976
|
-
const newRows = Array.from(allRows).slice(this.previousItemsPerPage);
|
977
|
-
newRows.forEach((row) => {
|
978
|
-
row.querySelectorAll("ic-typography").forEach((typographyEl) => {
|
979
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
980
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
981
|
-
if (cellContainer)
|
982
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
983
|
-
});
|
984
|
-
});
|
1057
|
+
if (this.rowHeightSet) {
|
1058
|
+
this.truncateRowHeightSet();
|
985
1059
|
}
|
986
|
-
this.
|
987
|
-
|
988
|
-
}
|
989
|
-
if (!this.initialLoad && this.icPageChangeEvent) {
|
990
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
991
|
-
this.updateTruncationTooltip();
|
1060
|
+
if (this.itemsPerPageChange) {
|
1061
|
+
this.truncateItemsPerPageChange();
|
992
1062
|
}
|
993
|
-
|
994
|
-
|
995
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
996
|
-
var _a;
|
997
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
998
|
-
const showHideBtn = (_a = typographyEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("button");
|
999
|
-
if (cellContainer &&
|
1000
|
-
(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > cellContainer.clientHeight &&
|
1001
|
-
!showHideBtn) {
|
1002
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1003
|
-
}
|
1004
|
-
});
|
1063
|
+
if (!this.initialLoad && this.icPageChangeEvent) {
|
1064
|
+
this.truncatePageChange();
|
1005
1065
|
}
|
1006
|
-
this.
|
1007
|
-
|
1008
|
-
if (this.densityUpdate) {
|
1009
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1010
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1011
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
1012
|
-
if (cellContainer)
|
1013
|
-
this.truncate(typographyEl, cellContainer, tooltipEl);
|
1014
|
-
});
|
1015
|
-
this.densityUpdate = false;
|
1016
|
-
}
|
1017
|
-
if (this.truncationPatternUpdated) {
|
1018
|
-
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
1019
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1020
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1021
|
-
const tooltipEl = this.getTooltip(typographyEl);
|
1022
|
-
if (cellContainer &&
|
1023
|
-
typographyEl.scrollHeight > cellContainer.clientHeight) {
|
1024
|
-
this.addTooltipTruncation(typographyEl, cellContainer, tooltipEl);
|
1025
|
-
}
|
1026
|
-
});
|
1066
|
+
if (this.densityUpdate) {
|
1067
|
+
this.truncateDensityUpdate();
|
1027
1068
|
}
|
1028
|
-
|
1029
|
-
this.
|
1030
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1031
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1032
|
-
if (cellContainer) {
|
1033
|
-
if (truncWrapper &&
|
1034
|
-
(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) - this.DEFAULT_LINE_HEIGHT >
|
1035
|
-
truncWrapper.scrollHeight) {
|
1036
|
-
this.resetShowHideTruncation(typographyEl);
|
1037
|
-
return;
|
1038
|
-
}
|
1039
|
-
if ((typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.scrollHeight) > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
1040
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1041
|
-
}
|
1042
|
-
}
|
1043
|
-
});
|
1069
|
+
if (this.truncationPatternUpdated) {
|
1070
|
+
this.truncatePatternUpdated();
|
1044
1071
|
}
|
1045
1072
|
}
|
1046
1073
|
}
|
1074
|
+
componentDidRender() {
|
1075
|
+
this.fixCellTooltips();
|
1076
|
+
this.updateCellHeightsWithDescriptions();
|
1077
|
+
this.adjustWidthForActionElement();
|
1078
|
+
}
|
1047
1079
|
createShowHideTruncation(typographyEl, cellContainer, descriptionHeight = 0) {
|
1048
1080
|
typographyEl.checkMaxLines(typographyEl.scrollHeight);
|
1049
1081
|
typographyEl.setAttribute("max-lines", `${this.getLines(cellContainer.clientHeight - descriptionHeight)}`);
|
@@ -1107,18 +1139,17 @@ export class DataTable {
|
|
1107
1139
|
handleDensityChange(ev) {
|
1108
1140
|
this.density = ev.detail.value;
|
1109
1141
|
}
|
1110
|
-
loadingHandler(
|
1111
|
-
if (newValue)
|
1112
|
-
this.startLoadingTimer();
|
1142
|
+
loadingHandler() {
|
1113
1143
|
if (this.loading) {
|
1144
|
+
this.startLoadingTimer();
|
1114
1145
|
setTimeout(() => {
|
1115
1146
|
this.showLoadingIndicator();
|
1116
1147
|
}, 500);
|
1117
1148
|
}
|
1118
1149
|
}
|
1119
|
-
truncationPatternHandler(
|
1120
|
-
if (
|
1121
|
-
this.
|
1150
|
+
truncationPatternHandler() {
|
1151
|
+
if (this.truncationPattern === this.TOOLTIP_STRING) {
|
1152
|
+
this.resetAllShowHideTruncation();
|
1122
1153
|
this.updateTruncationTooltip(true);
|
1123
1154
|
// Not using debounceDataTruncation here due to resizeObserver not being triggered
|
1124
1155
|
this.getTypographyElements().forEach((typographyEl) => {
|
@@ -1128,25 +1159,20 @@ export class DataTable {
|
|
1128
1159
|
this.truncate(typographyEl, cellContainer, tooltip);
|
1129
1160
|
});
|
1130
1161
|
}
|
1131
|
-
if (
|
1162
|
+
else if (this.truncationPattern === this.SHOW_HIDE_STRING) {
|
1132
1163
|
// ResizeObserver is trigger here due to the see more/see less links being removed.
|
1133
1164
|
// The resizeObserver will also apply the tooltip where relevant
|
1134
1165
|
this.updateTruncationTooltip(true);
|
1135
1166
|
this.getTypographyElements().forEach((typographyEl) => {
|
1136
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1137
1167
|
const cellContainer = this.getCellContainer(typographyEl);
|
1138
1168
|
if (cellContainer) {
|
1139
|
-
if (
|
1140
|
-
|
1141
|
-
truncWrapper.scrollHeight) {
|
1142
|
-
this.resetShowHideTruncation(typographyEl);
|
1169
|
+
if (this.cellContainerMinusLineHeightIsGreaterThanTruncWrapperScrollHeight(typographyEl, cellContainer)) {
|
1170
|
+
this.resetSingleShowHideTruncation(typographyEl, cellContainer);
|
1143
1171
|
return;
|
1144
1172
|
}
|
1145
1173
|
setTimeout(() => {
|
1146
1174
|
// slight delay due to data rendering
|
1147
|
-
|
1148
|
-
this.addShowHideTruncation(cellContainer, typographyEl);
|
1149
|
-
}
|
1175
|
+
this.addShowHideTruncationIfNeeded(typographyEl, cellContainer);
|
1150
1176
|
}, 150);
|
1151
1177
|
}
|
1152
1178
|
});
|
@@ -1168,40 +1194,6 @@ export class DataTable {
|
|
1168
1194
|
async densityHandler() {
|
1169
1195
|
this.densityUpdate = true;
|
1170
1196
|
}
|
1171
|
-
resetShowHideTruncation(typographyEl) {
|
1172
|
-
if (typographyEl) {
|
1173
|
-
const truncWrapper = this.getTruncWrapper(typographyEl);
|
1174
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1175
|
-
if (!(cellContainer && truncWrapper))
|
1176
|
-
return;
|
1177
|
-
if (truncWrapper.scrollHeight > cellContainer.clientHeight &&
|
1178
|
-
!isEmptyString(typographyEl.getAttribute("max-lines")) &&
|
1179
|
-
Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT) !==
|
1180
|
-
Number(typographyEl.getAttribute("max-lines"))) {
|
1181
|
-
typographyEl.checkMaxLines(truncWrapper.scrollHeight);
|
1182
|
-
typographyEl.setAttribute("max-lines", `${Math.floor((cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) / this.DEFAULT_LINE_HEIGHT)}`);
|
1183
|
-
typographyEl.setShowHideExpanded(false);
|
1184
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, null);
|
1185
|
-
}
|
1186
|
-
else if (!cellContainer.classList.contains(this.CELL_CONTAINER_WITH_DESCRIPTION_STRING)) {
|
1187
|
-
typographyEl.resetTruncation().then(() => {
|
1188
|
-
if (!typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
1189
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
1190
|
-
}
|
1191
|
-
});
|
1192
|
-
}
|
1193
|
-
}
|
1194
|
-
else {
|
1195
|
-
this.getTypographyElements().forEach((typographyEl) => {
|
1196
|
-
const cellContainer = this.getCellContainer(typographyEl);
|
1197
|
-
typographyEl.resetTruncation().then(() => {
|
1198
|
-
if (cellContainer && !typographyEl.closest(this.TEXT_WRAP_CLASS)) {
|
1199
|
-
cellContainer.style.setProperty(this.ROW_HEIGHT_CSS_VARIABLE, cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING));
|
1200
|
-
}
|
1201
|
-
});
|
1202
|
-
});
|
1203
|
-
}
|
1204
|
-
}
|
1205
1197
|
rowHeightChangeHandler(newValue, oldValue) {
|
1206
1198
|
if (+newValue !== +oldValue) {
|
1207
1199
|
this.deleteTextWrapDataKey(this.data);
|
@@ -1300,22 +1292,22 @@ export class DataTable {
|
|
1300
1292
|
? "deselect all"
|
1301
1293
|
: "select all remaining"
|
1302
1294
|
: "select all";
|
1303
|
-
return (h(Host, { key: '
|
1295
|
+
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: {
|
1304
1296
|
["table-row-container"]: true,
|
1305
1297
|
scrollable,
|
1306
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '
|
1298
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, h("table", { key: '061ab3f20e857b05a4cd668656b0a730f1d0645a', style: {
|
1307
1299
|
"--table-layout": tableLayout,
|
1308
|
-
} }, h("caption", { key: '
|
1300
|
+
} }, h("caption", { key: '727550fa24947c102cd231b1a4e262ffcba6e3b3', class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { key: 'c07fa1fddf4fa8364c52444a3cc8df0d1bdaabaf', class: {
|
1309
1301
|
["column-header-sticky"]: stickyColumnHeaders,
|
1310
1302
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
1311
|
-
} }, h("tr", { key: '
|
1303
|
+
} }, h("tr", { key: '01735185f99abdd22a71edcaf944642d6e2c45de' }, rowSelection && data && (h("th", { key: '40c7157f3f3e45b6e9a9a0dfc65e2374526e150d', class: {
|
1312
1304
|
"column-header": true,
|
1313
1305
|
"checkbox-cell": true,
|
1314
1306
|
"updating-state-headers": updating && !loading,
|
1315
1307
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
1316
|
-
} }, h("div", { key: '
|
1308
|
+
} }, 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 &&
|
1317
1309
|
!loading &&
|
1318
|
-
(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: '
|
1310
|
+
(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
|
1319
1311
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
1320
1312
|
sortedColumn} sorted ${sortedColumnOrder}`
|
1321
1313
|
: "table unsorted")))));
|
@@ -1667,7 +1659,7 @@ export class DataTable {
|
|
1667
1659
|
},
|
1668
1660
|
"getter": false,
|
1669
1661
|
"setter": false,
|
1670
|
-
"defaultValue": "{\n alignment: \"right\",\n hideAllFromItemsPerPage: false,\n hideRangeLabel: false,\n itemLabel: \"Item\",\n itemsPerPageOptions: [\n { label: \"10\", value: \"10\" },\n { label: \"25\", value: \"25\" },\n { label: \"50\", value: \"50\" },\n ],\n monochrome: false,\n pageLabel: \"Page\",\n rangeLabelType: \"page\",\n selectedItemsPerPage: 10,\n setToFirstPageOnPaginationChange: false,\n showGoToPageControl: true,\n showItemsPerPageControl: true,\n type: \"simple\",\n }"
|
1662
|
+
"defaultValue": "{\n alignment: \"right\",\n hideAllFromItemsPerPage: false,\n hideRangeLabel: false,\n itemLabel: \"Item\",\n itemsPerPageOptions: [\n { label: \"10\", value: \"10\" },\n { label: \"25\", value: \"25\" },\n { label: \"50\", value: \"50\" },\n ],\n monochrome: false,\n pageLabel: \"Page\",\n rangeLabelType: \"page\",\n selectedItemsPerPage: 10,\n selectItemsPerPageOnEnter: true,\n setToFirstPageOnPaginationChange: false,\n showGoToPageControl: true,\n showItemsPerPageControl: true,\n type: \"simple\",\n }"
|
1671
1663
|
},
|
1672
1664
|
"rowSelection": {
|
1673
1665
|
"type": "boolean",
|