@ukic/canary-web-components 2.0.0-canary.12 → 2.0.0-canary.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/date-helpers-c9551119.js +150 -0
- package/dist/cjs/date-helpers-c9551119.js.map +1 -0
- package/dist/cjs/{helpers-b525d45a.js → helpers-6d736902.js} +27 -4
- package/dist/cjs/helpers-6d736902.js.map +1 -0
- package/dist/cjs/{helpers-c4444a7e.js → helpers-f75cf7cf.js} +94 -48
- package/dist/cjs/helpers-f75cf7cf.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +11 -2
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +18 -17
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +41 -86
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +25 -2
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +43 -308
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +1108 -0
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-date-picker.cjs.entry.js +1053 -0
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-dialog.cjs.entry.js +14 -4
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +38 -0
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +150 -0
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +33 -15
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/{ic-input-component-container_3.cjs.entry.js → ic-menu.cjs.entry.js} +5 -69
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +26 -5
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +16 -13
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +29 -33
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
- package/dist/cjs/{ic-empty-state_2.cjs.entry.js → ic-pagination-bar.cjs.entry.js} +4 -34
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-pagination_4.cjs.entry.js +53 -16
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +40 -26
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +9 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +6 -19
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +5 -2
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -1
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +18 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +3 -10
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +46 -60
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +11 -35
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +18 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/calendar.svg +3 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +7 -82
- package/dist/collection/components/ic-data-table/ic-data-table.js +44 -535
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +11 -386
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +0 -319
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.css +560 -0
- package/dist/collection/components/ic-date-input/ic-date-input.js +1737 -0
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -0
- package/dist/collection/components/ic-date-input/story-data.js +28 -0
- package/dist/collection/components/ic-date-input/story-data.js.map +1 -0
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +1142 -0
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -0
- package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js +42 -0
- package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.css +878 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +1512 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -0
- package/dist/collection/components/ic-date-picker/ic-day-button.js +36 -0
- package/dist/collection/components/ic-date-picker/ic-day-button.js.map +1 -0
- package/dist/collection/components/ic-date-picker/ic-month-picker.js +29 -0
- package/dist/collection/components/ic-date-picker/ic-month-picker.js.map +1 -0
- package/dist/collection/components/ic-date-picker/ic-year-picker.js +39 -0
- package/dist/collection/components/ic-date-picker/ic-year-picker.js.map +1 -0
- package/dist/collection/components/ic-date-picker/story-data.js +148 -0
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -0
- package/dist/collection/components/{ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js → ic-date-picker/test/a11y/ic-date-picker.test.a11y.js} +5 -3
- package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js +207 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.js.map +1 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +991 -0
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -0
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js +2 -2
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/ic-select.js +2 -2
- package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
- package/dist/collection/utils/constants.js +55 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/date-helpers.js +133 -0
- package/dist/collection/utils/date-helpers.js.map +1 -0
- package/dist/collection/utils/helpers.js +272 -42
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js +45 -0
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +26 -3
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +91 -45
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion-group.js +14 -4
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-badge.js +18 -17
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-button2.js +43 -86
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +1 -1
- package/dist/components/ic-checkbox-group.js +1 -1
- package/dist/components/ic-checkbox.js +1 -1
- package/dist/components/ic-chip.js +29 -3
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-table.js +49 -334
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/{ic-data-table-title-bar.d.ts → ic-date-input.d.ts} +4 -4
- package/dist/components/ic-date-input.js +8 -0
- package/dist/components/ic-date-input.js.map +1 -0
- package/dist/components/ic-date-input2.js +1340 -0
- package/dist/components/ic-date-input2.js.map +1 -0
- package/dist/components/ic-date-picker.d.ts +11 -0
- package/dist/components/ic-date-picker.js +1175 -0
- package/dist/components/ic-date-picker.js.map +1 -0
- package/dist/components/ic-dialog.js +13 -3
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-empty-state.js +57 -1
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-link2.js +34 -16
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +1 -1
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-item2.js +1 -1
- package/dist/components/ic-menu2.js +2 -2
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +1 -1
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-button.js +26 -5
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +15 -12
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +29 -33
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +1 -1
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination2.js +5 -5
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-radio-group.js +40 -26
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +11 -5
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-select-with-multi.js +1 -14
- package/dist/components/ic-select-with-multi.js.map +1 -1
- package/dist/components/ic-select2.js +25 -7
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +1 -1
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-step.js +4 -1
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +2 -0
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +1 -1
- package/dist/components/ic-tab-context.js +18 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab.js +1 -1
- package/dist/components/ic-text-field2.js +27 -8
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +3 -10
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toggle-button.js +1 -1
- package/dist/components/ic-top-navigation.js +47 -61
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +12 -38
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-869954a2.entry.js → p-00bd7919.entry.js} +2 -2
- package/dist/core/p-00c5639e.entry.js +2 -0
- package/dist/core/{p-db9c03c0.entry.js.map → p-00c5639e.entry.js.map} +1 -1
- package/dist/core/p-06c27edb.entry.js +2 -0
- package/dist/core/p-06c27edb.entry.js.map +1 -0
- package/dist/core/{p-a0f8efb2.entry.js → p-0af27517.entry.js} +2 -2
- package/dist/core/p-0af27517.entry.js.map +1 -0
- package/dist/core/p-162f3e36.entry.js +2 -0
- package/dist/core/{p-624d4f5f.entry.js.map → p-162f3e36.entry.js.map} +1 -1
- package/dist/core/p-19c1e271.entry.js +2 -0
- package/dist/core/p-19c1e271.entry.js.map +1 -0
- package/dist/core/{p-a50c3b9e.entry.js → p-1a91e842.entry.js} +2 -2
- package/dist/core/{p-76915584.entry.js → p-1c3bd46d.entry.js} +2 -2
- package/dist/core/p-1c3bd46d.entry.js.map +1 -0
- package/dist/core/p-2c9d6334.entry.js +2 -0
- package/dist/core/p-2c9d6334.entry.js.map +1 -0
- package/dist/core/p-33dd24eb.js +2 -0
- package/dist/core/p-33dd24eb.js.map +1 -0
- package/dist/core/p-3dcc61cc.entry.js +2 -0
- package/dist/core/p-3dcc61cc.entry.js.map +1 -0
- package/dist/core/p-3e9a8977.entry.js +2 -0
- package/dist/core/{p-595be57d.entry.js.map → p-3e9a8977.entry.js.map} +1 -1
- package/dist/core/{p-f3c840cd.entry.js → p-41b682dc.entry.js} +2 -2
- package/dist/core/p-494c3cbe.entry.js +2 -0
- package/dist/core/p-494c3cbe.entry.js.map +1 -0
- package/dist/core/p-4ad3012a.entry.js +2 -0
- package/dist/core/p-4ad3012a.entry.js.map +1 -0
- package/dist/core/p-4bd13376.entry.js +2 -0
- package/dist/core/p-4bd13376.entry.js.map +1 -0
- package/dist/core/p-4fd58768.entry.js +2 -0
- package/dist/core/p-4fd58768.entry.js.map +1 -0
- package/dist/core/{p-8b08d8fe.entry.js → p-6dce8e88.entry.js} +2 -2
- package/dist/core/{p-1ca332ca.entry.js → p-6eb58b0a.entry.js} +2 -2
- package/dist/core/p-730f058b.entry.js +2 -0
- package/dist/core/p-730f058b.entry.js.map +1 -0
- package/dist/core/p-7f53d1be.entry.js +2 -0
- package/dist/core/p-7f53d1be.entry.js.map +1 -0
- package/dist/core/{p-5ae93c16.entry.js → p-7fda2f94.entry.js} +2 -2
- package/dist/core/p-843bdaae.entry.js +2 -0
- package/dist/core/p-843bdaae.entry.js.map +1 -0
- package/dist/core/p-849f43c3.entry.js +2 -0
- package/dist/core/p-849f43c3.entry.js.map +1 -0
- package/dist/core/{p-c34848da.entry.js → p-8b1f9648.entry.js} +2 -2
- package/dist/core/{p-a434c3d4.entry.js → p-8b820365.entry.js} +2 -2
- package/dist/core/p-940de102.entry.js +2 -0
- package/dist/core/p-940de102.entry.js.map +1 -0
- package/dist/core/{p-2eac7dcc.entry.js → p-946625a3.entry.js} +2 -2
- package/dist/core/{p-7ef8d616.entry.js → p-9528b29e.entry.js} +2 -2
- package/dist/core/{p-a43c12cd.entry.js → p-9567c117.entry.js} +2 -2
- package/dist/core/{p-b82dcc29.entry.js → p-957de939.entry.js} +2 -2
- package/dist/core/{p-045359e1.entry.js → p-99bf38e3.entry.js} +2 -2
- package/dist/core/{p-81ddc39d.entry.js → p-9d8883d7.entry.js} +2 -2
- package/dist/core/{p-b6639e4a.entry.js → p-9e3178e8.entry.js} +2 -2
- package/dist/core/{p-b6639e4a.entry.js.map → p-9e3178e8.entry.js.map} +1 -1
- package/dist/core/p-a05755b1.entry.js +2 -0
- package/dist/core/p-a05755b1.entry.js.map +1 -0
- package/dist/core/{p-e834344e.entry.js → p-a1556d97.entry.js} +2 -2
- package/dist/core/{p-f843da01.entry.js → p-a2dc10d8.entry.js} +2 -2
- package/dist/core/{p-ab09986c.entry.js → p-a8c15117.entry.js} +2 -2
- package/dist/core/p-aabab75f.entry.js +2 -0
- package/dist/core/p-aabab75f.entry.js.map +1 -0
- package/dist/core/{p-f7a14c01.entry.js → p-c14a897d.entry.js} +2 -2
- package/dist/core/p-c621d6b0.entry.js +2 -0
- package/dist/core/p-c621d6b0.entry.js.map +1 -0
- package/dist/core/p-c7590421.entry.js +2 -0
- package/dist/core/p-c7590421.entry.js.map +1 -0
- package/dist/core/p-c953edb9.entry.js +2 -0
- package/dist/core/p-c953edb9.entry.js.map +1 -0
- package/dist/core/p-cca482e2.entry.js +2 -0
- package/dist/core/p-cca482e2.entry.js.map +1 -0
- package/dist/core/p-cd799087.js +2 -0
- package/dist/core/p-cd799087.js.map +1 -0
- package/dist/core/{p-e3997d60.entry.js → p-d2d63a61.entry.js} +2 -2
- package/dist/core/p-d32d331b.entry.js +2 -0
- package/dist/core/p-d32d331b.entry.js.map +1 -0
- package/dist/core/{p-4f413fc0.entry.js → p-db3a35fb.entry.js} +2 -2
- package/dist/core/p-dc5e1f8f.entry.js +2 -0
- package/dist/core/{p-6933f8e9.entry.js.map → p-dc5e1f8f.entry.js.map} +1 -1
- package/dist/core/{p-204ace96.entry.js → p-e16f73ba.entry.js} +2 -2
- package/dist/core/p-e189f1d0.entry.js +2 -0
- package/dist/core/p-e189f1d0.entry.js.map +1 -0
- package/dist/core/{p-917c5721.entry.js → p-e1963c78.entry.js} +2 -2
- package/dist/core/p-e1963c78.entry.js.map +1 -0
- package/dist/core/{p-f14454b1.entry.js → p-e8151d13.entry.js} +2 -2
- package/dist/core/p-ee765ad5.js +2 -0
- package/dist/core/p-ee765ad5.js.map +1 -0
- package/dist/core/{p-fc5611e2.entry.js → p-f2147136.entry.js} +2 -2
- package/dist/core/p-f2147136.entry.js.map +1 -0
- package/dist/core/{p-5e0c830b.entry.js → p-f8f36680.entry.js} +2 -2
- package/dist/core/{p-5e0c830b.entry.js.map → p-f8f36680.entry.js.map} +1 -1
- package/dist/core/p-fca46bd9.entry.js +2 -0
- package/dist/core/p-fca46bd9.entry.js.map +1 -0
- package/dist/core/{p-a31031a5.entry.js → p-ff3a01f3.entry.js} +2 -2
- package/dist/core/{p-75dac3d1.entry.js → p-ff6f1e3a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/date-helpers-0e5e32a7.js +136 -0
- package/dist/esm/date-helpers-0e5e32a7.js.map +1 -0
- package/dist/esm/{helpers-12b4266a.js → helpers-c34e4042.js} +27 -4
- package/dist/esm/helpers-c34e4042.js.map +1 -0
- package/dist/esm/{helpers-1f07eb61.js → helpers-f328a7b6.js} +92 -46
- package/dist/esm/helpers-f328a7b6.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +11 -2
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +18 -17
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +41 -86
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +1 -1
- package/dist/esm/ic-checkbox.entry.js +1 -1
- package/dist/esm/ic-chip.entry.js +25 -2
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +44 -309
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +1104 -0
- package/dist/esm/ic-date-input.entry.js.map +1 -0
- package/dist/esm/ic-date-picker.entry.js +1049 -0
- package/dist/esm/ic-date-picker.entry.js.map +1 -0
- package/dist/esm/ic-dialog.entry.js +14 -4
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/{components/ic-empty-state2.js → esm/ic-empty-state.entry.js} +11 -38
- package/dist/esm/ic-empty-state.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +143 -0
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +34 -16
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
- package/dist/esm/{ic-input-component-container_3.entry.js → ic-menu.entry.js} +7 -69
- package/dist/esm/ic-menu.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +27 -6
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +16 -13
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +29 -33
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +1 -1
- package/dist/esm/{ic-empty-state_2.entry.js → ic-pagination-bar.entry.js} +5 -34
- package/dist/esm/ic-pagination-bar.entry.js.map +1 -0
- package/dist/esm/ic-pagination_4.entry.js +54 -17
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +1 -1
- package/dist/esm/ic-radio-group.entry.js +40 -26
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +9 -4
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +1 -14
- package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +2 -2
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-step.entry.js +5 -2
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +2 -1
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +1 -1
- package/dist/esm/ic-tab-context.entry.js +18 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +1 -1
- package/dist/esm/ic-tab-panel.entry.js +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +3 -10
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +1 -1
- package/dist/esm/ic-toggle-button.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js +46 -60
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +12 -36
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +18 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +1 -96
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +0 -11
- package/dist/types/components/ic-data-table/story-data.d.ts +0 -99
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +251 -0
- package/dist/types/components/ic-date-input/story-data.d.ts +1 -0
- package/dist/types/components/ic-date-input/test/helpers/ic-date-input.d.ts +23 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +231 -0
- package/dist/types/components/ic-date-picker/ic-day-button.d.ts +16 -0
- package/dist/types/components/ic-date-picker/ic-month-picker.d.ts +14 -0
- package/dist/types/components/ic-date-picker/ic-year-picker.d.ts +16 -0
- package/dist/types/components/ic-date-picker/story-data.d.ts +22 -0
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +2 -2
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +2 -2
- package/dist/types/components.d.ts +390 -141
- package/dist/types/utils/constants.d.ts +37 -0
- package/dist/types/utils/date-helpers.d.ts +22 -0
- package/dist/types/utils/helpers.d.ts +84 -16
- package/dist/types/utils/types.d.ts +92 -1
- package/hydrate/index.js +3275 -1148
- package/package.json +4 -3
- package/dist/cjs/helpers-b525d45a.js.map +0 -1
- package/dist/cjs/helpers-c4444a7e.js.map +0 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +0 -57
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +0 -86
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.e2e.js +0 -217
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.e2e.js.map +0 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +0 -87
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +0 -160
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +0 -1
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +0 -70
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +0 -1
- package/dist/components/ic-data-table-title-bar.js +0 -136
- package/dist/components/ic-data-table-title-bar.js.map +0 -1
- package/dist/components/ic-empty-state2.js.map +0 -1
- package/dist/core/p-10fb4c46.entry.js +0 -2
- package/dist/core/p-10fb4c46.entry.js.map +0 -1
- package/dist/core/p-169bfa51.entry.js +0 -2
- package/dist/core/p-169bfa51.entry.js.map +0 -1
- package/dist/core/p-1e91f540.entry.js +0 -2
- package/dist/core/p-1e91f540.entry.js.map +0 -1
- package/dist/core/p-347e8dab.entry.js +0 -2
- package/dist/core/p-347e8dab.entry.js.map +0 -1
- package/dist/core/p-3803a5b5.entry.js +0 -2
- package/dist/core/p-3803a5b5.entry.js.map +0 -1
- package/dist/core/p-4753bac8.entry.js +0 -2
- package/dist/core/p-4753bac8.entry.js.map +0 -1
- package/dist/core/p-4baa0916.entry.js +0 -2
- package/dist/core/p-4baa0916.entry.js.map +0 -1
- package/dist/core/p-5171169f.entry.js +0 -2
- package/dist/core/p-5171169f.entry.js.map +0 -1
- package/dist/core/p-595be57d.entry.js +0 -2
- package/dist/core/p-5ee4319c.entry.js +0 -2
- package/dist/core/p-5ee4319c.entry.js.map +0 -1
- package/dist/core/p-5f4e96ec.entry.js +0 -2
- package/dist/core/p-5f4e96ec.entry.js.map +0 -1
- package/dist/core/p-624d4f5f.entry.js +0 -2
- package/dist/core/p-6933f8e9.entry.js +0 -2
- package/dist/core/p-6c3044b6.entry.js +0 -2
- package/dist/core/p-6c3044b6.entry.js.map +0 -1
- package/dist/core/p-7267fe19.entry.js +0 -2
- package/dist/core/p-7267fe19.entry.js.map +0 -1
- package/dist/core/p-76915584.entry.js.map +0 -1
- package/dist/core/p-88d54b72.entry.js +0 -2
- package/dist/core/p-88d54b72.entry.js.map +0 -1
- package/dist/core/p-917c5721.entry.js.map +0 -1
- package/dist/core/p-942282cd.entry.js +0 -2
- package/dist/core/p-942282cd.entry.js.map +0 -1
- package/dist/core/p-96b3e7e2.js +0 -2
- package/dist/core/p-96b3e7e2.js.map +0 -1
- package/dist/core/p-9caf19eb.js +0 -2
- package/dist/core/p-9caf19eb.js.map +0 -1
- package/dist/core/p-a0f8efb2.entry.js.map +0 -1
- package/dist/core/p-aac4185b.entry.js +0 -2
- package/dist/core/p-aac4185b.entry.js.map +0 -1
- package/dist/core/p-b2aa3d7c.entry.js +0 -2
- package/dist/core/p-b2aa3d7c.entry.js.map +0 -1
- package/dist/core/p-ba86928c.entry.js +0 -2
- package/dist/core/p-ba86928c.entry.js.map +0 -1
- package/dist/core/p-d8469ac0.entry.js +0 -2
- package/dist/core/p-d8469ac0.entry.js.map +0 -1
- package/dist/core/p-db9c03c0.entry.js +0 -2
- package/dist/core/p-f6888309.entry.js +0 -2
- package/dist/core/p-f6888309.entry.js.map +0 -1
- package/dist/core/p-f74a8752.entry.js +0 -2
- package/dist/core/p-f74a8752.entry.js.map +0 -1
- package/dist/core/p-fc5611e2.entry.js.map +0 -1
- package/dist/esm/helpers-12b4266a.js.map +0 -1
- package/dist/esm/helpers-1f07eb61.js.map +0 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +0 -53
- package/dist/esm/ic-data-table-title-bar.entry.js.map +0 -1
- package/dist/esm/ic-empty-state_2.entry.js.map +0 -1
- package/dist/esm/ic-input-component-container_3.entry.js.map +0 -1
- package/dist/esm/ic-input-label_2.entry.js +0 -81
- package/dist/esm/ic-input-label_2.entry.js.map +0 -1
- package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +0 -36
- /package/dist/core/{p-869954a2.entry.js.map → p-00bd7919.entry.js.map} +0 -0
- /package/dist/core/{p-a50c3b9e.entry.js.map → p-1a91e842.entry.js.map} +0 -0
- /package/dist/core/{p-f3c840cd.entry.js.map → p-41b682dc.entry.js.map} +0 -0
- /package/dist/core/{p-8b08d8fe.entry.js.map → p-6dce8e88.entry.js.map} +0 -0
- /package/dist/core/{p-1ca332ca.entry.js.map → p-6eb58b0a.entry.js.map} +0 -0
- /package/dist/core/{p-5ae93c16.entry.js.map → p-7fda2f94.entry.js.map} +0 -0
- /package/dist/core/{p-c34848da.entry.js.map → p-8b1f9648.entry.js.map} +0 -0
- /package/dist/core/{p-a434c3d4.entry.js.map → p-8b820365.entry.js.map} +0 -0
- /package/dist/core/{p-2eac7dcc.entry.js.map → p-946625a3.entry.js.map} +0 -0
- /package/dist/core/{p-7ef8d616.entry.js.map → p-9528b29e.entry.js.map} +0 -0
- /package/dist/core/{p-a43c12cd.entry.js.map → p-9567c117.entry.js.map} +0 -0
- /package/dist/core/{p-b82dcc29.entry.js.map → p-957de939.entry.js.map} +0 -0
- /package/dist/core/{p-045359e1.entry.js.map → p-99bf38e3.entry.js.map} +0 -0
- /package/dist/core/{p-81ddc39d.entry.js.map → p-9d8883d7.entry.js.map} +0 -0
- /package/dist/core/{p-e834344e.entry.js.map → p-a1556d97.entry.js.map} +0 -0
- /package/dist/core/{p-f843da01.entry.js.map → p-a2dc10d8.entry.js.map} +0 -0
- /package/dist/core/{p-ab09986c.entry.js.map → p-a8c15117.entry.js.map} +0 -0
- /package/dist/core/{p-f7a14c01.entry.js.map → p-c14a897d.entry.js.map} +0 -0
- /package/dist/core/{p-e3997d60.entry.js.map → p-d2d63a61.entry.js.map} +0 -0
- /package/dist/core/{p-4f413fc0.entry.js.map → p-db3a35fb.entry.js.map} +0 -0
- /package/dist/core/{p-204ace96.entry.js.map → p-e16f73ba.entry.js.map} +0 -0
- /package/dist/core/{p-f14454b1.entry.js.map → p-e8151d13.entry.js.map} +0 -0
- /package/dist/core/{p-a31031a5.entry.js.map → p-ff3a01f3.entry.js.map} +0 -0
- /package/dist/core/{p-75dac3d1.entry.js.map → p-ff6f1e3a.entry.js.map} +0 -0
- /package/dist/types/components/{ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts → ic-date-picker/test/a11y/ic-date-picker.test.a11y.d.ts} +0 -0
@@ -3,7 +3,6 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-4cf27b16.js');
|
6
|
-
const helpers = require('./helpers-c4444a7e.js');
|
7
6
|
|
8
7
|
const unsortedIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24">
|
9
8
|
<path d="M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"></path>
|
@@ -17,133 +16,16 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
17
16
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
18
17
|
</svg>`;
|
19
18
|
|
20
|
-
const icDataTableCss = ":host{position:relative;display:block;height:100%;max-height:100%}
|
19
|
+
const icDataTableCss = ":host{position:relative;display:block;height:100%;max-height:100%}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs))}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:fixed;border-spacing:0;width:100%}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-container{border:var(--ic-border-light)}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-color:var(--ic-table-row-selected) !important}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-action-dark-bg-hover)}.sort-button:active{background-color:var(--ic-action-dark-bg-active)}.sort-button svg{color:var(--ic-architectural-black)}.sort-button-unsorted svg{color:var(--ic-color-tertiary-text)}.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.column-header,.row-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-border-light) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important}.table-row:nth-child(even){background-color:var(--ic-architectural-20)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px)}.data-type-string{text-align:left;vertical-align:top}.data-type-number,.data-type-date{text-align:right;vertical-align:top}.cell-alignment-top{vertical-align:top}.cell-alignment-middle{vertical-align:middle}.cell-alignment-bottom{vertical-align:bottom}.cell-emphasis-low{color:var(--ic-color-secondary-text)}.cell-emphasis-high{font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}@media screen and (min-width: 576px){.column-header-inner-container{display:flex;align-items:center}}";
|
21
20
|
|
22
21
|
const DataTable = class {
|
23
22
|
constructor(hostRef) {
|
24
23
|
index.registerInstance(this, hostRef);
|
25
|
-
this.icRowHeightChange = index.createEvent(this, "icRowHeightChange", 7);
|
26
|
-
this.DENSITY_HEIGHT_MULTIPLIER = {
|
27
|
-
dense: 0.8,
|
28
|
-
default: 1,
|
29
|
-
spacious: 1.2,
|
30
|
-
};
|
31
|
-
this.DENSITY_PADDING_HEIGHT_DIFF = {
|
32
|
-
dense: 8,
|
33
|
-
default: 16,
|
34
|
-
spacious: 20,
|
35
|
-
};
|
36
24
|
this.SORT_ICONS = {
|
37
25
|
unsorted: unsortedIcon,
|
38
26
|
ascending: ascendingIcon,
|
39
27
|
descending: descendingIcon,
|
40
28
|
};
|
41
|
-
this.dataIsSorted = false;
|
42
|
-
this.hasLoadedForOneSecond = true;
|
43
|
-
this.itemsPerPageChanged = false;
|
44
|
-
this.updateTruncation = false;
|
45
|
-
this.removeDivStyles = (parentDiv) => {
|
46
|
-
parentDiv.style["height"] = null;
|
47
|
-
parentDiv.style["overflowY"] = null;
|
48
|
-
};
|
49
|
-
this.VERTICAL_CLASSES = ["cell-alignment-middle", "cell-alignment-bottom"];
|
50
|
-
this.removeVerticalAlignment = (el) => {
|
51
|
-
if (this.VERTICAL_CLASSES.some((className) => Array.from(el.classList).includes(className))) {
|
52
|
-
el.classList.remove(...this.VERTICAL_CLASSES);
|
53
|
-
}
|
54
|
-
};
|
55
|
-
this.setMaxLines = (typographyEl, cellContainer) => {
|
56
|
-
typographyEl.maxLines = Math.max(Math.floor(cellContainer.clientHeight / 24) - 1, 1); // Math.floor
|
57
|
-
typographyEl.checkCellTextMaxLines(cellContainer.clientHeight, typographyEl.scrollHeight);
|
58
|
-
this.removeDivStyles(cellContainer);
|
59
|
-
};
|
60
|
-
this.resetMaxLines = (typographyEl) => {
|
61
|
-
typographyEl.maxLines = undefined;
|
62
|
-
};
|
63
|
-
this.dataTruncation = () => {
|
64
|
-
Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)")).forEach((typographyEl) => {
|
65
|
-
const tableCell = typographyEl.closest("td");
|
66
|
-
const tooltip = typographyEl.closest("ic-tooltip");
|
67
|
-
const cellContainer = typographyEl.closest(".cell-container");
|
68
|
-
if (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.classList.contains("data-type-element"))
|
69
|
-
return;
|
70
|
-
if (this.updateTruncation && !this.dataIsSorted) {
|
71
|
-
this.resetMaxLines(typographyEl);
|
72
|
-
cellContainer.appendChild(typographyEl);
|
73
|
-
tooltip === null || tooltip === void 0 ? void 0 : tooltip.remove();
|
74
|
-
}
|
75
|
-
if (
|
76
|
-
// If cellContainer is bigger than the content inside
|
77
|
-
(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > typographyEl.scrollHeight &&
|
78
|
-
!!typographyEl.scrollHeight) {
|
79
|
-
if (tooltip) {
|
80
|
-
// Move the content into the cell container and remove the tooltip as the content shouldnt be truncated
|
81
|
-
cellContainer.appendChild(typographyEl);
|
82
|
-
tooltip.remove();
|
83
|
-
}
|
84
|
-
else {
|
85
|
-
// Remove an maxLines as the content is not truncated
|
86
|
-
typographyEl.maxLines = undefined;
|
87
|
-
}
|
88
|
-
// If content is bigger than cellContainer
|
89
|
-
}
|
90
|
-
else if (typographyEl.scrollHeight > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
91
|
-
// and the truncationPattern is tooltips
|
92
|
-
if (this.truncationPattern === "tooltip") {
|
93
|
-
// Get the number of lines by dividing by 24 (the eq of a line of text - in height) and add as line-clamp CSS
|
94
|
-
typographyEl.style.webkitLineClamp = `${Math.floor(cellContainer.clientHeight / 24)}`;
|
95
|
-
// Items that already have a tooltip before a change to the items per change, keep their tooltip
|
96
|
-
if (tooltip && !this.itemsPerPageChanged && !this.dataIsSorted) {
|
97
|
-
cellContainer.appendChild(typographyEl);
|
98
|
-
tooltip.remove();
|
99
|
-
}
|
100
|
-
if (tooltip && this.dataIsSorted) {
|
101
|
-
tooltip.setAttribute("target", typographyEl.id);
|
102
|
-
tooltip.setAttribute("label", typographyEl.textContent);
|
103
|
-
}
|
104
|
-
if (!tooltip) {
|
105
|
-
// if truncation pattern is tooltip and the tooltip does not exist, dynamically create one and add the content inside
|
106
|
-
const tooltipEl = document.createElement("ic-tooltip");
|
107
|
-
const rowIndex = Number(typographyEl.id.match(/-(\d+)$/)[1]);
|
108
|
-
tooltipEl.setAttribute("target", typographyEl.id);
|
109
|
-
tooltipEl.setAttribute("label", typographyEl.textContent);
|
110
|
-
// Checks if the truncated text is in the first row of the displayed page
|
111
|
-
rowIndex === 0 && tooltipEl.setAttribute("placement", "bottom");
|
112
|
-
// Checks if the truncated text is in the last row of the displayed page
|
113
|
-
if (rowIndex === this.data.length - 1 ||
|
114
|
-
rowIndex === this.rowsPerPage - 1) {
|
115
|
-
tooltipEl.setAttribute("placement", "top");
|
116
|
-
}
|
117
|
-
// Checks if the truncated text is in the first column
|
118
|
-
typographyEl.id.includes(this.columns[0].key) &&
|
119
|
-
tooltipEl.setAttribute("placement", "right");
|
120
|
-
// Checks if the truncated text is in the last column
|
121
|
-
typographyEl.id.includes(this.columns[this.columns.length - 1].key) && tooltipEl.setAttribute("placement", "left");
|
122
|
-
typographyEl.parentNode.replaceChild(tooltipEl, typographyEl);
|
123
|
-
tooltipEl.appendChild(typographyEl);
|
124
|
-
}
|
125
|
-
}
|
126
|
-
else {
|
127
|
-
// Else set the maxLines and add the see more/see less truncation link under
|
128
|
-
this.setMaxLines(typographyEl, cellContainer);
|
129
|
-
// Truncation should remove all alignment styling
|
130
|
-
this.removeVerticalAlignment(tableCell);
|
131
|
-
this.removeVerticalAlignment(cellContainer);
|
132
|
-
}
|
133
|
-
}
|
134
|
-
});
|
135
|
-
if (this.updateTruncation) {
|
136
|
-
this.updateTruncation = false;
|
137
|
-
}
|
138
|
-
};
|
139
|
-
this.startLoadingTimer = () => {
|
140
|
-
this.hasLoadedForOneSecond = false;
|
141
|
-
this.timerStarted = Date.now();
|
142
|
-
setTimeout(() => {
|
143
|
-
this.hasLoadedForOneSecond = true;
|
144
|
-
this.timerStarted = null;
|
145
|
-
}, this.minimumLoadingDisplayDuration);
|
146
|
-
};
|
147
29
|
this.isObject = (value) => typeof value === "object";
|
148
30
|
this.notDefaultDensity = () => this.density !== "default";
|
149
31
|
this.getCellContent = (cell, dataType) => {
|
@@ -161,20 +43,9 @@ const DataTable = class {
|
|
161
43
|
return this.getObjectValue(this.getObjectValue(cell, "cellAlignment"), alignment);
|
162
44
|
}
|
163
45
|
};
|
164
|
-
this.
|
165
|
-
const { appearance, description, max, min, progress } = this.updatingOptions || {};
|
166
|
-
return (index.h("th", { colSpan: this.columns.length, class: "updating-state" }, index.h("ic-loading-indicator", { appearance: appearance, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
167
|
-
};
|
168
|
-
this.setRowHeight = (height) => {
|
169
|
-
return helpers.pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
170
|
-
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
171
|
-
};
|
172
|
-
this.createCells = (row, rowIndex) => {
|
173
|
-
// Get the name of the row??
|
46
|
+
this.createCells = (row) => {
|
174
47
|
const rowValues = Object.values(row);
|
175
48
|
const rowKeys = Object.keys(row);
|
176
|
-
const rowTextWrapIndex = rowKeys.indexOf("textWrap");
|
177
|
-
const rowTextWrap = rowTextWrapIndex > -1 && rowValues[rowTextWrapIndex];
|
178
49
|
let rowAlignment;
|
179
50
|
let rowEmphasis;
|
180
51
|
const headerIndex = rowKeys.indexOf("header");
|
@@ -183,73 +54,43 @@ const DataTable = class {
|
|
183
54
|
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
184
55
|
}
|
185
56
|
return rowValues.map((cell, index$1) => {
|
186
|
-
const { columnAlignment, dataType, emphasis
|
187
|
-
const cellSlotName = `${key}-${rowIndex}`;
|
188
|
-
const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
|
189
|
-
const isNotElement = dataType !== "element";
|
57
|
+
const { columnAlignment, dataType, emphasis } = this.columns[index$1];
|
190
58
|
const cellValue = (key) => this.getObjectValue(cell, key);
|
191
|
-
return (
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
216
|
-
!!rowAlignment ||
|
217
|
-
!!this.getCellAlignment(cell, "vertical"),
|
218
|
-
}, style: {
|
219
|
-
height: this.currentRowHeight &&
|
220
|
-
!rowTextWrap &&
|
221
|
-
!textWrap &&
|
222
|
-
isNotElement
|
223
|
-
? this.setRowHeight(this.currentRowHeight)
|
224
|
-
: null,
|
225
|
-
overflowY: this.truncationPattern === "tooltip" &&
|
226
|
-
!(rowTextWrap && textWrap) &&
|
227
|
-
isNotElement
|
228
|
-
? "hidden"
|
229
|
-
: null,
|
230
|
-
} }, helpers.isSlotUsed(this.el, cellSlotName) ? (index.h("slot", { name: cellSlotName })) : (index.h(index.Fragment, null, helpers.isSlotUsed(this.el, `${cellSlotName}-icon`) ? (index.h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || (icon === null || icon === void 0 ? void 0 : icon.onAllCells)) && (index.h("span", { class: "icon", innerHTML: cellValue("icon") || icon.icon }))), index.h("ic-typography", { id: cellSlotName, variant: "body", class: {
|
231
|
-
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
232
|
-
emphasis ||
|
233
|
-
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
234
|
-
!!emphasis ||
|
235
|
-
!!rowEmphasis,
|
236
|
-
[`text-${this.density}`]: this.notDefaultDensity(),
|
237
|
-
} }, this.isObject(cell) && dataType !== "date" ? (Object.keys(cell).includes("href") ? (index.h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, dataType))))))))));
|
59
|
+
return rowKeys[index$1] === "header" ? (index.h("th", { scope: "row", colSpan: cellValue("colspan"), class: {
|
60
|
+
["row-header"]: true,
|
61
|
+
[`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
|
62
|
+
["row-header-sticky"]: this.stickyRowHeaders,
|
63
|
+
} }, cellValue("title"))) : (index.h("td", { innerHTML: dataType === "element" ? cell : null, class: {
|
64
|
+
["table-cell"]: true,
|
65
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
66
|
+
[`data-type-${dataType}`]: true,
|
67
|
+
[`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
|
68
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
|
69
|
+
!!this.getCellAlignment(cell, "horizontal"),
|
70
|
+
[`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
71
|
+
rowAlignment ||
|
72
|
+
this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
73
|
+
!!rowAlignment ||
|
74
|
+
!!this.getCellAlignment(cell, "vertical"),
|
75
|
+
} }, index.h("ic-typography", { variant: "body", class: {
|
76
|
+
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
77
|
+
emphasis ||
|
78
|
+
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
79
|
+
!!emphasis ||
|
80
|
+
!!rowEmphasis,
|
81
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
82
|
+
} }, this.isObject(cell) && dataType !== "date" ? (Object.keys(cell).includes("href") ? (index.h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, dataType)))));
|
238
83
|
});
|
239
84
|
};
|
240
85
|
this.createColumnHeaders = () => {
|
241
|
-
return this.columns.map(({ cellAlignment, colspan,
|
86
|
+
return this.columns.map(({ cellAlignment, colspan, key, title }) => (index.h("th", { scope: "col", class: {
|
242
87
|
["column-header"]: true,
|
243
|
-
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
244
|
-
["updating-state-headers"]: this.updating && !this.loading,
|
245
|
-
}, colSpan: colspan }, index.h("div", { class: {
|
246
|
-
"column-header-inner-container": true,
|
247
88
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
248
|
-
|
249
|
-
|
89
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
90
|
+
}, colSpan: colspan }, this.sortable ? (index.h("div", { class: "column-header-inner-container" }, index.h("ic-typography", { variant: "body", class: {
|
250
91
|
["column-header-text"]: true,
|
251
92
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
252
|
-
} }, title),
|
93
|
+
} }, title), index.h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
253
94
|
// eslint-disable-next-line react/jsx-no-bind
|
254
95
|
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
255
96
|
? this.sortedColumnOrder
|
@@ -257,47 +98,21 @@ const DataTable = class {
|
|
257
98
|
["sort-button"]: true,
|
258
99
|
["sort-button-unsorted"]: this.sortedColumn !== key ||
|
259
100
|
this.sortedColumnOrder === "unsorted",
|
260
|
-
} })))
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
!target.style.getPropertyValue("--truncation-max-lines")) {
|
265
|
-
this.selectedRow =
|
266
|
-
!(this.selectedRow === row && this.loading && this.updating) && row;
|
267
|
-
}
|
101
|
+
} }))) : (index.h("ic-typography", { variant: "body", class: {
|
102
|
+
["column-header-text"]: true,
|
103
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
104
|
+
} }, title)))));
|
268
105
|
};
|
269
106
|
this.createRows = () => {
|
270
107
|
const data = this.showPagination
|
271
108
|
? this.data.slice(this.fromRow, this.toRow)
|
272
109
|
: this.data.slice();
|
273
|
-
/**
|
274
|
-
* Ensures that createCells has a value in data to map over to actually render the slot.
|
275
|
-
* Removes the need for the user to add it multiple times.
|
276
|
-
*/
|
277
|
-
this.columns.forEach(({ key }) => {
|
278
|
-
data.forEach((row, rowIndex) => {
|
279
|
-
const cellSlotName = `${key}-${rowIndex}`;
|
280
|
-
if (helpers.isSlotUsed(this.el, cellSlotName)) {
|
281
|
-
row[key] = helpers.getSlotContent(this.el, cellSlotName);
|
282
|
-
}
|
283
|
-
});
|
284
|
-
});
|
285
110
|
return data
|
286
111
|
.sort(!this.sortable ? undefined : this.getSortFunction())
|
287
|
-
.map((row,
|
288
|
-
|
289
|
-
|
290
|
-
this.
|
291
|
-
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
292
|
-
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
293
|
-
return (index.h("tr", {
|
294
|
-
// eslint-disable-next-line react/jsx-no-bind
|
295
|
-
onClick: (event) => this.onRowClick(event.target, row), class: {
|
296
|
-
["table-row"]: true,
|
297
|
-
["table-row-selected"]: this.selectedRow === row,
|
298
|
-
}
|
299
|
-
}, this.createCells(row, index$1)));
|
300
|
-
});
|
112
|
+
.map((row) => (index.h("tr", { onClick: () => (this.selectedRow = this.selectedRow !== row && row), class: {
|
113
|
+
["table-row"]: true,
|
114
|
+
["table-row-selected"]: this.selectedRow === row,
|
115
|
+
} }, this.createCells(row))));
|
301
116
|
};
|
302
117
|
this.getObjectValue = (cell, key) => {
|
303
118
|
return Object.values(cell)[Object.keys(cell).indexOf(key)];
|
@@ -342,7 +157,6 @@ const DataTable = class {
|
|
342
157
|
};
|
343
158
|
this.sortRows = (column) => {
|
344
159
|
const sortButton = this.el.shadowRoot.querySelector(`#sort-button-${column}`);
|
345
|
-
this.dataIsSorted = true;
|
346
160
|
const sortOrders = this.sortOptions.sortOrders;
|
347
161
|
if (column !== this.sortedColumn) {
|
348
162
|
if (this.sortedColumn) {
|
@@ -376,11 +190,7 @@ const DataTable = class {
|
|
376
190
|
this.data = undefined;
|
377
191
|
this.density = "default";
|
378
192
|
this.embedded = false;
|
379
|
-
this.globalRowHeight = 40;
|
380
193
|
this.hideColumnHeaders = false;
|
381
|
-
this.loading = false;
|
382
|
-
this.loadingOptions = undefined;
|
383
|
-
this.minimumLoadingDisplayDuration = 1000;
|
384
194
|
this.paginationOptions = {
|
385
195
|
itemsPerPage: [
|
386
196
|
{ label: "10", value: "10" },
|
@@ -401,19 +211,13 @@ const DataTable = class {
|
|
401
211
|
};
|
402
212
|
this.stickyColumnHeaders = false;
|
403
213
|
this.stickyRowHeaders = false;
|
404
|
-
this.truncationPattern = "tooltip";
|
405
|
-
this.updating = false;
|
406
|
-
this.updatingOptions = undefined;
|
407
|
-
this.variableRowHeight = undefined;
|
408
214
|
}
|
409
215
|
componentWillLoad() {
|
410
|
-
var _a;
|
411
216
|
this.rowsPerPage = Number(this.paginationOptions.itemsPerPage[0].value);
|
412
217
|
this.previousRowsPerPage = this.rowsPerPage;
|
413
218
|
this.toRow = this.rowsPerPage;
|
414
219
|
this.sortedColumn = this.sortOptions.defaultColumn;
|
415
220
|
this.sortedColumnOrder = this.sortOptions.sortOrders[0];
|
416
|
-
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
|
417
221
|
}
|
418
222
|
componentDidLoad() {
|
419
223
|
const tableElement = this.el.shadowRoot.querySelector("table");
|
@@ -422,25 +226,10 @@ const DataTable = class {
|
|
422
226
|
(tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientWidth)) {
|
423
227
|
this.scrollable = true;
|
424
228
|
}
|
425
|
-
if (this.loading) {
|
426
|
-
this.startLoadingTimer();
|
427
|
-
this.showLoadingIndicator();
|
428
|
-
}
|
429
|
-
this.dataTruncation();
|
430
|
-
}
|
431
|
-
componentDidUpdate() {
|
432
|
-
if (!this.itemsPerPageChanged) {
|
433
|
-
this.updateTruncation = true;
|
434
|
-
}
|
435
|
-
this.dataTruncation();
|
436
|
-
this.itemsPerPageChanged = false;
|
437
|
-
this.dataIsSorted = false;
|
438
229
|
}
|
439
230
|
handleItemsPerPageChange(ev) {
|
440
231
|
this.previousRowsPerPage = this.rowsPerPage;
|
441
232
|
this.rowsPerPage = ev.detail.value;
|
442
|
-
this.itemsPerPageChanged = true;
|
443
|
-
this.dataTruncation();
|
444
233
|
}
|
445
234
|
handlePageChange(ev) {
|
446
235
|
this.fromRow = (ev.detail.value - 1) * this.rowsPerPage;
|
@@ -456,78 +245,24 @@ const DataTable = class {
|
|
456
245
|
else {
|
457
246
|
this.previousRowsPerPage = this.rowsPerPage;
|
458
247
|
}
|
459
|
-
this.dataTruncation();
|
460
|
-
}
|
461
|
-
handleDensityChange(ev) {
|
462
|
-
this.density = ev.detail.value;
|
463
248
|
}
|
464
249
|
clickListener(ev) {
|
465
250
|
if (ev.target !== this.el)
|
466
251
|
this.selectedRow = undefined;
|
467
252
|
}
|
468
|
-
loadingHandler(newValue) {
|
469
|
-
if (newValue)
|
470
|
-
this.startLoadingTimer();
|
471
|
-
if (this.loading) {
|
472
|
-
setTimeout(() => {
|
473
|
-
this.showLoadingIndicator();
|
474
|
-
}, 500);
|
475
|
-
}
|
476
|
-
}
|
477
|
-
dataHandler(newData) {
|
478
|
-
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
479
|
-
if (this.loading) {
|
480
|
-
!this.hasLoadedForOneSecond
|
481
|
-
? setTimeout(() => (this.loading = false), this.minimumLoadingDisplayDuration -
|
482
|
-
(Date.now() - this.timerStarted))
|
483
|
-
: (this.loading = false);
|
484
|
-
}
|
485
|
-
this.updating && (this.updating = false);
|
486
|
-
}
|
487
|
-
rowHeightChangeHandler() {
|
488
|
-
this.dataTruncation();
|
489
|
-
const deleteTextWrapKey = (array) => array.forEach((val) => val.textWrap && delete val.textWrap);
|
490
|
-
deleteTextWrapKey(this.data);
|
491
|
-
deleteTextWrapKey(this.columns);
|
492
|
-
this.icRowHeightChange.emit();
|
493
|
-
}
|
494
|
-
/**
|
495
|
-
* Resets the `globalRowHeight` prop to `40px` and sets the `variableRowHeight` prop to `null`.
|
496
|
-
*/
|
497
|
-
async resetRowHeights() {
|
498
|
-
this.globalRowHeight = 40;
|
499
|
-
this.variableRowHeight = null;
|
500
|
-
}
|
501
|
-
showLoadingIndicator() {
|
502
|
-
this.loadingIndicator.classList.add("show");
|
503
|
-
}
|
504
253
|
render() {
|
505
|
-
const { caption, createColumnHeaders, createRows,
|
506
|
-
return (index.h("div", { class: "table-container" },
|
254
|
+
const { caption, createColumnHeaders, createRows, data, hideColumnHeaders, paginationOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, } = this;
|
255
|
+
return (index.h("div", { class: "table-container" }, index.h("div", { class: {
|
507
256
|
["table-row-container"]: true,
|
508
257
|
scrollable,
|
509
|
-
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset },
|
258
|
+
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, index.h("table", null, index.h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (index.h("thead", { class: {
|
510
259
|
["column-header-sticky"]: stickyColumnHeaders,
|
511
260
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
512
|
-
} }, index.h("tr", null, createColumnHeaders()))),
|
513
|
-
!loading &&
|
514
|
-
(hideColumnHeaders ? (index.h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && !loading && index.h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
|
515
|
-
!loading &&
|
516
|
-
(helpers.isSlotUsed(this.el, "empty-state") ? (index.h("slot", { name: "empty-state" })) : (index.h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (index.h("ic-loading-indicator", { appearance: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, class: {
|
517
|
-
"loading-empty": loading,
|
518
|
-
loading: true,
|
519
|
-
"show-background": loadingOptions.showBackground,
|
520
|
-
}, description: loadingOptions.description || "Loading table data", label: loadingOptions.label || "Loading...", labelDuration: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.labelDuration, max: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.max, min: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.min, progress: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.progress, ref: (el) => (this.loadingIndicator = el) })), showPagination && (index.h("div", { class: "pagination-container" }, index.h("ic-pagination-bar", { totalItems: data.length, paginationType: paginationOptions.type, paginationControl: paginationOptions.control, showItemsPerPageControl: paginationOptions.itemsPerPageControl, showGoToPageControl: paginationOptions.goToPageControl, itemsPerPageOptions: paginationOptions.itemsPerPage, alignment: paginationOptions.alignment }))), sortable && (index.h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
261
|
+
} }, index.h("tr", null, createColumnHeaders()))), (data === null || data === void 0 ? void 0 : data.length) > 0 && index.h("tbody", null, createRows()))), showPagination && (index.h("div", { class: "pagination-container" }, index.h("ic-pagination-bar", { totalItems: data.length, paginationType: paginationOptions.type, paginationControl: paginationOptions.control, showItemsPerPageControl: paginationOptions.itemsPerPageControl, showGoToPageControl: paginationOptions.goToPageControl, itemsPerPageOptions: paginationOptions.itemsPerPage, alignment: paginationOptions.alignment }))), sortable && (index.h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
521
262
|
? `${sortedColumn} sorted ${sortedColumnOrder}`
|
522
263
|
: "table unsorted"))));
|
523
264
|
}
|
524
265
|
get el() { return index.getElement(this); }
|
525
|
-
static get watchers() { return {
|
526
|
-
"loading": ["loadingHandler"],
|
527
|
-
"data": ["dataHandler"],
|
528
|
-
"globalRowHeight": ["rowHeightChangeHandler"],
|
529
|
-
"variableRowHeight": ["rowHeightChangeHandler"]
|
530
|
-
}; }
|
531
266
|
};
|
532
267
|
DataTable.style = icDataTableCss;
|
533
268
|
|