@ukic/canary-web-components 2.0.0-canary.3 → 2.0.0-canary.5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -0
- package/dist/cjs/{OpenInNew-d5d30e77.js → OpenInNew-7bac24f7.js} +1 -1
- package/dist/cjs/OpenInNew-7bac24f7.js.map +1 -0
- package/dist/cjs/{check-icon-7225d79b.js → check-icon-dd563898.js} +1 -1
- package/dist/cjs/check-icon-dd563898.js.map +1 -0
- package/dist/cjs/{chevron-icon-3bf07531.js → chevron-icon-3dedd973.js} +1 -1
- package/dist/cjs/chevron-icon-3dedd973.js.map +1 -0
- package/dist/cjs/{close-icon-7f6ef8e4.js → close-icon-d62b369d.js} +1 -1
- package/dist/cjs/close-icon-d62b369d.js.map +1 -0
- package/dist/cjs/core.cjs.js +3 -3
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/helpers-86375e76.js +554 -0
- package/dist/cjs/helpers-86375e76.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +94 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-accordion.cjs.entry.js +119 -0
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +59 -59
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +117 -121
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +160 -0
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +172 -164
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +56 -54
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +647 -715
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +107 -107
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +61 -54
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +95 -98
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +68 -61
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +23 -23
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +18 -17
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +75 -74
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +240 -240
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +347 -267
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +16 -16
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +24 -23
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +55 -55
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +51 -51
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +78 -78
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +62 -59
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +152 -151
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +677 -657
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +63 -62
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +56 -59
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +12 -10
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +103 -107
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +79 -76
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +282 -261
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +155 -134
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +106 -103
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +97 -90
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-bar.cjs.entry.js +266 -251
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +1077 -1074
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +232 -261
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +160 -113
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +128 -122
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +475 -470
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +15 -15
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +400 -407
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +43 -42
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +32 -23
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +122 -120
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +200 -197
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +78 -71
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +252 -252
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +24 -25
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +31 -30
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +86 -86
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +51 -51
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +47 -34
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +143 -145
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +69 -0
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js +199 -195
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +119 -111
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/{esm/index-5e4f5b3b.js → cjs/index-4cf27b16.js} +646 -360
- package/dist/cjs/index-4cf27b16.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{popper-31badbf8.js → popper-16968c2e.js} +1 -1
- package/dist/cjs/popper-16968c2e.js.map +1 -0
- package/dist/cjs/types-17dba796.js +16 -0
- package/dist/cjs/types-17dba796.js.map +1 -0
- package/dist/collection/collection-manifest.json +73 -63
- package/dist/collection/components/ic-data-table/ic-data-table.js +523 -523
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +511 -511
- 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 +6 -5
- 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/test/basic/ic-data-table.spec.js +412 -412
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +532 -532
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/a11y/ic-pagination-bar.test.a11y.js +6 -5
- package/dist/collection/components/ic-pagination-bar/test/a11y/ic-pagination-bar.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +378 -378
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/collection/testspec.setup.js +35 -34
- package/dist/collection/testspec.setup.js.map +1 -1
- package/dist/collection/utils/helpers.js +12 -445
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/testa11y.helpers.js +2 -2
- package/dist/collection/utils/testa11y.helpers.js.map +1 -1
- package/dist/components/helpers.js +307 -370
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js +140 -0
- package/dist/components/ic-accordion-group.js.map +1 -0
- package/dist/components/ic-accordion.js +148 -0
- package/dist/components/ic-accordion.js.map +1 -0
- package/dist/components/ic-alert2.js +98 -98
- package/dist/components/ic-alert2.js.map +1 -1
- package/dist/components/ic-back-to-top.js +141 -145
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +192 -0
- package/dist/components/ic-badge.js.map +1 -0
- package/dist/components/ic-breadcrumb-group.js +200 -191
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +79 -76
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +344 -288
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +156 -156
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +99 -92
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +132 -129
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +100 -91
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +47 -47
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-entity.js +40 -38
- package/dist/components/ic-data-entity.js.map +1 -1
- package/dist/components/ic-data-row.js +99 -97
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.d.ts +2 -2
- package/dist/components/ic-data-table.js +350 -350
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-dialog.js +407 -323
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +29 -29
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +48 -47
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +83 -83
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +72 -72
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +109 -109
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +99 -95
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +191 -189
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +63 -59
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +28 -28
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +63 -61
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +51 -51
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +76 -79
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +212 -210
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +31 -30
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +146 -150
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +686 -664
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +122 -119
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +309 -288
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +196 -175
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +141 -138
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +152 -144
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar.d.ts +2 -2
- package/dist/components/ic-pagination-bar2.js +364 -348
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +67 -67
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +253 -252
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +282 -311
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +205 -153
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +164 -152
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +582 -576
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +31 -31
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +753 -734
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +454 -460
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +64 -62
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +56 -45
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +158 -157
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +224 -221
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +116 -106
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +271 -271
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +65 -66
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +49 -48
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +113 -113
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +293 -301
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +66 -66
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +63 -47
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +185 -187
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button.js +117 -0
- package/dist/components/ic-toggle-button.js.map +1 -0
- package/dist/components/ic-tooltip2.js +217 -336
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +265 -261
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +143 -135
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/components/types.js +6 -6
- package/dist/components/types.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-e565964f.entry.js → p-010053ab.entry.js} +2 -2
- package/dist/core/p-010053ab.entry.js.map +1 -0
- package/dist/core/p-043e4073.entry.js +2 -0
- package/dist/core/p-043e4073.entry.js.map +1 -0
- package/dist/core/p-0aa1fe4e.entry.js +2 -0
- package/dist/core/p-0aa1fe4e.entry.js.map +1 -0
- package/dist/core/{p-c2e091d7.js → p-0aa9ce8b.js} +1 -1
- package/dist/core/{p-3b185c32.js → p-170ddfc2.js} +1 -1
- package/dist/core/{p-7799016a.entry.js → p-1e9f689b.entry.js} +2 -2
- package/dist/core/p-1e9f689b.entry.js.map +1 -0
- package/dist/core/p-217db3af.entry.js +2 -0
- package/dist/core/p-217db3af.entry.js.map +1 -0
- package/dist/core/p-234edce6.entry.js +2 -0
- package/dist/core/p-234edce6.entry.js.map +1 -0
- package/dist/core/{p-4259972b.entry.js → p-24945ee5.entry.js} +2 -2
- package/dist/core/p-24945ee5.entry.js.map +1 -0
- package/dist/core/p-26ca8030.entry.js +2 -0
- package/dist/core/p-26ca8030.entry.js.map +1 -0
- package/dist/core/p-2addb040.entry.js +2 -0
- package/dist/core/p-2addb040.entry.js.map +1 -0
- package/dist/core/p-3294eba4.entry.js +2 -0
- package/dist/core/p-3294eba4.entry.js.map +1 -0
- package/dist/core/{p-6622567a.entry.js → p-356b8a4c.entry.js} +2 -2
- package/dist/core/p-356b8a4c.entry.js.map +1 -0
- package/dist/core/p-4119a26b.entry.js +2 -0
- package/dist/core/p-4119a26b.entry.js.map +1 -0
- package/dist/core/{p-cda2ecbb.entry.js → p-452be32a.entry.js} +2 -2
- package/dist/core/p-452be32a.entry.js.map +1 -0
- package/dist/core/{p-dcfc7f79.entry.js → p-5332a426.entry.js} +2 -2
- package/dist/core/p-5332a426.entry.js.map +1 -0
- package/dist/core/p-56645c00.entry.js +2 -0
- package/dist/core/p-56645c00.entry.js.map +1 -0
- package/dist/core/p-5f8c4c83.entry.js +2 -0
- package/dist/core/p-5f8c4c83.entry.js.map +1 -0
- package/dist/core/p-61ce24ae.entry.js +2 -0
- package/dist/core/p-61ce24ae.entry.js.map +1 -0
- package/dist/core/{p-932a1a61.entry.js → p-740a39bd.entry.js} +2 -2
- package/dist/core/p-740a39bd.entry.js.map +1 -0
- package/dist/core/p-7492d36e.entry.js +2 -0
- package/dist/core/p-7492d36e.entry.js.map +1 -0
- package/dist/core/p-79b39c8a.entry.js +2 -0
- package/dist/core/p-79b39c8a.entry.js.map +1 -0
- package/dist/core/p-7a0790e4.entry.js +2 -0
- package/dist/core/p-7a0790e4.entry.js.map +1 -0
- package/dist/core/p-7b17f3ce.entry.js +2 -0
- package/dist/core/p-7b17f3ce.entry.js.map +1 -0
- package/dist/core/p-7e0197a4.entry.js +2 -0
- package/dist/core/p-7e0197a4.entry.js.map +1 -0
- package/dist/core/p-8455d1bb.js +3 -0
- package/dist/core/p-8455d1bb.js.map +1 -0
- package/dist/core/p-8cde58bf.entry.js +2 -0
- package/dist/core/p-8cde58bf.entry.js.map +1 -0
- package/dist/core/p-8eaed5b7.entry.js +2 -0
- package/dist/core/p-8eaed5b7.entry.js.map +1 -0
- package/dist/core/{p-90608dc5.entry.js → p-8fa532e0.entry.js} +2 -2
- package/dist/core/p-8fa532e0.entry.js.map +1 -0
- package/dist/core/p-93828f0e.entry.js +2 -0
- package/dist/core/p-93828f0e.entry.js.map +1 -0
- package/dist/core/p-9777ebb1.entry.js +2 -0
- package/dist/core/p-9777ebb1.entry.js.map +1 -0
- package/dist/core/{p-2d1ba7d5.entry.js → p-99a9ce86.entry.js} +2 -2
- package/dist/core/p-99a9ce86.entry.js.map +1 -0
- package/dist/core/{p-fd8780e2.entry.js → p-9c6e48fb.entry.js} +2 -2
- package/dist/core/p-9c6e48fb.entry.js.map +1 -0
- package/dist/core/{p-151cef1f.entry.js → p-9fdd7d73.entry.js} +2 -2
- package/dist/core/p-9fdd7d73.entry.js.map +1 -0
- package/dist/core/{p-9c792bb9.entry.js → p-a048beab.entry.js} +2 -2
- package/dist/core/p-a048beab.entry.js.map +1 -0
- package/dist/core/p-a3ab9f4c.entry.js +2 -0
- package/dist/core/p-a3ab9f4c.entry.js.map +1 -0
- package/dist/core/p-a561980f.entry.js +2 -0
- package/dist/core/p-a561980f.entry.js.map +1 -0
- package/dist/core/p-a6a90c56.entry.js +2 -0
- package/dist/core/p-a6a90c56.entry.js.map +1 -0
- package/dist/core/p-a9a378f8.entry.js +2 -0
- package/dist/core/p-a9a378f8.entry.js.map +1 -0
- package/dist/core/{p-68a5aaff.js → p-aae38bee.js} +1 -1
- package/dist/core/p-aae38bee.js.map +1 -0
- package/dist/core/p-ae337896.entry.js +2 -0
- package/dist/core/p-ae337896.entry.js.map +1 -0
- package/dist/core/p-b2aa3d7c.entry.js +2 -0
- package/dist/core/p-b2aa3d7c.entry.js.map +1 -0
- package/dist/core/{p-8d8ba4d7.entry.js → p-b4591bfe.entry.js} +2 -2
- package/dist/core/p-b4591bfe.entry.js.map +1 -0
- package/dist/core/p-b7d5ced3.entry.js +2 -0
- package/dist/core/p-b7d5ced3.entry.js.map +1 -0
- package/dist/core/{p-517968cb.entry.js → p-baf81f30.entry.js} +2 -2
- package/dist/core/p-baf81f30.entry.js.map +1 -0
- package/dist/core/p-c2884fcd.entry.js +2 -0
- package/dist/core/p-c2884fcd.entry.js.map +1 -0
- package/dist/core/{p-5536d26c.entry.js → p-c2b5e7b1.entry.js} +2 -2
- package/dist/core/p-c2b5e7b1.entry.js.map +1 -0
- package/dist/core/p-cae71c32.entry.js +2 -0
- package/dist/core/p-cae71c32.entry.js.map +1 -0
- package/dist/core/p-cedabab7.entry.js +2 -0
- package/dist/core/p-cedabab7.entry.js.map +1 -0
- package/dist/core/p-da1f0a53.entry.js +2 -0
- package/dist/core/p-da1f0a53.entry.js.map +1 -0
- package/dist/core/{p-ed35b2d0.entry.js → p-dbee31af.entry.js} +2 -2
- package/dist/core/p-dbee31af.entry.js.map +1 -0
- package/dist/core/p-e0102744.js +2 -0
- package/dist/core/p-e0102744.js.map +1 -0
- package/dist/core/{p-f074ef5b.js → p-e081702e.js} +1 -1
- package/dist/core/p-e0d8d7a5.entry.js +2 -0
- package/dist/core/p-e0d8d7a5.entry.js.map +1 -0
- package/dist/core/{p-b4d2d905.entry.js → p-e189f1d0.entry.js} +2 -2
- package/dist/core/p-e189f1d0.entry.js.map +1 -0
- package/dist/core/p-e31125df.entry.js +2 -0
- package/dist/core/p-e31125df.entry.js.map +1 -0
- package/dist/core/{p-426ec638.js → p-ea1ea1b9.js} +1 -1
- package/dist/core/{p-b1568cf3.entry.js → p-f2318ddc.entry.js} +2 -2
- package/dist/core/p-f2318ddc.entry.js.map +1 -0
- package/dist/core/p-f4c11be0.entry.js +2 -0
- package/dist/core/p-f4c11be0.entry.js.map +1 -0
- package/dist/core/p-f4fb15f9.entry.js +2 -0
- package/dist/core/p-f4fb15f9.entry.js.map +1 -0
- package/dist/core/p-faaa06d7.entry.js +2 -0
- package/dist/core/p-faaa06d7.entry.js.map +1 -0
- package/dist/core/p-fc406db5.entry.js +2 -0
- package/dist/core/p-fc406db5.entry.js.map +1 -0
- package/dist/core/{p-613aa265.js → p-fd186591.js} +1 -1
- package/dist/core/p-fd186591.js.map +1 -0
- package/dist/core/{p-ba3f9d1b.entry.js → p-fddc7254.entry.js} +2 -2
- package/dist/core/p-fddc7254.entry.js.map +1 -0
- package/dist/core/p-fff91bd9.entry.js +2 -0
- package/dist/core/p-fff91bd9.entry.js.map +1 -0
- package/dist/esm/{OpenInNew-cdeed5ce.js → OpenInNew-52210a9d.js} +1 -1
- package/dist/esm/OpenInNew-52210a9d.js.map +1 -0
- package/dist/esm/{check-icon-4a9f8371.js → check-icon-f2346e76.js} +1 -1
- package/dist/esm/check-icon-f2346e76.js.map +1 -0
- package/dist/esm/{chevron-icon-589e3b46.js → chevron-icon-875b7af2.js} +1 -1
- package/dist/esm/chevron-icon-875b7af2.js.map +1 -0
- package/dist/esm/{close-icon-539ec8d1.js → close-icon-c9e09475.js} +1 -1
- package/dist/esm/close-icon-c9e09475.js.map +1 -0
- package/dist/esm/core.js +4 -4
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/helpers-229a5574.js +506 -0
- package/dist/esm/helpers-229a5574.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +90 -0
- package/dist/esm/ic-accordion-group.entry.js.map +1 -0
- package/dist/esm/ic-accordion.entry.js +115 -0
- package/dist/esm/ic-accordion.entry.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +59 -59
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +117 -121
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +156 -0
- package/dist/esm/ic-badge.entry.js.map +1 -0
- package/dist/esm/ic-breadcrumb-group.entry.js +172 -164
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +56 -54
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +647 -715
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +107 -107
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +61 -54
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +95 -98
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +68 -61
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +23 -23
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-entity.entry.js +18 -17
- package/dist/esm/ic-data-entity.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +75 -74
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +240 -240
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +347 -267
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +16 -16
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +24 -23
- package/dist/esm/ic-empty-state.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +55 -55
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +51 -51
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +78 -78
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +62 -59
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +152 -151
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +677 -657
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +63 -62
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +56 -59
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +12 -10
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +103 -107
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +79 -76
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +282 -261
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +155 -134
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +106 -103
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +97 -90
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-bar.entry.js +266 -251
- package/dist/esm/ic-pagination-bar.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +1077 -1074
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +232 -261
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +160 -113
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +128 -122
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +475 -470
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +15 -15
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +400 -407
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +43 -42
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +32 -23
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +122 -120
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +200 -197
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +78 -71
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +252 -252
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +24 -25
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +31 -30
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +86 -86
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +51 -51
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +47 -34
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +143 -145
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +65 -0
- package/dist/esm/ic-toggle-button.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +199 -195
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +119 -111
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/{cjs/index-990b968b.js → esm/index-93509377.js} +615 -390
- package/dist/esm/index-93509377.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{popper-0fbeff6d.js → popper-b8cc3f16.js} +1 -1
- package/dist/esm/popper-b8cc3f16.js.map +1 -0
- package/dist/esm/types-f605c21c.js +16 -0
- package/dist/esm/types-f605c21c.js.map +1 -0
- package/dist/node.d.ts +12 -0
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +92 -92
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +10 -10
- package/dist/types/components/ic-data-table/story-data.d.ts +69 -69
- package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +1 -1
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +99 -99
- package/dist/types/components.d.ts +128 -4642
- package/dist/types/interface.d.ts +0 -13
- package/dist/types/stencil-public-runtime.d.ts +29 -0
- package/dist/types/testspec.setup.d.ts +7 -7
- package/dist/types/utils/helpers.d.ts +8 -120
- package/hydrate/index.d.ts +2 -2
- package/hydrate/index.js +16632 -14199
- package/package.json +29 -19
- package/dist/cjs/OpenInNew-d5d30e77.js.map +0 -1
- package/dist/cjs/check-icon-7225d79b.js.map +0 -1
- package/dist/cjs/chevron-icon-3bf07531.js.map +0 -1
- package/dist/cjs/close-icon-7f6ef8e4.js.map +0 -1
- package/dist/cjs/helpers-d166f875.js +0 -616
- package/dist/cjs/helpers-d166f875.js.map +0 -1
- package/dist/cjs/index-990b968b.js.map +0 -1
- package/dist/cjs/popper-31badbf8.js.map +0 -1
- package/dist/cjs/types-7d67439f.js +0 -16
- package/dist/cjs/types-7d67439f.js.map +0 -1
- package/dist/collection/components/ic-alert/ic-alert.css +0 -616
- package/dist/collection/components/ic-alert/ic-alert.js +0 -244
- package/dist/collection/components/ic-alert/ic-alert.js.map +0 -1
- package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js +0 -11
- package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js +0 -16
- package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +0 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +0 -182
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +0 -3
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +0 -542
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +0 -171
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js +0 -28
- package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js +0 -68
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +0 -123
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +0 -100
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +0 -170
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +0 -118
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.css +0 -36
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +0 -234
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js +0 -21
- package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js +0 -35
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js +0 -41
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js +0 -181
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +0 -1
- package/dist/collection/components/ic-button/ic-button.css +0 -879
- package/dist/collection/components/ic-button/ic-button.js +0 -769
- package/dist/collection/components/ic-button/ic-button.js.map +0 -1
- package/dist/collection/components/ic-button/ic-button.types.js +0 -2
- package/dist/collection/components/ic-button/ic-button.types.js.map +0 -1
- package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js +0 -11
- package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js +0 -198
- package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +0 -1
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +0 -271
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +0 -1
- package/dist/collection/components/ic-card/ic-card.css +0 -620
- package/dist/collection/components/ic-card/ic-card.js +0 -402
- package/dist/collection/components/ic-card/ic-card.js.map +0 -1
- package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js +0 -21
- package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js +0 -23
- package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +0 -1
- package/dist/collection/components/ic-card/test/basic/ic-card.spec.js +0 -152
- package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +0 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +0 -675
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +0 -390
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +0 -482
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +0 -298
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js +0 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js +0 -16
- package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js +0 -201
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +0 -203
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +0 -1
- package/dist/collection/components/ic-chip/ic-chip.css +0 -597
- package/dist/collection/components/ic-chip/ic-chip.js +0 -253
- package/dist/collection/components/ic-chip/ic-chip.js.map +0 -1
- package/dist/collection/components/ic-chip/ic-chip.types.js +0 -2
- package/dist/collection/components/ic-chip/ic-chip.types.js.map +0 -1
- package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js +0 -11
- package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +0 -110
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +0 -504
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +0 -142
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js +0 -2
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js +0 -11
- package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js +0 -140
- package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +0 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +0 -474
- package/dist/collection/components/ic-data-entity/ic-data-entity.js +0 -70
- package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +0 -1
- package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js +0 -11
- package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js +0 -161
- package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +0 -1
- package/dist/collection/components/ic-data-row/ic-data-row.css +0 -525
- package/dist/collection/components/ic-data-row/ic-data-row.js +0 -157
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +0 -1
- package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js +0 -18
- package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +0 -74
- package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +0 -1
- package/dist/collection/components/ic-dialog/ic-dialog.css +0 -592
- package/dist/collection/components/ic-dialog/ic-dialog.js +0 -649
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +0 -1
- package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js +0 -28
- package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js +0 -207
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +0 -1
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +0 -520
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +0 -1
- package/dist/collection/components/ic-divider/ic-divider.css +0 -11
- package/dist/collection/components/ic-divider/ic-divider.js +0 -44
- package/dist/collection/components/ic-divider/ic-divider.js.map +0 -1
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +0 -24
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +0 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.css +0 -49
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +0 -160
- package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +0 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.types.js +0 -2
- package/dist/collection/components/ic-empty-state/ic-empty-state.types.js.map +0 -1
- package/dist/collection/components/ic-empty-state/test/a11y/ic-empty-state.test.a11y.js +0 -38
- package/dist/collection/components/ic-empty-state/test/a11y/ic-empty-state.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js +0 -86
- package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js.map +0 -1
- package/dist/collection/components/ic-footer/ic-footer.css +0 -543
- package/dist/collection/components/ic-footer/ic-footer.js +0 -257
- package/dist/collection/components/ic-footer/ic-footer.js.map +0 -1
- package/dist/collection/components/ic-footer/ic-footer.types.js +0 -2
- package/dist/collection/components/ic-footer/ic-footer.types.js.map +0 -1
- package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js +0 -21
- package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js +0 -50
- package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +0 -1
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +0 -140
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +0 -612
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +0 -201
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +0 -1
- package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js +0 -21
- package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js +0 -62
- package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +0 -522
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +0 -114
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js +0 -21
- package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +0 -98
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +0 -1
- package/dist/collection/components/ic-hero/ic-hero.css +0 -726
- package/dist/collection/components/ic-hero/ic-hero.js +0 -277
- package/dist/collection/components/ic-hero/ic-hero.js.map +0 -1
- package/dist/collection/components/ic-hero/ic-hero.types.js +0 -2
- package/dist/collection/components/ic-hero/ic-hero.types.js.map +0 -1
- package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js +0 -11
- package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +0 -76
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/assets/left-arrow.svg +0 -3
- package/dist/collection/components/ic-horizontal-scroll/assets/right-arrow.svg +0 -3
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +0 -535
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +0 -234
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js +0 -34
- package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +0 -180
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +0 -1
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +0 -166
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +0 -209
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +0 -1
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +0 -117
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-container/ic-input-container.css +0 -4
- package/dist/collection/components/ic-input-container/ic-input-container.js +0 -66
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +0 -1
- package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js +0 -38
- package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-label/ic-input-label.css +0 -35
- package/dist/collection/components/ic-input-label/ic-input-label.js +0 -194
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +0 -1
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +0 -98
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +0 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +0 -34
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +0 -154
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +0 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +0 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +0 -1
- package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +0 -89
- package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +0 -1
- package/dist/collection/components/ic-link/ic-link.css +0 -558
- package/dist/collection/components/ic-link/ic-link.js +0 -267
- package/dist/collection/components/ic-link/ic-link.js.map +0 -1
- package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js +0 -11
- package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +0 -203
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +0 -663
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +0 -426
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js +0 -2
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js +0 -11
- package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js +0 -34
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js +0 -141
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +0 -1
- package/dist/collection/components/ic-menu/ic-menu.css +0 -646
- package/dist/collection/components/ic-menu/ic-menu.js +0 -1209
- package/dist/collection/components/ic-menu/ic-menu.js.map +0 -1
- package/dist/collection/components/ic-menu/ic-menu.types.js +0 -2
- package/dist/collection/components/ic-menu/ic-menu.types.js.map +0 -1
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +0 -668
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +0 -465
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +0 -45
- package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +0 -1
- package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js +0 -94
- package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +0 -628
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +0 -396
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +0 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js +0 -2
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js.map +0 -1
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +0 -108
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +0 -457
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +0 -273
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +0 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js +0 -2
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js.map +0 -1
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +0 -84
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +0 -647
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +0 -380
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js +0 -18
- package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +0 -309
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +0 -1028
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +0 -446
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js +0 -18
- package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +0 -118
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +0 -92
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +0 -202
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js +0 -29
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js +0 -176
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-page-header/ic-page-header.css +0 -582
- package/dist/collection/components/ic-page-header/ic-page-header.js +0 -273
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +0 -1
- package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js +0 -13
- package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js +0 -177
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +0 -1
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +0 -284
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.css +0 -486
- package/dist/collection/components/ic-pagination/ic-pagination.js +0 -502
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +0 -1
- package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js +0 -11
- package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js +0 -128
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +0 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +0 -335
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +0 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +0 -581
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +0 -231
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +0 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.types.js +0 -2
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.types.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -548
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +0 -488
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js +0 -13
- package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js +0 -30
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js +0 -395
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +0 -486
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +0 -366
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +0 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.types.js +0 -2
- package/dist/collection/components/ic-radio-group/ic-radio-group.types.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js +0 -16
- package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +0 -343
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +0 -303
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +0 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +0 -654
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +0 -388
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +0 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +0 -560
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +0 -1386
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +0 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js +0 -2
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js +0 -11
- package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +0 -1118
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +0 -584
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +0 -1
- package/dist/collection/components/ic-section-container/ic-section-container.css +0 -514
- package/dist/collection/components/ic-section-container/ic-section-container.js +0 -75
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +0 -1
- package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js +0 -69
- package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +0 -1
- package/dist/collection/components/ic-select/assets/Check.svg +0 -3
- package/dist/collection/components/ic-select/assets/Clear.svg +0 -3
- package/dist/collection/components/ic-select/assets/Expand.svg +0 -3
- package/dist/collection/components/ic-select/ic-select.css +0 -670
- package/dist/collection/components/ic-select/ic-select.js +0 -1348
- package/dist/collection/components/ic-select/ic-select.js.map +0 -1
- package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js +0 -28
- package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js +0 -1798
- package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +0 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +0 -1344
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +0 -635
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +0 -638
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js +0 -2
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js +0 -14
- package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js +0 -411
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js +0 -432
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +0 -470
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +0 -503
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +0 -113
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +0 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js +0 -2
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js.map +0 -1
- package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js +0 -11
- package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +0 -89
- package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +0 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +0 -504
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +0 -140
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +0 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js +0 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +0 -1
- package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js +0 -11
- package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +0 -43
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +0 -1
- package/dist/collection/components/ic-step/ic-step.css +0 -278
- package/dist/collection/components/ic-step/ic-step.js +0 -398
- package/dist/collection/components/ic-step/ic-step.js.map +0 -1
- package/dist/collection/components/ic-step/ic-step.types.js +0 -2
- package/dist/collection/components/ic-step/ic-step.types.js.map +0 -1
- package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +0 -176
- package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper.css +0 -28
- package/dist/collection/components/ic-stepper/ic-stepper.js +0 -319
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper.types.js +0 -2
- package/dist/collection/components/ic-stepper/ic-stepper.types.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js +0 -36
- package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js +0 -74
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js +0 -49
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +0 -706
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +0 -1
- package/dist/collection/components/ic-switch/ic-switch.css +0 -656
- package/dist/collection/components/ic-switch/ic-switch.js +0 -331
- package/dist/collection/components/ic-switch/ic-switch.js.map +0 -1
- package/dist/collection/components/ic-switch/ic-switch.types.js +0 -2
- package/dist/collection/components/ic-switch/ic-switch.types.js.map +0 -1
- package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js +0 -11
- package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +0 -104
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +0 -1
- package/dist/collection/components/ic-tab/ic-tab.css +0 -521
- package/dist/collection/components/ic-tab/ic-tab.js +0 -366
- package/dist/collection/components/ic-tab/ic-tab.js.map +0 -1
- package/dist/collection/components/ic-tab/ic-tab.types.js +0 -2
- package/dist/collection/components/ic-tab/ic-tab.types.js.map +0 -1
- package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js +0 -32
- package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +0 -1
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +0 -159
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +0 -456
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +0 -1
- package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js +0 -19
- package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js +0 -317
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +0 -1
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +0 -390
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +0 -25
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +0 -125
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +0 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +0 -7
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +0 -198
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +0 -1
- package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +0 -65
- package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +0 -558
- package/dist/collection/components/ic-text-field/ic-text-field.js +0 -1120
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.types.js +0 -2
- package/dist/collection/components/ic-text-field/ic-text-field.types.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js +0 -33
- package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js +0 -98
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +0 -236
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +0 -310
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +0 -1
- package/dist/collection/components/ic-theme/ic-theme.js +0 -107
- package/dist/collection/components/ic-theme/ic-theme.js.map +0 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +0 -72
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +0 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +0 -77
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +0 -1
- package/dist/collection/components/ic-toast/ic-toast.css +0 -602
- package/dist/collection/components/ic-toast/ic-toast.js +0 -390
- package/dist/collection/components/ic-toast/ic-toast.js.map +0 -1
- package/dist/collection/components/ic-toast/ic-toast.types.js +0 -2
- package/dist/collection/components/ic-toast/ic-toast.types.js.map +0 -1
- package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js +0 -16
- package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js +0 -82
- package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +0 -1
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +0 -278
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +0 -1
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +0 -83
- package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +0 -1
- package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +0 -62
- package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +0 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +0 -572
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +0 -472
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +0 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js +0 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js +0 -15
- package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js +0 -117
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js +0 -287
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +0 -737
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +0 -440
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js +0 -30
- package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js +0 -61
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js +0 -242
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +0 -299
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-typography/ic-typography.css +0 -627
- package/dist/collection/components/ic-typography/ic-typography.js +0 -272
- package/dist/collection/components/ic-typography/ic-typography.js.map +0 -1
- package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js +0 -11
- package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +0 -39
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +0 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js +0 -324
- package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +0 -1
- package/dist/collection/utils/constants.js +0 -81
- package/dist/collection/utils/constants.js.map +0 -1
- package/dist/collection/utils/types.js +0 -13
- package/dist/collection/utils/types.js.map +0 -1
- package/dist/components/ic-alert.d.ts +0 -11
- package/dist/components/ic-back-to-top.d.ts +0 -11
- package/dist/components/ic-breadcrumb-group.d.ts +0 -11
- package/dist/components/ic-breadcrumb.d.ts +0 -11
- package/dist/components/ic-button.d.ts +0 -11
- package/dist/components/ic-card.d.ts +0 -11
- package/dist/components/ic-checkbox-group.d.ts +0 -11
- package/dist/components/ic-checkbox.d.ts +0 -11
- package/dist/components/ic-chip.d.ts +0 -11
- package/dist/components/ic-classification-banner.d.ts +0 -11
- package/dist/components/ic-data-entity.d.ts +0 -11
- package/dist/components/ic-data-row.d.ts +0 -11
- package/dist/components/ic-dialog.d.ts +0 -11
- package/dist/components/ic-divider.d.ts +0 -11
- package/dist/components/ic-empty-state.d.ts +0 -11
- package/dist/components/ic-footer-link-group.d.ts +0 -11
- package/dist/components/ic-footer-link.d.ts +0 -11
- package/dist/components/ic-footer.d.ts +0 -11
- package/dist/components/ic-hero.d.ts +0 -11
- package/dist/components/ic-horizontal-scroll.d.ts +0 -11
- package/dist/components/ic-input-component-container.d.ts +0 -11
- package/dist/components/ic-input-container.d.ts +0 -11
- package/dist/components/ic-input-label.d.ts +0 -11
- package/dist/components/ic-input-validation.d.ts +0 -11
- package/dist/components/ic-link.d.ts +0 -11
- package/dist/components/ic-loading-indicator.d.ts +0 -11
- package/dist/components/ic-menu-group.d.ts +0 -11
- package/dist/components/ic-menu-item.d.ts +0 -11
- package/dist/components/ic-menu.d.ts +0 -11
- package/dist/components/ic-navigation-button.d.ts +0 -11
- package/dist/components/ic-navigation-group.d.ts +0 -11
- package/dist/components/ic-navigation-item.d.ts +0 -11
- package/dist/components/ic-navigation-menu.d.ts +0 -11
- package/dist/components/ic-page-header.d.ts +0 -11
- package/dist/components/ic-pagination-item.d.ts +0 -11
- package/dist/components/ic-pagination.d.ts +0 -11
- package/dist/components/ic-popover-menu.d.ts +0 -11
- package/dist/components/ic-radio-group.d.ts +0 -11
- package/dist/components/ic-radio-option.d.ts +0 -11
- package/dist/components/ic-search-bar.d.ts +0 -11
- package/dist/components/ic-section-container.d.ts +0 -11
- package/dist/components/ic-select.d.ts +0 -11
- package/dist/components/ic-side-navigation.d.ts +0 -11
- package/dist/components/ic-skeleton.d.ts +0 -11
- package/dist/components/ic-status-tag.d.ts +0 -11
- package/dist/components/ic-step.d.ts +0 -11
- package/dist/components/ic-stepper.d.ts +0 -11
- package/dist/components/ic-switch.d.ts +0 -11
- package/dist/components/ic-tab-context.d.ts +0 -11
- package/dist/components/ic-tab-group.d.ts +0 -11
- package/dist/components/ic-tab-panel.d.ts +0 -11
- package/dist/components/ic-tab.d.ts +0 -11
- package/dist/components/ic-text-field.d.ts +0 -11
- package/dist/components/ic-theme.d.ts +0 -11
- package/dist/components/ic-toast-region.d.ts +0 -11
- package/dist/components/ic-toast.d.ts +0 -11
- package/dist/components/ic-tooltip.d.ts +0 -11
- package/dist/components/ic-top-navigation.d.ts +0 -11
- package/dist/components/ic-typography.d.ts +0 -11
- package/dist/core/p-00f7f8e8.entry.js +0 -2
- package/dist/core/p-00f7f8e8.entry.js.map +0 -1
- package/dist/core/p-03935e89.js +0 -3
- package/dist/core/p-03935e89.js.map +0 -1
- package/dist/core/p-061283d4.entry.js +0 -2
- package/dist/core/p-061283d4.entry.js.map +0 -1
- package/dist/core/p-0729b492.entry.js +0 -2
- package/dist/core/p-0729b492.entry.js.map +0 -1
- package/dist/core/p-0929b7c4.entry.js +0 -2
- package/dist/core/p-0929b7c4.entry.js.map +0 -1
- package/dist/core/p-0eba1ec4.entry.js +0 -2
- package/dist/core/p-0eba1ec4.entry.js.map +0 -1
- package/dist/core/p-12d99423.entry.js +0 -2
- package/dist/core/p-12d99423.entry.js.map +0 -1
- package/dist/core/p-151cef1f.entry.js.map +0 -1
- package/dist/core/p-241baaac.entry.js +0 -2
- package/dist/core/p-241baaac.entry.js.map +0 -1
- package/dist/core/p-2d1ba7d5.entry.js.map +0 -1
- package/dist/core/p-2f737489.entry.js +0 -2
- package/dist/core/p-2f737489.entry.js.map +0 -1
- package/dist/core/p-385ae861.entry.js +0 -2
- package/dist/core/p-385ae861.entry.js.map +0 -1
- package/dist/core/p-3c50e682.entry.js +0 -2
- package/dist/core/p-3c50e682.entry.js.map +0 -1
- package/dist/core/p-3c545222.entry.js +0 -2
- package/dist/core/p-3c545222.entry.js.map +0 -1
- package/dist/core/p-3e3afba6.entry.js +0 -2
- package/dist/core/p-3e3afba6.entry.js.map +0 -1
- package/dist/core/p-4259972b.entry.js.map +0 -1
- package/dist/core/p-4ec6d80b.entry.js +0 -2
- package/dist/core/p-4ec6d80b.entry.js.map +0 -1
- package/dist/core/p-517968cb.entry.js.map +0 -1
- package/dist/core/p-55127131.entry.js +0 -2
- package/dist/core/p-55127131.entry.js.map +0 -1
- package/dist/core/p-5536d26c.entry.js.map +0 -1
- package/dist/core/p-5b39831f.entry.js +0 -2
- package/dist/core/p-5b39831f.entry.js.map +0 -1
- package/dist/core/p-613aa265.js.map +0 -1
- package/dist/core/p-649442b9.entry.js +0 -2
- package/dist/core/p-649442b9.entry.js.map +0 -1
- package/dist/core/p-65a1ff78.entry.js +0 -2
- package/dist/core/p-65a1ff78.entry.js.map +0 -1
- package/dist/core/p-6622567a.entry.js.map +0 -1
- package/dist/core/p-689a5bb3.entry.js +0 -2
- package/dist/core/p-689a5bb3.entry.js.map +0 -1
- package/dist/core/p-68a5aaff.js.map +0 -1
- package/dist/core/p-6da62e08.entry.js +0 -2
- package/dist/core/p-6da62e08.entry.js.map +0 -1
- package/dist/core/p-72815d65.entry.js +0 -2
- package/dist/core/p-72815d65.entry.js.map +0 -1
- package/dist/core/p-7799016a.entry.js.map +0 -1
- package/dist/core/p-786020b0.entry.js +0 -2
- package/dist/core/p-786020b0.entry.js.map +0 -1
- package/dist/core/p-892ddab1.entry.js +0 -2
- package/dist/core/p-892ddab1.entry.js.map +0 -1
- package/dist/core/p-8a4c5eb8.entry.js +0 -2
- package/dist/core/p-8a4c5eb8.entry.js.map +0 -1
- package/dist/core/p-8d8ba4d7.entry.js.map +0 -1
- package/dist/core/p-90608dc5.entry.js.map +0 -1
- package/dist/core/p-932a1a61.entry.js.map +0 -1
- package/dist/core/p-94f255ff.entry.js +0 -2
- package/dist/core/p-94f255ff.entry.js.map +0 -1
- package/dist/core/p-9c792bb9.entry.js.map +0 -1
- package/dist/core/p-a10968a4.entry.js +0 -2
- package/dist/core/p-a10968a4.entry.js.map +0 -1
- package/dist/core/p-a471cf70.entry.js +0 -2
- package/dist/core/p-a471cf70.entry.js.map +0 -1
- package/dist/core/p-a7c7d85a.entry.js +0 -2
- package/dist/core/p-a7c7d85a.entry.js.map +0 -1
- package/dist/core/p-b1568cf3.entry.js.map +0 -1
- package/dist/core/p-b4d2d905.entry.js.map +0 -1
- package/dist/core/p-ba27b1e2.js +0 -2
- package/dist/core/p-ba27b1e2.js.map +0 -1
- package/dist/core/p-ba3f9d1b.entry.js.map +0 -1
- package/dist/core/p-c2281c7d.entry.js +0 -2
- package/dist/core/p-c2281c7d.entry.js.map +0 -1
- package/dist/core/p-c95e4edb.entry.js +0 -2
- package/dist/core/p-c95e4edb.entry.js.map +0 -1
- package/dist/core/p-cda2ecbb.entry.js.map +0 -1
- package/dist/core/p-ced76d36.entry.js +0 -2
- package/dist/core/p-ced76d36.entry.js.map +0 -1
- package/dist/core/p-dcfc7f79.entry.js.map +0 -1
- package/dist/core/p-de37ac0e.entry.js +0 -2
- package/dist/core/p-de37ac0e.entry.js.map +0 -1
- package/dist/core/p-e565964f.entry.js.map +0 -1
- package/dist/core/p-e6028d7a.entry.js +0 -2
- package/dist/core/p-e6028d7a.entry.js.map +0 -1
- package/dist/core/p-ebd83ea6.entry.js +0 -2
- package/dist/core/p-ebd83ea6.entry.js.map +0 -1
- package/dist/core/p-ed35b2d0.entry.js.map +0 -1
- package/dist/core/p-f8d7bda8.entry.js +0 -2
- package/dist/core/p-f8d7bda8.entry.js.map +0 -1
- package/dist/core/p-fd8780e2.entry.js.map +0 -1
- package/dist/esm/OpenInNew-cdeed5ce.js.map +0 -1
- package/dist/esm/check-icon-4a9f8371.js.map +0 -1
- package/dist/esm/chevron-icon-589e3b46.js.map +0 -1
- package/dist/esm/close-icon-539ec8d1.js.map +0 -1
- package/dist/esm/helpers-10f9f399.js +0 -569
- package/dist/esm/helpers-10f9f399.js.map +0 -1
- package/dist/esm/index-5e4f5b3b.js.map +0 -1
- package/dist/esm/popper-0fbeff6d.js.map +0 -1
- package/dist/esm/types-b2398b37.js +0 -16
- package/dist/esm/types-b2398b37.js.map +0 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +0 -48
- package/dist/types/components/ic-alert/test/a11y/ic-alert.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +0 -25
- package/dist/types/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +0 -30
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +0 -40
- package/dist/types/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.d.ts +0 -2
- package/dist/types/components/ic-button/ic-button.d.ts +0 -140
- package/dist/types/components/ic-button/ic-button.types.d.ts +0 -3
- package/dist/types/components/ic-button/test/a11y/ic-button.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-card/ic-card.d.ts +0 -83
- package/dist/types/components/ic-card/test/a11y/ic-card.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +0 -72
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +0 -54
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +0 -8
- package/dist/types/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-chip/ic-chip.d.ts +0 -50
- package/dist/types/components/ic-chip/ic-chip.types.d.ts +0 -1
- package/dist/types/components/ic-chip/test/a11y/ic-chip.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +0 -24
- package/dist/types/components/ic-classification-banner/ic-classification-banner.types.d.ts +0 -1
- package/dist/types/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +0 -12
- package/dist/types/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +0 -37
- package/dist/types/components/ic-data-row/test/a11y/ic-data-row.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +0 -123
- package/dist/types/components/ic-dialog/test/a11y/ic-dialog.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-divider/ic-divider.d.ts +0 -6
- package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +0 -35
- package/dist/types/components/ic-empty-state/ic-empty-state.types.d.ts +0 -1
- package/dist/types/components/ic-empty-state/test/a11y/ic-empty-state.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-footer/ic-footer.d.ts +0 -52
- package/dist/types/components/ic-footer/ic-footer.types.d.ts +0 -1
- package/dist/types/components/ic-footer/test/a11y/ic-footer.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +0 -41
- package/dist/types/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +0 -19
- package/dist/types/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-hero/ic-hero.d.ts +0 -57
- package/dist/types/components/ic-hero/ic-hero.types.d.ts +0 -1
- package/dist/types/components/ic-hero/test/a11y/ic-hero.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +0 -40
- package/dist/types/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +0 -40
- package/dist/types/components/ic-input-container/ic-input-container.d.ts +0 -11
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +0 -36
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +0 -30
- package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +0 -1
- package/dist/types/components/ic-link/ic-link.d.ts +0 -50
- package/dist/types/components/ic-link/test/a11y/ic-link.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +0 -80
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +0 -7
- package/dist/types/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-menu/ic-menu.d.ts +0 -175
- package/dist/types/components/ic-menu/ic-menu.types.d.ts +0 -12
- package/dist/types/components/ic-menu-group/ic-menu-group.d.ts +0 -8
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +0 -74
- package/dist/types/components/ic-menu-item/ic-menu-item.types.d.ts +0 -1
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +0 -54
- package/dist/types/components/ic-navigation-button/ic-navigation-button.types.d.ts +0 -1
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +0 -63
- package/dist/types/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +0 -85
- package/dist/types/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +0 -36
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +0 -57
- package/dist/types/components/ic-page-header/test/a11y/ic-page-header.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +0 -82
- package/dist/types/components/ic-pagination/test/a11y/ic-pagination.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +0 -47
- package/dist/types/components/ic-pagination-item/ic-pagination-item.types.d.ts +0 -1
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +0 -62
- package/dist/types/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +0 -60
- package/dist/types/components/ic-radio-group/ic-radio-group.types.d.ts +0 -7
- package/dist/types/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +0 -70
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +0 -251
- package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +0 -5
- package/dist/types/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-section-container/ic-section-container.d.ts +0 -12
- package/dist/types/components/ic-select/ic-select.d.ts +0 -240
- package/dist/types/components/ic-select/test/a11y/ic-select.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +0 -101
- package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +0 -9
- package/dist/types/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.d.ts +0 -6
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +0 -18
- package/dist/types/components/ic-skeleton/ic-skeleton.types.d.ts +0 -1
- package/dist/types/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +0 -25
- package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +0 -2
- package/dist/types/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-step/ic-step.d.ts +0 -54
- package/dist/types/components/ic-step/ic-step.types.d.ts +0 -3
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +0 -43
- package/dist/types/components/ic-stepper/ic-stepper.types.d.ts +0 -1
- package/dist/types/components/ic-stepper/test/a11y/ic-stepper.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-stepper/test/basic/ic-stepper-test-examples.d.ts +0 -4
- package/dist/types/components/ic-switch/ic-switch.d.ts +0 -75
- package/dist/types/components/ic-switch/ic-switch.types.d.ts +0 -4
- package/dist/types/components/ic-switch/test/a11y/ic-switch.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-tab/ic-tab.d.ts +0 -59
- package/dist/types/components/ic-tab/ic-tab.types.d.ts +0 -8
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +0 -64
- package/dist/types/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +0 -23
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +0 -37
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +0 -217
- package/dist/types/components/ic-text-field/ic-text-field.types.d.ts +0 -3
- package/dist/types/components/ic-text-field/test/a11y/ic-text-field.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-theme/ic-theme.d.ts +0 -18
- package/dist/types/components/ic-toast/ic-toast.d.ts +0 -66
- package/dist/types/components/ic-toast/ic-toast.types.d.ts +0 -1
- package/dist/types/components/ic-toast/test/a11y/ic-toast.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +0 -12
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +0 -60
- package/dist/types/components/ic-tooltip/ic-tooltip.types.d.ts +0 -1
- package/dist/types/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +0 -84
- package/dist/types/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.d.ts +0 -1
- package/dist/types/components/ic-typography/ic-typography.d.ts +0 -57
- package/dist/types/components/ic-typography/test/a11y/ic-typography.test.a11y.d.ts +0 -1
- package/dist/types/utils/constants.d.ts +0 -38
- package/dist/types/utils/types.d.ts +0 -74
- /package/dist/core/{p-3b185c32.js.map → p-0aa9ce8b.js.map} +0 -0
- /package/dist/core/{p-426ec638.js.map → p-170ddfc2.js.map} +0 -0
- /package/dist/core/{p-c2e091d7.js.map → p-e081702e.js.map} +0 -0
- /package/dist/core/{p-f074ef5b.js.map → p-ea1ea1b9.js.map} +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
2
|
-
import {
|
3
|
-
import { I as IcThemeForegroundEnum, a as IcInformationStatus } from './types-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-93509377.js';
|
2
|
+
import { j as removeDisabledFalse, a as onComponentRequiredPropUndefined, E as getLabelFromValue, B as getFilteredMenuOptions, m as removeFormResetListener, w as inheritAttributes, l as addFormResetListener, n as renderHiddenInput, q as getInputDescribedByText, s as hasValidationStatus, L as isMobileOrTablet, x as IC_INHERITED_ARIA, M as debounceEvent, i as isSlotUsed, F as isEmptyString } from './helpers-229a5574.js';
|
3
|
+
import { I as IcThemeForegroundEnum, a as IcInformationStatus } from './types-f605c21c.js';
|
4
4
|
|
5
5
|
const paginationNextPrevious = `<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
6
6
|
<path d="M2.08748 0L0.912476 1.175L4.72914 5L0.912476 8.825L2.08748 10L7.08748 5L2.08748 0Z" fill="currentColor"/>
|
@@ -14,252 +14,253 @@ const paginationFirstLast = `<svg width="12" height="10" viewBox="0 0 12 10" fil
|
|
14
14
|
const icPaginationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{box-sizing:border-box;width:100%;display:flex;justify-content:center}nav{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}ic-button{cursor:pointer}ic-button.next-previous{--icon-width:var(--ic-space-xs);--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs));padding:0 var(--ic-space-xxs) 0 var(--ic-space-xxxs)}ic-button.first-last{--icon-width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}.disabled{color:var(--ic-architectural-200);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hide-current-page{display:none}";
|
15
15
|
|
16
16
|
const Pagination = class {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
87
|
-
watchNumberPagesHandler() {
|
88
|
-
this.watchPageChangeHandler();
|
89
|
-
}
|
90
|
-
watchPageChangeHandler() {
|
91
|
-
if (this.type === "simple") {
|
92
|
-
return;
|
17
|
+
constructor(hostRef) {
|
18
|
+
registerInstance(this, hostRef);
|
19
|
+
this.icPageChange = createEvent(this, "icPageChange", 7);
|
20
|
+
this.handleClickFirst = () => {
|
21
|
+
this.currentPage = 1;
|
22
|
+
this.icPageChange.emit({ value: this.currentPage });
|
23
|
+
};
|
24
|
+
this.handleClickPrevious = () => {
|
25
|
+
this.currentPage--;
|
26
|
+
this.icPageChange.emit({ value: this.currentPage });
|
27
|
+
};
|
28
|
+
this.handleClickNext = () => {
|
29
|
+
this.currentPage++;
|
30
|
+
this.icPageChange.emit({ value: this.currentPage });
|
31
|
+
};
|
32
|
+
this.handleClickLast = () => {
|
33
|
+
this.currentPage = this.pages;
|
34
|
+
this.icPageChange.emit({ value: this.currentPage });
|
35
|
+
};
|
36
|
+
// button rendering abstracted from component render methods for clarity
|
37
|
+
this.firstButton = () => {
|
38
|
+
return (h("ic-button", { id: "first-page-button", "aria-label": "Go to first page", appearance: this.appearance, onClick: this.handleClickFirst, class: "page-button first-last", disabled: this.currentPage === 1 || this.disabled, variant: "icon", innerHTML: paginationFirstLast }));
|
39
|
+
};
|
40
|
+
this.previousButton = () => {
|
41
|
+
return (h("ic-button", { id: "previous-page-button", "aria-label": "Go to previous page", appearance: this.appearance, onClick: this.handleClickPrevious, class: "page-button next-previous flip", disabled: this.currentPage === 1 || this.disabled, variant: "icon", innerHTML: paginationNextPrevious }));
|
42
|
+
};
|
43
|
+
this.nextButton = () => {
|
44
|
+
return (h("ic-button", { id: "next-page-button", "aria-label": "Go to next page", appearance: this.appearance, onClick: this.handleClickNext, class: "page-button next-previous", disabled: this.currentPage === this.pages || this.disabled, variant: "icon", innerHTML: paginationNextPrevious }));
|
45
|
+
};
|
46
|
+
this.lastButton = () => {
|
47
|
+
return (h("ic-button", { id: "last-page-button", "aria-label": "Go to last page", appearance: this.appearance, onClick: this.handleClickLast, class: "page-button first-last flip", disabled: this.currentPage === this.pages || this.disabled, variant: "icon", innerHTML: paginationFirstLast }));
|
48
|
+
};
|
49
|
+
this.renderStartEllipsis = () => {
|
50
|
+
return (h("ic-pagination-item", { appearance: this.appearance, type: "ellipsis", id: "start-ellipsis", disabled: this.disabled }));
|
51
|
+
};
|
52
|
+
this.renderEndEllipsis = () => {
|
53
|
+
return (h("ic-pagination-item", { appearance: this.appearance, type: "ellipsis", id: "end-ellipsis", disabled: this.disabled }));
|
54
|
+
};
|
55
|
+
this.renderStartItems = () => {
|
56
|
+
return this.startItems.map((page) => {
|
57
|
+
return (h("ic-pagination-item", { appearance: this.appearance, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
|
58
|
+
});
|
59
|
+
};
|
60
|
+
this.renderEndItems = () => {
|
61
|
+
return this.endItems.map((page) => {
|
62
|
+
return (h("ic-pagination-item", { appearance: this.appearance, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
|
63
|
+
});
|
64
|
+
};
|
65
|
+
this.renderMiddleItems = () => {
|
66
|
+
return this.midItems.map((page) => {
|
67
|
+
return (h("ic-pagination-item", { appearance: this.appearance, selected: page === this.currentPage, id: `pagination-item-${page}`, type: "page", page: page, disabled: this.disabled }));
|
68
|
+
});
|
69
|
+
};
|
70
|
+
this.endEllipsis = false;
|
71
|
+
this.endItems = [];
|
72
|
+
this.midItems = [];
|
73
|
+
this.startEllipsis = false;
|
74
|
+
this.startItems = [];
|
75
|
+
this.adjacentCount = 1;
|
76
|
+
this.appearance = "default";
|
77
|
+
this.boundaryCount = 1;
|
78
|
+
this.defaultPage = 1;
|
79
|
+
this.disabled = false;
|
80
|
+
this.hideCurrentPage = false;
|
81
|
+
this.hideFirstAndLastPageButton = false;
|
82
|
+
this.label = "Page";
|
83
|
+
this.pages = undefined;
|
84
|
+
this.type = "simple";
|
85
|
+
this.currentPage = this.defaultPage;
|
93
86
|
}
|
94
|
-
|
95
|
-
|
96
|
-
this.startItems = [];
|
97
|
-
this.endItems = [];
|
98
|
-
this.midItems = [];
|
99
|
-
const startItems = [];
|
100
|
-
let startItemCount = 0;
|
101
|
-
const endItems = [];
|
102
|
-
let endStart = this.pages;
|
103
|
-
const midItems = [];
|
104
|
-
let midStart;
|
105
|
-
let midEnd;
|
106
|
-
let startEllipsis = false;
|
107
|
-
let endEllipsis = false;
|
108
|
-
if (this.pages <= this.boundaryCount * 2 + this.adjacentCount * 2 + 3) {
|
109
|
-
this.startEllipsis = false;
|
110
|
-
this.endEllipsis = false;
|
111
|
-
for (let i = 1; i <= this.pages; i++) {
|
112
|
-
startItems.push(i);
|
113
|
-
}
|
114
|
-
this.startItems = startItems;
|
115
|
-
return;
|
87
|
+
watchNumberPagesHandler() {
|
88
|
+
this.watchPageChangeHandler();
|
116
89
|
}
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
? this.pages
|
121
|
-
: this.pages - this.boundaryCount + 1;
|
122
|
-
if (this.currentPage <= this.adjacentCount + this.boundaryCount + 2) {
|
123
|
-
startEllipsis = false;
|
124
|
-
endEllipsis = true;
|
125
|
-
let numItems = 2 * this.adjacentCount + 1;
|
126
|
-
if (this.boundaryCount === 0) {
|
127
|
-
numItems--;
|
128
|
-
}
|
129
|
-
midStart = startItemCount + 1;
|
130
|
-
midEnd = midStart + numItems;
|
131
|
-
}
|
132
|
-
else {
|
133
|
-
startEllipsis = true;
|
134
|
-
if (this.currentPage >
|
135
|
-
this.pages - (this.adjacentCount + this.boundaryCount + 2)) {
|
136
|
-
let numItems = 2 * this.adjacentCount + 1;
|
137
|
-
if (this.boundaryCount === 0) {
|
138
|
-
numItems--;
|
90
|
+
watchPageChangeHandler() {
|
91
|
+
if (this.type === "simple") {
|
92
|
+
return;
|
139
93
|
}
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
94
|
+
this.startEllipsis = false;
|
95
|
+
this.endEllipsis = false;
|
96
|
+
this.startItems = [];
|
97
|
+
this.endItems = [];
|
98
|
+
this.midItems = [];
|
99
|
+
const startItems = [];
|
100
|
+
let startItemCount = 0;
|
101
|
+
const endItems = [];
|
102
|
+
let endStart = this.pages;
|
103
|
+
const midItems = [];
|
104
|
+
let midStart;
|
105
|
+
let midEnd;
|
106
|
+
let startEllipsis = false;
|
107
|
+
let endEllipsis = false;
|
108
|
+
if (this.pages <= this.boundaryCount * 2 + this.adjacentCount * 2 + 3) {
|
109
|
+
this.startEllipsis = false;
|
110
|
+
this.endEllipsis = false;
|
111
|
+
for (let i = 1; i <= this.pages; i++) {
|
112
|
+
startItems.push(i);
|
113
|
+
}
|
114
|
+
this.startItems = startItems;
|
115
|
+
return;
|
116
|
+
}
|
117
|
+
startItemCount = this.boundaryCount === 0 ? 1 : this.boundaryCount;
|
118
|
+
endStart =
|
119
|
+
this.boundaryCount === 0
|
120
|
+
? this.pages
|
121
|
+
: this.pages - this.boundaryCount + 1;
|
122
|
+
if (this.currentPage <= this.adjacentCount + this.boundaryCount + 2) {
|
123
|
+
startEllipsis = false;
|
124
|
+
endEllipsis = true;
|
125
|
+
let numItems = 2 * this.adjacentCount + 1;
|
126
|
+
if (this.boundaryCount === 0) {
|
127
|
+
numItems--;
|
128
|
+
}
|
129
|
+
midStart = startItemCount + 1;
|
130
|
+
midEnd = midStart + numItems;
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
startEllipsis = true;
|
134
|
+
if (this.currentPage >
|
135
|
+
this.pages - (this.adjacentCount + this.boundaryCount + 2)) {
|
136
|
+
let numItems = 2 * this.adjacentCount + 1;
|
137
|
+
if (this.boundaryCount === 0) {
|
138
|
+
numItems--;
|
139
|
+
}
|
140
|
+
midEnd =
|
141
|
+
this.boundaryCount === 0
|
142
|
+
? this.pages - 1
|
143
|
+
: this.pages - this.boundaryCount;
|
144
|
+
midStart = midEnd - numItems;
|
145
|
+
}
|
146
|
+
else {
|
147
|
+
endEllipsis = true;
|
148
|
+
midStart = this.currentPage - this.adjacentCount;
|
149
|
+
midEnd = this.currentPage + this.adjacentCount;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
//create array of start items
|
153
|
+
if (this.boundaryCount > 0 ||
|
154
|
+
(this.boundaryCount === 0 && startEllipsis === false)) {
|
155
|
+
for (let i = 1; i <= startItemCount; i++) {
|
156
|
+
startItems.push(i);
|
157
|
+
}
|
158
|
+
}
|
159
|
+
//create array of end items
|
160
|
+
if (this.boundaryCount > 0 ||
|
161
|
+
(this.boundaryCount === 0 && endEllipsis === false)) {
|
162
|
+
for (let i = endStart; i <= this.pages; i++) {
|
163
|
+
endItems.push(i);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
//create array of mid items
|
167
|
+
for (let i = midStart; i <= midEnd; i++) {
|
168
|
+
midItems.push(i);
|
169
|
+
}
|
170
|
+
this.startEllipsis = startEllipsis;
|
171
|
+
this.endEllipsis = endEllipsis;
|
172
|
+
this.startItems = startItems;
|
173
|
+
this.endItems = endItems;
|
174
|
+
this.midItems = midItems;
|
165
175
|
}
|
166
|
-
|
167
|
-
|
168
|
-
|
176
|
+
componentWillLoad() {
|
177
|
+
this.watchPageChangeHandler();
|
178
|
+
if (this.boundaryCount > 2) {
|
179
|
+
this.boundaryCount = 2;
|
180
|
+
}
|
181
|
+
if (this.adjacentCount > 2) {
|
182
|
+
this.adjacentCount = 2;
|
183
|
+
}
|
184
|
+
removeDisabledFalse(this.disabled, this.el);
|
169
185
|
}
|
170
|
-
|
171
|
-
|
172
|
-
this.startItems = startItems;
|
173
|
-
this.endItems = endItems;
|
174
|
-
this.midItems = midItems;
|
175
|
-
}
|
176
|
-
componentWillLoad() {
|
177
|
-
this.watchPageChangeHandler();
|
178
|
-
if (this.boundaryCount > 2) {
|
179
|
-
this.boundaryCount = 2;
|
186
|
+
componentDidLoad() {
|
187
|
+
onComponentRequiredPropUndefined([{ prop: this.pages, propName: "pages" }], "Pagination");
|
180
188
|
}
|
181
|
-
|
182
|
-
|
189
|
+
paginationItemClickHandler(ev) {
|
190
|
+
const page = ev.detail.page;
|
191
|
+
this.currentPage = page;
|
192
|
+
this.icPageChange.emit({ value: this.currentPage });
|
183
193
|
}
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
* Sets the currently displayed page.
|
196
|
-
*/
|
197
|
-
async setCurrentPage(page) {
|
198
|
-
if (typeof page === "number" && page > 0 && page <= this.pages) {
|
199
|
-
this.currentPage = page;
|
194
|
+
/**
|
195
|
+
* Sets the currently displayed page.
|
196
|
+
* @param {number} page The page number to set as the current page
|
197
|
+
*/
|
198
|
+
async setCurrentPage(page) {
|
199
|
+
if (typeof page === "number" && page > 0 && page <= this.pages) {
|
200
|
+
this.currentPage = page;
|
201
|
+
}
|
202
|
+
else {
|
203
|
+
console.error("Current page must be a number greater than zero but less than or equal to the total number of pages");
|
204
|
+
}
|
200
205
|
}
|
201
|
-
|
202
|
-
|
206
|
+
render() {
|
207
|
+
const { type, pages, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, } = this;
|
208
|
+
return (h(Host, null, type === "simple" && (h("nav", { class: {
|
209
|
+
["disabled"]: disabled,
|
210
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { pages: pages, appearance: this.appearance, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: hideCurrentPage } }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { class: {
|
211
|
+
["disabled"]: disabled,
|
212
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton()))));
|
203
213
|
}
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { pages: pages, appearance: this.appearance, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: hideCurrentPage } }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { class: {
|
210
|
-
["disabled"]: disabled,
|
211
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton()))));
|
212
|
-
}
|
213
|
-
get el() { return getElement(this); }
|
214
|
-
static get watchers() { return {
|
215
|
-
"pages": ["watchNumberPagesHandler"],
|
216
|
-
"currentPage": ["watchPageChangeHandler"]
|
217
|
-
}; }
|
214
|
+
get el() { return getElement(this); }
|
215
|
+
static get watchers() { return {
|
216
|
+
"pages": ["watchNumberPagesHandler"],
|
217
|
+
"currentPage": ["watchPageChangeHandler"]
|
218
|
+
}; }
|
218
219
|
};
|
219
220
|
Pagination.style = icPaginationCss;
|
220
221
|
|
221
222
|
const icPaginationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none;color:var(--ic-color-secondary-text)}.item-container:focus{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.page{color:var(--ic-action-default)}.simple-current{width:calc(var(--ic-space-xxl) + var(--ic-space-md));height:var(--ic-space-lg);cursor:default}.item-container.page:hover:not(.selected):not(:focus){border-radius:var(--ic-border-radius);background-color:var(--ic-action-default-bg-hover)}.item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-action-default-bg-active)}.selected{pointer-events:none;outline:none}.selected::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-default)}.page-selected{color:var(--ic-color-primary-text)}.item-container.page.light:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}.item-container.page.light:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-active)}ic-typography.light{color:var(--ic-color-white-text)}.selected.light::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-light)}.item-container.page.dark:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}.item-container.page.dark:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-active)}ic-typography.dark{color:var(--ic-color-primary-text)}.selected.dark::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-dark)}.disabled{color:var(--ic-architectural-200);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (forced-colors: active){.selected::after{background-color:Highlight}.selected.light::after{background-color:Highlight}.selected.dark::after{background-color:Highlight}}";
|
222
223
|
|
223
224
|
const PaginationItem = class {
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
225
|
+
constructor(hostRef) {
|
226
|
+
registerInstance(this, hostRef);
|
227
|
+
this.paginationItemClick = createEvent(this, "paginationItemClick", 7);
|
228
|
+
this.handleClick = () => {
|
229
|
+
this.paginationItemClick.emit({ page: this.page });
|
230
|
+
};
|
231
|
+
this.appearance = undefined;
|
232
|
+
this.ariaOverride = false;
|
233
|
+
this.disabled = false;
|
234
|
+
this.label = "Page ";
|
235
|
+
this.page = undefined;
|
236
|
+
this.pages = undefined;
|
237
|
+
this.selected = false;
|
238
|
+
this.type = undefined;
|
239
|
+
}
|
240
|
+
componentWillLoad() {
|
241
|
+
removeDisabledFalse(this.disabled, this.el);
|
242
|
+
}
|
243
|
+
render() {
|
244
|
+
const { page, selected, type, disabled, appearance, label, ariaOverride, pages, } = this;
|
245
|
+
return (h("a", null, type === "ellipsis" ? (h("div", { class: {
|
246
|
+
["item-container"]: true,
|
247
|
+
["ellipsis"]: true,
|
248
|
+
["disabled"]: disabled,
|
249
|
+
} }, h("ic-typography", { class: {
|
250
|
+
[`${appearance}`]: true,
|
251
|
+
}, variant: "label" }, "..."))) : type === "page" ? (h("button", { disabled: disabled, onClick: this.handleClick, tabindex: selected ? "-1" : "0", role: "button", "aria-current": selected && "Current page", "aria-label": selected ? `${label}: ${page}` : `Go to page ${page}`, class: {
|
252
|
+
["selected"]: !disabled && selected,
|
253
|
+
["disabled"]: disabled,
|
254
|
+
["item-container"]: true,
|
255
|
+
[`${appearance}`]: true,
|
256
|
+
["page"]: type === "page",
|
257
|
+
} }, h("ic-typography", { variant: "label", class: {
|
258
|
+
["page-selected"]: selected,
|
259
|
+
["disabled"]: disabled,
|
260
|
+
[`${appearance}`]: true,
|
261
|
+
} }, page))) : (h("ic-typography", { "aria-live": "polite", "aria-label": ariaOverride ? `Page ${page} of ${pages}` : `${label} ${page}`, class: `simple-current ${appearance}`, variant: "label" }, label, " ", page))));
|
262
|
+
}
|
263
|
+
get el() { return getElement(this); }
|
263
264
|
};
|
264
265
|
PaginationItem.style = icPaginationItemCss;
|
265
266
|
|
@@ -273,657 +274,668 @@ const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www
|
|
273
274
|
</svg>
|
274
275
|
`;
|
275
276
|
|
276
|
-
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{position:relative}:host(.full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-primary-text)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.select-input[disabled]{pointer-events:none}:host(.searchable) .select-input{cursor:auto}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xs);color:var(--ic-action-dark)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.disabled) .expand-icon,:host(.disabled) .expand-icon>svg>path{color:var(--ic-architectural-200)}:host(.searchable) .expand-icon{padding-left:var(--ic-space-xxs);height:2.25rem}:host(.searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.searchable:not(.disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-filled{color:var(--ic-action-dark)}.expand-icon-open,:host(.searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.disabled) .value-text,.placeholder{color:var(--ic-color-tertiary-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;gap:var(--ic-space-xxs);padding-left:2.375rem}:host(.small) .clear-button-container{padding-left:1.875rem}.divider{width:var(--ic-
|
277
|
+
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative}:host(.full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-primary-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-primary-text)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.select-input[disabled]{pointer-events:none}:host(.searchable) .select-input{cursor:auto}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xs);color:var(--ic-action-dark)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.disabled) .expand-icon,:host(.disabled) .expand-icon>svg>path{color:var(--ic-architectural-200)}:host(.searchable) .expand-icon{padding-left:var(--ic-space-xxs);height:2.25rem}:host(.searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.searchable:not(.disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-filled{color:var(--ic-action-dark)}.expand-icon-open,:host(.searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.disabled) .value-text,.placeholder{color:var(--ic-color-tertiary-text)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;gap:var(--ic-space-xxs);padding-left:2.375rem;align-items:center}:host(.small) .clear-button-container{padding-left:1.875rem}.divider{width:var(--ic-border-width);background-color:var(--ic-architectural-400);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.small) .divider{height:var(--ic-space-md)}.clear-button{position:absolute;right:2.75rem;border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus{background-color:var(--ic-focus-blue);box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow);border-radius:0.25rem}.clear-button:focus *{fill:white}.searchable-select-results-status{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}";
|
277
278
|
|
278
279
|
let inputIds$1 = 0;
|
279
280
|
const Select = class {
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
281
|
+
constructor(hostRef) {
|
282
|
+
registerInstance(this, hostRef);
|
283
|
+
this.icBlur = createEvent(this, "icBlur", 7);
|
284
|
+
this.icChange = createEvent(this, "icChange", 7);
|
285
|
+
this.icClear = createEvent(this, "icClear", 7);
|
286
|
+
this.icFocus = createEvent(this, "icFocus", 7);
|
287
|
+
this.icInput = createEvent(this, "icInput", 7);
|
288
|
+
this.icOptionSelect = createEvent(this, "icOptionSelect", 7);
|
289
|
+
this.icRetryLoad = createEvent(this, "icRetryLoad", 7);
|
290
|
+
this.hasSetDefaultValue = false;
|
291
|
+
this.inheritedAttributes = {};
|
292
|
+
this.initialOptionsEmpty = false;
|
293
|
+
this.inputId = `ic-select-input-${inputIds$1++}`;
|
294
|
+
this.menuId = `${this.inputId}-menu`;
|
295
|
+
this.searchableMenuItemSelected = false;
|
296
|
+
this.ungroupedOptions = [];
|
297
|
+
this.handleRetry = (ev) => {
|
298
|
+
var _a;
|
299
|
+
if (ev.detail.keyPressed)
|
300
|
+
(_a = this.searchableSelectElement) === null || _a === void 0 ? void 0 : _a.focus();
|
301
|
+
this.blurredBecauseButtonPressed = true;
|
302
|
+
this.retryButtonClick = true;
|
303
|
+
this.hasSetDefaultValue = true;
|
304
|
+
this.icRetryLoad.emit({ value: this.hiddenInputValue });
|
305
|
+
};
|
306
|
+
this.emitIcChange = (value) => {
|
307
|
+
if (!this.searchable) {
|
308
|
+
this.value = value;
|
309
|
+
}
|
310
|
+
clearTimeout(this.debounceIcChange);
|
311
|
+
this.debounceIcChange = window.setTimeout(() => {
|
312
|
+
this.icChange.emit({ value: value });
|
313
|
+
}, this.currDebounce);
|
314
|
+
};
|
315
|
+
this.emitImmediateIcChange = (value) => {
|
316
|
+
this.value = value;
|
317
|
+
clearTimeout(this.debounceIcChange);
|
318
|
+
this.icChange.emit({ value: value });
|
319
|
+
};
|
320
|
+
/**
|
321
|
+
* Processes the provided array of IcMenuOptions, removing duplicates and reporting them with a console.warn
|
322
|
+
* @param options array of IcMenuOptions
|
323
|
+
* @returns a new options object, with all entries possessing a duplicate 'value' field removed
|
324
|
+
*/
|
325
|
+
this.deduplicateOptions = (options) => {
|
326
|
+
const uniqueValues = [];
|
327
|
+
const dedupedOptions = [];
|
328
|
+
let dedupedChildren;
|
329
|
+
options.forEach((option) => {
|
330
|
+
if (option.children) {
|
331
|
+
//If an option has children, we will loop through them
|
332
|
+
dedupedChildren = [];
|
333
|
+
option.children.forEach((child) => {
|
334
|
+
if (uniqueValues.includes(child.value)) {
|
335
|
+
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${child.value}) which has been removed.`);
|
336
|
+
}
|
337
|
+
else {
|
338
|
+
uniqueValues.push(child.value);
|
339
|
+
dedupedChildren.push(child);
|
340
|
+
}
|
341
|
+
});
|
342
|
+
// construct a modified option, inserting the deduplicated children alongside the original information
|
343
|
+
const modifiedParent = Object.assign(Object.assign({}, option), { children: dedupedChildren });
|
344
|
+
dedupedOptions.push(modifiedParent);
|
345
|
+
}
|
346
|
+
else {
|
347
|
+
// If an option does not have children, assess to see if it's value has been included already
|
348
|
+
if (uniqueValues.includes(option.value)) {
|
349
|
+
console.warn(`ic-select with label ${this.label} was populated with duplicate option (value: ${option.value}) which has been removed.`);
|
350
|
+
}
|
351
|
+
else {
|
352
|
+
uniqueValues.push(option.value);
|
353
|
+
dedupedOptions.push(option);
|
354
|
+
}
|
355
|
+
}
|
356
|
+
});
|
357
|
+
return dedupedOptions;
|
358
|
+
};
|
359
|
+
/**
|
360
|
+
* Loop through options array and for all options with no value, infer it from the label
|
361
|
+
*/
|
362
|
+
this.setOptionsValuesFromLabels = () => {
|
363
|
+
if (this.options.length > 0 && this.options.map) {
|
364
|
+
this.options.map((option) => {
|
365
|
+
if (!option.value) {
|
366
|
+
option.value = option.label;
|
367
|
+
}
|
368
|
+
});
|
369
|
+
}
|
370
|
+
};
|
371
|
+
this.setUngroupedOptions = (event) => {
|
372
|
+
this.ungroupedOptions = event.detail.options;
|
373
|
+
};
|
374
|
+
this.setTextColor = () => {
|
375
|
+
if (this.nativeSelectElement.selectedIndex === 0) {
|
376
|
+
this.nativeSelectElement.className = "placeholder";
|
335
377
|
}
|
336
378
|
else {
|
337
|
-
|
338
|
-
dedupedChildren.push(child);
|
379
|
+
this.nativeSelectElement.className = "select-option-selected";
|
339
380
|
}
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
this.
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
this.
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
}
|
444
|
-
else {
|
445
|
-
focusIndicator.classList.remove("focus-indicator-enabled");
|
446
|
-
}
|
447
|
-
};
|
448
|
-
this.handleMouseDown = (event) => {
|
449
|
-
if (!this.open) {
|
450
|
-
event.preventDefault();
|
451
|
-
}
|
452
|
-
};
|
453
|
-
this.isExternalFiltering = () => this.searchable && this.disableFilter;
|
454
|
-
this.handleClick = (event) => {
|
455
|
-
if (!this.open) {
|
456
|
-
if (this.isExternalFiltering()) {
|
457
|
-
this.menu.options = this.filteredOptions;
|
458
|
-
}
|
459
|
-
else if (!this.hasTimedOut &&
|
460
|
-
!this.loading &&
|
461
|
-
(!this.searchable || this.searchableMenuItemSelected)) {
|
462
|
-
this.noOptions = null;
|
463
|
-
this.menu.options = this.uniqueOptions;
|
464
|
-
}
|
465
|
-
}
|
466
|
-
if (event.detail !== 0) {
|
467
|
-
this.menu.handleClickOpen();
|
468
|
-
}
|
469
|
-
};
|
470
|
-
this.handleExpandIconMouseDown = (event) => {
|
471
|
-
if (!this.disabled) {
|
472
|
-
event.preventDefault();
|
473
|
-
this.searchableSelectElement.focus();
|
474
|
-
this.handleClick(event);
|
475
|
-
}
|
476
|
-
};
|
477
|
-
this.handleClear = (event) => {
|
478
|
-
event.stopPropagation();
|
479
|
-
this.hasTimedOut = false;
|
480
|
-
clearTimeout(this.timeoutTimer);
|
481
|
-
this.noOptions = null;
|
482
|
-
this.emitImmediateIcChange(null);
|
483
|
-
this.icClear.emit();
|
484
|
-
if (this.searchable) {
|
485
|
-
this.searchableSelectElement.value = null;
|
486
|
-
this.searchableSelectInputValue = null;
|
487
|
-
this.filteredOptions = this.uniqueOptions;
|
488
|
-
this.hiddenInputValue = null;
|
489
|
-
this.searchableSelectElement.focus();
|
490
|
-
}
|
491
|
-
else {
|
492
|
-
this.customSelectElement.focus();
|
493
|
-
}
|
494
|
-
};
|
495
|
-
this.handleCharacterKeyDown = (key) => {
|
496
|
-
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
497
|
-
if (this.open &&
|
498
|
-
key === " " &&
|
499
|
-
this.pressedCharacters.length === 0 &&
|
500
|
-
!this.hasTimedOut &&
|
501
|
-
!this.loading) {
|
502
|
-
this.setMenuChange(false);
|
503
|
-
}
|
504
|
-
if (key.length === 1 && !this.searchable) {
|
505
|
-
window.clearTimeout(this.characterKeyPressTimer);
|
506
|
-
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
507
|
-
this.pressedCharacters += key;
|
508
|
-
this.handleFilter();
|
509
|
-
if (!this.noOptions) {
|
510
|
-
this.emitImmediateIcChange(this.filteredOptions[0].value);
|
511
|
-
}
|
512
|
-
}
|
513
|
-
else {
|
514
|
-
this.pressedCharacters = "";
|
515
|
-
}
|
516
|
-
};
|
517
|
-
this.handleNativeSelectKeyDown = (event) => {
|
518
|
-
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
519
|
-
event.cancelBubble = true;
|
520
|
-
}
|
521
|
-
this.handleCharacterKeyDown(event.key);
|
522
|
-
};
|
523
|
-
this.handleKeyDown = (event) => {
|
524
|
-
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
525
|
-
event.cancelBubble = true;
|
526
|
-
}
|
527
|
-
const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
|
528
|
-
if (!this.open) {
|
529
|
-
if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
|
530
|
-
this.menu.options = this.filteredOptions;
|
531
|
-
}
|
532
|
-
else {
|
533
|
-
if (!this.hasTimedOut) {
|
381
|
+
};
|
382
|
+
this.setMenuChange = (open) => {
|
383
|
+
if (this.open !== open) {
|
384
|
+
this.open = open;
|
385
|
+
}
|
386
|
+
};
|
387
|
+
this.getLabelFromValue = (value) => {
|
388
|
+
return getLabelFromValue(value, this.uniqueOptions);
|
389
|
+
};
|
390
|
+
this.getFilteredChildMenuOptions = (option) => {
|
391
|
+
let children = option.children;
|
392
|
+
if (this.searchable) {
|
393
|
+
children = getFilteredMenuOptions(option.children, this.includeDescriptionsInSearch, this.searchableSelectInputValue, this.searchMatchPosition);
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
children = getFilteredMenuOptions(option.children, false, this.pressedCharacters, "start");
|
397
|
+
}
|
398
|
+
const newOption = Object.assign({}, option);
|
399
|
+
newOption.children = children;
|
400
|
+
return newOption;
|
401
|
+
};
|
402
|
+
this.handleNativeSelectChange = () => {
|
403
|
+
this.icOptionSelect.emit({ value: this.nativeSelectElement.value });
|
404
|
+
this.emitImmediateIcChange(this.nativeSelectElement.value);
|
405
|
+
this.setTextColor();
|
406
|
+
};
|
407
|
+
this.handleCustomSelectChange = (event) => {
|
408
|
+
if (this.searchable && event.detail.label === this.emptyOptionListText) {
|
409
|
+
this.searchableSelectElement.focus();
|
410
|
+
return;
|
411
|
+
}
|
412
|
+
if (this.searchable) {
|
413
|
+
this.value = event.detail.value;
|
414
|
+
this.searchableMenuItemSelected = true;
|
415
|
+
// After editing the input, if selecting the same option as before, set the input value to label again
|
416
|
+
if (this.value === this.currValue) {
|
417
|
+
this.searchableSelectInputValue = this.getLabelFromValue(this.value);
|
418
|
+
}
|
419
|
+
this.inputValueToFilter = null;
|
420
|
+
this.hiddenInputValue = this.getValueFromLabel(this.searchableSelectInputValue);
|
421
|
+
}
|
422
|
+
this.ariaActiveDescendant = event.detail.optionId;
|
423
|
+
this.icOptionSelect.emit({ value: event.detail.value });
|
424
|
+
this.emitIcChange(event.detail.value);
|
425
|
+
};
|
426
|
+
this.handleMenuChange = (event) => {
|
427
|
+
this.open = event.detail.open;
|
428
|
+
this.pressedCharacters = "";
|
429
|
+
this.searchable && this.handleFocusIndicatorDisplay();
|
430
|
+
};
|
431
|
+
// clears the debounce delay when navigating the menu with arrow keys etc
|
432
|
+
// to prevent delay in change event, which should only occur when typing in input
|
433
|
+
this.handleMenuKeyPress = (ev) => {
|
434
|
+
ev.cancelBubble = true;
|
435
|
+
this.handleCharacterKeyDown(ev.detail.key);
|
436
|
+
};
|
437
|
+
this.handleMenuValueChange = (ev) => {
|
438
|
+
this.value = ev.detail.value;
|
439
|
+
};
|
440
|
+
this.handleFocusIndicatorDisplay = () => {
|
441
|
+
const focusIndicator = this.el.shadowRoot.querySelector(".focus-indicator");
|
442
|
+
if (this.open) {
|
443
|
+
focusIndicator.classList.add("focus-indicator-enabled");
|
444
|
+
}
|
445
|
+
else {
|
446
|
+
focusIndicator.classList.remove("focus-indicator-enabled");
|
447
|
+
}
|
448
|
+
};
|
449
|
+
this.handleMouseDown = (event) => {
|
450
|
+
if (!this.open) {
|
451
|
+
event.preventDefault();
|
452
|
+
}
|
453
|
+
};
|
454
|
+
this.isExternalFiltering = () => this.searchable && this.disableFilter;
|
455
|
+
this.handleClick = (event) => {
|
456
|
+
var _a;
|
457
|
+
if (!this.open) {
|
458
|
+
if (this.isExternalFiltering()) {
|
459
|
+
this.menu.options = this.filteredOptions;
|
460
|
+
}
|
461
|
+
else if (!this.hasTimedOut &&
|
462
|
+
!this.loading &&
|
463
|
+
!((_a = this.noOptions) === null || _a === void 0 ? void 0 : _a.length) &&
|
464
|
+
(!this.searchable || this.searchableMenuItemSelected)) {
|
465
|
+
this.noOptions = null;
|
466
|
+
this.menu.options = this.uniqueOptions;
|
467
|
+
}
|
468
|
+
}
|
469
|
+
if (event.detail !== 0) {
|
470
|
+
this.menu.handleClickOpen();
|
471
|
+
}
|
472
|
+
};
|
473
|
+
this.handleExpandIconMouseDown = (event) => {
|
474
|
+
if (!this.disabled) {
|
475
|
+
event.preventDefault();
|
476
|
+
this.searchableSelectElement.focus();
|
477
|
+
this.handleClick(event);
|
478
|
+
}
|
479
|
+
};
|
480
|
+
this.handleClear = (event) => {
|
481
|
+
event.stopPropagation();
|
482
|
+
this.hasTimedOut = false;
|
483
|
+
clearTimeout(this.timeoutTimer);
|
534
484
|
this.noOptions = null;
|
535
|
-
this.
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
485
|
+
this.emitImmediateIcChange(null);
|
486
|
+
this.icClear.emit();
|
487
|
+
if (this.searchable) {
|
488
|
+
this.searchableSelectElement.value = null;
|
489
|
+
this.searchableSelectInputValue = null;
|
490
|
+
this.filteredOptions = this.uniqueOptions;
|
491
|
+
this.hiddenInputValue = null;
|
492
|
+
this.searchableSelectElement.focus();
|
493
|
+
}
|
494
|
+
else {
|
495
|
+
this.customSelectElement.focus();
|
496
|
+
}
|
497
|
+
};
|
498
|
+
this.handleCharacterKeyDown = (key) => {
|
499
|
+
// Only close menu when space is pressed if not being used alongside character keys to quickly select options
|
500
|
+
if (this.open &&
|
501
|
+
key === " " &&
|
502
|
+
this.pressedCharacters.length === 0 &&
|
503
|
+
!this.hasTimedOut &&
|
504
|
+
!this.loading) {
|
505
|
+
this.setMenuChange(false);
|
506
|
+
}
|
507
|
+
if (key.length === 1 && !this.searchable) {
|
508
|
+
window.clearTimeout(this.characterKeyPressTimer);
|
509
|
+
this.characterKeyPressTimer = window.setTimeout(() => (this.pressedCharacters = ""), 1000);
|
510
|
+
this.pressedCharacters += key;
|
511
|
+
this.handleFilter();
|
512
|
+
if (!this.noOptions) {
|
513
|
+
this.emitImmediateIcChange(this.filteredOptions[0].value);
|
514
|
+
}
|
515
|
+
}
|
516
|
+
else {
|
517
|
+
this.pressedCharacters = "";
|
518
|
+
}
|
519
|
+
};
|
520
|
+
this.handleNativeSelectKeyDown = (event) => {
|
521
|
+
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
522
|
+
event.cancelBubble = true;
|
523
|
+
}
|
524
|
+
this.handleCharacterKeyDown(event.key);
|
525
|
+
};
|
526
|
+
this.handleKeyDown = (event) => {
|
527
|
+
if ((event.key !== "Escape" && event.key !== "Tab") || this.open) {
|
528
|
+
event.cancelBubble = true;
|
529
|
+
}
|
530
|
+
const isArrowKey = event.key === "ArrowDown" || event.key === "ArrowUp";
|
531
|
+
if (!this.open) {
|
532
|
+
if (this.isExternalFiltering() && (event.key === "Enter" || isArrowKey)) {
|
533
|
+
this.menu.options = this.filteredOptions;
|
534
|
+
}
|
535
|
+
else {
|
536
|
+
if (!this.hasTimedOut) {
|
537
|
+
this.noOptions = null;
|
538
|
+
this.menu.options = this.uniqueOptions;
|
539
|
+
}
|
540
|
+
}
|
541
|
+
}
|
542
|
+
if (this.open && event.key === "Enter") {
|
543
|
+
this.setMenuChange(false);
|
544
|
+
}
|
545
|
+
else {
|
546
|
+
if (!(isArrowKey && this.noOptions !== null)) {
|
547
|
+
if (!(event.key === " " && this.pressedCharacters.length > 0)) {
|
548
|
+
// Keyboard events get passed onto ic-menu
|
549
|
+
this.menu.handleKeyboardOpen(event);
|
550
|
+
}
|
551
|
+
this.handleCharacterKeyDown(event.key);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
};
|
555
|
+
this.handleClearButtonFocus = () => {
|
556
|
+
this.clearButtonFocused = true;
|
557
|
+
};
|
558
|
+
this.handleClearButtonBlur = (ev) => {
|
559
|
+
var _a;
|
560
|
+
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
561
|
+
if (!(this.searchableSelectElement &&
|
562
|
+
ev.relatedTarget === this.searchableSelectElement) &&
|
563
|
+
!(retryButton && ev.relatedTarget === retryButton)) {
|
564
|
+
this.setMenuChange(false);
|
565
|
+
this.handleFocusIndicatorDisplay();
|
566
|
+
}
|
567
|
+
this.clearButtonFocused = false;
|
568
|
+
};
|
569
|
+
this.handleFilter = () => {
|
570
|
+
var _a;
|
571
|
+
const options = this.deduplicateOptions(this.searchable ? [...this.uniqueOptions] : this.ungroupedOptions);
|
572
|
+
let isGrouped = false;
|
573
|
+
let newFilteredOptions = [];
|
574
|
+
options.map((option) => {
|
575
|
+
if (option.children)
|
576
|
+
isGrouped = true;
|
577
|
+
});
|
578
|
+
let menuOptionsFiltered;
|
579
|
+
if (this.searchable) {
|
580
|
+
menuOptionsFiltered = getFilteredMenuOptions(options, this.includeDescriptionsInSearch, this.inputValueToFilter, this.searchMatchPosition);
|
581
|
+
this.searchableMenuItemSelected = false;
|
582
|
+
}
|
583
|
+
else {
|
584
|
+
menuOptionsFiltered = getFilteredMenuOptions(options, false, this.pressedCharacters, "start");
|
585
|
+
}
|
586
|
+
if (!isGrouped &&
|
587
|
+
((_a = menuOptionsFiltered[0]) === null || _a === void 0 ? void 0 : _a.label) !== this.emptyOptionListText) {
|
588
|
+
newFilteredOptions = menuOptionsFiltered;
|
589
|
+
}
|
590
|
+
else if (isGrouped) {
|
591
|
+
options.map((option) => {
|
592
|
+
if (this.includeGroupTitlesInSearch) {
|
593
|
+
if (menuOptionsFiltered.indexOf(option) !== -1) {
|
594
|
+
newFilteredOptions.push(option);
|
595
|
+
}
|
596
|
+
else {
|
597
|
+
newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
|
598
|
+
}
|
599
|
+
}
|
600
|
+
else {
|
601
|
+
newFilteredOptions.push(this.getFilteredChildMenuOptions(option));
|
602
|
+
}
|
603
|
+
});
|
604
|
+
}
|
605
|
+
let noChildOptionsWhenFiltered = false;
|
606
|
+
if (isGrouped) {
|
607
|
+
noChildOptionsWhenFiltered = true;
|
608
|
+
newFilteredOptions.map((option) => {
|
609
|
+
if (option.children.length > 0) {
|
610
|
+
noChildOptionsWhenFiltered = false;
|
611
|
+
}
|
612
|
+
});
|
613
|
+
}
|
614
|
+
if (newFilteredOptions.length > 0 && !noChildOptionsWhenFiltered) {
|
615
|
+
this.noOptions = null;
|
616
|
+
this.filteredOptions = newFilteredOptions;
|
590
617
|
}
|
591
618
|
else {
|
592
|
-
|
619
|
+
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
620
|
+
this.filteredOptions = this.noOptions;
|
621
|
+
}
|
622
|
+
};
|
623
|
+
/**
|
624
|
+
* Put the select component into loading state.
|
625
|
+
* Replace options with the loading message. If timeout is enabled, set the timeout and once passed, replace options with the loading error message
|
626
|
+
*/
|
627
|
+
this.triggerLoading = () => {
|
628
|
+
this.hasTimedOut = false;
|
629
|
+
this.noOptions = [{ label: this.loadingLabel, value: "", loading: true }];
|
630
|
+
if (this.filteredOptions !== this.noOptions && this.searchable) {
|
631
|
+
this.filteredOptions = this.noOptions;
|
632
|
+
}
|
633
|
+
else if (this.uniqueOptions !== this.noOptions && !this.searchable) {
|
634
|
+
this.uniqueOptions = this.noOptions;
|
593
635
|
}
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
636
|
+
if (this.timeout) {
|
637
|
+
this.timeoutTimer = window.setTimeout(() => {
|
638
|
+
this.loading = false;
|
639
|
+
this.hasTimedOut = true;
|
640
|
+
this.noOptions = [
|
641
|
+
{ label: this.loadingErrorLabel, value: "", timedOut: true },
|
642
|
+
];
|
643
|
+
this.filteredOptions = this.noOptions;
|
644
|
+
if (!this.searchable)
|
645
|
+
this.uniqueOptions = this.noOptions;
|
646
|
+
}, this.timeout);
|
647
|
+
}
|
648
|
+
};
|
649
|
+
this.getValueFromLabel = (label) => {
|
650
|
+
var _a;
|
651
|
+
return (_a = this.uniqueOptions.find((option) => option.label === label)) === null || _a === void 0 ? void 0 : _a.value;
|
652
|
+
};
|
653
|
+
this.handleSearchableSelectInput = (event) => {
|
654
|
+
this.searchableSelectInputValue = event.target.value;
|
655
|
+
this.icInput.emit({ value: this.searchableSelectInputValue });
|
656
|
+
this.emitIcChange(this.searchableSelectInputValue);
|
657
|
+
this.hiddenInputValue = this.searchableSelectInputValue;
|
658
|
+
this.inputValueToFilter = this.searchableSelectInputValue;
|
659
|
+
this.setMenuChange(true);
|
660
|
+
if (!this.disableFilter) {
|
661
|
+
this.handleFilter();
|
662
|
+
this.debounceAriaLiveUpdate();
|
663
|
+
}
|
664
|
+
};
|
665
|
+
this.updateSearchableSelectResultAriaLive = () => {
|
666
|
+
const searchableSelectResultsStatusEl = this.el.shadowRoot.querySelector(".searchable-select-results-status");
|
667
|
+
if (searchableSelectResultsStatusEl) {
|
668
|
+
if (this.noOptions !== null) {
|
669
|
+
searchableSelectResultsStatusEl.innerText = this.emptyOptionListText;
|
670
|
+
}
|
671
|
+
else {
|
672
|
+
searchableSelectResultsStatusEl.innerText = "";
|
673
|
+
}
|
674
|
+
}
|
675
|
+
};
|
676
|
+
this.getDefaultValue = (value) => this.getLabelFromValue(value) || value || null;
|
677
|
+
this.onFocus = () => {
|
678
|
+
this.icFocus.emit();
|
679
|
+
};
|
680
|
+
this.onBlur = (event) => {
|
681
|
+
var _a;
|
682
|
+
const target = event.relatedTarget;
|
683
|
+
if (target !== null &&
|
684
|
+
target.tagName === "UL" &&
|
685
|
+
target.className.includes("menu")) {
|
686
|
+
return;
|
687
|
+
}
|
688
|
+
const retryButton = (_a = this.menu) === null || _a === void 0 ? void 0 : _a.querySelector("#retry-button");
|
689
|
+
const isSearchableAndNoFocusedInternalElements = this.searchable &&
|
690
|
+
event.relatedTarget !== this.menu &&
|
691
|
+
!Array.from(this.menu.querySelectorAll("[role='option']")).includes(event.relatedTarget) &&
|
692
|
+
!(this.clearButton && event.relatedTarget === this.clearButton) &&
|
693
|
+
!(retryButton && event.relatedTarget === retryButton);
|
694
|
+
if (isSearchableAndNoFocusedInternalElements) {
|
695
|
+
if (!this.retryButtonClick) {
|
696
|
+
this.setMenuChange(false);
|
697
|
+
}
|
698
|
+
this.handleFocusIndicatorDisplay();
|
699
|
+
}
|
700
|
+
this.retryButtonClick = false;
|
701
|
+
this.icBlur.emit();
|
702
|
+
};
|
703
|
+
this.onTimeoutBlur = (ev) => {
|
704
|
+
if (ev.detail.ev.relatedTarget !==
|
705
|
+
this.searchableSelectElement &&
|
706
|
+
!this.blurredBecauseButtonPressed) {
|
707
|
+
this.setMenuChange(false);
|
708
|
+
this.handleFocusIndicatorDisplay();
|
709
|
+
this.icBlur.emit();
|
710
|
+
}
|
711
|
+
this.blurredBecauseButtonPressed = false;
|
712
|
+
};
|
713
|
+
this.handleFormReset = () => {
|
714
|
+
this.value = this.initialValue;
|
715
|
+
if (this.searchable) {
|
716
|
+
this.searchableSelectInputValue = this.getDefaultValue(this.value);
|
717
|
+
this.hiddenInputValue = this.value;
|
718
|
+
}
|
719
|
+
};
|
720
|
+
this.ariaActiveDescendant = undefined;
|
721
|
+
this.clearButtonFocused = false;
|
722
|
+
this.debounceIcChange = undefined;
|
723
|
+
this.hiddenInputValue = undefined;
|
611
724
|
this.noOptions = null;
|
612
|
-
this.
|
613
|
-
|
614
|
-
|
615
|
-
this.
|
616
|
-
this.
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
this.
|
628
|
-
|
629
|
-
|
630
|
-
this.
|
631
|
-
|
632
|
-
|
633
|
-
this.
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
this.
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
!(this.clearButton && event.relatedTarget === this.clearButton) &&
|
689
|
-
!(retryButton && event.relatedTarget === retryButton);
|
690
|
-
if (isSearchableAndNoFocusedInternalElements) {
|
691
|
-
if (!this.retryButtonClick) {
|
692
|
-
this.setMenuChange(false);
|
693
|
-
}
|
694
|
-
this.handleFocusIndicatorDisplay();
|
695
|
-
}
|
696
|
-
this.retryButtonClick = false;
|
697
|
-
this.icBlur.emit();
|
698
|
-
};
|
699
|
-
this.onTimeoutBlur = (ev) => {
|
700
|
-
if (ev.detail.ev.relatedTarget !==
|
701
|
-
this.searchableSelectElement &&
|
702
|
-
!this.blurredBecauseButtonPressed) {
|
703
|
-
this.setMenuChange(false);
|
704
|
-
this.handleFocusIndicatorDisplay();
|
705
|
-
this.icBlur.emit();
|
706
|
-
}
|
707
|
-
this.blurredBecauseButtonPressed = false;
|
708
|
-
};
|
709
|
-
this.handleFormReset = () => {
|
710
|
-
this.value = this.initialValue;
|
711
|
-
if (this.searchable) {
|
712
|
-
this.searchableSelectInputValue = this.getDefaultValue(this.value);
|
713
|
-
this.hiddenInputValue = this.value;
|
714
|
-
}
|
715
|
-
};
|
716
|
-
this.ariaActiveDescendant = undefined;
|
717
|
-
this.clearButtonFocused = false;
|
718
|
-
this.debounceIcChange = undefined;
|
719
|
-
this.hiddenInputValue = undefined;
|
720
|
-
this.noOptions = null;
|
721
|
-
this.open = false;
|
722
|
-
this.pressedCharacters = "";
|
723
|
-
this.searchableSelectInputValue = null;
|
724
|
-
this.charactersUntilSuggestions = 0;
|
725
|
-
this.disabled = false;
|
726
|
-
this.disableFilter = false;
|
727
|
-
this.emptyOptionListText = "No results found";
|
728
|
-
this.fullWidth = false;
|
729
|
-
this.helperText = "";
|
730
|
-
this.hideLabel = false;
|
731
|
-
this.includeDescriptionsInSearch = false;
|
732
|
-
this.includeGroupTitlesInSearch = false;
|
733
|
-
this.label = undefined;
|
734
|
-
this.loadingErrorLabel = "Loading Error";
|
735
|
-
this.loadingLabel = "Loading...";
|
736
|
-
this.name = this.inputId;
|
737
|
-
this.placeholder = "Select an option";
|
738
|
-
this.readonly = false;
|
739
|
-
this.required = false;
|
740
|
-
this.searchable = false;
|
741
|
-
this.searchMatchPosition = "anywhere";
|
742
|
-
this.showClearButton = false;
|
743
|
-
this.small = false;
|
744
|
-
this.timeout = undefined;
|
745
|
-
this.validationStatus = "";
|
746
|
-
this.validationText = "";
|
747
|
-
this.loading = false;
|
748
|
-
this.options = [];
|
749
|
-
this.filteredOptions = this.options;
|
750
|
-
this.uniqueOptions = this.options;
|
751
|
-
this.debounce = 0;
|
752
|
-
this.currDebounce = this.debounce;
|
753
|
-
this.value = undefined;
|
754
|
-
this.initialValue = this.value;
|
755
|
-
this.inputValueToFilter = this.value;
|
756
|
-
this.currValue = this.value;
|
757
|
-
}
|
758
|
-
loadingHandler(newValue) {
|
759
|
-
newValue && this.triggerLoading();
|
760
|
-
}
|
761
|
-
watchOptionsHandler() {
|
762
|
-
if (!this.hasTimedOut) {
|
763
|
-
this.loading = false;
|
764
|
-
clearTimeout(this.timeoutTimer);
|
765
|
-
if (this.isExternalFiltering()) {
|
766
|
-
if (this.options.length > 0) {
|
767
|
-
this.setOptionsValuesFromLabels();
|
768
|
-
this.noOptions = null;
|
769
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
770
|
-
this.filteredOptions = this.uniqueOptions;
|
725
|
+
this.open = false;
|
726
|
+
this.pressedCharacters = "";
|
727
|
+
this.searchableSelectInputValue = null;
|
728
|
+
this.charactersUntilSuggestions = 0;
|
729
|
+
this.disabled = false;
|
730
|
+
this.disableFilter = false;
|
731
|
+
this.emptyOptionListText = "No results found";
|
732
|
+
this.form = undefined;
|
733
|
+
this.formaction = undefined;
|
734
|
+
this.formenctype = undefined;
|
735
|
+
this.formmethod = undefined;
|
736
|
+
this.formnovalidate = undefined;
|
737
|
+
this.formtarget = undefined;
|
738
|
+
this.fullWidth = false;
|
739
|
+
this.helperText = "";
|
740
|
+
this.hideLabel = false;
|
741
|
+
this.includeDescriptionsInSearch = false;
|
742
|
+
this.includeGroupTitlesInSearch = false;
|
743
|
+
this.label = undefined;
|
744
|
+
this.loadingErrorLabel = "Loading Error";
|
745
|
+
this.loadingLabel = "Loading...";
|
746
|
+
this.name = this.inputId;
|
747
|
+
this.placeholder = "Select an option";
|
748
|
+
this.readonly = false;
|
749
|
+
this.required = false;
|
750
|
+
this.searchable = false;
|
751
|
+
this.searchMatchPosition = "anywhere";
|
752
|
+
this.selectOnEnter = false;
|
753
|
+
this.showClearButton = false;
|
754
|
+
this.size = "default";
|
755
|
+
this.small = false;
|
756
|
+
this.timeout = undefined;
|
757
|
+
this.validationStatus = "";
|
758
|
+
this.validationText = "";
|
759
|
+
this.loading = false;
|
760
|
+
this.options = [];
|
761
|
+
this.filteredOptions = this.options;
|
762
|
+
this.uniqueOptions = this.options;
|
763
|
+
this.debounce = 0;
|
764
|
+
this.currDebounce = this.debounce;
|
765
|
+
this.value = undefined;
|
766
|
+
this.initialValue = this.value;
|
767
|
+
this.inputValueToFilter = this.value;
|
768
|
+
this.currValue = this.value;
|
769
|
+
}
|
770
|
+
loadingHandler(newValue) {
|
771
|
+
newValue && this.triggerLoading();
|
772
|
+
}
|
773
|
+
watchOptionsHandler() {
|
774
|
+
if (!this.hasTimedOut) {
|
775
|
+
this.loading = false;
|
776
|
+
clearTimeout(this.timeoutTimer);
|
777
|
+
if (this.isExternalFiltering()) {
|
778
|
+
if (this.options.length > 0) {
|
779
|
+
this.setOptionsValuesFromLabels();
|
780
|
+
this.noOptions = null;
|
781
|
+
this.uniqueOptions = this.deduplicateOptions(this.options);
|
782
|
+
this.filteredOptions = this.uniqueOptions;
|
783
|
+
}
|
784
|
+
else {
|
785
|
+
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
786
|
+
this.uniqueOptions = this.noOptions;
|
787
|
+
this.filteredOptions = this.noOptions;
|
788
|
+
}
|
789
|
+
this.updateSearchableSelectResultAriaLive();
|
790
|
+
this.setDefaultValue();
|
791
|
+
}
|
792
|
+
else {
|
793
|
+
this.setOptionsValuesFromLabels();
|
794
|
+
this.uniqueOptions = this.deduplicateOptions(this.options);
|
795
|
+
this.filteredOptions = this.uniqueOptions;
|
796
|
+
if (this.initialOptionsEmpty) {
|
797
|
+
this.setDefaultValue();
|
798
|
+
this.initialOptionsEmpty = false;
|
799
|
+
}
|
800
|
+
}
|
771
801
|
}
|
772
802
|
else {
|
773
|
-
|
774
|
-
|
775
|
-
this.filteredOptions = this.noOptions;
|
776
|
-
}
|
777
|
-
this.updateSearchableSelectResultAriaLive();
|
778
|
-
this.setDefaultValue();
|
779
|
-
}
|
780
|
-
else {
|
781
|
-
this.setOptionsValuesFromLabels();
|
782
|
-
this.uniqueOptions = this.deduplicateOptions(this.options);
|
783
|
-
this.filteredOptions = this.uniqueOptions;
|
784
|
-
if (this.initialOptionsEmpty) {
|
785
|
-
this.setDefaultValue();
|
786
|
-
this.initialOptionsEmpty = false;
|
803
|
+
if (!this.searchable)
|
804
|
+
this.options = this.noOptions;
|
787
805
|
}
|
788
|
-
}
|
789
806
|
}
|
790
|
-
|
791
|
-
|
792
|
-
this.options = this.noOptions;
|
807
|
+
debounceChangedHandler(newValue) {
|
808
|
+
this.updateOnChangeDebounce(newValue);
|
793
809
|
}
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
if (this.searchable) {
|
803
|
-
this.searchableSelectInputValue =
|
804
|
-
this.getLabelFromValue(this.currValue) || this.currValue;
|
810
|
+
valueChangedHandler() {
|
811
|
+
if (this.value !== this.currValue) {
|
812
|
+
this.currValue = this.value;
|
813
|
+
}
|
814
|
+
if (this.searchable) {
|
815
|
+
this.searchableSelectInputValue =
|
816
|
+
this.getLabelFromValue(this.currValue) || this.currValue;
|
817
|
+
}
|
805
818
|
}
|
806
|
-
|
807
|
-
|
808
|
-
removeFormResetListener(this.host, this.handleFormReset);
|
809
|
-
}
|
810
|
-
componentWillLoad() {
|
811
|
-
this.inheritedAttributes = inheritAttributes(this.host, [
|
812
|
-
...IC_INHERITED_ARIA,
|
813
|
-
"tabindex",
|
814
|
-
"title",
|
815
|
-
]);
|
816
|
-
removeDisabledFalse(this.disabled, this.host);
|
817
|
-
this.setOptionsValuesFromLabels();
|
818
|
-
addFormResetListener(this.host, this.handleFormReset);
|
819
|
-
if (!this.options.length) {
|
820
|
-
this.initialOptionsEmpty = true;
|
819
|
+
disconnectedCallback() {
|
820
|
+
removeFormResetListener(this.el, this.handleFormReset);
|
821
821
|
}
|
822
|
-
|
823
|
-
|
824
|
-
|
822
|
+
componentWillLoad() {
|
823
|
+
this.inheritedAttributes = inheritAttributes(this.el, [
|
824
|
+
...IC_INHERITED_ARIA,
|
825
|
+
"tabindex",
|
826
|
+
"title",
|
827
|
+
]);
|
828
|
+
removeDisabledFalse(this.disabled, this.el);
|
829
|
+
this.setOptionsValuesFromLabels();
|
830
|
+
addFormResetListener(this.el, this.handleFormReset);
|
831
|
+
if (!this.options.length) {
|
832
|
+
this.initialOptionsEmpty = true;
|
833
|
+
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
834
|
+
this.uniqueOptions = this.noOptions;
|
835
|
+
this.filteredOptions = this.noOptions;
|
836
|
+
}
|
837
|
+
else {
|
838
|
+
this.setDefaultValue();
|
839
|
+
this.uniqueOptions = this.deduplicateOptions(this.options);
|
840
|
+
}
|
825
841
|
}
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
842
|
+
componentDidLoad() {
|
843
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Select");
|
844
|
+
if (this.loading) {
|
845
|
+
this.triggerLoading();
|
846
|
+
}
|
847
|
+
this.hiddenInputValue = this.searchable && this.currValue;
|
831
848
|
}
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
this.setTextColor();
|
849
|
+
componentDidRender() {
|
850
|
+
if (this.nativeSelectElement && !this.disabled) {
|
851
|
+
this.setTextColor();
|
852
|
+
}
|
837
853
|
}
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
854
|
+
/**
|
855
|
+
* Sets focus on the input box.
|
856
|
+
*/
|
857
|
+
async setFocus() {
|
858
|
+
if (this.nativeSelectElement) {
|
859
|
+
this.nativeSelectElement.focus();
|
860
|
+
}
|
861
|
+
else if (this.customSelectElement) {
|
862
|
+
this.customSelectElement.focus();
|
863
|
+
}
|
864
|
+
else if (this.searchableSelectElement) {
|
865
|
+
this.searchableSelectElement.focus();
|
866
|
+
}
|
845
867
|
}
|
846
|
-
|
847
|
-
|
868
|
+
updateOnChangeDebounce(newValue) {
|
869
|
+
if (this.currDebounce !== newValue) {
|
870
|
+
this.currDebounce = newValue;
|
871
|
+
}
|
848
872
|
}
|
849
|
-
|
850
|
-
|
873
|
+
debounceAriaLiveUpdate() {
|
874
|
+
clearTimeout(this.debounceAria);
|
875
|
+
window.setTimeout(() => {
|
876
|
+
this.updateSearchableSelectResultAriaLive();
|
877
|
+
}, 800);
|
851
878
|
}
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
879
|
+
setDefaultValue() {
|
880
|
+
if (!this.hasSetDefaultValue && this.currValue) {
|
881
|
+
this.searchableSelectInputValue = this.getDefaultValue(this.currValue);
|
882
|
+
this.initialValue = this.currValue;
|
883
|
+
this.hasSetDefaultValue = true;
|
884
|
+
}
|
856
885
|
}
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
886
|
+
render() {
|
887
|
+
const { small, size, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
888
|
+
renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
889
|
+
const invalid = validationStatus === IcInformationStatus.Error ? "true" : "false";
|
890
|
+
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
891
|
+
return (h(Host, { class: {
|
892
|
+
disabled: disabled,
|
893
|
+
searchable: searchable,
|
894
|
+
small: small || size === "small",
|
895
|
+
"full-width": fullWidth,
|
896
|
+
}, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, small: small || size === "small", fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, readonly ? (h("ic-typography", null, h("p", null, this.getLabelFromValue(currValue)))) : isMobileOrTablet() ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
897
|
+
if (option.children) {
|
898
|
+
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
899
|
+
}
|
900
|
+
else {
|
901
|
+
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
902
|
+
}
|
903
|
+
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open ? "true" : "false", "aria-invalid": invalid, "aria-required": required ? "true" : "false", "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form, formaction: this.formaction, formenctype: this.formenctype, formmethod: this.formmethod, formnovalidate: this.formnovalidate, formtarget: this.formtarget }), this.searchableSelectInputValue &&
|
904
|
+
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
905
|
+
? "Clear input"
|
906
|
+
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
907
|
+
? IcThemeForegroundEnum.Light
|
908
|
+
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
909
|
+
"expand-icon": true,
|
910
|
+
"expand-icon-open": this.open,
|
911
|
+
"expand-icon-filled": !(currValue == null || currValue === ""),
|
912
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${this.getLabelFromValue(currValue) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
913
|
+
"value-text": true,
|
914
|
+
placeholder: this.getLabelFromValue(currValue) === undefined,
|
915
|
+
} }, h("p", null, this.getLabelFromValue(currValue) || placeholder)), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
916
|
+
"expand-icon": true,
|
917
|
+
"expand-icon-open": this.open,
|
918
|
+
"expand-icon-filled": !(currValue == null || currValue === ""),
|
919
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
920
|
+
? IcThemeForegroundEnum.Light
|
921
|
+
: IcThemeForegroundEnum.Dark }))))), !isMobileOrTablet() && (h("ic-menu", { class: {
|
922
|
+
"no-results": this.loading ||
|
923
|
+
this.hasTimedOut ||
|
924
|
+
(this.noOptions !== null &&
|
925
|
+
this.noOptions[0] &&
|
926
|
+
this.noOptions[0].label === this.emptyOptionListText),
|
927
|
+
}, ref: (el) => (this.menu = el), inputEl: searchable
|
928
|
+
? this.searchableSelectElement
|
929
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, small: small || size === "small", menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuKeyPress: this.handleMenuKeyPress, onMenuValueChange: this.handleMenuValueChange, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || this.selectOnEnter ? "manual" : "automatic" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
869
930
|
}
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
this.noOptions[0].label === this.emptyOptionListText));
|
879
|
-
const inputValue = this.searchable ? this.hiddenInputValue : currValue;
|
880
|
-
renderHiddenInput(true, this.host, name, inputValue, disabled);
|
881
|
-
const invalid = validationStatus === IcInformationStatus.Error ? "true" : "false";
|
882
|
-
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
883
|
-
return (h(Host, { class: {
|
884
|
-
disabled: disabled,
|
885
|
-
searchable: searchable,
|
886
|
-
small: small,
|
887
|
-
"full-width": fullWidth,
|
888
|
-
}, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, small: small, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, readonly ? (h("ic-typography", null, h("p", null, this.getLabelFromValue(currValue)))) : isMobileOrTablet() ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
889
|
-
if (option.children) {
|
890
|
-
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
891
|
-
}
|
892
|
-
else {
|
893
|
-
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
894
|
-
}
|
895
|
-
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open ? "true" : "false", "aria-invalid": invalid, "aria-required": required ? "true" : "false", "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur }), this.searchableSelectInputValue &&
|
896
|
-
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
897
|
-
? "Clear input"
|
898
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: small ? "small" : "default", variant: "icon", appearance: this.clearButtonFocused
|
899
|
-
? IcThemeForegroundEnum.Light
|
900
|
-
: IcThemeForegroundEnum.Dark }), h("div", { class: "divider" }))), h("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
901
|
-
"expand-icon": true,
|
902
|
-
"expand-icon-open": this.open,
|
903
|
-
"expand-icon-filled": !(currValue == null || currValue === ""),
|
904
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${this.getLabelFromValue(currValue) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
905
|
-
"value-text": true,
|
906
|
-
placeholder: this.getLabelFromValue(currValue) === undefined,
|
907
|
-
} }, h("p", null, this.getLabelFromValue(currValue) || placeholder)), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
908
|
-
"expand-icon": true,
|
909
|
-
"expand-icon-open": this.open,
|
910
|
-
"expand-icon-filled": !(currValue == null || currValue === ""),
|
911
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), currValue && showClearButton && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: small ? "small" : "default", variant: "icon", appearance: this.clearButtonFocused
|
912
|
-
? IcThemeForegroundEnum.Light
|
913
|
-
: IcThemeForegroundEnum.Dark }))))), !isMobileOrTablet() && (h("ic-menu", { class: {
|
914
|
-
"no-results": noOptionSelect,
|
915
|
-
}, ref: (el) => (this.menu = el), inputEl: searchable
|
916
|
-
? this.searchableSelectElement
|
917
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, small: small, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: currValue, fullWidth: fullWidth, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuKeyPress: this.handleMenuKeyPress, onMenuValueChange: this.handleMenuValueChange, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.host, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable ? "manual" : "automatic" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
918
|
-
}
|
919
|
-
static get delegatesFocus() { return true; }
|
920
|
-
get host() { return getElement(this); }
|
921
|
-
static get watchers() { return {
|
922
|
-
"loading": ["loadingHandler"],
|
923
|
-
"options": ["watchOptionsHandler"],
|
924
|
-
"debounce": ["debounceChangedHandler"],
|
925
|
-
"value": ["valueChangedHandler"]
|
926
|
-
}; }
|
931
|
+
static get delegatesFocus() { return true; }
|
932
|
+
get el() { return getElement(this); }
|
933
|
+
static get watchers() { return {
|
934
|
+
"loading": ["loadingHandler"],
|
935
|
+
"options": ["watchOptionsHandler"],
|
936
|
+
"debounce": ["debounceChangedHandler"],
|
937
|
+
"value": ["valueChangedHandler"]
|
938
|
+
}; }
|
927
939
|
};
|
928
940
|
Select.style = icSelectCss;
|
929
941
|
|
@@ -931,229 +943,220 @@ const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/neco
|
|
931
943
|
|
932
944
|
let inputIds = 0;
|
933
945
|
const TextField = class {
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
this.fullWidth = false;
|
987
|
-
this.helperText = "";
|
988
|
-
this.hideLabel = false;
|
989
|
-
this.hiddenInput = true;
|
990
|
-
this.inputId = `ic-text-field-input-${inputIds++}`;
|
991
|
-
this.inputmode = "text";
|
992
|
-
this.label = undefined;
|
993
|
-
this.max = undefined;
|
994
|
-
this.maxLength = 0;
|
995
|
-
this.min = undefined;
|
996
|
-
this.name = this.inputId;
|
997
|
-
this.placeholder = "";
|
998
|
-
this.readonly = false;
|
999
|
-
this.required = false;
|
1000
|
-
this.resize = false;
|
1001
|
-
this.role = undefined;
|
1002
|
-
this.rows = 1;
|
1003
|
-
this.small = false;
|
1004
|
-
this.spellcheck = false;
|
1005
|
-
this.truncateValue = undefined;
|
1006
|
-
this.type = "text";
|
1007
|
-
this.validationInline = false;
|
1008
|
-
this.validationInlineInternal = false;
|
1009
|
-
this.validationStatus = "";
|
1010
|
-
this.validationText = "";
|
1011
|
-
this.debounce = 0;
|
1012
|
-
this.value = "";
|
1013
|
-
this.initialValue = this.value;
|
1014
|
-
}
|
1015
|
-
debounceChanged() {
|
1016
|
-
this.icChange = debounceEvent(this.icChange, this.debounce);
|
1017
|
-
}
|
1018
|
-
watchValueHandler(newValue) {
|
1019
|
-
if (this.inputEl && this.inputEl.value !== newValue) {
|
1020
|
-
this.inputEl.value = newValue;
|
1021
|
-
}
|
1022
|
-
this.numChars = newValue.length;
|
1023
|
-
if (this.type === "number") {
|
1024
|
-
if (newValue && Number(newValue) < Number(this.min)) {
|
1025
|
-
this.minValueUnattained = true;
|
1026
|
-
}
|
1027
|
-
else {
|
1028
|
-
this.minValueUnattained = false;
|
1029
|
-
}
|
1030
|
-
if (Number(newValue) > Number(this.max)) {
|
1031
|
-
this.maxValueExceeded = true;
|
1032
|
-
}
|
1033
|
-
else {
|
946
|
+
constructor(hostRef) {
|
947
|
+
registerInstance(this, hostRef);
|
948
|
+
this.getValidationText = createEvent(this, "getValidationText", 7);
|
949
|
+
this.icBlur = createEvent(this, "icBlur", 7);
|
950
|
+
this.icChange = createEvent(this, "icChange", 7);
|
951
|
+
this.icFocus = createEvent(this, "icFocus", 7);
|
952
|
+
this.icInput = createEvent(this, "icInput", 7);
|
953
|
+
this.icKeydown = createEvent(this, "icKeydown", 7);
|
954
|
+
this.inheritedAttributes = {};
|
955
|
+
this.showLeftIcon = this.hasLeftIconSlot();
|
956
|
+
this.getMaxLengthExceeded = (value) => {
|
957
|
+
this.numChars = value.length;
|
958
|
+
if (this.type === "number") {
|
959
|
+
this.minValueUnattained =
|
960
|
+
value && Number(value) < Number(this.min) ? true : false;
|
961
|
+
this.maxValueExceeded = Number(value) > Number(this.max) ? true : false;
|
962
|
+
}
|
963
|
+
if (this.maxLength > 0) {
|
964
|
+
this.maxLengthExceeded = value.length > this.maxLength ? true : false;
|
965
|
+
}
|
966
|
+
};
|
967
|
+
this.onInput = (ev) => {
|
968
|
+
this.value = ev.target.value;
|
969
|
+
this.icInput.emit({ value: this.value });
|
970
|
+
};
|
971
|
+
this.onBlur = (ev) => {
|
972
|
+
const value = ev.target.value;
|
973
|
+
this.icBlur.emit({ value: value });
|
974
|
+
};
|
975
|
+
this.onFocus = (ev) => {
|
976
|
+
const value = ev.target.value;
|
977
|
+
this.icFocus.emit({ value: value });
|
978
|
+
};
|
979
|
+
this.isTextArea = () => {
|
980
|
+
return this.rows > 1;
|
981
|
+
};
|
982
|
+
this.getInlineValidationText = () => {
|
983
|
+
this.getValidationText.emit({ value: this.validationText });
|
984
|
+
};
|
985
|
+
this.hasStatus = (status) => {
|
986
|
+
return status !== "" && !this.disabled;
|
987
|
+
};
|
988
|
+
this.showStatusText = (status) => {
|
989
|
+
return (this.hasStatus(status) &&
|
990
|
+
!(status == IcInformationStatus.Success && this.validationInline) &&
|
991
|
+
!this.validationInlineInternal);
|
992
|
+
};
|
993
|
+
this.handleFormReset = () => {
|
994
|
+
this.value = this.initialValue;
|
995
|
+
};
|
996
|
+
this.numChars = 0;
|
997
|
+
this.maxLengthExceeded = false;
|
1034
998
|
this.maxValueExceeded = false;
|
1035
|
-
|
999
|
+
this.minValueUnattained = false;
|
1000
|
+
this.ariaActiveDescendant = undefined;
|
1001
|
+
this.ariaAutocomplete = undefined;
|
1002
|
+
this.ariaExpanded = undefined;
|
1003
|
+
this.ariaOwns = undefined;
|
1004
|
+
this.autocapitalize = "off";
|
1005
|
+
this.autocomplete = "off";
|
1006
|
+
this.autocorrect = "off";
|
1007
|
+
this.autoFocus = false;
|
1008
|
+
this.disabled = false;
|
1009
|
+
this.fullWidth = false;
|
1010
|
+
this.helperText = "";
|
1011
|
+
this.hideLabel = false;
|
1012
|
+
this.hiddenInput = true;
|
1013
|
+
this.inputId = `ic-text-field-input-${inputIds++}`;
|
1014
|
+
this.inputmode = "text";
|
1015
|
+
this.label = undefined;
|
1016
|
+
this.max = undefined;
|
1017
|
+
this.maxLength = 0;
|
1018
|
+
this.min = undefined;
|
1019
|
+
this.name = this.inputId;
|
1020
|
+
this.placeholder = "";
|
1021
|
+
this.readonly = false;
|
1022
|
+
this.required = false;
|
1023
|
+
this.resize = false;
|
1024
|
+
this.role = undefined;
|
1025
|
+
this.rows = 1;
|
1026
|
+
this.size = "default";
|
1027
|
+
this.small = false;
|
1028
|
+
this.spellcheck = false;
|
1029
|
+
this.truncateValue = undefined;
|
1030
|
+
this.type = "text";
|
1031
|
+
this.validationInline = false;
|
1032
|
+
this.validationInlineInternal = false;
|
1033
|
+
this.validationStatus = "";
|
1034
|
+
this.validationText = "";
|
1035
|
+
this.debounce = 0;
|
1036
|
+
this.value = "";
|
1037
|
+
this.initialValue = this.value;
|
1036
1038
|
}
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1039
|
+
debounceChanged() {
|
1040
|
+
this.icChange = debounceEvent(this.icChange, this.debounce);
|
1041
|
+
}
|
1042
|
+
watchValueHandler(newValue) {
|
1043
|
+
if (this.inputEl && this.inputEl.value !== newValue) {
|
1044
|
+
this.inputEl.value = newValue;
|
1045
|
+
}
|
1046
|
+
this.getMaxLengthExceeded(newValue);
|
1047
|
+
this.icChange.emit({ value: newValue });
|
1048
|
+
}
|
1049
|
+
connectedCallback() {
|
1050
|
+
this.debounceChanged();
|
1051
|
+
}
|
1052
|
+
disconnectedCallback() {
|
1053
|
+
removeFormResetListener(this.el, this.handleFormReset);
|
1044
1054
|
}
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
if (this.readonly) {
|
1062
|
-
this.maxLengthExceeded = false;
|
1063
|
-
this.maxValueExceeded = false;
|
1064
|
-
this.minValueUnattained = false;
|
1055
|
+
componentWillLoad() {
|
1056
|
+
if (this.value !== this.initialValue) {
|
1057
|
+
this.watchValueHandler(this.value);
|
1058
|
+
}
|
1059
|
+
this.getMaxLengthExceeded(this.value);
|
1060
|
+
this.inheritedAttributes = inheritAttributes(this.el, [
|
1061
|
+
...IC_INHERITED_ARIA,
|
1062
|
+
"title",
|
1063
|
+
]);
|
1064
|
+
if (this.readonly) {
|
1065
|
+
this.maxLengthExceeded = false;
|
1066
|
+
this.maxValueExceeded = false;
|
1067
|
+
this.minValueUnattained = false;
|
1068
|
+
}
|
1069
|
+
addFormResetListener(this.el, this.handleFormReset);
|
1070
|
+
removeDisabledFalse(this.disabled, this.el);
|
1065
1071
|
}
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
if (this.validationInlineInternal) {
|
1072
|
-
this.getInlineValidationText();
|
1072
|
+
componentDidLoad() {
|
1073
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Text Field");
|
1074
|
+
if (this.validationInlineInternal) {
|
1075
|
+
this.getInlineValidationText();
|
1076
|
+
}
|
1073
1077
|
}
|
1074
|
-
|
1075
|
-
|
1076
|
-
this.icKeydown.emit({ event: ev });
|
1077
|
-
}
|
1078
|
-
/**
|
1079
|
-
* Sets focus on the native `input`.
|
1080
|
-
*/
|
1081
|
-
async setFocus() {
|
1082
|
-
if (this.inputEl) {
|
1083
|
-
this.inputEl.focus();
|
1078
|
+
handleKeyDown(ev) {
|
1079
|
+
this.icKeydown.emit({ event: ev });
|
1084
1080
|
}
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
: validationStatus;
|
1097
|
-
const currentValidationText = maxLengthExceeded
|
1098
|
-
? "Maximum length exceeded"
|
1099
|
-
: maxValueExceeded
|
1100
|
-
? `Maximum value of ${max} exceeded`
|
1101
|
-
: minValueUnattained
|
1102
|
-
? `Minimum value of ${min} not met`
|
1103
|
-
: validationText;
|
1104
|
-
const maxNumChars = readonly ? 0 : maxLength;
|
1105
|
-
const messageAriaLive = maxLengthExceeded ||
|
1106
|
-
maxValueExceeded ||
|
1107
|
-
minValueUnattained ||
|
1108
|
-
(maxLength === 0 && currentStatus === IcInformationStatus.Error)
|
1109
|
-
? "assertive"
|
1110
|
-
: "polite";
|
1111
|
-
const showStatusText = this.showStatusText(currentStatus);
|
1112
|
-
const multiline = this.isTextArea();
|
1113
|
-
const hiddenCharCountDescId = maxLength > 0 ? inputId + "-charcount-desc" : "";
|
1114
|
-
const describedBy = (hiddenCharCountDescId +
|
1115
|
-
" " +
|
1116
|
-
getInputDescribedByText(inputId, helperText !== "", showStatusText)).trim();
|
1117
|
-
if (this.showLeftIcon && !readonly && disabledMode) {
|
1118
|
-
this.showLeftIcon = false;
|
1081
|
+
/**
|
1082
|
+
* Sets focus on the native `input`.
|
1083
|
+
*/
|
1084
|
+
async setFocus() {
|
1085
|
+
if (this.inputEl) {
|
1086
|
+
this.inputEl.focus();
|
1087
|
+
}
|
1088
|
+
}
|
1089
|
+
hasLeftIconSlot() {
|
1090
|
+
const iconEl = this.el.querySelector(`[slot="icon"]`);
|
1091
|
+
return iconEl !== null;
|
1119
1092
|
}
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1093
|
+
render() {
|
1094
|
+
const { inputId, name, label, required, size, small, placeholder, helperText, rows, resize, disabled, value, min, max, maxLength, numChars, readonly, maxLengthExceeded, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, } = this;
|
1095
|
+
const disabledMode = readonly ? true : disabled;
|
1096
|
+
const placeholderText = disabled ? "" : placeholder;
|
1097
|
+
const currentStatus = maxLengthExceeded || maxValueExceeded || minValueUnattained
|
1098
|
+
? IcInformationStatus.Error
|
1099
|
+
: validationStatus;
|
1100
|
+
const currentValidationText = maxLengthExceeded
|
1101
|
+
? "Maximum length exceeded"
|
1102
|
+
: maxValueExceeded
|
1103
|
+
? `Maximum value of ${max} exceeded`
|
1104
|
+
: minValueUnattained
|
1105
|
+
? `Minimum value of ${min} not met`
|
1106
|
+
: validationText;
|
1107
|
+
const maxNumChars = readonly ? 0 : maxLength;
|
1108
|
+
const messageAriaLive = maxLengthExceeded ||
|
1109
|
+
maxValueExceeded ||
|
1110
|
+
minValueUnattained ||
|
1111
|
+
(maxLength === 0 && currentStatus === IcInformationStatus.Error)
|
1112
|
+
? "assertive"
|
1113
|
+
: "polite";
|
1114
|
+
const showStatusText = this.showStatusText(currentStatus);
|
1115
|
+
const multiline = this.isTextArea();
|
1116
|
+
const hiddenCharCountDescId = maxLength > 0 ? inputId + "-charcount-desc" : "";
|
1117
|
+
const describedBy = (hiddenCharCountDescId +
|
1118
|
+
" " +
|
1119
|
+
getInputDescribedByText(inputId, helperText !== "", showStatusText)).trim();
|
1120
|
+
if (this.showLeftIcon && !readonly && disabledMode) {
|
1121
|
+
this.showLeftIcon = false;
|
1122
|
+
}
|
1123
|
+
const invalid = currentStatus === IcInformationStatus.Error ? "true" : "false";
|
1124
|
+
const disabledText = disabledMode && !readonly;
|
1125
|
+
if (hiddenInput) {
|
1126
|
+
renderHiddenInput(true, this.el, name, value, disabledMode);
|
1127
|
+
}
|
1128
|
+
return (h(Host, { class: { ["fullwidth"]: fullWidth } }, h("ic-input-container", { readonly: readonly, disabled: disabledMode }, !this.hideLabel && (h("ic-input-label", { for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), h("ic-input-component-container", { size: small ? "small" : size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, this.showLeftIcon && (h("span", { class: {
|
1129
|
+
["readonly"]: readonly,
|
1130
|
+
["has-value"]: value.length > 0,
|
1131
|
+
}, slot: "left-icon" }, h("slot", { name: "icon" }))), !multiline && (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: this.type, min: min, max: max, value: value, class: {
|
1132
|
+
["no-left-pad"]: !this.showLeftIcon && readonly,
|
1133
|
+
["readonly"]: readonly,
|
1134
|
+
["truncate-value"]: truncateValue,
|
1135
|
+
}, placeholder: placeholderText, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": this.ariaActiveDescendant, "aria-expanded": this.ariaExpanded, "aria-owns": this.ariaOwns, autocomplete: this.autocomplete, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode, role: this.role }, this.inheritedAttributes))), multiline && (h("textarea", Object.assign({ id: inputId, class: {
|
1136
|
+
["no-resize"]: resize === false || readonly,
|
1137
|
+
["no-left-pad"]: !this.showLeftIcon && readonly,
|
1138
|
+
["readonly"]: readonly,
|
1139
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholderText, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode }, this.inheritedAttributes))), isSlotUsed(this.el, "clear-button") && (h("slot", { name: "clear-button" })), isSlotUsed(this.el, "search-submit-button") && (h("slot", { name: "search-submit-button" }))), isSlotUsed(this.el, "menu") && h("slot", { name: "menu" }), (!isEmptyString(validationStatus) ||
|
1140
|
+
!isEmptyString(validationText) ||
|
1141
|
+
maxNumChars > 0 ||
|
1142
|
+
maxValueExceeded ||
|
1143
|
+
minValueUnattained) &&
|
1144
|
+
!validationInlineInternal && (h("ic-input-validation", { status: this.hasStatus(currentStatus) === false ||
|
1145
|
+
(currentStatus === IcInformationStatus.Success &&
|
1146
|
+
validationInline) ||
|
1147
|
+
validationInlineInternal
|
1148
|
+
? ""
|
1149
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, h("ic-typography", { variant: "caption", class: {
|
1150
|
+
["maxlengthtext"]: true,
|
1151
|
+
["error"]: maxLengthExceeded,
|
1152
|
+
["disabled"]: disabledText,
|
1153
|
+
} }, h("span", { "aria-live": "polite", id: `${inputId}-charcount`, class: "charcount" }, numChars, "/", maxNumChars), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))))));
|
1124
1154
|
}
|
1125
|
-
|
1126
|
-
|
1127
|
-
["
|
1128
|
-
|
1129
|
-
|
1130
|
-
["readonly"]: readonly,
|
1131
|
-
["truncate-value"]: truncateValue,
|
1132
|
-
}, placeholder: placeholderText, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": this.ariaActiveDescendant, "aria-expanded": this.ariaExpanded, "aria-owns": this.ariaOwns, autocomplete: this.autocomplete, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode, role: this.role }, this.inheritedAttributes))), multiline && (h("textarea", Object.assign({ id: inputId, class: {
|
1133
|
-
["no-resize"]: resize === false || readonly,
|
1134
|
-
["no-left-pad"]: !this.showLeftIcon && readonly,
|
1135
|
-
["readonly"]: readonly,
|
1136
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholderText, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode }, this.inheritedAttributes))), isSlotUsed(this.el, "clear-button") && (h("slot", { name: "clear-button" })), isSlotUsed(this.el, "search-submit-button") && (h("slot", { name: "search-submit-button" }))), isSlotUsed(this.el, "menu") && h("slot", { name: "menu" }), (!isEmptyString(validationStatus) ||
|
1137
|
-
!isEmptyString(validationText) ||
|
1138
|
-
maxNumChars > 0 ||
|
1139
|
-
maxValueExceeded ||
|
1140
|
-
minValueUnattained) &&
|
1141
|
-
!validationInlineInternal && (h("ic-input-validation", { status: this.hasStatus(currentStatus) === false ||
|
1142
|
-
(currentStatus === IcInformationStatus.Success &&
|
1143
|
-
validationInline) ||
|
1144
|
-
validationInlineInternal
|
1145
|
-
? ""
|
1146
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, h("ic-typography", { variant: "caption", class: {
|
1147
|
-
["maxlengthtext"]: true,
|
1148
|
-
["error"]: maxLengthExceeded,
|
1149
|
-
["disabled"]: disabledText,
|
1150
|
-
} }, h("span", { "aria-live": "polite", id: `${inputId}-charcount`, class: "charcount" }, numChars, "/", maxNumChars), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))))));
|
1151
|
-
}
|
1152
|
-
get el() { return getElement(this); }
|
1153
|
-
static get watchers() { return {
|
1154
|
-
"debounce": ["debounceChanged"],
|
1155
|
-
"value": ["watchValueHandler"]
|
1156
|
-
}; }
|
1155
|
+
get el() { return getElement(this); }
|
1156
|
+
static get watchers() { return {
|
1157
|
+
"debounce": ["debounceChanged"],
|
1158
|
+
"value": ["watchValueHandler"]
|
1159
|
+
}; }
|
1157
1160
|
};
|
1158
1161
|
TextField.style = icTextFieldCss;
|
1159
1162
|
|