@ukic/canary-web-components 3.0.0-canary.26 → 3.0.0-canary.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/common-helpers-944cb54d.js +21 -0
- package/dist/cjs/common-helpers-944cb54d.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-b55826ba.js → helpers-046745ee.js} +3 -1
- package/dist/cjs/helpers-046745ee.js.map +1 -0
- package/dist/cjs/helpers-da852478.js.map +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +4 -4
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +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 +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +12 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +35 -23
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +6 -5
- 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 +13 -13
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +9 -5
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +15 -10
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +36 -11
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +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 +7 -6
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- 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.cjs.entry.js +29 -10
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +23 -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 +14 -7
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +2 -2
- 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-side-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +67 -54
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +21 -3
- 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-group.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-time-input.cjs.entry.js +13 -9
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button-group.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 +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +6 -4
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/purify-039f565a.js +1365 -0
- package/dist/cjs/purify-039f565a.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -1
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.stories.js.map +1 -1
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +12 -13
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.stories.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 +52 -21
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/a11y/ic-data-table.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.css +6 -0
- package/dist/collection/components/ic-date-input/ic-date-input.js +34 -4
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js +81 -0
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js.map +1 -1
- package/dist/collection/components/ic-date-input/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-input/test/helpers/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +41 -10
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-day-button.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-month-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-year-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-picker/test/a11y/ic-date-picker.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +43 -25
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/a11y/ic-pagination-bar.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents-item.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/ic-table-of-contents.stories.js.map +1 -1
- package/dist/collection/components/ic-table-of-contents/test/a11y/ic-table-of-contents.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.css +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.js +38 -8
- package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js +82 -1
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js.map +1 -1
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +5 -4
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.types.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/date-helpers.js.map +1 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/testa11y.helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/common-helpers.js +19 -0
- package/dist/components/common-helpers.js.map +1 -0
- package/dist/components/helpers.js +2 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-alert.js +3 -3
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +12 -4
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-chip.js +5 -4
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-table.js +12 -13
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +10 -5
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +16 -10
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +35 -10
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-horizontal-scroll2.js +1 -1
- package/dist/components/ic-input-validation2.js +6 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-menu2.js +29 -10
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-page-header.js +1 -1
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +34 -22
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-radio-group.js +14 -6
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-select2.js +17 -9
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +1 -1
- package/dist/components/ic-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +67 -53
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +21 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-text-field2.js +9 -9
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-time-input.js +14 -9
- package/dist/components/ic-time-input.js.map +1 -1
- package/dist/components/ic-toast.js +1 -1
- package/dist/components/ic-toggle-button.js +1 -1
- package/dist/components/ic-top-navigation.js +2 -2
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-view.js +5 -4
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/components/purify.js +1363 -0
- package/dist/components/purify.js.map +1 -0
- package/dist/core/core.css +6 -6
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-20f248be.entry.js → p-05e0cadf.entry.js} +2 -2
- package/dist/core/{p-b8cb867c.entry.js → p-07365d6f.entry.js} +2 -2
- package/dist/core/{p-a7bc9a19.entry.js → p-0b0cc10d.entry.js} +2 -2
- package/dist/core/p-0f22f41e.js.map +1 -1
- package/dist/core/p-1131db25.entry.js +2 -0
- package/dist/core/p-1131db25.entry.js.map +1 -0
- package/dist/core/{p-9f5a1473.entry.js → p-154bb0fb.entry.js} +2 -2
- package/dist/core/p-154bb0fb.entry.js.map +1 -0
- package/dist/core/{p-3414247d.entry.js → p-18b793e0.entry.js} +2 -2
- package/dist/core/p-1d89fcda.entry.js +2 -0
- package/dist/core/p-1d89fcda.entry.js.map +1 -0
- package/dist/core/{p-fc125ca6.entry.js → p-266d5e13.entry.js} +2 -2
- package/dist/core/p-2bba11f8.entry.js +2 -0
- package/dist/core/{p-c08ea34d.entry.js.map → p-2bba11f8.entry.js.map} +1 -1
- package/dist/core/{p-570ff466.entry.js → p-2f0ab1d0.entry.js} +2 -2
- package/dist/core/p-349d91dc.js +3 -0
- package/dist/core/p-349d91dc.js.map +1 -0
- package/dist/core/p-479e5fa2.entry.js +2 -0
- package/dist/core/p-479e5fa2.entry.js.map +1 -0
- package/dist/core/p-4c5af5f7.entry.js +2 -0
- package/dist/core/p-4c5af5f7.entry.js.map +1 -0
- package/dist/core/p-542ac498.js +2 -0
- package/dist/core/p-542ac498.js.map +1 -0
- package/dist/core/{p-4fa1a80f.entry.js → p-54da2d5f.entry.js} +2 -2
- package/dist/core/{p-6a884eef.entry.js → p-553531bf.entry.js} +2 -2
- package/dist/core/p-5bc54721.entry.js +2 -0
- package/dist/core/p-5bc54721.entry.js.map +1 -0
- package/dist/core/p-62ad6ce5.entry.js +2 -0
- package/dist/core/p-62ad6ce5.entry.js.map +1 -0
- package/dist/core/{p-8bb49790.entry.js → p-656b92d7.entry.js} +2 -2
- package/dist/core/{p-b12c4643.entry.js → p-66f45822.entry.js} +2 -2
- package/dist/core/p-66f45822.entry.js.map +1 -0
- package/dist/core/{p-a0c361ec.entry.js → p-6addd986.entry.js} +2 -2
- package/dist/core/{p-c7a97221.entry.js → p-6d4418e4.entry.js} +2 -2
- package/dist/core/{p-9c491db1.entry.js → p-6e5fc63c.entry.js} +2 -2
- package/dist/core/{p-d6a1b39c.entry.js → p-70447473.entry.js} +2 -2
- package/dist/core/p-74439163.entry.js +2 -0
- package/dist/core/p-74439163.entry.js.map +1 -0
- package/dist/core/p-760a57e7.entry.js +2 -0
- package/dist/core/p-760a57e7.entry.js.map +1 -0
- package/dist/core/p-76ab72ef.entry.js +2 -0
- package/dist/core/p-76ab72ef.entry.js.map +1 -0
- package/dist/core/{p-17423822.entry.js → p-77c4d1d2.entry.js} +2 -2
- package/dist/core/{p-4479c7e7.entry.js → p-796b9ac5.entry.js} +2 -2
- package/dist/core/{p-09c0961a.entry.js → p-7986db4a.entry.js} +2 -2
- package/dist/core/p-8b0abe0f.entry.js +2 -0
- package/dist/core/p-8b0abe0f.entry.js.map +1 -0
- package/dist/core/{p-f4b08cdb.entry.js → p-8b4a7a78.entry.js} +2 -2
- package/dist/core/p-8b8df1da.entry.js +2 -0
- package/dist/core/p-8b8df1da.entry.js.map +1 -0
- package/dist/core/{p-b95d99c7.entry.js → p-8c841dc8.entry.js} +2 -2
- package/dist/core/{p-55934942.entry.js → p-94e5ed81.entry.js} +2 -2
- package/dist/core/{p-b5dd226f.entry.js → p-9af5008c.entry.js} +2 -2
- package/dist/core/{p-7821c7dc.entry.js → p-9b68bee6.entry.js} +2 -2
- package/dist/core/p-9fa329f2.entry.js +2 -0
- package/dist/core/p-9fa329f2.entry.js.map +1 -0
- package/dist/core/{p-98286c35.entry.js → p-a4184f39.entry.js} +2 -2
- package/dist/core/p-a4184f39.entry.js.map +1 -0
- package/dist/core/p-a422b778.js +2 -0
- package/dist/core/p-a422b778.js.map +1 -0
- package/dist/core/{p-30a2abe9.entry.js → p-a7a572d9.entry.js} +2 -2
- package/dist/core/{p-3bb4ea35.entry.js → p-a86756fa.entry.js} +2 -2
- package/dist/core/p-b7a726fb.entry.js +2 -0
- package/dist/core/p-b7a726fb.entry.js.map +1 -0
- package/dist/core/{p-d3eb3356.entry.js → p-ba26a1f0.entry.js} +2 -2
- package/dist/core/{p-d3b9c04b.entry.js → p-bad17ba7.entry.js} +2 -2
- package/dist/core/p-bc58e37e.entry.js +2 -0
- package/dist/core/p-bc58e37e.entry.js.map +1 -0
- package/dist/core/{p-9ad64b6f.entry.js → p-bf08d34c.entry.js} +2 -2
- package/dist/core/{p-b2c49dfd.entry.js → p-bf5558ac.entry.js} +2 -2
- package/dist/core/{p-d143aa70.entry.js → p-c1ae14ad.entry.js} +2 -2
- package/dist/core/{p-a8d934fe.entry.js → p-c5d03c65.entry.js} +2 -2
- package/dist/core/{p-a8d934fe.entry.js.map → p-c5d03c65.entry.js.map} +1 -1
- package/dist/core/p-d4a1e90d.entry.js +2 -0
- package/dist/core/p-d4a1e90d.entry.js.map +1 -0
- package/dist/core/{p-92f199b0.entry.js → p-d77981a5.entry.js} +2 -2
- package/dist/core/{p-f5cc4e94.entry.js → p-e8cea1d5.entry.js} +2 -2
- package/dist/core/{p-5534bb37.entry.js → p-f591abc2.entry.js} +2 -2
- package/dist/core/p-f6209622.entry.js +2 -0
- package/dist/core/p-f6209622.entry.js.map +1 -0
- package/dist/core/{p-e435052b.entry.js → p-fba9f5b6.entry.js} +2 -2
- package/dist/core/{p-0fffe635.entry.js → p-ff4a873e.entry.js} +2 -2
- package/dist/esm/common-helpers-86c07ff1.js +19 -0
- package/dist/esm/common-helpers-86c07ff1.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-fee7d348.js → helpers-1dbd527e.js} +3 -2
- package/dist/esm/helpers-1dbd527e.js.map +1 -0
- package/dist/esm/helpers-89cb996d.js.map +1 -1
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +4 -4
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +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 +1 -1
- package/dist/esm/ic-card-vertical.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +12 -5
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +35 -23
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +6 -5
- 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 +13 -13
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +9 -5
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +15 -10
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +36 -11
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +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 +7 -6
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- 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.entry.js +29 -10
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +23 -16
- 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 +14 -7
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +2 -2
- 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-side-navigation.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +67 -54
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +21 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +1 -1
- package/dist/esm/ic-tab-group.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-time-input.entry.js +13 -9
- package/dist/esm/ic-time-input.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +1 -1
- package/dist/esm/ic-toggle-button.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +6 -4
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/purify-6eaa9893.js +1363 -0
- package/dist/esm/purify-6eaa9893.js.map +1 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +0 -9
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +5 -1
- package/dist/types/components/ic-date-input/ic-date-input.stories.d.ts +15 -9
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +5 -1
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +3 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components/ic-time-input/ic-time-input.d.ts +5 -1
- package/dist/types/components/ic-time-input/ic-time-input.stories.d.ts +14 -8
- package/dist/types/components.d.ts +30 -6
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/common-helpers.d.ts +2 -0
- package/dist/types/home/runner/work/ic-ui-kit/ic-ui-kit/packages/canary-web-components/.stencil/web-components/src/utils/constants.d.ts +44 -0
- package/dist/types/utils/types.d.ts +6 -2
- package/hydrate/index.js +1683 -180
- package/hydrate/index.mjs +1683 -180
- package/package.json +3 -3
- package/dist/cjs/helpers-b55826ba.js.map +0 -1
- package/dist/core/p-25d21dbd.entry.js +0 -2
- package/dist/core/p-25d21dbd.entry.js.map +0 -1
- package/dist/core/p-318c6a4c.entry.js +0 -2
- package/dist/core/p-318c6a4c.entry.js.map +0 -1
- package/dist/core/p-3bee8f39.entry.js +0 -2
- package/dist/core/p-3bee8f39.entry.js.map +0 -1
- package/dist/core/p-4eb74281.entry.js +0 -2
- package/dist/core/p-4eb74281.entry.js.map +0 -1
- package/dist/core/p-514c4401.entry.js +0 -2
- package/dist/core/p-514c4401.entry.js.map +0 -1
- package/dist/core/p-587d704d.entry.js +0 -2
- package/dist/core/p-587d704d.entry.js.map +0 -1
- package/dist/core/p-816aae93.entry.js +0 -2
- package/dist/core/p-816aae93.entry.js.map +0 -1
- package/dist/core/p-9810080e.entry.js +0 -2
- package/dist/core/p-9810080e.entry.js.map +0 -1
- package/dist/core/p-98286c35.entry.js.map +0 -1
- package/dist/core/p-9c8070a1.entry.js +0 -2
- package/dist/core/p-9c8070a1.entry.js.map +0 -1
- package/dist/core/p-9f5a1473.entry.js.map +0 -1
- package/dist/core/p-aaa6d8e1.entry.js +0 -2
- package/dist/core/p-aaa6d8e1.entry.js.map +0 -1
- package/dist/core/p-b0462734.entry.js +0 -2
- package/dist/core/p-b0462734.entry.js.map +0 -1
- package/dist/core/p-b12c4643.entry.js.map +0 -1
- package/dist/core/p-c039a175.entry.js +0 -2
- package/dist/core/p-c039a175.entry.js.map +0 -1
- package/dist/core/p-c08ea34d.entry.js +0 -2
- package/dist/core/p-c95be271.entry.js +0 -2
- package/dist/core/p-c95be271.entry.js.map +0 -1
- package/dist/core/p-cd3f12ad.entry.js +0 -2
- package/dist/core/p-cd3f12ad.entry.js.map +0 -1
- package/dist/core/p-d7c44cce.entry.js +0 -2
- package/dist/core/p-d7c44cce.entry.js.map +0 -1
- package/dist/core/p-ee95905f.js +0 -2
- package/dist/core/p-ee95905f.js.map +0 -1
- package/dist/core/p-f6772530.entry.js +0 -2
- package/dist/core/p-f6772530.entry.js.map +0 -1
- package/dist/esm/helpers-fee7d348.js.map +0 -1
- /package/dist/core/{p-20f248be.entry.js.map → p-05e0cadf.entry.js.map} +0 -0
- /package/dist/core/{p-b8cb867c.entry.js.map → p-07365d6f.entry.js.map} +0 -0
- /package/dist/core/{p-a7bc9a19.entry.js.map → p-0b0cc10d.entry.js.map} +0 -0
- /package/dist/core/{p-3414247d.entry.js.map → p-18b793e0.entry.js.map} +0 -0
- /package/dist/core/{p-fc125ca6.entry.js.map → p-266d5e13.entry.js.map} +0 -0
- /package/dist/core/{p-570ff466.entry.js.map → p-2f0ab1d0.entry.js.map} +0 -0
- /package/dist/core/{p-4fa1a80f.entry.js.map → p-54da2d5f.entry.js.map} +0 -0
- /package/dist/core/{p-6a884eef.entry.js.map → p-553531bf.entry.js.map} +0 -0
- /package/dist/core/{p-8bb49790.entry.js.map → p-656b92d7.entry.js.map} +0 -0
- /package/dist/core/{p-a0c361ec.entry.js.map → p-6addd986.entry.js.map} +0 -0
- /package/dist/core/{p-c7a97221.entry.js.map → p-6d4418e4.entry.js.map} +0 -0
- /package/dist/core/{p-9c491db1.entry.js.map → p-6e5fc63c.entry.js.map} +0 -0
- /package/dist/core/{p-d6a1b39c.entry.js.map → p-70447473.entry.js.map} +0 -0
- /package/dist/core/{p-17423822.entry.js.map → p-77c4d1d2.entry.js.map} +0 -0
- /package/dist/core/{p-4479c7e7.entry.js.map → p-796b9ac5.entry.js.map} +0 -0
- /package/dist/core/{p-09c0961a.entry.js.map → p-7986db4a.entry.js.map} +0 -0
- /package/dist/core/{p-f4b08cdb.entry.js.map → p-8b4a7a78.entry.js.map} +0 -0
- /package/dist/core/{p-b95d99c7.entry.js.map → p-8c841dc8.entry.js.map} +0 -0
- /package/dist/core/{p-55934942.entry.js.map → p-94e5ed81.entry.js.map} +0 -0
- /package/dist/core/{p-b5dd226f.entry.js.map → p-9af5008c.entry.js.map} +0 -0
- /package/dist/core/{p-7821c7dc.entry.js.map → p-9b68bee6.entry.js.map} +0 -0
- /package/dist/core/{p-30a2abe9.entry.js.map → p-a7a572d9.entry.js.map} +0 -0
- /package/dist/core/{p-3bb4ea35.entry.js.map → p-a86756fa.entry.js.map} +0 -0
- /package/dist/core/{p-d3eb3356.entry.js.map → p-ba26a1f0.entry.js.map} +0 -0
- /package/dist/core/{p-d3b9c04b.entry.js.map → p-bad17ba7.entry.js.map} +0 -0
- /package/dist/core/{p-9ad64b6f.entry.js.map → p-bf08d34c.entry.js.map} +0 -0
- /package/dist/core/{p-b2c49dfd.entry.js.map → p-bf5558ac.entry.js.map} +0 -0
- /package/dist/core/{p-d143aa70.entry.js.map → p-c1ae14ad.entry.js.map} +0 -0
- /package/dist/core/{p-92f199b0.entry.js.map → p-d77981a5.entry.js.map} +0 -0
- /package/dist/core/{p-f5cc4e94.entry.js.map → p-e8cea1d5.entry.js.map} +0 -0
- /package/dist/core/{p-5534bb37.entry.js.map → p-f591abc2.entry.js.map} +0 -0
- /package/dist/core/{p-e435052b.entry.js.map → p-fba9f5b6.entry.js.map} +0 -0
- /package/dist/core/{p-0fffe635.entry.js.map → p-ff4a873e.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-data-table.stories.js","sourceRoot":"","sources":["../../../src/components/ic-data-table/ic-data-table.stories.js"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,OAAO,EACP,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,6BAA6B,EAC7B,iBAAiB,EACjB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;SACb;KACF;CACF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,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,EAAE,oCAAoC;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,MAAM,EAAE,GAAG,EAAE,CAAC,oBAAoB,EAAE;IACpC,IAAI,EAAE,mDAAmD;CAC1D,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,GAAG,EAAE,CAAC,eAAe,EAAE;IAC/B,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE;IAClC,IAAI,EAAE,2BAA2B;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,UAAU;CACjB,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport readme from \"./readme.md\";\nimport {\n ActionElement,\n Basic,\n CellDescriptions,\n CellOverrides,\n ColumnOverrides,\n CustomIcons,\n CustomRowHeights,\n CustomTitleBar,\n DataTableSizing,\n Dense,\n DevArea,\n DisableAutoSortColumns,\n DisableSort,\n Embedded,\n Empty,\n EmptySlotted,\n ExcludeColumnsFromSort,\n HeaderTruncation,\n HiddenCol,\n LargeDataSet,\n LinksHTMLElements,\n Loading,\n LongCellDescriptions,\n MissingCellData,\n Pagination,\n RowHeaders,\n RowOverrides,\n Scrollable,\n SlottedElementsWithPagination,\n SlottedPagination,\n Sort,\n SortOptions,\n Spacious,\n TruncationShowHide,\n TruncationTextWrap,\n TruncationTooltip,\n Updating,\n UpdatingData,\n SelectWithCheckbox,\n} from \"./story-data\";\n\nexport default {\n title: \"Web Components/Data Table\",\n component: \"ic-data-table\",\n parameters: {\n componentAPI: {\n data: readme,\n },\n },\n};\n\n/**\n * Use the data table component to display data in a tabular form.\n *\n * There are two required props for data table:\n * - Caption: `string`\n * - Columns: `IcDataTableColumnObject[]`\n *\n * Click the 'Component API' tab to view all the available props, events and slots for data tables.\n *\n * To use the data table component, import `@ukic/canary-web-components` into your application.\n */\nexport const Default = {\n render: () => Basic(),\n name: \"Basic\",\n};\n\nexport const LargeDataSetExample = {\n render: () => LargeDataSet(),\n name: \"Large data set\",\n};\n\n/**\n * The `embedded` boolean adds a border around the table so it can be added as a standalone table and is not required to stretch the full width of its parent container.\n */\nexport const EmbeddedExample = {\n render: () => Embedded(),\n name: \"Embedded\",\n};\n\n/**\n * The `density` variant provides three different styles for the data table:\n * - `dense` reduces the padding and font size of the table cells to give the data a more dense style.\n * - `default` provides a padding of `8px` which is the default spacing. This variant is seen in the [first](#basic) example.\n * - `spacious` gives the data table a more spacious look and feel by increasing the vertical padding as well as the font size.\n */\nexport const DenseExample = {\n render: () => Dense(),\n name: \"Dense\",\n};\n\nexport const SpaciousExample = {\n render: () => Spacious(),\n name: \"Spacious\",\n};\n\n/**\n * When a height for the data table is set, the scroll bar will appear to the right. However, by default, the column headers will move up and out of view making it difficult to understand what the data means.\n * This can be mitigated by using the `sticky-column-headers` prop which takes a boolean. This can be toggled within the example below.\n */\nexport const StickyColumnHeaders = {\n render: () => Scrollable(),\n name: \"Sticky column headers\",\n};\n\n/**\n * By default, column header labels will wrap when they exceed the column width. To keep the column header height constant, the `columnHeaderTruncation` can be used. When set to `true`, the label will appear truncated and will display a tooltip with the full text when hovered over.\n */\nexport const ColumnHeaderTruncation = {\n render: () => HeaderTruncation(),\n name: \"Column header truncation\",\n};\n\n/**\n * Row headers allow headings to be added to individual rows and styles them as column headings. The column collection includes an additional `header` key which aligns with the row headers. The structure of the `header` column is the same as the columns (i.e. key, title, dataType).\n * The data array includes an additional `header` key within the `rowOptions` which takes a string intended to be the title of the row header.\n */\nexport const RowHeadersExample = {\n render: () => RowHeaders(),\n name: \"Row headers\",\n};\n\n/**\n * Set `sortable` to `true` to set the sort functionality on all columns. Sorting can be set to `unsorted`, `ascending` and `descending` by press the sort buttons next to the column heading.\n */\nexport const Sortable = {\n render: () => Sort(),\n name: \"Sortable\",\n};\n\n/**\n * It is possible to change the sort options for the sort buttons. The `sortOptions` prop takes an object with `sortOrders` and `defaultColumn`. `sortOrders` allows the sort order to be amended as we all as remove a sort type. Such as changing the order to `descending`, `unsorted` and remove `ascending`. `defaultColumn` sets which column is ordered by default. This is set by padding the column key as the `defaultColumn` value.\n */\nexport const SortOptionsExample = {\n render: () => SortOptions(),\n name: \"Sort options\",\n};\n\n/**\n * Set `sortable` to `true` and set `disable-auto-sort` to `true` to enable external sorting functionality.\n */\nexport const DisableSortExample = {\n render: () => DisableSort(),\n name: \"Disable sort\",\n};\n\n/**\n * Alternatively, set `disable-auto-sort` to `true` within the column object to have it apply only to certain columns that may require special custom sorting.\n */\nexport const DisableAutoSortOnColumns = {\n render: () => DisableAutoSortColumns(),\n name: \"Disable sort on columns\",\n};\n\n/**\n * Adding 'excludeColumnFromSort: true` to the column object excludes that column from displaying the sort button.\n */\nexport const ExcludeColumnsFromSortExample = {\n render: () => ExcludeColumnsFromSort(),\n name: \"Exclude columns from sort\",\n};\n\n/**\n * Adding 'hidden: true` to the column object hides that column. In this example, the Age column is hidden.\n */\nexport const HideColumnExample = {\n render: () => HiddenCol(),\n name: \"Column visibility\",\n};\n\n/**\n * Pagination allows large data sets to be split into pages in order to make the data easier to digest. Setting `show-pagination` to `true` will add the `ic-pagination` component to the bottom of the table. There a several sub components within pagination which are set via the `paginationBarOptions` prop:\n * - `itemsPerPage` allows customization on the number of items on each page. This requires a collection with `label` and `value` key pairs.\n * - `showItemsPerPageControl` shows or hides the `itemsPerPage` component using `true` or `false`.\n * - `showGoToPageControl` displays controls which allows jumping between pages in a non-linear approach.\n */\nexport const PaginationExample = {\n render: () => Pagination(),\n name: \"Pagination\",\n};\n\n/**\n * There may be a requirement to style a column differently to the rest of the data to add emphasis. For example, centre align data within the 'first name' column. To do this, add `columnAlignment` to the column. `columnAlignment` takes an object which sets the `horizontal` and `vertical` property:\n * - `horizontal` accepts `left`, `right` or `center`.\n * - `vertical` accepts `top`, `middle`, `bottom`.\n *\n * `emphasis` can be added to the column by setting `high` or `low`.\n */\nexport const ColumnOverridesExample = {\n render: () => ColumnOverrides(),\n name: \"Column overrides\",\n};\n\n/**\n * Row overrides allow styling to be applied at a row level and is set within the `rowOptions` object. The following row overrides options apply:\n * - `rowAlignment` accepts `left`, `right` and `center`.\n * - `emphasis` accepts `high` or `low`.\n * - `textWrap` accepts `true` or `false`.\n */\nexport const RowOverridesExample = {\n render: () => RowOverrides(),\n name: \"Row overrides\",\n};\n\n/**\n * Cell overrides allows styling to be applied at a cell level. The cell which requires an override accepts an object which requires `data` and can contain `cellAlignment` and/or `emphasis`:\n * - `data` is the cell value.\n * - `emphasis` accepts `high` or `low`.\n * - `cellAlignment` accepts an object with the following key pairs:\n * - `horizontal` accepts `left`, `right` or `center`.\n * - `vertical` accepts `top`, `middle`, `bottom`.\n */\nexport const CellOverridesExample = {\n render: () => CellOverrides(),\n name: \"Cell overrides\",\n};\n\n/**\n * When the table receives no data (either `null` or an empty array) it will automatically show an `ic-empty-state` below the headers.\n */\nexport const DefaultEmptyState = {\n render: () => Empty(),\n name: \"Empty state\",\n};\n\n/**\n * You can customise your own `ic-empty-state` component and slot it into the data table using the `empty-state` slot, to reflect different scenarios.\n */\nexport const SlottedEmptyState = {\n render: () => EmptySlotted(),\n name: \"Slotted empty state\",\n};\n\n/**\n * When a user wants to fetch their data asynchronously, a `loading` prop can be set to `true`, which then renders a circular variant of the `ic-loading-indicator`.\n * The loading indicator can be customised using the `loadingOptions` prop:\n * - `description` sets the aria-label of the component\n * - `label` sets the visual message\n * - `labelDuration` is the number of milliseconds before the label changes\n * - `overlay` renders a dark overlay over the previous data set while new data is loaded\n *\n * If it needs to be determinate, use `max`, `min` and `progress`.\n */\nexport const LoadingState = {\n render: () => Loading(),\n name: \"Loading state\",\n height: \"720px\",\n};\n\n/**\n * If data in the table has changed, an `updating` prop has been supplied to show a linear `ic-loading-indicator` just above the data rows.\n *\n * This prop is also accompanied by an `updatingOptions` prop, which contains similar options to `loadingOptions`, minus `label` and `labelDuration` since the linear version is displayed.\n */\nexport const UpdatingState = {\n render: () => Updating(),\n name: \"Updating state\",\n};\n\n/**\n * Custom HTML elements can be slotted or passed via the `data` prop to display in certain cells. When using the slotted method, the slot name follows the format of `{COLUMN_TAG}-{ROW_INDEX}`.\n */\nexport const LinksAndElementsInData = {\n render: () => LinksHTMLElements(),\n name: \"Links and elements in data\",\n};\n\nexport const SlottedElementsWithPaginationExample = {\n render: () => SlottedElementsWithPagination(),\n name: \"Slotted elements with pagination\",\n};\n\n/**\n * Custom icons can be added to cells, columns and headers in the data table. To add it to headers, set the icon via the `columns` prop:\n * ```\n * icon: {\n * icon: //ICON_STRING_GOES_HERE,\n * onAllCells: //Boolean to determine whether column header icon should be replicated on all cells in the column,\n * hideOnHeader: //Boolean for whether this icon should only be shown on cells and not on the header,\n * }\n * ```\n *\n * To add icons to individual cells, they can be added through the `data` prop, in a similar method to overriding the cell. Cell icons take priority over the `onAllCells` prop, meaning specific cells can be made to stand out.\n *\n * Both cells and headers can also have icons slotted in. Cells use the slot format: `{COLUMN_KEY}-{ROW_INDEX}-icon`, and headers use the format: `{COLUMN_KEY}-column-icon`. Slotted icons take priority over icons inserted via the `columns` and `data` props.\n */\nexport const CustomIconsExample = {\n render: () => CustomIcons(),\n name: \"Custom icons\",\n};\n\n/**\n * A data table can have its rows use custom heights, to help display more data per row. This involves using the `globalRowHeight` prop, which applies this custom height to all rows.\n *\n * For a more granular approach, `variableRowHeight` exists. This is passed through the data object for each row of data, as well as that row's `index`. Using these properties, you can write a custom function that will return a number for that row's height based on your criteria.\n * Returning `null` from this function means that the row will use the `globalRowHeight` property value.\n *\n * **_NOTE:_** If the data table uses the `density` prop, then your custom value will be scaled depending on the density, in order to keep content readable as the text size changes:\n * - `Dense` = 80% of `globalRowHeight` or `variableRowHeight`\n * - `Spacious` = 120% of `globalRowHeight` or `variableRowHeight`\n *\n * E.G: If `globalRowHeight` = 100, a dense table will set the height to be **_80_**.\n *\n * **_NOTE:_** If a cell has a description (see \"Description and icons within cells\"), then the row height for that individual row will be increased by the description height in order to fully display it.\n *\n * E.G: If `globalRowHeight` = 100 and a cell has a description with a height of 20, then the row height for that cell's row will be set to **_120_**.\n *\n * To quickly reset all row heights to the default, you can run the `resetRowHeights` method.\n *\n * If you'd rather let the row calculate its own height based on its content, either set `globalRowHeight` to `auto`, or return `auto` from `variableRowHeight`.\n */\nexport const CustomRowHeightsExample = {\n render: () => CustomRowHeights(\"custom-row-heights-example\"),\n name: \"Custom row heights\",\n};\n\n/**\n * To add additional information about the data held in your data table, you can use the `title-bar` slot to add an `ic-data-table-title-bar`, which will appear above the column headers.\n *\n * The title bar can have a description and metadata added, to provide supporting information to display some context about the data to the user. Primary and custom action slots also exist to allow for actions to be performed that are related to the data, which can be prominently displayed.\n *\n * The `ic-data-table-title-bar` has a built-in density selector, which allows a user to quickly change the size and padding of cells to make it more readable. This can also be hidden if preferred.\n *\n * More details on `ic-data-table-title-bar` can be found in the <ic-link href=\"/?path=/story/web-components-data-table-title-bar--basic\" inline=\"\">data table title bar documentation</ic-link>.\n */\nexport const CustomTitleBarExample = {\n render: () => CustomTitleBar(),\n name: \"Custom title bar\",\n};\n\n/**\n * The example below demonstrates how the pagination bar responds to changes within the data.\n *\n * More details on `ic-pagination-bar` can be found in the <ic-link href=\"/?path=/story/web-components-pagination-bar--docs\" inline=\"\">pagination bar documentation</ic-link>.\n */\nexport const UpdatingDataExample = {\n render: () => UpdatingData(),\n name: \"Updating data\",\n};\n\n/**\n * There may be scenarios when using `ic-data-table` when pagination and data fetching is done using a backend API.\n *\n * To enable this behaviour, the `pagination-bar` slot can be utilised to provide a custom `ic-pagination-bar` component, allowing the user to have more control over how their data is displayed & interacted with.\n */\nexport const SlottedPaginationBar = {\n render: () => SlottedPagination(),\n name: \"Slotted pagination bar\",\n};\n\n/**\n * When a row is given a set height, and has content that no longer fits into the cell area, the content becomes truncated. There are two types of truncation:\n * - `tooltip`: Adds a line-clamp to the cell and displays the message in a tooltip.\n * - `show-hide`: Adds a `See more/See less` button underneath the cell text, allowing the user to display the full content should they wish.\n *\n * These values are set using the `truncation-pattern` attribute.\n *\n * By default, `global-row-height` is set to `auto`. If the `truncation-pattern` attribute is set to `tooltip` or `show-hide` while `global-row-height` is `auto`, the data will not appear truncated due to the row height being set to the data which has the most height.\n *\n * To see the data truncated, the `global-row-height` or `variable-row-height` needs to be explicitly set to a height which is shorter than data which has the most lines.\n *\n * **_NOTE:_** `truncation-pattern` only applies to a cell's main data value. If a cell has a description (see \"Description and icons within cells\") then this will not be truncated and will still be visible beyond the truncation.\n */\nexport const DataTruncationTooltip = {\n render: () => TruncationTooltip(),\n name: \"Data truncation tooltip\",\n};\n\nexport const TruncationShowHideExample = {\n render: () => TruncationShowHide(),\n name: \"Data truncation see more / see less\",\n};\n\n/**\n * Text can be set to wrap in a particular column, row or cell. Any column, row or cell that text wrap is applied to will ignore the custom height if the custom height is too small and the full content will be shown.\n *\n * To set text to wrap in a column, add `textWrap: true` as a key value:\n * ```\n * const column = [\n * { key: \"name\", title: \"Name\", dataType: \"string\" },\n * ...\n * ]\n * ```\n *\n * To set text to wrap in a row, add `rowOptions: { textWrap: true }` to an object within the data array:\n * ```\n * const data = [\n * {\n * name: \"Tim Rayes\",\n * age: 41,\n * department: \"Sales and Marketing\",\n * employeeNumber: 3,\n * jobTitle:\n * \"Regional Sales and Marketing Strategy Director (Europe, the Middle East, and Africa)\",\n * rowOptions: {\n * textWrap: true\n * }\n * },\n * ...\n * ]\n * ```\n *\n * To set text wrap in a cell, add `textWrap` to a data key within an object:\n * ```\n * const data = [\n * {\n * name: {\n * data:\"Tim Rayes\",\n * textWrap: true\n * },\n * age: 41,\n * department: \"Sales and Marketing\",\n * employeeNumber: 3,\n * jobTitle:\n * \"Regional Sales and Marketing Strategy Director (Europe, the Middle East, and Africa)\",\n * },\n * ...\n * ]\n * ```\n */\nexport const TextWrap = {\n render: () => TruncationTextWrap(),\n name: \"Text wrap\",\n};\n\n/**\n * The dimensions of the data table can be set using the `width` and `height` attributes. The attribute accepts dimensions in `px`, `%`, `rem` and `auto`.\n *\n * By default, the width is set to `100%` so the table spans across the viewport or parent container.\n *\n * To set the column widths, the `columnWidth` property should be added to the relevant column within the column array.\n *\n * The [table layout](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout) attribute is vital to how the table resizing and column widths behave. By default, the table layout is set to `fixed`. If no column width is set, the columns widths will be equally set within the viewport or parent container.\n *\n * A table with a `fixed` layout will force the table column widths to take precedence over the data with the table cells.\n *\n * For the column widths to be dictated by the content inside, set the `table-layout` attribute to `auto` and set the table `width` to `auto`.\n *\n * To set the min and max width of a table cell, set the `table-layout` attribute to `auto` and set a `minWidth` or `maxWidth` value into `columnWidth`. The min and max width accepts dimensions in `px`, `%`, `rem`.\n */\nexport const TableSizingAndColumnWidth = {\n render: () => DataTableSizing(),\n name: \"Table sizing and column width\",\n};\n\n/**\n * The cells can contain a slotted `actionElement`. The `actionElement` will be displayed to the right of the cell data.\n */\nexport const ActionElements = {\n render: () => ActionElement(),\n name: \"Action element\",\n};\n\n/**\n * Descriptions and icons can be included in the cells by proving a `description` field in the data. This will populate the cell with an icon (if provided) and a text string underneath the cell data. This can be applied to any cell.\n *\n * You can provide a `description` object with or without an icon:\n * ```\n * // With an icon\n * firstName: {\n * data: \"Joe\",\n * description: {\n * data: \"The name of Joe\",\n * icon: '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" viewBox=\"0 -960 960 960\" width=\"20\"><path d=\"M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h600q24 0 42 18t18 42v600q0 24-18 42t-42 18H180Zm0-60h600v-600H180v600Zm56-97h489L578-473 446-302l-93-127-117 152Zm-56 97v-600 600Z\"/></svg>',\n * },\n * }\n * ```\n *\n * ```\n * // Without an icon\n * firstName: {\n * data: \"Joe\",\n * description: \"The name of Joe\"\n * }\n * ```\n */\nexport const CellDescriptionsAndIcons = {\n render: () => CellDescriptions(),\n name: \"Description and icons within cells\",\n};\n\nexport const CellDescriptionsLongText = {\n render: () => LongCellDescriptions(),\n name: \"Description and icons within cells with long text\",\n};\n\n/**\n * The example below demonstrates the table being able to handle empty cell values (null, undefined or empty string).\n */\nexport const MissingCellDataExample = {\n render: () => MissingCellData(),\n name: \"Missing cell data\",\n};\n\n/**\n * By setting `row-selection` to `true`, `ic-checkbox` elements will appear in the leftmost column, with one in the header.\n * When checked, the corresponding row will be selected, with the `icSelectedRowChange` containing the selected row and an array of all the currently selected rows.\n *\n * When checking the header checkbox, all rows will be selected, with the `icSelectAllRows` event being emitted with an array of all the rows. When using pagination, only the rows on the current page will be selected.\n */\nexport const SelectRowsUsingCheckboxExample = {\n render: () => SelectWithCheckbox(),\n name: \"Select rows with checkbox\",\n};\n\nexport const DevAreaExample = {\n render: () => DevArea(),\n name: \"Dev area\",\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ic-data-table.stories.js","sourceRoot":"","sources":["../../../../../src/components/ic-data-table/ic-data-table.stories.js"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,aAAa,EACb,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,OAAO,EACP,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,6BAA6B,EAC7B,iBAAiB,EACjB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,YAAY,E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IAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE;IAC7B,IAAI,EAAE,gBAAgB;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE;IAChC,IAAI,EAAE,oCAAoC;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,MAAM,EAAE,GAAG,EAAE,CAAC,oBAAoB,EAAE;IACpC,IAAI,EAAE,mDAAmD;CAC1D,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,GAAG,EAAE,CAAC,eAAe,EAAE;IAC/B,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE;IAClC,IAAI,EAAE,2BAA2B;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,UAAU;CACjB,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport readme from \"./readme.md\";\nimport {\n ActionElement,\n Basic,\n CellDescriptions,\n CellOverrides,\n ColumnOverrides,\n CustomIcons,\n CustomRowHeights,\n CustomTitleBar,\n DataTableSizing,\n Dense,\n DevArea,\n DisableAutoSortColumns,\n DisableSort,\n Embedded,\n Empty,\n EmptySlotted,\n ExcludeColumnsFromSort,\n HeaderTruncation,\n HiddenCol,\n LargeDataSet,\n LinksHTMLElements,\n Loading,\n LongCellDescriptions,\n MissingCellData,\n Pagination,\n RowHeaders,\n RowOverrides,\n Scrollable,\n SlottedElementsWithPagination,\n SlottedPagination,\n Sort,\n SortOptions,\n Spacious,\n TruncationShowHide,\n TruncationTextWrap,\n TruncationTooltip,\n Updating,\n UpdatingData,\n SelectWithCheckbox,\n} from \"./story-data\";\n\nexport default {\n title: \"Web Components/Data Table\",\n component: \"ic-data-table\",\n parameters: {\n componentAPI: {\n data: readme,\n },\n },\n};\n\n/**\n * Use the data table component to display data in a tabular form.\n *\n * There are two required props for data table:\n * - Caption: `string`\n * - Columns: `IcDataTableColumnObject[]`\n *\n * Click the 'Component API' tab to view all the available props, events and slots for data tables.\n *\n * To use the data table component, import `@ukic/canary-web-components` into your application.\n */\nexport const Default = {\n render: () => Basic(),\n name: \"Basic\",\n};\n\nexport const LargeDataSetExample = {\n render: () => LargeDataSet(),\n name: \"Large data set\",\n};\n\n/**\n * The `embedded` boolean adds a border around the table so it can be added as a standalone table and is not required to stretch the full width of its parent container.\n */\nexport const EmbeddedExample = {\n render: () => Embedded(),\n name: \"Embedded\",\n};\n\n/**\n * The `density` variant provides three different styles for the data table:\n * - `dense` reduces the padding and font size of the table cells to give the data a more dense style.\n * - `default` provides a padding of `8px` which is the default spacing. This variant is seen in the [first](#basic) example.\n * - `spacious` gives the data table a more spacious look and feel by increasing the vertical padding as well as the font size.\n */\nexport const DenseExample = {\n render: () => Dense(),\n name: \"Dense\",\n};\n\nexport const SpaciousExample = {\n render: () => Spacious(),\n name: \"Spacious\",\n};\n\n/**\n * When a height for the data table is set, the scroll bar will appear to the right. However, by default, the column headers will move up and out of view making it difficult to understand what the data means.\n * This can be mitigated by using the `sticky-column-headers` prop which takes a boolean. This can be toggled within the example below.\n */\nexport const StickyColumnHeaders = {\n render: () => Scrollable(),\n name: \"Sticky column headers\",\n};\n\n/**\n * By default, column header labels will wrap when they exceed the column width. To keep the column header height constant, the `columnHeaderTruncation` can be used. When set to `true`, the label will appear truncated and will display a tooltip with the full text when hovered over.\n */\nexport const ColumnHeaderTruncation = {\n render: () => HeaderTruncation(),\n name: \"Column header truncation\",\n};\n\n/**\n * Row headers allow headings to be added to individual rows and styles them as column headings. The column collection includes an additional `header` key which aligns with the row headers. The structure of the `header` column is the same as the columns (i.e. key, title, dataType).\n * The data array includes an additional `header` key within the `rowOptions` which takes a string intended to be the title of the row header.\n */\nexport const RowHeadersExample = {\n render: () => RowHeaders(),\n name: \"Row headers\",\n};\n\n/**\n * Set `sortable` to `true` to set the sort functionality on all columns. Sorting can be set to `unsorted`, `ascending` and `descending` by press the sort buttons next to the column heading.\n */\nexport const Sortable = {\n render: () => Sort(),\n name: \"Sortable\",\n};\n\n/**\n * It is possible to change the sort options for the sort buttons. The `sortOptions` prop takes an object with `sortOrders` and `defaultColumn`. `sortOrders` allows the sort order to be amended as we all as remove a sort type. Such as changing the order to `descending`, `unsorted` and remove `ascending`. `defaultColumn` sets which column is ordered by default. This is set by padding the column key as the `defaultColumn` value.\n */\nexport const SortOptionsExample = {\n render: () => SortOptions(),\n name: \"Sort options\",\n};\n\n/**\n * Set `sortable` to `true` and set `disable-auto-sort` to `true` to enable external sorting functionality.\n */\nexport const DisableSortExample = {\n render: () => DisableSort(),\n name: \"Disable sort\",\n};\n\n/**\n * Alternatively, set `disable-auto-sort` to `true` within the column object to have it apply only to certain columns that may require special custom sorting.\n */\nexport const DisableAutoSortOnColumns = {\n render: () => DisableAutoSortColumns(),\n name: \"Disable sort on columns\",\n};\n\n/**\n * Adding 'excludeColumnFromSort: true` to the column object excludes that column from displaying the sort button.\n */\nexport const ExcludeColumnsFromSortExample = {\n render: () => ExcludeColumnsFromSort(),\n name: \"Exclude columns from sort\",\n};\n\n/**\n * Adding 'hidden: true` to the column object hides that column. In this example, the Age column is hidden.\n */\nexport const HideColumnExample = {\n render: () => HiddenCol(),\n name: \"Column visibility\",\n};\n\n/**\n * Pagination allows large data sets to be split into pages in order to make the data easier to digest. Setting `show-pagination` to `true` will add the `ic-pagination` component to the bottom of the table. There a several sub components within pagination which are set via the `paginationBarOptions` prop:\n * - `itemsPerPage` allows customization on the number of items on each page. This requires a collection with `label` and `value` key pairs.\n * - `showItemsPerPageControl` shows or hides the `itemsPerPage` component using `true` or `false`.\n * - `showGoToPageControl` displays controls which allows jumping between pages in a non-linear approach.\n */\nexport const PaginationExample = {\n render: () => Pagination(),\n name: \"Pagination\",\n};\n\n/**\n * There may be a requirement to style a column differently to the rest of the data to add emphasis. For example, centre align data within the 'first name' column. To do this, add `columnAlignment` to the column. `columnAlignment` takes an object which sets the `horizontal` and `vertical` property:\n * - `horizontal` accepts `left`, `right` or `center`.\n * - `vertical` accepts `top`, `middle`, `bottom`.\n *\n * `emphasis` can be added to the column by setting `high` or `low`.\n */\nexport const ColumnOverridesExample = {\n render: () => ColumnOverrides(),\n name: \"Column overrides\",\n};\n\n/**\n * Row overrides allow styling to be applied at a row level and is set within the `rowOptions` object. The following row overrides options apply:\n * - `rowAlignment` accepts `left`, `right` and `center`.\n * - `emphasis` accepts `high` or `low`.\n * - `textWrap` accepts `true` or `false`.\n */\nexport const RowOverridesExample = {\n render: () => RowOverrides(),\n name: \"Row overrides\",\n};\n\n/**\n * Cell overrides allows styling to be applied at a cell level. The cell which requires an override accepts an object which requires `data` and can contain `cellAlignment` and/or `emphasis`:\n * - `data` is the cell value.\n * - `emphasis` accepts `high` or `low`.\n * - `cellAlignment` accepts an object with the following key pairs:\n * - `horizontal` accepts `left`, `right` or `center`.\n * - `vertical` accepts `top`, `middle`, `bottom`.\n */\nexport const CellOverridesExample = {\n render: () => CellOverrides(),\n name: \"Cell overrides\",\n};\n\n/**\n * When the table receives no data (either `null` or an empty array) it will automatically show an `ic-empty-state` below the headers.\n */\nexport const DefaultEmptyState = {\n render: () => Empty(),\n name: \"Empty state\",\n};\n\n/**\n * You can customise your own `ic-empty-state` component and slot it into the data table using the `empty-state` slot, to reflect different scenarios.\n */\nexport const SlottedEmptyState = {\n render: () => EmptySlotted(),\n name: \"Slotted empty state\",\n};\n\n/**\n * When a user wants to fetch their data asynchronously, a `loading` prop can be set to `true`, which then renders a circular variant of the `ic-loading-indicator`.\n * The loading indicator can be customised using the `loadingOptions` prop:\n * - `description` sets the aria-label of the component\n * - `label` sets the visual message\n * - `labelDuration` is the number of milliseconds before the label changes\n * - `overlay` renders a dark overlay over the previous data set while new data is loaded\n *\n * If it needs to be determinate, use `max`, `min` and `progress`.\n */\nexport const LoadingState = {\n render: () => Loading(),\n name: \"Loading state\",\n height: \"720px\",\n};\n\n/**\n * If data in the table has changed, an `updating` prop has been supplied to show a linear `ic-loading-indicator` just above the data rows.\n *\n * This prop is also accompanied by an `updatingOptions` prop, which contains similar options to `loadingOptions`, minus `label` and `labelDuration` since the linear version is displayed.\n */\nexport const UpdatingState = {\n render: () => Updating(),\n name: \"Updating state\",\n};\n\n/**\n * Custom HTML elements can be slotted or passed via the `data` prop to display in certain cells. When using the slotted method, the slot name follows the format of `{COLUMN_TAG}-{ROW_INDEX}`.\n */\nexport const LinksAndElementsInData = {\n render: () => LinksHTMLElements(),\n name: \"Links and elements in data\",\n};\n\nexport const SlottedElementsWithPaginationExample = {\n render: () => SlottedElementsWithPagination(),\n name: \"Slotted elements with pagination\",\n};\n\n/**\n * Custom icons can be added to cells, columns and headers in the data table. To add it to headers, set the icon via the `columns` prop:\n * ```\n * icon: {\n * icon: //ICON_STRING_GOES_HERE,\n * onAllCells: //Boolean to determine whether column header icon should be replicated on all cells in the column,\n * hideOnHeader: //Boolean for whether this icon should only be shown on cells and not on the header,\n * }\n * ```\n *\n * To add icons to individual cells, they can be added through the `data` prop, in a similar method to overriding the cell. Cell icons take priority over the `onAllCells` prop, meaning specific cells can be made to stand out.\n *\n * Both cells and headers can also have icons slotted in. Cells use the slot format: `{COLUMN_KEY}-{ROW_INDEX}-icon`, and headers use the format: `{COLUMN_KEY}-column-icon`. Slotted icons take priority over icons inserted via the `columns` and `data` props.\n */\nexport const CustomIconsExample = {\n render: () => CustomIcons(),\n name: \"Custom icons\",\n};\n\n/**\n * A data table can have its rows use custom heights, to help display more data per row. This involves using the `globalRowHeight` prop, which applies this custom height to all rows.\n *\n * For a more granular approach, `variableRowHeight` exists. This is passed through the data object for each row of data, as well as that row's `index`. Using these properties, you can write a custom function that will return a number for that row's height based on your criteria.\n * Returning `null` from this function means that the row will use the `globalRowHeight` property value.\n *\n * **_NOTE:_** If the data table uses the `density` prop, then your custom value will be scaled depending on the density, in order to keep content readable as the text size changes:\n * - `Dense` = 80% of `globalRowHeight` or `variableRowHeight`\n * - `Spacious` = 120% of `globalRowHeight` or `variableRowHeight`\n *\n * E.G: If `globalRowHeight` = 100, a dense table will set the height to be **_80_**.\n *\n * **_NOTE:_** If a cell has a description (see \"Description and icons within cells\"), then the row height for that individual row will be increased by the description height in order to fully display it.\n *\n * E.G: If `globalRowHeight` = 100 and a cell has a description with a height of 20, then the row height for that cell's row will be set to **_120_**.\n *\n * To quickly reset all row heights to the default, you can run the `resetRowHeights` method.\n *\n * If you'd rather let the row calculate its own height based on its content, either set `globalRowHeight` to `auto`, or return `auto` from `variableRowHeight`.\n */\nexport const CustomRowHeightsExample = {\n render: () => CustomRowHeights(\"custom-row-heights-example\"),\n name: \"Custom row heights\",\n};\n\n/**\n * To add additional information about the data held in your data table, you can use the `title-bar` slot to add an `ic-data-table-title-bar`, which will appear above the column headers.\n *\n * The title bar can have a description and metadata added, to provide supporting information to display some context about the data to the user. Primary and custom action slots also exist to allow for actions to be performed that are related to the data, which can be prominently displayed.\n *\n * The `ic-data-table-title-bar` has a built-in density selector, which allows a user to quickly change the size and padding of cells to make it more readable. This can also be hidden if preferred.\n *\n * More details on `ic-data-table-title-bar` can be found in the <ic-link href=\"/?path=/story/web-components-data-table-title-bar--basic\" inline=\"\">data table title bar documentation</ic-link>.\n */\nexport const CustomTitleBarExample = {\n render: () => CustomTitleBar(),\n name: \"Custom title bar\",\n};\n\n/**\n * The example below demonstrates how the pagination bar responds to changes within the data.\n *\n * More details on `ic-pagination-bar` can be found in the <ic-link href=\"/?path=/story/web-components-pagination-bar--docs\" inline=\"\">pagination bar documentation</ic-link>.\n */\nexport const UpdatingDataExample = {\n render: () => UpdatingData(),\n name: \"Updating data\",\n};\n\n/**\n * There may be scenarios when using `ic-data-table` when pagination and data fetching is done using a backend API.\n *\n * To enable this behaviour, the `pagination-bar` slot can be utilised to provide a custom `ic-pagination-bar` component, allowing the user to have more control over how their data is displayed & interacted with.\n */\nexport const SlottedPaginationBar = {\n render: () => SlottedPagination(),\n name: \"Slotted pagination bar\",\n};\n\n/**\n * When a row is given a set height, and has content that no longer fits into the cell area, the content becomes truncated. There are two types of truncation:\n * - `tooltip`: Adds a line-clamp to the cell and displays the message in a tooltip.\n * - `show-hide`: Adds a `See more/See less` button underneath the cell text, allowing the user to display the full content should they wish.\n *\n * These values are set using the `truncation-pattern` attribute.\n *\n * By default, `global-row-height` is set to `auto`. If the `truncation-pattern` attribute is set to `tooltip` or `show-hide` while `global-row-height` is `auto`, the data will not appear truncated due to the row height being set to the data which has the most height.\n *\n * To see the data truncated, the `global-row-height` or `variable-row-height` needs to be explicitly set to a height which is shorter than data which has the most lines.\n *\n * **_NOTE:_** `truncation-pattern` only applies to a cell's main data value. If a cell has a description (see \"Description and icons within cells\") then this will not be truncated and will still be visible beyond the truncation.\n */\nexport const DataTruncationTooltip = {\n render: () => TruncationTooltip(),\n name: \"Data truncation tooltip\",\n};\n\nexport const TruncationShowHideExample = {\n render: () => TruncationShowHide(),\n name: \"Data truncation see more / see less\",\n};\n\n/**\n * Text can be set to wrap in a particular column, row or cell. Any column, row or cell that text wrap is applied to will ignore the custom height if the custom height is too small and the full content will be shown.\n *\n * To set text to wrap in a column, add `textWrap: true` as a key value:\n * ```\n * const column = [\n * { key: \"name\", title: \"Name\", dataType: \"string\" },\n * ...\n * ]\n * ```\n *\n * To set text to wrap in a row, add `rowOptions: { textWrap: true }` to an object within the data array:\n * ```\n * const data = [\n * {\n * name: \"Tim Rayes\",\n * age: 41,\n * department: \"Sales and Marketing\",\n * employeeNumber: 3,\n * jobTitle:\n * \"Regional Sales and Marketing Strategy Director (Europe, the Middle East, and Africa)\",\n * rowOptions: {\n * textWrap: true\n * }\n * },\n * ...\n * ]\n * ```\n *\n * To set text wrap in a cell, add `textWrap` to a data key within an object:\n * ```\n * const data = [\n * {\n * name: {\n * data:\"Tim Rayes\",\n * textWrap: true\n * },\n * age: 41,\n * department: \"Sales and Marketing\",\n * employeeNumber: 3,\n * jobTitle:\n * \"Regional Sales and Marketing Strategy Director (Europe, the Middle East, and Africa)\",\n * },\n * ...\n * ]\n * ```\n */\nexport const TextWrap = {\n render: () => TruncationTextWrap(),\n name: \"Text wrap\",\n};\n\n/**\n * The dimensions of the data table can be set using the `width` and `height` attributes. The attribute accepts dimensions in `px`, `%`, `rem` and `auto`.\n *\n * By default, the width is set to `100%` so the table spans across the viewport or parent container.\n *\n * To set the column widths, the `columnWidth` property should be added to the relevant column within the column array.\n *\n * The [table layout](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout) attribute is vital to how the table resizing and column widths behave. By default, the table layout is set to `fixed`. If no column width is set, the columns widths will be equally set within the viewport or parent container.\n *\n * A table with a `fixed` layout will force the table column widths to take precedence over the data with the table cells.\n *\n * For the column widths to be dictated by the content inside, set the `table-layout` attribute to `auto` and set the table `width` to `auto`.\n *\n * To set the min and max width of a table cell, set the `table-layout` attribute to `auto` and set a `minWidth` or `maxWidth` value into `columnWidth`. The min and max width accepts dimensions in `px`, `%`, `rem`.\n */\nexport const TableSizingAndColumnWidth = {\n render: () => DataTableSizing(),\n name: \"Table sizing and column width\",\n};\n\n/**\n * The cells can contain a slotted `actionElement`. The `actionElement` will be displayed to the right of the cell data.\n */\nexport const ActionElements = {\n render: () => ActionElement(),\n name: \"Action element\",\n};\n\n/**\n * Descriptions and icons can be included in the cells by proving a `description` field in the data. This will populate the cell with an icon (if provided) and a text string underneath the cell data. This can be applied to any cell.\n *\n * You can provide a `description` object with or without an icon:\n * ```\n * // With an icon\n * firstName: {\n * data: \"Joe\",\n * description: {\n * data: \"The name of Joe\",\n * icon: '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" viewBox=\"0 -960 960 960\" width=\"20\"><path d=\"M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h600q24 0 42 18t18 42v600q0 24-18 42t-42 18H180Zm0-60h600v-600H180v600Zm56-97h489L578-473 446-302l-93-127-117 152Zm-56 97v-600 600Z\"/></svg>',\n * },\n * }\n * ```\n *\n * ```\n * // Without an icon\n * firstName: {\n * data: \"Joe\",\n * description: \"The name of Joe\"\n * }\n * ```\n */\nexport const CellDescriptionsAndIcons = {\n render: () => CellDescriptions(),\n name: \"Description and icons within cells\",\n};\n\nexport const CellDescriptionsLongText = {\n render: () => LongCellDescriptions(),\n name: \"Description and icons within cells with long text\",\n};\n\n/**\n * The example below demonstrates the table being able to handle empty cell values (null, undefined or empty string).\n */\nexport const MissingCellDataExample = {\n render: () => MissingCellData(),\n name: \"Missing cell data\",\n};\n\n/**\n * By setting `row-selection` to `true`, `ic-checkbox` elements will appear in the leftmost column, with one in the header.\n * When checked, the corresponding row will be selected, with the `icSelectedRowChange` containing the selected row and an array of all the currently selected rows.\n *\n * When checking the header checkbox, all rows will be selected, with the `icSelectAllRows` event being emitted with an array of all the rows. When using pagination, only the rows on the current page will be selected.\n */\nexport const SelectRowsUsingCheckboxExample = {\n render: () => SelectWithCheckbox(),\n name: \"Select rows with checkbox\",\n};\n\nexport const DevAreaExample = {\n render: () => DevArea(),\n name: \"Dev area\",\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-data-table.types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"ic-data-table.types.js","sourceRoot":"","sources":["../../../../../src/components/ic-data-table/ic-data-table.types.tsx"],"names":[],"mappings":"","sourcesContent":["export type IcDataTableSortOrderOptions =\n | \"unsorted\"\n | \"ascending\"\n | \"descending\";\n\nexport type IcDataTableDensityOptions = \"default\" | \"dense\" | \"spacious\";\n\nexport type IcDataTableColumnDataTypes =\n | \"string\"\n | \"number\"\n | \"address\"\n | \"element\"\n | \"date\";\n\nexport type IcDataTableColumnWidthTypes = {\n width?: string;\n minWidth?: string;\n maxWidth?: string;\n};\n\nexport type IcDataTableAlignmentOptions = {\n horizontal?: string;\n vertical?: string;\n};\n\nexport type IcDataTableColumnObject = {\n key: string;\n title: string;\n dataType: IcDataTableColumnDataTypes;\n columnAlignment?: IcDataTableAlignmentOptions;\n columnWidth?: string | IcDataTableColumnWidthTypes;\n textWrap?: boolean;\n cellAlignment?: string;\n emphasis?: string;\n colspan?: number;\n icon?: {\n icon: string;\n onAllCells?: boolean;\n hideOnHeader?: boolean;\n };\n excludeColumnFromSort?: boolean;\n hidden?: boolean;\n disableAutoSort?: boolean;\n};\n\nexport type IcLoadingOptions = {\n monochrome?: boolean;\n description?: string;\n label?: string;\n labelDuration?: number;\n max?: number;\n min?: number;\n progress?: number;\n overlay?: boolean;\n};\n\nexport type IcDataTableRowHeights = number | \"auto\";\n\nexport interface IcDensityUpdateEventDetail {\n value: IcDataTableDensityOptions;\n}\nexport type IcDataTableTruncationTypes = \"tooltip\" | \"show-hide\" | undefined;\n\nexport interface IcSortEventDetail {\n columnName: string;\n sorted: IcDataTableSortOrderOptions;\n}\n\nexport type truncWrapperDetailsTypes = {\n scrollHeight: number | null;\n};\n\nexport type IcDataTableRowOptions = {\n header?: string;\n emphasis?: string;\n rowAlignment?: IcDataTableAlignmentOptions;\n textWrap?: boolean;\n};\n\nexport type IcDataTableDataType = {\n [key: string]: any;\n rowOptions?: IcDataTableRowOptions;\n};\n"]}
|
|
@@ -912,49 +912,39 @@ export const COLS_ELEMENTS_SINGLE_ACTION = [
|
|
|
912
912
|
];
|
|
913
913
|
export const DATA_ELEMENTS = [
|
|
914
914
|
{
|
|
915
|
-
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
|
916
915
|
firstName: {
|
|
917
916
|
data: "Joe",
|
|
918
917
|
href: "https://www.example.com",
|
|
919
918
|
target: "_blank",
|
|
920
919
|
rel: "noopener noreferrer",
|
|
921
920
|
},
|
|
922
|
-
actions2: `<ic-button aria-label="Delete row" variant='icon-tertiary' onClick='this.closest("tr").remove()'><svg viewBox="0 0 24 24" role="presentation" style="width: 1.5rem; height: 1.5rem;"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" style="fill: currentcolor;"></path></svg></ic-button>`,
|
|
923
921
|
age: 30,
|
|
924
922
|
jobTitle: "Developer",
|
|
925
923
|
address: "1 Main Street, Town, County, Postcode",
|
|
926
924
|
},
|
|
927
925
|
{
|
|
928
|
-
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
|
929
926
|
firstName: {
|
|
930
927
|
data: "Sarah",
|
|
931
928
|
href: "https://www.example.org",
|
|
932
929
|
},
|
|
933
|
-
actions2: `<ic-button aria-label="Delete row" variant='icon-tertiary' onClick='this.closest("tr").remove()'><svg viewBox="0 0 24 24" role="presentation" style="width: 1.5rem; height: 1.5rem;"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" style="fill: currentcolor;"></path></svg></ic-button>`,
|
|
934
930
|
age: 28,
|
|
935
931
|
jobTitle: "Senior Software Developer, Site Reliability Engineering",
|
|
936
932
|
address: "2 Main Street, Town, Country, Postcode",
|
|
937
933
|
},
|
|
938
934
|
{
|
|
939
|
-
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
|
940
935
|
firstName: "Mark",
|
|
941
|
-
actions2: `<ic-button aria-label="Delete row" variant='icon-tertiary' onClick='this.closest("tr").remove()'><svg viewBox="0 0 24 24" role="presentation" style="width: 1.5rem; height: 1.5rem;"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" style="fill: currentcolor;"></path></svg></ic-button>`,
|
|
942
936
|
age: 45,
|
|
943
937
|
jobTitle: "Team Lead",
|
|
944
938
|
address: "12 Key Street, Town, Country, Postcode",
|
|
945
939
|
},
|
|
946
940
|
{
|
|
947
|
-
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
|
948
941
|
firstName: "Naomi",
|
|
949
|
-
actions2: `<ic-button aria-label="Delete row" variant='icon-tertiary' onClick='this.closest("tr").remove()'><svg viewBox="0 0 24 24" role="presentation" style="width: 1.5rem; height: 1.5rem;"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" style="fill: currentcolor;"></path></svg></ic-button>`,
|
|
950
942
|
age: 32,
|
|
951
943
|
jobTitle: "Analyst",
|
|
952
944
|
address: "8 Side Street, Town, Country, Postcode",
|
|
953
945
|
},
|
|
954
946
|
{
|
|
955
|
-
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
|
956
947
|
firstName: "Luke",
|
|
957
|
-
actions2: `<ic-button aria-label="Delete row" variant='icon-tertiary' onClick='this.closest("tr").remove()'><svg viewBox="0 0 24 24" role="presentation" style="width: 1.5rem; height: 1.5rem;"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" style="fill: currentcolor;"></path></svg></ic-button>`,
|
|
958
948
|
age: 18,
|
|
959
949
|
jobTitle: "Junior Developer",
|
|
960
950
|
address: "5 New Street, Town, Country, Postcode",
|
|
@@ -962,7 +952,6 @@ export const DATA_ELEMENTS = [
|
|
|
962
952
|
];
|
|
963
953
|
export const DATA_ELEMENTS_PAGINATION = [
|
|
964
954
|
{
|
|
965
|
-
actions: `<ic-button onClick='console.log("1")'>1</ic-button>`,
|
|
966
955
|
firstName: {
|
|
967
956
|
data: "Joe",
|
|
968
957
|
href: "https://www.example.com",
|
|
@@ -974,7 +963,6 @@ export const DATA_ELEMENTS_PAGINATION = [
|
|
|
974
963
|
address: "1 Main Street, Town, County, Postcode",
|
|
975
964
|
},
|
|
976
965
|
{
|
|
977
|
-
actions: `<ic-button onClick='console.log("2")'>2</ic-button>`,
|
|
978
966
|
firstName: {
|
|
979
967
|
data: "Sarah",
|
|
980
968
|
href: "https://www.example.org",
|
|
@@ -984,56 +972,48 @@ export const DATA_ELEMENTS_PAGINATION = [
|
|
|
984
972
|
address: "2 Main Street, Town, Country, Postcode",
|
|
985
973
|
},
|
|
986
974
|
{
|
|
987
|
-
actions: `<ic-button onClick='console.log("3")'>3</ic-button>`,
|
|
988
975
|
firstName: "Mark",
|
|
989
976
|
age: 45,
|
|
990
977
|
jobTitle: "Team Lead",
|
|
991
978
|
address: "12 Key Street, Town, Country, Postcode",
|
|
992
979
|
},
|
|
993
980
|
{
|
|
994
|
-
actions: `<ic-button onClick='console.log("4")'>4</ic-button>`,
|
|
995
981
|
firstName: "Naomi",
|
|
996
982
|
age: 32,
|
|
997
983
|
jobTitle: "Analyst",
|
|
998
984
|
address: "8 Side Street, Town, Country, Postcode",
|
|
999
985
|
},
|
|
1000
986
|
{
|
|
1001
|
-
actions: `<ic-select placeholder="Placeholder goes here"></ic-select>`,
|
|
1002
987
|
firstName: "Luke",
|
|
1003
988
|
age: 18,
|
|
1004
989
|
jobTitle: "Junior Developer",
|
|
1005
990
|
address: "5 New Street, Town, Country, Postcode",
|
|
1006
991
|
},
|
|
1007
992
|
{
|
|
1008
|
-
actions: `<ic-button onClick='console.log("6")'>6</ic-button>`,
|
|
1009
993
|
firstName: "Dave",
|
|
1010
994
|
age: 33,
|
|
1011
995
|
jobTitle: "Analyst",
|
|
1012
996
|
address: "4 Extra Street, Town, County, Postcode",
|
|
1013
997
|
},
|
|
1014
998
|
{
|
|
1015
|
-
actions: `<ic-button onClick='console.log("7")'>7</ic-button>`,
|
|
1016
999
|
firstName: "Amy",
|
|
1017
1000
|
age: 27,
|
|
1018
1001
|
jobTitle: "Analyst",
|
|
1019
1002
|
address: "3 Main Street, Town, Country, Postcode",
|
|
1020
1003
|
},
|
|
1021
1004
|
{
|
|
1022
|
-
actions: `<ic-button onClick='console.log("8")'>8</ic-button>`,
|
|
1023
1005
|
firstName: "Mary",
|
|
1024
1006
|
age: 31,
|
|
1025
1007
|
jobTitle: "Developer",
|
|
1026
1008
|
address: "8 Main Street, Town, County, Postcode",
|
|
1027
1009
|
},
|
|
1028
1010
|
{
|
|
1029
|
-
actions: `<ic-button onClick='console.log("9")'>9</ic-button>`,
|
|
1030
1011
|
firstName: "Alice",
|
|
1031
1012
|
age: 38,
|
|
1032
1013
|
jobTitle: "Team Lead",
|
|
1033
1014
|
address: "10 High Street, Town, Country, Postcode",
|
|
1034
1015
|
},
|
|
1035
1016
|
{
|
|
1036
|
-
actions: `<ic-select placeholder="Placeholder goes here"></ic-select>`,
|
|
1037
1017
|
firstName: "Ben",
|
|
1038
1018
|
age: 40,
|
|
1039
1019
|
jobTitle: "Team Lead",
|
|
@@ -1508,7 +1488,40 @@ export const Pagination = () => {
|
|
|
1508
1488
|
export const ColumnOverrides = () => createDataTableElement("column-overrides", "Column Overrides", COLS_ALIGNMENT, DATA);
|
|
1509
1489
|
export const RowOverrides = () => createDataTableElement("row-overrides", "Row Overrides", ROW_HEADER_COLS, ROW_ALIGNMENT);
|
|
1510
1490
|
export const CellOverrides = () => createDataTableElement("cell-overrides", "Cell Overrides", COLS, DATA_CELL_ALIGNMENT);
|
|
1511
|
-
export const LinksHTMLElements = () =>
|
|
1491
|
+
export const LinksHTMLElements = () => {
|
|
1492
|
+
const dataTable = createDataTableElement("links-html-elements", "Links and HTML Elements Overrides", COLS_ELEMENTS, DATA_ELEMENTS);
|
|
1493
|
+
DATA_ELEMENTS.map((_, index) => {
|
|
1494
|
+
const button1 = document.createElement("ic-button");
|
|
1495
|
+
button1.setAttribute("slot", "actions-" + index);
|
|
1496
|
+
button1.setAttribute("variant", "destructive");
|
|
1497
|
+
button1.innerHTML = "Delete";
|
|
1498
|
+
dataTable.appendChild(button1);
|
|
1499
|
+
button1.addEventListener("click", (e) => {
|
|
1500
|
+
const btn = e.target;
|
|
1501
|
+
btn.assignedSlot.closest("tr").remove();
|
|
1502
|
+
});
|
|
1503
|
+
const button2 = document.createElement("ic-button");
|
|
1504
|
+
button2.setAttribute("slot", "actions2-" + index);
|
|
1505
|
+
button2.setAttribute("variant", "icon-tertiary");
|
|
1506
|
+
button2.setAttribute("aria-label", "Delete row");
|
|
1507
|
+
button2.innerHTML = `<svg
|
|
1508
|
+
viewBox="0 0 24 24"
|
|
1509
|
+
role="presentation"
|
|
1510
|
+
style="width: 1.5rem; height: 1.5rem;"
|
|
1511
|
+
>
|
|
1512
|
+
<path
|
|
1513
|
+
d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"
|
|
1514
|
+
style="fill: currentcolor;"
|
|
1515
|
+
></path>
|
|
1516
|
+
</svg>`;
|
|
1517
|
+
dataTable.appendChild(button2);
|
|
1518
|
+
button2.addEventListener("click", (e) => {
|
|
1519
|
+
const btn = e.target;
|
|
1520
|
+
btn.assignedSlot.closest("tr").remove();
|
|
1521
|
+
});
|
|
1522
|
+
});
|
|
1523
|
+
return dataTable;
|
|
1524
|
+
};
|
|
1512
1525
|
export const SlottedElementsWithPagination = () => {
|
|
1513
1526
|
const dataTable = createDataTableElement("slotted-els-with-pagination", "Slotted elements with pagination", COLS_ELEMENTS_SINGLE_ACTION, DATA_ELEMENTS_PAGINATION);
|
|
1514
1527
|
dataTable.setAttribute("show-pagination", "true");
|
|
@@ -1521,6 +1534,24 @@ export const SlottedElementsWithPagination = () => {
|
|
|
1521
1534
|
showGoToPageControl: true,
|
|
1522
1535
|
selectedItemsPerPage: 5,
|
|
1523
1536
|
};
|
|
1537
|
+
DATA_ELEMENTS_PAGINATION.map((_, index) => {
|
|
1538
|
+
if (index === 4 || index === 9) {
|
|
1539
|
+
const select = document.createElement("ic-select");
|
|
1540
|
+
select.setAttribute("slot", "actions-" + index);
|
|
1541
|
+
select.setAttribute("placeholder", "Placeholder goes here");
|
|
1542
|
+
dataTable.appendChild(select);
|
|
1543
|
+
}
|
|
1544
|
+
else {
|
|
1545
|
+
const button = document.createElement("ic-button");
|
|
1546
|
+
button.setAttribute("slot", "actions-" + index);
|
|
1547
|
+
button.innerHTML = String(index);
|
|
1548
|
+
dataTable.appendChild(button);
|
|
1549
|
+
button.addEventListener("click", (e) => {
|
|
1550
|
+
const btn = e.target;
|
|
1551
|
+
console.log(btn.innerText);
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1524
1555
|
return dataTable;
|
|
1525
1556
|
};
|
|
1526
1557
|
export const Empty = () => createDataTableElement("empty-state", "Empty State", COLS);
|