@ukic/canary-web-components 2.0.0-canary.8 → 3.0.0-canary.1
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-33b42cd6.js} +101 -102
- package/dist/cjs/helpers-33b42cd6.js.map +1 -0
- package/dist/cjs/{helpers-93c5fc92.js → helpers-6817cfbb.js} +209 -12
- package/dist/cjs/helpers-6817cfbb.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -9
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +7 -8
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +28 -10
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +17 -8
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +67 -117
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +37 -11
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +121 -128
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
- package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +27 -20
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +45 -40
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +40 -29
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +14 -5
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-table.cjs.entry.js +805 -65
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +1110 -0
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-date-picker.cjs.entry.js +1069 -0
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-dialog.cjs.entry.js +27 -101
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -3
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +317 -0
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +9 -10
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +27 -12
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -8
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +156 -0
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +51 -24
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +6 -13
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +186 -47
- 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} +17 -86
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +28 -8
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +23 -21
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +33 -38
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +10 -12
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +226 -185
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +15 -21
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +75 -51
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +44 -53
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +23 -30
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +20 -69
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +8 -9
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +17 -37
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +7 -15
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +42 -43
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +45 -24
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +7 -9
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +35 -18
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +6 -13
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +10 -9
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +39 -25
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +6 -7
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +88 -35
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +15 -14
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +62 -86
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-typography.cjs.entry.js +55 -19
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +38 -18
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/arrow-dropdown.svg +3 -0
- package/dist/collection/assets/calendar.svg +3 -0
- package/dist/collection/collection-manifest.json +9 -3
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +661 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
- package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
- package/dist/collection/components/ic-data-table/ic-data-table.css +155 -10
- package/dist/collection/components/ic-data-table/ic-data-table.js +1174 -90
- 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 +758 -40
- 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 +339 -3
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +93 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
- package/dist/collection/components/ic-date-input/ic-date-input.css +560 -0
- package/dist/collection/components/ic-date-input/ic-date-input.js +1775 -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 +1158 -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 +880 -0
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +1566 -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-date-picker/test/a11y/ic-date-picker.test.a11y.js +13 -0
- 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 +1030 -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.css +25 -14
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js +189 -71
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +229 -52
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +173 -158
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +56 -11
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/ic-select.css +14 -12
- package/dist/collection/components/ic-select-with-multi/ic-select.js +18 -147
- package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +7 -7
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.css +172 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.css +59 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
- 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 +302 -10
- 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 +90 -91
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +197 -12
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion-group.js +39 -13
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +6 -6
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +132 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +37 -8
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +75 -121
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +42 -10
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +10 -7
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +74 -102
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-horizontal.d.ts +11 -0
- package/dist/components/ic-card-horizontal.js +167 -0
- package/dist/components/ic-card-horizontal.js.map +1 -0
- package/dist/components/ic-card-vertical.js +194 -0
- package/dist/components/ic-card-vertical.js.map +1 -0
- package/dist/components/ic-checkbox-group.js +31 -21
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +52 -47
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +45 -31
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +14 -5
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +56 -0
- package/dist/components/ic-data-list.js.map +1 -0
- package/dist/components/ic-data-row.js +14 -13
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table-title-bar.d.ts +11 -0
- package/dist/components/ic-data-table-title-bar.js +136 -0
- package/dist/components/ic-data-table-title-bar.js.map +1 -0
- package/dist/components/ic-data-table.js +841 -72
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input.d.ts +11 -0
- 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 +1344 -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 +1194 -0
- package/dist/components/ic-date-picker.js.map +1 -0
- package/dist/components/ic-dialog.js +29 -115
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -2
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +1 -57
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-empty-state2.js +80 -0
- package/dist/components/ic-empty-state2.js.map +1 -0
- package/dist/components/ic-footer-link-group.js +10 -10
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +13 -8
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +9 -10
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +28 -14
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +6 -8
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +26 -21
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +9 -11
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +4 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +54 -27
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +23 -19
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +6 -12
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +15 -20
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +187 -49
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-button.js +28 -8
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +23 -20
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +33 -37
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +3 -3
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +9 -11
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +154 -143
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +22 -12
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +50 -33
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +15 -20
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +76 -51
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +47 -60
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +21 -29
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +1 -1
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select-with-multi.js +15 -71
- package/dist/components/ic-select-with-multi.js.map +1 -1
- package/dist/components/ic-select2.js +59 -42
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +8 -9
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +18 -43
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +7 -15
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +48 -48
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +49 -23
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +7 -9
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +40 -20
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +27 -13
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +9 -16
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +12 -10
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +104 -113
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +45 -28
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +7 -9
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +93 -36
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +17 -17
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +16 -14
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +31 -9
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +63 -87
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.d.ts +11 -0
- package/dist/components/ic-tree-item.js +286 -0
- package/dist/components/ic-tree-item.js.map +1 -0
- package/dist/components/ic-tree-view.d.ts +11 -0
- package/dist/components/ic-tree-view.js +237 -0
- package/dist/components/ic-tree-view.js.map +1 -0
- package/dist/components/ic-typography2.js +62 -21
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +38 -20
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-06eeb7f2.entry.js +2 -0
- package/dist/core/p-06eeb7f2.entry.js.map +1 -0
- package/dist/core/p-0922c552.entry.js +2 -0
- package/dist/core/p-0922c552.entry.js.map +1 -0
- package/dist/core/p-0bc0e852.entry.js +2 -0
- package/dist/core/p-0bc0e852.entry.js.map +1 -0
- package/dist/core/p-108a9029.entry.js +2 -0
- package/dist/core/p-108a9029.entry.js.map +1 -0
- package/dist/core/p-13100d3c.entry.js +2 -0
- package/dist/core/p-13100d3c.entry.js.map +1 -0
- package/dist/core/p-1769df1d.entry.js +2 -0
- package/dist/core/p-1769df1d.entry.js.map +1 -0
- package/dist/core/p-202bc922.entry.js +2 -0
- package/dist/core/p-202bc922.entry.js.map +1 -0
- package/dist/core/p-266341f5.entry.js +2 -0
- package/dist/core/p-266341f5.entry.js.map +1 -0
- package/dist/core/p-297e99cf.js +2 -0
- package/dist/core/p-297e99cf.js.map +1 -0
- package/dist/core/p-306def43.entry.js +2 -0
- package/dist/core/p-306def43.entry.js.map +1 -0
- package/dist/core/p-30b046b2.entry.js +2 -0
- package/dist/core/p-30b046b2.entry.js.map +1 -0
- package/dist/core/p-33dd24eb.js +2 -0
- package/dist/core/p-33dd24eb.js.map +1 -0
- package/dist/core/p-3778cc5e.entry.js +2 -0
- package/dist/core/p-3778cc5e.entry.js.map +1 -0
- package/dist/core/p-383a5a76.entry.js +2 -0
- package/dist/core/p-383a5a76.entry.js.map +1 -0
- package/dist/core/p-3a0510e2.entry.js +2 -0
- package/dist/core/p-3a0510e2.entry.js.map +1 -0
- package/dist/core/p-3ace51f5.entry.js +2 -0
- package/dist/core/p-3ace51f5.entry.js.map +1 -0
- package/dist/core/p-3ef28704.entry.js +2 -0
- package/dist/core/p-3ef28704.entry.js.map +1 -0
- package/dist/core/p-3f0391c1.entry.js +2 -0
- package/dist/core/p-3f0391c1.entry.js.map +1 -0
- package/dist/core/p-41fecc61.entry.js +2 -0
- package/dist/core/p-41fecc61.entry.js.map +1 -0
- package/dist/core/p-46cb94a2.entry.js +2 -0
- package/dist/core/p-46cb94a2.entry.js.map +1 -0
- package/dist/core/p-4e67f127.entry.js +2 -0
- package/dist/core/p-4e67f127.entry.js.map +1 -0
- package/dist/core/p-505250cf.entry.js +2 -0
- package/dist/core/p-505250cf.entry.js.map +1 -0
- package/dist/core/p-50e48f4d.entry.js +2 -0
- package/dist/core/p-50e48f4d.entry.js.map +1 -0
- package/dist/core/p-56e7459a.entry.js +2 -0
- package/dist/core/p-56e7459a.entry.js.map +1 -0
- package/dist/core/p-59028160.entry.js +2 -0
- package/dist/core/p-59028160.entry.js.map +1 -0
- package/dist/core/p-5cfb5821.entry.js +2 -0
- package/dist/core/p-5cfb5821.entry.js.map +1 -0
- package/dist/core/p-5e6fd734.entry.js +2 -0
- package/dist/core/p-5e6fd734.entry.js.map +1 -0
- package/dist/core/p-5f313e1a.entry.js +2 -0
- package/dist/core/p-5f313e1a.entry.js.map +1 -0
- package/dist/core/{p-c2b5e7b1.entry.js → p-5f5403e2.entry.js} +2 -2
- package/dist/core/{p-c2b5e7b1.entry.js.map → p-5f5403e2.entry.js.map} +1 -1
- package/dist/core/p-710c6a42.entry.js +2 -0
- package/dist/core/p-710c6a42.entry.js.map +1 -0
- package/dist/core/p-73b40c79.entry.js +2 -0
- package/dist/core/p-73b40c79.entry.js.map +1 -0
- package/dist/core/p-77a32de5.entry.js +2 -0
- package/dist/core/p-77a32de5.entry.js.map +1 -0
- package/dist/core/p-7a9de008.entry.js +2 -0
- package/dist/core/p-7a9de008.entry.js.map +1 -0
- package/dist/core/p-801414e2.entry.js +2 -0
- package/dist/core/p-801414e2.entry.js.map +1 -0
- package/dist/core/p-82ba744d.entry.js +2 -0
- package/dist/core/p-82ba744d.entry.js.map +1 -0
- package/dist/core/p-897b8d16.entry.js +2 -0
- package/dist/core/p-897b8d16.entry.js.map +1 -0
- package/dist/core/p-9397b15b.js +2 -0
- package/dist/core/p-9397b15b.js.map +1 -0
- package/dist/core/p-9af6adb1.entry.js +2 -0
- package/dist/core/p-9af6adb1.entry.js.map +1 -0
- package/dist/core/p-9b54feca.entry.js +2 -0
- package/dist/core/p-9b54feca.entry.js.map +1 -0
- package/dist/core/{p-356b8a4c.entry.js → p-9f3cf053.entry.js} +2 -2
- package/dist/core/{p-356b8a4c.entry.js.map → p-9f3cf053.entry.js.map} +1 -1
- package/dist/core/p-a57cd616.entry.js +2 -0
- package/dist/core/p-a57cd616.entry.js.map +1 -0
- package/dist/core/p-a5eaed1a.entry.js +2 -0
- package/dist/core/p-a5eaed1a.entry.js.map +1 -0
- package/dist/core/p-a78cf2cb.entry.js +2 -0
- package/dist/core/p-a78cf2cb.entry.js.map +1 -0
- package/dist/core/p-a91340b4.entry.js +2 -0
- package/dist/core/p-a91340b4.entry.js.map +1 -0
- package/dist/core/p-aee8d45b.entry.js +2 -0
- package/dist/core/p-aee8d45b.entry.js.map +1 -0
- package/dist/core/{p-452985d9.entry.js → p-b40ecaef.entry.js} +2 -2
- package/dist/core/p-b40ecaef.entry.js.map +1 -0
- package/dist/core/p-badd4c8d.entry.js +2 -0
- package/dist/core/p-badd4c8d.entry.js.map +1 -0
- package/dist/core/p-bf670360.entry.js +2 -0
- package/dist/core/{p-a434c3d4.entry.js.map → p-bf670360.entry.js.map} +1 -1
- package/dist/core/p-c033e7d6.entry.js +2 -0
- package/dist/core/p-c033e7d6.entry.js.map +1 -0
- package/dist/core/p-c07af2d8.entry.js +2 -0
- package/dist/core/p-c07af2d8.entry.js.map +1 -0
- package/dist/core/p-c21d0db8.entry.js +2 -0
- package/dist/core/p-c21d0db8.entry.js.map +1 -0
- package/dist/core/p-c678f73d.entry.js +2 -0
- package/dist/core/p-c678f73d.entry.js.map +1 -0
- package/dist/core/p-c6ae9bad.entry.js +2 -0
- package/dist/core/p-c6ae9bad.entry.js.map +1 -0
- package/dist/core/p-c6c1e08e.entry.js +2 -0
- package/dist/core/p-c6c1e08e.entry.js.map +1 -0
- package/dist/core/p-cb6cebdd.entry.js +2 -0
- package/dist/core/p-cb6cebdd.entry.js.map +1 -0
- package/dist/core/p-d03374fc.entry.js +2 -0
- package/dist/core/p-d03374fc.entry.js.map +1 -0
- package/dist/core/p-d16f364a.entry.js +2 -0
- package/dist/core/p-d16f364a.entry.js.map +1 -0
- package/dist/core/p-d239c33b.entry.js +2 -0
- package/dist/core/p-d239c33b.entry.js.map +1 -0
- package/dist/core/p-d8563643.entry.js +2 -0
- package/dist/core/p-d8563643.entry.js.map +1 -0
- package/dist/core/p-da40757f.entry.js +2 -0
- package/dist/core/p-da40757f.entry.js.map +1 -0
- package/dist/core/p-de052137.entry.js +2 -0
- package/dist/core/p-de052137.entry.js.map +1 -0
- package/dist/core/p-e5d99316.entry.js +2 -0
- package/dist/core/p-e5d99316.entry.js.map +1 -0
- package/dist/core/p-e89bb650.entry.js +2 -0
- package/dist/core/p-e89bb650.entry.js.map +1 -0
- package/dist/core/{p-baf81f30.entry.js → p-f1072c28.entry.js} +2 -2
- package/dist/core/{p-452985d9.entry.js.map → p-f1072c28.entry.js.map} +1 -1
- package/dist/core/p-f37df214.entry.js +2 -0
- package/dist/core/{p-c34848da.entry.js.map → p-f37df214.entry.js.map} +1 -1
- package/dist/core/p-f743b0eb.entry.js +2 -0
- package/dist/core/p-f743b0eb.entry.js.map +1 -0
- package/dist/core/p-f98b1afc.entry.js +2 -0
- package/dist/core/p-f98b1afc.entry.js.map +1 -0
- package/dist/core/p-fe13f1ba.entry.js +2 -0
- package/dist/core/p-fe13f1ba.entry.js.map +1 -0
- 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-5bd2012a.js +368 -0
- package/dist/esm/helpers-5bd2012a.js.map +1 -0
- package/dist/esm/{helpers-12b4266a.js → helpers-dab8ddfe.js} +91 -92
- package/dist/esm/helpers-dab8ddfe.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +31 -9
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +7 -8
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +27 -9
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +17 -8
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +67 -117
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +37 -11
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +8 -7
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +118 -125
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +127 -0
- package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
- package/dist/esm/ic-card-vertical.entry.js +145 -0
- package/dist/esm/ic-card-vertical.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +27 -20
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +45 -40
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +40 -29
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +14 -5
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +28 -0
- package/dist/esm/ic-data-list.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +12 -12
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
- package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
- package/dist/esm/ic-data-table.entry.js +806 -66
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +1106 -0
- package/dist/esm/ic-date-input.entry.js.map +1 -0
- package/dist/esm/ic-date-picker.entry.js +1065 -0
- package/dist/esm/ic-date-picker.entry.js.map +1 -0
- package/dist/esm/ic-dialog.entry.js +27 -101
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -2
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +312 -0
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +9 -10
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +6 -8
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +9 -10
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +28 -13
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -8
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +149 -0
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +52 -25
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -3
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +6 -13
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +186 -47
- 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} +19 -86
- package/dist/esm/ic-menu.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +28 -8
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +23 -21
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +33 -38
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +3 -4
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +10 -12
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +219 -178
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +15 -21
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +75 -51
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +44 -53
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +19 -26
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +1 -1
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +14 -63
- package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +8 -9
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +17 -37
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +7 -15
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +42 -43
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +45 -24
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +7 -9
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +35 -18
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +25 -11
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +6 -13
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +10 -9
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +39 -25
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +6 -7
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +88 -35
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +17 -17
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +15 -14
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +62 -86
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +237 -0
- package/dist/esm/ic-tree-item.entry.js.map +1 -0
- package/dist/esm/ic-tree-view.entry.js +199 -0
- package/dist/esm/ic-tree-view.entry.js.map +1 -0
- package/dist/esm/ic-typography.entry.js +56 -20
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +38 -18
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
- package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +176 -19
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +30 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +236 -3
- package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +259 -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 +240 -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-date-picker/test/a11y/ic-date-picker.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +12 -6
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +37 -18
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +3 -33
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
- package/dist/types/components.d.ts +978 -114
- package/dist/types/interface.d.ts +1 -0
- 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 +92 -11
- package/dist/types/utils/types.d.ts +108 -1
- package/hydrate/index.js +6683 -2381
- package/package.json +6 -6
- package/dist/cjs/helpers-93c5fc92.js.map +0 -1
- package/dist/cjs/helpers-b525d45a.js.map +0 -1
- package/dist/cjs/ic-card.cjs.entry.js +0 -126
- package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
- package/dist/cjs/ic-empty-state.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/cjs/ic-pagination-bar.cjs.entry.js +0 -269
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/types-17dba796.js +0 -16
- package/dist/cjs/types-17dba796.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
- package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
- package/dist/components/ic-alert2.js +0 -117
- package/dist/components/ic-alert2.js.map +0 -1
- package/dist/components/ic-card.js +0 -171
- package/dist/components/ic-card.js.map +0 -1
- package/dist/components/ic-data-entity.js +0 -53
- package/dist/components/ic-data-entity.js.map +0 -1
- package/dist/components/types.js +0 -16
- package/dist/components/types.js.map +0 -1
- package/dist/core/p-045359e1.entry.js +0 -2
- package/dist/core/p-045359e1.entry.js.map +0 -1
- package/dist/core/p-10fb4c46.entry.js +0 -2
- package/dist/core/p-10fb4c46.entry.js.map +0 -1
- package/dist/core/p-169bfa51.entry.js +0 -2
- package/dist/core/p-169bfa51.entry.js.map +0 -1
- package/dist/core/p-1ca332ca.entry.js +0 -2
- package/dist/core/p-1ca332ca.entry.js.map +0 -1
- package/dist/core/p-204ace96.entry.js +0 -2
- package/dist/core/p-204ace96.entry.js.map +0 -1
- package/dist/core/p-21150122.entry.js +0 -2
- package/dist/core/p-21150122.entry.js.map +0 -1
- package/dist/core/p-2eac7dcc.entry.js +0 -2
- package/dist/core/p-2eac7dcc.entry.js.map +0 -1
- package/dist/core/p-3803a5b5.entry.js +0 -2
- package/dist/core/p-3803a5b5.entry.js.map +0 -1
- package/dist/core/p-4753bac8.entry.js +0 -2
- package/dist/core/p-4753bac8.entry.js.map +0 -1
- package/dist/core/p-4baa0916.entry.js +0 -2
- package/dist/core/p-4baa0916.entry.js.map +0 -1
- package/dist/core/p-4f413fc0.entry.js +0 -2
- package/dist/core/p-4f413fc0.entry.js.map +0 -1
- package/dist/core/p-595be57d.entry.js +0 -2
- package/dist/core/p-595be57d.entry.js.map +0 -1
- package/dist/core/p-5ae93c16.entry.js +0 -2
- package/dist/core/p-5ae93c16.entry.js.map +0 -1
- package/dist/core/p-5e0c830b.entry.js +0 -2
- package/dist/core/p-5e0c830b.entry.js.map +0 -1
- package/dist/core/p-624d4f5f.entry.js +0 -2
- package/dist/core/p-624d4f5f.entry.js.map +0 -1
- package/dist/core/p-6933f8e9.entry.js +0 -2
- package/dist/core/p-6933f8e9.entry.js.map +0 -1
- package/dist/core/p-6c3044b6.entry.js +0 -2
- package/dist/core/p-6c3044b6.entry.js.map +0 -1
- package/dist/core/p-73be1251.entry.js +0 -2
- package/dist/core/p-73be1251.entry.js.map +0 -1
- package/dist/core/p-75dac3d1.entry.js +0 -2
- package/dist/core/p-75dac3d1.entry.js.map +0 -1
- package/dist/core/p-76915584.entry.js +0 -2
- package/dist/core/p-76915584.entry.js.map +0 -1
- package/dist/core/p-7ef8d616.entry.js +0 -2
- package/dist/core/p-7ef8d616.entry.js.map +0 -1
- package/dist/core/p-81ddc39d.entry.js +0 -2
- package/dist/core/p-81ddc39d.entry.js.map +0 -1
- package/dist/core/p-869954a2.entry.js +0 -2
- package/dist/core/p-869954a2.entry.js.map +0 -1
- package/dist/core/p-88d54b72.entry.js +0 -2
- package/dist/core/p-88d54b72.entry.js.map +0 -1
- package/dist/core/p-8b08d8fe.entry.js +0 -2
- package/dist/core/p-8b08d8fe.entry.js.map +0 -1
- package/dist/core/p-917c5721.entry.js +0 -2
- package/dist/core/p-917c5721.entry.js.map +0 -1
- package/dist/core/p-942282cd.entry.js +0 -2
- package/dist/core/p-942282cd.entry.js.map +0 -1
- package/dist/core/p-9777ebb1.entry.js +0 -2
- package/dist/core/p-9777ebb1.entry.js.map +0 -1
- package/dist/core/p-99cad6c2.js +0 -2
- package/dist/core/p-99cad6c2.js.map +0 -1
- package/dist/core/p-9caf19eb.js +0 -2
- package/dist/core/p-9caf19eb.js.map +0 -1
- package/dist/core/p-a0f8efb2.entry.js +0 -2
- package/dist/core/p-a0f8efb2.entry.js.map +0 -1
- package/dist/core/p-a31031a5.entry.js +0 -2
- package/dist/core/p-a31031a5.entry.js.map +0 -1
- package/dist/core/p-a434c3d4.entry.js +0 -2
- package/dist/core/p-a43c12cd.entry.js +0 -2
- package/dist/core/p-a43c12cd.entry.js.map +0 -1
- package/dist/core/p-a50c3b9e.entry.js +0 -2
- package/dist/core/p-a50c3b9e.entry.js.map +0 -1
- package/dist/core/p-ab09986c.entry.js +0 -2
- package/dist/core/p-ab09986c.entry.js.map +0 -1
- package/dist/core/p-ac4e40a7.entry.js +0 -2
- package/dist/core/p-ac4e40a7.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-b82dcc29.entry.js +0 -2
- package/dist/core/p-b82dcc29.entry.js.map +0 -1
- package/dist/core/p-ba86928c.entry.js +0 -2
- package/dist/core/p-ba86928c.entry.js.map +0 -1
- package/dist/core/p-baf81f30.entry.js.map +0 -1
- package/dist/core/p-c125b65a.entry.js +0 -2
- package/dist/core/p-c125b65a.entry.js.map +0 -1
- package/dist/core/p-c34848da.entry.js +0 -2
- package/dist/core/p-d8469ac0.entry.js +0 -2
- package/dist/core/p-d8469ac0.entry.js.map +0 -1
- package/dist/core/p-db9c03c0.entry.js +0 -2
- package/dist/core/p-db9c03c0.entry.js.map +0 -1
- package/dist/core/p-e0462b23.entry.js +0 -2
- package/dist/core/p-e0462b23.entry.js.map +0 -1
- package/dist/core/p-e0a94f2d.entry.js +0 -2
- package/dist/core/p-e0a94f2d.entry.js.map +0 -1
- package/dist/core/p-e189f1d0.entry.js +0 -2
- package/dist/core/p-e189f1d0.entry.js.map +0 -1
- package/dist/core/p-e3997d60.entry.js +0 -2
- package/dist/core/p-e3997d60.entry.js.map +0 -1
- package/dist/core/p-e79e0292.entry.js +0 -2
- package/dist/core/p-e79e0292.entry.js.map +0 -1
- package/dist/core/p-e834344e.entry.js +0 -2
- package/dist/core/p-e834344e.entry.js.map +0 -1
- package/dist/core/p-f14454b1.entry.js +0 -2
- package/dist/core/p-f14454b1.entry.js.map +0 -1
- package/dist/core/p-f3c840cd.entry.js +0 -2
- package/dist/core/p-f3c840cd.entry.js.map +0 -1
- 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-f7a14c01.entry.js +0 -2
- package/dist/core/p-f7a14c01.entry.js.map +0 -1
- package/dist/core/p-f843da01.entry.js +0 -2
- package/dist/core/p-f843da01.entry.js.map +0 -1
- package/dist/core/p-fc5611e2.entry.js +0 -2
- package/dist/core/p-fc5611e2.entry.js.map +0 -1
- package/dist/core/p-fd186591.js +0 -2
- package/dist/core/p-fd186591.js.map +0 -1
- package/dist/core/p-fde45b29.entry.js +0 -2
- package/dist/core/p-fde45b29.entry.js.map +0 -1
- package/dist/esm/helpers-12b4266a.js.map +0 -1
- package/dist/esm/helpers-5271897c.js +0 -183
- package/dist/esm/helpers-5271897c.js.map +0 -1
- package/dist/esm/ic-card.entry.js +0 -122
- package/dist/esm/ic-card.entry.js.map +0 -1
- package/dist/esm/ic-data-entity.entry.js +0 -25
- package/dist/esm/ic-data-entity.entry.js.map +0 -1
- package/dist/esm/ic-empty-state.entry.js +0 -34
- package/dist/esm/ic-empty-state.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/esm/ic-pagination-bar.entry.js +0 -265
- package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
- package/dist/esm/types-f605c21c.js +0 -16
- package/dist/esm/types-f605c21c.js.map +0 -1
- package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
- /package/dist/types/components/{ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts → ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts} +0 -0
@@ -0,0 +1,207 @@
|
|
1
|
+
import { IcWeekDays } from "../../../../utils/types";
|
2
|
+
import { dateMatches, dateInRange, getMonthStart, getMonthEnd, getWeekEnd, getWeekStart, yearInRange, createDate, convertToDoubleDigits, isDateOrEpoch, isDayFirstFormat, isMonthFirstFormat, } from "../../../../utils/date-helpers";
|
3
|
+
describe("ic-date-picker-date-helpers", () => {
|
4
|
+
describe("isDayFirstFormat", () => {
|
5
|
+
it("should test 21/01/2023 is day first format", () => {
|
6
|
+
expect(isDayFirstFormat("21/01/2023")).toBe(true);
|
7
|
+
});
|
8
|
+
it("should test 01/21/2023 is not day first format", () => {
|
9
|
+
expect(isDayFirstFormat("21/01/2023")).toBe(true);
|
10
|
+
});
|
11
|
+
it("should test 07/07/2023 is day first format", () => {
|
12
|
+
expect(isDayFirstFormat("07/07/2023")).toBe(true);
|
13
|
+
});
|
14
|
+
it("should test 2023/07/07 is not month first format", () => {
|
15
|
+
expect(isDayFirstFormat("2023/07/07")).toBe(false);
|
16
|
+
});
|
17
|
+
it("should test 2023-07-07 is not month first format", () => {
|
18
|
+
expect(isDayFirstFormat("2023-07-07")).toBe(false);
|
19
|
+
});
|
20
|
+
});
|
21
|
+
describe("isMonthFirstFormat", () => {
|
22
|
+
it("should test 01/21/2023 is month first format", () => {
|
23
|
+
expect(isMonthFirstFormat("01/21/2023")).toBe(true);
|
24
|
+
});
|
25
|
+
it("should test 21/01/2023 is not month first format", () => {
|
26
|
+
expect(isMonthFirstFormat("21/01/2023")).toBe(false);
|
27
|
+
});
|
28
|
+
it("should test 07/07/2023 is month first format", () => {
|
29
|
+
expect(isMonthFirstFormat("07/07/2023")).toBe(true);
|
30
|
+
});
|
31
|
+
it("should test 01-21-2023 is month first format", () => {
|
32
|
+
expect(isMonthFirstFormat("01-21-2023")).toBe(true);
|
33
|
+
});
|
34
|
+
it("should test 21-01-2023 is not month first format", () => {
|
35
|
+
expect(isMonthFirstFormat("21-01-2023")).toBe(false);
|
36
|
+
});
|
37
|
+
it("should test 07-07-2023 is month first format", () => {
|
38
|
+
expect(isMonthFirstFormat("07-07-2023")).toBe(true);
|
39
|
+
});
|
40
|
+
it("should test 2023/07/07 is not month first format", () => {
|
41
|
+
expect(isMonthFirstFormat("2023/07/07")).toBe(false);
|
42
|
+
});
|
43
|
+
it("should test 2023-07-07 is not month first format", () => {
|
44
|
+
expect(isMonthFirstFormat("2023-07-07")).toBe(false);
|
45
|
+
});
|
46
|
+
});
|
47
|
+
describe("convertToDoubleDigits", () => {
|
48
|
+
it("should test convertToDoubleDigits", () => {
|
49
|
+
expect(convertToDoubleDigits("1")).toEqual("01");
|
50
|
+
expect(convertToDoubleDigits("2")).toEqual("02");
|
51
|
+
expect(convertToDoubleDigits("3")).toEqual("03");
|
52
|
+
expect(convertToDoubleDigits("4")).toEqual("04");
|
53
|
+
expect(convertToDoubleDigits("5")).toEqual("05");
|
54
|
+
expect(convertToDoubleDigits("6")).toEqual("06");
|
55
|
+
expect(convertToDoubleDigits("7")).toEqual("07");
|
56
|
+
expect(convertToDoubleDigits("8")).toEqual("08");
|
57
|
+
expect(convertToDoubleDigits("9")).toEqual("09");
|
58
|
+
expect(convertToDoubleDigits("10")).toEqual("10");
|
59
|
+
expect(convertToDoubleDigits("100")).toEqual("100");
|
60
|
+
});
|
61
|
+
});
|
62
|
+
describe("createDate", () => {
|
63
|
+
it("should test createDate with Zulu time", () => {
|
64
|
+
expect(createDate(new Date("28 November 2023").toISOString(), "DD/MM/YYYY")).toEqual(new Date(2023, 10, 28));
|
65
|
+
});
|
66
|
+
it("should test createDate with dashes", () => {
|
67
|
+
expect(createDate("01/07/2023", "DD/MM/YYYY")).toEqual(new Date(2023, 6, 1));
|
68
|
+
});
|
69
|
+
it("should test createDate without double-digit day and month", () => {
|
70
|
+
expect(createDate("1/7/2023", "DD/MM/YYYY")).toEqual(new Date(2023, 6, 1));
|
71
|
+
});
|
72
|
+
it("should test createDate with year first format", () => {
|
73
|
+
expect(createDate("2023/07/01", "YYYY/MM/DD")).toEqual(new Date(2023, 6, 1));
|
74
|
+
});
|
75
|
+
it("should test createDate with month first format - ambiguous date", () => {
|
76
|
+
expect(createDate("01/07/2023", "MM/DD/YYYY")).toEqual(new Date(2023, 0, 7));
|
77
|
+
});
|
78
|
+
it("should test createDate with month first format - unambiguous date", () => {
|
79
|
+
expect(createDate("01/13/2023", "MM/DD/YYYY")).toEqual(new Date(2023, 0, 13));
|
80
|
+
});
|
81
|
+
it("should test createDate with month first format - unambiguous date - month too high", () => {
|
82
|
+
expect(createDate("13/01/2023", "MM/DD/YYYY")).toEqual(new Date(2023, 0, 13));
|
83
|
+
});
|
84
|
+
it("should test createDate with date object", () => {
|
85
|
+
expect(createDate(new Date(2023, 0, 13), "DD/MM/YYYY")).toEqual(new Date(2023, 0, 13));
|
86
|
+
});
|
87
|
+
it("should test createDate with epoch value", () => {
|
88
|
+
expect(createDate("500000000000", "DD/MM/YYYY")).toBeNaN;
|
89
|
+
});
|
90
|
+
});
|
91
|
+
describe("isDateOrEpoch", () => {
|
92
|
+
it("should test isDateOrEpoch with string", () => {
|
93
|
+
expect(isDateOrEpoch("01/01/1970")).toBe(false);
|
94
|
+
});
|
95
|
+
it("should test isDateOrEpoch with date", () => {
|
96
|
+
expect(isDateOrEpoch(new Date(2023, 0, 1))).toBe(true);
|
97
|
+
});
|
98
|
+
it("should test isDateOrEpoch with epoch", () => {
|
99
|
+
expect(isDateOrEpoch(new Date(500000000000))).toBe(true);
|
100
|
+
});
|
101
|
+
});
|
102
|
+
});
|
103
|
+
describe("ic-date-picker-utils", () => {
|
104
|
+
describe("getWeekStart", () => {
|
105
|
+
it("should return the first day of the week - Sunday", () => {
|
106
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Sunday)).toEqual(new Date(2023, 0, 1));
|
107
|
+
});
|
108
|
+
it("should return the first day of the week - Monday", () => {
|
109
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Monday)).toEqual(new Date(2022, 11, 26));
|
110
|
+
});
|
111
|
+
it("should return the first day of the week - Tuesday", () => {
|
112
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Tuesday)).toEqual(new Date(2022, 11, 27));
|
113
|
+
});
|
114
|
+
it("should return the first day of the week - Wednesday", () => {
|
115
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Wednesday)).toEqual(new Date(2022, 11, 28));
|
116
|
+
});
|
117
|
+
it("should return the first day of the week - Thursday", () => {
|
118
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Thursday)).toEqual(new Date(2022, 11, 29));
|
119
|
+
});
|
120
|
+
it("should return the first day of the week - Friday", () => {
|
121
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Friday)).toEqual(new Date(2022, 11, 30));
|
122
|
+
});
|
123
|
+
it("should return the first day of the week - Saturday", () => {
|
124
|
+
expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Saturday)).toEqual(new Date(2022, 11, 31));
|
125
|
+
});
|
126
|
+
});
|
127
|
+
describe("getWeekEnd", () => {
|
128
|
+
it("should return the last day of the week - Sunday", () => {
|
129
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Sunday)).toEqual(new Date(2023, 0, 7));
|
130
|
+
});
|
131
|
+
it("should return the last day of the week - Monday", () => {
|
132
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Monday)).toEqual(new Date(2023, 0, 1));
|
133
|
+
});
|
134
|
+
it("should return the last day of the week - Tuesday", () => {
|
135
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Tuesday)).toEqual(new Date(2023, 0, 2));
|
136
|
+
});
|
137
|
+
it("should return the last day of the week - Wednesday", () => {
|
138
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Wednesday)).toEqual(new Date(2023, 0, 3));
|
139
|
+
});
|
140
|
+
it("should return the last day of the week - Thursday", () => {
|
141
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Thursday)).toEqual(new Date(2023, 0, 4));
|
142
|
+
});
|
143
|
+
it("should return the last day of the week - Friday", () => {
|
144
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Friday)).toEqual(new Date(2023, 0, 5));
|
145
|
+
});
|
146
|
+
it("should return the last day of the week - Saturday", () => {
|
147
|
+
expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Saturday)).toEqual(new Date(2023, 0, 6));
|
148
|
+
});
|
149
|
+
});
|
150
|
+
describe("getMonthStart", () => {
|
151
|
+
it("should return the first day of the month", () => {
|
152
|
+
expect(getMonthStart(new Date(2023, 0, 15))).toEqual(new Date(2023, 0, 1));
|
153
|
+
});
|
154
|
+
});
|
155
|
+
describe("getMonthEnd", () => {
|
156
|
+
it("should return the last day of the month", () => {
|
157
|
+
expect(getMonthEnd(new Date(2023, 1, 15))).toEqual(new Date(2023, 1, 28));
|
158
|
+
});
|
159
|
+
});
|
160
|
+
describe("dateMatches", () => {
|
161
|
+
it("should test null dates as params", () => {
|
162
|
+
expect(dateMatches(new Date(2023, 0, 1), null)).toBe(false);
|
163
|
+
expect(dateMatches(null, new Date(2023, 0, 1))).toBe(false);
|
164
|
+
});
|
165
|
+
it("should test dates match", () => {
|
166
|
+
expect(dateMatches(new Date(2023, 0, 1), new Date(2023, 0, 1))).toBe(true);
|
167
|
+
});
|
168
|
+
it("should test dates don't match", () => {
|
169
|
+
expect(dateMatches(new Date(2023, 0, 1), new Date(2023, 0, 2))).toBe(false);
|
170
|
+
});
|
171
|
+
});
|
172
|
+
describe("dateInRange", () => {
|
173
|
+
it("should test null dates as params", () => {
|
174
|
+
expect(dateInRange(new Date(2023, 0, 1), null, null)).toBe(true);
|
175
|
+
});
|
176
|
+
it("should test date is in range", () => {
|
177
|
+
expect(dateInRange(new Date(2023, 0, 1), new Date(2022, 0, 1), new Date(2024, 0, 1))).toBe(true);
|
178
|
+
});
|
179
|
+
it("should test date is in range - no min", () => {
|
180
|
+
expect(dateInRange(new Date(2023, 0, 1), null, new Date(2024, 0, 1))).toBe(true);
|
181
|
+
});
|
182
|
+
it("should test date is in range - no max", () => {
|
183
|
+
expect(dateInRange(new Date(2023, 0, 1), new Date(2022, 0, 1), null)).toBe(true);
|
184
|
+
});
|
185
|
+
it("should test date is out of range - less than min", () => {
|
186
|
+
expect(dateInRange(new Date(2023, 0, 1), new Date(2024, 0, 1), null)).toBe(false);
|
187
|
+
});
|
188
|
+
it("should test date is out of range - greater than max", () => {
|
189
|
+
expect(dateInRange(new Date(2023, 0, 1), new Date(2022, 0, 1), new Date(2022, 5, 1))).toBe(false);
|
190
|
+
});
|
191
|
+
});
|
192
|
+
describe("yearInRange", () => {
|
193
|
+
it("should test null dates as params", () => {
|
194
|
+
expect(yearInRange(null, null, null)).toBe(true);
|
195
|
+
});
|
196
|
+
it("should test year less than min", () => {
|
197
|
+
expect(yearInRange(2023, new Date(2024, 0, 1), null)).toBe(false);
|
198
|
+
});
|
199
|
+
it("should test year more than max", () => {
|
200
|
+
expect(yearInRange(2025, new Date(2022, 0, 1), new Date(2024, 0, 1))).toBe(false);
|
201
|
+
});
|
202
|
+
it("should test year is in range", () => {
|
203
|
+
expect(yearInRange(2023, new Date(2022, 0, 1), new Date(2024, 0, 1))).toBe(true);
|
204
|
+
});
|
205
|
+
});
|
206
|
+
});
|
207
|
+
//# sourceMappingURL=ic-date-picker-utils.spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-date-picker-utils.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-date-picker/test/basic/ic-date-picker-utils.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AAExC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;YACpD,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACxD,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;YACpD,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YAC1D,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC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IAAI,CAAC,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { IcWeekDays } from \"../../../../utils/types\";\nimport {\n dateMatches,\n dateInRange,\n getMonthStart,\n getMonthEnd,\n getWeekEnd,\n getWeekStart,\n yearInRange,\n createDate,\n convertToDoubleDigits,\n isDateOrEpoch,\n isDayFirstFormat,\n isMonthFirstFormat,\n} from \"../../../../utils/date-helpers\";\n\ndescribe(\"ic-date-picker-date-helpers\", () => {\n describe(\"isDayFirstFormat\", () => {\n it(\"should test 21/01/2023 is day first format\", () => {\n expect(isDayFirstFormat(\"21/01/2023\")).toBe(true);\n });\n it(\"should test 01/21/2023 is not day first format\", () => {\n expect(isDayFirstFormat(\"21/01/2023\")).toBe(true);\n });\n it(\"should test 07/07/2023 is day first format\", () => {\n expect(isDayFirstFormat(\"07/07/2023\")).toBe(true);\n });\n\n it(\"should test 2023/07/07 is not month first format\", () => {\n expect(isDayFirstFormat(\"2023/07/07\")).toBe(false);\n });\n it(\"should test 2023-07-07 is not month first format\", () => {\n expect(isDayFirstFormat(\"2023-07-07\")).toBe(false);\n });\n });\n\n describe(\"isMonthFirstFormat\", () => {\n it(\"should test 01/21/2023 is month first format\", () => {\n expect(isMonthFirstFormat(\"01/21/2023\")).toBe(true);\n });\n it(\"should test 21/01/2023 is not month first format\", () => {\n expect(isMonthFirstFormat(\"21/01/2023\")).toBe(false);\n });\n it(\"should test 07/07/2023 is month first format\", () => {\n expect(isMonthFirstFormat(\"07/07/2023\")).toBe(true);\n });\n\n it(\"should test 01-21-2023 is month first format\", () => {\n expect(isMonthFirstFormat(\"01-21-2023\")).toBe(true);\n });\n it(\"should test 21-01-2023 is not month first format\", () => {\n expect(isMonthFirstFormat(\"21-01-2023\")).toBe(false);\n });\n it(\"should test 07-07-2023 is month first format\", () => {\n expect(isMonthFirstFormat(\"07-07-2023\")).toBe(true);\n });\n\n it(\"should test 2023/07/07 is not month first format\", () => {\n expect(isMonthFirstFormat(\"2023/07/07\")).toBe(false);\n });\n it(\"should test 2023-07-07 is not month first format\", () => {\n expect(isMonthFirstFormat(\"2023-07-07\")).toBe(false);\n });\n });\n\n describe(\"convertToDoubleDigits\", () => {\n it(\"should test convertToDoubleDigits\", () => {\n expect(convertToDoubleDigits(\"1\")).toEqual(\"01\");\n expect(convertToDoubleDigits(\"2\")).toEqual(\"02\");\n expect(convertToDoubleDigits(\"3\")).toEqual(\"03\");\n expect(convertToDoubleDigits(\"4\")).toEqual(\"04\");\n expect(convertToDoubleDigits(\"5\")).toEqual(\"05\");\n expect(convertToDoubleDigits(\"6\")).toEqual(\"06\");\n expect(convertToDoubleDigits(\"7\")).toEqual(\"07\");\n expect(convertToDoubleDigits(\"8\")).toEqual(\"08\");\n expect(convertToDoubleDigits(\"9\")).toEqual(\"09\");\n expect(convertToDoubleDigits(\"10\")).toEqual(\"10\");\n expect(convertToDoubleDigits(\"100\")).toEqual(\"100\");\n });\n });\n\n describe(\"createDate\", () => {\n it(\"should test createDate with Zulu time\", () => {\n expect(\n createDate(new Date(\"28 November 2023\").toISOString(), \"DD/MM/YYYY\")\n ).toEqual(new Date(2023, 10, 28));\n });\n it(\"should test createDate with dashes\", () => {\n expect(createDate(\"01/07/2023\", \"DD/MM/YYYY\")).toEqual(\n new Date(2023, 6, 1)\n );\n });\n it(\"should test createDate without double-digit day and month\", () => {\n expect(createDate(\"1/7/2023\", \"DD/MM/YYYY\")).toEqual(\n new Date(2023, 6, 1)\n );\n });\n it(\"should test createDate with year first format\", () => {\n expect(createDate(\"2023/07/01\", \"YYYY/MM/DD\")).toEqual(\n new Date(2023, 6, 1)\n );\n });\n it(\"should test createDate with month first format - ambiguous date\", () => {\n expect(createDate(\"01/07/2023\", \"MM/DD/YYYY\")).toEqual(\n new Date(2023, 0, 7)\n );\n });\n it(\"should test createDate with month first format - unambiguous date\", () => {\n expect(createDate(\"01/13/2023\", \"MM/DD/YYYY\")).toEqual(\n new Date(2023, 0, 13)\n );\n });\n it(\"should test createDate with month first format - unambiguous date - month too high\", () => {\n expect(createDate(\"13/01/2023\", \"MM/DD/YYYY\")).toEqual(\n new Date(2023, 0, 13)\n );\n });\n it(\"should test createDate with date object\", () => {\n expect(createDate(new Date(2023, 0, 13), \"DD/MM/YYYY\")).toEqual(\n new Date(2023, 0, 13)\n );\n });\n it(\"should test createDate with epoch value\", () => {\n expect(createDate(\"500000000000\", \"DD/MM/YYYY\")).toBeNaN;\n });\n });\n\n describe(\"isDateOrEpoch\", () => {\n it(\"should test isDateOrEpoch with string\", () => {\n expect(isDateOrEpoch(\"01/01/1970\")).toBe(false);\n });\n it(\"should test isDateOrEpoch with date\", () => {\n expect(isDateOrEpoch(new Date(2023, 0, 1))).toBe(true);\n });\n it(\"should test isDateOrEpoch with epoch\", () => {\n expect(isDateOrEpoch(new Date(500000000000))).toBe(true);\n });\n });\n});\n\ndescribe(\"ic-date-picker-utils\", () => {\n describe(\"getWeekStart\", () => {\n it(\"should return the first day of the week - Sunday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Sunday)).toEqual(\n new Date(2023, 0, 1)\n );\n });\n it(\"should return the first day of the week - Monday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Monday)).toEqual(\n new Date(2022, 11, 26)\n );\n });\n it(\"should return the first day of the week - Tuesday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Tuesday)).toEqual(\n new Date(2022, 11, 27)\n );\n });\n it(\"should return the first day of the week - Wednesday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Wednesday)).toEqual(\n new Date(2022, 11, 28)\n );\n });\n it(\"should return the first day of the week - Thursday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Thursday)).toEqual(\n new Date(2022, 11, 29)\n );\n });\n it(\"should return the first day of the week - Friday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Friday)).toEqual(\n new Date(2022, 11, 30)\n );\n });\n it(\"should return the first day of the week - Saturday\", () => {\n expect(getWeekStart(new Date(2023, 0, 1), IcWeekDays.Saturday)).toEqual(\n new Date(2022, 11, 31)\n );\n });\n });\n\n describe(\"getWeekEnd\", () => {\n it(\"should return the last day of the week - Sunday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Sunday)).toEqual(\n new Date(2023, 0, 7)\n );\n });\n it(\"should return the last day of the week - Monday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Monday)).toEqual(\n new Date(2023, 0, 1)\n );\n });\n it(\"should return the last day of the week - Tuesday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Tuesday)).toEqual(\n new Date(2023, 0, 2)\n );\n });\n it(\"should return the last day of the week - Wednesday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Wednesday)).toEqual(\n new Date(2023, 0, 3)\n );\n });\n it(\"should return the last day of the week - Thursday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Thursday)).toEqual(\n new Date(2023, 0, 4)\n );\n });\n it(\"should return the last day of the week - Friday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Friday)).toEqual(\n new Date(2023, 0, 5)\n );\n });\n it(\"should return the last day of the week - Saturday\", () => {\n expect(getWeekEnd(new Date(2023, 0, 1), IcWeekDays.Saturday)).toEqual(\n new Date(2023, 0, 6)\n );\n });\n });\n\n describe(\"getMonthStart\", () => {\n it(\"should return the first day of the month\", () => {\n expect(getMonthStart(new Date(2023, 0, 15))).toEqual(\n new Date(2023, 0, 1)\n );\n });\n });\n\n describe(\"getMonthEnd\", () => {\n it(\"should return the last day of the month\", () => {\n expect(getMonthEnd(new Date(2023, 1, 15))).toEqual(new Date(2023, 1, 28));\n });\n });\n\n describe(\"dateMatches\", () => {\n it(\"should test null dates as params\", () => {\n expect(dateMatches(new Date(2023, 0, 1), null)).toBe(false);\n expect(dateMatches(null, new Date(2023, 0, 1))).toBe(false);\n });\n it(\"should test dates match\", () => {\n expect(dateMatches(new Date(2023, 0, 1), new Date(2023, 0, 1))).toBe(\n true\n );\n });\n it(\"should test dates don't match\", () => {\n expect(dateMatches(new Date(2023, 0, 1), new Date(2023, 0, 2))).toBe(\n false\n );\n });\n });\n\n describe(\"dateInRange\", () => {\n it(\"should test null dates as params\", () => {\n expect(dateInRange(new Date(2023, 0, 1), null, null)).toBe(true);\n });\n it(\"should test date is in range\", () => {\n expect(\n dateInRange(\n new Date(2023, 0, 1),\n new Date(2022, 0, 1),\n new Date(2024, 0, 1)\n )\n ).toBe(true);\n });\n it(\"should test date is in range - no min\", () => {\n expect(\n dateInRange(new Date(2023, 0, 1), null, new Date(2024, 0, 1))\n ).toBe(true);\n });\n it(\"should test date is in range - no max\", () => {\n expect(\n dateInRange(new Date(2023, 0, 1), new Date(2022, 0, 1), null)\n ).toBe(true);\n });\n it(\"should test date is out of range - less than min\", () => {\n expect(\n dateInRange(new Date(2023, 0, 1), new Date(2024, 0, 1), null)\n ).toBe(false);\n });\n it(\"should test date is out of range - greater than max\", () => {\n expect(\n dateInRange(\n new Date(2023, 0, 1),\n new Date(2022, 0, 1),\n new Date(2022, 5, 1)\n )\n ).toBe(false);\n });\n });\n\n describe(\"yearInRange\", () => {\n it(\"should test null dates as params\", () => {\n expect(yearInRange(null, null, null)).toBe(true);\n });\n it(\"should test year less than min\", () => {\n expect(yearInRange(2023, new Date(2024, 0, 1), null)).toBe(false);\n });\n it(\"should test year more than max\", () => {\n expect(\n yearInRange(2025, new Date(2022, 0, 1), new Date(2024, 0, 1))\n ).toBe(false);\n });\n it(\"should test year is in range\", () => {\n expect(\n yearInRange(2023, new Date(2022, 0, 1), new Date(2024, 0, 1))\n ).toBe(true);\n });\n });\n});\n"]}
|