@ukic/canary-web-components 2.0.0-canary.12 → 2.0.0-canary.13
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-6acbb97e.js} +15 -3
- package/dist/cjs/helpers-6acbb97e.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 +16 -8
- 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 +8 -2
- 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 +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 +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 +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 +5 -5
- 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 +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +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 +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +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 +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 +15 -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 +16 -8
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-button2.js +11 -3
- 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 +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 +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 +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 +1 -1
- package/dist/components/ic-radio-option.js +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 +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-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 +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-917c5721.entry.js → p-04f46dac.entry.js} +2 -2
- package/dist/core/{p-204ace96.entry.js → p-05d0ac42.entry.js} +2 -2
- package/dist/core/{p-a50c3b9e.entry.js → p-0707f2fc.entry.js} +2 -2
- package/dist/core/{p-6933f8e9.entry.js → p-094a0455.entry.js} +2 -2
- package/dist/core/{p-a434c3d4.entry.js → p-1170c02d.entry.js} +2 -2
- package/dist/core/{p-869954a2.entry.js → p-169dcfdd.entry.js} +2 -2
- package/dist/core/{p-f7a14c01.entry.js → p-1a4bce88.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-4baa0916.entry.js → p-28bddd8d.entry.js} +2 -2
- package/dist/core/{p-a43c12cd.entry.js → p-2ec33c00.entry.js} +2 -2
- package/dist/core/p-31800427.entry.js +2 -0
- package/dist/core/{p-045359e1.entry.js.map → p-31800427.entry.js.map} +1 -1
- package/dist/core/p-33dd24eb.js +2 -0
- package/dist/core/p-33dd24eb.js.map +1 -0
- package/dist/core/p-3b0caac0.js +2 -0
- package/dist/core/p-3b0caac0.js.map +1 -0
- package/dist/core/{p-f843da01.entry.js → p-3d0185a4.entry.js} +2 -2
- package/dist/core/{p-f3c840cd.entry.js → p-3f4c408a.entry.js} +2 -2
- package/dist/core/{p-e834344e.entry.js → p-4020d7f7.entry.js} +2 -2
- package/dist/core/p-402fd288.entry.js +2 -0
- package/dist/core/p-402fd288.entry.js.map +1 -0
- package/dist/core/{p-88d54b72.entry.js → p-49449a2d.entry.js} +2 -2
- package/dist/core/{p-db9c03c0.entry.js → p-4a30b0fc.entry.js} +2 -2
- package/dist/core/{p-a31031a5.entry.js → p-4b361789.entry.js} +2 -2
- package/dist/core/p-50cfc2bb.entry.js +2 -0
- package/dist/core/{p-ba86928c.entry.js.map → p-50cfc2bb.entry.js.map} +1 -1
- package/dist/core/{p-624d4f5f.entry.js → p-55d819a6.entry.js} +2 -2
- package/dist/core/{p-10fb4c46.entry.js → p-58c87b3d.entry.js} +2 -2
- package/dist/core/p-623f911f.entry.js +2 -0
- package/dist/core/p-623f911f.entry.js.map +1 -0
- package/dist/core/p-66b8f0a7.entry.js +2 -0
- package/dist/core/p-66b8f0a7.entry.js.map +1 -0
- package/dist/core/p-6b68ee01.entry.js +2 -0
- package/dist/core/p-6b68ee01.entry.js.map +1 -0
- package/dist/core/{p-595be57d.entry.js → p-7c8f85fd.entry.js} +2 -2
- package/dist/core/{p-d8469ac0.entry.js → p-7d1381ef.entry.js} +2 -2
- package/dist/core/p-849f43c3.entry.js +2 -0
- package/dist/core/p-849f43c3.entry.js.map +1 -0
- package/dist/core/{p-e3997d60.entry.js → p-8b1d128c.entry.js} +2 -2
- package/dist/core/{p-81ddc39d.entry.js → p-8ef85b15.entry.js} +2 -2
- package/dist/core/p-925da2d2.entry.js +2 -0
- package/dist/core/p-925da2d2.entry.js.map +1 -0
- package/dist/core/p-940de102.entry.js +2 -0
- package/dist/core/p-940de102.entry.js.map +1 -0
- package/dist/core/p-981b6f12.entry.js +2 -0
- package/dist/core/p-981b6f12.entry.js.map +1 -0
- 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-a0f8efb2.entry.js → p-a9ed6a71.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-ab09986c.entry.js → p-b3d21d06.entry.js} +2 -2
- package/dist/core/p-b612d68b.entry.js +2 -0
- package/dist/core/p-b612d68b.entry.js.map +1 -0
- package/dist/core/p-b8a3b16d.entry.js +2 -0
- package/dist/core/p-b8a3b16d.entry.js.map +1 -0
- package/dist/core/{p-b82dcc29.entry.js → p-bbcd6d06.entry.js} +2 -2
- package/dist/core/{p-1ca332ca.entry.js → p-bcfbd465.entry.js} +2 -2
- package/dist/core/{p-5ae93c16.entry.js → p-bf316546.entry.js} +2 -2
- package/dist/core/{p-fc5611e2.entry.js → p-c51496ee.entry.js} +2 -2
- package/dist/core/p-c51496ee.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-4f413fc0.entry.js → p-c7b52046.entry.js} +2 -2
- package/dist/core/p-cd799087.js +2 -0
- package/dist/core/p-cd799087.js.map +1 -0
- package/dist/core/{p-7ef8d616.entry.js → p-da578abf.entry.js} +2 -2
- package/dist/core/p-dae1779d.entry.js +2 -0
- package/dist/core/{p-f14454b1.entry.js.map → p-dae1779d.entry.js.map} +1 -1
- package/dist/core/{p-8b08d8fe.entry.js → p-e0e26834.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-e30f2623.entry.js +2 -0
- package/dist/core/p-e30f2623.entry.js.map +1 -0
- package/dist/core/p-e676069e.entry.js +2 -0
- package/dist/core/p-e676069e.entry.js.map +1 -0
- package/dist/core/{p-75dac3d1.entry.js → p-ed7379e3.entry.js} +2 -2
- package/dist/core/{p-c34848da.entry.js → p-f4965c26.entry.js} +2 -2
- package/dist/core/{p-6c3044b6.entry.js → p-f9ee48f7.entry.js} +2 -2
- package/dist/core/{p-2eac7dcc.entry.js → p-f9fcdd21.entry.js} +2 -2
- package/dist/core/p-fdd8f3a5.entry.js +2 -0
- package/dist/core/p-fdd8f3a5.entry.js.map +1 -0
- package/dist/core/{p-5e0c830b.entry.js → p-ffa94639.entry.js} +2 -2
- package/dist/core/{p-5e0c830b.entry.js.map → p-ffa94639.entry.js.map} +1 -1
- 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-451953f9.js} +16 -4
- package/dist/esm/helpers-451953f9.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 +16 -8
- 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 +8 -2
- 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 +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 +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 +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 +5 -5
- 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 +1 -1
- package/dist/esm/ic-radio-option.entry.js +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 +1 -1
- package/dist/esm/ic-stepper.entry.js +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 +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 +3026 -950
- 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-045359e1.entry.js +0 -2
- 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-5171169f.entry.js +0 -2
- package/dist/core/p-5171169f.entry.js.map +0 -1
- 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-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-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-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-f14454b1.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-917c5721.entry.js.map → p-04f46dac.entry.js.map} +0 -0
- /package/dist/core/{p-204ace96.entry.js.map → p-05d0ac42.entry.js.map} +0 -0
- /package/dist/core/{p-a50c3b9e.entry.js.map → p-0707f2fc.entry.js.map} +0 -0
- /package/dist/core/{p-6933f8e9.entry.js.map → p-094a0455.entry.js.map} +0 -0
- /package/dist/core/{p-a434c3d4.entry.js.map → p-1170c02d.entry.js.map} +0 -0
- /package/dist/core/{p-869954a2.entry.js.map → p-169dcfdd.entry.js.map} +0 -0
- /package/dist/core/{p-f7a14c01.entry.js.map → p-1a4bce88.entry.js.map} +0 -0
- /package/dist/core/{p-4baa0916.entry.js.map → p-28bddd8d.entry.js.map} +0 -0
- /package/dist/core/{p-a43c12cd.entry.js.map → p-2ec33c00.entry.js.map} +0 -0
- /package/dist/core/{p-f843da01.entry.js.map → p-3d0185a4.entry.js.map} +0 -0
- /package/dist/core/{p-f3c840cd.entry.js.map → p-3f4c408a.entry.js.map} +0 -0
- /package/dist/core/{p-e834344e.entry.js.map → p-4020d7f7.entry.js.map} +0 -0
- /package/dist/core/{p-88d54b72.entry.js.map → p-49449a2d.entry.js.map} +0 -0
- /package/dist/core/{p-db9c03c0.entry.js.map → p-4a30b0fc.entry.js.map} +0 -0
- /package/dist/core/{p-a31031a5.entry.js.map → p-4b361789.entry.js.map} +0 -0
- /package/dist/core/{p-624d4f5f.entry.js.map → p-55d819a6.entry.js.map} +0 -0
- /package/dist/core/{p-10fb4c46.entry.js.map → p-58c87b3d.entry.js.map} +0 -0
- /package/dist/core/{p-595be57d.entry.js.map → p-7c8f85fd.entry.js.map} +0 -0
- /package/dist/core/{p-d8469ac0.entry.js.map → p-7d1381ef.entry.js.map} +0 -0
- /package/dist/core/{p-e3997d60.entry.js.map → p-8b1d128c.entry.js.map} +0 -0
- /package/dist/core/{p-81ddc39d.entry.js.map → p-8ef85b15.entry.js.map} +0 -0
- /package/dist/core/{p-a0f8efb2.entry.js.map → p-a9ed6a71.entry.js.map} +0 -0
- /package/dist/core/{p-ab09986c.entry.js.map → p-b3d21d06.entry.js.map} +0 -0
- /package/dist/core/{p-b82dcc29.entry.js.map → p-bbcd6d06.entry.js.map} +0 -0
- /package/dist/core/{p-1ca332ca.entry.js.map → p-bcfbd465.entry.js.map} +0 -0
- /package/dist/core/{p-5ae93c16.entry.js.map → p-bf316546.entry.js.map} +0 -0
- /package/dist/core/{p-4f413fc0.entry.js.map → p-c7b52046.entry.js.map} +0 -0
- /package/dist/core/{p-7ef8d616.entry.js.map → p-da578abf.entry.js.map} +0 -0
- /package/dist/core/{p-8b08d8fe.entry.js.map → p-e0e26834.entry.js.map} +0 -0
- /package/dist/core/{p-75dac3d1.entry.js.map → p-ed7379e3.entry.js.map} +0 -0
- /package/dist/core/{p-c34848da.entry.js.map → p-f4965c26.entry.js.map} +0 -0
- /package/dist/core/{p-6c3044b6.entry.js.map → p-f9ee48f7.entry.js.map} +0 -0
- /package/dist/core/{p-2eac7dcc.entry.js.map → p-f9fcdd21.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
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { a as removeDisabledFalse, o as onComponentRequiredPropUndefined, t as getInputDescribedByText, u as hasValidationStatus } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$4 } from './ic-input-label2.js';
|
4
4
|
import { d as defineCustomElement$3 } from './ic-input-validation2.js';
|
5
5
|
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { a as removeDisabledFalse, n as addFormResetListener, o as onComponentRequiredPropUndefined, p as removeFormResetListener, q as renderHiddenInput, s as removeHiddenInput, i as isSlotUsed, d as isPropDefined } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
4
4
|
|
5
5
|
const icCheckboxCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.disabled){color:var(--ic-architectural-200);pointer-events:none}.container{display:flex;width:-moz-fit-content;width:fit-content;padding:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs);margin-bottom:var(--ic-space-xxs);align-items:center}:host(.small) .container{margin-bottom:var(--ic-space-xxxs)}.checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-architectural-white);border:var(--ic-border-width) solid var(--ic-architectural-300);border-radius:var(--ic-border-radius);outline:none;cursor:pointer;transition:var(--ic-easing-transition-fast);flex-shrink:0}:host(.small) .checkbox,:host(.small) .container svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.large) .checkbox,:host(.large) .container svg{width:var(--ic-space-xl);height:var(--ic-space-xl)}.checkbox:checked{background-color:var(--ic-action-default);border:var(--ic-border-width) solid var(--ic-action-default);transition:var(--ic-easing-transition-slow)}.checkbox:checked:disabled{background-color:var(--ic-architectural-200)}.checkbox:indeterminate,.checkbox.indeterminate:checked{background-color:var(--ic-architectural-white);border:0.125rem solid var(--ic-action-default)}.checkbox:checked:hover{background-color:var(--ic-action-default-hover)}.checkbox:indeterminate:hover,.checkbox.indeterminate:checked:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);border:0.125rem solid var(--ic-action-default-hover)}.checkbox:checked:active{background-color:var(--ic-action-default-active)}.checkbox:indeterminate:active,.checkbox.indeterminate:checked:active{background-color:var(--ic-action-default-bg-active-no-alpha);border:0.125rem solid var(--ic-action-default-active)}.checkbox:hover{background-color:var(--ic-action-default-bg-hover-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-hover);border:var(--ic-border-width) solid var(--ic-action-default-hover)}.checkbox:active{background-color:var(--ic-action-default-bg-active-no-alpha);box-shadow:0 0 0 0.25rem var(--ic-action-default-bg-active);border:var(--ic-border-width) solid var(--ic-action-default-active)}.checkbox:focus{box-shadow:var(--ic-border-focus)}.checkbox:disabled{border:var(--ic-border-width) dashed var(--ic-architectural-200)}.checkbox-label{padding-left:var(--ic-space-sm)}.checkbox-label:hover{cursor:pointer}.checkmark{position:relative;right:calc(-1 * var(--ic-space-lg));margin-left:calc(-1 * var(--ic-space-lg));fill:white;z-index:1;background-color:transparent;pointer-events:none;flex-shrink:0}:host(.small) .checkmark{margin-left:calc(-1 * var(--ic-space-md));right:calc(-1 * var(--ic-space-md))}:host(.large) .checkmark{margin-left:calc(-1 * var(--ic-space-xl));right:calc(-1 * var(--ic-space-xl))}.indeterminate-symbol{position:relative;width:0.875rem;height:var(--ic-space-xxxs);right:-1.188rem;margin-left:-0.875rem;z-index:1;background-color:var(--ic-action-default);pointer-events:none;flex-shrink:0}:host(.small) .indeterminate-symbol{width:0.6rem;right:-0.8rem;margin-left:-0.6rem}:host(.large) .indeterminate-symbol{width:1.25rem;right:-1.625rem;margin-left:-1.25rem}.container:hover .indeterminate-symbol{background-color:var(--ic-action-default-hover)}.container:active .indeterminate-symbol{background-color:var(--ic-action-default-active)}.additional-field-wrapper{margin-left:calc(var(--ic-space-md) + var(--ic-space-lg));margin-top:calc(var(--ic-space-sm) / 2)}.branch-corner{color:var(--ic-action-default);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-action-default);border-left:0.125rem solid var(--ic-action-default)}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.dynamic-text{color:var(--ic-action-default);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){::slotted(ic-text-field){--input-width:100%}}@media (forced-colors: active){.checkbox{-webkit-appearance:revert;-moz-appearance:revert;appearance:revert;transition:none}.checkbox:checked{transition:none}.checkbox:focus-visible{outline:0.125rem solid highlight}.checkbox:disabled:not(:checked){-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.checkmark{fill:none}.indeterminate-symbol{display:none}}";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { a as removeDisabledFalse, o as onComponentRequiredPropUndefined, i as isSlotUsed } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$3 } from './ic-tooltip2.js';
|
4
4
|
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
5
5
|
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import { proxyCustomElement, HTMLElement,
|
2
|
-
import {
|
3
|
-
import { d as defineCustomElement$h } from './ic-button2.js';
|
4
|
-
import { d as defineCustomElement$g } from './ic-empty-state2.js';
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
2
|
+
import { d as defineCustomElement$g } from './ic-button2.js';
|
5
3
|
import { d as defineCustomElement$f } from './ic-input-component-container2.js';
|
6
4
|
import { d as defineCustomElement$e } from './ic-input-container2.js';
|
7
5
|
import { d as defineCustomElement$d } from './ic-input-label2.js';
|
@@ -29,135 +27,18 @@ const descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 2
|
|
29
27
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
30
28
|
</svg>`;
|
31
29
|
|
32
|
-
const icDataTableCss = ":host{position:relative;display:block;height:100%;max-height:100%}
|
30
|
+
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}}";
|
33
31
|
|
34
32
|
const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLElement {
|
35
33
|
constructor() {
|
36
34
|
super();
|
37
35
|
this.__registerHost();
|
38
36
|
this.__attachShadow();
|
39
|
-
this.icRowHeightChange = createEvent(this, "icRowHeightChange", 7);
|
40
|
-
this.DENSITY_HEIGHT_MULTIPLIER = {
|
41
|
-
dense: 0.8,
|
42
|
-
default: 1,
|
43
|
-
spacious: 1.2,
|
44
|
-
};
|
45
|
-
this.DENSITY_PADDING_HEIGHT_DIFF = {
|
46
|
-
dense: 8,
|
47
|
-
default: 16,
|
48
|
-
spacious: 20,
|
49
|
-
};
|
50
37
|
this.SORT_ICONS = {
|
51
38
|
unsorted: unsortedIcon,
|
52
39
|
ascending: ascendingIcon,
|
53
40
|
descending: descendingIcon,
|
54
41
|
};
|
55
|
-
this.dataIsSorted = false;
|
56
|
-
this.hasLoadedForOneSecond = true;
|
57
|
-
this.itemsPerPageChanged = false;
|
58
|
-
this.updateTruncation = false;
|
59
|
-
this.removeDivStyles = (parentDiv) => {
|
60
|
-
parentDiv.style["height"] = null;
|
61
|
-
parentDiv.style["overflowY"] = null;
|
62
|
-
};
|
63
|
-
this.VERTICAL_CLASSES = ["cell-alignment-middle", "cell-alignment-bottom"];
|
64
|
-
this.removeVerticalAlignment = (el) => {
|
65
|
-
if (this.VERTICAL_CLASSES.some((className) => Array.from(el.classList).includes(className))) {
|
66
|
-
el.classList.remove(...this.VERTICAL_CLASSES);
|
67
|
-
}
|
68
|
-
};
|
69
|
-
this.setMaxLines = (typographyEl, cellContainer) => {
|
70
|
-
typographyEl.maxLines = Math.max(Math.floor(cellContainer.clientHeight / 24) - 1, 1); // Math.floor
|
71
|
-
typographyEl.checkCellTextMaxLines(cellContainer.clientHeight, typographyEl.scrollHeight);
|
72
|
-
this.removeDivStyles(cellContainer);
|
73
|
-
};
|
74
|
-
this.resetMaxLines = (typographyEl) => {
|
75
|
-
typographyEl.maxLines = undefined;
|
76
|
-
};
|
77
|
-
this.dataTruncation = () => {
|
78
|
-
Array.from(this.el.shadowRoot.querySelectorAll("ic-typography:not(.column-header-text)")).forEach((typographyEl) => {
|
79
|
-
const tableCell = typographyEl.closest("td");
|
80
|
-
const tooltip = typographyEl.closest("ic-tooltip");
|
81
|
-
const cellContainer = typographyEl.closest(".cell-container");
|
82
|
-
if (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.classList.contains("data-type-element"))
|
83
|
-
return;
|
84
|
-
if (this.updateTruncation && !this.dataIsSorted) {
|
85
|
-
this.resetMaxLines(typographyEl);
|
86
|
-
cellContainer.appendChild(typographyEl);
|
87
|
-
tooltip === null || tooltip === void 0 ? void 0 : tooltip.remove();
|
88
|
-
}
|
89
|
-
if (
|
90
|
-
// If cellContainer is bigger than the content inside
|
91
|
-
(cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight) > typographyEl.scrollHeight &&
|
92
|
-
!!typographyEl.scrollHeight) {
|
93
|
-
if (tooltip) {
|
94
|
-
// Move the content into the cell container and remove the tooltip as the content shouldnt be truncated
|
95
|
-
cellContainer.appendChild(typographyEl);
|
96
|
-
tooltip.remove();
|
97
|
-
}
|
98
|
-
else {
|
99
|
-
// Remove an maxLines as the content is not truncated
|
100
|
-
typographyEl.maxLines = undefined;
|
101
|
-
}
|
102
|
-
// If content is bigger than cellContainer
|
103
|
-
}
|
104
|
-
else if (typographyEl.scrollHeight > (cellContainer === null || cellContainer === void 0 ? void 0 : cellContainer.clientHeight)) {
|
105
|
-
// and the truncationPattern is tooltips
|
106
|
-
if (this.truncationPattern === "tooltip") {
|
107
|
-
// Get the number of lines by dividing by 24 (the eq of a line of text - in height) and add as line-clamp CSS
|
108
|
-
typographyEl.style.webkitLineClamp = `${Math.floor(cellContainer.clientHeight / 24)}`;
|
109
|
-
// Items that already have a tooltip before a change to the items per change, keep their tooltip
|
110
|
-
if (tooltip && !this.itemsPerPageChanged && !this.dataIsSorted) {
|
111
|
-
cellContainer.appendChild(typographyEl);
|
112
|
-
tooltip.remove();
|
113
|
-
}
|
114
|
-
if (tooltip && this.dataIsSorted) {
|
115
|
-
tooltip.setAttribute("target", typographyEl.id);
|
116
|
-
tooltip.setAttribute("label", typographyEl.textContent);
|
117
|
-
}
|
118
|
-
if (!tooltip) {
|
119
|
-
// if truncation pattern is tooltip and the tooltip does not exist, dynamically create one and add the content inside
|
120
|
-
const tooltipEl = document.createElement("ic-tooltip");
|
121
|
-
const rowIndex = Number(typographyEl.id.match(/-(\d+)$/)[1]);
|
122
|
-
tooltipEl.setAttribute("target", typographyEl.id);
|
123
|
-
tooltipEl.setAttribute("label", typographyEl.textContent);
|
124
|
-
// Checks if the truncated text is in the first row of the displayed page
|
125
|
-
rowIndex === 0 && tooltipEl.setAttribute("placement", "bottom");
|
126
|
-
// Checks if the truncated text is in the last row of the displayed page
|
127
|
-
if (rowIndex === this.data.length - 1 ||
|
128
|
-
rowIndex === this.rowsPerPage - 1) {
|
129
|
-
tooltipEl.setAttribute("placement", "top");
|
130
|
-
}
|
131
|
-
// Checks if the truncated text is in the first column
|
132
|
-
typographyEl.id.includes(this.columns[0].key) &&
|
133
|
-
tooltipEl.setAttribute("placement", "right");
|
134
|
-
// Checks if the truncated text is in the last column
|
135
|
-
typographyEl.id.includes(this.columns[this.columns.length - 1].key) && tooltipEl.setAttribute("placement", "left");
|
136
|
-
typographyEl.parentNode.replaceChild(tooltipEl, typographyEl);
|
137
|
-
tooltipEl.appendChild(typographyEl);
|
138
|
-
}
|
139
|
-
}
|
140
|
-
else {
|
141
|
-
// Else set the maxLines and add the see more/see less truncation link under
|
142
|
-
this.setMaxLines(typographyEl, cellContainer);
|
143
|
-
// Truncation should remove all alignment styling
|
144
|
-
this.removeVerticalAlignment(tableCell);
|
145
|
-
this.removeVerticalAlignment(cellContainer);
|
146
|
-
}
|
147
|
-
}
|
148
|
-
});
|
149
|
-
if (this.updateTruncation) {
|
150
|
-
this.updateTruncation = false;
|
151
|
-
}
|
152
|
-
};
|
153
|
-
this.startLoadingTimer = () => {
|
154
|
-
this.hasLoadedForOneSecond = false;
|
155
|
-
this.timerStarted = Date.now();
|
156
|
-
setTimeout(() => {
|
157
|
-
this.hasLoadedForOneSecond = true;
|
158
|
-
this.timerStarted = null;
|
159
|
-
}, this.minimumLoadingDisplayDuration);
|
160
|
-
};
|
161
42
|
this.isObject = (value) => typeof value === "object";
|
162
43
|
this.notDefaultDensity = () => this.density !== "default";
|
163
44
|
this.getCellContent = (cell, dataType) => {
|
@@ -175,20 +56,9 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
175
56
|
return this.getObjectValue(this.getObjectValue(cell, "cellAlignment"), alignment);
|
176
57
|
}
|
177
58
|
};
|
178
|
-
this.
|
179
|
-
const { appearance, description, max, min, progress } = this.updatingOptions || {};
|
180
|
-
return (h("th", { colSpan: this.columns.length, class: "updating-state" }, h("ic-loading-indicator", { appearance: appearance, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
181
|
-
};
|
182
|
-
this.setRowHeight = (height) => {
|
183
|
-
return pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
184
|
-
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
185
|
-
};
|
186
|
-
this.createCells = (row, rowIndex) => {
|
187
|
-
// Get the name of the row??
|
59
|
+
this.createCells = (row) => {
|
188
60
|
const rowValues = Object.values(row);
|
189
61
|
const rowKeys = Object.keys(row);
|
190
|
-
const rowTextWrapIndex = rowKeys.indexOf("textWrap");
|
191
|
-
const rowTextWrap = rowTextWrapIndex > -1 && rowValues[rowTextWrapIndex];
|
192
62
|
let rowAlignment;
|
193
63
|
let rowEmphasis;
|
194
64
|
const headerIndex = rowKeys.indexOf("header");
|
@@ -197,73 +67,43 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
197
67
|
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
198
68
|
}
|
199
69
|
return rowValues.map((cell, index) => {
|
200
|
-
const { columnAlignment, dataType, emphasis
|
201
|
-
const cellSlotName = `${key}-${rowIndex}`;
|
202
|
-
const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
|
203
|
-
const isNotElement = dataType !== "element";
|
70
|
+
const { columnAlignment, dataType, emphasis } = this.columns[index];
|
204
71
|
const cellValue = (key) => this.getObjectValue(cell, key);
|
205
|
-
return (
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
230
|
-
!!rowAlignment ||
|
231
|
-
!!this.getCellAlignment(cell, "vertical"),
|
232
|
-
}, style: {
|
233
|
-
height: this.currentRowHeight &&
|
234
|
-
!rowTextWrap &&
|
235
|
-
!textWrap &&
|
236
|
-
isNotElement
|
237
|
-
? this.setRowHeight(this.currentRowHeight)
|
238
|
-
: null,
|
239
|
-
overflowY: this.truncationPattern === "tooltip" &&
|
240
|
-
!(rowTextWrap && textWrap) &&
|
241
|
-
isNotElement
|
242
|
-
? "hidden"
|
243
|
-
: null,
|
244
|
-
} }, isSlotUsed(this.el, cellSlotName) ? (h("slot", { name: cellSlotName })) : (h(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (h("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || (icon === null || icon === void 0 ? void 0 : icon.onAllCells)) && (h("span", { class: "icon", innerHTML: cellValue("icon") || icon.icon }))), h("ic-typography", { id: cellSlotName, variant: "body", class: {
|
245
|
-
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
246
|
-
emphasis ||
|
247
|
-
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
248
|
-
!!emphasis ||
|
249
|
-
!!rowEmphasis,
|
250
|
-
[`text-${this.density}`]: this.notDefaultDensity(),
|
251
|
-
} }, this.isObject(cell) && dataType !== "date" ? (Object.keys(cell).includes("href") ? (h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, dataType))))))))));
|
72
|
+
return rowKeys[index] === "header" ? (h("th", { scope: "row", colSpan: cellValue("colspan"), class: {
|
73
|
+
["row-header"]: true,
|
74
|
+
[`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
|
75
|
+
["row-header-sticky"]: this.stickyRowHeaders,
|
76
|
+
} }, cellValue("title"))) : (h("td", { innerHTML: dataType === "element" ? cell : null, class: {
|
77
|
+
["table-cell"]: true,
|
78
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
79
|
+
[`data-type-${dataType}`]: true,
|
80
|
+
[`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
|
81
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.horizontal) ||
|
82
|
+
!!this.getCellAlignment(cell, "horizontal"),
|
83
|
+
[`cell-alignment-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
84
|
+
rowAlignment ||
|
85
|
+
this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
86
|
+
!!rowAlignment ||
|
87
|
+
!!this.getCellAlignment(cell, "vertical"),
|
88
|
+
} }, h("ic-typography", { variant: "body", class: {
|
89
|
+
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
90
|
+
emphasis ||
|
91
|
+
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
92
|
+
!!emphasis ||
|
93
|
+
!!rowEmphasis,
|
94
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
95
|
+
} }, this.isObject(cell) && dataType !== "date" ? (Object.keys(cell).includes("href") ? (h("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, dataType)))));
|
252
96
|
});
|
253
97
|
};
|
254
98
|
this.createColumnHeaders = () => {
|
255
|
-
return this.columns.map(({ cellAlignment, colspan,
|
99
|
+
return this.columns.map(({ cellAlignment, colspan, key, title }) => (h("th", { scope: "col", class: {
|
256
100
|
["column-header"]: true,
|
257
|
-
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
258
|
-
["updating-state-headers"]: this.updating && !this.loading,
|
259
|
-
}, colSpan: colspan }, h("div", { class: {
|
260
|
-
"column-header-inner-container": true,
|
261
101
|
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
262
|
-
|
263
|
-
|
102
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
103
|
+
}, colSpan: colspan }, this.sortable ? (h("div", { class: "column-header-inner-container" }, h("ic-typography", { variant: "body", class: {
|
264
104
|
["column-header-text"]: true,
|
265
105
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
266
|
-
} }, title),
|
106
|
+
} }, title), h("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
267
107
|
// eslint-disable-next-line react/jsx-no-bind
|
268
108
|
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
269
109
|
? this.sortedColumnOrder
|
@@ -271,47 +111,21 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
271
111
|
["sort-button"]: true,
|
272
112
|
["sort-button-unsorted"]: this.sortedColumn !== key ||
|
273
113
|
this.sortedColumnOrder === "unsorted",
|
274
|
-
} })))
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
!target.style.getPropertyValue("--truncation-max-lines")) {
|
279
|
-
this.selectedRow =
|
280
|
-
!(this.selectedRow === row && this.loading && this.updating) && row;
|
281
|
-
}
|
114
|
+
} }))) : (h("ic-typography", { variant: "body", class: {
|
115
|
+
["column-header-text"]: true,
|
116
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
117
|
+
} }, title)))));
|
282
118
|
};
|
283
119
|
this.createRows = () => {
|
284
120
|
const data = this.showPagination
|
285
121
|
? this.data.slice(this.fromRow, this.toRow)
|
286
122
|
: this.data.slice();
|
287
|
-
/**
|
288
|
-
* Ensures that createCells has a value in data to map over to actually render the slot.
|
289
|
-
* Removes the need for the user to add it multiple times.
|
290
|
-
*/
|
291
|
-
this.columns.forEach(({ key }) => {
|
292
|
-
data.forEach((row, rowIndex) => {
|
293
|
-
const cellSlotName = `${key}-${rowIndex}`;
|
294
|
-
if (isSlotUsed(this.el, cellSlotName)) {
|
295
|
-
row[key] = getSlotContent(this.el, cellSlotName);
|
296
|
-
}
|
297
|
-
});
|
298
|
-
});
|
299
123
|
return data
|
300
124
|
.sort(!this.sortable ? undefined : this.getSortFunction())
|
301
|
-
.map((row,
|
302
|
-
|
303
|
-
|
304
|
-
this.
|
305
|
-
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
306
|
-
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
307
|
-
return (h("tr", {
|
308
|
-
// eslint-disable-next-line react/jsx-no-bind
|
309
|
-
onClick: (event) => this.onRowClick(event.target, row), class: {
|
310
|
-
["table-row"]: true,
|
311
|
-
["table-row-selected"]: this.selectedRow === row,
|
312
|
-
}
|
313
|
-
}, this.createCells(row, index)));
|
314
|
-
});
|
125
|
+
.map((row) => (h("tr", { onClick: () => (this.selectedRow = this.selectedRow !== row && row), class: {
|
126
|
+
["table-row"]: true,
|
127
|
+
["table-row-selected"]: this.selectedRow === row,
|
128
|
+
} }, this.createCells(row))));
|
315
129
|
};
|
316
130
|
this.getObjectValue = (cell, key) => {
|
317
131
|
return Object.values(cell)[Object.keys(cell).indexOf(key)];
|
@@ -356,7 +170,6 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
356
170
|
};
|
357
171
|
this.sortRows = (column) => {
|
358
172
|
const sortButton = this.el.shadowRoot.querySelector(`#sort-button-${column}`);
|
359
|
-
this.dataIsSorted = true;
|
360
173
|
const sortOrders = this.sortOptions.sortOrders;
|
361
174
|
if (column !== this.sortedColumn) {
|
362
175
|
if (this.sortedColumn) {
|
@@ -390,11 +203,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
390
203
|
this.data = undefined;
|
391
204
|
this.density = "default";
|
392
205
|
this.embedded = false;
|
393
|
-
this.globalRowHeight = 40;
|
394
206
|
this.hideColumnHeaders = false;
|
395
|
-
this.loading = false;
|
396
|
-
this.loadingOptions = undefined;
|
397
|
-
this.minimumLoadingDisplayDuration = 1000;
|
398
207
|
this.paginationOptions = {
|
399
208
|
itemsPerPage: [
|
400
209
|
{ label: "10", value: "10" },
|
@@ -415,19 +224,13 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
415
224
|
};
|
416
225
|
this.stickyColumnHeaders = false;
|
417
226
|
this.stickyRowHeaders = false;
|
418
|
-
this.truncationPattern = "tooltip";
|
419
|
-
this.updating = false;
|
420
|
-
this.updatingOptions = undefined;
|
421
|
-
this.variableRowHeight = undefined;
|
422
227
|
}
|
423
228
|
componentWillLoad() {
|
424
|
-
var _a;
|
425
229
|
this.rowsPerPage = Number(this.paginationOptions.itemsPerPage[0].value);
|
426
230
|
this.previousRowsPerPage = this.rowsPerPage;
|
427
231
|
this.toRow = this.rowsPerPage;
|
428
232
|
this.sortedColumn = this.sortOptions.defaultColumn;
|
429
233
|
this.sortedColumnOrder = this.sortOptions.sortOrders[0];
|
430
|
-
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
|
431
234
|
}
|
432
235
|
componentDidLoad() {
|
433
236
|
const tableElement = this.el.shadowRoot.querySelector("table");
|
@@ -436,25 +239,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
436
239
|
(tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientWidth)) {
|
437
240
|
this.scrollable = true;
|
438
241
|
}
|
439
|
-
if (this.loading) {
|
440
|
-
this.startLoadingTimer();
|
441
|
-
this.showLoadingIndicator();
|
442
|
-
}
|
443
|
-
this.dataTruncation();
|
444
|
-
}
|
445
|
-
componentDidUpdate() {
|
446
|
-
if (!this.itemsPerPageChanged) {
|
447
|
-
this.updateTruncation = true;
|
448
|
-
}
|
449
|
-
this.dataTruncation();
|
450
|
-
this.itemsPerPageChanged = false;
|
451
|
-
this.dataIsSorted = false;
|
452
242
|
}
|
453
243
|
handleItemsPerPageChange(ev) {
|
454
244
|
this.previousRowsPerPage = this.rowsPerPage;
|
455
245
|
this.rowsPerPage = ev.detail.value;
|
456
|
-
this.itemsPerPageChanged = true;
|
457
|
-
this.dataTruncation();
|
458
246
|
}
|
459
247
|
handlePageChange(ev) {
|
460
248
|
this.fromRow = (ev.detail.value - 1) * this.rowsPerPage;
|
@@ -470,100 +258,38 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
470
258
|
else {
|
471
259
|
this.previousRowsPerPage = this.rowsPerPage;
|
472
260
|
}
|
473
|
-
this.dataTruncation();
|
474
|
-
}
|
475
|
-
handleDensityChange(ev) {
|
476
|
-
this.density = ev.detail.value;
|
477
261
|
}
|
478
262
|
clickListener(ev) {
|
479
263
|
if (ev.target !== this.el)
|
480
264
|
this.selectedRow = undefined;
|
481
265
|
}
|
482
|
-
loadingHandler(newValue) {
|
483
|
-
if (newValue)
|
484
|
-
this.startLoadingTimer();
|
485
|
-
if (this.loading) {
|
486
|
-
setTimeout(() => {
|
487
|
-
this.showLoadingIndicator();
|
488
|
-
}, 500);
|
489
|
-
}
|
490
|
-
}
|
491
|
-
dataHandler(newData) {
|
492
|
-
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
493
|
-
if (this.loading) {
|
494
|
-
!this.hasLoadedForOneSecond
|
495
|
-
? setTimeout(() => (this.loading = false), this.minimumLoadingDisplayDuration -
|
496
|
-
(Date.now() - this.timerStarted))
|
497
|
-
: (this.loading = false);
|
498
|
-
}
|
499
|
-
this.updating && (this.updating = false);
|
500
|
-
}
|
501
|
-
rowHeightChangeHandler() {
|
502
|
-
this.dataTruncation();
|
503
|
-
const deleteTextWrapKey = (array) => array.forEach((val) => val.textWrap && delete val.textWrap);
|
504
|
-
deleteTextWrapKey(this.data);
|
505
|
-
deleteTextWrapKey(this.columns);
|
506
|
-
this.icRowHeightChange.emit();
|
507
|
-
}
|
508
|
-
/**
|
509
|
-
* Resets the `globalRowHeight` prop to `40px` and sets the `variableRowHeight` prop to `null`.
|
510
|
-
*/
|
511
|
-
async resetRowHeights() {
|
512
|
-
this.globalRowHeight = 40;
|
513
|
-
this.variableRowHeight = null;
|
514
|
-
}
|
515
|
-
showLoadingIndicator() {
|
516
|
-
this.loadingIndicator.classList.add("show");
|
517
|
-
}
|
518
266
|
render() {
|
519
|
-
const { caption, createColumnHeaders, createRows,
|
520
|
-
return (h("div", { class: "table-container" },
|
267
|
+
const { caption, createColumnHeaders, createRows, data, hideColumnHeaders, paginationOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, } = this;
|
268
|
+
return (h("div", { class: "table-container" }, h("div", { class: {
|
521
269
|
["table-row-container"]: true,
|
522
270
|
scrollable,
|
523
|
-
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset },
|
271
|
+
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, h("table", null, h("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (h("thead", { class: {
|
524
272
|
["column-header-sticky"]: stickyColumnHeaders,
|
525
273
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
526
|
-
} }, h("tr", null, createColumnHeaders()))),
|
527
|
-
!loading &&
|
528
|
-
(hideColumnHeaders ? (h("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && !loading && h("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
|
529
|
-
!loading &&
|
530
|
-
(isSlotUsed(this.el, "empty-state") ? (h("slot", { name: "empty-state" })) : (h("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (h("ic-loading-indicator", { appearance: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, class: {
|
531
|
-
"loading-empty": loading,
|
532
|
-
loading: true,
|
533
|
-
"show-background": loadingOptions.showBackground,
|
534
|
-
}, 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 && (h("div", { class: "pagination-container" }, 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 && (h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
274
|
+
} }, h("tr", null, createColumnHeaders()))), (data === null || data === void 0 ? void 0 : data.length) > 0 && h("tbody", null, createRows()))), showPagination && (h("div", { class: "pagination-container" }, 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 && (h("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
535
275
|
? `${sortedColumn} sorted ${sortedColumnOrder}`
|
536
276
|
: "table unsorted"))));
|
537
277
|
}
|
538
278
|
get el() { return this; }
|
539
|
-
static get watchers() { return {
|
540
|
-
"loading": ["loadingHandler"],
|
541
|
-
"data": ["dataHandler"],
|
542
|
-
"globalRowHeight": ["rowHeightChangeHandler"],
|
543
|
-
"variableRowHeight": ["rowHeightChangeHandler"]
|
544
|
-
}; }
|
545
279
|
static get style() { return icDataTableCss; }
|
546
280
|
}, [1, "ic-data-table", {
|
547
281
|
"caption": [1],
|
548
282
|
"columns": [16],
|
549
283
|
"data": [16],
|
550
|
-
"density": [
|
284
|
+
"density": [1],
|
551
285
|
"embedded": [4],
|
552
|
-
"globalRowHeight": [1032, "global-row-height"],
|
553
286
|
"hideColumnHeaders": [4, "hide-column-headers"],
|
554
|
-
"loading": [1028],
|
555
|
-
"loadingOptions": [16],
|
556
|
-
"minimumLoadingDisplayDuration": [2, "minimum-loading-display-duration"],
|
557
287
|
"paginationOptions": [16],
|
558
288
|
"showPagination": [4, "show-pagination"],
|
559
289
|
"sortable": [4],
|
560
290
|
"sortOptions": [16],
|
561
291
|
"stickyColumnHeaders": [4, "sticky-column-headers"],
|
562
292
|
"stickyRowHeaders": [4, "sticky-row-headers"],
|
563
|
-
"truncationPattern": [1, "truncation-pattern"],
|
564
|
-
"updating": [4],
|
565
|
-
"updatingOptions": [16],
|
566
|
-
"variableRowHeight": [1040],
|
567
293
|
"fromRow": [32],
|
568
294
|
"previousRowsPerPage": [32],
|
569
295
|
"rowsPerPage": [32],
|
@@ -572,19 +298,13 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
572
298
|
"selectedRow": [32],
|
573
299
|
"sortedColumn": [32],
|
574
300
|
"sortedColumnOrder": [32],
|
575
|
-
"toRow": [32]
|
576
|
-
|
577
|
-
}, [[0, "icItemsPerPageChange", "handleItemsPerPageChange"], [0, "icPageChange", "handlePageChange"], [0, "icTableDensityUpdate", "handleDensityChange"], [8, "click", "clickListener"]], {
|
578
|
-
"loading": ["loadingHandler"],
|
579
|
-
"data": ["dataHandler"],
|
580
|
-
"globalRowHeight": ["rowHeightChangeHandler"],
|
581
|
-
"variableRowHeight": ["rowHeightChangeHandler"]
|
582
|
-
}]);
|
301
|
+
"toRow": [32]
|
302
|
+
}, [[0, "icItemsPerPageChange", "handleItemsPerPageChange"], [0, "icPageChange", "handlePageChange"], [8, "click", "clickListener"]]]);
|
583
303
|
function defineCustomElement$1() {
|
584
304
|
if (typeof customElements === "undefined") {
|
585
305
|
return;
|
586
306
|
}
|
587
|
-
const components = ["ic-data-table", "ic-button", "ic-
|
307
|
+
const components = ["ic-data-table", "ic-button", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-link", "ic-loading-indicator", "ic-menu", "ic-pagination", "ic-pagination-bar", "ic-pagination-item", "ic-select", "ic-text-field", "ic-tooltip", "ic-typography"];
|
588
308
|
components.forEach(tagName => { switch (tagName) {
|
589
309
|
case "ic-data-table":
|
590
310
|
if (!customElements.get(tagName)) {
|
@@ -592,11 +312,6 @@ function defineCustomElement$1() {
|
|
592
312
|
}
|
593
313
|
break;
|
594
314
|
case "ic-button":
|
595
|
-
if (!customElements.get(tagName)) {
|
596
|
-
defineCustomElement$h();
|
597
|
-
}
|
598
|
-
break;
|
599
|
-
case "ic-empty-state":
|
600
315
|
if (!customElements.get(tagName)) {
|
601
316
|
defineCustomElement$g();
|
602
317
|
}
|