@ukic/canary-web-components 2.0.0-canary.13 → 2.0.0-canary.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-6acbb97e.js → helpers-191dca49.js} +56 -89
- package/dist/cjs/helpers-191dca49.js.map +1 -0
- package/dist/cjs/{helpers-f75cf7cf.js → helpers-765a5118.js} +30 -1
- package/dist/cjs/helpers-765a5118.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +3 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +15 -9
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +55 -84
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +35 -86
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +23 -16
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +32 -30
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +34 -21
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-table.cjs.entry.js +154 -31
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +6 -6
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +322 -0
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +34 -16
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +176 -35
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +26 -5
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +58 -17
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +3 -2
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +40 -26
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +9 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +5 -2
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -1
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +13 -22
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ic-data-table/ic-data-table.css +76 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +368 -43
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +258 -0
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +320 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +91 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
- package/dist/collection/components/ic-date-input/ic-date-input.css +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js +4 -4
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js +176 -35
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +180 -3
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +145 -116
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +47 -10
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +55 -87
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +28 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion-group.js +2 -1
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-back-to-top.js +22 -9
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +59 -84
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +2 -0
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-button2.js +33 -84
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +1 -1
- package/dist/components/ic-checkbox-group.js +27 -17
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +32 -30
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +39 -23
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-table-title-bar.d.ts +11 -0
- package/dist/components/ic-data-table-title-bar.js +136 -0
- package/dist/components/ic-data-table-title-bar.js.map +1 -0
- package/dist/components/ic-data-table.js +179 -37
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +6 -6
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-empty-state.js +1 -57
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/{esm/ic-empty-state.entry.js → components/ic-empty-state2.js} +38 -11
- package/dist/components/ic-empty-state2.js.map +1 -0
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link.js +1 -1
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-hero.js +1 -1
- package/dist/components/ic-horizontal-scroll2.js +1 -1
- package/dist/components/ic-link2.js +35 -17
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +1 -1
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-item2.js +2 -2
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +2 -2
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +177 -36
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-button.js +27 -6
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-pagination-bar2.js +126 -99
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +1 -1
- package/dist/components/ic-popover-menu.js +3 -2
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +40 -26
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +11 -5
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-select-with-multi.js +1 -1
- package/dist/components/ic-select2.js +33 -11
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +1 -1
- package/dist/components/ic-step.js +4 -1
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +3 -1
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +1 -1
- package/dist/components/ic-tab.js +1 -1
- package/dist/components/ic-text-field2.js +27 -8
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +13 -22
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast.js +1 -1
- package/dist/components/ic-toggle-button.js +1 -1
- package/dist/components/ic-tooltip2.js +1 -1
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +1 -1
- package/dist/components/ic-typography2.js +1 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-b3d21d06.entry.js → p-005e83b0.entry.js} +2 -2
- package/dist/core/{p-b8a3b16d.entry.js → p-05df3901.entry.js} +2 -2
- package/dist/core/{p-3d0185a4.entry.js → p-0646ef0c.entry.js} +2 -2
- package/dist/core/p-0ec09955.entry.js +2 -0
- package/dist/core/p-0ec09955.entry.js.map +1 -0
- package/dist/core/p-114bea92.entry.js +2 -0
- package/dist/core/p-114bea92.entry.js.map +1 -0
- package/dist/core/p-11bbb09c.js +2 -0
- package/dist/core/p-11bbb09c.js.map +1 -0
- package/dist/core/p-11e736a3.entry.js +2 -0
- package/dist/core/p-11e736a3.entry.js.map +1 -0
- package/dist/core/{p-e0e26834.entry.js → p-16c82b13.entry.js} +2 -2
- package/dist/core/{p-094a0455.entry.js → p-1b35b6af.entry.js} +2 -2
- package/dist/core/p-1cf8a04e.entry.js +2 -0
- package/dist/core/p-1cf8a04e.entry.js.map +1 -0
- package/dist/core/{p-849f43c3.entry.js → p-2170f59e.entry.js} +2 -2
- package/dist/core/p-2e167ebb.entry.js +2 -0
- package/dist/core/p-2e167ebb.entry.js.map +1 -0
- package/dist/core/p-3f20608d.entry.js +2 -0
- package/dist/core/p-3f20608d.entry.js.map +1 -0
- package/dist/core/p-41606de1.entry.js +2 -0
- package/dist/core/p-41606de1.entry.js.map +1 -0
- package/dist/core/{p-8b1d128c.entry.js → p-4415c93f.entry.js} +2 -2
- package/dist/core/{p-6b68ee01.entry.js → p-457dd939.entry.js} +2 -2
- package/dist/core/p-457dd939.entry.js.map +1 -0
- package/dist/core/{p-04f46dac.entry.js → p-4737844f.entry.js} +2 -2
- package/dist/core/p-4737844f.entry.js.map +1 -0
- package/dist/core/{p-8ef85b15.entry.js → p-53374a27.entry.js} +2 -2
- package/dist/core/{p-7c8f85fd.entry.js → p-53e45d51.entry.js} +2 -2
- package/dist/core/{p-0707f2fc.entry.js → p-593f0318.entry.js} +2 -2
- package/dist/core/{p-aabab75f.entry.js → p-5d5979fa.entry.js} +2 -2
- package/dist/core/{p-c7b52046.entry.js → p-66af5958.entry.js} +2 -2
- package/dist/core/p-67b0faac.entry.js +2 -0
- package/dist/core/p-67b0faac.entry.js.map +1 -0
- package/dist/core/p-6b277e09.entry.js +2 -0
- package/dist/core/p-6b277e09.entry.js.map +1 -0
- package/dist/core/{p-2ec33c00.entry.js → p-72cea8fd.entry.js} +2 -2
- package/dist/core/p-73dad5cf.entry.js +2 -0
- package/dist/core/p-73dad5cf.entry.js.map +1 -0
- package/dist/core/{p-05d0ac42.entry.js → p-85e2a9af.entry.js} +2 -2
- package/dist/core/p-85e2a9af.entry.js.map +1 -0
- package/dist/core/{p-bbcd6d06.entry.js → p-872c3555.entry.js} +2 -2
- package/dist/core/{p-dae1779d.entry.js → p-87743c4a.entry.js} +2 -2
- package/dist/core/{p-55d819a6.entry.js → p-8cfc74da.entry.js} +2 -2
- package/dist/core/{p-bf316546.entry.js → p-9729086f.entry.js} +2 -2
- package/dist/core/{p-f4965c26.entry.js → p-9cc19e91.entry.js} +2 -2
- package/dist/core/{p-da578abf.entry.js → p-9de20265.entry.js} +2 -2
- package/dist/core/p-a088373e.entry.js +2 -0
- package/dist/core/p-a088373e.entry.js.map +1 -0
- package/dist/core/{p-169dcfdd.entry.js → p-a0e42564.entry.js} +2 -2
- package/dist/core/p-a8110c27.entry.js +2 -0
- package/dist/core/p-a8110c27.entry.js.map +1 -0
- package/dist/core/{p-f9fcdd21.entry.js → p-a9d07792.entry.js} +2 -2
- package/dist/core/p-a9d07792.entry.js.map +1 -0
- package/dist/core/{p-66b8f0a7.entry.js → p-b08f4371.entry.js} +2 -2
- package/dist/core/{p-a9ed6a71.entry.js → p-b79c0631.entry.js} +2 -2
- package/dist/core/p-b79c0631.entry.js.map +1 -0
- package/dist/core/p-b8247636.entry.js +2 -0
- package/dist/core/p-b8247636.entry.js.map +1 -0
- package/dist/core/{p-fdd8f3a5.entry.js → p-badfdf2a.entry.js} +2 -2
- package/dist/core/p-be56fa17.entry.js +2 -0
- package/dist/core/{p-31800427.entry.js.map → p-be56fa17.entry.js.map} +1 -1
- package/dist/core/{p-ed7379e3.entry.js → p-bebf535f.entry.js} +2 -2
- package/dist/core/p-c07cef0e.js +2 -0
- package/dist/core/p-c07cef0e.js.map +1 -0
- package/dist/core/p-c0d88af8.entry.js +2 -0
- package/dist/core/p-c0d88af8.entry.js.map +1 -0
- package/dist/core/p-c3af5dab.entry.js +2 -0
- package/dist/core/p-c3af5dab.entry.js.map +1 -0
- package/dist/core/{p-981b6f12.entry.js → p-c3dabce4.entry.js} +2 -2
- package/dist/core/{p-bcfbd465.entry.js → p-c7e932b5.entry.js} +2 -2
- package/dist/core/{p-1a4bce88.entry.js → p-d09aaa5b.entry.js} +2 -2
- package/dist/core/{p-3f4c408a.entry.js → p-d59a72a9.entry.js} +2 -2
- package/dist/core/p-d59a72a9.entry.js.map +1 -0
- package/dist/core/{p-1170c02d.entry.js → p-d71e9cb5.entry.js} +2 -2
- package/dist/core/{p-b612d68b.entry.js → p-ecd6d123.entry.js} +2 -2
- package/dist/core/p-ecd6d123.entry.js.map +1 -0
- package/dist/core/p-ee52a11a.entry.js +2 -0
- package/dist/core/p-ee52a11a.entry.js.map +1 -0
- package/dist/core/p-f11597df.entry.js +2 -0
- package/dist/core/p-f11597df.entry.js.map +1 -0
- package/dist/core/p-f1f3acd2.entry.js +2 -0
- package/dist/core/p-f1f3acd2.entry.js.map +1 -0
- package/dist/core/{p-e676069e.entry.js → p-f659e5eb.entry.js} +2 -2
- package/dist/core/{p-ffa94639.entry.js → p-fc2551c0.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f328a7b6.js → helpers-8df79303.js} +29 -2
- package/dist/esm/helpers-8df79303.js.map +1 -0
- package/dist/esm/{helpers-451953f9.js → helpers-da05c476.js} +56 -88
- package/dist/esm/helpers-da05c476.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +3 -1
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +15 -9
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +55 -84
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +3 -1
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +35 -86
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +23 -16
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +32 -30
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +34 -21
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
- package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
- package/dist/esm/ic-data-table.entry.js +155 -32
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +6 -6
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +1 -1
- package/dist/esm/ic-dialog.entry.js +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +317 -0
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +1 -1
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +1 -1
- package/dist/esm/ic-link.entry.js +35 -17
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +176 -35
- package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-menu.entry.js +3 -3
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +27 -6
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +1 -1
- package/dist/esm/ic-pagination_4.entry.js +59 -18
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +3 -2
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +40 -26
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +9 -4
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +1 -1
- package/dist/esm/ic-side-navigation.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-step.entry.js +5 -2
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +2 -1
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +1 -1
- package/dist/esm/ic-tab-panel.entry.js +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +13 -22
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +1 -1
- package/dist/esm/ic-toggle-button.entry.js +1 -1
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js +2 -2
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +79 -3
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +9 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +59 -0
- package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
- package/dist/types/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +10 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +24 -14
- package/dist/types/components.d.ts +207 -28
- package/dist/types/utils/types.d.ts +5 -5
- package/hydrate/index.js +1445 -1050
- package/package.json +3 -3
- package/dist/cjs/helpers-6acbb97e.js.map +0 -1
- package/dist/cjs/helpers-f75cf7cf.js.map +0 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
- package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
- package/dist/core/p-04f46dac.entry.js.map +0 -1
- package/dist/core/p-05d0ac42.entry.js.map +0 -1
- package/dist/core/p-1c3bd46d.entry.js +0 -2
- package/dist/core/p-1c3bd46d.entry.js.map +0 -1
- package/dist/core/p-28bddd8d.entry.js +0 -2
- package/dist/core/p-28bddd8d.entry.js.map +0 -1
- package/dist/core/p-31800427.entry.js +0 -2
- package/dist/core/p-3b0caac0.js +0 -2
- package/dist/core/p-3b0caac0.js.map +0 -1
- package/dist/core/p-3f4c408a.entry.js.map +0 -1
- package/dist/core/p-4020d7f7.entry.js +0 -2
- package/dist/core/p-4020d7f7.entry.js.map +0 -1
- package/dist/core/p-402fd288.entry.js +0 -2
- package/dist/core/p-402fd288.entry.js.map +0 -1
- package/dist/core/p-49449a2d.entry.js +0 -2
- package/dist/core/p-49449a2d.entry.js.map +0 -1
- package/dist/core/p-4a30b0fc.entry.js +0 -2
- package/dist/core/p-4a30b0fc.entry.js.map +0 -1
- package/dist/core/p-4b361789.entry.js +0 -2
- package/dist/core/p-4b361789.entry.js.map +0 -1
- package/dist/core/p-50cfc2bb.entry.js +0 -2
- package/dist/core/p-50cfc2bb.entry.js.map +0 -1
- package/dist/core/p-58c87b3d.entry.js +0 -2
- package/dist/core/p-58c87b3d.entry.js.map +0 -1
- package/dist/core/p-623f911f.entry.js +0 -2
- package/dist/core/p-623f911f.entry.js.map +0 -1
- package/dist/core/p-6b68ee01.entry.js.map +0 -1
- package/dist/core/p-7d1381ef.entry.js +0 -2
- package/dist/core/p-7d1381ef.entry.js.map +0 -1
- package/dist/core/p-925da2d2.entry.js +0 -2
- package/dist/core/p-925da2d2.entry.js.map +0 -1
- package/dist/core/p-9e3178e8.entry.js +0 -2
- package/dist/core/p-9e3178e8.entry.js.map +0 -1
- package/dist/core/p-a9ed6a71.entry.js.map +0 -1
- package/dist/core/p-b612d68b.entry.js.map +0 -1
- package/dist/core/p-c51496ee.entry.js +0 -2
- package/dist/core/p-c51496ee.entry.js.map +0 -1
- package/dist/core/p-c7590421.entry.js +0 -2
- package/dist/core/p-c7590421.entry.js.map +0 -1
- package/dist/core/p-cd799087.js +0 -2
- package/dist/core/p-cd799087.js.map +0 -1
- package/dist/core/p-e189f1d0.entry.js +0 -2
- package/dist/core/p-e189f1d0.entry.js.map +0 -1
- package/dist/core/p-e30f2623.entry.js +0 -2
- package/dist/core/p-e30f2623.entry.js.map +0 -1
- package/dist/core/p-f9ee48f7.entry.js +0 -2
- package/dist/core/p-f9ee48f7.entry.js.map +0 -1
- package/dist/core/p-f9fcdd21.entry.js.map +0 -1
- package/dist/esm/helpers-451953f9.js.map +0 -1
- package/dist/esm/helpers-f328a7b6.js.map +0 -1
- package/dist/esm/ic-empty-state.entry.js.map +0 -1
- package/dist/esm/ic-pagination-bar.entry.js +0 -265
- package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
- package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
- /package/dist/core/{p-b3d21d06.entry.js.map → p-005e83b0.entry.js.map} +0 -0
- /package/dist/core/{p-b8a3b16d.entry.js.map → p-05df3901.entry.js.map} +0 -0
- /package/dist/core/{p-3d0185a4.entry.js.map → p-0646ef0c.entry.js.map} +0 -0
- /package/dist/core/{p-e0e26834.entry.js.map → p-16c82b13.entry.js.map} +0 -0
- /package/dist/core/{p-094a0455.entry.js.map → p-1b35b6af.entry.js.map} +0 -0
- /package/dist/core/{p-849f43c3.entry.js.map → p-2170f59e.entry.js.map} +0 -0
- /package/dist/core/{p-8b1d128c.entry.js.map → p-4415c93f.entry.js.map} +0 -0
- /package/dist/core/{p-8ef85b15.entry.js.map → p-53374a27.entry.js.map} +0 -0
- /package/dist/core/{p-7c8f85fd.entry.js.map → p-53e45d51.entry.js.map} +0 -0
- /package/dist/core/{p-0707f2fc.entry.js.map → p-593f0318.entry.js.map} +0 -0
- /package/dist/core/{p-aabab75f.entry.js.map → p-5d5979fa.entry.js.map} +0 -0
- /package/dist/core/{p-c7b52046.entry.js.map → p-66af5958.entry.js.map} +0 -0
- /package/dist/core/{p-2ec33c00.entry.js.map → p-72cea8fd.entry.js.map} +0 -0
- /package/dist/core/{p-bbcd6d06.entry.js.map → p-872c3555.entry.js.map} +0 -0
- /package/dist/core/{p-dae1779d.entry.js.map → p-87743c4a.entry.js.map} +0 -0
- /package/dist/core/{p-55d819a6.entry.js.map → p-8cfc74da.entry.js.map} +0 -0
- /package/dist/core/{p-bf316546.entry.js.map → p-9729086f.entry.js.map} +0 -0
- /package/dist/core/{p-f4965c26.entry.js.map → p-9cc19e91.entry.js.map} +0 -0
- /package/dist/core/{p-da578abf.entry.js.map → p-9de20265.entry.js.map} +0 -0
- /package/dist/core/{p-169dcfdd.entry.js.map → p-a0e42564.entry.js.map} +0 -0
- /package/dist/core/{p-66b8f0a7.entry.js.map → p-b08f4371.entry.js.map} +0 -0
- /package/dist/core/{p-fdd8f3a5.entry.js.map → p-badfdf2a.entry.js.map} +0 -0
- /package/dist/core/{p-ed7379e3.entry.js.map → p-bebf535f.entry.js.map} +0 -0
- /package/dist/core/{p-981b6f12.entry.js.map → p-c3dabce4.entry.js.map} +0 -0
- /package/dist/core/{p-bcfbd465.entry.js.map → p-c7e932b5.entry.js.map} +0 -0
- /package/dist/core/{p-1a4bce88.entry.js.map → p-d09aaa5b.entry.js.map} +0 -0
- /package/dist/core/{p-1170c02d.entry.js.map → p-d71e9cb5.entry.js.map} +0 -0
- /package/dist/core/{p-e676069e.entry.js.map → p-f659e5eb.entry.js.map} +0 -0
- /package/dist/core/{p-ffa94639.entry.js.map → p-fc2551c0.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
@@ -7928,25 +7928,26 @@ const getThemeColorBrightness = () => {
|
|
7928
7928
|
/**
|
7929
7929
|
* Returns if dark or light foreground colors should be used for color contrast reasons
|
7930
7930
|
* @returns "dark" or "light"
|
7931
|
+
* @param brightness - Optional custom brightness value. Defaults to `getThemeColorBrightness`
|
7931
7932
|
*/
|
7932
|
-
const getThemeForegroundColor = (
|
7933
|
+
const getThemeForegroundColor = (brightness = getThemeColorBrightness()) => brightness > DARK_MODE_THRESHOLD
|
7933
7934
|
? IcThemeForegroundEnum$1.Dark
|
7934
7935
|
: IcThemeForegroundEnum$1.Light;
|
7935
|
-
const getSlot = (element, name) => {
|
7936
|
+
const getSlot$1 = (element, name) => {
|
7936
7937
|
if (element && element.querySelector) {
|
7937
7938
|
return element.querySelector(`[slot="${name}"]`);
|
7938
7939
|
}
|
7939
7940
|
return null;
|
7940
7941
|
};
|
7941
|
-
const slotHasContent = (element, name) => getSlot(element, name) !== null;
|
7942
|
-
const getSlotContent = (element, name) => {
|
7943
|
-
const slot = getSlot(element, name);
|
7942
|
+
const slotHasContent = (element, name) => getSlot$1(element, name) !== null;
|
7943
|
+
const getSlotContent$1 = (element, name) => {
|
7944
|
+
const slot = getSlot$1(element, name);
|
7944
7945
|
if (slot) {
|
7945
|
-
return getSlotElements(slot);
|
7946
|
+
return getSlotElements$1(slot);
|
7946
7947
|
}
|
7947
7948
|
return null;
|
7948
7949
|
};
|
7949
|
-
const getSlotElements = (slot) => {
|
7950
|
+
const getSlotElements$1 = (slot) => {
|
7950
7951
|
const slotContent = slot.firstElementChild;
|
7951
7952
|
if (slotContent !== null) {
|
7952
7953
|
const elements = slotContent.assignedElements
|
@@ -7959,17 +7960,17 @@ const getSlotElements = (slot) => {
|
|
7959
7960
|
return slot === null ? null : [slot];
|
7960
7961
|
}
|
7961
7962
|
};
|
7962
|
-
const getNavItemParentDetails = (
|
7963
|
+
const getNavItemParentDetails = ({ parentElement, }) => {
|
7963
7964
|
let navType = { navType: "", parent: null };
|
7964
|
-
switch (
|
7965
|
+
switch (parentElement.tagName) {
|
7965
7966
|
case "IC-NAVIGATION-GROUP":
|
7966
|
-
navType = getNavItemParentDetails(
|
7967
|
+
navType = getNavItemParentDetails(parentElement);
|
7967
7968
|
break;
|
7968
7969
|
case "IC-TOP-NAVIGATION":
|
7969
|
-
navType = { navType: "top", parent:
|
7970
|
+
navType = { navType: "top", parent: parentElement };
|
7970
7971
|
break;
|
7971
7972
|
case "IC-SIDE-NAVIGATION":
|
7972
|
-
navType = { navType: "side", parent:
|
7973
|
+
navType = { navType: "side", parent: parentElement };
|
7973
7974
|
break;
|
7974
7975
|
case "IC-PAGE-HEADER":
|
7975
7976
|
navType = { navType: "page-header", parent: null };
|
@@ -7985,10 +7986,8 @@ const DEVICE_SIZES = {
|
|
7985
7986
|
XL: Number(getCssProperty$1("--ic-breakpoint-xl").replace("px", "")), // 1200
|
7986
7987
|
UNDEFINED: 1200,
|
7987
7988
|
};
|
7988
|
-
const hasValidationStatus$1 = (status, disabled) =>
|
7989
|
-
|
7990
|
-
};
|
7991
|
-
const isSlotUsed = (element, slotName) => Array.from(element.children).some((child) => child.getAttribute("slot") === slotName);
|
7989
|
+
const hasValidationStatus$1 = (status, disabled) => !!status && !disabled;
|
7990
|
+
const isSlotUsed$1 = ({ children }, slotName) => Array.from(children).some((child) => child.getAttribute("slot") === slotName);
|
7992
7991
|
// added as a common method to allow detection of gatsby hydration issue, where (camelCase) props are initially undefined & then update
|
7993
7992
|
// with a value. Allows a callback function to be executed when this is the case
|
7994
7993
|
const onComponentPropUndefinedChange = (oldValue, newValue, callback) => {
|
@@ -7997,100 +7996,61 @@ const onComponentPropUndefinedChange = (oldValue, newValue, callback) => {
|
|
7997
7996
|
}
|
7998
7997
|
};
|
7999
7998
|
const onComponentRequiredPropUndefined$1 = (props, component) => {
|
8000
|
-
|
8001
|
-
const { prop, propName } = props[i];
|
7999
|
+
props.forEach(({ prop, propName }) => {
|
8002
8000
|
if (prop === null || prop === undefined) {
|
8003
8001
|
console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase$1(propName)}' (react) required`);
|
8004
8002
|
}
|
8005
|
-
}
|
8006
|
-
};
|
8007
|
-
const kebabToCamelCase$1 = (kebabCase) => {
|
8008
|
-
kebabCase = kebabCase.toLowerCase();
|
8009
|
-
const individualWords = kebabCase.split("-");
|
8010
|
-
let camelCase = individualWords[0];
|
8011
|
-
for (let i = 1; i < individualWords.length; i++) {
|
8012
|
-
camelCase +=
|
8013
|
-
individualWords[i].substring(0, 1).toUpperCase() +
|
8014
|
-
individualWords[i].substring(1);
|
8015
|
-
}
|
8016
|
-
return camelCase;
|
8003
|
+
});
|
8017
8004
|
};
|
8005
|
+
const kebabToCamelCase$1 = (kebabCase) => kebabCase
|
8006
|
+
.toLowerCase()
|
8007
|
+
.split("-")
|
8008
|
+
.map((word, index) => index === 0
|
8009
|
+
? word
|
8010
|
+
: `${word.substring(0, 1).toUpperCase()}${word.substring(1)}`)
|
8011
|
+
.join("");
|
8018
8012
|
const checkResizeObserver$1 = (callbackFn) => {
|
8019
8013
|
if (typeof window !== "undefined" &&
|
8020
8014
|
typeof window.ResizeObserver !== "undefined") {
|
8021
8015
|
callbackFn();
|
8022
8016
|
}
|
8023
8017
|
};
|
8024
|
-
const hex2dec =
|
8025
|
-
return parseInt(v, 16);
|
8026
|
-
};
|
8018
|
+
const hex2dec = (v) => parseInt(v, 16);
|
8027
8019
|
const hexToRgba = (hex) => {
|
8028
|
-
|
8029
|
-
|
8030
|
-
|
8031
|
-
|
8032
|
-
|
8033
|
-
|
8034
|
-
|
8035
|
-
|
8036
|
-
|
8037
|
-
}
|
8038
|
-
else {
|
8039
|
-
return {
|
8040
|
-
r: hex2dec(hex.slice(1, 3)),
|
8041
|
-
g: hex2dec(hex.slice(3, 5)),
|
8042
|
-
b: hex2dec(hex.slice(5)),
|
8043
|
-
a: 1,
|
8044
|
-
};
|
8045
|
-
}
|
8020
|
+
const hexChars = hex
|
8021
|
+
.replace("#", "")
|
8022
|
+
.split("")
|
8023
|
+
.map((char) => char.repeat(2));
|
8024
|
+
return {
|
8025
|
+
r: hex2dec(hex.length === 4 ? hexChars[0] : hex.slice(1, 3)),
|
8026
|
+
g: hex2dec(hex.length === 4 ? hexChars[1] : hex.slice(3, 5)),
|
8027
|
+
b: hex2dec(hex.length === 4 ? hexChars[2] : hex.slice(5)),
|
8028
|
+
a: 1,
|
8029
|
+
};
|
8046
8030
|
};
|
8047
8031
|
const rgbaStrToObj = (rgbaStr) => {
|
8048
|
-
const
|
8049
|
-
|
8050
|
-
|
8051
|
-
|
8052
|
-
|
8053
|
-
|
8054
|
-
|
8055
|
-
|
8056
|
-
|
8057
|
-
|
8058
|
-
|
8059
|
-
|
8060
|
-
}
|
8061
|
-
else {
|
8062
|
-
colorRGBA = { r: null, g: null, b: null, a: 1 };
|
8063
|
-
const rgb = rgbaStr
|
8064
|
-
.substring(4, rgbaStr.length - 1)
|
8065
|
-
.replace(/ /g, "")
|
8066
|
-
.split(",");
|
8067
|
-
colorRGBA.r = Number(rgb[0]);
|
8068
|
-
colorRGBA.g = Number(rgb[1]);
|
8069
|
-
colorRGBA.b = Number(rgb[2]);
|
8070
|
-
}
|
8071
|
-
return colorRGBA;
|
8032
|
+
const isRGBA = rgbaStr.slice(3, 4).toLowerCase() === "a";
|
8033
|
+
const rgbValues = rgbaStr
|
8034
|
+
.substring(isRGBA ? 5 : 4, rgbaStr.length - 1)
|
8035
|
+
.replace(/ /g, "")
|
8036
|
+
.split(",")
|
8037
|
+
.map(Number);
|
8038
|
+
return {
|
8039
|
+
r: rgbValues[0],
|
8040
|
+
g: rgbValues[1],
|
8041
|
+
b: rgbValues[2],
|
8042
|
+
a: isRGBA ? rgbValues[3] : 1,
|
8043
|
+
};
|
8072
8044
|
};
|
8073
|
-
const elementOverflowsX = (
|
8074
|
-
/**
|
8075
|
-
*
|
8076
|
-
* @param child - The child element
|
8077
|
-
* @returns string
|
8078
|
-
*/
|
8079
|
-
const getParentElementType = (child) => child.parentElement.tagName;
|
8080
|
-
const getParentElement = (child) => child.parentElement;
|
8045
|
+
const elementOverflowsX = ({ scrollWidth, clientWidth, }) => scrollWidth > clientWidth;
|
8081
8046
|
const hasClassificationBanner = () => !!document.querySelector("ic-classification-banner:not([inline='true'])");
|
8082
|
-
const getForm$1 = (el) => el.closest("FORM");
|
8083
8047
|
const addFormResetListener$1 = (el, callbackFn) => {
|
8084
|
-
|
8085
|
-
|
8086
|
-
form.addEventListener("reset", callbackFn);
|
8087
|
-
}
|
8048
|
+
var _a;
|
8049
|
+
(_a = el.closest("FORM")) === null || _a === void 0 ? void 0 : _a.addEventListener("reset", callbackFn);
|
8088
8050
|
};
|
8089
8051
|
const removeFormResetListener$1 = (el, callbackFn) => {
|
8090
|
-
|
8091
|
-
|
8092
|
-
form.removeEventListener("reset", callbackFn);
|
8093
|
-
}
|
8052
|
+
var _a;
|
8053
|
+
(_a = el.closest("FORM")) === null || _a === void 0 ? void 0 : _a.removeEventListener("reset", callbackFn);
|
8094
8054
|
};
|
8095
8055
|
const pxToRem = (px, base = 16) => `${(1 / base) * parseInt(px)}rem`;
|
8096
8056
|
const removeDisabledFalse$1 = (disabled, element) => {
|
@@ -8098,6 +8058,14 @@ const removeDisabledFalse$1 = (disabled, element) => {
|
|
8098
8058
|
element.removeAttribute("disabled");
|
8099
8059
|
}
|
8100
8060
|
};
|
8061
|
+
const convertToRGBA = (color) => {
|
8062
|
+
const firstChar = color === null || color === void 0 ? void 0 : color.slice(0, 1).toLowerCase();
|
8063
|
+
return firstChar === "#"
|
8064
|
+
? hexToRgba(color)
|
8065
|
+
: firstChar === "r"
|
8066
|
+
? rgbaStrToObj(color)
|
8067
|
+
: null;
|
8068
|
+
};
|
8101
8069
|
|
8102
8070
|
var chevronIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
8103
8071
|
<path d="M9.70687 6L8.29688 7.41L12.8769 12L8.29688 16.59L9.70687 18L15.7069 12L9.70687 6Z" fill="currentColor"/>
|
@@ -8201,7 +8169,7 @@ class Accordion {
|
|
8201
8169
|
[`${size}`]: true,
|
8202
8170
|
["section-button"]: true,
|
8203
8171
|
["section-button-open"]: expanded && !disabled,
|
8204
|
-
}, "aria-expanded": `${expanded}`, "aria-controls": "expanded-content-area", onClick: this.toggleExpanded }, isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "subtitle-large", class: "section-header" }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (this.heading)), hAsync("span", { class: {
|
8172
|
+
}, "aria-expanded": `${expanded}`, "aria-controls": "expanded-content-area", onClick: this.toggleExpanded }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "subtitle-large", class: "section-header" }, isSlotUsed$1(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (this.heading)), hAsync("span", { class: {
|
8205
8173
|
["expand-chevron"]: true,
|
8206
8174
|
["content-expanded-chevron"]: expanded && !disabled,
|
8207
8175
|
}, "aria-hidden": "true", innerHTML: chevronIcon })), hAsync("div", { class: {
|
@@ -8234,6 +8202,9 @@ class Accordion {
|
|
8234
8202
|
const icAccordionGroupCss = "/*!@html*/html.sc-ic-accordion-group{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-accordion-group{margin:0}/*!@main*/main.sc-ic-accordion-group{display:block}/*!@h1*/h1.sc-ic-accordion-group{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-accordion-group{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-accordion-group{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-accordion-group{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-accordion-group{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-accordion-group,strong.sc-ic-accordion-group{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-accordion-group,kbd.sc-ic-accordion-group,samp.sc-ic-accordion-group{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-accordion-group{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-accordion-group,sup.sc-ic-accordion-group{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-accordion-group{bottom:-0.25em}/*!@sup*/sup.sc-ic-accordion-group{top:-0.5em}/*!@img*/img.sc-ic-accordion-group{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-accordion-group,input.sc-ic-accordion-group,optgroup.sc-ic-accordion-group,select.sc-ic-accordion-group,textarea.sc-ic-accordion-group{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-accordion-group,input.sc-ic-accordion-group{overflow:visible}/*!@button,\nselect*/button.sc-ic-accordion-group,select.sc-ic-accordion-group{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-accordion-group,[type=\"button\"].sc-ic-accordion-group,[type=\"reset\"].sc-ic-accordion-group,[type=\"submit\"].sc-ic-accordion-group{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-accordion-group::-moz-focus-inner,[type=\"button\"].sc-ic-accordion-group::-moz-focus-inner,[type=\"reset\"].sc-ic-accordion-group::-moz-focus-inner,[type=\"submit\"].sc-ic-accordion-group::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-accordion-group:-moz-focusring,[type=\"button\"].sc-ic-accordion-group:-moz-focusring,[type=\"reset\"].sc-ic-accordion-group:-moz-focusring,[type=\"submit\"].sc-ic-accordion-group:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-accordion-group{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-accordion-group{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-accordion-group{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-accordion-group{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-accordion-group,[type=\"radio\"].sc-ic-accordion-group{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-accordion-group::-webkit-inner-spin-button,[type=\"number\"].sc-ic-accordion-group::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-accordion-group{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-accordion-group::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-accordion-group::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-accordion-group{display:block}/*!@summary*/summary.sc-ic-accordion-group{display:list-item}/*!@template*/template.sc-ic-accordion-group{display:none}/*!@[hidden]*/[hidden].sc-ic-accordion-group{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-accordion-group,body.sc-ic-accordion-group,div.sc-ic-accordion-group,span.sc-ic-accordion-group,applet.sc-ic-accordion-group,object.sc-ic-accordion-group,iframe.sc-ic-accordion-group,h1.sc-ic-accordion-group,h2.sc-ic-accordion-group,h3.sc-ic-accordion-group,h4.sc-ic-accordion-group,h5.sc-ic-accordion-group,h6.sc-ic-accordion-group,p.sc-ic-accordion-group,blockquote.sc-ic-accordion-group,pre.sc-ic-accordion-group,a.sc-ic-accordion-group,abbr.sc-ic-accordion-group,acronym.sc-ic-accordion-group,address.sc-ic-accordion-group,big.sc-ic-accordion-group,cite.sc-ic-accordion-group,code.sc-ic-accordion-group,del.sc-ic-accordion-group,dfn.sc-ic-accordion-group,em.sc-ic-accordion-group,img.sc-ic-accordion-group,ins.sc-ic-accordion-group,kbd.sc-ic-accordion-group,q.sc-ic-accordion-group,s.sc-ic-accordion-group,samp.sc-ic-accordion-group,small.sc-ic-accordion-group,strike.sc-ic-accordion-group,strong.sc-ic-accordion-group,sub.sc-ic-accordion-group,sup.sc-ic-accordion-group,tt.sc-ic-accordion-group,var.sc-ic-accordion-group,b.sc-ic-accordion-group,u.sc-ic-accordion-group,i.sc-ic-accordion-group,center.sc-ic-accordion-group,dl.sc-ic-accordion-group,dt.sc-ic-accordion-group,dd.sc-ic-accordion-group,ol.sc-ic-accordion-group,ul.sc-ic-accordion-group,li.sc-ic-accordion-group,fieldset.sc-ic-accordion-group,form.sc-ic-accordion-group,label.sc-ic-accordion-group,legend.sc-ic-accordion-group,table.sc-ic-accordion-group,caption.sc-ic-accordion-group,tbody.sc-ic-accordion-group,tfoot.sc-ic-accordion-group,thead.sc-ic-accordion-group,tr.sc-ic-accordion-group,th.sc-ic-accordion-group,td.sc-ic-accordion-group,article.sc-ic-accordion-group,aside.sc-ic-accordion-group,canvas.sc-ic-accordion-group,details.sc-ic-accordion-group,embed.sc-ic-accordion-group,figure.sc-ic-accordion-group,figcaption.sc-ic-accordion-group,footer.sc-ic-accordion-group,header.sc-ic-accordion-group,hgroup.sc-ic-accordion-group,menu.sc-ic-accordion-group,nav.sc-ic-accordion-group,output.sc-ic-accordion-group,ruby.sc-ic-accordion-group,section.sc-ic-accordion-group,summary.sc-ic-accordion-group,time.sc-ic-accordion-group,mark.sc-ic-accordion-group,audio.sc-ic-accordion-group,video.sc-ic-accordion-group{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@.group-title-container*/.group-title-container.sc-ic-accordion-group{padding:var(--ic-space-xs);display:flex;justify-content:space-between;align-items:center}/*!@:host(.small) .group-title-container*/.small.sc-ic-accordion-group-h .group-title-container.sc-ic-accordion-group{padding:var(--ic-space-xxs) var(--ic-space-xs)}/*!@:host(.large) .group-title-container*/.large.sc-ic-accordion-group-h .group-title-container.sc-ic-accordion-group{padding:var(--ic-space-sm) var(--ic-space-xs)}/*!@:host(.light)*/.light.sc-ic-accordion-group-h{color:var(--ic-architectural-white)}/*!@:host(.accordion-group.dark) ::slotted(ic-accordion)*/.sc-ic-accordion-group-h.accordion-group.dark .sc-ic-accordion-group-s>ic-accordion{color:var(--ic-architectural-white)}";
|
8235
8203
|
|
8236
8204
|
let accordionGroupIds = 0;
|
8205
|
+
/**
|
8206
|
+
* @slot group-title - Content is placed as the accordion group title.
|
8207
|
+
*/
|
8237
8208
|
class AccordionGroup {
|
8238
8209
|
constructor(hostRef) {
|
8239
8210
|
registerInstance(this, hostRef);
|
@@ -8323,7 +8294,7 @@ class AccordionGroup {
|
|
8323
8294
|
[`${appearance}`]: true,
|
8324
8295
|
[`${size}`]: true,
|
8325
8296
|
["accordion-group"]: true,
|
8326
|
-
} }, hAsync("div", { class: "group-title-container" }, hAsync("ic-typography", { variant: "h4" }, hAsync("h3", null, groupTitle)), !singleExpansion && (hAsync("ic-button", { ref: (el) => (this.allButtonEl = el), appearance: appearance === "light" ? "light" : "default", onClick: this.handleExpanded, variant: "tertiary", "aria-label": `${this.accordionOpenBtnText()} ${accessibleButtonLabel}` }, this.accordionOpenBtnText()))), hAsync("slot", null)));
|
8297
|
+
} }, hAsync("div", { class: "group-title-container" }, hAsync("ic-typography", { variant: "h4" }, hAsync("h3", null, isSlotUsed$1(this.el, "group-title") ? (hAsync("slot", { name: "group-title" })) : (groupTitle))), !singleExpansion && (hAsync("ic-button", { ref: (el) => (this.allButtonEl = el), appearance: appearance === "light" ? "light" : "default", onClick: this.handleExpanded, variant: "tertiary", "aria-label": `${this.accordionOpenBtnText()} ${accessibleButtonLabel}` }, this.accordionOpenBtnText()))), hAsync("slot", null)));
|
8327
8298
|
}
|
8328
8299
|
get el() { return getElement(this); }
|
8329
8300
|
static get style() { return icAccordionGroupCss; }
|
@@ -8410,7 +8381,7 @@ class Alert {
|
|
8410
8381
|
} }, heading && (hAsync("ic-typography", { class: {
|
8411
8382
|
["alert-title"]: true,
|
8412
8383
|
["alert-title-above"]: titleAbove || this.alertTitleWrap,
|
8413
|
-
}, variant: "subtitle-large" }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: {
|
8384
|
+
}, variant: "subtitle-large" }, hAsync("p", null, heading))), hAsync("slot", { name: "message" }, hAsync("ic-typography", { variant: "body" }, message))), isSlotUsed$1(this.el, "action") && (hAsync("div", { class: "alert-action-container" }, hAsync("slot", { name: "action" })))), hAsync("div", { class: "dismiss-icon-container" }, dismissible && (hAsync("ic-button", { class: {
|
8414
8385
|
["svg-container"]: true,
|
8415
8386
|
["dismiss-icon"]: true,
|
8416
8387
|
}, innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum$1.Dark, title: "dismiss" })))))));
|
@@ -8441,7 +8412,7 @@ var ArrowUpward = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" a
|
|
8441
8412
|
</svg>
|
8442
8413
|
`;
|
8443
8414
|
|
8444
|
-
const icBackToTopCss = "/*!@html*/html.sc-ic-back-to-top{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-back-to-top{margin:0}/*!@main*/main.sc-ic-back-to-top{display:block}/*!@h1*/h1.sc-ic-back-to-top{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-back-to-top{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-back-to-top{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-back-to-top{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-back-to-top{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-back-to-top,strong.sc-ic-back-to-top{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-back-to-top,kbd.sc-ic-back-to-top,samp.sc-ic-back-to-top{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-back-to-top{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-back-to-top,sup.sc-ic-back-to-top{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-back-to-top{bottom:-0.25em}/*!@sup*/sup.sc-ic-back-to-top{top:-0.5em}/*!@img*/img.sc-ic-back-to-top{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-back-to-top,input.sc-ic-back-to-top,optgroup.sc-ic-back-to-top,select.sc-ic-back-to-top,textarea.sc-ic-back-to-top{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-back-to-top,input.sc-ic-back-to-top{overflow:visible}/*!@button,\nselect*/button.sc-ic-back-to-top,select.sc-ic-back-to-top{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-back-to-top,[type=\"button\"].sc-ic-back-to-top,[type=\"reset\"].sc-ic-back-to-top,[type=\"submit\"].sc-ic-back-to-top{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-back-to-top::-moz-focus-inner,[type=\"button\"].sc-ic-back-to-top::-moz-focus-inner,[type=\"reset\"].sc-ic-back-to-top::-moz-focus-inner,[type=\"submit\"].sc-ic-back-to-top::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-back-to-top:-moz-focusring,[type=\"button\"].sc-ic-back-to-top:-moz-focusring,[type=\"reset\"].sc-ic-back-to-top:-moz-focusring,[type=\"submit\"].sc-ic-back-to-top:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-back-to-top{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-back-to-top{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-back-to-top{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-back-to-top{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-back-to-top,[type=\"radio\"].sc-ic-back-to-top{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-back-to-top::-webkit-inner-spin-button,[type=\"number\"].sc-ic-back-to-top::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-back-to-top{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-back-to-top::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-back-to-top::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-back-to-top{display:block}/*!@summary*/summary.sc-ic-back-to-top{display:list-item}/*!@template*/template.sc-ic-back-to-top{display:none}/*!@[hidden]*/[hidden].sc-ic-back-to-top{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-back-to-top,body.sc-ic-back-to-top,div.sc-ic-back-to-top,span.sc-ic-back-to-top,applet.sc-ic-back-to-top,object.sc-ic-back-to-top,iframe.sc-ic-back-to-top,h1.sc-ic-back-to-top,h2.sc-ic-back-to-top,h3.sc-ic-back-to-top,h4.sc-ic-back-to-top,h5.sc-ic-back-to-top,h6.sc-ic-back-to-top,p.sc-ic-back-to-top,blockquote.sc-ic-back-to-top,pre.sc-ic-back-to-top,a.sc-ic-back-to-top,abbr.sc-ic-back-to-top,acronym.sc-ic-back-to-top,address.sc-ic-back-to-top,big.sc-ic-back-to-top,cite.sc-ic-back-to-top,code.sc-ic-back-to-top,del.sc-ic-back-to-top,dfn.sc-ic-back-to-top,em.sc-ic-back-to-top,img.sc-ic-back-to-top,ins.sc-ic-back-to-top,kbd.sc-ic-back-to-top,q.sc-ic-back-to-top,s.sc-ic-back-to-top,samp.sc-ic-back-to-top,small.sc-ic-back-to-top,strike.sc-ic-back-to-top,strong.sc-ic-back-to-top,sub.sc-ic-back-to-top,sup.sc-ic-back-to-top,tt.sc-ic-back-to-top,var.sc-ic-back-to-top,b.sc-ic-back-to-top,u.sc-ic-back-to-top,i.sc-ic-back-to-top,center.sc-ic-back-to-top,dl.sc-ic-back-to-top,dt.sc-ic-back-to-top,dd.sc-ic-back-to-top,ol.sc-ic-back-to-top,ul.sc-ic-back-to-top,li.sc-ic-back-to-top,fieldset.sc-ic-back-to-top,form.sc-ic-back-to-top,label.sc-ic-back-to-top,legend.sc-ic-back-to-top,table.sc-ic-back-to-top,caption.sc-ic-back-to-top,tbody.sc-ic-back-to-top,tfoot.sc-ic-back-to-top,thead.sc-ic-back-to-top,tr.sc-ic-back-to-top,th.sc-ic-back-to-top,td.sc-ic-back-to-top,article.sc-ic-back-to-top,aside.sc-ic-back-to-top,canvas.sc-ic-back-to-top,details.sc-ic-back-to-top,embed.sc-ic-back-to-top,figure.sc-ic-back-to-top,figcaption.sc-ic-back-to-top,footer.sc-ic-back-to-top,header.sc-ic-back-to-top,hgroup.sc-ic-back-to-top,menu.sc-ic-back-to-top,nav.sc-ic-back-to-top,output.sc-ic-back-to-top,ruby.sc-ic-back-to-top,section.sc-ic-back-to-top,summary.sc-ic-back-to-top,time.sc-ic-back-to-top,mark.sc-ic-back-to-top,audio.sc-ic-back-to-top,video.sc-ic-back-to-top{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-back-to-top-h{display:block;position:absolute;right:0}
|
8415
|
+
const icBackToTopCss = "/*!@html*/html.sc-ic-back-to-top{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-back-to-top{margin:0}/*!@main*/main.sc-ic-back-to-top{display:block}/*!@h1*/h1.sc-ic-back-to-top{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-back-to-top{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-back-to-top{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-back-to-top{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-back-to-top{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-back-to-top,strong.sc-ic-back-to-top{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-back-to-top,kbd.sc-ic-back-to-top,samp.sc-ic-back-to-top{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-back-to-top{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-back-to-top,sup.sc-ic-back-to-top{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-back-to-top{bottom:-0.25em}/*!@sup*/sup.sc-ic-back-to-top{top:-0.5em}/*!@img*/img.sc-ic-back-to-top{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-back-to-top,input.sc-ic-back-to-top,optgroup.sc-ic-back-to-top,select.sc-ic-back-to-top,textarea.sc-ic-back-to-top{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-back-to-top,input.sc-ic-back-to-top{overflow:visible}/*!@button,\nselect*/button.sc-ic-back-to-top,select.sc-ic-back-to-top{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-back-to-top,[type=\"button\"].sc-ic-back-to-top,[type=\"reset\"].sc-ic-back-to-top,[type=\"submit\"].sc-ic-back-to-top{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-back-to-top::-moz-focus-inner,[type=\"button\"].sc-ic-back-to-top::-moz-focus-inner,[type=\"reset\"].sc-ic-back-to-top::-moz-focus-inner,[type=\"submit\"].sc-ic-back-to-top::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-back-to-top:-moz-focusring,[type=\"button\"].sc-ic-back-to-top:-moz-focusring,[type=\"reset\"].sc-ic-back-to-top:-moz-focusring,[type=\"submit\"].sc-ic-back-to-top:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-back-to-top{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-back-to-top{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-back-to-top{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-back-to-top{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-back-to-top,[type=\"radio\"].sc-ic-back-to-top{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-back-to-top::-webkit-inner-spin-button,[type=\"number\"].sc-ic-back-to-top::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-back-to-top{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-back-to-top::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-back-to-top::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-back-to-top{display:block}/*!@summary*/summary.sc-ic-back-to-top{display:list-item}/*!@template*/template.sc-ic-back-to-top{display:none}/*!@[hidden]*/[hidden].sc-ic-back-to-top{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-back-to-top,body.sc-ic-back-to-top,div.sc-ic-back-to-top,span.sc-ic-back-to-top,applet.sc-ic-back-to-top,object.sc-ic-back-to-top,iframe.sc-ic-back-to-top,h1.sc-ic-back-to-top,h2.sc-ic-back-to-top,h3.sc-ic-back-to-top,h4.sc-ic-back-to-top,h5.sc-ic-back-to-top,h6.sc-ic-back-to-top,p.sc-ic-back-to-top,blockquote.sc-ic-back-to-top,pre.sc-ic-back-to-top,a.sc-ic-back-to-top,abbr.sc-ic-back-to-top,acronym.sc-ic-back-to-top,address.sc-ic-back-to-top,big.sc-ic-back-to-top,cite.sc-ic-back-to-top,code.sc-ic-back-to-top,del.sc-ic-back-to-top,dfn.sc-ic-back-to-top,em.sc-ic-back-to-top,img.sc-ic-back-to-top,ins.sc-ic-back-to-top,kbd.sc-ic-back-to-top,q.sc-ic-back-to-top,s.sc-ic-back-to-top,samp.sc-ic-back-to-top,small.sc-ic-back-to-top,strike.sc-ic-back-to-top,strong.sc-ic-back-to-top,sub.sc-ic-back-to-top,sup.sc-ic-back-to-top,tt.sc-ic-back-to-top,var.sc-ic-back-to-top,b.sc-ic-back-to-top,u.sc-ic-back-to-top,i.sc-ic-back-to-top,center.sc-ic-back-to-top,dl.sc-ic-back-to-top,dt.sc-ic-back-to-top,dd.sc-ic-back-to-top,ol.sc-ic-back-to-top,ul.sc-ic-back-to-top,li.sc-ic-back-to-top,fieldset.sc-ic-back-to-top,form.sc-ic-back-to-top,label.sc-ic-back-to-top,legend.sc-ic-back-to-top,table.sc-ic-back-to-top,caption.sc-ic-back-to-top,tbody.sc-ic-back-to-top,tfoot.sc-ic-back-to-top,thead.sc-ic-back-to-top,tr.sc-ic-back-to-top,th.sc-ic-back-to-top,td.sc-ic-back-to-top,article.sc-ic-back-to-top,aside.sc-ic-back-to-top,canvas.sc-ic-back-to-top,details.sc-ic-back-to-top,embed.sc-ic-back-to-top,figure.sc-ic-back-to-top,figcaption.sc-ic-back-to-top,footer.sc-ic-back-to-top,header.sc-ic-back-to-top,hgroup.sc-ic-back-to-top,menu.sc-ic-back-to-top,nav.sc-ic-back-to-top,output.sc-ic-back-to-top,ruby.sc-ic-back-to-top,section.sc-ic-back-to-top,summary.sc-ic-back-to-top,time.sc-ic-back-to-top,mark.sc-ic-back-to-top,audio.sc-ic-back-to-top,video.sc-ic-back-to-top{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-back-to-top-h{display:block;position:absolute;right:0}/*!@.positioning*/.positioning.sc-ic-back-to-top{position:fixed;right:var(--ic-space-md);bottom:var(--ic-space-md);transition:visibility 0s linear var(--ic-transition-duration-slow),\n opacity var(--ic-transition-duration-slow);z-index:var(--ic-z-index-back-to-top)}/*!@button*/button.sc-ic-back-to-top{height:2.5rem;align-items:center;padding:var(--ic-space-xs) var(--ic-space-md) var(--ic-space-xs)\n var(--ic-space-sm);margin:0;gap:var(--ic-space-xs);display:flex;background-color:var(--ic-architectural-white);border:var(--ic-border-width) solid var(--ic-action-default);outline-width:inherit;box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:5rem;text-decoration:none;visibility:hidden;opacity:0;cursor:pointer}/*!@button:hover*/button.sc-ic-back-to-top:hover{text-decoration:none;background-color:var(--ic-action-default-bg-hover-no-alpha);border:var(--ic-border-width) solid var(--ic-action-default-hover)}/*!@button:active*/button.sc-ic-back-to-top:active{text-decoration:none;background-color:var(--ic-action-default-bg-active-no-alpha);border:var(--ic-border-width) solid var(--ic-action-default-active)}/*!@button:focus*/button.sc-ic-back-to-top:focus{box-shadow:var(--ic-border-focus)}/*!@.ic-back-to-top-link.show*/.ic-back-to-top-link.show.sc-ic-back-to-top{visibility:visible;opacity:1;transition:visibility 0s linear 0s,\n opacity var(--ic-transition-duration-slow),\n box-shadow var(--ic-easing-transition-fast)}/*!@.ic-back-to-top-link.by-footer*/.ic-back-to-top-link.by-footer.sc-ic-back-to-top{position:relative;right:var(--ic-space-md);bottom:3.5rem}/*!@.ic-back-to-top-link.offset-banner*/.ic-back-to-top-link.offset-banner.sc-ic-back-to-top{margin-bottom:var(--ic-space-lg)}/*!@.ic-back-to-top-icon*/.ic-back-to-top-icon.sc-ic-back-to-top{fill:var(--ic-action-default);padding-left:var(--ic-space-xxs);padding-top:var(--ic-space-xxxs)}/*!@.ic-back-to-top-icon > svg*/.ic-back-to-top-icon.sc-ic-back-to-top>svg.sc-ic-back-to-top{height:var(--ic-space-md);width:var(--ic-space-md);display:inline-block}/*!@.ic-back-to-top-link span*/.ic-back-to-top-link.sc-ic-back-to-top span.sc-ic-back-to-top{color:var(--ic-action-default)}/*!@.ic-back-to-top-link:hover .ic-back-to-top-icon*/.ic-back-to-top-link.sc-ic-back-to-top:hover .ic-back-to-top-icon.sc-ic-back-to-top{fill:var(--ic-action-default-hover)}/*!@.ic-back-to-top-link:hover span*/.ic-back-to-top-link.sc-ic-back-to-top:hover span.sc-ic-back-to-top{color:var(--ic-action-default-hover)}@media (forced-colors: active){/*!@.ic-back-to-top-icon*/.ic-back-to-top-icon.sc-ic-back-to-top{fill:currentcolor}}";
|
8445
8416
|
|
8446
8417
|
const backToTopLabel = "Back to top";
|
8447
8418
|
class BackToTop {
|
@@ -8520,10 +8491,21 @@ class BackToTop {
|
|
8520
8491
|
const banners = document.querySelectorAll("ic-classification-banner:not([inline='true'])");
|
8521
8492
|
this.bannerOffset = banners.length > 0;
|
8522
8493
|
};
|
8494
|
+
this.buildButton = () => {
|
8495
|
+
const { bannerOffset, targetElVisible, footerVisible, variant } = this;
|
8496
|
+
return (hAsync("button", { class: {
|
8497
|
+
["ic-back-to-top-link"]: true,
|
8498
|
+
["offset-banner"]: bannerOffset,
|
8499
|
+
["show"]: !targetElVisible,
|
8500
|
+
["by-footer"]: footerVisible,
|
8501
|
+
["positioning"]: variant !== "icon",
|
8502
|
+
}, "aria-label": backToTopLabel, onClick: this.handleClick }, hAsync("span", { class: "ic-back-to-top-icon", innerHTML: ArrowUpward }), this.variant !== "icon" && (hAsync("ic-typography", { variant: "subtitle-small" }, hAsync("span", null, backToTopLabel)))));
|
8503
|
+
};
|
8523
8504
|
this.bannerOffset = false;
|
8524
8505
|
this.footerVisible = false;
|
8525
8506
|
this.targetElVisible = true;
|
8526
8507
|
this.target = undefined;
|
8508
|
+
this.variant = "default";
|
8527
8509
|
}
|
8528
8510
|
watchPropHandler(newValue, oldValue) {
|
8529
8511
|
//added for gatsby rehydration issue where prop is initially undefined but then changes to actual value
|
@@ -8550,13 +8532,8 @@ class BackToTop {
|
|
8550
8532
|
onComponentRequiredPropUndefined$1([{ prop: this.target, propName: "target" }], "Back to Top");
|
8551
8533
|
}
|
8552
8534
|
render() {
|
8553
|
-
const {
|
8554
|
-
return (hAsync("
|
8555
|
-
["ic-back-to-top-link"]: true,
|
8556
|
-
["offset-banner"]: bannerOffset,
|
8557
|
-
["show"]: !targetElVisible,
|
8558
|
-
["by-footer"]: footerVisible,
|
8559
|
-
}, "aria-label": backToTopLabel, onClick: this.handleClick }, hAsync("span", { class: "ic-back-to-top-icon", innerHTML: ArrowUpward }), hAsync("ic-typography", { variant: "subtitle-small" }, hAsync("span", null, backToTopLabel))));
|
8535
|
+
const { variant, buildButton } = this;
|
8536
|
+
return variant === "icon" ? (hAsync("ic-tooltip", { label: backToTopLabel, placement: "top", class: "positioning" }, buildButton())) : (buildButton());
|
8560
8537
|
}
|
8561
8538
|
static get delegatesFocus() { return true; }
|
8562
8539
|
get el() { return getElement(this); }
|
@@ -8569,6 +8546,7 @@ class BackToTop {
|
|
8569
8546
|
"$tagName$": "ic-back-to-top",
|
8570
8547
|
"$members$": {
|
8571
8548
|
"target": [1],
|
8549
|
+
"variant": [1],
|
8572
8550
|
"bannerOffset": [32],
|
8573
8551
|
"footerVisible": [32],
|
8574
8552
|
"targetElVisible": [32]
|
@@ -8589,109 +8567,59 @@ class Badge {
|
|
8589
8567
|
registerInstance(this, hostRef);
|
8590
8568
|
this.ariaLabel = null;
|
8591
8569
|
this.setBadgeColour = () => {
|
8592
|
-
|
8593
|
-
if (
|
8594
|
-
const firstChar = this.customColor.slice(0, 1);
|
8595
|
-
if (firstChar === "#") {
|
8596
|
-
colorRGBA = hexToRgba(this.customColor);
|
8597
|
-
}
|
8598
|
-
else if (firstChar.toLowerCase() === "r") {
|
8599
|
-
colorRGBA = rgbaStrToObj(this.customColor);
|
8600
|
-
}
|
8570
|
+
const colorRGBA = convertToRGBA(this.customColor);
|
8571
|
+
if (colorRGBA) {
|
8601
8572
|
this.customColorRGBA = colorRGBA;
|
8602
|
-
|
8573
|
+
const { r, g, b, a } = colorRGBA;
|
8574
|
+
this.el.style.backgroundColor = `rgba(${r}, ${g}, ${b}, ${a})`;
|
8603
8575
|
}
|
8604
8576
|
};
|
8605
|
-
this.
|
8606
|
-
let red;
|
8607
|
-
let green;
|
8608
|
-
let blue;
|
8577
|
+
this.getBadgeRGB = () => {
|
8609
8578
|
switch (this.variant) {
|
8610
8579
|
case "custom":
|
8611
|
-
|
8612
|
-
green = this.customColorRGBA.g;
|
8613
|
-
blue = this.customColorRGBA.b;
|
8614
|
-
break;
|
8580
|
+
return this.customColorRGBA;
|
8615
8581
|
case "error":
|
8616
|
-
red = parseInt(getCssProperty$1("--ic-status-error-r"));
|
8617
|
-
green = parseInt(getCssProperty$1("--ic-status-error-g"));
|
8618
|
-
blue = parseInt(getCssProperty$1("--ic-status-error-b"));
|
8619
|
-
break;
|
8620
8582
|
case "success":
|
8621
|
-
red = parseInt(getCssProperty$1("--ic-status-success-r"));
|
8622
|
-
green = parseInt(getCssProperty$1("--ic-status-success-g"));
|
8623
|
-
blue = parseInt(getCssProperty$1("--ic-status-success-b"));
|
8624
|
-
break;
|
8625
8583
|
case "warning":
|
8626
|
-
red = parseInt(getCssProperty$1("--ic-status-warning-r"));
|
8627
|
-
green = parseInt(getCssProperty$1("--ic-status-warning-g"));
|
8628
|
-
blue = parseInt(getCssProperty$1("--ic-status-warning-b"));
|
8629
|
-
break;
|
8630
8584
|
case "info": {
|
8631
|
-
|
8632
|
-
red = info.r;
|
8633
|
-
green = info.g;
|
8634
|
-
blue = info.b;
|
8635
|
-
break;
|
8636
|
-
}
|
8637
|
-
case "neutral": {
|
8638
|
-
const neutral = hexToRgba(getCssProperty$1("--ic-architectural-500"));
|
8639
|
-
red = neutral.r;
|
8640
|
-
green = neutral.g;
|
8641
|
-
blue = neutral.b;
|
8642
|
-
break;
|
8643
|
-
}
|
8644
|
-
case "light": {
|
8645
|
-
const light = hexToRgba(getCssProperty$1("--ic-architectural-40"));
|
8646
|
-
red = light.r;
|
8647
|
-
green = light.g;
|
8648
|
-
blue = light.b;
|
8649
|
-
break;
|
8585
|
+
return rgbaStrToObj(getCssProperty$1(`--ic-status-${this.variant}`));
|
8650
8586
|
}
|
8587
|
+
case "neutral":
|
8588
|
+
case "light":
|
8589
|
+
return hexToRgba(getCssProperty$1(`--ic-architectural-${this.variant === "neutral" ? 500 : 40}`));
|
8651
8590
|
}
|
8652
|
-
const brightness = (red * 299 + green * 587 + blue * 114) / 1000;
|
8653
|
-
this.foregroundColour =
|
8654
|
-
brightness > 133.3505
|
8655
|
-
? IcThemeForegroundEnum$1.Dark
|
8656
|
-
: IcThemeForegroundEnum$1.Light;
|
8657
8591
|
};
|
8658
|
-
this.
|
8659
|
-
|
8660
|
-
|
8661
|
-
if (this.maxNumber !== null) {
|
8662
|
-
label =
|
8663
|
-
Number(this.textLabel) > this.maxNumber
|
8664
|
-
? `${this.maxNumber}+`
|
8665
|
-
: this.textLabel;
|
8666
|
-
}
|
8667
|
-
else {
|
8668
|
-
label = this.textLabel;
|
8669
|
-
}
|
8670
|
-
}
|
8671
|
-
return label;
|
8592
|
+
this.getBadgeForeground = () => {
|
8593
|
+
const { r, g, b } = this.getBadgeRGB();
|
8594
|
+
this.foregroundColour = getThemeForegroundColor((r * 299 + g * 587 + b * 114) / 1000);
|
8672
8595
|
};
|
8596
|
+
this.getTextLabel = () => this.maxNumber && Number(this.textLabel) > this.maxNumber
|
8597
|
+
? `${this.maxNumber}+`
|
8598
|
+
: this.textLabel;
|
8673
8599
|
// Set aria-label on badge and / or parent element
|
8674
8600
|
// Aria-describedby seems to not work, probably due to shadow DOM
|
8675
8601
|
this.setAccessibleLabel = () => {
|
8676
|
-
const
|
8677
|
-
const parentElAriaLabel = getParentElement(this.el).ariaLabel;
|
8602
|
+
const parentEl = this.el.parentElement;
|
8678
8603
|
const defaultAriaLabel = this.isAccessibleLabelDefined()
|
8679
8604
|
? this.accessibleLabel
|
8680
8605
|
: this.textLabel || "with badge being displayed";
|
8681
|
-
if (
|
8682
|
-
|
8683
|
-
|
8684
|
-
|
8685
|
-
|
8606
|
+
if (parentEl) {
|
8607
|
+
const { tagName } = parentEl;
|
8608
|
+
if (tagName !== "IC-CARD" &&
|
8609
|
+
(tagName !== "IC-TAB" || (tagName === "IC-TAB" && this.parentAriaLabel))) {
|
8610
|
+
const ariaLabelPrefix = this.parentAriaLabel
|
8611
|
+
? `${this.parentAriaLabel} ,`
|
8612
|
+
: "";
|
8613
|
+
parentEl.ariaLabel = this.visible
|
8614
|
+
? `${ariaLabelPrefix} ${defaultAriaLabel}`
|
8615
|
+
: undefined;
|
8686
8616
|
}
|
8687
8617
|
else {
|
8688
8618
|
this.ariaLabel = `, ${defaultAriaLabel}`;
|
8689
8619
|
}
|
8690
8620
|
}
|
8691
8621
|
};
|
8692
|
-
this.isAccessibleLabelDefined = () =>
|
8693
|
-
return isPropDefined(this.accessibleLabel) && this.accessibleLabel !== null;
|
8694
|
-
};
|
8622
|
+
this.isAccessibleLabelDefined = () => isPropDefined(this.accessibleLabel) && this.accessibleLabel !== null;
|
8695
8623
|
this.accessibleLabel = undefined;
|
8696
8624
|
this.customColor = null;
|
8697
8625
|
this.maxNumber = undefined;
|
@@ -8702,9 +8630,25 @@ class Badge {
|
|
8702
8630
|
this.variant = "neutral";
|
8703
8631
|
this.visible = true;
|
8704
8632
|
}
|
8633
|
+
accessibleLabelHandler() {
|
8634
|
+
this.setAccessibleLabel();
|
8635
|
+
}
|
8636
|
+
customColorHandler() {
|
8637
|
+
this.variant === "custom" && this.setBadgeColour();
|
8638
|
+
}
|
8639
|
+
variantHandler() {
|
8640
|
+
this.getBadgeForeground();
|
8641
|
+
}
|
8642
|
+
visibleHandler() {
|
8643
|
+
this.setAccessibleLabel();
|
8644
|
+
}
|
8705
8645
|
componentWillLoad() {
|
8646
|
+
var _a;
|
8706
8647
|
this.variant === "custom" && this.setBadgeColour();
|
8707
8648
|
this.getBadgeForeground();
|
8649
|
+
const ariaLabel = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.ariaLabel;
|
8650
|
+
if (ariaLabel)
|
8651
|
+
this.parentAriaLabel = ariaLabel;
|
8708
8652
|
this.setAccessibleLabel();
|
8709
8653
|
}
|
8710
8654
|
componentDidLoad() {
|
@@ -8724,19 +8668,24 @@ class Badge {
|
|
8724
8668
|
this.visible = false;
|
8725
8669
|
}
|
8726
8670
|
render() {
|
8727
|
-
const { position, size, type, variant,
|
8671
|
+
const { ariaLabel, el, foregroundColour, getTextLabel, position, size, textLabel, type, variant, visible, } = this;
|
8728
8672
|
return (hAsync(Host, { class: {
|
8729
8673
|
[`${position}`]: true,
|
8730
8674
|
[`${size}`]: true,
|
8731
8675
|
[`${variant}`]: true,
|
8732
8676
|
[`${type}`]: true,
|
8733
8677
|
[`foreground-${foregroundColour}`]: foregroundColour !== null,
|
8734
|
-
["show"]:
|
8735
|
-
|
8736
|
-
}, id: this.el.id || null, "aria-label": this.ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { name: "badge-icon" }), type === "text" && (hAsync("ic-typography", { variant: size === "small" ? "badge-small" : "badge" }, this.getTextLabel()))));
|
8678
|
+
[`${visible ? "show" : "hide"}`]: true,
|
8679
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { name: "badge-icon" }), type === "text" && textLabel && (hAsync("ic-typography", { variant: size === "small" ? "badge-small" : "badge" }, getTextLabel()))));
|
8737
8680
|
}
|
8738
8681
|
static get delegatesFocus() { return true; }
|
8739
8682
|
get el() { return getElement(this); }
|
8683
|
+
static get watchers() { return {
|
8684
|
+
"accessibleLabel": ["accessibleLabelHandler"],
|
8685
|
+
"customColor": ["customColorHandler"],
|
8686
|
+
"variant": ["variantHandler"],
|
8687
|
+
"visible": ["visibleHandler"]
|
8688
|
+
}; }
|
8740
8689
|
static get style() { return icBadgeCss; }
|
8741
8690
|
static get cmpMeta() { return {
|
8742
8691
|
"$flags$": 25,
|
@@ -8779,9 +8728,9 @@ class Breadcrumb {
|
|
8779
8728
|
return (hAsync("span", { class: {
|
8780
8729
|
"current-page-container": current,
|
8781
8730
|
[this.appearance]: true,
|
8782
|
-
} }, isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
8731
|
+
} }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
8783
8732
|
}
|
8784
|
-
return (hAsync("ic-link", { appearance: this.appearance, href: href, class: "breadcrumb-link", "aria-describedby": this.showBackIcon && describedById && describedById }, this.showBackIcon && (hAsync("div", { class: "back-icon", innerHTML: backIcon })), isSlotUsed(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
8733
|
+
return (hAsync("ic-link", { appearance: this.appearance, href: href, class: "breadcrumb-link", "aria-describedby": this.showBackIcon && describedById && describedById }, this.showBackIcon && (hAsync("div", { class: "back-icon", innerHTML: backIcon })), isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
8785
8734
|
};
|
8786
8735
|
this.setSlottedCurrentPageClass = () => {
|
8787
8736
|
const icLink = this.el.querySelector("ic-link");
|
@@ -8929,6 +8878,8 @@ class BreadcrumbGroup {
|
|
8929
8878
|
this.removeVisuallyHiddenClass(breadcrumb);
|
8930
8879
|
});
|
8931
8880
|
this.expandedBreadcrumbs = true;
|
8881
|
+
// Set focus to first unhidden breadcrumb
|
8882
|
+
this.collapsedBreadcrumbs[0].setFocus();
|
8932
8883
|
};
|
8933
8884
|
this.transitionendHandler = (event) => {
|
8934
8885
|
if (event.propertyName === "opacity") {
|
@@ -9082,24 +9033,16 @@ class Button {
|
|
9082
9033
|
this.describedById = null;
|
9083
9034
|
this.mutationObserver = null;
|
9084
9035
|
this.hostMutationObserver = null;
|
9085
|
-
this.setViewBox = () => {
|
9086
|
-
let iconEl;
|
9087
|
-
if (this.hasLeftIconSlot()) {
|
9088
|
-
iconEl = this.el.querySelector(`[slot="left-icon"]`);
|
9089
|
-
}
|
9090
|
-
else if (this.hasRightIconSlot()) {
|
9091
|
-
iconEl = this.el.querySelector(`[slot="right-icon"]`);
|
9092
|
-
}
|
9093
|
-
else {
|
9094
|
-
iconEl = null;
|
9095
|
-
}
|
9096
|
-
return iconEl;
|
9097
|
-
};
|
9098
9036
|
this.handleClick = () => {
|
9099
9037
|
if ((this.el.type === "submit" || this.el.type === "reset") &&
|
9100
9038
|
!this.hasRouterSlot() &&
|
9101
9039
|
!!this.el.closest("FORM")) {
|
9102
|
-
|
9040
|
+
const hiddenFormButton = document.createElement("button");
|
9041
|
+
hiddenFormButton.setAttribute("type", this.el.type);
|
9042
|
+
hiddenFormButton.style.display = "none";
|
9043
|
+
this.el.closest("FORM").appendChild(hiddenFormButton);
|
9044
|
+
hiddenFormButton.click();
|
9045
|
+
hiddenFormButton.remove();
|
9103
9046
|
}
|
9104
9047
|
};
|
9105
9048
|
this.onFocus = () => {
|
@@ -9108,11 +9051,6 @@ class Button {
|
|
9108
9051
|
this.onBlur = () => {
|
9109
9052
|
this.icBlur.emit();
|
9110
9053
|
};
|
9111
|
-
this.loadingWidth = () => {
|
9112
|
-
if (this.loading) {
|
9113
|
-
this.el.style.setProperty("--min-width", `${this.el.getBoundingClientRect().width}px`);
|
9114
|
-
}
|
9115
|
-
};
|
9116
9054
|
// triggered when text content of sibling element in light DOM changes
|
9117
9055
|
this.mutationCallback = () => {
|
9118
9056
|
this.describedByContent = this.describedByEl.innerText;
|
@@ -9134,23 +9072,6 @@ class Button {
|
|
9134
9072
|
this.hasTooltip =
|
9135
9073
|
!this.disableTooltip && (!!this.title || this.variant === "icon");
|
9136
9074
|
};
|
9137
|
-
// file explorer is only opened if the property fileUpload is set to 'true'
|
9138
|
-
this.openFileExplorer = () => {
|
9139
|
-
renderFileHiddenInput(this.icFileSelection, this.el, this.multiple, this.fileInputName, this.selectedFiles, this.disabled, this.accept);
|
9140
|
-
};
|
9141
|
-
this.isTooltipSilent = () => {
|
9142
|
-
if (this.variant === "icon") {
|
9143
|
-
if (this.title)
|
9144
|
-
return true;
|
9145
|
-
else if (this.ariaLabel)
|
9146
|
-
return true;
|
9147
|
-
else
|
9148
|
-
return false;
|
9149
|
-
}
|
9150
|
-
else {
|
9151
|
-
return false;
|
9152
|
-
}
|
9153
|
-
};
|
9154
9075
|
this.ariaLabel = null;
|
9155
9076
|
this.describedByContent = null;
|
9156
9077
|
this.title = null;
|
@@ -9199,29 +9120,26 @@ class Button {
|
|
9199
9120
|
}
|
9200
9121
|
}
|
9201
9122
|
componentWillUpdate() {
|
9202
|
-
this.
|
9123
|
+
if (this.loading) {
|
9124
|
+
this.el.style.setProperty("--min-width", `${this.el.getBoundingClientRect().width}px`);
|
9125
|
+
}
|
9203
9126
|
this.setHasTooltip();
|
9204
9127
|
}
|
9205
9128
|
componentWillLoad() {
|
9206
|
-
const
|
9207
|
-
...IC_INHERITED_ARIA$1,
|
9208
|
-
"title",
|
9209
|
-
]);
|
9210
|
-
const { title, "aria-label": ariaLabel } = allInheritedAttributes, restInheritedAttributes = __rest(allInheritedAttributes, ["title", "aria-label"]);
|
9129
|
+
const _a = inheritAttributes$1(this.el, [...IC_INHERITED_ARIA$1, "title"]), { title, "aria-label": ariaLabel } = _a, restInheritedAttributes = __rest(_a, ["title", "aria-label"]);
|
9211
9130
|
this.title = title;
|
9212
9131
|
this.ariaLabel = ariaLabel;
|
9213
9132
|
this.inheritedAttributes = restInheritedAttributes;
|
9214
9133
|
removeDisabledFalse$1(this.disabled, this.el);
|
9215
9134
|
this.el.setAttribute("exportparts", "button");
|
9216
|
-
|
9217
|
-
this.id = id !== undefined ? id : null;
|
9135
|
+
this.id = this.el.id || null;
|
9218
9136
|
this.setHasTooltip();
|
9219
9137
|
if (!this.hasTooltip) {
|
9220
9138
|
const describedById = this.inheritedAttributes["aria-describedby"];
|
9221
9139
|
if (describedById !== undefined) {
|
9222
9140
|
this.describedById = describedById;
|
9223
9141
|
const el = this.el.parentElement.querySelector(`#${describedById}`);
|
9224
|
-
if (el
|
9142
|
+
if (el) {
|
9225
9143
|
this.describedByContent = el.innerText;
|
9226
9144
|
this.describedByEl = el;
|
9227
9145
|
}
|
@@ -9246,13 +9164,17 @@ class Button {
|
|
9246
9164
|
}
|
9247
9165
|
}
|
9248
9166
|
componentWillRender() {
|
9249
|
-
|
9250
|
-
|
9167
|
+
const iconEl = this.hasIconSlot("left")
|
9168
|
+
? this.el.querySelector(`[slot="left-icon"]`)
|
9169
|
+
: this.hasIconSlot("right")
|
9170
|
+
? this.el.querySelector(`[slot="right-icon"]`)
|
9171
|
+
: null;
|
9172
|
+
iconEl === null || iconEl === void 0 ? void 0 : iconEl.setAttribute("viewBox", "0 0 24 24");
|
9251
9173
|
}
|
9252
9174
|
handleHostClick(event) {
|
9253
9175
|
if (!this.hasRouterSlot()) {
|
9254
9176
|
if (this.fileUpload) {
|
9255
|
-
this.
|
9177
|
+
renderFileHiddenInput(this.icFileSelection, this.el, this.multiple, this.fileInputName, this.selectedFiles, this.disabled, this.accept);
|
9256
9178
|
}
|
9257
9179
|
if (this.disabled || this.loading) {
|
9258
9180
|
event.stopImmediatePropagation();
|
@@ -9262,33 +9184,19 @@ class Button {
|
|
9262
9184
|
}
|
9263
9185
|
}
|
9264
9186
|
}
|
9265
|
-
themeChangeHandler(
|
9266
|
-
|
9267
|
-
this.updateTheme(theme.mode);
|
9187
|
+
themeChangeHandler({ detail }) {
|
9188
|
+
this.updateTheme(detail.mode);
|
9268
9189
|
}
|
9269
9190
|
/**
|
9270
9191
|
* Sets focus on the native `button`.
|
9271
9192
|
*/
|
9272
9193
|
async setFocus() {
|
9273
|
-
|
9274
|
-
|
9275
|
-
}
|
9276
|
-
}
|
9277
|
-
hasIconSlot() {
|
9278
|
-
const iconEl = this.el.querySelector(`[slot="icon"]`);
|
9279
|
-
return iconEl !== null;
|
9280
|
-
}
|
9281
|
-
hasLeftIconSlot() {
|
9282
|
-
const iconEl = this.el.querySelector(`[slot="left-icon"]`);
|
9283
|
-
return iconEl !== null;
|
9284
|
-
}
|
9285
|
-
hasTopIconSlot() {
|
9286
|
-
const iconEl = this.el.querySelector(`[slot="top-icon"]`);
|
9287
|
-
return iconEl !== null;
|
9194
|
+
var _a;
|
9195
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
9288
9196
|
}
|
9289
|
-
|
9290
|
-
const
|
9291
|
-
return
|
9197
|
+
hasIconSlot(position) {
|
9198
|
+
const selectorPrefix = position ? `${position}-` : "";
|
9199
|
+
return this.el.querySelector(`[slot="${selectorPrefix}icon"]`) !== null;
|
9292
9200
|
}
|
9293
9201
|
hasRouterSlot() {
|
9294
9202
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
@@ -9297,16 +9205,8 @@ class Button {
|
|
9297
9205
|
}
|
9298
9206
|
return !!this.routerSlot;
|
9299
9207
|
}
|
9300
|
-
handleHiddenFormButtonClick(form) {
|
9301
|
-
const hiddenFormButton = document.createElement("button");
|
9302
|
-
hiddenFormButton.setAttribute("type", this.el.type);
|
9303
|
-
hiddenFormButton.style.display = "none";
|
9304
|
-
form.appendChild(hiddenFormButton);
|
9305
|
-
hiddenFormButton.click();
|
9306
|
-
hiddenFormButton.remove();
|
9307
|
-
}
|
9308
9208
|
updateTheme(newTheme = null) {
|
9309
|
-
const foregroundColor = getThemeFromContext(this.el, newTheme
|
9209
|
+
const foregroundColor = getThemeFromContext(this.el, newTheme);
|
9310
9210
|
if (foregroundColor !== IcThemeForegroundEnum$1.Default) {
|
9311
9211
|
this.appearance = foregroundColor;
|
9312
9212
|
}
|
@@ -9349,15 +9249,15 @@ class Button {
|
|
9349
9249
|
describedBy = this.describedById;
|
9350
9250
|
}
|
9351
9251
|
const ButtonContent = () => {
|
9352
|
-
return (hAsync(TagType, Object.assign({ class: "button", "aria-disabled": this.loading || this.disabled ? "true" : null, "aria-label": this.loading ? "Loading" : ariaLabel, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: this.onFocus, onBlur: this.onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedBy, part: "button" }), this.hasIconSlot() && !this.loading && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), this.
|
9353
|
-
!this.
|
9354
|
-
!this.
|
9252
|
+
return (hAsync(TagType, Object.assign({ class: "button", "aria-disabled": this.loading || this.disabled ? "true" : null, "aria-label": this.loading ? "Loading" : ariaLabel, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: this.onFocus, onBlur: this.onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedBy, part: "button" }), this.hasIconSlot() && !this.loading && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), this.hasIconSlot("left") && !this.loading && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "left-icon" }))), this.hasIconSlot("top") &&
|
9253
|
+
!this.hasIconSlot("left") &&
|
9254
|
+
!this.hasIconSlot("right") &&
|
9355
9255
|
!this.loading && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "top-icon" }))), this.loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", appearance: this.variant === "primary" ||
|
9356
9256
|
this.variant === "destructive" ||
|
9357
9257
|
this.appearance === IcThemeForegroundEnum$1.Dark ||
|
9358
9258
|
this.appearance === IcThemeForegroundEnum$1.Light
|
9359
9259
|
? "light"
|
9360
|
-
: "dark" }))) : (hAsync("slot", null)), this.
|
9260
|
+
: "dark" }))) : (hAsync("slot", null)), this.hasIconSlot("right") && !this.loading && !this.dropdown && (hAsync("div", { class: { "icon-container": true, "right-icon": true } }, hAsync("slot", { name: "right-icon" }))), this.dropdown &&
|
9361
9261
|
!this.loading &&
|
9362
9262
|
this.variant !== "icon" &&
|
9363
9263
|
this.variant !== "destructive" && (hAsync("span", { class: {
|
@@ -9373,15 +9273,15 @@ class Button {
|
|
9373
9273
|
["dark"]: this.appearance === IcThemeForegroundEnum$1.Dark,
|
9374
9274
|
["light"]: this.appearance === IcThemeForegroundEnum$1.Light,
|
9375
9275
|
["full-width"]: this.fullWidth,
|
9376
|
-
["with-badge"]: isSlotUsed(this.el, "badge"),
|
9276
|
+
["with-badge"]: isSlotUsed$1(this.el, "badge"),
|
9377
9277
|
["dropdown-no-icon"]: this.dropdown &&
|
9378
|
-
!isSlotUsed(this.el, "icon") &&
|
9379
|
-
!isSlotUsed(this.el, "left-icon"),
|
9380
|
-
["top-icon"]: isSlotUsed(this.el, "top-icon"),
|
9278
|
+
!isSlotUsed$1(this.el, "icon") &&
|
9279
|
+
!isSlotUsed$1(this.el, "left-icon"),
|
9280
|
+
["top-icon"]: isSlotUsed$1(this.el, "top-icon"),
|
9381
9281
|
["white-background"]: this.variant === "secondary" &&
|
9382
9282
|
!this.transparentBackground &&
|
9383
9283
|
this.appearance !== "light",
|
9384
|
-
}, onClick: this.handleClick, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (hAsync("ic-tooltip", { id: describedBy, label: title || ariaLabel, target: buttonId, placement: this.tooltipPlacement, silent: this.
|
9284
|
+
}, onClick: this.handleClick, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (hAsync("ic-tooltip", { id: describedBy, label: title || ariaLabel, target: buttonId, placement: this.tooltipPlacement, silent: this.variant === "icon" && (!!title || !!ariaLabel) }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null)))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" }), !this.hasTooltip &&
|
9385
9285
|
(this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null))), this.describedByContent && (hAsync("span", { id: describedBy, class: "ic-button-describedby" }, this.describedByContent))));
|
9386
9286
|
}
|
9387
9287
|
static get delegatesFocus() { return true; }
|
@@ -9499,7 +9399,7 @@ class Card {
|
|
9499
9399
|
removeDisabledFalse$1(this.disabled, this.el);
|
9500
9400
|
}
|
9501
9401
|
componentDidLoad() {
|
9502
|
-
!isSlotUsed(this.el, "heading") &&
|
9402
|
+
!isSlotUsed$1(this.el, "heading") &&
|
9503
9403
|
onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Card");
|
9504
9404
|
this.updateTheme();
|
9505
9405
|
}
|
@@ -9552,12 +9452,12 @@ class Card {
|
|
9552
9452
|
["fullwidth"]: fullWidth,
|
9553
9453
|
["focussed"]: isFocussed,
|
9554
9454
|
["dark"]: this.appearance === IcThemeForegroundEnum$1.Dark,
|
9555
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : null, "aria-disabled": disabled ? "true" : null, disabled: disabled ? true : null }, attrs), isSlotUsed(this.el, "image-top") && (hAsync("div", { class: "image-top" }, hAsync("slot", { name: "image-top" }))), hAsync("div", { class: "card-header" }, isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("div", { class: "card-title" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4" }, hAsync("p", null, heading)))), isSlotUsed(this.el, "interaction-button") && (hAsync("div", { class: "interaction-button" }, hAsync("slot", { name: "interaction-button" })))), (subheading || isSlotUsed(this.el, "subheading")) && (hAsync("div", { class: "subheading" }, hAsync("slot", { name: "subheading" }, hAsync("ic-typography", { variant: "subtitle-small" }, subheading)))), isSlotUsed(this.el, "adornment") && (hAsync("div", { class: "adornment" }, hAsync("slot", { name: "adornment" }))), isSlotUsed(this.el, "image-mid") && (hAsync("div", { class: "image-mid" }, hAsync("slot", { name: "image-mid" }))), (message || isSlotUsed(this.el, "message")) && (hAsync("div", { class: {
|
9455
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : null, "aria-disabled": disabled ? "true" : null, disabled: disabled ? true : null }, attrs), isSlotUsed$1(this.el, "image-top") && (hAsync("div", { class: "image-top" }, hAsync("slot", { name: "image-top" }))), hAsync("div", { class: "card-header" }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("div", { class: "card-title" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4" }, hAsync("p", null, heading)))), isSlotUsed$1(this.el, "interaction-button") && (hAsync("div", { class: "interaction-button" }, hAsync("slot", { name: "interaction-button" })))), (subheading || isSlotUsed$1(this.el, "subheading")) && (hAsync("div", { class: "subheading" }, hAsync("slot", { name: "subheading" }, hAsync("ic-typography", { variant: "subtitle-small" }, subheading)))), isSlotUsed$1(this.el, "adornment") && (hAsync("div", { class: "adornment" }, hAsync("slot", { name: "adornment" }))), isSlotUsed$1(this.el, "image-mid") && (hAsync("div", { class: "image-mid" }, hAsync("slot", { name: "image-mid" }))), (message || isSlotUsed$1(this.el, "message")) && (hAsync("div", { class: {
|
9556
9456
|
["card-message"]: true,
|
9557
|
-
} }, message && hAsync("ic-typography", { variant: "body" }, message), isSlotUsed(this.el, "message") && hAsync("slot", { name: "message" }))), (isSlotUsed(this.el, "interaction-controls") || expandable) && (hAsync("div", { class: "interaction-area" }, hAsync("div", { class: "interaction-controls" }, hAsync("slot", { name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { class: {
|
9457
|
+
} }, message && hAsync("ic-typography", { variant: "body" }, message), isSlotUsed$1(this.el, "message") && hAsync("slot", { name: "message" }))), (isSlotUsed$1(this.el, "interaction-controls") || expandable) && (hAsync("div", { class: "interaction-area" }, hAsync("div", { class: "interaction-controls" }, hAsync("slot", { name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { class: {
|
9558
9458
|
["toggle-button"]: true,
|
9559
9459
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
9560
|
-
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { name: "expanded-content" }))), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
9460
|
+
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed$1(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { name: "expanded-content" }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
9561
9461
|
}
|
9562
9462
|
get el() { return getElement(this); }
|
9563
9463
|
static get style() { return icCardCss; }
|
@@ -9601,7 +9501,6 @@ class Checkbox {
|
|
9601
9501
|
registerInstance(this, hostRef);
|
9602
9502
|
this.checkboxChecked = createEvent(this, "checkboxChecked", 7);
|
9603
9503
|
this.icCheck = createEvent(this, "icCheck", 7);
|
9604
|
-
this.IC_TEXT_FIELD = "ic-text-field";
|
9605
9504
|
this.handleClick = () => {
|
9606
9505
|
this.checked = !this.checked;
|
9607
9506
|
this.icCheck.emit();
|
@@ -9632,6 +9531,12 @@ class Checkbox {
|
|
9632
9531
|
componentWillLoad() {
|
9633
9532
|
removeDisabledFalse$1(this.disabled, this.el);
|
9634
9533
|
addFormResetListener$1(this.el, this.handleFormReset);
|
9534
|
+
const checkboxGroup = this.el.parentElement;
|
9535
|
+
if (checkboxGroup) {
|
9536
|
+
if (!this.name)
|
9537
|
+
this.name = checkboxGroup.name;
|
9538
|
+
this.groupLabel = checkboxGroup.label;
|
9539
|
+
}
|
9635
9540
|
}
|
9636
9541
|
componentDidLoad() {
|
9637
9542
|
onComponentRequiredPropUndefined$1([
|
@@ -9641,21 +9546,18 @@ class Checkbox {
|
|
9641
9546
|
}
|
9642
9547
|
componentDidRender() {
|
9643
9548
|
if (this.additionalFieldDisplay === "static") {
|
9644
|
-
const textfield = this.el.querySelector(
|
9549
|
+
const textfield = this.el.querySelector("ic-text-field");
|
9645
9550
|
if (!this.checked) {
|
9646
|
-
textfield
|
9551
|
+
textfield === null || textfield === void 0 ? void 0 : textfield.setAttribute("disabled", "");
|
9647
9552
|
}
|
9648
9553
|
else {
|
9649
|
-
textfield
|
9554
|
+
textfield === null || textfield === void 0 ? void 0 : textfield.removeAttribute("disabled");
|
9650
9555
|
}
|
9651
9556
|
}
|
9652
9557
|
else if (this.additionalFieldContainer) {
|
9653
|
-
|
9654
|
-
|
9655
|
-
|
9656
|
-
else {
|
9657
|
-
this.additionalFieldContainer.style.display = "flex";
|
9658
|
-
}
|
9558
|
+
this.additionalFieldContainer.style.display = !this.checked
|
9559
|
+
? "none"
|
9560
|
+
: "flex";
|
9659
9561
|
}
|
9660
9562
|
}
|
9661
9563
|
disconnectedCallback() {
|
@@ -9665,28 +9567,28 @@ class Checkbox {
|
|
9665
9567
|
* Sets focus on the checkbox.
|
9666
9568
|
*/
|
9667
9569
|
async setFocus() {
|
9668
|
-
|
9669
|
-
|
9670
|
-
checkboxEl.focus();
|
9671
|
-
}
|
9570
|
+
var _a;
|
9571
|
+
(_a = this.el.shadowRoot.querySelector(".checkbox")) === null || _a === void 0 ? void 0 : _a.focus();
|
9672
9572
|
}
|
9673
9573
|
render() {
|
9674
|
-
|
9675
|
-
id =
|
9676
|
-
const parentElementSize =
|
9677
|
-
|
9678
|
-
|
9679
|
-
|
9574
|
+
const { additionalFieldDisplay, checked, disabled, dynamicText, el, form, formaction, formenctype, formmethod, formnovalidate, formtarget, indeterminate, groupLabel, label, name, size, small, value, } = this;
|
9575
|
+
const id = `ic-checkbox-${isPropDefined(label) || value}-${groupLabel}`.replace(/ /g, "-");
|
9576
|
+
const parentElementSize = el.parentElement
|
9577
|
+
.size;
|
9578
|
+
checked
|
9579
|
+
? renderHiddenInput$1(true, el, name, checked && value, disabled)
|
9580
|
+
: removeHiddenInput(el);
|
9680
9581
|
return (hAsync(Host, { class: {
|
9681
|
-
|
9682
|
-
|
9683
|
-
[`${
|
9684
|
-
} }, hAsync("div", { class: "container" },
|
9685
|
-
|
9686
|
-
|
9687
|
-
|
9688
|
-
|
9689
|
-
|
9582
|
+
disabled,
|
9583
|
+
small,
|
9584
|
+
[`${size || parentElementSize}`]: true,
|
9585
|
+
} }, hAsync("div", { class: "container" }, checked &&
|
9586
|
+
(!indeterminate ? (hAsync("svg", { class: "checkmark", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" }))) : (hAsync("div", { class: "indeterminate-symbol" }))), hAsync("input", { role: "checkbox", class: {
|
9587
|
+
checkbox: true,
|
9588
|
+
checked,
|
9589
|
+
indeterminate,
|
9590
|
+
}, type: "checkbox", name: name, id: id, value: value, disabled: disabled ? true : null, checked: checked, indeterminate: indeterminate, onClick: this.handleClick, form: form, formaction: formaction, formenctype: formenctype, formmethod: formmethod, formnovalidate: formnovalidate, formtarget: formtarget }), hAsync("ic-typography", { class: "checkbox-label", variant: "body" }, hAsync("label", { htmlFor: id }, label))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, additionalFieldDisplay === "dynamic" && (hAsync("div", { class: "branch-corner" })), hAsync("div", null, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { variant: "caption" }, hAsync("p", { class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { class: {
|
9591
|
+
"additional-field-wrapper": additionalFieldDisplay === "static",
|
9690
9592
|
} }, hAsync("slot", { name: "additional-field" })))))));
|
9691
9593
|
}
|
9692
9594
|
static get delegatesFocus() { return true; }
|
@@ -9740,6 +9642,16 @@ class CheckboxGroup {
|
|
9740
9642
|
this.validationStatus = "";
|
9741
9643
|
this.validationText = "";
|
9742
9644
|
}
|
9645
|
+
labelNameHandler(newValue, oldValue, propName) {
|
9646
|
+
Array.from(this.el.querySelectorAll("ic-checkbox")).forEach((checkbox) => {
|
9647
|
+
if (propName === "label")
|
9648
|
+
checkbox.groupLabel = newValue;
|
9649
|
+
else if (checkbox.name === oldValue) {
|
9650
|
+
// If the checkbox name has been set by the parent, then override it
|
9651
|
+
checkbox.name = newValue;
|
9652
|
+
}
|
9653
|
+
});
|
9654
|
+
}
|
9743
9655
|
handleChange(ev) {
|
9744
9656
|
//don't pass on the event if it has come from slotted text field
|
9745
9657
|
//otherwise any icChange handler bound to the checkbox group will also run
|
@@ -9751,20 +9663,15 @@ class CheckboxGroup {
|
|
9751
9663
|
removeDisabledFalse$1(this.disabled, this.el);
|
9752
9664
|
}
|
9753
9665
|
componentDidLoad() {
|
9754
|
-
Array.from(this.el.querySelectorAll("ic-checkbox")).forEach((checkbox) => {
|
9755
|
-
if (!checkbox.name)
|
9756
|
-
checkbox.name = this.name;
|
9757
|
-
checkbox.groupLabel = this.label;
|
9758
|
-
});
|
9759
9666
|
onComponentRequiredPropUndefined$1([
|
9760
9667
|
{ prop: this.label, propName: "label" },
|
9761
9668
|
{ prop: this.name, propName: "name" },
|
9762
9669
|
], "Checkbox Group");
|
9763
9670
|
}
|
9764
|
-
selectHandler(
|
9765
|
-
const checkedOptions = Array.from(this.el.querySelectorAll("ic-checkbox")).filter((
|
9671
|
+
selectHandler({ target }) {
|
9672
|
+
const checkedOptions = Array.from(this.el.querySelectorAll("ic-checkbox")).filter(({ checked, disabled }) => checked && !disabled);
|
9766
9673
|
this.icChange.emit({
|
9767
|
-
value: checkedOptions.map((
|
9674
|
+
value: checkedOptions.map(({ value }) => value),
|
9768
9675
|
checkedOptions: checkedOptions.map((opt) => {
|
9769
9676
|
var _a;
|
9770
9677
|
return ({
|
@@ -9772,19 +9679,21 @@ class CheckboxGroup {
|
|
9772
9679
|
textFieldValue: (_a = opt.querySelector("ic-text-field")) === null || _a === void 0 ? void 0 : _a.value,
|
9773
9680
|
});
|
9774
9681
|
}),
|
9775
|
-
selectedOption:
|
9682
|
+
selectedOption: target,
|
9776
9683
|
});
|
9777
9684
|
}
|
9778
9685
|
render() {
|
9779
|
-
const
|
9780
|
-
const
|
9781
|
-
return (hAsync(Host, { class: { ["small"]:
|
9782
|
-
this.required ||
|
9783
|
-
this.hideLabel) && (hAsync("span", { id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, this.label, " ", this.validationStatus === "error" ? "invalid data " : null, " ", this.required ? "required" : null)), hAsync("fieldset", { id: this.name, "aria-labelledby": `${this.validationStatus === "error" || this.required || this.hideLabel
|
9686
|
+
const { disabled, helperText, hideLabel, label, name, required, size, small, validationStatus, validationText, } = this;
|
9687
|
+
const describedBy = getInputDescribedByText$1(name, helperText !== "", validationStatus !== "");
|
9688
|
+
return (hAsync(Host, { class: { ["small"]: small, [`${size}`]: true } }, (validationStatus === "error" || required || hideLabel) && (hAsync("span", { id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { id: name, "aria-labelledby": `${validationStatus === "error" || required || hideLabel
|
9784
9689
|
? "screenReaderOnlyText"
|
9785
|
-
: ""} ${describedBy}`.trim(), disabled:
|
9690
|
+
: ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", null, hAsync("ic-input-label", { class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, for: name }))), hAsync("div", { class: "checkboxes-container" }, hAsync("slot", null))), hasValidationStatus$1(validationStatus, disabled) && (hAsync("ic-input-validation", { for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
9786
9691
|
}
|
9787
9692
|
get el() { return getElement(this); }
|
9693
|
+
static get watchers() { return {
|
9694
|
+
"label": ["labelNameHandler"],
|
9695
|
+
"name": ["labelNameHandler"]
|
9696
|
+
}; }
|
9788
9697
|
static get style() { return icCheckboxGroupCss; }
|
9789
9698
|
static get cmpMeta() { return {
|
9790
9699
|
"$flags$": 9,
|
@@ -9812,7 +9721,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
9812
9721
|
</svg>
|
9813
9722
|
`;
|
9814
9723
|
|
9815
|
-
const icChipCss = "/*!@html*/html.sc-ic-chip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-chip{margin:0}/*!@main*/main.sc-ic-chip{display:block}/*!@h1*/h1.sc-ic-chip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-chip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-chip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-chip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-chip,strong.sc-ic-chip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-chip,kbd.sc-ic-chip,samp.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-chip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-chip,sup.sc-ic-chip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-chip{bottom:-0.25em}/*!@sup*/sup.sc-ic-chip{top:-0.5em}/*!@img*/img.sc-ic-chip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-chip,input.sc-ic-chip,optgroup.sc-ic-chip,select.sc-ic-chip,textarea.sc-ic-chip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-chip,input.sc-ic-chip{overflow:visible}/*!@button,\nselect*/button.sc-ic-chip,select.sc-ic-chip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-chip,[type=\"button\"].sc-ic-chip,[type=\"reset\"].sc-ic-chip,[type=\"submit\"].sc-ic-chip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-chip::-moz-focus-inner,[type=\"button\"].sc-ic-chip::-moz-focus-inner,[type=\"reset\"].sc-ic-chip::-moz-focus-inner,[type=\"submit\"].sc-ic-chip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-chip:-moz-focusring,[type=\"button\"].sc-ic-chip:-moz-focusring,[type=\"reset\"].sc-ic-chip:-moz-focusring,[type=\"submit\"].sc-ic-chip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-chip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-chip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-chip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-chip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-chip,[type=\"radio\"].sc-ic-chip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-chip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-chip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-chip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-chip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-chip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-chip{display:block}/*!@summary*/summary.sc-ic-chip{display:list-item}/*!@template*/template.sc-ic-chip{display:none}/*!@[hidden]*/[hidden].sc-ic-chip{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-chip,body.sc-ic-chip,div.sc-ic-chip,span.sc-ic-chip,applet.sc-ic-chip,object.sc-ic-chip,iframe.sc-ic-chip,h1.sc-ic-chip,h2.sc-ic-chip,h3.sc-ic-chip,h4.sc-ic-chip,h5.sc-ic-chip,h6.sc-ic-chip,p.sc-ic-chip,blockquote.sc-ic-chip,pre.sc-ic-chip,a.sc-ic-chip,abbr.sc-ic-chip,acronym.sc-ic-chip,address.sc-ic-chip,big.sc-ic-chip,cite.sc-ic-chip,code.sc-ic-chip,del.sc-ic-chip,dfn.sc-ic-chip,em.sc-ic-chip,img.sc-ic-chip,ins.sc-ic-chip,kbd.sc-ic-chip,q.sc-ic-chip,s.sc-ic-chip,samp.sc-ic-chip,small.sc-ic-chip,strike.sc-ic-chip,strong.sc-ic-chip,sub.sc-ic-chip,sup.sc-ic-chip,tt.sc-ic-chip,var.sc-ic-chip,b.sc-ic-chip,u.sc-ic-chip,i.sc-ic-chip,center.sc-ic-chip,dl.sc-ic-chip,dt.sc-ic-chip,dd.sc-ic-chip,ol.sc-ic-chip,ul.sc-ic-chip,li.sc-ic-chip,fieldset.sc-ic-chip,form.sc-ic-chip,label.sc-ic-chip,legend.sc-ic-chip,table.sc-ic-chip,caption.sc-ic-chip,tbody.sc-ic-chip,tfoot.sc-ic-chip,thead.sc-ic-chip,tr.sc-ic-chip,th.sc-ic-chip,td.sc-ic-chip,article.sc-ic-chip,aside.sc-ic-chip,canvas.sc-ic-chip,details.sc-ic-chip,embed.sc-ic-chip,figure.sc-ic-chip,figcaption.sc-ic-chip,footer.sc-ic-chip,header.sc-ic-chip,hgroup.sc-ic-chip,menu.sc-ic-chip,nav.sc-ic-chip,output.sc-ic-chip,ruby.sc-ic-chip,section.sc-ic-chip,summary.sc-ic-chip,time.sc-ic-chip,mark.sc-ic-chip,audio.sc-ic-chip,video.sc-ic-chip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-chip-h{display:inline-block}/*!@.chip*/.chip.sc-ic-chip{display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative}/*!@.chip.small*/.chip.small.sc-ic-chip{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}/*!@.chip.large*/.chip.large.sc-ic-chip{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}/*!@.label*/.label.sc-ic-chip{padding:0 var(--ic-space-xs)}/*!@.chip.hovered:not(:focus-within)*/.chip.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-architectural-300)}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}/*!@.chip.outline.hovered:not(:focus-within),\n.chip.outlined.hovered:not(:focus-within)*/.chip.outline.hovered.sc-ic-chip:not(:focus-within),.chip.outlined.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover)}/*!@ic-tooltip:focus-within*/ic-tooltip.sc-ic-chip:focus-within{z-index:1}/*!@.filled*/.filled.sc-ic-chip{background-color:var(--ic-architectural-200);color:black;border:none}/*!@.filled.disabled*/.filled.disabled.sc-ic-chip{background-color:var(--ic-architectural-100)}/*!@.outline,\n.outlined*/.outline.sc-ic-chip,.outlined.sc-ic-chip{color:var(--ic-architectural-900);border:var(--ic-border-width) solid var(--ic-architectural-900);padding:calc(var(--ic-space-xxs) - var(--ic-space-1px))}/*!@.outline.small,\n.outlined.small*/.outline.small.sc-ic-chip,.outlined.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.outline.large,\n.outlined.large*/.outline.large.sc-ic-chip,.outlined.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.outline.disabled,\n.outlined.disabled*/.outline.disabled.sc-ic-chip,.outlined.disabled.sc-ic-chip{border:var(--ic-border-disabled);background:none}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-
|
9724
|
+
const icChipCss = "/*!@html*/html.sc-ic-chip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-chip{margin:0}/*!@main*/main.sc-ic-chip{display:block}/*!@h1*/h1.sc-ic-chip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-chip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-chip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-chip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-chip,strong.sc-ic-chip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-chip,kbd.sc-ic-chip,samp.sc-ic-chip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-chip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-chip,sup.sc-ic-chip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-chip{bottom:-0.25em}/*!@sup*/sup.sc-ic-chip{top:-0.5em}/*!@img*/img.sc-ic-chip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-chip,input.sc-ic-chip,optgroup.sc-ic-chip,select.sc-ic-chip,textarea.sc-ic-chip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-chip,input.sc-ic-chip{overflow:visible}/*!@button,\nselect*/button.sc-ic-chip,select.sc-ic-chip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-chip,[type=\"button\"].sc-ic-chip,[type=\"reset\"].sc-ic-chip,[type=\"submit\"].sc-ic-chip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-chip::-moz-focus-inner,[type=\"button\"].sc-ic-chip::-moz-focus-inner,[type=\"reset\"].sc-ic-chip::-moz-focus-inner,[type=\"submit\"].sc-ic-chip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-chip:-moz-focusring,[type=\"button\"].sc-ic-chip:-moz-focusring,[type=\"reset\"].sc-ic-chip:-moz-focusring,[type=\"submit\"].sc-ic-chip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-chip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-chip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-chip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-chip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-chip,[type=\"radio\"].sc-ic-chip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-chip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-chip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-chip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-chip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-chip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-chip{display:block}/*!@summary*/summary.sc-ic-chip{display:list-item}/*!@template*/template.sc-ic-chip{display:none}/*!@[hidden]*/[hidden].sc-ic-chip{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-chip,body.sc-ic-chip,div.sc-ic-chip,span.sc-ic-chip,applet.sc-ic-chip,object.sc-ic-chip,iframe.sc-ic-chip,h1.sc-ic-chip,h2.sc-ic-chip,h3.sc-ic-chip,h4.sc-ic-chip,h5.sc-ic-chip,h6.sc-ic-chip,p.sc-ic-chip,blockquote.sc-ic-chip,pre.sc-ic-chip,a.sc-ic-chip,abbr.sc-ic-chip,acronym.sc-ic-chip,address.sc-ic-chip,big.sc-ic-chip,cite.sc-ic-chip,code.sc-ic-chip,del.sc-ic-chip,dfn.sc-ic-chip,em.sc-ic-chip,img.sc-ic-chip,ins.sc-ic-chip,kbd.sc-ic-chip,q.sc-ic-chip,s.sc-ic-chip,samp.sc-ic-chip,small.sc-ic-chip,strike.sc-ic-chip,strong.sc-ic-chip,sub.sc-ic-chip,sup.sc-ic-chip,tt.sc-ic-chip,var.sc-ic-chip,b.sc-ic-chip,u.sc-ic-chip,i.sc-ic-chip,center.sc-ic-chip,dl.sc-ic-chip,dt.sc-ic-chip,dd.sc-ic-chip,ol.sc-ic-chip,ul.sc-ic-chip,li.sc-ic-chip,fieldset.sc-ic-chip,form.sc-ic-chip,label.sc-ic-chip,legend.sc-ic-chip,table.sc-ic-chip,caption.sc-ic-chip,tbody.sc-ic-chip,tfoot.sc-ic-chip,thead.sc-ic-chip,tr.sc-ic-chip,th.sc-ic-chip,td.sc-ic-chip,article.sc-ic-chip,aside.sc-ic-chip,canvas.sc-ic-chip,details.sc-ic-chip,embed.sc-ic-chip,figure.sc-ic-chip,figcaption.sc-ic-chip,footer.sc-ic-chip,header.sc-ic-chip,hgroup.sc-ic-chip,menu.sc-ic-chip,nav.sc-ic-chip,output.sc-ic-chip,ruby.sc-ic-chip,section.sc-ic-chip,summary.sc-ic-chip,time.sc-ic-chip,mark.sc-ic-chip,audio.sc-ic-chip,video.sc-ic-chip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-chip-h{display:inline-block}/*!@.chip*/.chip.sc-ic-chip{display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative}/*!@.chip.small*/.chip.small.sc-ic-chip{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}/*!@.chip.large*/.chip.large.sc-ic-chip{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}/*!@.label*/.label.sc-ic-chip{padding:0 var(--ic-space-xs)}/*!@.chip.hovered:not(:focus-within)*/.chip.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-architectural-300)}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}/*!@.chip.outline.hovered:not(:focus-within),\n.chip.outlined.hovered:not(:focus-within)*/.chip.outline.hovered.sc-ic-chip:not(:focus-within),.chip.outlined.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover)}/*!@ic-tooltip:focus-within*/ic-tooltip.sc-ic-chip:focus-within{z-index:1}/*!@.filled*/.filled.sc-ic-chip{background-color:var(--chip-custom-color, var(--ic-architectural-200));color:var(--chip-custom-foreground-color, black);border:none}/*!@.filled.disabled*/.filled.disabled.sc-ic-chip{background-color:var(--ic-architectural-100)}/*!@.outline,\n.outlined*/.outline.sc-ic-chip,.outlined.sc-ic-chip{color:var(--ic-architectural-900);border:var(--ic-border-width) solid\n var(--chip-custom-color, var(--ic-architectural-900));padding:calc(var(--ic-space-xxs) - var(--ic-space-1px))}/*!@.outline.small,\n.outlined.small*/.outline.small.sc-ic-chip,.outlined.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.outline.large,\n.outlined.large*/.outline.large.sc-ic-chip,.outlined.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.outline.disabled,\n.outlined.disabled*/.outline.disabled.sc-ic-chip,.outlined.disabled.sc-ic-chip{border:var(--ic-border-disabled);background:none}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-500)}/*!@.filled.disabled ic-typography*/.filled.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:var(--ic-architectural-600)}/*!@.dismiss-icon*/.dismiss-icon.sc-ic-chip{border:none;border-radius:50%;padding:0;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}/*!@.dismiss-icon:focus*/.dismiss-icon.sc-ic-chip:focus{outline:var(--ic-hc-focus-outline)}/*!@.dismiss-icon[disabled]*/.dismiss-icon[disabled].sc-ic-chip{pointer-events:none;color:var(--ic-architectural-200)}/*!@.icon*/.icon.sc-ic-chip{padding:var(--ic-space-xxxs);box-sizing:border-box}/*!@.icon,\nic-tooltip*/.icon.sc-ic-chip,ic-tooltip.sc-ic-chip{width:var(--ic-space-lg);height:var(--ic-space-lg)}/*!@.chip.disabled path,\n.chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:var(--ic-architectural-200)}/*!@.chip.white-background*/.chip.white-background.sc-ic-chip{background-color:var(--ic-architectural-white)}/*!@.chip.white-background.hovered:not(:focus-within)*/.chip.white-background.hovered.sc-ic-chip:not(:focus-within){background-color:var(--ic-action-dark-bg-hover-no-alpha) !important}@media (forced-colors: active){/*!@.chip*/.chip.sc-ic-chip{border:var(--ic-hc-border)}/*!@.filled.small*/.filled.small.sc-ic-chip{padding:calc(var(--ic-space-xxxs) - var(--ic-space-1px))}/*!@.filled*/.filled.sc-ic-chip{padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}/*!@.filled.large*/.filled.large.sc-ic-chip{padding:calc(var(--ic-space-xs) - var(--ic-space-1px))}/*!@.chip.disabled*/.chip.disabled.sc-ic-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}/*!@.chip.disabled ic-typography*/.chip.disabled.sc-ic-chip ic-typography.sc-ic-chip{color:GrayText}/*!@.chip.disabled path,\n .chip.disabled ::slotted(svg)*/.chip.disabled.sc-ic-chip path.sc-ic-chip,.chip.disabled.sc-ic-chip-s>svg,.chip.disabled .sc-ic-chip-s>svg{fill:GrayText}/*!@.chip:focus-within*/.chip.sc-ic-chip:focus-within{outline:none;border-color:Highlight}}";
|
9816
9725
|
|
9817
9726
|
/**
|
9818
9727
|
* @slot icon - Content will be rendered at the start of the chip.
|
@@ -9828,14 +9737,23 @@ class Chip {
|
|
9828
9737
|
this.icDismiss.emit();
|
9829
9738
|
};
|
9830
9739
|
this.mouseEnterHandler = () => {
|
9831
|
-
this.
|
9740
|
+
this.hovered = true;
|
9832
9741
|
};
|
9833
9742
|
this.mouseLeaveHandler = () => {
|
9834
|
-
this.
|
9743
|
+
this.hovered = false;
|
9835
9744
|
};
|
9836
|
-
this.
|
9745
|
+
this.setChipColour = () => {
|
9746
|
+
const colorRGBA = convertToRGBA(this.customColor);
|
9747
|
+
if (colorRGBA) {
|
9748
|
+
const { r, g, b, a } = colorRGBA;
|
9749
|
+
const foregroundColour = (r * 299 + g * 587 + b * 114) / 1000 > 133.3505 ? "black" : "white";
|
9750
|
+
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a}); --chip-custom-foreground-color: var(--ic-architectural-${foregroundColour})`);
|
9751
|
+
}
|
9752
|
+
};
|
9753
|
+
this.hovered = false;
|
9837
9754
|
this.visible = true;
|
9838
9755
|
this.appearance = undefined;
|
9756
|
+
this.customColor = null;
|
9839
9757
|
this.disabled = false;
|
9840
9758
|
this.dismissible = false;
|
9841
9759
|
this.label = undefined;
|
@@ -9843,17 +9761,21 @@ class Chip {
|
|
9843
9761
|
this.transparentBackground = true;
|
9844
9762
|
this.variant = "filled";
|
9845
9763
|
}
|
9764
|
+
customColorHandler() {
|
9765
|
+
if (!this.dismissible) {
|
9766
|
+
this.setChipColour();
|
9767
|
+
}
|
9768
|
+
}
|
9846
9769
|
componentWillLoad() {
|
9847
9770
|
removeDisabledFalse$1(this.disabled, this.el);
|
9771
|
+
if (!this.dismissible) {
|
9772
|
+
this.setChipColour();
|
9773
|
+
}
|
9848
9774
|
if (this.appearance === "outline") {
|
9849
9775
|
this.variant = "outlined";
|
9850
9776
|
}
|
9851
9777
|
}
|
9852
9778
|
componentDidLoad() {
|
9853
|
-
var _a;
|
9854
|
-
this.dismissible &&
|
9855
|
-
((_a = this.el.shadowRoot
|
9856
|
-
.querySelector("span.ic-tooltip-label")) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-hidden", "true"));
|
9857
9779
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
|
9858
9780
|
}
|
9859
9781
|
handleClick() {
|
@@ -9863,40 +9785,41 @@ class Chip {
|
|
9863
9785
|
* Sets focus on the chip.
|
9864
9786
|
*/
|
9865
9787
|
async setFocus() {
|
9866
|
-
|
9867
|
-
|
9868
|
-
}
|
9788
|
+
var _a;
|
9789
|
+
(_a = this.el.shadowRoot.querySelector("button")) === null || _a === void 0 ? void 0 : _a.focus();
|
9869
9790
|
}
|
9870
9791
|
render() {
|
9871
|
-
const { label, appearance, variant, size, dismissible, visible, disabled,
|
9792
|
+
const { label, appearance, variant, size, dismissible, visible, disabled, hovered, } = this;
|
9872
9793
|
return (visible && (hAsync("div", { class: {
|
9873
|
-
|
9794
|
+
chip: true,
|
9874
9795
|
[`${appearance}`]: appearance !== undefined,
|
9875
9796
|
[`${variant}`]: true,
|
9876
9797
|
[`${size}`]: true,
|
9877
|
-
|
9878
|
-
|
9879
|
-
|
9880
|
-
|
9881
|
-
} }, isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "label", "apply-vertical-margins": false, class: "label" }, hAsync("span", null, label)), dismissible && (hAsync("ic-tooltip", { label: "Dismiss", target: "dismiss-icon", class: {
|
9882
|
-
["dismiss-icon"]: true,
|
9883
|
-
}, "aria-label": `Dismiss ${label} chip`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" }))));
|
9798
|
+
disabled,
|
9799
|
+
dismissible,
|
9800
|
+
hovered,
|
9801
|
+
"white-background": this.variant === "outlined" && !this.transparentBackground,
|
9802
|
+
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { variant: "label", "apply-vertical-margins": false, class: "label" }, hAsync("span", null, label)), dismissible && (hAsync("ic-tooltip", { label: "Dismiss", target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { id: "dismiss-icon", class: "dismiss-icon", "aria-label": `Dismiss ${label} chip`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" }))));
|
9884
9803
|
}
|
9885
9804
|
static get delegatesFocus() { return true; }
|
9886
9805
|
get el() { return getElement(this); }
|
9806
|
+
static get watchers() { return {
|
9807
|
+
"customColor": ["customColorHandler"]
|
9808
|
+
}; }
|
9887
9809
|
static get style() { return icChipCss; }
|
9888
9810
|
static get cmpMeta() { return {
|
9889
9811
|
"$flags$": 25,
|
9890
9812
|
"$tagName$": "ic-chip",
|
9891
9813
|
"$members$": {
|
9892
9814
|
"appearance": [1],
|
9815
|
+
"customColor": [1, "custom-color"],
|
9893
9816
|
"disabled": [4],
|
9894
9817
|
"dismissible": [4],
|
9895
9818
|
"label": [1],
|
9896
9819
|
"size": [1],
|
9897
9820
|
"transparentBackground": [4, "transparent-background"],
|
9898
9821
|
"variant": [1],
|
9899
|
-
"
|
9822
|
+
"hovered": [32],
|
9900
9823
|
"visible": [32],
|
9901
9824
|
"setFocus": [64]
|
9902
9825
|
},
|
@@ -10008,7 +9931,7 @@ class DataRow {
|
|
10008
9931
|
};
|
10009
9932
|
this.renderCellContent = (cell) => {
|
10010
9933
|
const isValue = cell === "value";
|
10011
|
-
return (hAsync("div", { class: cell }, isSlotUsed(this.el, cell) ? (hAsync("slot", { name: cell })) : (hAsync("ic-typography", { variant: isValue
|
9934
|
+
return (hAsync("div", { class: cell }, isSlotUsed$1(this.el, cell) ? (hAsync("slot", { name: cell })) : (hAsync("ic-typography", { variant: isValue
|
10012
9935
|
? "body"
|
10013
9936
|
: this.entitySize === "xs"
|
10014
9937
|
? "label"
|
@@ -10054,7 +9977,7 @@ class DataRow {
|
|
10054
9977
|
["small"]: small || size === "small",
|
10055
9978
|
["breakpoint-medium"]: entitySize === "m",
|
10056
9979
|
["breakpoint-xs"]: entitySize === "xs",
|
10057
|
-
}, role: "listitem" }, hAsync("div", { class: "data" }, hAsync("div", { class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { class: "end-component" }, hAsync("slot", { name: "end-component" })))), hAsync("div", { class: "divider" })));
|
9980
|
+
}, role: "listitem" }, hAsync("div", { class: "data" }, hAsync("div", { class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { class: "end-component" }, hAsync("slot", { name: "end-component" })))), hAsync("div", { class: "divider" })));
|
10058
9981
|
}
|
10059
9982
|
get el() { return getElement(this); }
|
10060
9983
|
static get style() { return icDataRowCss; }
|
@@ -10087,103 +10010,482 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
10087
10010
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
10088
10011
|
</svg>`;
|
10089
10012
|
|
10090
|
-
|
10013
|
+
// Global ARIA attributes
|
10014
|
+
const IC_INHERITED_ARIA = [
|
10015
|
+
"aria-atomic",
|
10016
|
+
"aria-autocomplete",
|
10017
|
+
"aria-busy",
|
10018
|
+
"aria-controls",
|
10019
|
+
"aria-current",
|
10020
|
+
"aria-describedby",
|
10021
|
+
"aria-description",
|
10022
|
+
"aria-details",
|
10023
|
+
"aria-disabled",
|
10024
|
+
"aria-dropeffect",
|
10025
|
+
"aria-errormessage",
|
10026
|
+
"aria-expanded",
|
10027
|
+
"aria-flowto",
|
10028
|
+
"aria-grabbed",
|
10029
|
+
"aria-haspopup",
|
10030
|
+
"aria-hidden",
|
10031
|
+
"aria-invalid",
|
10032
|
+
"aria-keyshortcuts",
|
10033
|
+
"aria-label",
|
10034
|
+
"aria-labelledby",
|
10035
|
+
"aria-live",
|
10036
|
+
"aria-owns",
|
10037
|
+
"aria-relevant",
|
10038
|
+
"aria-roledescription",
|
10039
|
+
];
|
10091
10040
|
|
10092
|
-
|
10093
|
-
|
10094
|
-
|
10095
|
-
|
10096
|
-
|
10097
|
-
|
10098
|
-
|
10099
|
-
|
10100
|
-
|
10101
|
-
|
10102
|
-
|
10103
|
-
|
10104
|
-
|
10105
|
-
|
10106
|
-
|
10107
|
-
|
10108
|
-
|
10109
|
-
|
10110
|
-
|
10111
|
-
|
10112
|
-
|
10113
|
-
|
10114
|
-
|
10115
|
-
|
10116
|
-
|
10117
|
-
|
10118
|
-
|
10119
|
-
|
10120
|
-
|
10121
|
-
|
10122
|
-
|
10123
|
-
|
10124
|
-
|
10125
|
-
|
10126
|
-
|
10127
|
-
|
10128
|
-
|
10129
|
-
|
10130
|
-
|
10131
|
-
|
10132
|
-
|
10133
|
-
|
10134
|
-
|
10135
|
-
|
10136
|
-
|
10137
|
-
|
10138
|
-
|
10139
|
-
|
10140
|
-
|
10141
|
-
|
10142
|
-
|
10143
|
-
|
10144
|
-
|
10145
|
-
|
10146
|
-
|
10147
|
-
|
10148
|
-
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
|
10154
|
-
|
10155
|
-
|
10156
|
-
|
10157
|
-
|
10158
|
-
|
10159
|
-
|
10160
|
-
|
10161
|
-
|
10162
|
-
|
10163
|
-
|
10164
|
-
|
10165
|
-
|
10166
|
-
|
10167
|
-
|
10168
|
-
|
10169
|
-
|
10170
|
-
|
10171
|
-
|
10172
|
-
|
10173
|
-
|
10174
|
-
|
10175
|
-
|
10176
|
-
|
10177
|
-
|
10178
|
-
|
10179
|
-
|
10180
|
-
|
10181
|
-
|
10182
|
-
|
10183
|
-
|
10184
|
-
|
10185
|
-
|
10186
|
-
|
10041
|
+
var IcInformationStatus;
|
10042
|
+
(function (IcInformationStatus) {
|
10043
|
+
IcInformationStatus["Warning"] = "warning";
|
10044
|
+
IcInformationStatus["Error"] = "error";
|
10045
|
+
IcInformationStatus["Success"] = "success";
|
10046
|
+
})(IcInformationStatus || (IcInformationStatus = {}));
|
10047
|
+
var IcThemeForegroundEnum;
|
10048
|
+
(function (IcThemeForegroundEnum) {
|
10049
|
+
IcThemeForegroundEnum["Default"] = "default";
|
10050
|
+
IcThemeForegroundEnum["Dark"] = "dark";
|
10051
|
+
IcThemeForegroundEnum["Light"] = "light";
|
10052
|
+
})(IcThemeForegroundEnum || (IcThemeForegroundEnum = {}));
|
10053
|
+
var IcDateInputMonths;
|
10054
|
+
(function (IcDateInputMonths) {
|
10055
|
+
IcDateInputMonths[IcDateInputMonths["January"] = 0] = "January";
|
10056
|
+
IcDateInputMonths[IcDateInputMonths["February"] = 1] = "February";
|
10057
|
+
IcDateInputMonths[IcDateInputMonths["March"] = 2] = "March";
|
10058
|
+
IcDateInputMonths[IcDateInputMonths["April"] = 3] = "April";
|
10059
|
+
IcDateInputMonths[IcDateInputMonths["May"] = 4] = "May";
|
10060
|
+
IcDateInputMonths[IcDateInputMonths["June"] = 5] = "June";
|
10061
|
+
IcDateInputMonths[IcDateInputMonths["July"] = 6] = "July";
|
10062
|
+
IcDateInputMonths[IcDateInputMonths["August"] = 7] = "August";
|
10063
|
+
IcDateInputMonths[IcDateInputMonths["September"] = 8] = "September";
|
10064
|
+
IcDateInputMonths[IcDateInputMonths["October"] = 9] = "October";
|
10065
|
+
IcDateInputMonths[IcDateInputMonths["November"] = 10] = "November";
|
10066
|
+
IcDateInputMonths[IcDateInputMonths["December"] = 11] = "December";
|
10067
|
+
})(IcDateInputMonths || (IcDateInputMonths = {}));
|
10068
|
+
var IcShortDayNames;
|
10069
|
+
(function (IcShortDayNames) {
|
10070
|
+
IcShortDayNames[IcShortDayNames["Sun"] = 0] = "Sun";
|
10071
|
+
IcShortDayNames[IcShortDayNames["Mon"] = 1] = "Mon";
|
10072
|
+
IcShortDayNames[IcShortDayNames["Tue"] = 2] = "Tue";
|
10073
|
+
IcShortDayNames[IcShortDayNames["Wed"] = 3] = "Wed";
|
10074
|
+
IcShortDayNames[IcShortDayNames["Thu"] = 4] = "Thu";
|
10075
|
+
IcShortDayNames[IcShortDayNames["Fri"] = 5] = "Fri";
|
10076
|
+
IcShortDayNames[IcShortDayNames["Sat"] = 6] = "Sat";
|
10077
|
+
})(IcShortDayNames || (IcShortDayNames = {}));
|
10078
|
+
var IcDayNames;
|
10079
|
+
(function (IcDayNames) {
|
10080
|
+
IcDayNames[IcDayNames["Sunday"] = 0] = "Sunday";
|
10081
|
+
IcDayNames[IcDayNames["Monday"] = 1] = "Monday";
|
10082
|
+
IcDayNames[IcDayNames["Tuesday"] = 2] = "Tuesday";
|
10083
|
+
IcDayNames[IcDayNames["Wednesday"] = 3] = "Wednesday";
|
10084
|
+
IcDayNames[IcDayNames["Thursday"] = 4] = "Thursday";
|
10085
|
+
IcDayNames[IcDayNames["Friday"] = 5] = "Friday";
|
10086
|
+
IcDayNames[IcDayNames["Saturday"] = 6] = "Saturday";
|
10087
|
+
})(IcDayNames || (IcDayNames = {}));
|
10088
|
+
var IcWeekDays;
|
10089
|
+
(function (IcWeekDays) {
|
10090
|
+
IcWeekDays[IcWeekDays["Sunday"] = 0] = "Sunday";
|
10091
|
+
IcWeekDays[IcWeekDays["Monday"] = 1] = "Monday";
|
10092
|
+
IcWeekDays[IcWeekDays["Tuesday"] = 2] = "Tuesday";
|
10093
|
+
IcWeekDays[IcWeekDays["Wednesday"] = 3] = "Wednesday";
|
10094
|
+
IcWeekDays[IcWeekDays["Thursday"] = 4] = "Thursday";
|
10095
|
+
IcWeekDays[IcWeekDays["Friday"] = 5] = "Friday";
|
10096
|
+
IcWeekDays[IcWeekDays["Saturday"] = 6] = "Saturday";
|
10097
|
+
})(IcWeekDays || (IcWeekDays = {}));
|
10098
|
+
|
10099
|
+
/**
|
10100
|
+
* converts an enum of strings into an array of strings
|
10101
|
+
*/
|
10102
|
+
const stringEnumToArray = (theEnum) => {
|
10103
|
+
const arr = [];
|
10104
|
+
Object.values(theEnum).forEach((val) => {
|
10105
|
+
if (isNaN(Number(val))) {
|
10106
|
+
const str = val;
|
10107
|
+
arr.push(str);
|
10108
|
+
}
|
10109
|
+
});
|
10110
|
+
return arr;
|
10111
|
+
};
|
10112
|
+
/**
|
10113
|
+
* Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
|
10114
|
+
* to a variable that is later used in the render function.
|
10115
|
+
*
|
10116
|
+
* This does not need to be reactive as changing attributes on the host element
|
10117
|
+
* does not trigger a re-render.
|
10118
|
+
*/
|
10119
|
+
const inheritAttributes = (element, attributes = []) => {
|
10120
|
+
const attributeObject = {};
|
10121
|
+
attributes.forEach((attr) => {
|
10122
|
+
if (element.hasAttribute(attr)) {
|
10123
|
+
const value = element.getAttribute(attr);
|
10124
|
+
if (value !== null) {
|
10125
|
+
attributeObject[attr] = element.getAttribute(attr);
|
10126
|
+
}
|
10127
|
+
element.removeAttribute(attr);
|
10128
|
+
}
|
10129
|
+
});
|
10130
|
+
return attributeObject;
|
10131
|
+
};
|
10132
|
+
/**
|
10133
|
+
* This method is used to add a hidden input to a host element that contains
|
10134
|
+
* a Shadow DOM. It does not add the input inside of the Shadow root which
|
10135
|
+
* allows it to be picked up inside of forms. It should contain the same
|
10136
|
+
* values as the host element.
|
10137
|
+
*
|
10138
|
+
* @param always Add a hidden input even if the container does not use Shadow
|
10139
|
+
* @param container The element where the input will be added
|
10140
|
+
* @param name The name of the input
|
10141
|
+
* @param value The value of the input
|
10142
|
+
* @param disabled If true, the input is disabled
|
10143
|
+
*/
|
10144
|
+
const renderHiddenInput = (always, container, name, value, disabled) => {
|
10145
|
+
if (name !== undefined && (always || hasShadowDom(container))) {
|
10146
|
+
const inputs = container.querySelectorAll("input.ic-input");
|
10147
|
+
const inputEls = Array.from(inputs);
|
10148
|
+
const filtered = inputEls.filter((el) => container === el.parentElement);
|
10149
|
+
let input = filtered[0];
|
10150
|
+
if (input === null || input === undefined) {
|
10151
|
+
input = container.ownerDocument.createElement("input");
|
10152
|
+
input.type = "hidden";
|
10153
|
+
input.classList.add("ic-input");
|
10154
|
+
container.appendChild(input);
|
10155
|
+
}
|
10156
|
+
input.disabled = disabled;
|
10157
|
+
input.name = name;
|
10158
|
+
if (value instanceof Date) {
|
10159
|
+
input.value = value ? value.toISOString() : null;
|
10160
|
+
}
|
10161
|
+
else {
|
10162
|
+
input.value = value || "";
|
10163
|
+
}
|
10164
|
+
}
|
10165
|
+
};
|
10166
|
+
const isEmptyString = (value) => value ? value.trim().length === 0 : true;
|
10167
|
+
const getCssProperty = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
|
10168
|
+
const getSlot = (element, name) => {
|
10169
|
+
if (element && element.querySelector) {
|
10170
|
+
return element.querySelector(`[slot="${name}"]`);
|
10171
|
+
}
|
10172
|
+
return null;
|
10173
|
+
};
|
10174
|
+
const getSlotContent = (element, name) => {
|
10175
|
+
const slot = getSlot(element, name);
|
10176
|
+
if (slot) {
|
10177
|
+
return getSlotElements(slot);
|
10178
|
+
}
|
10179
|
+
return null;
|
10180
|
+
};
|
10181
|
+
const getSlotElements = (slot) => {
|
10182
|
+
const slotContent = slot.firstElementChild;
|
10183
|
+
if (slotContent !== null) {
|
10184
|
+
const elements = slotContent.assignedElements
|
10185
|
+
? slotContent.assignedElements()
|
10186
|
+
: slotContent.childNodes;
|
10187
|
+
return elements.length ? elements : null;
|
10188
|
+
}
|
10189
|
+
else {
|
10190
|
+
//check for single element
|
10191
|
+
return slot === null ? null : [slot];
|
10192
|
+
}
|
10193
|
+
};
|
10194
|
+
({
|
10195
|
+
XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")),
|
10196
|
+
S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")),
|
10197
|
+
M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")),
|
10198
|
+
L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")),
|
10199
|
+
XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")),
|
10200
|
+
UNDEFINED: 1200,
|
10201
|
+
});
|
10202
|
+
const isSlotUsed = (element, slotName) => Array.from(element.children).some((child) => child.getAttribute("slot") === slotName);
|
10203
|
+
const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
|
10204
|
+
const getInputHelperTextID = (id) => id + "-helper-text";
|
10205
|
+
const getInputValidationTextID = (id) => id + "-validation-text";
|
10206
|
+
const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
|
10207
|
+
const isMobileOrTablet = () => "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 : false;
|
10208
|
+
/**
|
10209
|
+
* Extracts the label using the value from an object. Requires the object to have a label and value property.
|
10210
|
+
* @param value - value from object
|
10211
|
+
* @param options - list of menu items
|
10212
|
+
* @returns - label corresponding to value
|
10213
|
+
*/
|
10214
|
+
const getLabelFromValue = (value, options, valueField = "value", labelField = "label") => {
|
10215
|
+
const ungroupedOptions = [];
|
10216
|
+
if (options.length > 0 && options.map) {
|
10217
|
+
options.map((option) => {
|
10218
|
+
if (option.children) {
|
10219
|
+
option.children.map((option) => ungroupedOptions.push(option));
|
10220
|
+
}
|
10221
|
+
else {
|
10222
|
+
ungroupedOptions.push(option);
|
10223
|
+
}
|
10224
|
+
});
|
10225
|
+
const matchingValue = ungroupedOptions.find((option) => option[valueField] === value);
|
10226
|
+
if (matchingValue !== undefined)
|
10227
|
+
return matchingValue[labelField];
|
10228
|
+
}
|
10229
|
+
return undefined;
|
10230
|
+
};
|
10231
|
+
/**
|
10232
|
+
* Filters the options based on the search string.
|
10233
|
+
* @param options - array of options
|
10234
|
+
* @param includeDescriptions - determines whether option descriptions are included when filtering options
|
10235
|
+
* @param searchString - string used to filter the options
|
10236
|
+
* @param position - whether the search string matches the start of or anywhere in the options
|
10237
|
+
* @returns filtered array of options
|
10238
|
+
*/
|
10239
|
+
const getFilteredMenuOptions = (options, includeDescriptions, searchString, position, labelField = "label") => options.filter((option) => {
|
10240
|
+
var _a;
|
10241
|
+
const label = option[labelField].toLowerCase();
|
10242
|
+
const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
10243
|
+
const lowerSearchString = searchString.toLowerCase();
|
10244
|
+
return position === "anywhere"
|
10245
|
+
? includeDescriptions
|
10246
|
+
? label.includes(lowerSearchString) ||
|
10247
|
+
(description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
|
10248
|
+
: label.includes(lowerSearchString)
|
10249
|
+
: includeDescriptions
|
10250
|
+
? label.startsWith(lowerSearchString) ||
|
10251
|
+
(description === null || description === void 0 ? void 0 : description.startsWith(lowerSearchString))
|
10252
|
+
: label.startsWith(lowerSearchString);
|
10253
|
+
});
|
10254
|
+
/**
|
10255
|
+
* Gets count of options where only group title "parent" options have been removed.
|
10256
|
+
* Disabled options are included in the count.
|
10257
|
+
* @param options - array of options
|
10258
|
+
* @returns number of options not including group titles
|
10259
|
+
*/
|
10260
|
+
const getOptionsWithoutGroupTitlesCount = (options) => {
|
10261
|
+
const optionsWithoutGroupTitles = [];
|
10262
|
+
if (options.length > 0 && options.map) {
|
10263
|
+
options.map((option) => {
|
10264
|
+
if (option.children) {
|
10265
|
+
option.children.map((option) => optionsWithoutGroupTitles.push(option));
|
10266
|
+
}
|
10267
|
+
else {
|
10268
|
+
optionsWithoutGroupTitles.push(option);
|
10269
|
+
}
|
10270
|
+
});
|
10271
|
+
}
|
10272
|
+
return optionsWithoutGroupTitles.length;
|
10273
|
+
};
|
10274
|
+
const isNumeric = (value) => {
|
10275
|
+
return /^-?\d+$/.test(value);
|
10276
|
+
};
|
10277
|
+
const hasValidationStatus = (status, disabled) => {
|
10278
|
+
return status !== "" && !disabled;
|
10279
|
+
};
|
10280
|
+
const onComponentRequiredPropUndefined = (props, component) => {
|
10281
|
+
for (let i = 0; i < props.length; i++) {
|
10282
|
+
const { prop, propName } = props[i];
|
10283
|
+
if (prop === null || prop === undefined) {
|
10284
|
+
console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(propName)}' (react) required`);
|
10285
|
+
}
|
10286
|
+
}
|
10287
|
+
};
|
10288
|
+
const kebabToCamelCase = (kebabCase) => {
|
10289
|
+
kebabCase = kebabCase.toLowerCase();
|
10290
|
+
const individualWords = kebabCase.split("-");
|
10291
|
+
let camelCase = individualWords[0];
|
10292
|
+
for (let i = 1; i < individualWords.length; i++) {
|
10293
|
+
camelCase +=
|
10294
|
+
individualWords[i].substring(0, 1).toUpperCase() +
|
10295
|
+
individualWords[i].substring(1);
|
10296
|
+
}
|
10297
|
+
return camelCase;
|
10298
|
+
};
|
10299
|
+
const checkResizeObserver = (callbackFn) => {
|
10300
|
+
if (typeof window !== "undefined" &&
|
10301
|
+
typeof window.ResizeObserver !== "undefined") {
|
10302
|
+
callbackFn();
|
10303
|
+
}
|
10304
|
+
};
|
10305
|
+
const getForm = (el) => el.closest("FORM");
|
10306
|
+
const addFormResetListener = (el, callbackFn) => {
|
10307
|
+
const form = getForm(el);
|
10308
|
+
if (form !== null) {
|
10309
|
+
form.addEventListener("reset", callbackFn);
|
10310
|
+
}
|
10311
|
+
};
|
10312
|
+
const removeFormResetListener = (el, callbackFn) => {
|
10313
|
+
const form = getForm(el);
|
10314
|
+
if (form !== null) {
|
10315
|
+
form.removeEventListener("reset", callbackFn);
|
10316
|
+
}
|
10317
|
+
};
|
10318
|
+
const removeDisabledFalse = (disabled, element) => {
|
10319
|
+
if (!disabled) {
|
10320
|
+
element.removeAttribute("disabled");
|
10321
|
+
}
|
10322
|
+
};
|
10323
|
+
const isMacDevice = () => {
|
10324
|
+
return window.navigator.userAgent.toUpperCase().indexOf("MAC") >= 0;
|
10325
|
+
};
|
10326
|
+
|
10327
|
+
const icDataTableCss = "/*!@:host*/.sc-ic-data-table-h{position:relative;display:block;height:100%;max-height:100%}/*!@.table-container*/.table-container.sc-ic-data-table{position:relative;height:calc(100% - var(--ic-space-xxxs))}/*!@ic-loading-indicator*/ic-loading-indicator.sc-ic-data-table{position:sticky;top:20px}/*!@.table-row-container*/.table-row-container.sc-ic-data-table{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}/*!@:host([show-pagination=\"true\"]) .table-row-container*/[show-pagination=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{height:calc(100% - 3.5625rem)}/*!@table*/table.sc-ic-data-table{table-layout:fixed;border-spacing:0;width:100%}/*!@.table-row-container:focus*/.table-row-container.sc-ic-data-table:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}/*!@:host([embedded=\"true\"]) .table-row-container*/[embedded=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{border:var(--ic-border-light)}/*!@.column-header-sticky*/.column-header-sticky.sc-ic-data-table{position:sticky;top:0;z-index:1}/*!@.column-header-overlay*/.column-header-overlay.sc-ic-data-table{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}/*!@.row-header-sticky*/.row-header-sticky.sc-ic-data-table{position:sticky;left:0}/*!@.column-header,\n.table-row*/.column-header.sc-ic-data-table,.table-row.sc-ic-data-table{box-sizing:border-box}/*!@.table-row-selected*/.table-row-selected.sc-ic-data-table{background-color:var(--ic-table-row-selected) !important}/*!@.sort-button*/.sort-button.sc-ic-data-table{margin-left:auto}/*!@.sort-button:hover*/.sort-button.sc-ic-data-table:hover{background-color:var(--ic-action-dark-bg-hover)}/*!@.sort-button:active*/.sort-button.sc-ic-data-table:active{background-color:var(--ic-action-dark-bg-active)}/*!@.sort-button svg*/.sort-button.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-architectural-black)}/*!@.sort-button-unsorted svg*/.sort-button-unsorted.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-color-tertiary-text)}/*!@.table-density-dense*/.table-density-dense.sc-ic-data-table{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}/*!@.text-dense*/.text-dense.sc-ic-data-table{font-size:var(--ic-font-size-label)}/*!@.table-density-spacious*/.table-density-spacious.sc-ic-data-table{padding:0.625rem var(--ic-space-xs) !important}/*!@.text-spacious*/.text-spacious.sc-ic-data-table{font-size:1.125rem}/*!@.column-header-text*/.column-header-text.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.column-header,\n.row-header*/.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}/*!@.column-header:last-child*/.column-header.sc-ic-data-table:last-child{border-right:none}/*!@.scrollable .column-header:last-child*/.scrollable.sc-ic-data-table .column-header.sc-ic-data-table:last-child{border-right:var(--ic-border-light) !important}/*!@:host([embedded=\"true\"]) tr:last-child .table-cell,\n:host([embedded=\"true\"]) tr:last-child .row-header*/[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .table-cell.sc-ic-data-table,[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .row-header.sc-ic-data-table{border-bottom:none}/*!@.column-header-alignment-left,\n.row-header-alignment-left,\n.cell-alignment-left*/.column-header-alignment-left.sc-ic-data-table,.row-header-alignment-left.sc-ic-data-table,.cell-alignment-left.sc-ic-data-table{text-align:left !important;justify-content:start !important}/*!@.column-header-alignment-right,\n.row-header-alignment-right,\n.cell-alignment-right*/.column-header-alignment-right.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table{text-align:right !important;justify-content:end !important}/*!@.column-header-alignment-center,\n.row-header-alignment-center,\n.cell-alignment-center*/.column-header-alignment-center.sc-ic-data-table,.row-header-alignment-center.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table{text-align:center !important;justify-content:center !important}/*!@.table-row:nth-child(even)*/.table-row.sc-ic-data-table:nth-child(even){background-color:var(--ic-architectural-20)}/*!@.table-cell*/.table-cell.sc-ic-data-table{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px)}/*!@.data-type-string*/.data-type-string.sc-ic-data-table{text-align:left;vertical-align:top}/*!@.data-type-number,\n.data-type-date*/.data-type-number.sc-ic-data-table,.data-type-date.sc-ic-data-table{text-align:right;justify-content:end;vertical-align:top}/*!@.cell-alignment-top*/.cell-alignment-top.sc-ic-data-table{vertical-align:top}/*!@.cell-alignment-middle*/.cell-alignment-middle.sc-ic-data-table{vertical-align:middle}/*!@.cell-alignment-bottom*/.cell-alignment-bottom.sc-ic-data-table{vertical-align:bottom}/*!@.cell-emphasis-low*/.cell-emphasis-low.sc-ic-data-table{color:var(--ic-color-secondary-text)}/*!@.cell-emphasis-high*/.cell-emphasis-high.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.pagination-container*/.pagination-container.sc-ic-data-table{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}/*!@.screen-reader-sort-text,\n.table-caption*/.screen-reader-sort-text.sc-ic-data-table,.table-caption.sc-ic-data-table{position:absolute;left:-100rem}/*!@.table-cell,\n.column-header,\n.row-header*/.table-cell.sc-ic-data-table,.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{word-wrap:break-word;white-space:pre-wrap}/*!@.loading-empty*/.loading-empty.sc-ic-data-table{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}/*!@.updating-state*/.updating-state.sc-ic-data-table{padding:0;border-bottom:var(--ic-border-light)}/*!@.updating-state-headers*/.updating-state-headers.sc-ic-data-table{border-bottom:none}/*!@.loading*/.loading.sc-ic-data-table{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}/*!@.loading.show-background*/.loading.show-background.sc-ic-data-table{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}/*!@.loading.show*/.loading.show.sc-ic-data-table{opacity:1}/*!@.icon,\n::slotted(svg)*/.icon.sc-ic-data-table,.sc-ic-data-table-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}/*!@.column-header-alignment-right > .icon,\n.row-header-alignment-right > .icon,\n.cell-alignment-right > .icon,\n.column-header-alignment-right > ::slotted(svg),\n.row-header-alignment-right > ::slotted(svg),\n.cell-alignment-right > ::slotted(svg)*/.column-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.column-header-alignment-right>.sc-ic-data-table-s>svg,.row-header-alignment-right>.sc-ic-data-table-s>svg,.cell-alignment-right>.sc-ic-data-table-s>svg{margin-right:auto}/*!@.column-header-alignment-center > ic-typography,\n.row-header-alignment-right > ic-typography,\n.cell-alignment-center > ic-typography*/.column-header-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>ic-typography.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table{flex:1}/*!@.icon > svg*/.icon.sc-ic-data-table>svg.sc-ic-data-table{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}@media screen and (min-width: 576px){/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{display:flex;align-items:center}/*!@.cell-container*/.cell-container.sc-ic-data-table{display:flex}}";
|
10328
|
+
|
10329
|
+
/**
|
10330
|
+
* @slot empty-state - Content is slotted below the table header when there is no data and the table is not loading.
|
10331
|
+
* @slot {COLUMN_KEY}-{ROW_INDEX}[-icon] - Each cell should have its own slot, named using the column tag and the row index, allowing for custom elements to be displayed. Include `-icon` at the end for that cell's icon slot.
|
10332
|
+
* @slot {COLUMN_KEY}-column-icon - The icon slot for a column header.
|
10333
|
+
* @slot title-bar - A custom ic-data-table-title-bar can be slotted above the column headers to display additional information about the table.
|
10334
|
+
*/
|
10335
|
+
class DataTable {
|
10336
|
+
constructor(hostRef) {
|
10337
|
+
registerInstance(this, hostRef);
|
10338
|
+
this.icRowHeightChange = createEvent(this, "icRowHeightChange", 7);
|
10339
|
+
this.DENSITY_HEIGHT_MULTIPLIER = {
|
10340
|
+
dense: 0.8,
|
10341
|
+
default: 1,
|
10342
|
+
spacious: 1.2,
|
10343
|
+
};
|
10344
|
+
this.SORT_ICONS = {
|
10345
|
+
unsorted: unsortedIcon,
|
10346
|
+
ascending: ascendingIcon,
|
10347
|
+
descending: descendingIcon,
|
10348
|
+
};
|
10349
|
+
this.hasLoadedForOneSecond = true;
|
10350
|
+
this.startLoadingTimer = () => {
|
10351
|
+
this.hasLoadedForOneSecond = false;
|
10352
|
+
this.timerStarted = Date.now();
|
10353
|
+
setTimeout(() => {
|
10354
|
+
this.hasLoadedForOneSecond = true;
|
10355
|
+
this.timerStarted = null;
|
10356
|
+
}, this.minimumLoadingDisplayDuration);
|
10357
|
+
};
|
10358
|
+
this.isObject = (value) => typeof value === "object";
|
10359
|
+
this.notDefaultDensity = () => this.density !== "default";
|
10360
|
+
this.getCellContent = (cell, dataType) => {
|
10361
|
+
switch (dataType) {
|
10362
|
+
case "element":
|
10363
|
+
return undefined;
|
10364
|
+
case "date":
|
10365
|
+
return (cell instanceof Date ? cell : new Date(cell)).toLocaleDateString();
|
10366
|
+
default:
|
10367
|
+
return cell;
|
10368
|
+
}
|
10369
|
+
};
|
10370
|
+
this.getCellAlignment = (cell, alignment) => {
|
10371
|
+
if (this.isObject(cell) && Object.keys(cell).includes("cellAlignment")) {
|
10372
|
+
return this.getObjectValue(this.getObjectValue(cell, "cellAlignment"), alignment);
|
10373
|
+
}
|
10374
|
+
};
|
10375
|
+
this.createUpdatingIndicator = () => {
|
10376
|
+
const { appearance, description, max, min, progress } = this.updatingOptions || {};
|
10377
|
+
return (hAsync("th", { colSpan: this.columns.length, class: "updating-state" }, hAsync("ic-loading-indicator", { appearance: appearance, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
10378
|
+
};
|
10379
|
+
this.createCells = (row, rowIndex) => {
|
10380
|
+
const rowValues = Object.values(row);
|
10381
|
+
const rowKeys = Object.keys(row);
|
10382
|
+
let rowAlignment;
|
10383
|
+
let rowEmphasis;
|
10384
|
+
const headerIndex = rowKeys.indexOf("header");
|
10385
|
+
if (headerIndex > -1) {
|
10386
|
+
rowAlignment = this.getObjectValue(rowValues[headerIndex], "rowAlignment");
|
10387
|
+
rowEmphasis = this.getObjectValue(rowValues[headerIndex], "emphasis");
|
10388
|
+
}
|
10389
|
+
return rowValues.map((cell, index) => {
|
10390
|
+
var _a, _b, _c, _d, _e;
|
10391
|
+
const columnProps = this.columns[index];
|
10392
|
+
const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
|
10393
|
+
const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
|
10394
|
+
const cellValue = (key) => this.getObjectValue(cell, key);
|
10395
|
+
return rowKeys[index] === "header" ? (hAsync("th", { scope: "row", colSpan: cellValue("colspan"), class: {
|
10396
|
+
["row-header"]: true,
|
10397
|
+
[`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
|
10398
|
+
["row-header-sticky"]: this.stickyRowHeaders,
|
10399
|
+
} }, cellValue("title"))) : (hAsync("td", { class: {
|
10400
|
+
["table-cell"]: true,
|
10401
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
10402
|
+
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
10403
|
+
[`cell-alignment-${((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
10404
|
+
rowAlignment ||
|
10405
|
+
this.getCellAlignment(cell, "vertical")}`]: !!((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
10406
|
+
!!rowAlignment ||
|
10407
|
+
!!this.getCellAlignment(cell, "vertical"),
|
10408
|
+
} }, hAsync("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
10409
|
+
!isSlotUsed(this.el, cellSlotName)
|
10410
|
+
? cell
|
10411
|
+
: null, class: {
|
10412
|
+
"cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element",
|
10413
|
+
[`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true,
|
10414
|
+
[`cell-alignment-${((_c = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
10415
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
10416
|
+
!!this.getCellAlignment(cell, "horizontal"),
|
10417
|
+
} }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_e = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _e === void 0 ? void 0 : _e.onAllCells)) && (hAsync("span", { class: "icon", innerHTML: cellValue("icon") || (columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon.icon) }))), hAsync("ic-typography", { variant: "body", class: {
|
10418
|
+
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
10419
|
+
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
10420
|
+
rowEmphasis}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
10421
|
+
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
10422
|
+
!!rowEmphasis,
|
10423
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
10424
|
+
} }, this.isObject(cell) && (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (hAsync("ic-link", { href: cellValue("href") }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType))))))));
|
10425
|
+
});
|
10426
|
+
};
|
10427
|
+
this.createColumnHeaders = () => {
|
10428
|
+
return this.columns.map(({ cellAlignment, colspan, icon, key, title }) => (hAsync("th", { scope: "col", class: {
|
10429
|
+
["column-header"]: true,
|
10430
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
10431
|
+
["updating-state-headers"]: this.updating && !this.loading,
|
10432
|
+
}, colSpan: colspan }, hAsync("div", { class: {
|
10433
|
+
"column-header-inner-container": true,
|
10434
|
+
[`column-header-alignment-${cellAlignment}`]: !!cellAlignment,
|
10435
|
+
} }, isSlotUsed(this.el, `${key}-column-icon`) ? (hAsync("slot", { name: `${key}-column-icon` })) : (icon &&
|
10436
|
+
!icon.hideOnHeader && (hAsync("span", { class: "icon", innerHTML: icon.icon }))), hAsync("ic-typography", { variant: "body", class: {
|
10437
|
+
["column-header-text"]: true,
|
10438
|
+
[`text-${this.density}`]: this.notDefaultDensity(),
|
10439
|
+
} }, title), this.sortable && (hAsync("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
10440
|
+
// eslint-disable-next-line react/jsx-no-bind
|
10441
|
+
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
10442
|
+
? this.sortedColumnOrder
|
10443
|
+
: "unsorted"], class: {
|
10444
|
+
["sort-button"]: true,
|
10445
|
+
["sort-button-unsorted"]: this.sortedColumn !== key ||
|
10446
|
+
this.sortedColumnOrder === "unsorted",
|
10447
|
+
} }))))));
|
10448
|
+
};
|
10449
|
+
this.createRows = () => {
|
10450
|
+
const data = this.showPagination
|
10451
|
+
? this.data.slice(this.fromRow, this.toRow)
|
10452
|
+
: this.data.slice();
|
10453
|
+
/**
|
10454
|
+
* Ensures that createCells has a value in data to map over to actually render the slot.
|
10455
|
+
* Removes the need for the user to add it multiple times.
|
10456
|
+
*/
|
10457
|
+
this.columns.forEach(({ key }) => {
|
10458
|
+
data.forEach((row, rowIndex) => {
|
10459
|
+
const cellSlotName = `${key}-${rowIndex}`;
|
10460
|
+
if (isSlotUsed(this.el, cellSlotName)) {
|
10461
|
+
row[key] = getSlotContent(this.el, cellSlotName);
|
10462
|
+
}
|
10463
|
+
});
|
10464
|
+
});
|
10465
|
+
return data
|
10466
|
+
.sort(!this.sortable ? undefined : this.getSortFunction())
|
10467
|
+
.map((row, index) => {
|
10468
|
+
var _a;
|
10469
|
+
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index }));
|
10470
|
+
const findRowHeight = variableRowHeightVal
|
10471
|
+
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
10472
|
+
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
10473
|
+
return (hAsync("tr", {
|
10474
|
+
// eslint-disable-next-line react/jsx-no-bind
|
10475
|
+
onClick: () => (this.selectedRow =
|
10476
|
+
this.selectedRow !== row &&
|
10477
|
+
!this.loading &&
|
10478
|
+
!this.updating &&
|
10479
|
+
row), class: {
|
10480
|
+
["table-row"]: true,
|
10481
|
+
["table-row-selected"]: this.selectedRow === row,
|
10482
|
+
}, style: {
|
10483
|
+
height: findRowHeight
|
10484
|
+
? `${findRowHeight * this.DENSITY_HEIGHT_MULTIPLIER[this.density]}px`
|
10485
|
+
: null,
|
10486
|
+
}
|
10487
|
+
}, this.createCells(row, index)));
|
10488
|
+
});
|
10187
10489
|
};
|
10188
10490
|
this.getObjectValue = (cell, key) => {
|
10189
10491
|
return Object.values(cell)[Object.keys(cell).indexOf(key)];
|
@@ -10261,15 +10563,19 @@ class DataTable {
|
|
10261
10563
|
this.data = undefined;
|
10262
10564
|
this.density = "default";
|
10263
10565
|
this.embedded = false;
|
10566
|
+
this.globalRowHeight = 40;
|
10264
10567
|
this.hideColumnHeaders = false;
|
10568
|
+
this.loading = false;
|
10569
|
+
this.loadingOptions = undefined;
|
10570
|
+
this.minimumLoadingDisplayDuration = 1000;
|
10265
10571
|
this.paginationOptions = {
|
10266
10572
|
itemsPerPage: [
|
10267
10573
|
{ label: "10", value: "10" },
|
10268
10574
|
{ label: "25", value: "25" },
|
10269
10575
|
{ label: "50", value: "50" },
|
10270
10576
|
],
|
10271
|
-
|
10272
|
-
|
10577
|
+
rangeLabelType: "page",
|
10578
|
+
type: "simple",
|
10273
10579
|
itemsPerPageControl: true,
|
10274
10580
|
goToPageControl: true,
|
10275
10581
|
alignment: "right",
|
@@ -10282,13 +10588,18 @@ class DataTable {
|
|
10282
10588
|
};
|
10283
10589
|
this.stickyColumnHeaders = false;
|
10284
10590
|
this.stickyRowHeaders = false;
|
10591
|
+
this.updating = false;
|
10592
|
+
this.updatingOptions = undefined;
|
10593
|
+
this.variableRowHeight = undefined;
|
10285
10594
|
}
|
10286
10595
|
componentWillLoad() {
|
10596
|
+
var _a;
|
10287
10597
|
this.rowsPerPage = Number(this.paginationOptions.itemsPerPage[0].value);
|
10288
10598
|
this.previousRowsPerPage = this.rowsPerPage;
|
10289
10599
|
this.toRow = this.rowsPerPage;
|
10290
10600
|
this.sortedColumn = this.sortOptions.defaultColumn;
|
10291
10601
|
this.sortedColumnOrder = this.sortOptions.sortOrders[0];
|
10602
|
+
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 });
|
10292
10603
|
}
|
10293
10604
|
componentDidLoad() {
|
10294
10605
|
const tableElement = this.el.shadowRoot.querySelector("table");
|
@@ -10297,6 +10608,10 @@ class DataTable {
|
|
10297
10608
|
(tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth) > (tableContainer === null || tableContainer === void 0 ? void 0 : tableContainer.clientWidth)) {
|
10298
10609
|
this.scrollable = true;
|
10299
10610
|
}
|
10611
|
+
if (this.loading) {
|
10612
|
+
this.startLoadingTimer();
|
10613
|
+
this.showLoadingIndicator();
|
10614
|
+
}
|
10300
10615
|
}
|
10301
10616
|
handleItemsPerPageChange(ev) {
|
10302
10617
|
this.previousRowsPerPage = this.rowsPerPage;
|
@@ -10317,23 +10632,73 @@ class DataTable {
|
|
10317
10632
|
this.previousRowsPerPage = this.rowsPerPage;
|
10318
10633
|
}
|
10319
10634
|
}
|
10635
|
+
handleDensityChange(ev) {
|
10636
|
+
this.density = ev.detail.value;
|
10637
|
+
}
|
10320
10638
|
clickListener(ev) {
|
10321
10639
|
if (ev.target !== this.el)
|
10322
10640
|
this.selectedRow = undefined;
|
10323
10641
|
}
|
10642
|
+
loadingHandler(newValue) {
|
10643
|
+
if (newValue)
|
10644
|
+
this.startLoadingTimer();
|
10645
|
+
if (this.loading) {
|
10646
|
+
setTimeout(() => {
|
10647
|
+
this.showLoadingIndicator();
|
10648
|
+
}, 500);
|
10649
|
+
}
|
10650
|
+
}
|
10651
|
+
dataHandler(newData) {
|
10652
|
+
this.loadingOptions = Object.assign(Object.assign({}, this.loadingOptions), { showBackground: (newData === null || newData === void 0 ? void 0 : newData.length) > 0 });
|
10653
|
+
if (this.loading) {
|
10654
|
+
!this.hasLoadedForOneSecond
|
10655
|
+
? setTimeout(() => (this.loading = false), this.minimumLoadingDisplayDuration -
|
10656
|
+
(Date.now() - this.timerStarted))
|
10657
|
+
: (this.loading = false);
|
10658
|
+
}
|
10659
|
+
if (this.updating)
|
10660
|
+
this.updating = false;
|
10661
|
+
}
|
10662
|
+
rowHeightChangeHandler() {
|
10663
|
+
this.icRowHeightChange.emit();
|
10664
|
+
}
|
10665
|
+
/**
|
10666
|
+
* Resets the `globalRowHeight` prop to `40px` and sets the `variableRowHeight` prop to `null`.
|
10667
|
+
*/
|
10668
|
+
async resetRowHeights() {
|
10669
|
+
this.globalRowHeight = 40;
|
10670
|
+
this.variableRowHeight = null;
|
10671
|
+
}
|
10672
|
+
showLoadingIndicator() {
|
10673
|
+
this.loadingIndicator.classList.add("show");
|
10674
|
+
}
|
10324
10675
|
render() {
|
10325
|
-
const { caption, createColumnHeaders, createRows, data, hideColumnHeaders, paginationOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, } = this;
|
10326
|
-
return (hAsync("div", { class: "table-container" }, hAsync("div", { class: {
|
10676
|
+
const { caption, createColumnHeaders, createRows, createUpdatingIndicator, data, hideColumnHeaders, loading, loadingOptions, paginationOptions, scrollable, scrollOffset, showPagination, sortable, sortedColumnOrder, sortedColumn, stickyColumnHeaders, updateScrollOffset, updating, } = this;
|
10677
|
+
return (hAsync("div", { class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { name: "title-bar" }), hAsync("div", { class: {
|
10327
10678
|
["table-row-container"]: true,
|
10328
10679
|
scrollable,
|
10329
10680
|
}, tabIndex: scrollable ? 0 : null, onScroll: updateScrollOffset }, hAsync("table", null, hAsync("caption", { class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { class: {
|
10330
10681
|
["column-header-sticky"]: stickyColumnHeaders,
|
10331
10682
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
10332
|
-
} }, hAsync("tr", null, createColumnHeaders()))),
|
10683
|
+
} }, hAsync("tr", null, createColumnHeaders()))), updating &&
|
10684
|
+
!loading &&
|
10685
|
+
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), (data === null || data === void 0 ? void 0 : data.length) > 0 && hAsync("tbody", null, createRows())), !(data === null || data === void 0 ? void 0 : data.length) &&
|
10686
|
+
!loading &&
|
10687
|
+
(isSlotUsed(this.el, "empty-state") ? (hAsync("slot", { name: "empty-state" })) : (hAsync("ic-empty-state", { aligned: "center", heading: "No Data", class: "loading-empty" })))), loading && (hAsync("ic-loading-indicator", { appearance: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.appearance, class: {
|
10688
|
+
"loading-empty": loading,
|
10689
|
+
loading: true,
|
10690
|
+
"show-background": loadingOptions.showBackground,
|
10691
|
+
}, description: loadingOptions.description || "Loading table data", label: loadingOptions.label || "Loading...", labelDuration: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.labelDuration, max: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.max, min: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.min, progress: loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.progress, ref: (el) => (this.loadingIndicator = el) })), showPagination && (hAsync("div", { class: "pagination-container" }, hAsync("ic-pagination-bar", { totalItems: data.length, type: paginationOptions.type, rangeLabelType: paginationOptions.rangeLabelType, showItemsPerPageControl: paginationOptions.itemsPerPageControl, showGoToPageControl: paginationOptions.goToPageControl, itemsPerPageOptions: paginationOptions.itemsPerPage, alignment: paginationOptions.alignment }))), sortable && (hAsync("div", { class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
10333
10692
|
? `${sortedColumn} sorted ${sortedColumnOrder}`
|
10334
10693
|
: "table unsorted"))));
|
10335
10694
|
}
|
10336
10695
|
get el() { return getElement(this); }
|
10696
|
+
static get watchers() { return {
|
10697
|
+
"loading": ["loadingHandler"],
|
10698
|
+
"data": ["dataHandler"],
|
10699
|
+
"globalRowHeight": ["rowHeightChangeHandler"],
|
10700
|
+
"variableRowHeight": ["rowHeightChangeHandler"]
|
10701
|
+
}; }
|
10337
10702
|
static get style() { return icDataTableCss; }
|
10338
10703
|
static get cmpMeta() { return {
|
10339
10704
|
"$flags$": 9,
|
@@ -10342,15 +10707,22 @@ class DataTable {
|
|
10342
10707
|
"caption": [1],
|
10343
10708
|
"columns": [16],
|
10344
10709
|
"data": [16],
|
10345
|
-
"density": [
|
10710
|
+
"density": [1025],
|
10346
10711
|
"embedded": [4],
|
10712
|
+
"globalRowHeight": [1032, "global-row-height"],
|
10347
10713
|
"hideColumnHeaders": [4, "hide-column-headers"],
|
10714
|
+
"loading": [1028],
|
10715
|
+
"loadingOptions": [16],
|
10716
|
+
"minimumLoadingDisplayDuration": [2, "minimum-loading-display-duration"],
|
10348
10717
|
"paginationOptions": [16],
|
10349
10718
|
"showPagination": [4, "show-pagination"],
|
10350
10719
|
"sortable": [4],
|
10351
10720
|
"sortOptions": [16],
|
10352
10721
|
"stickyColumnHeaders": [4, "sticky-column-headers"],
|
10353
10722
|
"stickyRowHeaders": [4, "sticky-row-headers"],
|
10723
|
+
"updating": [4],
|
10724
|
+
"updatingOptions": [16],
|
10725
|
+
"variableRowHeight": [1040],
|
10354
10726
|
"fromRow": [32],
|
10355
10727
|
"previousRowsPerPage": [32],
|
10356
10728
|
"rowsPerPage": [32],
|
@@ -10359,71 +10731,80 @@ class DataTable {
|
|
10359
10731
|
"selectedRow": [32],
|
10360
10732
|
"sortedColumn": [32],
|
10361
10733
|
"sortedColumnOrder": [32],
|
10362
|
-
"toRow": [32]
|
10734
|
+
"toRow": [32],
|
10735
|
+
"resetRowHeights": [64]
|
10363
10736
|
},
|
10364
|
-
"$listeners$": [[0, "icItemsPerPageChange", "handleItemsPerPageChange"], [0, "icPageChange", "handlePageChange"], [8, "click", "clickListener"]],
|
10737
|
+
"$listeners$": [[0, "icItemsPerPageChange", "handleItemsPerPageChange"], [0, "icPageChange", "handlePageChange"], [0, "icTableDensityUpdate", "handleDensityChange"], [8, "click", "clickListener"]],
|
10365
10738
|
"$lazyBundleId$": "-",
|
10366
10739
|
"$attrsToReflect$": []
|
10367
10740
|
}; }
|
10368
10741
|
}
|
10369
10742
|
|
10370
|
-
var
|
10371
|
-
|
10372
|
-
|
10373
|
-
|
10374
|
-
|
10375
|
-
|
10376
|
-
|
10377
|
-
|
10378
|
-
|
10379
|
-
|
10380
|
-
|
10381
|
-
|
10382
|
-
|
10383
|
-
|
10384
|
-
|
10385
|
-
|
10386
|
-
|
10387
|
-
|
10388
|
-
|
10389
|
-
|
10390
|
-
|
10391
|
-
|
10392
|
-
|
10393
|
-
|
10394
|
-
|
10395
|
-
|
10396
|
-
|
10397
|
-
|
10398
|
-
|
10399
|
-
|
10400
|
-
|
10401
|
-
|
10402
|
-
|
10403
|
-
|
10404
|
-
|
10405
|
-
|
10406
|
-
|
10407
|
-
|
10408
|
-
|
10409
|
-
|
10410
|
-
|
10411
|
-
|
10412
|
-
|
10413
|
-
|
10414
|
-
|
10415
|
-
|
10416
|
-
|
10417
|
-
|
10418
|
-
|
10419
|
-
|
10420
|
-
|
10421
|
-
|
10422
|
-
|
10423
|
-
|
10424
|
-
|
10425
|
-
|
10426
|
-
|
10743
|
+
const icDataTableTitleBarCss = "/*!@.title-bar-wrapper,\n.header-container,\n.description-actions,\n.action-area,\n.custom-actions-wrapper*/.title-bar-wrapper.sc-ic-data-table-title-bar,.header-container.sc-ic-data-table-title-bar,.description-actions.sc-ic-data-table-title-bar,.action-area.sc-ic-data-table-title-bar,.custom-actions-wrapper.sc-ic-data-table-title-bar{display:flex}/*!@.title-bar-wrapper,\n.action-area,\n.custom-actions-wrapper*/.title-bar-wrapper.sc-ic-data-table-title-bar,.action-area.sc-ic-data-table-title-bar,.custom-actions-wrapper.sc-ic-data-table-title-bar{gap:var(--ic-space-xs)}/*!@.title-bar-wrapper*/.title-bar-wrapper.sc-ic-data-table-title-bar{flex-direction:column;padding:var(--ic-space-sm) var(--ic-space-xs);border-bottom:var(--ic-space-1px) solid var(--ic-architectural-300)}/*!@.full-width*/.full-width.sc-ic-data-table-title-bar{padding:var(--ic-space-sm) 0;border-bottom:none}/*!@ic-typography.heading h3*/ic-typography.heading.sc-ic-data-table-title-bar h3.sc-ic-data-table-title-bar{margin:0}/*!@ic-typography.ic-typography-subtitle-small*/ic-typography.ic-typography-subtitle-small.sc-ic-data-table-title-bar{color:var(--ic-color-tertiary-text)}/*!@ic-typography.ic-typography-h3,\n::slotted([slot=\"header\"])*/ic-typography.ic-typography-h3.sc-ic-data-table-title-bar,.sc-ic-data-table-title-bar-s>[slot=\"header\"]{max-width:50rem}/*!@ic-typography.ic-typography-body,\n::slotted([slot=\"description\"])*/ic-typography.ic-typography-body.sc-ic-data-table-title-bar,.sc-ic-data-table-title-bar-s>[slot=\"description\"]{color:var(--ic-color-secondary-text)}/*!@ic-typography.ic-typography-body,\nic-typography.ic-typography-subtitle-small,\n::slotted([slot=\"description\"])*/ic-typography.ic-typography-body.sc-ic-data-table-title-bar,ic-typography.ic-typography-subtitle-small.sc-ic-data-table-title-bar,.sc-ic-data-table-title-bar-s>[slot=\"description\"]{max-width:40rem}/*!@.density-input*/.density-input.sc-ic-data-table-title-bar{--input-width:7.625rem}@media screen and (max-width: 1200px){/*!@.header-container*/.header-container.sc-ic-data-table-title-bar{flex-direction:column}}@media screen and (min-width: 1201px){/*!@.header-container*/.header-container.sc-ic-data-table-title-bar{gap:var(--ic-space-xs);align-items:baseline}}@media screen and (min-width: 769px){/*!@.description-actions*/.description-actions.sc-ic-data-table-title-bar{justify-content:space-between}}@media screen and (max-width: 768px){/*!@.description-actions*/.description-actions.sc-ic-data-table-title-bar{flex-direction:column;align-items:flex-start;gap:var(--ic-space-xs)}}@media screen and (min-width: 577px){/*!@.action-area*/.action-area.sc-ic-data-table-title-bar{align-items:center}}@media screen and (max-width: 576px){/*!@.action-area*/.action-area.sc-ic-data-table-title-bar{flex-direction:column}}";
|
10744
|
+
|
10745
|
+
const DEFAULT_TITLE_BAR_HEADING = "Title Bar";
|
10746
|
+
/**
|
10747
|
+
* @slot primary-action - Render an interactive element that will perform a primary action. Renders to the right of the density select.
|
10748
|
+
* @slot custom-actions - Render additional custom actions to the left of the density select.
|
10749
|
+
* @slot heading - The heading to render on the data table title bar.
|
10750
|
+
* @slot description - Render an alternative description in the description section.
|
10751
|
+
*/
|
10752
|
+
class DataTableTitleBar {
|
10753
|
+
constructor(hostRef) {
|
10754
|
+
registerInstance(this, hostRef);
|
10755
|
+
this.icTableDensityUpdate = createEvent(this, "icTableDensityUpdate", 7);
|
10756
|
+
this.initialDensitySelectOption = "default";
|
10757
|
+
this.isEmbedded = false;
|
10758
|
+
this.changeDensity = (ev) => {
|
10759
|
+
this.icTableDensityUpdate.emit({ value: ev.detail.value });
|
10760
|
+
};
|
10761
|
+
this.description = undefined;
|
10762
|
+
this.heading = DEFAULT_TITLE_BAR_HEADING;
|
10763
|
+
this.hideDensitySelect = false;
|
10764
|
+
this.metadata = undefined;
|
10765
|
+
}
|
10766
|
+
componentWillLoad() {
|
10767
|
+
const parentEl = this.el.parentElement;
|
10768
|
+
if (parentEl.tagName === "IC-DATA-TABLE") {
|
10769
|
+
const dataTable = parentEl;
|
10770
|
+
this.initialDensitySelectOption = dataTable.density;
|
10771
|
+
this.isEmbedded = dataTable.embedded;
|
10772
|
+
if (this.heading === DEFAULT_TITLE_BAR_HEADING) {
|
10773
|
+
this.heading = dataTable.caption;
|
10774
|
+
}
|
10775
|
+
}
|
10776
|
+
}
|
10777
|
+
render() {
|
10778
|
+
const { changeDensity, description, el, heading, hideDensitySelect, initialDensitySelectOption, isEmbedded, metadata, } = this;
|
10779
|
+
const showActionArea = isSlotUsed(el, "primary-action") ||
|
10780
|
+
isSlotUsed(el, "custom-actions") ||
|
10781
|
+
!hideDensitySelect;
|
10782
|
+
const hasDescription = isSlotUsed(el, "description") || description;
|
10783
|
+
return (hAsync("div", { class: {
|
10784
|
+
"title-bar-wrapper": true,
|
10785
|
+
"full-width": isEmbedded,
|
10786
|
+
} }, hAsync("div", { class: "header-container" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h3", className: "heading" }, hAsync("h3", null, heading))), metadata && (hAsync("ic-typography", { variant: "subtitle-small" }, metadata))), (showActionArea || hasDescription) && (hAsync("div", { class: "description-actions" }, hAsync("slot", { name: "description" }, description && (hAsync("ic-typography", { variant: "body" }, description))), showActionArea && (hAsync("div", { class: "action-area" }, isSlotUsed(el, "custom-actions") && (hAsync("div", { class: "custom-actions-wrapper" }, hAsync("slot", { name: "custom-actions" }))), !hideDensitySelect && (hAsync("ic-select", { small: true, label: "Change density", class: "density-input", hideLabel: true, options: [
|
10787
|
+
{ label: "Default", value: "default" },
|
10788
|
+
{ label: "Dense", value: "dense" },
|
10789
|
+
{ label: "Spacious", value: "spacious" },
|
10790
|
+
], value: initialDensitySelectOption, onIcChange: changeDensity })), isSlotUsed(el, "primary-action") && (hAsync("slot", { name: "primary-action" }))))))));
|
10791
|
+
}
|
10792
|
+
get el() { return getElement(this); }
|
10793
|
+
static get style() { return icDataTableTitleBarCss; }
|
10794
|
+
static get cmpMeta() { return {
|
10795
|
+
"$flags$": 9,
|
10796
|
+
"$tagName$": "ic-data-table-title-bar",
|
10797
|
+
"$members$": {
|
10798
|
+
"description": [1],
|
10799
|
+
"heading": [1],
|
10800
|
+
"hideDensitySelect": [4, "hide-density-select"],
|
10801
|
+
"metadata": [1]
|
10802
|
+
},
|
10803
|
+
"$listeners$": undefined,
|
10804
|
+
"$lazyBundleId$": "-",
|
10805
|
+
"$attrsToReflect$": []
|
10806
|
+
}; }
|
10807
|
+
}
|
10427
10808
|
|
10428
10809
|
const isMonthFirstFormat = (dateString) => {
|
10429
10810
|
const monthFirstFormat = /^(0[1-9]|1[0-2])(\/|-)(0[1-9]|[12][0-9]|3[01])(\/|-)\d{4}$/;
|
@@ -10516,275 +10897,46 @@ const getMonthStart = (date) => {
|
|
10516
10897
|
return new Date(date.getFullYear(), date.getMonth(), 1);
|
10517
10898
|
};
|
10518
10899
|
const getMonthEnd = (date) => {
|
10519
|
-
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
10520
|
-
};
|
10521
|
-
/**
|
10522
|
-
* Compare if two dates are equal exactly equal
|
10523
|
-
*/
|
10524
|
-
const dateMatches = (a, b) => {
|
10525
|
-
if (a === null || b === null) {
|
10526
|
-
return false;
|
10527
|
-
}
|
10528
|
-
return (a.getFullYear() === b.getFullYear() &&
|
10529
|
-
a.getMonth() === b.getMonth() &&
|
10530
|
-
a.getDate() === b.getDate());
|
10531
|
-
};
|
10532
|
-
const clampDate = (date, min, max) => {
|
10533
|
-
const time = date.getTime();
|
10534
|
-
if (min !== null && time < min.getTime()) {
|
10535
|
-
return min;
|
10536
|
-
}
|
10537
|
-
if (max !== null && time > max.getTime()) {
|
10538
|
-
return max;
|
10539
|
-
}
|
10540
|
-
return date;
|
10541
|
-
};
|
10542
|
-
/**
|
10543
|
-
* Compare if date is within specified range
|
10544
|
-
*/
|
10545
|
-
const dateInRange = (date, min, max) => {
|
10546
|
-
return clampDate(date, min, max) === date;
|
10547
|
-
};
|
10548
|
-
const yearInRange = (year, min, max) => {
|
10549
|
-
let allowed = true;
|
10550
|
-
if (year !== null) {
|
10551
|
-
if (min !== null && year < min.getFullYear()) {
|
10552
|
-
allowed = false;
|
10553
|
-
}
|
10554
|
-
if (allowed && max !== null && year > max.getFullYear()) {
|
10555
|
-
allowed = false;
|
10556
|
-
}
|
10557
|
-
}
|
10558
|
-
return allowed;
|
10559
|
-
};
|
10560
|
-
|
10561
|
-
// Global ARIA attributes
|
10562
|
-
const IC_INHERITED_ARIA = [
|
10563
|
-
"aria-atomic",
|
10564
|
-
"aria-autocomplete",
|
10565
|
-
"aria-busy",
|
10566
|
-
"aria-controls",
|
10567
|
-
"aria-current",
|
10568
|
-
"aria-describedby",
|
10569
|
-
"aria-description",
|
10570
|
-
"aria-details",
|
10571
|
-
"aria-disabled",
|
10572
|
-
"aria-dropeffect",
|
10573
|
-
"aria-errormessage",
|
10574
|
-
"aria-expanded",
|
10575
|
-
"aria-flowto",
|
10576
|
-
"aria-grabbed",
|
10577
|
-
"aria-haspopup",
|
10578
|
-
"aria-hidden",
|
10579
|
-
"aria-invalid",
|
10580
|
-
"aria-keyshortcuts",
|
10581
|
-
"aria-label",
|
10582
|
-
"aria-labelledby",
|
10583
|
-
"aria-live",
|
10584
|
-
"aria-owns",
|
10585
|
-
"aria-relevant",
|
10586
|
-
"aria-roledescription",
|
10587
|
-
];
|
10588
|
-
|
10589
|
-
/**
|
10590
|
-
* converts an enum of strings into an array of strings
|
10591
|
-
*/
|
10592
|
-
const stringEnumToArray = (theEnum) => {
|
10593
|
-
const arr = [];
|
10594
|
-
Object.values(theEnum).forEach((val) => {
|
10595
|
-
if (isNaN(Number(val))) {
|
10596
|
-
const str = val;
|
10597
|
-
arr.push(str);
|
10598
|
-
}
|
10599
|
-
});
|
10600
|
-
return arr;
|
10601
|
-
};
|
10602
|
-
/**
|
10603
|
-
* Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
|
10604
|
-
* to a variable that is later used in the render function.
|
10605
|
-
*
|
10606
|
-
* This does not need to be reactive as changing attributes on the host element
|
10607
|
-
* does not trigger a re-render.
|
10608
|
-
*/
|
10609
|
-
const inheritAttributes = (element, attributes = []) => {
|
10610
|
-
const attributeObject = {};
|
10611
|
-
attributes.forEach((attr) => {
|
10612
|
-
if (element.hasAttribute(attr)) {
|
10613
|
-
const value = element.getAttribute(attr);
|
10614
|
-
if (value !== null) {
|
10615
|
-
attributeObject[attr] = element.getAttribute(attr);
|
10616
|
-
}
|
10617
|
-
element.removeAttribute(attr);
|
10618
|
-
}
|
10619
|
-
});
|
10620
|
-
return attributeObject;
|
10621
|
-
};
|
10622
|
-
/**
|
10623
|
-
* This method is used to add a hidden input to a host element that contains
|
10624
|
-
* a Shadow DOM. It does not add the input inside of the Shadow root which
|
10625
|
-
* allows it to be picked up inside of forms. It should contain the same
|
10626
|
-
* values as the host element.
|
10627
|
-
*
|
10628
|
-
* @param always Add a hidden input even if the container does not use Shadow
|
10629
|
-
* @param container The element where the input will be added
|
10630
|
-
* @param name The name of the input
|
10631
|
-
* @param value The value of the input
|
10632
|
-
* @param disabled If true, the input is disabled
|
10633
|
-
*/
|
10634
|
-
const renderHiddenInput = (always, container, name, value, disabled) => {
|
10635
|
-
if (name !== undefined && (always || hasShadowDom(container))) {
|
10636
|
-
const inputs = container.querySelectorAll("input.ic-input");
|
10637
|
-
const inputEls = Array.from(inputs);
|
10638
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
10639
|
-
let input = filtered[0];
|
10640
|
-
if (input === null || input === undefined) {
|
10641
|
-
input = container.ownerDocument.createElement("input");
|
10642
|
-
input.type = "hidden";
|
10643
|
-
input.classList.add("ic-input");
|
10644
|
-
container.appendChild(input);
|
10645
|
-
}
|
10646
|
-
input.disabled = disabled;
|
10647
|
-
input.name = name;
|
10648
|
-
if (value instanceof Date) {
|
10649
|
-
input.value = value ? value.toISOString() : null;
|
10650
|
-
}
|
10651
|
-
else {
|
10652
|
-
input.value = value || "";
|
10653
|
-
}
|
10654
|
-
}
|
10655
|
-
};
|
10656
|
-
const isEmptyString = (value) => value ? value.trim().length === 0 : true;
|
10657
|
-
const getCssProperty = (cssVar) => getComputedStyle(document.documentElement).getPropertyValue(cssVar);
|
10658
|
-
({
|
10659
|
-
XS: Number(getCssProperty("--ic-breakpoint-xs").replace("px", "")),
|
10660
|
-
S: Number(getCssProperty("--ic-breakpoint-sm").replace("px", "")),
|
10661
|
-
M: Number(getCssProperty("--ic-breakpoint-md").replace("px", "")),
|
10662
|
-
L: Number(getCssProperty("--ic-breakpoint-lg").replace("px", "")),
|
10663
|
-
XL: Number(getCssProperty("--ic-breakpoint-xl").replace("px", "")),
|
10664
|
-
UNDEFINED: 1200,
|
10665
|
-
});
|
10666
|
-
const hasShadowDom = (el) => !!el.shadowRoot && !!el.attachShadow;
|
10667
|
-
const getInputHelperTextID = (id) => id + "-helper-text";
|
10668
|
-
const getInputValidationTextID = (id) => id + "-validation-text";
|
10669
|
-
const getInputDescribedByText = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID(inputId) : ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
|
10670
|
-
const isMobileOrTablet = () => "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 : false;
|
10671
|
-
/**
|
10672
|
-
* Extracts the label using the value from an object. Requires the object to have a label and value property.
|
10673
|
-
* @param value - value from object
|
10674
|
-
* @param options - list of menu items
|
10675
|
-
* @returns - label corresponding to value
|
10676
|
-
*/
|
10677
|
-
const getLabelFromValue = (value, options, valueField = "value", labelField = "label") => {
|
10678
|
-
const ungroupedOptions = [];
|
10679
|
-
if (options.length > 0 && options.map) {
|
10680
|
-
options.map((option) => {
|
10681
|
-
if (option.children) {
|
10682
|
-
option.children.map((option) => ungroupedOptions.push(option));
|
10683
|
-
}
|
10684
|
-
else {
|
10685
|
-
ungroupedOptions.push(option);
|
10686
|
-
}
|
10687
|
-
});
|
10688
|
-
const matchingValue = ungroupedOptions.find((option) => option[valueField] === value);
|
10689
|
-
if (matchingValue !== undefined)
|
10690
|
-
return matchingValue[labelField];
|
10691
|
-
}
|
10692
|
-
return undefined;
|
10693
|
-
};
|
10694
|
-
/**
|
10695
|
-
* Filters the options based on the search string.
|
10696
|
-
* @param options - array of options
|
10697
|
-
* @param includeDescriptions - determines whether option descriptions are included when filtering options
|
10698
|
-
* @param searchString - string used to filter the options
|
10699
|
-
* @param position - whether the search string matches the start of or anywhere in the options
|
10700
|
-
* @returns filtered array of options
|
10701
|
-
*/
|
10702
|
-
const getFilteredMenuOptions = (options, includeDescriptions, searchString, position, labelField = "label") => options.filter((option) => {
|
10703
|
-
var _a;
|
10704
|
-
const label = option[labelField].toLowerCase();
|
10705
|
-
const description = (_a = option.description) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
10706
|
-
const lowerSearchString = searchString.toLowerCase();
|
10707
|
-
return position === "anywhere"
|
10708
|
-
? includeDescriptions
|
10709
|
-
? label.includes(lowerSearchString) ||
|
10710
|
-
(description === null || description === void 0 ? void 0 : description.includes(lowerSearchString))
|
10711
|
-
: label.includes(lowerSearchString)
|
10712
|
-
: includeDescriptions
|
10713
|
-
? label.startsWith(lowerSearchString) ||
|
10714
|
-
(description === null || description === void 0 ? void 0 : description.startsWith(lowerSearchString))
|
10715
|
-
: label.startsWith(lowerSearchString);
|
10716
|
-
});
|
10717
|
-
/**
|
10718
|
-
* Gets count of options where only group title "parent" options have been removed.
|
10719
|
-
* Disabled options are included in the count.
|
10720
|
-
* @param options - array of options
|
10721
|
-
* @returns number of options not including group titles
|
10722
|
-
*/
|
10723
|
-
const getOptionsWithoutGroupTitlesCount = (options) => {
|
10724
|
-
const optionsWithoutGroupTitles = [];
|
10725
|
-
if (options.length > 0 && options.map) {
|
10726
|
-
options.map((option) => {
|
10727
|
-
if (option.children) {
|
10728
|
-
option.children.map((option) => optionsWithoutGroupTitles.push(option));
|
10729
|
-
}
|
10730
|
-
else {
|
10731
|
-
optionsWithoutGroupTitles.push(option);
|
10732
|
-
}
|
10733
|
-
});
|
10734
|
-
}
|
10735
|
-
return optionsWithoutGroupTitles.length;
|
10736
|
-
};
|
10737
|
-
const isNumeric = (value) => {
|
10738
|
-
return /^-?\d+$/.test(value);
|
10739
|
-
};
|
10740
|
-
const hasValidationStatus = (status, disabled) => {
|
10741
|
-
return status !== "" && !disabled;
|
10742
|
-
};
|
10743
|
-
const onComponentRequiredPropUndefined = (props, component) => {
|
10744
|
-
for (let i = 0; i < props.length; i++) {
|
10745
|
-
const { prop, propName } = props[i];
|
10746
|
-
if (prop === null || prop === undefined) {
|
10747
|
-
console.error(`No ${propName} specified for ${component} component - prop '${propName}' (web components) / '${kebabToCamelCase(propName)}' (react) required`);
|
10748
|
-
}
|
10749
|
-
}
|
10900
|
+
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
10750
10901
|
};
|
10751
|
-
|
10752
|
-
|
10753
|
-
|
10754
|
-
|
10755
|
-
|
10756
|
-
|
10757
|
-
individualWords[i].substring(0, 1).toUpperCase() +
|
10758
|
-
individualWords[i].substring(1);
|
10902
|
+
/**
|
10903
|
+
* Compare if two dates are equal exactly equal
|
10904
|
+
*/
|
10905
|
+
const dateMatches = (a, b) => {
|
10906
|
+
if (a === null || b === null) {
|
10907
|
+
return false;
|
10759
10908
|
}
|
10760
|
-
return
|
10909
|
+
return (a.getFullYear() === b.getFullYear() &&
|
10910
|
+
a.getMonth() === b.getMonth() &&
|
10911
|
+
a.getDate() === b.getDate());
|
10761
10912
|
};
|
10762
|
-
const
|
10763
|
-
|
10764
|
-
|
10765
|
-
|
10913
|
+
const clampDate = (date, min, max) => {
|
10914
|
+
const time = date.getTime();
|
10915
|
+
if (min !== null && time < min.getTime()) {
|
10916
|
+
return min;
|
10766
10917
|
}
|
10767
|
-
|
10768
|
-
|
10769
|
-
const addFormResetListener = (el, callbackFn) => {
|
10770
|
-
const form = getForm(el);
|
10771
|
-
if (form !== null) {
|
10772
|
-
form.addEventListener("reset", callbackFn);
|
10918
|
+
if (max !== null && time > max.getTime()) {
|
10919
|
+
return max;
|
10773
10920
|
}
|
10921
|
+
return date;
|
10774
10922
|
};
|
10775
|
-
|
10776
|
-
|
10777
|
-
|
10778
|
-
|
10779
|
-
|
10923
|
+
/**
|
10924
|
+
* Compare if date is within specified range
|
10925
|
+
*/
|
10926
|
+
const dateInRange = (date, min, max) => {
|
10927
|
+
return clampDate(date, min, max) === date;
|
10780
10928
|
};
|
10781
|
-
const
|
10782
|
-
|
10783
|
-
|
10929
|
+
const yearInRange = (year, min, max) => {
|
10930
|
+
let allowed = true;
|
10931
|
+
if (year !== null) {
|
10932
|
+
if (min !== null && year < min.getFullYear()) {
|
10933
|
+
allowed = false;
|
10934
|
+
}
|
10935
|
+
if (allowed && max !== null && year > max.getFullYear()) {
|
10936
|
+
allowed = false;
|
10937
|
+
}
|
10784
10938
|
}
|
10785
|
-
|
10786
|
-
const isMacDevice = () => {
|
10787
|
-
return window.navigator.userAgent.toUpperCase().indexOf("MAC") >= 0;
|
10939
|
+
return allowed;
|
10788
10940
|
};
|
10789
10941
|
|
10790
10942
|
var Clear$2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
@@ -10796,7 +10948,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
10796
10948
|
<path d="M16.6667 2.50004H15.8334V0.833374H14.1667V2.50004H5.83342V0.833374H4.16675V2.50004H3.33341C2.41675 2.50004 1.66675 3.25004 1.66675 4.16671V17.5C1.66675 18.4167 2.41675 19.1667 3.33341 19.1667H16.6667C17.5834 19.1667 18.3334 18.4167 18.3334 17.5V4.16671C18.3334 3.25004 17.5834 2.50004 16.6667 2.50004ZM16.6667 17.5H3.33341V6.66671H16.6667V17.5Z" fill="currentColor"/>
|
10797
10949
|
</svg>`;
|
10798
10950
|
|
10799
|
-
const icDateInputCss = "/*!@html*/html.sc-ic-date-input{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-date-input{margin:0}/*!@main*/main.sc-ic-date-input{display:block}/*!@h1*/h1.sc-ic-date-input{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-date-input{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-date-input{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-date-input{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-date-input{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-date-input,strong.sc-ic-date-input{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-date-input,kbd.sc-ic-date-input,samp.sc-ic-date-input{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-date-input{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-date-input,sup.sc-ic-date-input{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-date-input{bottom:-0.25em}/*!@sup*/sup.sc-ic-date-input{top:-0.5em}/*!@img*/img.sc-ic-date-input{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-date-input,input.sc-ic-date-input,optgroup.sc-ic-date-input,select.sc-ic-date-input,textarea.sc-ic-date-input{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-date-input,input.sc-ic-date-input{overflow:visible}/*!@button,\nselect*/button.sc-ic-date-input,select.sc-ic-date-input{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-date-input,[type=\"button\"].sc-ic-date-input,[type=\"reset\"].sc-ic-date-input,[type=\"submit\"].sc-ic-date-input{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-date-input::-moz-focus-inner,[type=\"button\"].sc-ic-date-input::-moz-focus-inner,[type=\"reset\"].sc-ic-date-input::-moz-focus-inner,[type=\"submit\"].sc-ic-date-input::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-date-input:-moz-focusring,[type=\"button\"].sc-ic-date-input:-moz-focusring,[type=\"reset\"].sc-ic-date-input:-moz-focusring,[type=\"submit\"].sc-ic-date-input:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-date-input{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-date-input{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-date-input{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-date-input{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-date-input,[type=\"radio\"].sc-ic-date-input{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-date-input::-webkit-inner-spin-button,[type=\"number\"].sc-ic-date-input::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-date-input{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-date-input::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-date-input::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-date-input{display:block}/*!@summary*/summary.sc-ic-date-input{display:list-item}/*!@template*/template.sc-ic-date-input{display:none}/*!@[hidden]*/[hidden].sc-ic-date-input{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-date-input,body.sc-ic-date-input,div.sc-ic-date-input,span.sc-ic-date-input,applet.sc-ic-date-input,object.sc-ic-date-input,iframe.sc-ic-date-input,h1.sc-ic-date-input,h2.sc-ic-date-input,h3.sc-ic-date-input,h4.sc-ic-date-input,h5.sc-ic-date-input,h6.sc-ic-date-input,p.sc-ic-date-input,blockquote.sc-ic-date-input,pre.sc-ic-date-input,a.sc-ic-date-input,abbr.sc-ic-date-input,acronym.sc-ic-date-input,address.sc-ic-date-input,big.sc-ic-date-input,cite.sc-ic-date-input,code.sc-ic-date-input,del.sc-ic-date-input,dfn.sc-ic-date-input,em.sc-ic-date-input,img.sc-ic-date-input,ins.sc-ic-date-input,kbd.sc-ic-date-input,q.sc-ic-date-input,s.sc-ic-date-input,samp.sc-ic-date-input,small.sc-ic-date-input,strike.sc-ic-date-input,strong.sc-ic-date-input,sub.sc-ic-date-input,sup.sc-ic-date-input,tt.sc-ic-date-input,var.sc-ic-date-input,b.sc-ic-date-input,u.sc-ic-date-input,i.sc-ic-date-input,center.sc-ic-date-input,dl.sc-ic-date-input,dt.sc-ic-date-input,dd.sc-ic-date-input,ol.sc-ic-date-input,ul.sc-ic-date-input,li.sc-ic-date-input,fieldset.sc-ic-date-input,form.sc-ic-date-input,label.sc-ic-date-input,legend.sc-ic-date-input,table.sc-ic-date-input,caption.sc-ic-date-input,tbody.sc-ic-date-input,tfoot.sc-ic-date-input,thead.sc-ic-date-input,tr.sc-ic-date-input,th.sc-ic-date-input,td.sc-ic-date-input,article.sc-ic-date-input,aside.sc-ic-date-input,canvas.sc-ic-date-input,details.sc-ic-date-input,embed.sc-ic-date-input,figure.sc-ic-date-input,figcaption.sc-ic-date-input,footer.sc-ic-date-input,header.sc-ic-date-input,hgroup.sc-ic-date-input,menu.sc-ic-date-input,nav.sc-ic-date-input,output.sc-ic-date-input,ruby.sc-ic-date-input,section.sc-ic-date-input,summary.sc-ic-date-input,time.sc-ic-date-input,mark.sc-ic-date-input,audio.sc-ic-date-input,video.sc-ic-date-input{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@input*/input.sc-ic-date-input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}/*!@input::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button*/input.sc-ic-date-input::-webkit-outer-spin-button,input.sc-ic-date-input::-webkit-inner-spin-button{-webkit-appearance:none}/*!@ic-input-component-container*/ic-input-component-container.sc-ic-date-input{cursor:text}/*!@ic-input-component-container,\nic-input-component-container:hover*/ic-input-component-container.sc-ic-date-input,ic-input-component-container.sc-ic-date-input:hover{color:var(--ic-color-tertiary-text)}
|
10951
|
+
const icDateInputCss = "/*!@html*/html.sc-ic-date-input{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-date-input{margin:0}/*!@main*/main.sc-ic-date-input{display:block}/*!@h1*/h1.sc-ic-date-input{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-date-input{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-date-input{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-date-input{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-date-input{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-date-input,strong.sc-ic-date-input{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-date-input,kbd.sc-ic-date-input,samp.sc-ic-date-input{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-date-input{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-date-input,sup.sc-ic-date-input{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-date-input{bottom:-0.25em}/*!@sup*/sup.sc-ic-date-input{top:-0.5em}/*!@img*/img.sc-ic-date-input{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-date-input,input.sc-ic-date-input,optgroup.sc-ic-date-input,select.sc-ic-date-input,textarea.sc-ic-date-input{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-date-input,input.sc-ic-date-input{overflow:visible}/*!@button,\nselect*/button.sc-ic-date-input,select.sc-ic-date-input{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-date-input,[type=\"button\"].sc-ic-date-input,[type=\"reset\"].sc-ic-date-input,[type=\"submit\"].sc-ic-date-input{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-date-input::-moz-focus-inner,[type=\"button\"].sc-ic-date-input::-moz-focus-inner,[type=\"reset\"].sc-ic-date-input::-moz-focus-inner,[type=\"submit\"].sc-ic-date-input::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-date-input:-moz-focusring,[type=\"button\"].sc-ic-date-input:-moz-focusring,[type=\"reset\"].sc-ic-date-input:-moz-focusring,[type=\"submit\"].sc-ic-date-input:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-date-input{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-date-input{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-date-input{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-date-input{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-date-input,[type=\"radio\"].sc-ic-date-input{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-date-input::-webkit-inner-spin-button,[type=\"number\"].sc-ic-date-input::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-date-input{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-date-input::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-date-input::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-date-input{display:block}/*!@summary*/summary.sc-ic-date-input{display:list-item}/*!@template*/template.sc-ic-date-input{display:none}/*!@[hidden]*/[hidden].sc-ic-date-input{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-date-input,body.sc-ic-date-input,div.sc-ic-date-input,span.sc-ic-date-input,applet.sc-ic-date-input,object.sc-ic-date-input,iframe.sc-ic-date-input,h1.sc-ic-date-input,h2.sc-ic-date-input,h3.sc-ic-date-input,h4.sc-ic-date-input,h5.sc-ic-date-input,h6.sc-ic-date-input,p.sc-ic-date-input,blockquote.sc-ic-date-input,pre.sc-ic-date-input,a.sc-ic-date-input,abbr.sc-ic-date-input,acronym.sc-ic-date-input,address.sc-ic-date-input,big.sc-ic-date-input,cite.sc-ic-date-input,code.sc-ic-date-input,del.sc-ic-date-input,dfn.sc-ic-date-input,em.sc-ic-date-input,img.sc-ic-date-input,ins.sc-ic-date-input,kbd.sc-ic-date-input,q.sc-ic-date-input,s.sc-ic-date-input,samp.sc-ic-date-input,small.sc-ic-date-input,strike.sc-ic-date-input,strong.sc-ic-date-input,sub.sc-ic-date-input,sup.sc-ic-date-input,tt.sc-ic-date-input,var.sc-ic-date-input,b.sc-ic-date-input,u.sc-ic-date-input,i.sc-ic-date-input,center.sc-ic-date-input,dl.sc-ic-date-input,dt.sc-ic-date-input,dd.sc-ic-date-input,ol.sc-ic-date-input,ul.sc-ic-date-input,li.sc-ic-date-input,fieldset.sc-ic-date-input,form.sc-ic-date-input,label.sc-ic-date-input,legend.sc-ic-date-input,table.sc-ic-date-input,caption.sc-ic-date-input,tbody.sc-ic-date-input,tfoot.sc-ic-date-input,thead.sc-ic-date-input,tr.sc-ic-date-input,th.sc-ic-date-input,td.sc-ic-date-input,article.sc-ic-date-input,aside.sc-ic-date-input,canvas.sc-ic-date-input,details.sc-ic-date-input,embed.sc-ic-date-input,figure.sc-ic-date-input,figcaption.sc-ic-date-input,footer.sc-ic-date-input,header.sc-ic-date-input,hgroup.sc-ic-date-input,menu.sc-ic-date-input,nav.sc-ic-date-input,output.sc-ic-date-input,ruby.sc-ic-date-input,section.sc-ic-date-input,summary.sc-ic-date-input,time.sc-ic-date-input,mark.sc-ic-date-input,audio.sc-ic-date-input,video.sc-ic-date-input{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@input*/input.sc-ic-date-input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}/*!@input::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button*/input.sc-ic-date-input::-webkit-outer-spin-button,input.sc-ic-date-input::-webkit-inner-spin-button{-webkit-appearance:none}/*!@ic-input-component-container*/ic-input-component-container.sc-ic-date-input{cursor:text}/*!@ic-input-component-container,\nic-input-component-container:hover*/ic-input-component-container.sc-ic-date-input,ic-input-component-container.sc-ic-date-input:hover{color:var(--ic-color-tertiary-text)}/*!@ic-input-component-container .focus-indicator*/ic-input-component-container.sc-ic-date-input .focus-indicator.sc-ic-date-input{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}/*!@.day-input*/.day-input.sc-ic-date-input{width:1.438rem}/*!@.month-input*/.month-input.sc-ic-date-input{width:1.813rem}/*!@.year-input,\n.year-input.fit-to-value*/.year-input.sc-ic-date-input,.year-input.fit-to-value.sc-ic-date-input{width:2.313rem}/*!@.fit-to-value*/.fit-to-value.sc-ic-date-input{width:1.25rem}/*!@.sr-only*/.sr-only.sc-ic-date-input{position:absolute;left:-9999px}/*!@.input-container*/.input-container.sc-ic-date-input{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}/*!@.action-buttons*/.action-buttons.sc-ic-date-input{display:flex;align-items:center}/*!@.show-calendar-button-wrapper*/.show-calendar-button-wrapper.sc-ic-date-input{display:flex;justify-content:center;align-items:center}/*!@.clear-button,\n.calendar-button*/.clear-button.sc-ic-date-input,.calendar-button.sc-ic-date-input{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition);margin:0}/*!@.clear-button.hidden*/.clear-button.hidden.sc-ic-date-input{display:none}/*!@.clear-button:focus,\n.calendar-button:focus,\n.clear-button:active,\n.calendar-button:active*/.clear-button.sc-ic-date-input:focus,.calendar-button.sc-ic-date-input:focus,.clear-button.sc-ic-date-input:active,.calendar-button.sc-ic-date-input:active{background-color:var(--ic-focus-blue) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-focus-glow) !important;border-radius:0.25rem}/*!@.clear-button:focus,\n.calendar-button:focus,\n.clear-button:active *,\n.calendar-button:active **/.clear-button.sc-ic-date-input:focus,.calendar-button.sc-ic-date-input:focus,.clear-button.sc-ic-date-input:active *.sc-ic-date-input,.calendar-button.sc-ic-date-input:active *.sc-ic-date-input{fill:var(--ic-architectural-white)}/*!@.divider*/.divider.sc-ic-date-input{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-architectural-400);border-radius:var(--ic-space-1px)}/*!@.divider.small*/.divider.small.sc-ic-date-input{height:var(--ic-space-md)}/*!@.divider.default*/.divider.default.sc-ic-date-input{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}/*!@.divider.large*/.divider.large.sc-ic-date-input{height:var(--ic-space-lg)}";
|
10800
10952
|
|
10801
10953
|
let inputIds$5 = 0;
|
10802
10954
|
class DateInput {
|
@@ -11666,9 +11818,8 @@ class DateInput {
|
|
11666
11818
|
}
|
11667
11819
|
componentWillLoad() {
|
11668
11820
|
this.defaultHelperText = `Use format ${this.dateFormat}`;
|
11669
|
-
if (isEmptyString(this.helperText))
|
11821
|
+
if (isEmptyString(this.helperText))
|
11670
11822
|
this.helperText = this.defaultHelperText;
|
11671
|
-
}
|
11672
11823
|
this.watchMinHandler();
|
11673
11824
|
this.watchMaxHandler();
|
11674
11825
|
if (this.value) {
|
@@ -11704,9 +11855,10 @@ class DateInput {
|
|
11704
11855
|
this.watchRequiredHandler();
|
11705
11856
|
}
|
11706
11857
|
componentWillUpdate() {
|
11707
|
-
if (
|
11858
|
+
if (isEmptyString(this.helperText))
|
11859
|
+
this.helperText = this.defaultHelperText;
|
11860
|
+
if (!this.isDateSetFromKeyboardEvent)
|
11708
11861
|
this.setDate(this.value);
|
11709
|
-
}
|
11710
11862
|
this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
|
11711
11863
|
this.handleDateChange(false);
|
11712
11864
|
this.isDateSetFromKeyboardEvent = false;
|
@@ -13232,10 +13384,10 @@ class Dialog {
|
|
13232
13384
|
[`${size}`]: true,
|
13233
13385
|
["disable-height-constraint"]: this.disableHeightConstraint,
|
13234
13386
|
["disable-width-constraint"]: this.disableWidthConstraint,
|
13235
|
-
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: this.closeIconClick, "data-gets-focus": destructive || !buttons ? "" : null }))), hAsync("div", { class: "content-area" }, isSlotUsed(this.el, "alert") ? (hAsync("slot", { name: "alert" })) : (status && (hAsync("ic-alert", { variant: status, heading: alertHeading, message: alertMessage, "title-above": true, class: "status-alert", id: "dialog-alert" }))), hAsync("div", { id: "dialog-content" }, hAsync("slot", null))), (buttons || isSlotUsed(this.el, this.DIALOG_CONTROLS)) && (hAsync("div", { class: {
|
13387
|
+
}, "aria-labelledby": "dialog-label dialog-heading", "aria-describedby": "dialog-alert dialog-content", ref: (el) => (this.dialogEl = el) }, hAsync("div", { class: "heading-area" }, hAsync("div", { class: "heading-content" }, hAsync("div", { class: "label" }, hAsync("slot", { name: "label" }, hAsync("ic-typography", { variant: "label", id: "dialog-label" }, label))), hAsync("div", { class: "heading" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4", id: "dialog-heading" }, heading)))), !hideCloseButton && (hAsync("ic-button", { class: "close-icon", variant: "icon", innerHTML: closeIcon, "aria-label": dismissLabel, onClick: this.closeIconClick, "data-gets-focus": destructive || !buttons ? "" : null }))), hAsync("div", { class: "content-area" }, isSlotUsed$1(this.el, "alert") ? (hAsync("slot", { name: "alert" })) : (status && (hAsync("ic-alert", { variant: status, heading: alertHeading, message: alertMessage, "title-above": true, class: "status-alert", id: "dialog-alert" }))), hAsync("div", { id: "dialog-content" }, hAsync("slot", null))), (buttons || isSlotUsed$1(this.el, this.DIALOG_CONTROLS)) && (hAsync("div", { class: {
|
13236
13388
|
[this.DIALOG_CONTROLS]: true,
|
13237
13389
|
["triple-button"]: buttonProps.length === 3,
|
13238
|
-
} }, hAsync("slot", { name: this.DIALOG_CONTROLS }, !isSlotUsed(this.el, this.DIALOG_CONTROLS) &&
|
13390
|
+
} }, hAsync("slot", { name: this.DIALOG_CONTROLS }, !isSlotUsed$1(this.el, this.DIALOG_CONTROLS) &&
|
13239
13391
|
buttonProps.map((props, index) => {
|
13240
13392
|
if (index > 2) {
|
13241
13393
|
return;
|
@@ -13480,15 +13632,15 @@ class EmptyState {
|
|
13480
13632
|
this.subheading = undefined;
|
13481
13633
|
}
|
13482
13634
|
componentDidLoad() {
|
13483
|
-
!isSlotUsed(this.el, "heading") &&
|
13635
|
+
!isSlotUsed$1(this.el, "heading") &&
|
13484
13636
|
onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Empty State");
|
13485
13637
|
}
|
13486
13638
|
render() {
|
13487
13639
|
const { aligned, body, bodyMaxLines, heading, imageSize, subheading } = this;
|
13488
13640
|
return (hAsync(Host, { class: {
|
13489
13641
|
[`${aligned}`]: true,
|
13490
|
-
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
13491
|
-
} }, isSlotUsed(this.el, "image") && hAsync("slot", { name: "image" }), hAsync("div", null, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4" }, heading)), hAsync("slot", { name: "subheading" }, hAsync("ic-typography", { variant: "subtitle-small" }, subheading)), hAsync("slot", { name: "body" }, hAsync("ic-typography", { maxLines: bodyMaxLines }, body))), isSlotUsed(this.el, "actions") && (hAsync("div", { class: "action-area" }, hAsync("slot", { name: "actions" })))));
|
13642
|
+
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
13643
|
+
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { name: "image" }), hAsync("div", null, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: "h4" }, heading)), hAsync("slot", { name: "subheading" }, hAsync("ic-typography", { variant: "subtitle-small" }, subheading)), hAsync("slot", { name: "body" }, hAsync("ic-typography", { maxLines: bodyMaxLines }, body))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { class: "action-area" }, hAsync("slot", { name: "actions" })))));
|
13492
13644
|
}
|
13493
13645
|
get el() { return getElement(this); }
|
13494
13646
|
static get style() { return icEmptyStateCss; }
|
@@ -13584,7 +13736,7 @@ class Footer {
|
|
13584
13736
|
// Slots will be able to infer their own color
|
13585
13737
|
[IcThemeForegroundEnum$1.Dark]: foregroundColor === IcThemeForegroundEnum$1.Dark,
|
13586
13738
|
[IcThemeForegroundEnum$1.Light]: foregroundColor === IcThemeForegroundEnum$1.Light,
|
13587
|
-
} }, hAsync("footer", { ref: (footerEl) => (this.footerEl = footerEl) }, description && (hAsync("div", { class: "footer-description" }, hAsync("ic-section-container", { aligned: aligned, fullHeight: true }, hAsync("div", { class: "footer-description-inner" }, hAsync("ic-typography", { variant: "body" }, hAsync("slot", { name: "description" }, description)))))), isSlotUsed(this.el, "link") && (hAsync("div", { class: "footer-links" }, groupLinks && small ? (hAsync("div", { class: "footer-links-inner" }, hAsync("slot", { name: "link" }))) : (hAsync("ic-section-container", { fullHeight: true, aligned: aligned }, hAsync("div", { class: "footer-links-inner" }, hAsync("slot", { name: "link" })))))), hAsync("div", { class: "footer-compliance" }, hAsync("ic-section-container", { aligned: aligned, fullHeight: true }, hAsync("div", { class: "footer-compliance-inner" }, isSlotUsed(this.el, "logo") && (hAsync("div", { class: "footer-logo" }, hAsync("slot", { name: "logo" }))), (isSlotUsed(this.el, "caption") || caption) && (hAsync("div", { class: "footer-caption" }, hAsync("ic-typography", { variant: this.deviceSize <= IC_DEVICE_SIZES.M
|
13739
|
+
} }, hAsync("footer", { ref: (footerEl) => (this.footerEl = footerEl) }, description && (hAsync("div", { class: "footer-description" }, hAsync("ic-section-container", { aligned: aligned, fullHeight: true }, hAsync("div", { class: "footer-description-inner" }, hAsync("ic-typography", { variant: "body" }, hAsync("slot", { name: "description" }, description)))))), isSlotUsed$1(this.el, "link") && (hAsync("div", { class: "footer-links" }, groupLinks && small ? (hAsync("div", { class: "footer-links-inner" }, hAsync("slot", { name: "link" }))) : (hAsync("ic-section-container", { fullHeight: true, aligned: aligned }, hAsync("div", { class: "footer-links-inner" }, hAsync("slot", { name: "link" })))))), hAsync("div", { class: "footer-compliance" }, hAsync("ic-section-container", { aligned: aligned, fullHeight: true }, hAsync("div", { class: "footer-compliance-inner" }, isSlotUsed$1(this.el, "logo") && (hAsync("div", { class: "footer-logo" }, hAsync("slot", { name: "logo" }))), (isSlotUsed$1(this.el, "caption") || caption) && (hAsync("div", { class: "footer-caption" }, hAsync("ic-typography", { variant: this.deviceSize <= IC_DEVICE_SIZES.M
|
13588
13740
|
? "caption"
|
13589
13741
|
: "body" }, hAsync("slot", { name: "caption" }, caption)))), copyright && (hAsync("div", { class: {
|
13590
13742
|
["footer-copyright"]: true,
|
@@ -13951,7 +14103,7 @@ class HorizontalScroll {
|
|
13951
14103
|
componentWillLoad() {
|
13952
14104
|
this.itemsContainerEl = this.el.children[0];
|
13953
14105
|
this.itemsContainerEl.addEventListener("scroll", this.scrollHandler);
|
13954
|
-
this.items = (getSlotElements(this.itemsContainerEl) ||
|
14106
|
+
this.items = (getSlotElements$1(this.itemsContainerEl) ||
|
13955
14107
|
Array.from(this.itemsContainerEl.children));
|
13956
14108
|
this.items.forEach((item) => {
|
13957
14109
|
if (item.addEventListener) {
|
@@ -14077,7 +14229,7 @@ class InputComponentContainer {
|
|
14077
14229
|
}, "aria-disabled": disabled && `${disabled}` }, hAsync("div", { class: {
|
14078
14230
|
"focus-indicator": true,
|
14079
14231
|
dark: dark || appearance === "dark",
|
14080
|
-
} }, isSlotUsed(this.el, "left-icon") && (hAsync("div", { class: {
|
14232
|
+
} }, isSlotUsed$1(this.el, "left-icon") && (hAsync("div", { class: {
|
14081
14233
|
["icon-container"]: true,
|
14082
14234
|
} }, hAsync("slot", { name: "left-icon" }))), hAsync("slot", null), validationInline &&
|
14083
14235
|
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { class: {
|
@@ -14245,7 +14397,7 @@ class InputValidation {
|
|
14245
14397
|
}; }
|
14246
14398
|
}
|
14247
14399
|
|
14248
|
-
const icLinkCss = "/*!@html*/html.sc-ic-link{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-link{margin:0}/*!@main*/main.sc-ic-link{display:block}/*!@h1*/h1.sc-ic-link{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-link{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-link{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-link{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-link{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-link,strong.sc-ic-link{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-link,kbd.sc-ic-link,samp.sc-ic-link{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-link{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-link,sup.sc-ic-link{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-link{bottom:-0.25em}/*!@sup*/sup.sc-ic-link{top:-0.5em}/*!@img*/img.sc-ic-link{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-link,input.sc-ic-link,optgroup.sc-ic-link,select.sc-ic-link,textarea.sc-ic-link{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-link,input.sc-ic-link{overflow:visible}/*!@button,\nselect*/button.sc-ic-link,select.sc-ic-link{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-link,[type=\"button\"].sc-ic-link,[type=\"reset\"].sc-ic-link,[type=\"submit\"].sc-ic-link{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-link::-moz-focus-inner,[type=\"button\"].sc-ic-link::-moz-focus-inner,[type=\"reset\"].sc-ic-link::-moz-focus-inner,[type=\"submit\"].sc-ic-link::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-link:-moz-focusring,[type=\"button\"].sc-ic-link:-moz-focusring,[type=\"reset\"].sc-ic-link:-moz-focusring,[type=\"submit\"].sc-ic-link:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-link{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-link{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-link{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-link{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-link,[type=\"radio\"].sc-ic-link{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-link::-webkit-inner-spin-button,[type=\"number\"].sc-ic-link::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-link{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-link::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-link::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-link{display:block}/*!@summary*/summary.sc-ic-link{display:list-item}/*!@template*/template.sc-ic-link{display:none}/*!@[hidden]*/[hidden].sc-ic-link{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-link,body.sc-ic-link,div.sc-ic-link,span.sc-ic-link,applet.sc-ic-link,object.sc-ic-link,iframe.sc-ic-link,h1.sc-ic-link,h2.sc-ic-link,h3.sc-ic-link,h4.sc-ic-link,h5.sc-ic-link,h6.sc-ic-link,p.sc-ic-link,blockquote.sc-ic-link,pre.sc-ic-link,a.sc-ic-link,abbr.sc-ic-link,acronym.sc-ic-link,address.sc-ic-link,big.sc-ic-link,cite.sc-ic-link,code.sc-ic-link,del.sc-ic-link,dfn.sc-ic-link,em.sc-ic-link,img.sc-ic-link,ins.sc-ic-link,kbd.sc-ic-link,q.sc-ic-link,s.sc-ic-link,samp.sc-ic-link,small.sc-ic-link,strike.sc-ic-link,strong.sc-ic-link,sub.sc-ic-link,sup.sc-ic-link,tt.sc-ic-link,var.sc-ic-link,b.sc-ic-link,u.sc-ic-link,i.sc-ic-link,center.sc-ic-link,dl.sc-ic-link,dt.sc-ic-link,dd.sc-ic-link,ol.sc-ic-link,ul.sc-ic-link,li.sc-ic-link,fieldset.sc-ic-link,form.sc-ic-link,label.sc-ic-link,legend.sc-ic-link,table.sc-ic-link,caption.sc-ic-link,tbody.sc-ic-link,tfoot.sc-ic-link,thead.sc-ic-link,tr.sc-ic-link,th.sc-ic-link,td.sc-ic-link,article.sc-ic-link,aside.sc-ic-link,canvas.sc-ic-link,details.sc-ic-link,embed.sc-ic-link,figure.sc-ic-link,figcaption.sc-ic-link,footer.sc-ic-link,header.sc-ic-link,hgroup.sc-ic-link,menu.sc-ic-link,nav.sc-ic-link,output.sc-ic-link,ruby.sc-ic-link,section.sc-ic-link,summary.sc-ic-link,time.sc-ic-link,mark.sc-ic-link,audio.sc-ic-link,video.sc-ic-link{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.link) .ic-link,\n:host(.link) ::slotted(a)*/.link.sc-ic-link-h .ic-link.sc-ic-link,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link .sc-ic-link-s>a{color:var(--ic-hyperlink);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}/*!@:host(.link.dark) .ic-link.dark,\n:host(.link.dark) ::slotted(a)*/.link.dark.sc-ic-link-h .ic-link.dark.sc-ic-link,.sc-ic-link-h.link.dark.sc-ic-link-s>a,.sc-ic-link-h.link.dark .sc-ic-link-s>a{color:var(--ic-color-primary-text)}/*!@:host(.link.light) .ic-link.light,\n:host(.link.light) ::slotted(a)*/.link.light.sc-ic-link-h .ic-link.light.sc-ic-link,.sc-ic-link-h.link.light.sc-ic-link-s>a,.sc-ic-link-h.link.light .sc-ic-link-s>a{color:var(--ic-color-white-text)}/*!@:host(.link) .ic-link:visited,\n:host(.link) ::slotted(a:visited)*/.link.sc-ic-link-h .ic-link.sc-ic-link:visited,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:visited,.sc-ic-link-h.link .sc-ic-link-s>a:visited{color:var(--ic-hyperlink-visited)}/*!@:host(.link) .ic-link:hover,\n:host(.link) .ic-link:focus,\n:host(.link) ::slotted(a:hover),\n:host(.link) ::slotted(a:focus)*/.link.sc-ic-link-h .ic-link.sc-ic-link:hover,.link.sc-ic-link-h .ic-link.sc-ic-link:focus,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:hover,.sc-ic-link-h.link .sc-ic-link-s>a:hover,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link .sc-ic-link-s>a:focus{outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}@supports (text-decoration-thickness: 25%){/*!@:host(.link) .ic-link:hover,\n :host(.link) .ic-link:focus,\n :host(.link) ::slotted(a:hover),\n :host(.link) ::slotted(a:focus)*/.link.sc-ic-link-h .ic-link.sc-ic-link:hover,.link.sc-ic-link-h .ic-link.sc-ic-link:focus,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:hover,.sc-ic-link-h.link .sc-ic-link-s>a:hover,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link .sc-ic-link-s>a:focus{text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:25%;border-bottom:0 !important;margin-bottom:0 !important}}/*!@:host(.link) .ic-link:active,\n:host(.link) .ic-link:focus:active,\n:host(.link) .ic-link:visited:active,\n:host(.link) ::slotted(a:active),\n:host(.link) ::slotted(a:focus:active),\n:host(.link) ::slotted(a:visited:active)*/.link.sc-ic-link-h .ic-link.sc-ic-link:active,.link.sc-ic-link-h .ic-link.sc-ic-link:focus:active,.link.sc-ic-link-h .ic-link.sc-ic-link:visited:active,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:active,.sc-ic-link-h.link .sc-ic-link-s>a:active,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link.sc-ic-link-s>a:focus:active,.sc-ic-link-h.link .sc-ic-link-s>a:focus:active,.sc-ic-link-h.link.sc-ic-link-s>a:visited,.sc-ic-link-h.link.sc-ic-link-s>a:visited:active,.sc-ic-link-h.link .sc-ic-link-s>a:visited:active{text-decoration:none}/*!@.ic-link-open-in-new-icon*/.ic-link-open-in-new-icon.sc-ic-link{vertical-align:middle;margin-left:var(--ic-space-xxs)}/*!@.ic-link > .ic-link-open-in-new-icon*/.ic-link.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink)}/*!@.ic-link.dark > .ic-link-open-in-new-icon*/.ic-link.dark.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-color-primary-text)}/*!@.ic-link.light > .ic-link-open-in-new-icon*/.ic-link.light.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-color-white-text)}/*!@.ic-link-open-in-new-icon > svg*/.ic-link-open-in-new-icon.sc-ic-link>svg.sc-ic-link{width:var(--ic-space-md);height:var(--ic-space-md);fill:currentcolor}/*!@.ic-link:visited > .ic-link-open-in-new-icon*/.ic-link.sc-ic-link:visited>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink-visited)}/*!@.ic-link.light:visited > .ic-link-open-in-new-icon*/.ic-link.light.sc-ic-link:visited>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink-contrast-visited)}/*!@:host(.breadcrumb-link) .ic-link*/.breadcrumb-link.sc-ic-link-h .ic-link.sc-ic-link{display:var(--breadcrumb-link-display);align-items:var(--breadcrumb-link-align-items);gap:var(--breadcrumb-link-gap)}/*!@:host(.breadcrumb-link) .ic-link ::slotted(.back-icon)*/.sc-ic-link-h.breadcrumb-link .ic-link .sc-ic-link-s>.back-icon{height:var(--ic-space-lg);width:var(--ic-space-lg)}/*!@:host(.breadcrumb-link.current-page) a,\n:host(.breadcrumb-link.current-page) ::slotted(a)*/.breadcrumb-link.current-page.sc-ic-link-h a.sc-ic-link,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a,.sc-ic-link-h.breadcrumb-link.current-page .sc-ic-link-s>a{font-weight:normal;color:inherit;text-decoration:none;display:flex;align-items:center}/*!@:host(.breadcrumb-link.current-page) .ic-link,\n:host(.breadcrumb-link.current-page) ::slotted(a:focus)*/.breadcrumb-link.current-page.sc-ic-link-h .ic-link.sc-ic-link,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a:focus,.sc-ic-link-h.breadcrumb-link.current-page .sc-ic-link-s>a:focus{outline:var(--ic-hc-focus-outline);text-decoration:none}/*!@:host(.breadcrumb-link.current-page) .ic-link:visited*/.breadcrumb-link.current-page.sc-ic-link-h .ic-link.sc-ic-link:visited{color:var(--ic-color-primary-text)}";
|
14400
|
+
const icLinkCss = "/*!@html*/html.sc-ic-link{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-link{margin:0}/*!@main*/main.sc-ic-link{display:block}/*!@h1*/h1.sc-ic-link{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-link{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-link{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-link{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-link{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-link,strong.sc-ic-link{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-link,kbd.sc-ic-link,samp.sc-ic-link{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-link{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-link,sup.sc-ic-link{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-link{bottom:-0.25em}/*!@sup*/sup.sc-ic-link{top:-0.5em}/*!@img*/img.sc-ic-link{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-link,input.sc-ic-link,optgroup.sc-ic-link,select.sc-ic-link,textarea.sc-ic-link{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-link,input.sc-ic-link{overflow:visible}/*!@button,\nselect*/button.sc-ic-link,select.sc-ic-link{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-link,[type=\"button\"].sc-ic-link,[type=\"reset\"].sc-ic-link,[type=\"submit\"].sc-ic-link{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-link::-moz-focus-inner,[type=\"button\"].sc-ic-link::-moz-focus-inner,[type=\"reset\"].sc-ic-link::-moz-focus-inner,[type=\"submit\"].sc-ic-link::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-link:-moz-focusring,[type=\"button\"].sc-ic-link:-moz-focusring,[type=\"reset\"].sc-ic-link:-moz-focusring,[type=\"submit\"].sc-ic-link:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-link{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-link{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-link{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-link{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-link,[type=\"radio\"].sc-ic-link{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-link::-webkit-inner-spin-button,[type=\"number\"].sc-ic-link::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-link{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-link::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-link::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-link{display:block}/*!@summary*/summary.sc-ic-link{display:list-item}/*!@template*/template.sc-ic-link{display:none}/*!@[hidden]*/[hidden].sc-ic-link{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-link,body.sc-ic-link,div.sc-ic-link,span.sc-ic-link,applet.sc-ic-link,object.sc-ic-link,iframe.sc-ic-link,h1.sc-ic-link,h2.sc-ic-link,h3.sc-ic-link,h4.sc-ic-link,h5.sc-ic-link,h6.sc-ic-link,p.sc-ic-link,blockquote.sc-ic-link,pre.sc-ic-link,a.sc-ic-link,abbr.sc-ic-link,acronym.sc-ic-link,address.sc-ic-link,big.sc-ic-link,cite.sc-ic-link,code.sc-ic-link,del.sc-ic-link,dfn.sc-ic-link,em.sc-ic-link,img.sc-ic-link,ins.sc-ic-link,kbd.sc-ic-link,q.sc-ic-link,s.sc-ic-link,samp.sc-ic-link,small.sc-ic-link,strike.sc-ic-link,strong.sc-ic-link,sub.sc-ic-link,sup.sc-ic-link,tt.sc-ic-link,var.sc-ic-link,b.sc-ic-link,u.sc-ic-link,i.sc-ic-link,center.sc-ic-link,dl.sc-ic-link,dt.sc-ic-link,dd.sc-ic-link,ol.sc-ic-link,ul.sc-ic-link,li.sc-ic-link,fieldset.sc-ic-link,form.sc-ic-link,label.sc-ic-link,legend.sc-ic-link,table.sc-ic-link,caption.sc-ic-link,tbody.sc-ic-link,tfoot.sc-ic-link,thead.sc-ic-link,tr.sc-ic-link,th.sc-ic-link,td.sc-ic-link,article.sc-ic-link,aside.sc-ic-link,canvas.sc-ic-link,details.sc-ic-link,embed.sc-ic-link,figure.sc-ic-link,figcaption.sc-ic-link,footer.sc-ic-link,header.sc-ic-link,hgroup.sc-ic-link,menu.sc-ic-link,nav.sc-ic-link,output.sc-ic-link,ruby.sc-ic-link,section.sc-ic-link,summary.sc-ic-link,time.sc-ic-link,mark.sc-ic-link,audio.sc-ic-link,video.sc-ic-link{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.link) .ic-link,\n:host(.link) ::slotted(a)*/.link.sc-ic-link-h .ic-link.sc-ic-link,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link .sc-ic-link-s>a{color:var(--ic-hyperlink);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}/*!@:host(.link.dark) .ic-link.dark,\n:host(.link.dark) ::slotted(a)*/.link.dark.sc-ic-link-h .ic-link.dark.sc-ic-link,.sc-ic-link-h.link.dark.sc-ic-link-s>a,.sc-ic-link-h.link.dark .sc-ic-link-s>a{color:var(--ic-color-primary-text)}/*!@:host(.link.light) .ic-link.light,\n:host(.link.light) ::slotted(a)*/.link.light.sc-ic-link-h .ic-link.light.sc-ic-link,.sc-ic-link-h.link.light.sc-ic-link-s>a,.sc-ic-link-h.link.light .sc-ic-link-s>a{color:var(--ic-color-white-text)}/*!@:host(.link) .ic-link:visited,\n:host(.link) ::slotted(a:visited)*/.link.sc-ic-link-h .ic-link.sc-ic-link:visited,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:visited,.sc-ic-link-h.link .sc-ic-link-s>a:visited{color:var(--ic-hyperlink-visited)}/*!@:host(.link) .ic-link:hover,\n:host(.link) .ic-link:focus,\n:host(.link) ::slotted(a:hover),\n:host(.link) ::slotted(a:focus)*/.link.sc-ic-link-h .ic-link.sc-ic-link:hover,.link.sc-ic-link-h .ic-link.sc-ic-link:focus,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:hover,.sc-ic-link-h.link .sc-ic-link-s>a:hover,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link .sc-ic-link-s>a:focus{outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}@supports (text-decoration-thickness: 25%){/*!@:host(.link) .ic-link:hover,\n :host(.link) .ic-link:focus,\n :host(.link) ::slotted(a:hover),\n :host(.link) ::slotted(a:focus)*/.link.sc-ic-link-h .ic-link.sc-ic-link:hover,.link.sc-ic-link-h .ic-link.sc-ic-link:focus,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:hover,.sc-ic-link-h.link .sc-ic-link-s>a:hover,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link .sc-ic-link-s>a:focus{text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:10%;border-bottom:0 !important;margin-bottom:0 !important}}/*!@:host(.link) .ic-link:active,\n:host(.link) .ic-link:focus:active,\n:host(.link) .ic-link:visited:active,\n:host(.link) ::slotted(a:active),\n:host(.link) ::slotted(a:focus:active),\n:host(.link) ::slotted(a:visited:active)*/.link.sc-ic-link-h .ic-link.sc-ic-link:active,.link.sc-ic-link-h .ic-link.sc-ic-link:focus:active,.link.sc-ic-link-h .ic-link.sc-ic-link:visited:active,.sc-ic-link-h.link.sc-ic-link-s>a,.sc-ic-link-h.link.sc-ic-link-s>a:active,.sc-ic-link-h.link .sc-ic-link-s>a:active,.sc-ic-link-h.link.sc-ic-link-s>a:focus,.sc-ic-link-h.link.sc-ic-link-s>a:focus:active,.sc-ic-link-h.link .sc-ic-link-s>a:focus:active,.sc-ic-link-h.link.sc-ic-link-s>a:visited,.sc-ic-link-h.link.sc-ic-link-s>a:visited:active,.sc-ic-link-h.link .sc-ic-link-s>a:visited:active{text-decoration:none}/*!@.ic-link-open-in-new-icon*/.ic-link-open-in-new-icon.sc-ic-link{vertical-align:middle;margin-left:var(--ic-space-xxs)}/*!@.ic-link > .ic-link-open-in-new-icon*/.ic-link.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink)}/*!@.ic-link.dark > .ic-link-open-in-new-icon*/.ic-link.dark.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-color-primary-text)}/*!@.ic-link.light > .ic-link-open-in-new-icon*/.ic-link.light.sc-ic-link>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-color-white-text)}/*!@.ic-link-open-in-new-icon > svg*/.ic-link-open-in-new-icon.sc-ic-link>svg.sc-ic-link{width:var(--ic-space-md);height:var(--ic-space-md);fill:currentcolor}/*!@.ic-link:visited > .ic-link-open-in-new-icon*/.ic-link.sc-ic-link:visited>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink-visited)}/*!@.ic-link.light:visited > .ic-link-open-in-new-icon*/.ic-link.light.sc-ic-link:visited>.ic-link-open-in-new-icon.sc-ic-link{fill:var(--ic-hyperlink-contrast-visited)}/*!@:host(.breadcrumb-link) .ic-link*/.breadcrumb-link.sc-ic-link-h .ic-link.sc-ic-link{display:var(--breadcrumb-link-display);align-items:var(--breadcrumb-link-align-items);gap:var(--breadcrumb-link-gap)}/*!@:host(.breadcrumb-link) .ic-link ::slotted(.back-icon)*/.sc-ic-link-h.breadcrumb-link .ic-link .sc-ic-link-s>.back-icon{height:var(--ic-space-lg);width:var(--ic-space-lg)}/*!@:host(.breadcrumb-link.current-page) a,\n:host(.breadcrumb-link.current-page) ::slotted(a)*/.breadcrumb-link.current-page.sc-ic-link-h a.sc-ic-link,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a,.sc-ic-link-h.breadcrumb-link.current-page .sc-ic-link-s>a{font-weight:normal;color:inherit;text-decoration:none;display:flex;align-items:center}/*!@:host(.breadcrumb-link.current-page) .ic-link,\n:host(.breadcrumb-link.current-page) ::slotted(a:focus)*/.breadcrumb-link.current-page.sc-ic-link-h .ic-link.sc-ic-link,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a,.sc-ic-link-h.breadcrumb-link.current-page.sc-ic-link-s>a:focus,.sc-ic-link-h.breadcrumb-link.current-page .sc-ic-link-s>a:focus{outline:var(--ic-hc-focus-outline);text-decoration:none}/*!@:host(.breadcrumb-link.current-page) .ic-link:visited*/.breadcrumb-link.current-page.sc-ic-link-h .ic-link.sc-ic-link:visited{color:var(--ic-color-primary-text)}";
|
14249
14401
|
|
14250
14402
|
/**
|
14251
14403
|
* @slot router-item - Handle routing by nesting your routes in this slot.
|
@@ -14254,6 +14406,16 @@ class Link {
|
|
14254
14406
|
constructor(hostRef) {
|
14255
14407
|
registerInstance(this, hostRef);
|
14256
14408
|
this.inheritedAttributes = {};
|
14409
|
+
this.hostMutationObserver = null;
|
14410
|
+
// triggered when attributes of host element change
|
14411
|
+
this.hostMutationCallback = (mutationList) => {
|
14412
|
+
mutationList.forEach(({ attributeName }) => {
|
14413
|
+
if (IC_INHERITED_ARIA$1.includes(attributeName)) {
|
14414
|
+
this.inheritedAttributes[attributeName] =
|
14415
|
+
this.el.getAttribute(attributeName);
|
14416
|
+
}
|
14417
|
+
});
|
14418
|
+
};
|
14257
14419
|
this.appearance = "default";
|
14258
14420
|
this.download = false;
|
14259
14421
|
this.href = null;
|
@@ -14267,27 +14429,30 @@ class Link {
|
|
14267
14429
|
this.inheritedAttributes = inheritAttributes$1(this.el, IC_INHERITED_ARIA$1);
|
14268
14430
|
this.updateTheme();
|
14269
14431
|
}
|
14270
|
-
|
14271
|
-
|
14272
|
-
this.
|
14432
|
+
componentDidLoad() {
|
14433
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
14434
|
+
this.hostMutationObserver.observe(this.el, {
|
14435
|
+
attributes: true,
|
14436
|
+
});
|
14437
|
+
}
|
14438
|
+
disconnectedCallback() {
|
14439
|
+
var _a;
|
14440
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
14441
|
+
}
|
14442
|
+
themeChangeHandler({ detail }) {
|
14443
|
+
this.updateTheme(detail.mode);
|
14273
14444
|
}
|
14274
14445
|
/**
|
14275
14446
|
* Sets focus on the link.
|
14276
14447
|
*/
|
14277
14448
|
async setFocus() {
|
14278
|
-
|
14279
|
-
|
14280
|
-
}
|
14449
|
+
var _a;
|
14450
|
+
(_a = this.el.shadowRoot.querySelector("a")) === null || _a === void 0 ? void 0 : _a.focus();
|
14281
14451
|
}
|
14282
14452
|
updateTheme(newTheme = null) {
|
14283
|
-
const theme = getThemeFromContext(this.el, newTheme
|
14284
|
-
|
14285
|
-
|
14286
|
-
this.appearance = IcThemeForegroundEnum$1.Light;
|
14287
|
-
break;
|
14288
|
-
case IcThemeForegroundEnum$1.Dark:
|
14289
|
-
this.appearance = IcThemeForegroundEnum$1.Dark;
|
14290
|
-
break;
|
14453
|
+
const theme = getThemeFromContext(this.el, newTheme);
|
14454
|
+
if (theme !== IcThemeForegroundEnum$1.Default) {
|
14455
|
+
this.appearance = theme;
|
14291
14456
|
}
|
14292
14457
|
}
|
14293
14458
|
hasRouterSlot() {
|
@@ -14327,7 +14492,7 @@ class Link {
|
|
14327
14492
|
}; }
|
14328
14493
|
}
|
14329
14494
|
|
14330
|
-
const icLoadingIndicatorCss = "/*!@html*/html.sc-ic-loading-indicator{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-loading-indicator{margin:0}/*!@main*/main.sc-ic-loading-indicator{display:block}/*!@h1*/h1.sc-ic-loading-indicator{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-loading-indicator{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-loading-indicator{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-loading-indicator{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-loading-indicator{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-loading-indicator,strong.sc-ic-loading-indicator{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-loading-indicator,kbd.sc-ic-loading-indicator,samp.sc-ic-loading-indicator{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-loading-indicator{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-loading-indicator,sup.sc-ic-loading-indicator{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-loading-indicator{bottom:-0.25em}/*!@sup*/sup.sc-ic-loading-indicator{top:-0.5em}/*!@img*/img.sc-ic-loading-indicator{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-loading-indicator,input.sc-ic-loading-indicator,optgroup.sc-ic-loading-indicator,select.sc-ic-loading-indicator,textarea.sc-ic-loading-indicator{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-loading-indicator,input.sc-ic-loading-indicator{overflow:visible}/*!@button,\nselect*/button.sc-ic-loading-indicator,select.sc-ic-loading-indicator{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-loading-indicator,[type=\"button\"].sc-ic-loading-indicator,[type=\"reset\"].sc-ic-loading-indicator,[type=\"submit\"].sc-ic-loading-indicator{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-loading-indicator::-moz-focus-inner,[type=\"button\"].sc-ic-loading-indicator::-moz-focus-inner,[type=\"reset\"].sc-ic-loading-indicator::-moz-focus-inner,[type=\"submit\"].sc-ic-loading-indicator::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-loading-indicator:-moz-focusring,[type=\"button\"].sc-ic-loading-indicator:-moz-focusring,[type=\"reset\"].sc-ic-loading-indicator:-moz-focusring,[type=\"submit\"].sc-ic-loading-indicator:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-loading-indicator{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-loading-indicator{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-loading-indicator{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-loading-indicator{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-loading-indicator,[type=\"radio\"].sc-ic-loading-indicator{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-loading-indicator::-webkit-inner-spin-button,[type=\"number\"].sc-ic-loading-indicator::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-loading-indicator{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-loading-indicator::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-loading-indicator::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-loading-indicator{display:block}/*!@summary*/summary.sc-ic-loading-indicator{display:list-item}/*!@template*/template.sc-ic-loading-indicator{display:none}/*!@[hidden]*/[hidden].sc-ic-loading-indicator{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-loading-indicator,body.sc-ic-loading-indicator,div.sc-ic-loading-indicator,span.sc-ic-loading-indicator,applet.sc-ic-loading-indicator,object.sc-ic-loading-indicator,iframe.sc-ic-loading-indicator,h1.sc-ic-loading-indicator,h2.sc-ic-loading-indicator,h3.sc-ic-loading-indicator,h4.sc-ic-loading-indicator,h5.sc-ic-loading-indicator,h6.sc-ic-loading-indicator,p.sc-ic-loading-indicator,blockquote.sc-ic-loading-indicator,pre.sc-ic-loading-indicator,a.sc-ic-loading-indicator,abbr.sc-ic-loading-indicator,acronym.sc-ic-loading-indicator,address.sc-ic-loading-indicator,big.sc-ic-loading-indicator,cite.sc-ic-loading-indicator,code.sc-ic-loading-indicator,del.sc-ic-loading-indicator,dfn.sc-ic-loading-indicator,em.sc-ic-loading-indicator,img.sc-ic-loading-indicator,ins.sc-ic-loading-indicator,kbd.sc-ic-loading-indicator,q.sc-ic-loading-indicator,s.sc-ic-loading-indicator,samp.sc-ic-loading-indicator,small.sc-ic-loading-indicator,strike.sc-ic-loading-indicator,strong.sc-ic-loading-indicator,sub.sc-ic-loading-indicator,sup.sc-ic-loading-indicator,tt.sc-ic-loading-indicator,var.sc-ic-loading-indicator,b.sc-ic-loading-indicator,u.sc-ic-loading-indicator,i.sc-ic-loading-indicator,center.sc-ic-loading-indicator,dl.sc-ic-loading-indicator,dt.sc-ic-loading-indicator,dd.sc-ic-loading-indicator,ol.sc-ic-loading-indicator,ul.sc-ic-loading-indicator,li.sc-ic-loading-indicator,fieldset.sc-ic-loading-indicator,form.sc-ic-loading-indicator,label.sc-ic-loading-indicator,legend.sc-ic-loading-indicator,table.sc-ic-loading-indicator,caption.sc-ic-loading-indicator,tbody.sc-ic-loading-indicator,tfoot.sc-ic-loading-indicator,thead.sc-ic-loading-indicator,tr.sc-ic-loading-indicator,th.sc-ic-loading-indicator,td.sc-ic-loading-indicator,article.sc-ic-loading-indicator,aside.sc-ic-loading-indicator,canvas.sc-ic-loading-indicator,details.sc-ic-loading-indicator,embed.sc-ic-loading-indicator,figure.sc-ic-loading-indicator,figcaption.sc-ic-loading-indicator,footer.sc-ic-loading-indicator,header.sc-ic-loading-indicator,hgroup.sc-ic-loading-indicator,menu.sc-ic-loading-indicator,nav.sc-ic-loading-indicator,output.sc-ic-loading-indicator,ruby.sc-ic-loading-indicator,section.sc-ic-loading-indicator,summary.sc-ic-loading-indicator,time.sc-ic-loading-indicator,mark.sc-ic-loading-indicator,audio.sc-ic-loading-indicator,video.sc-ic-loading-indicator{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-loading-indicator-h{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-action-default);--outer-color:var(--ic-architectural-100);--label-color:var(--ic-color-primary-text);--margin:none;--linear-line-height:var(--ic-space-xs)}/*!@:host(.light)*/.light.sc-ic-loading-indicator-h{--inner-color:var(--ic-architectural-white);--outer-color:var(--ic-architectural-800);--label-color:var(--ic-architectural-white)}/*!@.ic-loading-container*/.ic-loading-container.sc-ic-loading-indicator{display:flex;flex-direction:column;justify-content:center;align-items:center}/*!@:host([size=\"small\"])*/[size=\"small\"].sc-ic-loading-indicator-h{--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}/*!@:host([size=\"default\"])*/[size=\"default\"].sc-ic-loading-indicator-h{--circular-diameter:5rem}/*!@:host([size=\"large\"])*/[size=\"large\"].sc-ic-loading-indicator-h{--circular-diameter:7.5rem}/*!@:host([size=\"icon\"])*/[size=\"icon\"].sc-ic-loading-indicator-h{display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}/*!@:host(.label)*/.label.sc-ic-loading-indicator-h{--margin:0 0 var(--ic-space-xs) 0}/*!@.ic-loading-label*/.ic-loading-label.sc-ic-loading-indicator{white-space:nowrap;color:var(--label-color);margin-left:var(--label-margin-left)}/*!@.ic-loading-circular-outer*/.ic-loading-circular-outer.sc-ic-loading-indicator{height:var(--circular-diameter);width:var(--circular-diameter)}/*!@.ic-loading-circular-outer.indeterminate*/.ic-loading-circular-outer.indeterminate.sc-ic-loading-indicator{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}/*!@.ic-loading-circular-outer,\n.ic-loading-linear-outer*/.ic-loading-circular-outer.sc-ic-loading-indicator,.ic-loading-linear-outer.sc-ic-loading-indicator{margin:var(--margin)}/*!@.ic-loading-linear-outer*/.ic-loading-linear-outer.sc-ic-loading-indicator{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}/*!@.ic-loading-linear-inner*/.ic-loading-linear-inner.sc-ic-loading-indicator{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}/*!@.indeterminate > .ic-loading-linear-inner*/.indeterminate.sc-ic-loading-indicator>.ic-loading-linear-inner.sc-ic-loading-indicator{animation:linear-animation 2s infinite}/*!@.determinate > .ic-loading-linear-inner*/.determinate.sc-ic-loading-indicator>.ic-loading-linear-inner.sc-ic-loading-indicator{transition:width 0.5s;width:var(--linear-width)}/*!@:host(.full-width)*/.full-width.sc-ic-loading-indicator-h{--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}/*!@.ic-loading-circular-svg*/.ic-loading-circular-svg.sc-ic-loading-indicator{position:relative;width:100%;height:100%;transform:rotate(-90deg)}/*!@.ic-loading-circular-svg circle*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator{width:100%;height:100%;fill:none;stroke:var(--outer-color);stroke-width:var(--circular-line-width);stroke-linecap:round}/*!@.ic-loading-circular-svg circle:nth-child(2)*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}/*!@:host(.inner-label) .ic-loading-circular-inner*/.inner-label.sc-ic-loading-indicator-h .ic-loading-circular-inner.sc-ic-loading-indicator{display:grid}/*!@:host(.inner-label) .ic-loading-circular-svg,\n.inner-text*/.inner-label.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator,.inner-text.sc-ic-loading-indicator{grid-column:1;grid-row:1}/*!@:host(.not-required.compact-step-progress-indicator)\n .ic-loading-circular-svg\n circle:nth-child(2)*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:var(--ic-architectural-300)}/*!@.inner-text*/.inner-text.sc-ic-loading-indicator{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;color:var(--ic-status-info)}/*!@:host(.not-required.compact-step-progress-indicator) .inner-text*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .inner-text.sc-ic-loading-indicator{color:var(--ic-color-tertiary-text)}@media (forced-colors: active){/*!@.indeterminate > .ic-loading-circular-inner*/.indeterminate.sc-ic-loading-indicator>.ic-loading-circular-inner.sc-ic-loading-indicator{forced-color-adjust:none}/*!@.ic-loading-linear-outer*/.ic-loading-linear-outer.sc-ic-loading-indicator{border:var(--ic-hc-border)}/*!@.ic-loading-linear-inner*/.ic-loading-linear-inner.sc-ic-loading-indicator{background-color:canvastext}/*!@.ic-loading-circular-svg circle*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator{stroke:Background}/*!@.ic-loading-circular-svg circle:nth-child(2)*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:canvastext}/*!@:host(.not-required.compact-step-progress-indicator)\n .ic-loading-circular-svg\n circle:nth-child(2)*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:GrayText}}";
|
14495
|
+
const icLoadingIndicatorCss = "/*!@html*/html.sc-ic-loading-indicator{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-loading-indicator{margin:0}/*!@main*/main.sc-ic-loading-indicator{display:block}/*!@h1*/h1.sc-ic-loading-indicator{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-loading-indicator{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-loading-indicator{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-loading-indicator{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-loading-indicator{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-loading-indicator,strong.sc-ic-loading-indicator{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-loading-indicator,kbd.sc-ic-loading-indicator,samp.sc-ic-loading-indicator{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-loading-indicator{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-loading-indicator,sup.sc-ic-loading-indicator{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-loading-indicator{bottom:-0.25em}/*!@sup*/sup.sc-ic-loading-indicator{top:-0.5em}/*!@img*/img.sc-ic-loading-indicator{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-loading-indicator,input.sc-ic-loading-indicator,optgroup.sc-ic-loading-indicator,select.sc-ic-loading-indicator,textarea.sc-ic-loading-indicator{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-loading-indicator,input.sc-ic-loading-indicator{overflow:visible}/*!@button,\nselect*/button.sc-ic-loading-indicator,select.sc-ic-loading-indicator{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-loading-indicator,[type=\"button\"].sc-ic-loading-indicator,[type=\"reset\"].sc-ic-loading-indicator,[type=\"submit\"].sc-ic-loading-indicator{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-loading-indicator::-moz-focus-inner,[type=\"button\"].sc-ic-loading-indicator::-moz-focus-inner,[type=\"reset\"].sc-ic-loading-indicator::-moz-focus-inner,[type=\"submit\"].sc-ic-loading-indicator::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-loading-indicator:-moz-focusring,[type=\"button\"].sc-ic-loading-indicator:-moz-focusring,[type=\"reset\"].sc-ic-loading-indicator:-moz-focusring,[type=\"submit\"].sc-ic-loading-indicator:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-loading-indicator{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-loading-indicator{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-loading-indicator{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-loading-indicator{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-loading-indicator,[type=\"radio\"].sc-ic-loading-indicator{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-loading-indicator::-webkit-inner-spin-button,[type=\"number\"].sc-ic-loading-indicator::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-loading-indicator{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-loading-indicator::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-loading-indicator::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-loading-indicator{display:block}/*!@summary*/summary.sc-ic-loading-indicator{display:list-item}/*!@template*/template.sc-ic-loading-indicator{display:none}/*!@[hidden]*/[hidden].sc-ic-loading-indicator{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-loading-indicator,body.sc-ic-loading-indicator,div.sc-ic-loading-indicator,span.sc-ic-loading-indicator,applet.sc-ic-loading-indicator,object.sc-ic-loading-indicator,iframe.sc-ic-loading-indicator,h1.sc-ic-loading-indicator,h2.sc-ic-loading-indicator,h3.sc-ic-loading-indicator,h4.sc-ic-loading-indicator,h5.sc-ic-loading-indicator,h6.sc-ic-loading-indicator,p.sc-ic-loading-indicator,blockquote.sc-ic-loading-indicator,pre.sc-ic-loading-indicator,a.sc-ic-loading-indicator,abbr.sc-ic-loading-indicator,acronym.sc-ic-loading-indicator,address.sc-ic-loading-indicator,big.sc-ic-loading-indicator,cite.sc-ic-loading-indicator,code.sc-ic-loading-indicator,del.sc-ic-loading-indicator,dfn.sc-ic-loading-indicator,em.sc-ic-loading-indicator,img.sc-ic-loading-indicator,ins.sc-ic-loading-indicator,kbd.sc-ic-loading-indicator,q.sc-ic-loading-indicator,s.sc-ic-loading-indicator,samp.sc-ic-loading-indicator,small.sc-ic-loading-indicator,strike.sc-ic-loading-indicator,strong.sc-ic-loading-indicator,sub.sc-ic-loading-indicator,sup.sc-ic-loading-indicator,tt.sc-ic-loading-indicator,var.sc-ic-loading-indicator,b.sc-ic-loading-indicator,u.sc-ic-loading-indicator,i.sc-ic-loading-indicator,center.sc-ic-loading-indicator,dl.sc-ic-loading-indicator,dt.sc-ic-loading-indicator,dd.sc-ic-loading-indicator,ol.sc-ic-loading-indicator,ul.sc-ic-loading-indicator,li.sc-ic-loading-indicator,fieldset.sc-ic-loading-indicator,form.sc-ic-loading-indicator,label.sc-ic-loading-indicator,legend.sc-ic-loading-indicator,table.sc-ic-loading-indicator,caption.sc-ic-loading-indicator,tbody.sc-ic-loading-indicator,tfoot.sc-ic-loading-indicator,thead.sc-ic-loading-indicator,tr.sc-ic-loading-indicator,th.sc-ic-loading-indicator,td.sc-ic-loading-indicator,article.sc-ic-loading-indicator,aside.sc-ic-loading-indicator,canvas.sc-ic-loading-indicator,details.sc-ic-loading-indicator,embed.sc-ic-loading-indicator,figure.sc-ic-loading-indicator,figcaption.sc-ic-loading-indicator,footer.sc-ic-loading-indicator,header.sc-ic-loading-indicator,hgroup.sc-ic-loading-indicator,menu.sc-ic-loading-indicator,nav.sc-ic-loading-indicator,output.sc-ic-loading-indicator,ruby.sc-ic-loading-indicator,section.sc-ic-loading-indicator,summary.sc-ic-loading-indicator,time.sc-ic-loading-indicator,mark.sc-ic-loading-indicator,audio.sc-ic-loading-indicator,video.sc-ic-loading-indicator{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-loading-indicator-h{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-action-default);--outer-color:var(--ic-architectural-100);--label-color:var(--ic-color-primary-text);--margin:none;--linear-line-height:var(--ic-space-xs)}/*!@:host(.light)*/.light.sc-ic-loading-indicator-h{--inner-color:var(--ic-architectural-white);--outer-color:var(--ic-architectural-800);--label-color:var(--ic-architectural-white)}/*!@.ic-loading-container*/.ic-loading-container.sc-ic-loading-indicator{display:flex;flex-direction:column;justify-content:center;align-items:center}/*!@:host([size=\"small\"])*/[size=\"small\"].sc-ic-loading-indicator-h{--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}/*!@:host([size=\"default\"])*/[size=\"default\"].sc-ic-loading-indicator-h{--circular-diameter:5rem}/*!@:host([size=\"large\"])*/[size=\"large\"].sc-ic-loading-indicator-h{--circular-diameter:7.5rem}/*!@:host([size=\"icon\"])*/[size=\"icon\"].sc-ic-loading-indicator-h{display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}/*!@:host(.label)*/.label.sc-ic-loading-indicator-h{--margin:0 0 var(--ic-space-xs) 0}/*!@.ic-loading-label*/.ic-loading-label.sc-ic-loading-indicator{white-space:nowrap;color:var(--label-color);margin-left:var(--label-margin-left)}/*!@.ic-loading-circular-outer*/.ic-loading-circular-outer.sc-ic-loading-indicator{height:var(--circular-diameter);width:var(--circular-diameter)}/*!@.ic-loading-circular-outer.indeterminate*/.ic-loading-circular-outer.indeterminate.sc-ic-loading-indicator{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}/*!@.ic-loading-circular-outer,\n.ic-loading-linear-outer*/.ic-loading-circular-outer.sc-ic-loading-indicator,.ic-loading-linear-outer.sc-ic-loading-indicator{margin:var(--margin)}/*!@.ic-loading-linear-outer*/.ic-loading-linear-outer.sc-ic-loading-indicator{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}/*!@.ic-loading-linear-inner*/.ic-loading-linear-inner.sc-ic-loading-indicator{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}/*!@.indeterminate > .ic-loading-linear-inner*/.indeterminate.sc-ic-loading-indicator>.ic-loading-linear-inner.sc-ic-loading-indicator{animation:linear-animation 2s infinite}/*!@.determinate > .ic-loading-linear-inner*/.determinate.sc-ic-loading-indicator>.ic-loading-linear-inner.sc-ic-loading-indicator{transition:width 0.5s;width:var(--linear-width)}/*!@:host(.full-width)*/.full-width.sc-ic-loading-indicator-h{--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}/*!@.ic-loading-circular-svg*/.ic-loading-circular-svg.sc-ic-loading-indicator{position:relative;width:100%;height:100%;transform:rotate(-90deg)}/*!@.ic-loading-circular-svg circle*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}/*!@.ic-loading-circular-svg circle:nth-child(2)*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}/*!@:host(.inner-label) .ic-loading-circular-inner*/.inner-label.sc-ic-loading-indicator-h .ic-loading-circular-inner.sc-ic-loading-indicator{display:grid}/*!@:host(.inner-label) .ic-loading-circular-svg,\n.inner-text*/.inner-label.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator,.inner-text.sc-ic-loading-indicator{grid-column:1;grid-row:1}/*!@:host(.not-required.compact-step-progress-indicator)\n .ic-loading-circular-svg\n circle:nth-child(2)*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:var(--ic-architectural-300)}/*!@.inner-text*/.inner-text.sc-ic-loading-indicator{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;color:var(--compact-step-inner-color, var(--ic-status-info))}/*!@:host(.not-required.compact-step-progress-indicator) .inner-text*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .inner-text.sc-ic-loading-indicator{color:var(--ic-color-tertiary-text)}/*!@:host(.light.not-required.compact-step-progress-indicator) .inner-text*/.light.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .inner-text.sc-ic-loading-indicator{color:var(--ic-architectural-400)}@media (forced-colors: active){/*!@.indeterminate > .ic-loading-circular-inner*/.indeterminate.sc-ic-loading-indicator>.ic-loading-circular-inner.sc-ic-loading-indicator{forced-color-adjust:none}/*!@.ic-loading-linear-outer*/.ic-loading-linear-outer.sc-ic-loading-indicator{border:var(--ic-hc-border)}/*!@.ic-loading-linear-inner*/.ic-loading-linear-inner.sc-ic-loading-indicator{background-color:canvastext}/*!@.ic-loading-circular-svg circle*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator{stroke:Background}/*!@.ic-loading-circular-svg circle:nth-child(2)*/.ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:canvastext}/*!@:host(.not-required.compact-step-progress-indicator)\n .ic-loading-circular-svg\n circle:nth-child(2)*/.not-required.compact-step-progress-indicator.sc-ic-loading-indicator-h .ic-loading-circular-svg.sc-ic-loading-indicator circle.sc-ic-loading-indicator:nth-child(2){stroke:GrayText}}";
|
14331
14496
|
|
14332
14497
|
class LoadingIndicator {
|
14333
14498
|
constructor(hostRef) {
|
@@ -16707,7 +16872,7 @@ class Menu$1 {
|
|
16707
16872
|
this.scrollToSelected = (menu) => {
|
16708
16873
|
const selectedOption = this.selectOnEnter
|
16709
16874
|
? this.host.querySelector(`li[data-value="${this.optionHighlighted}"]`)
|
16710
|
-
: menu.querySelector(".option[aria-selected]");
|
16875
|
+
: menu.querySelector(".option[aria-selected='true']");
|
16711
16876
|
if (selectedOption) {
|
16712
16877
|
const elTop = selectedOption.offsetTop + selectedOption.offsetHeight;
|
16713
16878
|
if (elTop > menu.scrollTop + menu.offsetHeight ||
|
@@ -16769,7 +16934,7 @@ class Menu$1 {
|
|
16769
16934
|
option[this.valueField] === optionHighlighted) &&
|
16770
16935
|
keyboardNav
|
16771
16936
|
? "0"
|
16772
|
-
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option[this.valueField] === value
|
16937
|
+
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": `${option[this.valueField] === value}`, "aria-disabled": option.disabled ? "true" : "false", onClick: !option.timedOut && !option.loading && this.handleOptionClick, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option[this.valueField], "data-label": option[this.labelField] }, option.timedOut ? (hAsync(Fragment, null, hAsync("div", { class: "loading-error-info" }, hAsync("svg", { class: "error-icon-svg", "aria-labelledby": "error-title", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#000000" }, hAsync("title", { id: "error-title" }, "Error"), hAsync("g", { id: "close-octagon" }, hAsync("path", { id: "Vector", d: "M8.77 3L3.5 8.27V15.73L8.77 21H16.23L21.5 15.73V8.27L16.23 3M8.91 7L12.5 10.59L16.09 7L17.5 8.41L13.91 12L17.5 15.59L16.09 17L12.5 13.41L8.91 17L7.5 15.59L11.09 12L7.5 8.41" }))), hAsync("ic-typography", { variant: "label" }, option[this.labelField])), hAsync("ic-button", { size: "small", variant: "tertiary", onClick: this.handleRetry, onKeyDown: this.handleRetryKeyDown, onBlur: this.handleTimeoutBlur, id: "retry-button" }, "Retry"))) : (this.optionContent(option))));
|
16773
16938
|
};
|
16774
16939
|
this.focusFromSearchKeypress = false;
|
16775
16940
|
this.initialOptionsListRender = false;
|
@@ -18836,9 +19001,12 @@ class Menu {
|
|
18836
19001
|
this.isMultiSelect = false;
|
18837
19002
|
this.isSearchBar = false;
|
18838
19003
|
this.isSearchableSelect = false;
|
19004
|
+
this.lastOptionSelected = null; // Index of last option selected
|
19005
|
+
this.lastOptionFocused = null; // Index of last option focused
|
18839
19006
|
this.multiOptionClicked = null;
|
18840
19007
|
this.preventClickOpen = false; // Prevents menu re-opening immediately after it is closed on blur when clicking input.
|
18841
19008
|
this.preventMenuFocus = false; // (When multiple) ensures focus moves straight to select all button from menu.
|
19009
|
+
this.shiftPressed = false;
|
18842
19010
|
this.ungroupedOptions = [];
|
18843
19011
|
this.handleClearListener = () => {
|
18844
19012
|
this.optionHighlighted = "";
|
@@ -18958,7 +19126,6 @@ class Menu {
|
|
18958
19126
|
}
|
18959
19127
|
else {
|
18960
19128
|
this.setInputValue(highlightedOptionIndex);
|
18961
|
-
this.value = options[highlightedOptionIndex][this.valueField];
|
18962
19129
|
}
|
18963
19130
|
}
|
18964
19131
|
}
|
@@ -18971,16 +19138,38 @@ class Menu {
|
|
18971
19138
|
this.handleMenuChange(true);
|
18972
19139
|
}
|
18973
19140
|
};
|
19141
|
+
// Check if option is selected based on the index of the option
|
19142
|
+
this.isOptionSelected = (index) => {
|
19143
|
+
const menuOptions = this.getMenuOptions();
|
19144
|
+
return this.value
|
19145
|
+
? this.value.includes(menuOptions[index][this.valueField])
|
19146
|
+
: false;
|
19147
|
+
};
|
19148
|
+
// Deselect currently selected options when shift pressed, but keep certain options selected
|
19149
|
+
this.deselectSelectedOptions = (optionsToKeepSelected) => {
|
19150
|
+
const menuOptions = this.getMenuOptions();
|
19151
|
+
if (this.value) {
|
19152
|
+
const selectedOptionIndexes = this.value.map((value) => {
|
19153
|
+
return menuOptions.findIndex((option) => option[this.valueField] === value);
|
19154
|
+
});
|
19155
|
+
// Call setInputValue (which toggles the selected state) on options that need to be deselected
|
19156
|
+
selectedOptionIndexes.forEach((index) => !optionsToKeepSelected.includes(index) && this.setInputValue(index));
|
19157
|
+
}
|
19158
|
+
};
|
18974
19159
|
// Determines keyboard behaviour when selection is manual (i.e. when you have to press Enter to select an option)
|
18975
19160
|
this.manualSetInputValueKeyboardOpen = (event) => {
|
18976
19161
|
const menuOptions = this.getMenuOptions();
|
18977
|
-
|
18978
|
-
|
19162
|
+
// Prevent focus disappearing on currently focused option when Shift / Cmd / Ctrl pressed
|
19163
|
+
// (i.e. when user is likely in the middle of executing a keyboard combination to select options)
|
19164
|
+
if (!(event.shiftKey || event.metaKey || event.ctrlKey)) {
|
19165
|
+
this.keyboardNav = false;
|
19166
|
+
}
|
19167
|
+
const highlightedOptionIndex = this.getOptionHighlightedIndex();
|
18979
19168
|
const clickedMultiOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === this.multiOptionClicked);
|
18980
19169
|
const getOptionId = (index) => { var _a; return (_a = Array.from(this.el.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
18981
19170
|
// Space press should be equivalent to Enter when multi-select
|
18982
19171
|
if (event.key === " " && this.isMultiSelect) {
|
18983
|
-
this.
|
19172
|
+
this.handleOptionSelect(event, highlightedOptionIndex);
|
18984
19173
|
}
|
18985
19174
|
else {
|
18986
19175
|
switch (event.key) {
|
@@ -18993,18 +19182,32 @@ class Menu {
|
|
18993
19182
|
this.setHighlightedOption(clickedMultiOptionIndex);
|
18994
19183
|
this.multiOptionClicked = null;
|
18995
19184
|
}
|
18996
|
-
else if (highlightedOptionIndex < menuOptions.length - 1) {
|
18997
|
-
this.setHighlightedOption(highlightedOptionIndex + 1);
|
18998
|
-
this.menuOptionId.emit({
|
18999
|
-
optionId: getOptionId(highlightedOptionIndex + 1),
|
19000
|
-
});
|
19001
|
-
}
|
19002
19185
|
else {
|
19003
|
-
this.
|
19004
|
-
|
19005
|
-
|
19006
|
-
|
19186
|
+
this.handleSingleShiftSelect(event, highlightedOptionIndex, menuOptions);
|
19187
|
+
if (highlightedOptionIndex < menuOptions.length - 1) {
|
19188
|
+
this.setHighlightedOption(highlightedOptionIndex + 1);
|
19189
|
+
this.menuOptionId.emit({
|
19190
|
+
optionId: getOptionId(highlightedOptionIndex + 1),
|
19191
|
+
});
|
19192
|
+
this.handleSingleShiftSelect(event, highlightedOptionIndex + 1, menuOptions);
|
19193
|
+
}
|
19194
|
+
else {
|
19195
|
+
this.setHighlightedOption(0);
|
19196
|
+
this.menuOptionId.emit({
|
19197
|
+
optionId: getOptionId(0),
|
19198
|
+
});
|
19199
|
+
this.handleSingleShiftSelect(event, 0, menuOptions);
|
19200
|
+
}
|
19201
|
+
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
19202
|
+
if (this.isMultiSelect && this.shiftPressed) {
|
19203
|
+
this.deselectSelectedOptions([
|
19204
|
+
highlightedOptionIndex,
|
19205
|
+
this.getOptionHighlightedIndex(),
|
19206
|
+
]);
|
19207
|
+
this.shiftPressed = false;
|
19208
|
+
}
|
19007
19209
|
}
|
19210
|
+
this.lastOptionFocused = this.getOptionHighlightedIndex();
|
19008
19211
|
this.preventIncorrectTabOrder = false;
|
19009
19212
|
this.focusFromSearchKeypress = false;
|
19010
19213
|
break;
|
@@ -19017,40 +19220,68 @@ class Menu {
|
|
19017
19220
|
this.setHighlightedOption(clickedMultiOptionIndex);
|
19018
19221
|
this.multiOptionClicked = null;
|
19019
19222
|
}
|
19020
|
-
else if (highlightedOptionIndex <= 0 ||
|
19021
|
-
highlightedOptionIndex > menuOptions.length + 1) {
|
19022
|
-
this.setHighlightedOption(menuOptions.length - 1);
|
19023
|
-
this.menuOptionId.emit({
|
19024
|
-
optionId: getOptionId(menuOptions.length - 1),
|
19025
|
-
});
|
19026
|
-
}
|
19027
19223
|
else {
|
19028
|
-
this.
|
19029
|
-
|
19030
|
-
|
19031
|
-
|
19224
|
+
this.handleSingleShiftSelect(event, highlightedOptionIndex, menuOptions);
|
19225
|
+
if (highlightedOptionIndex <= 0 ||
|
19226
|
+
highlightedOptionIndex > menuOptions.length + 1) {
|
19227
|
+
this.setHighlightedOption(menuOptions.length - 1);
|
19228
|
+
this.menuOptionId.emit({
|
19229
|
+
optionId: getOptionId(menuOptions.length - 1),
|
19230
|
+
});
|
19231
|
+
this.handleSingleShiftSelect(event, menuOptions.length - 1, menuOptions);
|
19232
|
+
}
|
19233
|
+
else {
|
19234
|
+
this.setHighlightedOption(highlightedOptionIndex - 1);
|
19235
|
+
this.menuOptionId.emit({
|
19236
|
+
optionId: getOptionId(highlightedOptionIndex - 1),
|
19237
|
+
});
|
19238
|
+
this.handleSingleShiftSelect(event, highlightedOptionIndex - 1, menuOptions);
|
19239
|
+
}
|
19240
|
+
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
19241
|
+
if (this.isMultiSelect && this.shiftPressed) {
|
19242
|
+
this.deselectSelectedOptions([
|
19243
|
+
highlightedOptionIndex,
|
19244
|
+
this.getOptionHighlightedIndex(),
|
19245
|
+
]);
|
19246
|
+
this.shiftPressed = false;
|
19247
|
+
}
|
19032
19248
|
}
|
19249
|
+
this.lastOptionFocused = this.getOptionHighlightedIndex();
|
19033
19250
|
this.preventIncorrectTabOrder = false;
|
19034
19251
|
this.focusFromSearchKeypress = false;
|
19035
19252
|
break;
|
19036
|
-
case "Home":
|
19253
|
+
case "Home": {
|
19254
|
+
const startOptionIndex = 0;
|
19037
19255
|
this.keyboardNav = true;
|
19038
19256
|
event.preventDefault();
|
19039
19257
|
this.arrowBehaviour(event);
|
19040
|
-
this.setHighlightedOption(
|
19258
|
+
this.setHighlightedOption(startOptionIndex);
|
19041
19259
|
this.menuOptionId.emit({
|
19042
|
-
optionId: getOptionId(
|
19260
|
+
optionId: getOptionId(startOptionIndex),
|
19043
19261
|
});
|
19262
|
+
if (event.shiftKey && event.ctrlKey) {
|
19263
|
+
this.handleMultipleShiftSelect(startOptionIndex);
|
19264
|
+
}
|
19265
|
+
this.lastOptionFocused = startOptionIndex;
|
19266
|
+
this.lastOptionSelected = startOptionIndex;
|
19044
19267
|
break;
|
19045
|
-
|
19268
|
+
}
|
19269
|
+
case "End": {
|
19270
|
+
const endOptionIndex = menuOptions.length - 1;
|
19046
19271
|
this.keyboardNav = true;
|
19047
19272
|
event.preventDefault();
|
19048
19273
|
this.arrowBehaviour(event);
|
19049
|
-
this.setHighlightedOption(
|
19274
|
+
this.setHighlightedOption(endOptionIndex);
|
19050
19275
|
this.menuOptionId.emit({
|
19051
|
-
optionId: getOptionId(
|
19276
|
+
optionId: getOptionId(endOptionIndex),
|
19052
19277
|
});
|
19278
|
+
if (event.shiftKey && event.ctrlKey) {
|
19279
|
+
this.handleMultipleShiftSelect(endOptionIndex);
|
19280
|
+
}
|
19281
|
+
this.lastOptionFocused = endOptionIndex;
|
19282
|
+
this.lastOptionSelected = endOptionIndex;
|
19053
19283
|
break;
|
19284
|
+
}
|
19054
19285
|
case " ":
|
19055
19286
|
if (this.isSearchBar || this.isSearchableSelect) {
|
19056
19287
|
break;
|
@@ -19063,7 +19294,7 @@ class Menu {
|
|
19063
19294
|
break;
|
19064
19295
|
case "Enter":
|
19065
19296
|
event.preventDefault();
|
19066
|
-
this.
|
19297
|
+
this.handleOptionSelect(event, highlightedOptionIndex);
|
19067
19298
|
break;
|
19068
19299
|
case "Escape":
|
19069
19300
|
if (this.open) {
|
@@ -19078,10 +19309,15 @@ class Menu {
|
|
19078
19309
|
if ((isMacDevice() && event.metaKey) ||
|
19079
19310
|
(!isMacDevice() && event.ctrlKey)) {
|
19080
19311
|
this.emitSelectAll();
|
19312
|
+
this.lastOptionFocused = null;
|
19313
|
+
this.lastOptionSelected = null;
|
19081
19314
|
}
|
19082
19315
|
break;
|
19083
19316
|
case "Shift":
|
19084
19317
|
case "Tab":
|
19318
|
+
if (event.key === "Shift") {
|
19319
|
+
this.shiftPressed = true;
|
19320
|
+
}
|
19085
19321
|
if (this.isSearchBar) {
|
19086
19322
|
this.keyboardNav = true;
|
19087
19323
|
}
|
@@ -19147,14 +19383,17 @@ class Menu {
|
|
19147
19383
|
};
|
19148
19384
|
this.handleOptionClick = (event) => {
|
19149
19385
|
const { value, label } = event.target.dataset;
|
19150
|
-
this.menuOptionSelect.emit({ value, label });
|
19151
|
-
this.optionHighlighted = undefined;
|
19152
19386
|
if (this.isMultiSelect) {
|
19387
|
+
const menuOptions = this.getMenuOptions();
|
19388
|
+
const selectedOptionIndex = menuOptions.findIndex((option) => option.value === value);
|
19389
|
+
this.handleOptionSelect(event, selectedOptionIndex, true);
|
19153
19390
|
this.multiOptionClicked = value;
|
19154
19391
|
}
|
19155
19392
|
else {
|
19393
|
+
this.menuOptionSelect.emit({ value, label });
|
19156
19394
|
this.handleMenuChange(false);
|
19157
19395
|
}
|
19396
|
+
this.optionHighlighted = undefined;
|
19158
19397
|
};
|
19159
19398
|
this.handleRetry = () => {
|
19160
19399
|
this.retryButtonClicked.emit({ value: this.value });
|
@@ -19174,12 +19413,16 @@ class Menu {
|
|
19174
19413
|
event.relatedTarget === this.selectAllButton)) {
|
19175
19414
|
this.handleMenuChange(false, this.hasPreviouslyBlurred);
|
19176
19415
|
this.menu.removeAttribute(this.activeDescendantAttr);
|
19416
|
+
this.lastOptionFocused = null;
|
19417
|
+
this.lastOptionSelected = null;
|
19177
19418
|
}
|
19178
19419
|
}
|
19179
19420
|
else {
|
19180
19421
|
this.handleMenuChange(false);
|
19181
19422
|
this.preventClickOpen = true;
|
19182
19423
|
this.menu.removeAttribute(this.activeDescendantAttr);
|
19424
|
+
this.lastOptionFocused = null;
|
19425
|
+
this.lastOptionSelected = null;
|
19183
19426
|
}
|
19184
19427
|
if (!this.isSearchBar)
|
19185
19428
|
this.hasPreviouslyBlurred = !!event.relatedTarget;
|
@@ -19203,11 +19446,16 @@ class Menu {
|
|
19203
19446
|
this.disabledOptionSelected = false;
|
19204
19447
|
event.stopImmediatePropagation();
|
19205
19448
|
}
|
19449
|
+
if (event.key === "Shift") {
|
19450
|
+
this.shiftPressed = false;
|
19451
|
+
}
|
19206
19452
|
};
|
19207
19453
|
this.handleSelectAllClick = () => {
|
19208
19454
|
this.keyboardNav = false;
|
19209
19455
|
this.menu.focus();
|
19210
19456
|
this.emitSelectAll();
|
19457
|
+
this.lastOptionFocused = null;
|
19458
|
+
this.lastOptionSelected = null;
|
19211
19459
|
};
|
19212
19460
|
this.handleSelectAllBlur = (event) => {
|
19213
19461
|
this.el.classList.remove("select-all-focused");
|
@@ -19217,11 +19465,65 @@ class Menu {
|
|
19217
19465
|
};
|
19218
19466
|
this.handleSelectAllFocus = () => {
|
19219
19467
|
this.el.classList.add("select-all-focused");
|
19468
|
+
this.lastOptionFocused = null;
|
19469
|
+
this.lastOptionSelected = null;
|
19220
19470
|
};
|
19221
19471
|
// Fix for Safari - select all button click was causing menu to close
|
19222
19472
|
this.handleSelectAllMouseDown = (event) => {
|
19223
19473
|
event.preventDefault();
|
19224
19474
|
};
|
19475
|
+
// When shift key is being used to select contiguous options one by one on a multi-select
|
19476
|
+
// I.e. holding shift and pressing up and down arrow keys
|
19477
|
+
this.handleSingleShiftSelect = (event, optionToSelectIndex, options) => {
|
19478
|
+
if (this.isMultiSelect &&
|
19479
|
+
event.shiftKey &&
|
19480
|
+
!this.isOptionSelected(optionToSelectIndex)) {
|
19481
|
+
this.selectHighlightedOption(event.target, options, optionToSelectIndex);
|
19482
|
+
this.lastOptionSelected = optionToSelectIndex;
|
19483
|
+
}
|
19484
|
+
};
|
19485
|
+
// When shift key is being used to select multiple options at once on a multi-select
|
19486
|
+
// I.e. holding shift when selecting another option
|
19487
|
+
this.handleMultipleShiftSelect = (lastOptionInSelection, useFocusForSelection = false, firstOptionSelected = null) => {
|
19488
|
+
this.shiftPressed = false;
|
19489
|
+
const firstOptionInSelection = firstOptionSelected === null
|
19490
|
+
? this.getFirstOptionInSelection(useFocusForSelection)
|
19491
|
+
: firstOptionSelected;
|
19492
|
+
if (firstOptionInSelection !== null) {
|
19493
|
+
const optionsToSelect = [];
|
19494
|
+
if (firstOptionInSelection < lastOptionInSelection) {
|
19495
|
+
for (let i = firstOptionInSelection; i < lastOptionInSelection + 1; i++) {
|
19496
|
+
optionsToSelect.push(i);
|
19497
|
+
}
|
19498
|
+
}
|
19499
|
+
else {
|
19500
|
+
for (let i = firstOptionInSelection; i > lastOptionInSelection - 1; i--) {
|
19501
|
+
optionsToSelect.push(i);
|
19502
|
+
}
|
19503
|
+
}
|
19504
|
+
optionsToSelect.forEach((optionIndex) => !this.isOptionSelected(optionIndex) && this.setInputValue(optionIndex));
|
19505
|
+
this.deselectSelectedOptions(optionsToSelect);
|
19506
|
+
}
|
19507
|
+
};
|
19508
|
+
this.handleOptionSelect = (event, optionIndex, useFocusForSelection = false) => {
|
19509
|
+
const menuOptions = this.getMenuOptions();
|
19510
|
+
const firstOptionInSelection = this.getFirstOptionInSelection(useFocusForSelection);
|
19511
|
+
if (event.shiftKey && firstOptionInSelection !== null) {
|
19512
|
+
this.handleMultipleShiftSelect(optionIndex, useFocusForSelection, firstOptionInSelection);
|
19513
|
+
}
|
19514
|
+
else {
|
19515
|
+
this.selectHighlightedOption(event.target, menuOptions, optionIndex);
|
19516
|
+
}
|
19517
|
+
this.lastOptionFocused = optionIndex;
|
19518
|
+
this.lastOptionSelected = optionIndex;
|
19519
|
+
};
|
19520
|
+
this.getFirstOptionInSelection = (useFocusForSelection) => {
|
19521
|
+
return useFocusForSelection && this.lastOptionFocused !== null
|
19522
|
+
? this.lastOptionFocused
|
19523
|
+
: this.lastOptionSelected !== null
|
19524
|
+
? this.lastOptionSelected
|
19525
|
+
: null;
|
19526
|
+
};
|
19225
19527
|
this.emitSelectAll = () => {
|
19226
19528
|
var _a;
|
19227
19529
|
// Select all if there is either no value or not all options are selected
|
@@ -19320,6 +19622,10 @@ class Menu {
|
|
19320
19622
|
}
|
19321
19623
|
return sorted;
|
19322
19624
|
};
|
19625
|
+
this.getOptionHighlightedIndex = () => {
|
19626
|
+
const menuOptions = this.getMenuOptions();
|
19627
|
+
return menuOptions.findIndex((option) => option[this.valueField] === this.optionHighlighted);
|
19628
|
+
};
|
19323
19629
|
this.isManualMode = this.activationType === "manual";
|
19324
19630
|
this.scrollToSelected = (menu) => {
|
19325
19631
|
const selectedOption = this.selectOnEnter
|
@@ -19625,7 +19931,7 @@ class Menu {
|
|
19625
19931
|
"size": [1],
|
19626
19932
|
"small": [4],
|
19627
19933
|
"options": [16],
|
19628
|
-
"value": [
|
19934
|
+
"value": [1],
|
19629
19935
|
"valueField": [1, "value-field"],
|
19630
19936
|
"focusFromSearchKeypress": [32],
|
19631
19937
|
"initialOptionsListRender": [32],
|
@@ -19712,7 +20018,7 @@ class MenuItem {
|
|
19712
20018
|
if (this.el.classList.contains("ic-popover-submenu-back-button")) {
|
19713
20019
|
ariaLabel = "Go back to parent menu";
|
19714
20020
|
}
|
19715
|
-
const parentEl =
|
20021
|
+
const parentEl = this.el.parentElement;
|
19716
20022
|
if (parentEl.tagName === "IC-MENU-GROUP" &&
|
19717
20023
|
parentEl.label) {
|
19718
20024
|
return `${ariaLabel}, ${parentEl.label} menu group`;
|
@@ -19767,7 +20073,7 @@ class MenuItem {
|
|
19767
20073
|
? "menu"
|
19768
20074
|
: false, ariaOwnsId: isPropDefined(this.submenuTriggerFor)
|
19769
20075
|
? `ic-popover-submenu-${this.submenuTriggerFor}`
|
19770
|
-
: false }, hAsync("div", { class: "focus-border" }, isSlotUsed(this.el, "icon") && (hAsync("span", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync(MenuItemInformation, null), this.variant === "toggle" && (hAsync("span", { class: {
|
20076
|
+
: false }, hAsync("div", { class: "focus-border" }, isSlotUsed$1(this.el, "icon") && (hAsync("span", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync(MenuItemInformation, null), this.variant === "toggle" && (hAsync("span", { class: {
|
19771
20077
|
["check-icon"]: true,
|
19772
20078
|
["hide"]: !this.toggleChecked,
|
19773
20079
|
}, "aria-hidden": "true", innerHTML: checkIcon })), isPropDefined(this.submenuTriggerFor) && (hAsync("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: chevronIcon })))))));
|
@@ -19800,6 +20106,7 @@ class MenuItem {
|
|
19800
20106
|
|
19801
20107
|
const icNavigationButtonCss = "/*!@html*/html.sc-ic-navigation-button{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-navigation-button{margin:0}/*!@main*/main.sc-ic-navigation-button{display:block}/*!@h1*/h1.sc-ic-navigation-button{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-navigation-button{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-navigation-button{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-navigation-button{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-navigation-button{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-navigation-button,strong.sc-ic-navigation-button{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-navigation-button,kbd.sc-ic-navigation-button,samp.sc-ic-navigation-button{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-navigation-button{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-navigation-button,sup.sc-ic-navigation-button{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-navigation-button{bottom:-0.25em}/*!@sup*/sup.sc-ic-navigation-button{top:-0.5em}/*!@img*/img.sc-ic-navigation-button{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-navigation-button,input.sc-ic-navigation-button,optgroup.sc-ic-navigation-button,select.sc-ic-navigation-button,textarea.sc-ic-navigation-button{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-navigation-button,input.sc-ic-navigation-button{overflow:visible}/*!@button,\nselect*/button.sc-ic-navigation-button,select.sc-ic-navigation-button{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-navigation-button,[type=\"button\"].sc-ic-navigation-button,[type=\"reset\"].sc-ic-navigation-button,[type=\"submit\"].sc-ic-navigation-button{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-navigation-button::-moz-focus-inner,[type=\"button\"].sc-ic-navigation-button::-moz-focus-inner,[type=\"reset\"].sc-ic-navigation-button::-moz-focus-inner,[type=\"submit\"].sc-ic-navigation-button::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-navigation-button:-moz-focusring,[type=\"button\"].sc-ic-navigation-button:-moz-focusring,[type=\"reset\"].sc-ic-navigation-button:-moz-focusring,[type=\"submit\"].sc-ic-navigation-button:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-navigation-button{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-navigation-button{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-navigation-button{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-navigation-button{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-navigation-button,[type=\"radio\"].sc-ic-navigation-button{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-navigation-button::-webkit-inner-spin-button,[type=\"number\"].sc-ic-navigation-button::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-navigation-button{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-navigation-button::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-navigation-button::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-navigation-button{display:block}/*!@summary*/summary.sc-ic-navigation-button{display:list-item}/*!@template*/template.sc-ic-navigation-button{display:none}/*!@[hidden]*/[hidden].sc-ic-navigation-button{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-navigation-button,body.sc-ic-navigation-button,div.sc-ic-navigation-button,span.sc-ic-navigation-button,applet.sc-ic-navigation-button,object.sc-ic-navigation-button,iframe.sc-ic-navigation-button,h1.sc-ic-navigation-button,h2.sc-ic-navigation-button,h3.sc-ic-navigation-button,h4.sc-ic-navigation-button,h5.sc-ic-navigation-button,h6.sc-ic-navigation-button,p.sc-ic-navigation-button,blockquote.sc-ic-navigation-button,pre.sc-ic-navigation-button,a.sc-ic-navigation-button,abbr.sc-ic-navigation-button,acronym.sc-ic-navigation-button,address.sc-ic-navigation-button,big.sc-ic-navigation-button,cite.sc-ic-navigation-button,code.sc-ic-navigation-button,del.sc-ic-navigation-button,dfn.sc-ic-navigation-button,em.sc-ic-navigation-button,img.sc-ic-navigation-button,ins.sc-ic-navigation-button,kbd.sc-ic-navigation-button,q.sc-ic-navigation-button,s.sc-ic-navigation-button,samp.sc-ic-navigation-button,small.sc-ic-navigation-button,strike.sc-ic-navigation-button,strong.sc-ic-navigation-button,sub.sc-ic-navigation-button,sup.sc-ic-navigation-button,tt.sc-ic-navigation-button,var.sc-ic-navigation-button,b.sc-ic-navigation-button,u.sc-ic-navigation-button,i.sc-ic-navigation-button,center.sc-ic-navigation-button,dl.sc-ic-navigation-button,dt.sc-ic-navigation-button,dd.sc-ic-navigation-button,ol.sc-ic-navigation-button,ul.sc-ic-navigation-button,li.sc-ic-navigation-button,fieldset.sc-ic-navigation-button,form.sc-ic-navigation-button,label.sc-ic-navigation-button,legend.sc-ic-navigation-button,table.sc-ic-navigation-button,caption.sc-ic-navigation-button,tbody.sc-ic-navigation-button,tfoot.sc-ic-navigation-button,thead.sc-ic-navigation-button,tr.sc-ic-navigation-button,th.sc-ic-navigation-button,td.sc-ic-navigation-button,article.sc-ic-navigation-button,aside.sc-ic-navigation-button,canvas.sc-ic-navigation-button,details.sc-ic-navigation-button,embed.sc-ic-navigation-button,figure.sc-ic-navigation-button,figcaption.sc-ic-navigation-button,footer.sc-ic-navigation-button,header.sc-ic-navigation-button,hgroup.sc-ic-navigation-button,menu.sc-ic-navigation-button,nav.sc-ic-navigation-button,output.sc-ic-navigation-button,ruby.sc-ic-navigation-button,section.sc-ic-navigation-button,summary.sc-ic-navigation-button,time.sc-ic-navigation-button,mark.sc-ic-navigation-button,audio.sc-ic-navigation-button,video.sc-ic-navigation-button{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-navigation-button-h{display:block;margin-right:var(--ic-space-xs);list-style:none}/*!@:host(.in-side-menu)*/.in-side-menu.sc-ic-navigation-button-h{margin-right:0}/*!@:host::part(button)*/.sc-ic-navigation-button-h::part(button){height:100%;min-height:2.5rem}";
|
19802
20108
|
|
20109
|
+
const MUTABLE_ATTRIBUTES$2 = [...IC_INHERITED_ARIA$1, "title"];
|
19803
20110
|
/**
|
19804
20111
|
* @slot icon - Content will be placed to the left of the button label.
|
19805
20112
|
* @slot badge - Badge component overlaying the top right of the button.
|
@@ -19808,6 +20115,16 @@ class NavigationButton {
|
|
19808
20115
|
constructor(hostRef) {
|
19809
20116
|
registerInstance(this, hostRef);
|
19810
20117
|
this.inheritedAttributes = {};
|
20118
|
+
this.hostMutationObserver = null;
|
20119
|
+
// triggered when attributes of host element change
|
20120
|
+
this.hostMutationCallback = (mutationList) => {
|
20121
|
+
mutationList.forEach(({ attributeName }) => {
|
20122
|
+
if (MUTABLE_ATTRIBUTES$2.includes(attributeName)) {
|
20123
|
+
this.inheritedAttributes[attributeName] =
|
20124
|
+
this.el.getAttribute(attributeName);
|
20125
|
+
}
|
20126
|
+
});
|
20127
|
+
};
|
19811
20128
|
this.initialAppearance = getThemeForegroundColor();
|
19812
20129
|
this.mode = "navbar";
|
19813
20130
|
this.download = false;
|
@@ -19819,18 +20136,23 @@ class NavigationButton {
|
|
19819
20136
|
this.target = undefined;
|
19820
20137
|
}
|
19821
20138
|
componentWillLoad() {
|
19822
|
-
this.inheritedAttributes = inheritAttributes$1(this.el,
|
19823
|
-
...IC_INHERITED_ARIA$1,
|
19824
|
-
"title",
|
19825
|
-
]);
|
20139
|
+
this.inheritedAttributes = inheritAttributes$1(this.el, MUTABLE_ATTRIBUTES$2);
|
19826
20140
|
}
|
19827
20141
|
componentDidLoad() {
|
19828
20142
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Navigation Button");
|
20143
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
20144
|
+
this.hostMutationObserver.observe(this.el, {
|
20145
|
+
attributes: true,
|
20146
|
+
});
|
19829
20147
|
}
|
19830
20148
|
componentWillRender() {
|
19831
20149
|
const iconEl = this.el.querySelector(`[slot="icon"]`);
|
19832
20150
|
iconEl !== null && iconEl.setAttribute("viewBox", "0 0 24 24");
|
19833
20151
|
}
|
20152
|
+
disconnectedCallback() {
|
20153
|
+
var _a;
|
20154
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
20155
|
+
}
|
19834
20156
|
navBarMenuOpenHandler() {
|
19835
20157
|
this.mode = "menu";
|
19836
20158
|
}
|
@@ -19879,7 +20201,7 @@ class NavigationButton {
|
|
19879
20201
|
fullWidth,
|
19880
20202
|
disableTooltip,
|
19881
20203
|
};
|
19882
|
-
return (hAsync(Host, { class: { ["in-side-menu"]: this.mode === "menu" } }, hAsync("ic-button", Object.assign({ class: className, "aria-label": variant == "icon" ? this.label : null, ref: (el) => (this.buttonEl = el) }, buttonProps, this.inheritedAttributes), label, hAsync("slot", { slot: "left-icon", name: "icon" }), isSlotUsed(this.el, "badge") && variant === "icon" && (hAsync("slot", { name: "badge" })))));
|
20204
|
+
return (hAsync(Host, { class: { ["in-side-menu"]: this.mode === "menu" } }, hAsync("ic-button", Object.assign({ class: className, "aria-label": variant == "icon" ? this.label : null, ref: (el) => (this.buttonEl = el) }, buttonProps, this.inheritedAttributes), label, hAsync("slot", { slot: "left-icon", name: "icon" }), isSlotUsed$1(this.el, "badge") && variant === "icon" && (hAsync("slot", { name: "badge" })))));
|
19883
20205
|
}
|
19884
20206
|
static get delegatesFocus() { return true; }
|
19885
20207
|
get el() { return getElement(this); }
|
@@ -20240,7 +20562,7 @@ class NavigationItem {
|
|
20240
20562
|
this.displayDefaultNavigationItem = (href, hreflang, target, rel, referrerpolicy, download, label) => {
|
20241
20563
|
const variant = this.isTopNavChild || this.inTopNavSideMenu ? "body" : "label";
|
20242
20564
|
const ChevronIconComponent = this.expandable && (hAsync("div", { class: { svg: true }, innerHTML: chevronIcon }));
|
20243
|
-
const IconComponent = this.el.querySelector('[slot="icon"]') && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
20565
|
+
const IconComponent = this.el.querySelector('[slot="icon"]') && (hAsync("div", { class: "icon" }, hAsync("slot", { name: "icon" }), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
20244
20566
|
if (href !== "") {
|
20245
20567
|
return (hAsync("a", { href: href, target: target, rel: rel, hreflang: hreflang, referrerPolicy: referrerpolicy, download: download !== false ? download : null, class: "link", ref: (el) => (this.itemEl = el), part: "link" }, IconComponent, hAsync("ic-typography", { variant: variant }, label), hAsync("div", { class: "chevron-container" }, ChevronIconComponent), target === "_blank" && (hAsync("span", { class: "open-in-new-icon", innerHTML: OpenInNew }))));
|
20246
20568
|
}
|
@@ -20461,7 +20783,7 @@ class NavigationMenu {
|
|
20461
20783
|
}
|
20462
20784
|
componentWillLoad() {
|
20463
20785
|
this.navBarEl = document.querySelector("ic-top-navigation");
|
20464
|
-
const navigationEls = getSlotContent(this.el, "navigation");
|
20786
|
+
const navigationEls = getSlotContent$1(this.el, "navigation");
|
20465
20787
|
if (navigationEls) {
|
20466
20788
|
this.hasNavigation = true;
|
20467
20789
|
const lastEl = navigationEls[navigationEls.length - 1];
|
@@ -20473,7 +20795,7 @@ class NavigationMenu {
|
|
20473
20795
|
this.navGroupFirst = true;
|
20474
20796
|
}
|
20475
20797
|
}
|
20476
|
-
const buttonContent = getSlotContent(this.el, "buttons");
|
20798
|
+
const buttonContent = getSlotContent$1(this.el, "buttons");
|
20477
20799
|
if (buttonContent !== null) {
|
20478
20800
|
this.hasButtons = true;
|
20479
20801
|
this.lastTabStop = buttonContent[buttonContent.length - 1];
|
@@ -20482,7 +20804,7 @@ class NavigationMenu {
|
|
20482
20804
|
if (this.hasNavigation) {
|
20483
20805
|
const lastEl = navigationEls[navigationEls.length - 1];
|
20484
20806
|
//check for slotted content i.e. react router link
|
20485
|
-
const slotContent = getSlot(lastEl, "navigation-item");
|
20807
|
+
const slotContent = getSlot$1(lastEl, "navigation-item");
|
20486
20808
|
if (slotContent !== null) {
|
20487
20809
|
this.lastTabStop = slotContent;
|
20488
20810
|
}
|
@@ -20496,8 +20818,8 @@ class NavigationMenu {
|
|
20496
20818
|
this.focusCloseButton();
|
20497
20819
|
}
|
20498
20820
|
componentWillRender() {
|
20499
|
-
this.hasNavigation = isSlotUsed(this.el, "navigation");
|
20500
|
-
this.hasButtons = isSlotUsed(this.el, "buttons");
|
20821
|
+
this.hasNavigation = isSlotUsed$1(this.el, "navigation");
|
20822
|
+
this.hasButtons = isSlotUsed$1(this.el, "buttons");
|
20501
20823
|
}
|
20502
20824
|
navItemClickHandler() {
|
20503
20825
|
this.closeMenu();
|
@@ -20564,7 +20886,7 @@ class PageHeader {
|
|
20564
20886
|
registerInstance(this, hostRef);
|
20565
20887
|
this.resizeObserver = null;
|
20566
20888
|
this.resizeObserverCallback = () => {
|
20567
|
-
if (this.reverseOrder && isSlotUsed(this.el, "actions")) {
|
20889
|
+
if (this.reverseOrder && isSlotUsed$1(this.el, "actions")) {
|
20568
20890
|
this.applyReverseOrder();
|
20569
20891
|
}
|
20570
20892
|
};
|
@@ -20646,13 +20968,13 @@ class PageHeader {
|
|
20646
20968
|
["sticky-desktop"]: !sticky && stickyDesktopOnly,
|
20647
20969
|
} }, hAsync("header", { class: {
|
20648
20970
|
["border-bottom"]: border,
|
20649
|
-
["tabs"]: isSlotUsed(this.el, "tabs"),
|
20650
|
-
} }, hAsync("ic-section-container", { aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (hAsync("div", { class: "breadcrumb-area" }, hAsync("slot", { name: "breadcrumbs" }))), hAsync("div", { class: "main-content" }, hAsync("div", { class: "title-area" }, hAsync("div", { class: "header-content" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: small || size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", null, heading))), hAsync("slot", { name: "heading-adornment" })), hAsync("div", null, hAsync("slot", { name: "subheading" }, subheading && (hAsync("ic-typography", { variant: "body", class: {
|
20971
|
+
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
20972
|
+
} }, hAsync("ic-section-container", { aligned: aligned, fullHeight: isSlotUsed$1(this.el, "tabs") }, isSlotUsed$1(this.el, "breadcrumbs") && (hAsync("div", { class: "breadcrumb-area" }, hAsync("slot", { name: "breadcrumbs" }))), hAsync("div", { class: "main-content" }, hAsync("div", { class: "title-area" }, hAsync("div", { class: "header-content" }, hAsync("slot", { name: "heading" }, hAsync("ic-typography", { variant: small || size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", null, heading))), hAsync("slot", { name: "heading-adornment" })), hAsync("div", null, hAsync("slot", { name: "subheading" }, subheading && (hAsync("ic-typography", { variant: "body", class: {
|
20651
20973
|
["subheading"]: true,
|
20652
20974
|
["small"]: small || size === "small",
|
20653
|
-
} }, subheading))))), isSlotUsed(this.el, "actions") && (hAsync("div", { class: "action-area" }, hAsync("slot", { name: "actions" }))), isSlotUsed(this.el, "input") && (hAsync("div", { class: "input-area" }, hAsync("slot", { name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
20654
|
-
isSlotUsed(this.el, "tabs")) && (hAsync("div", { class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
20655
|
-
!isSlotUsed(this.el, "tabs") && hAsync("slot", { name: "stepper" }), isSlotUsed(this.el, "tabs") && (hAsync("nav", { "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", null, hAsync("ul", { class: "tabs-slot" }, hAsync("slot", { name: "tabs" })))))))))));
|
20975
|
+
} }, subheading))))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { class: "action-area" }, hAsync("slot", { name: "actions" }))), isSlotUsed$1(this.el, "input") && (hAsync("div", { class: "input-area" }, hAsync("slot", { name: "input" })))), (isSlotUsed$1(this.el, "stepper") ||
|
20976
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
20977
|
+
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { name: "stepper" }), isSlotUsed$1(this.el, "tabs") && (hAsync("nav", { "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", null, hAsync("ul", { class: "tabs-slot" }, hAsync("slot", { name: "tabs" })))))))))));
|
20656
20978
|
}
|
20657
20979
|
get el() { return getElement(this); }
|
20658
20980
|
static get style() { return icPageHeaderCss; }
|
@@ -20929,86 +21251,59 @@ class PaginationBar {
|
|
20929
21251
|
registerInstance(this, hostRef);
|
20930
21252
|
this.icPageChange = createEvent(this, "icPageChange", 7);
|
20931
21253
|
this.icItemsPerPageChange = createEvent(this, "icItemsPerPageChange", 7);
|
20932
|
-
this.PAGINATION = "ic-pagination";
|
20933
|
-
this.TEXT_FIELD = "ic-text-field";
|
20934
|
-
this.TOOLTIP = "ic-tooltip";
|
20935
21254
|
this.PAGE_INPUT_FIELD_ID = "go-to-page-input";
|
20936
21255
|
this.INVALID_PAGE_ERROR = "Please enter a valid page";
|
20937
21256
|
this.NAN_ERROR = "Please enter a number";
|
20938
21257
|
this.resizeObserver = null;
|
20939
21258
|
this.changeItemsPerPage = () => {
|
20940
|
-
|
20941
|
-
const value = select.value;
|
20942
|
-
this.itemsPerPage = value;
|
20943
|
-
this.setNumberPages();
|
20944
|
-
this.setUpperBound();
|
20945
|
-
const pagination = this.el.shadowRoot.querySelector(this.PAGINATION);
|
20946
|
-
if (this.currentPage > this.totalPages) {
|
20947
|
-
pagination.setCurrentPage(this.totalPages);
|
20948
|
-
this.currentPage = this.totalPages;
|
20949
|
-
}
|
20950
|
-
this.icItemsPerPageChange.emit({ value: Number(this.itemsPerPage) });
|
20951
|
-
this.icPageChange.emit({ value: this.currentPage });
|
21259
|
+
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
20952
21260
|
};
|
20953
21261
|
this.changePage = (page) => {
|
20954
21262
|
this.currentPage = page;
|
20955
|
-
this.lowerBound =
|
20956
|
-
page !== 1 ? (page - 1) * Number(this.itemsPerPage) + 1 : page;
|
21263
|
+
this.lowerBound = page !== 1 ? (page - 1) * this.itemsPerPage + 1 : page;
|
20957
21264
|
this.setUpperBound();
|
20958
21265
|
};
|
20959
21266
|
this.goToPage = () => {
|
20960
|
-
const input = this.
|
21267
|
+
const input = this.pageInputEl;
|
20961
21268
|
const page = Number(input.value);
|
20962
|
-
const tooltip = this.el.shadowRoot.querySelector("ic-tooltip");
|
20963
21269
|
if (page <= this.totalPages && page > 0) {
|
20964
21270
|
this.changePage(page);
|
20965
|
-
|
20966
|
-
pagination.setCurrentPage(page);
|
21271
|
+
this.paginationEl.setCurrentPage(page);
|
20967
21272
|
this.currentPage = page;
|
20968
21273
|
input.value = "";
|
20969
21274
|
this.icPageChange.emit({ value: page });
|
20970
|
-
|
21275
|
+
this.pageInputTooltipEl.displayTooltip(false, false);
|
20971
21276
|
input.validationStatus = "";
|
20972
21277
|
}
|
20973
21278
|
else {
|
20974
|
-
this.
|
20975
|
-
input.validationStatus = "error";
|
20976
|
-
input.setFocus();
|
21279
|
+
this.setInputError(input, this.INVALID_PAGE_ERROR);
|
20977
21280
|
}
|
20978
21281
|
};
|
20979
21282
|
this.handleBlur = () => {
|
20980
|
-
|
20981
|
-
const textField = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(this.TEXT_FIELD);
|
20982
|
-
const tooltip = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(this.TOOLTIP);
|
21283
|
+
const textField = this.pageInputEl;
|
20983
21284
|
if ((Number(textField.value) <= this.totalPages &&
|
20984
21285
|
Number(textField.value) > 0) ||
|
20985
21286
|
textField.value === "") {
|
20986
21287
|
textField.validationStatus = "";
|
20987
21288
|
}
|
20988
|
-
|
21289
|
+
this.pageInputTooltipEl.displayTooltip(false, false);
|
20989
21290
|
};
|
20990
21291
|
this.handleFocus = () => {
|
20991
|
-
|
20992
|
-
|
20993
|
-
const tooltip = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(this.TOOLTIP);
|
20994
|
-
if (textField.validationStatus === "error") {
|
20995
|
-
tooltip.displayTooltip(true, true);
|
21292
|
+
if (this.pageInputEl.validationStatus === "error") {
|
21293
|
+
this.pageInputTooltipEl.displayTooltip(true, true);
|
20996
21294
|
}
|
20997
21295
|
};
|
20998
21296
|
this.handleInputChange = () => {
|
20999
|
-
const
|
21000
|
-
const textField = this.el.shadowRoot.querySelector(this.TEXT_FIELD);
|
21297
|
+
const textField = this.pageInputEl;
|
21001
21298
|
const inputValue = parseInt(textField.value);
|
21002
21299
|
if (inputValue > this.totalPages || inputValue <= 0) {
|
21003
|
-
this.
|
21004
|
-
|
21005
|
-
textField.validationStatus = "error";
|
21006
|
-
textField.focus();
|
21300
|
+
this.setInputError(textField, this.INVALID_PAGE_ERROR);
|
21301
|
+
this.pageInputTooltipEl.displayTooltip(true, true);
|
21007
21302
|
}
|
21008
21303
|
};
|
21009
21304
|
this.handleKeydown = (ev) => {
|
21010
|
-
const tooltip = this.
|
21011
|
-
const textField = this.
|
21305
|
+
const tooltip = this.pageInputTooltipEl;
|
21306
|
+
const textField = this.pageInputEl;
|
21012
21307
|
if (ev.key === "Enter") {
|
21013
21308
|
if (textField.validationStatus === "error") {
|
21014
21309
|
tooltip.displayTooltip(true, true);
|
@@ -21023,23 +21318,20 @@ class PaginationBar {
|
|
21023
21318
|
}
|
21024
21319
|
};
|
21025
21320
|
this.handleKeyUp = (ev) => {
|
21026
|
-
const
|
21027
|
-
const textField = this.el.shadowRoot.querySelector(this.TEXT_FIELD);
|
21321
|
+
const textField = this.pageInputEl;
|
21028
21322
|
const inputValue = parseInt(textField.value);
|
21029
21323
|
if (Number.isNaN(inputValue) &&
|
21030
21324
|
ev.key !== "Backspace" &&
|
21031
21325
|
ev.key !== "Enter" &&
|
21032
21326
|
ev.key !== "Tab" &&
|
21033
21327
|
ev.key !== "Shift") {
|
21034
|
-
this.
|
21035
|
-
|
21036
|
-
textField.validationStatus = "error";
|
21328
|
+
this.setInputError(textField, this.NAN_ERROR, false);
|
21329
|
+
this.pageInputTooltipEl.displayTooltip(true, false);
|
21037
21330
|
}
|
21038
21331
|
};
|
21039
21332
|
this.paginationShouldWrap = () => {
|
21040
|
-
|
21041
|
-
|
21042
|
-
if (pagination.clientHeight > 63) {
|
21333
|
+
if (this.type === "simple") {
|
21334
|
+
if (this.paginationEl.clientHeight > 63) {
|
21043
21335
|
this.paginationWrapped = true;
|
21044
21336
|
}
|
21045
21337
|
else {
|
@@ -21061,24 +21353,25 @@ class PaginationBar {
|
|
21061
21353
|
});
|
21062
21354
|
this.resizeObserver.observe(this.paginationBarEl);
|
21063
21355
|
};
|
21064
|
-
this.
|
21065
|
-
this.
|
21066
|
-
|
21067
|
-
|
21068
|
-
|
21069
|
-
|
21070
|
-
|
21071
|
-
|
21072
|
-
|
21073
|
-
|
21074
|
-
|
21075
|
-
|
21076
|
-
|
21077
|
-
|
21078
|
-
|
21079
|
-
|
21080
|
-
|
21081
|
-
|
21356
|
+
this.setDisplayedItemsPerPageOptions = () => {
|
21357
|
+
if (this.itemsPerPageOptions === undefined ||
|
21358
|
+
this.itemsPerPageOptions === null) {
|
21359
|
+
this.displayedItemsPerPageOptions =
|
21360
|
+
this.totalItems <= 100
|
21361
|
+
? [
|
21362
|
+
{ label: "10", value: "10" },
|
21363
|
+
{ label: "25", value: "25" },
|
21364
|
+
{ label: "50", value: "50" },
|
21365
|
+
]
|
21366
|
+
: [
|
21367
|
+
{ label: "25", value: "25" },
|
21368
|
+
{ label: "100", value: "100" },
|
21369
|
+
{ label: "1000", value: "1000" },
|
21370
|
+
];
|
21371
|
+
}
|
21372
|
+
else {
|
21373
|
+
this.displayedItemsPerPageOptions = this.itemsPerPageOptions.slice(0, 3);
|
21374
|
+
}
|
21082
21375
|
};
|
21083
21376
|
this.setGoToPageInputStyles = () => {
|
21084
21377
|
var _a, _b;
|
@@ -21091,27 +21384,74 @@ class PaginationBar {
|
|
21091
21384
|
}
|
21092
21385
|
}
|
21093
21386
|
};
|
21387
|
+
this.setInputError = (el, error, focus = true) => {
|
21388
|
+
this.inputError = error;
|
21389
|
+
el.validationStatus = "error";
|
21390
|
+
if (focus)
|
21391
|
+
el.setFocus();
|
21392
|
+
};
|
21393
|
+
this.setItemsPerPage = (newValue) => {
|
21394
|
+
if (this.itemsPerPage !== newValue) {
|
21395
|
+
this.itemsPerPage = newValue;
|
21396
|
+
this.icItemsPerPageChange.emit({ value: this.itemsPerPage });
|
21397
|
+
}
|
21398
|
+
this.setNumberPages();
|
21399
|
+
this.setUpperBound();
|
21400
|
+
if (this.currentPage > this.totalPages) {
|
21401
|
+
this.paginationEl.setCurrentPage(this.totalPages);
|
21402
|
+
this.currentPage = this.totalPages;
|
21403
|
+
}
|
21404
|
+
this.icPageChange.emit({ value: this.currentPage });
|
21405
|
+
};
|
21094
21406
|
this.setNumberPages = () => {
|
21095
|
-
|
21407
|
+
const numItemsPerPage = this.itemsPerPage;
|
21408
|
+
if (this.totalItems <= numItemsPerPage) {
|
21409
|
+
this.totalPages = 1;
|
21410
|
+
}
|
21411
|
+
else {
|
21412
|
+
this.totalPages = Math.ceil(this.totalItems / numItemsPerPage);
|
21413
|
+
}
|
21414
|
+
};
|
21415
|
+
this.setPaginationBarContent = () => {
|
21416
|
+
this.setDisplayedItemsPerPageOptions();
|
21417
|
+
this.trimItemsPerPageOptions();
|
21418
|
+
this.updateItemsPerPage();
|
21096
21419
|
};
|
21097
21420
|
this.setUpperBound = () => {
|
21098
|
-
this.upperBound = Math.min(this.lowerBound +
|
21421
|
+
this.upperBound = Math.min(this.lowerBound + this.itemsPerPage - 1, this.totalItems);
|
21099
21422
|
};
|
21100
21423
|
this.trimItemsPerPageOptions = () => {
|
21101
|
-
this.
|
21102
|
-
this.itemsPerPageOptions.push({
|
21424
|
+
this.displayedItemsPerPageOptions.push({
|
21103
21425
|
label: "All",
|
21104
21426
|
value: String(this.totalItems),
|
21105
21427
|
});
|
21106
|
-
for (let i = 0; i < this.
|
21107
|
-
if (this.totalItems <= Number(this.
|
21108
|
-
this.
|
21428
|
+
for (let i = 0; i < this.displayedItemsPerPageOptions.length - 1; i++) {
|
21429
|
+
if (this.totalItems <= Number(this.displayedItemsPerPageOptions[i].value)) {
|
21430
|
+
this.displayedItemsPerPageOptions.splice(i, this.displayedItemsPerPageOptions.length - (i + 1));
|
21109
21431
|
}
|
21110
21432
|
}
|
21111
21433
|
};
|
21434
|
+
this.updateItemsPerPage = () => {
|
21435
|
+
let newItemsPerPage = this.itemsPerPage;
|
21436
|
+
let updated = false;
|
21437
|
+
let lastOptionValue = 0;
|
21438
|
+
for (let i = 0; i < this.displayedItemsPerPageOptions.length; i++) {
|
21439
|
+
lastOptionValue = Number(this.displayedItemsPerPageOptions[i].value);
|
21440
|
+
if (this.itemsPerPage <= lastOptionValue) {
|
21441
|
+
newItemsPerPage = lastOptionValue;
|
21442
|
+
updated = true;
|
21443
|
+
i = this.displayedItemsPerPageOptions.length;
|
21444
|
+
}
|
21445
|
+
}
|
21446
|
+
if (!updated && this.itemsPerPage > lastOptionValue) {
|
21447
|
+
newItemsPerPage = lastOptionValue;
|
21448
|
+
}
|
21449
|
+
this.setItemsPerPage(newItemsPerPage);
|
21450
|
+
};
|
21112
21451
|
this.currentPage = 1;
|
21452
|
+
this.displayedItemsPerPageOptions = undefined;
|
21113
21453
|
this.inputError = "Please enter a valid page";
|
21114
|
-
this.itemsPerPage =
|
21454
|
+
this.itemsPerPage = 0;
|
21115
21455
|
this.lowerBound = 1;
|
21116
21456
|
this.paginationWidth = undefined;
|
21117
21457
|
this.paginationWrapped = false;
|
@@ -21119,30 +21459,29 @@ class PaginationBar {
|
|
21119
21459
|
this.upperBound = undefined;
|
21120
21460
|
this.alignment = "right";
|
21121
21461
|
this.appearance = "default";
|
21122
|
-
this.
|
21462
|
+
this.rangeItemLabel = "Item";
|
21123
21463
|
this.itemsPerPageOptions = undefined;
|
21124
|
-
this.
|
21125
|
-
this.
|
21464
|
+
this.type = "simple";
|
21465
|
+
this.rangeLabelType = "page";
|
21126
21466
|
this.pageLabel = "Page";
|
21127
21467
|
this.showGoToPageControl = false;
|
21128
|
-
this.
|
21468
|
+
this.hideRangeLabel = false;
|
21129
21469
|
this.showItemsPerPageControl = false;
|
21130
21470
|
this.totalItems = undefined;
|
21131
21471
|
}
|
21472
|
+
watchItemsPerPageOptionsHandler() {
|
21473
|
+
this.setPaginationBarContent();
|
21474
|
+
}
|
21475
|
+
watchTotalItemsHandler() {
|
21476
|
+
this.setPaginationBarContent();
|
21477
|
+
}
|
21132
21478
|
disconnectedCallback() {
|
21133
21479
|
if (this.resizeObserver !== null) {
|
21134
21480
|
this.resizeObserver.disconnect();
|
21135
21481
|
}
|
21136
21482
|
}
|
21137
21483
|
componentWillLoad() {
|
21138
|
-
|
21139
|
-
this.itemsPerPageOptions === null) {
|
21140
|
-
this.setDefaultItemsPerPageOptions();
|
21141
|
-
}
|
21142
|
-
this.trimItemsPerPageOptions();
|
21143
|
-
this.setDefaultItemsPerPage();
|
21144
|
-
this.setNumberPages();
|
21145
|
-
this.setUpperBound();
|
21484
|
+
this.setPaginationBarContent();
|
21146
21485
|
}
|
21147
21486
|
componentDidLoad() {
|
21148
21487
|
this.paginationWidth = this.paginationBarEl.clientWidth;
|
@@ -21155,7 +21494,7 @@ class PaginationBar {
|
|
21155
21494
|
this.changePage(page);
|
21156
21495
|
}
|
21157
21496
|
render() {
|
21158
|
-
const { appearance, alignment,
|
21497
|
+
const { appearance, alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, } = this;
|
21159
21498
|
const focusElFromLabel = (el) => {
|
21160
21499
|
var _a;
|
21161
21500
|
(_a = this.paginationBarEl.querySelector(el)) === null || _a === void 0 ? void 0 : _a.setFocus();
|
@@ -21163,21 +21502,27 @@ class PaginationBar {
|
|
21163
21502
|
return (hAsync("div", { class: {
|
21164
21503
|
["pagination-bar"]: true,
|
21165
21504
|
[`pagination-bar-${alignment}`]: true,
|
21166
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (
|
21505
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { class: "items-per-page-holder" }, hAsync("ic-typography", { class: {
|
21167
21506
|
[`pagination-text-${appearance}`]: true,
|
21168
21507
|
["items-per-page-control-label"]: true,
|
21169
|
-
}, variant: "label", onClick: () => focusElFromLabel("ic-select") }, this.
|
21508
|
+
}, variant: "label", onClick: () => focusElFromLabel("ic-select") }, this.rangeItemLabel, "s per ", this.pageLabel.toLowerCase()), hAsync("ic-select", { small: true, label: "items-per-page-input", class: "items-per-page-input", hideLabel: true, options: displayedItemsPerPageOptions, value: this.itemsPerPage.toString(), onIcChange: () => this.changeItemsPerPage(), ref: (el) => (this.pageDropdownEl = el) }))), !hideRangeLabel && rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
21170
21509
|
[`pagination-text-${appearance}`]: true,
|
21171
21510
|
["item-pagination-label"]: true,
|
21172
|
-
}, variant: "label", "aria-live": "polite" }, this.
|
21511
|
+
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 &&
|
21512
|
+
`0 ${this.rangeItemLabel.toLowerCase()}s`, this.upperBound > 0 &&
|
21513
|
+
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${this.rangeItemLabel.toLowerCase()}${this.totalItems > 1 ? "s" : ""}`)) : (!hideRangeLabel && (hAsync("ic-typography", { class: {
|
21173
21514
|
[`pagination-text-${appearance}`]: true,
|
21174
21515
|
["page-pagination-label"]: true,
|
21175
21516
|
}, variant: "label", "aria-live": "polite" }, this.pageLabel, " ", this.currentPage, " of ", this.totalPages))))), hAsync("div", { class: {
|
21176
21517
|
["pagination-controls"]: true,
|
21177
21518
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
21178
|
-
} }, hAsync("div", { class: "pagination-holder" }, hAsync("ic-pagination", { appearance: appearance, type:
|
21519
|
+
} }, hAsync("div", { class: "pagination-holder" }, hAsync("ic-pagination", { appearance: appearance, type: type, pages: this.totalPages, ref: (el) => (this.paginationEl = el) })), showGoToPageControl && (hAsync("div", { class: "go-to-page-holder" }, hAsync("ic-typography", { class: { [`pagination-text-${appearance}`]: true }, variant: "label", onClick: () => focusElFromLabel("ic-text-field") }, "Go to ", this.pageLabel.toLowerCase()), hAsync("ic-tooltip", { label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: (ev) => this.handleKeydown(ev), onKeyUp: (ev) => this.handleKeyUp(ev), onInput: () => this.handleInputChange(), max: this.totalPages, min: "1", validationInlineInternal: true, onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { appearance: appearance, variant: "secondary", onClick: () => this.goToPage(), size: "small", class: "go-to-page-button" }, "Go"))))));
|
21179
21520
|
}
|
21180
21521
|
get el() { return getElement(this); }
|
21522
|
+
static get watchers() { return {
|
21523
|
+
"itemsPerPageOptions": ["watchItemsPerPageOptionsHandler"],
|
21524
|
+
"totalItems": ["watchTotalItemsHandler"]
|
21525
|
+
}; }
|
21181
21526
|
static get style() { return icPaginationBarCss; }
|
21182
21527
|
static get cmpMeta() { return {
|
21183
21528
|
"$flags$": 9,
|
@@ -21185,16 +21530,17 @@ class PaginationBar {
|
|
21185
21530
|
"$members$": {
|
21186
21531
|
"alignment": [1],
|
21187
21532
|
"appearance": [1],
|
21188
|
-
"
|
21189
|
-
"itemsPerPageOptions": [
|
21190
|
-
"
|
21191
|
-
"
|
21533
|
+
"rangeItemLabel": [1, "range-item-label"],
|
21534
|
+
"itemsPerPageOptions": [16],
|
21535
|
+
"type": [1],
|
21536
|
+
"rangeLabelType": [1, "range-label-type"],
|
21192
21537
|
"pageLabel": [1, "page-label"],
|
21193
21538
|
"showGoToPageControl": [4, "show-go-to-page-control"],
|
21194
|
-
"
|
21539
|
+
"hideRangeLabel": [4, "hide-range-label"],
|
21195
21540
|
"showItemsPerPageControl": [4, "show-items-per-page-control"],
|
21196
21541
|
"totalItems": [2, "total-items"],
|
21197
21542
|
"currentPage": [32],
|
21543
|
+
"displayedItemsPerPageOptions": [32],
|
21198
21544
|
"inputError": [32],
|
21199
21545
|
"itemsPerPage": [32],
|
21200
21546
|
"lowerBound": [32],
|
@@ -21209,7 +21555,7 @@ class PaginationBar {
|
|
21209
21555
|
}; }
|
21210
21556
|
}
|
21211
21557
|
|
21212
|
-
const icPaginationItemCss = "/*!@html*/html.sc-ic-pagination-item{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-pagination-item{margin:0}/*!@main*/main.sc-ic-pagination-item{display:block}/*!@h1*/h1.sc-ic-pagination-item{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-pagination-item{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-pagination-item{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-pagination-item{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-pagination-item{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-pagination-item,strong.sc-ic-pagination-item{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-pagination-item,kbd.sc-ic-pagination-item,samp.sc-ic-pagination-item{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-pagination-item{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-pagination-item,sup.sc-ic-pagination-item{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-pagination-item{bottom:-0.25em}/*!@sup*/sup.sc-ic-pagination-item{top:-0.5em}/*!@img*/img.sc-ic-pagination-item{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-pagination-item,input.sc-ic-pagination-item,optgroup.sc-ic-pagination-item,select.sc-ic-pagination-item,textarea.sc-ic-pagination-item{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-pagination-item,input.sc-ic-pagination-item{overflow:visible}/*!@button,\nselect*/button.sc-ic-pagination-item,select.sc-ic-pagination-item{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-pagination-item,[type=\"button\"].sc-ic-pagination-item,[type=\"reset\"].sc-ic-pagination-item,[type=\"submit\"].sc-ic-pagination-item{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-pagination-item::-moz-focus-inner,[type=\"button\"].sc-ic-pagination-item::-moz-focus-inner,[type=\"reset\"].sc-ic-pagination-item::-moz-focus-inner,[type=\"submit\"].sc-ic-pagination-item::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-pagination-item:-moz-focusring,[type=\"button\"].sc-ic-pagination-item:-moz-focusring,[type=\"reset\"].sc-ic-pagination-item:-moz-focusring,[type=\"submit\"].sc-ic-pagination-item:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-pagination-item{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-pagination-item{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-pagination-item{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-pagination-item{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-pagination-item,[type=\"radio\"].sc-ic-pagination-item{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-pagination-item::-webkit-inner-spin-button,[type=\"number\"].sc-ic-pagination-item::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-pagination-item{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-pagination-item::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-pagination-item::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-pagination-item{display:block}/*!@summary*/summary.sc-ic-pagination-item{display:list-item}/*!@template*/template.sc-ic-pagination-item{display:none}/*!@[hidden]*/[hidden].sc-ic-pagination-item{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-pagination-item,body.sc-ic-pagination-item,div.sc-ic-pagination-item,span.sc-ic-pagination-item,applet.sc-ic-pagination-item,object.sc-ic-pagination-item,iframe.sc-ic-pagination-item,h1.sc-ic-pagination-item,h2.sc-ic-pagination-item,h3.sc-ic-pagination-item,h4.sc-ic-pagination-item,h5.sc-ic-pagination-item,h6.sc-ic-pagination-item,p.sc-ic-pagination-item,blockquote.sc-ic-pagination-item,pre.sc-ic-pagination-item,a.sc-ic-pagination-item,abbr.sc-ic-pagination-item,acronym.sc-ic-pagination-item,address.sc-ic-pagination-item,big.sc-ic-pagination-item,cite.sc-ic-pagination-item,code.sc-ic-pagination-item,del.sc-ic-pagination-item,dfn.sc-ic-pagination-item,em.sc-ic-pagination-item,img.sc-ic-pagination-item,ins.sc-ic-pagination-item,kbd.sc-ic-pagination-item,q.sc-ic-pagination-item,s.sc-ic-pagination-item,samp.sc-ic-pagination-item,small.sc-ic-pagination-item,strike.sc-ic-pagination-item,strong.sc-ic-pagination-item,sub.sc-ic-pagination-item,sup.sc-ic-pagination-item,tt.sc-ic-pagination-item,var.sc-ic-pagination-item,b.sc-ic-pagination-item,u.sc-ic-pagination-item,i.sc-ic-pagination-item,center.sc-ic-pagination-item,dl.sc-ic-pagination-item,dt.sc-ic-pagination-item,dd.sc-ic-pagination-item,ol.sc-ic-pagination-item,ul.sc-ic-pagination-item,li.sc-ic-pagination-item,fieldset.sc-ic-pagination-item,form.sc-ic-pagination-item,label.sc-ic-pagination-item,legend.sc-ic-pagination-item,table.sc-ic-pagination-item,caption.sc-ic-pagination-item,tbody.sc-ic-pagination-item,tfoot.sc-ic-pagination-item,thead.sc-ic-pagination-item,tr.sc-ic-pagination-item,th.sc-ic-pagination-item,td.sc-ic-pagination-item,article.sc-ic-pagination-item,aside.sc-ic-pagination-item,canvas.sc-ic-pagination-item,details.sc-ic-pagination-item,embed.sc-ic-pagination-item,figure.sc-ic-pagination-item,figcaption.sc-ic-pagination-item,footer.sc-ic-pagination-item,header.sc-ic-pagination-item,hgroup.sc-ic-pagination-item,menu.sc-ic-pagination-item,nav.sc-ic-pagination-item,output.sc-ic-pagination-item,ruby.sc-ic-pagination-item,section.sc-ic-pagination-item,summary.sc-ic-pagination-item,time.sc-ic-pagination-item,mark.sc-ic-pagination-item,audio.sc-ic-pagination-item,video.sc-ic-pagination-item{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@a*/a.sc-ic-pagination-item{text-align:center}/*!@.item-container*/.item-container.sc-ic-pagination-item{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*/button.sc-ic-pagination-item{background:none;border:none;outline:inherit;position:relative}/*!@.ellipsis*/.ellipsis.sc-ic-pagination-item{pointer-events:none;color:var(--ic-color-secondary-text)}/*!@.item-container:focus*/.item-container.sc-ic-pagination-item: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*/.page.sc-ic-pagination-item{color:var(--ic-action-default)}/*!@.simple-current*/.simple-current.sc-ic-pagination-item{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)*/.item-container.page.sc-ic-pagination-item: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)*/.item-container.page.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-default-bg-active)}/*!@.selected*/.selected.sc-ic-pagination-item{pointer-events:none;outline:none}/*!@.selected::after*/.selected.sc-ic-pagination-item::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-default)}/*!@.page-selected*/.page-selected.sc-ic-pagination-item{color:var(--ic-color-primary-text)}/*!@.item-container.page.light:hover:not(.selected):not(:focus)*/.item-container.page.light.sc-ic-pagination-item:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}/*!@.item-container.page.light:active:not(.selected):not(:focus)*/.item-container.page.light.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-active)}/*!@ic-typography.light*/ic-typography.light.sc-ic-pagination-item{color:var(--ic-color-white-text)}/*!@.selected.light::after*/.selected.light.sc-ic-pagination-item::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)*/.item-container.page.dark.sc-ic-pagination-item:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}/*!@.item-container.page.dark:active:not(.selected):not(:focus)*/.item-container.page.dark.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-active)}/*!@ic-typography.dark*/ic-typography.dark.sc-ic-pagination-item{color:var(--ic-color-primary-text)}/*!@.selected.dark::after*/.selected.dark.sc-ic-pagination-item::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-dark)}/*!@.disabled*/.disabled.sc-ic-pagination-item{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*/.selected.sc-ic-pagination-item::after{background-color:Highlight}/*!@.selected.light::after*/.selected.light.sc-ic-pagination-item::after{background-color:Highlight}/*!@.selected.dark::after*/.selected.dark.sc-ic-pagination-item::after{background-color:Highlight}}";
|
21558
|
+
const icPaginationItemCss = "/*!@html*/html.sc-ic-pagination-item{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-pagination-item{margin:0}/*!@main*/main.sc-ic-pagination-item{display:block}/*!@h1*/h1.sc-ic-pagination-item{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-pagination-item{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-pagination-item{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-pagination-item{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-pagination-item{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-pagination-item,strong.sc-ic-pagination-item{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-pagination-item,kbd.sc-ic-pagination-item,samp.sc-ic-pagination-item{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-pagination-item{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-pagination-item,sup.sc-ic-pagination-item{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-pagination-item{bottom:-0.25em}/*!@sup*/sup.sc-ic-pagination-item{top:-0.5em}/*!@img*/img.sc-ic-pagination-item{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-pagination-item,input.sc-ic-pagination-item,optgroup.sc-ic-pagination-item,select.sc-ic-pagination-item,textarea.sc-ic-pagination-item{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-pagination-item,input.sc-ic-pagination-item{overflow:visible}/*!@button,\nselect*/button.sc-ic-pagination-item,select.sc-ic-pagination-item{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-pagination-item,[type=\"button\"].sc-ic-pagination-item,[type=\"reset\"].sc-ic-pagination-item,[type=\"submit\"].sc-ic-pagination-item{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-pagination-item::-moz-focus-inner,[type=\"button\"].sc-ic-pagination-item::-moz-focus-inner,[type=\"reset\"].sc-ic-pagination-item::-moz-focus-inner,[type=\"submit\"].sc-ic-pagination-item::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-pagination-item:-moz-focusring,[type=\"button\"].sc-ic-pagination-item:-moz-focusring,[type=\"reset\"].sc-ic-pagination-item:-moz-focusring,[type=\"submit\"].sc-ic-pagination-item:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-pagination-item{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-pagination-item{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-pagination-item{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-pagination-item{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-pagination-item,[type=\"radio\"].sc-ic-pagination-item{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-pagination-item::-webkit-inner-spin-button,[type=\"number\"].sc-ic-pagination-item::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-pagination-item{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-pagination-item::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-pagination-item::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-pagination-item{display:block}/*!@summary*/summary.sc-ic-pagination-item{display:list-item}/*!@template*/template.sc-ic-pagination-item{display:none}/*!@[hidden]*/[hidden].sc-ic-pagination-item{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-pagination-item,body.sc-ic-pagination-item,div.sc-ic-pagination-item,span.sc-ic-pagination-item,applet.sc-ic-pagination-item,object.sc-ic-pagination-item,iframe.sc-ic-pagination-item,h1.sc-ic-pagination-item,h2.sc-ic-pagination-item,h3.sc-ic-pagination-item,h4.sc-ic-pagination-item,h5.sc-ic-pagination-item,h6.sc-ic-pagination-item,p.sc-ic-pagination-item,blockquote.sc-ic-pagination-item,pre.sc-ic-pagination-item,a.sc-ic-pagination-item,abbr.sc-ic-pagination-item,acronym.sc-ic-pagination-item,address.sc-ic-pagination-item,big.sc-ic-pagination-item,cite.sc-ic-pagination-item,code.sc-ic-pagination-item,del.sc-ic-pagination-item,dfn.sc-ic-pagination-item,em.sc-ic-pagination-item,img.sc-ic-pagination-item,ins.sc-ic-pagination-item,kbd.sc-ic-pagination-item,q.sc-ic-pagination-item,s.sc-ic-pagination-item,samp.sc-ic-pagination-item,small.sc-ic-pagination-item,strike.sc-ic-pagination-item,strong.sc-ic-pagination-item,sub.sc-ic-pagination-item,sup.sc-ic-pagination-item,tt.sc-ic-pagination-item,var.sc-ic-pagination-item,b.sc-ic-pagination-item,u.sc-ic-pagination-item,i.sc-ic-pagination-item,center.sc-ic-pagination-item,dl.sc-ic-pagination-item,dt.sc-ic-pagination-item,dd.sc-ic-pagination-item,ol.sc-ic-pagination-item,ul.sc-ic-pagination-item,li.sc-ic-pagination-item,fieldset.sc-ic-pagination-item,form.sc-ic-pagination-item,label.sc-ic-pagination-item,legend.sc-ic-pagination-item,table.sc-ic-pagination-item,caption.sc-ic-pagination-item,tbody.sc-ic-pagination-item,tfoot.sc-ic-pagination-item,thead.sc-ic-pagination-item,tr.sc-ic-pagination-item,th.sc-ic-pagination-item,td.sc-ic-pagination-item,article.sc-ic-pagination-item,aside.sc-ic-pagination-item,canvas.sc-ic-pagination-item,details.sc-ic-pagination-item,embed.sc-ic-pagination-item,figure.sc-ic-pagination-item,figcaption.sc-ic-pagination-item,footer.sc-ic-pagination-item,header.sc-ic-pagination-item,hgroup.sc-ic-pagination-item,menu.sc-ic-pagination-item,nav.sc-ic-pagination-item,output.sc-ic-pagination-item,ruby.sc-ic-pagination-item,section.sc-ic-pagination-item,summary.sc-ic-pagination-item,time.sc-ic-pagination-item,mark.sc-ic-pagination-item,audio.sc-ic-pagination-item,video.sc-ic-pagination-item{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@a*/a.sc-ic-pagination-item{text-align:center}/*!@.item-container*/.item-container.sc-ic-pagination-item{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*/button.sc-ic-pagination-item{background:none;border:none;outline:inherit;position:relative}/*!@.ellipsis*/.ellipsis.sc-ic-pagination-item{pointer-events:none;color:var(--ic-color-secondary-text)}/*!@.item-container:focus*/.item-container.sc-ic-pagination-item: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*/.page.sc-ic-pagination-item{color:var(--ic-action-default)}/*!@.simple-current*/.simple-current.sc-ic-pagination-item{min-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)*/.item-container.page.sc-ic-pagination-item: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)*/.item-container.page.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-default-bg-active)}/*!@.selected*/.selected.sc-ic-pagination-item{pointer-events:none;outline:none}/*!@.selected::after*/.selected.sc-ic-pagination-item::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-default)}/*!@.page-selected*/.page-selected.sc-ic-pagination-item{color:var(--ic-color-primary-text)}/*!@.item-container.page.light:hover:not(.selected):not(:focus)*/.item-container.page.light.sc-ic-pagination-item:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}/*!@.item-container.page.light:active:not(.selected):not(:focus)*/.item-container.page.light.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-active)}/*!@ic-typography.light*/ic-typography.light.sc-ic-pagination-item{color:var(--ic-color-white-text)}/*!@.selected.light::after*/.selected.light.sc-ic-pagination-item::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)*/.item-container.page.dark.sc-ic-pagination-item:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}/*!@.item-container.page.dark:active:not(.selected):not(:focus)*/.item-container.page.dark.sc-ic-pagination-item:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-active)}/*!@ic-typography.dark*/ic-typography.dark.sc-ic-pagination-item{color:var(--ic-color-primary-text)}/*!@.selected.dark::after*/.selected.dark.sc-ic-pagination-item::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-dark)}/*!@.disabled*/.disabled.sc-ic-pagination-item{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*/.selected.sc-ic-pagination-item::after{background-color:Highlight}/*!@.selected.light::after*/.selected.light.sc-ic-pagination-item::after{background-color:Highlight}/*!@.selected.dark::after*/.selected.dark.sc-ic-pagination-item::after{background-color:Highlight}}";
|
21213
21559
|
|
21214
21560
|
class PaginationItem {
|
21215
21561
|
constructor(hostRef) {
|
@@ -21340,7 +21686,7 @@ class PopoverMenu {
|
|
21340
21686
|
}
|
21341
21687
|
else if (el.tagName === "IC-MENU-GROUP") {
|
21342
21688
|
const groupSlotWrapper = el.shadowRoot.querySelector("ul");
|
21343
|
-
const menuGroupElements = getSlotElements(groupSlotWrapper);
|
21689
|
+
const menuGroupElements = getSlotElements$1(groupSlotWrapper);
|
21344
21690
|
this.addMenuItems(menuGroupElements);
|
21345
21691
|
}
|
21346
21692
|
}
|
@@ -21405,13 +21751,14 @@ class PopoverMenu {
|
|
21405
21751
|
}
|
21406
21752
|
}
|
21407
21753
|
disconnectedCallback() {
|
21408
|
-
if (this.popperInstance
|
21754
|
+
if (this.popperInstance) {
|
21409
21755
|
this.popperInstance.destroy();
|
21756
|
+
this.popperInstance = null;
|
21410
21757
|
}
|
21411
21758
|
}
|
21412
21759
|
componentDidLoad() {
|
21413
21760
|
const slotWrapper = this.el.shadowRoot.querySelector("ul.button");
|
21414
|
-
const popoverMenuElements = getSlotElements(slotWrapper);
|
21761
|
+
const popoverMenuElements = getSlotElements$1(slotWrapper);
|
21415
21762
|
if (popoverMenuElements !== null) {
|
21416
21763
|
this.addMenuItems(popoverMenuElements);
|
21417
21764
|
}
|
@@ -21589,6 +21936,39 @@ class RadioGroup {
|
|
21589
21936
|
}
|
21590
21937
|
return nextItem;
|
21591
21938
|
};
|
21939
|
+
this.addSlotChangeListener = () => {
|
21940
|
+
this.radioContainer.addEventListener("slotchange", this.setRadioOptions);
|
21941
|
+
};
|
21942
|
+
this.setFirstRadioOptionTabIndex = (value) => {
|
21943
|
+
this.radioOptions[0].setTabIndex(value);
|
21944
|
+
};
|
21945
|
+
this.setRadioOptions = () => {
|
21946
|
+
this.selectedChild = -1;
|
21947
|
+
this.checkedValue = "";
|
21948
|
+
this.radioOptions = Array.from(this.el.querySelectorAll("ic-radio-option"));
|
21949
|
+
if (this.radioOptions.length > 0) {
|
21950
|
+
this.radioOptions.forEach((radioOption, index) => {
|
21951
|
+
if (!radioOption.selected) {
|
21952
|
+
radioOption.selected = this.checkedValue === radioOption.value;
|
21953
|
+
}
|
21954
|
+
radioOption.name = this.name;
|
21955
|
+
radioOption.groupLabel = this.label;
|
21956
|
+
if (radioOption.selected) {
|
21957
|
+
this.selectedChild = index;
|
21958
|
+
this.checkedValue = radioOption.value;
|
21959
|
+
}
|
21960
|
+
});
|
21961
|
+
this.setFirstRadioOptionTabIndex(this.selectedChild > 0 ? -1 : 0);
|
21962
|
+
}
|
21963
|
+
if (this.initialOrientation === "horizontal" &&
|
21964
|
+
this.radioOptions !== undefined &&
|
21965
|
+
(this.radioOptions.length > 2 ||
|
21966
|
+
(this.radioOptions.length === 2 &&
|
21967
|
+
(isSlotUsed$1(this.radioOptions[0], "additional-field") ||
|
21968
|
+
isSlotUsed$1(this.radioOptions[1], "additional-field"))))) {
|
21969
|
+
this.currentOrientation = "vertical";
|
21970
|
+
}
|
21971
|
+
};
|
21592
21972
|
this.checkedValue = "";
|
21593
21973
|
this.currentOrientation = undefined;
|
21594
21974
|
this.initialOrientation = undefined;
|
@@ -21609,9 +21989,11 @@ class RadioGroup {
|
|
21609
21989
|
this.initialOrientation = this.orientation;
|
21610
21990
|
}
|
21611
21991
|
disconnectedCallback() {
|
21992
|
+
var _a;
|
21612
21993
|
if (this.resizeObserver !== null) {
|
21613
21994
|
this.resizeObserver.disconnect();
|
21614
21995
|
}
|
21996
|
+
(_a = this.radioContainer) === null || _a === void 0 ? void 0 : _a.removeEventListener("slotchange", this.setRadioOptions);
|
21615
21997
|
}
|
21616
21998
|
componentWillLoad() {
|
21617
21999
|
removeDisabledFalse$1(this.disabled, this.el);
|
@@ -21619,29 +22001,9 @@ class RadioGroup {
|
|
21619
22001
|
this.currentOrientation = this.initialOrientation;
|
21620
22002
|
}
|
21621
22003
|
componentDidLoad() {
|
21622
|
-
this.
|
21623
|
-
this.radioOptions.forEach((radioOption, index) => {
|
21624
|
-
if (!radioOption.selected) {
|
21625
|
-
radioOption.selected = this.checkedValue === radioOption.value;
|
21626
|
-
}
|
21627
|
-
radioOption.name = this.name;
|
21628
|
-
radioOption.groupLabel = this.label;
|
21629
|
-
if (radioOption.selected) {
|
21630
|
-
this.selectedChild = index;
|
21631
|
-
this.checkedValue = radioOption.value;
|
21632
|
-
}
|
21633
|
-
});
|
21634
|
-
this.radioOptions[0].shadowRoot.querySelector("input").tabIndex =
|
21635
|
-
this.selectedChild > 0 ? -1 : 0;
|
21636
|
-
if (this.initialOrientation === "horizontal" &&
|
21637
|
-
this.radioOptions !== undefined &&
|
21638
|
-
(this.radioOptions.length > 2 ||
|
21639
|
-
(this.radioOptions.length === 2 &&
|
21640
|
-
(isSlotUsed(this.radioOptions[0], "additional-field") ||
|
21641
|
-
isSlotUsed(this.radioOptions[1], "additional-field"))))) {
|
21642
|
-
this.currentOrientation = "vertical";
|
21643
|
-
}
|
22004
|
+
this.setRadioOptions();
|
21644
22005
|
checkResizeObserver$1(this.runResizeObserver);
|
22006
|
+
this.addSlotChangeListener();
|
21645
22007
|
onComponentRequiredPropUndefined$1([
|
21646
22008
|
{ prop: this.label, propName: "label" },
|
21647
22009
|
{ prop: this.name, propName: "name" },
|
@@ -21665,14 +22027,13 @@ class RadioGroup {
|
|
21665
22027
|
this.selectedChild = index;
|
21666
22028
|
}
|
21667
22029
|
});
|
21668
|
-
this.
|
21669
|
-
this.selectedChild > 0 ? -1 : 0;
|
22030
|
+
this.setFirstRadioOptionTabIndex(this.selectedChild > 0 ? -1 : 0);
|
21670
22031
|
}
|
21671
22032
|
}
|
21672
22033
|
changeHandler() {
|
21673
22034
|
const selectedOption = this.radioOptions.findIndex((radioOption) => radioOption.selected);
|
21674
22035
|
if (selectedOption < 0) {
|
21675
|
-
this.
|
22036
|
+
this.setFirstRadioOptionTabIndex(0);
|
21676
22037
|
this.selectedChild = selectedOption;
|
21677
22038
|
}
|
21678
22039
|
}
|
@@ -21797,7 +22158,7 @@ class RadioOption {
|
|
21797
22158
|
removeFormResetListener$1(this.el, this.handleFormReset);
|
21798
22159
|
}
|
21799
22160
|
componentWillLoad() {
|
21800
|
-
const additionalFieldContent = getSlotContent(this.el, "additional-field");
|
22161
|
+
const additionalFieldContent = getSlotContent$1(this.el, "additional-field");
|
21801
22162
|
if (additionalFieldContent !== null) {
|
21802
22163
|
this.hasAdditionalField = true;
|
21803
22164
|
const Element = additionalFieldContent[0];
|
@@ -21852,9 +22213,14 @@ class RadioOption {
|
|
21852
22213
|
* Sets focus on the radio option.
|
21853
22214
|
*/
|
21854
22215
|
async setFocus() {
|
21855
|
-
|
21856
|
-
|
21857
|
-
|
22216
|
+
var _a;
|
22217
|
+
(_a = this.radioElement) === null || _a === void 0 ? void 0 : _a.focus();
|
22218
|
+
}
|
22219
|
+
/**
|
22220
|
+
* @internal Sets the tabIndex of the radio option.
|
22221
|
+
*/
|
22222
|
+
async setTabIndex(value) {
|
22223
|
+
this.radioElement.tabIndex = value;
|
21858
22224
|
}
|
21859
22225
|
render() {
|
21860
22226
|
const id = `ic-radio-option-${isPropDefined(this.label) ? this.label : this.value}-${this.groupLabel}`;
|
@@ -21890,7 +22256,8 @@ class RadioOption {
|
|
21890
22256
|
"value": [1025],
|
21891
22257
|
"selected": [1540],
|
21892
22258
|
"initiallySelected": [32],
|
21893
|
-
"setFocus": [64]
|
22259
|
+
"setFocus": [64],
|
22260
|
+
"setTabIndex": [64]
|
21894
22261
|
},
|
21895
22262
|
"$listeners$": [[0, "icChange", "textfieldValueHandler"]],
|
21896
22263
|
"$lazyBundleId$": "-",
|
@@ -22494,6 +22861,7 @@ var Clear$1 = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www
|
|
22494
22861
|
const icSelectCss$1 = "/*!@html*/html.sc-ic-select{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-select{margin:0}/*!@main*/main.sc-ic-select{display:block}/*!@h1*/h1.sc-ic-select{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-select{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-select{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-select{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-select{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-select,strong.sc-ic-select{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-select,kbd.sc-ic-select,samp.sc-ic-select{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-select{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-select,sup.sc-ic-select{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-select{bottom:-0.25em}/*!@sup*/sup.sc-ic-select{top:-0.5em}/*!@img*/img.sc-ic-select{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-select,input.sc-ic-select,optgroup.sc-ic-select,select.sc-ic-select,textarea.sc-ic-select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-select,input.sc-ic-select{overflow:visible}/*!@button,\nselect*/button.sc-ic-select,select.sc-ic-select{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-select,[type=\"button\"].sc-ic-select,[type=\"reset\"].sc-ic-select,[type=\"submit\"].sc-ic-select{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-select::-moz-focus-inner,[type=\"button\"].sc-ic-select::-moz-focus-inner,[type=\"reset\"].sc-ic-select::-moz-focus-inner,[type=\"submit\"].sc-ic-select::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-select:-moz-focusring,[type=\"button\"].sc-ic-select:-moz-focusring,[type=\"reset\"].sc-ic-select:-moz-focusring,[type=\"submit\"].sc-ic-select:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-select{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-select{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-select{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-select{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-select,[type=\"radio\"].sc-ic-select{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-select::-webkit-inner-spin-button,[type=\"number\"].sc-ic-select::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-select{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-select::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-select::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-select{display:block}/*!@summary*/summary.sc-ic-select{display:list-item}/*!@template*/template.sc-ic-select{display:none}/*!@[hidden]*/[hidden].sc-ic-select{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-select,body.sc-ic-select,div.sc-ic-select,span.sc-ic-select,applet.sc-ic-select,object.sc-ic-select,iframe.sc-ic-select,h1.sc-ic-select,h2.sc-ic-select,h3.sc-ic-select,h4.sc-ic-select,h5.sc-ic-select,h6.sc-ic-select,p.sc-ic-select,blockquote.sc-ic-select,pre.sc-ic-select,a.sc-ic-select,abbr.sc-ic-select,acronym.sc-ic-select,address.sc-ic-select,big.sc-ic-select,cite.sc-ic-select,code.sc-ic-select,del.sc-ic-select,dfn.sc-ic-select,em.sc-ic-select,img.sc-ic-select,ins.sc-ic-select,kbd.sc-ic-select,q.sc-ic-select,s.sc-ic-select,samp.sc-ic-select,small.sc-ic-select,strike.sc-ic-select,strong.sc-ic-select,sub.sc-ic-select,sup.sc-ic-select,tt.sc-ic-select,var.sc-ic-select,b.sc-ic-select,u.sc-ic-select,i.sc-ic-select,center.sc-ic-select,dl.sc-ic-select,dt.sc-ic-select,dd.sc-ic-select,ol.sc-ic-select,ul.sc-ic-select,li.sc-ic-select,fieldset.sc-ic-select,form.sc-ic-select,label.sc-ic-select,legend.sc-ic-select,table.sc-ic-select,caption.sc-ic-select,tbody.sc-ic-select,tfoot.sc-ic-select,thead.sc-ic-select,tr.sc-ic-select,th.sc-ic-select,td.sc-ic-select,article.sc-ic-select,aside.sc-ic-select,canvas.sc-ic-select,details.sc-ic-select,embed.sc-ic-select,figure.sc-ic-select,figcaption.sc-ic-select,footer.sc-ic-select,header.sc-ic-select,hgroup.sc-ic-select,menu.sc-ic-select,nav.sc-ic-select,output.sc-ic-select,ruby.sc-ic-select,section.sc-ic-select,summary.sc-ic-select,time.sc-ic-select,mark.sc-ic-select,audio.sc-ic-select,video.sc-ic-select{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-select-h{display:block;position:relative}/*!@:host(.full-width)*/.full-width.sc-ic-select-h{width:100%}/*!@ic-input-component-container:hover*/ic-input-component-container.sc-ic-select:hover{--border-color:var(--ic-action-dark-hover)}/*!@ic-input-component-container:active*/ic-input-component-container.sc-ic-select:active{--border-color:var(--ic-action-dark-active);color:var(--ic-action-dark-active)}/*!@ic-input-component-container.menu-open*/ic-input-component-container.menu-open.sc-ic-select{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}/*!@ic-input-validation .status-icon,\nic-input-validation .statustext*/ic-input-validation.sc-ic-select .status-icon.sc-ic-select,ic-input-validation.sc-ic-select .statustext.sc-ic-select{visibility:visible}/*!@ic-input-validation.menu-open .status-icon,\nic-input-validation.menu-open .statustext*/ic-input-validation.menu-open.sc-ic-select .status-icon.sc-ic-select,ic-input-validation.menu-open.sc-ic-select .statustext.sc-ic-select{visibility:hidden;transition:visibility 0s}/*!@ic-input-label*/ic-input-label.sc-ic-select{margin-bottom:var(--ic-space-xs) !important}/*!@select*/select.sc-ic-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,\n.select-option-selected*/select.sc-ic-select option.sc-ic-select,.select-option-selected.sc-ic-select{color:var(--ic-color-primary-text)}/*!@select:disabled*/select.sc-ic-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*/select.sc-ic-select:focus{border:0;outline:0}/*!@select:not([disabled])*/select.sc-ic-select:not([disabled]){cursor:pointer}/*!@.select-container*/.select-container.sc-ic-select{width:100%;display:flex;align-items:center;position:relative}/*!@.select-input*/.select-input.sc-ic-select{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*/.select-input.sc-ic-select:focus{outline:var(--ic-hc-focus-outline)}/*!@:host(:not(.disabled)) ic-input-component-container:hover .select-input*/.sc-ic-select-h:not(.disabled) ic-input-component-container.sc-ic-select:hover .select-input.sc-ic-select{background-color:var(--ic-architectural-white)}/*!@.select-input[disabled]*/.select-input[disabled].sc-ic-select{pointer-events:none}/*!@:host(.searchable) .select-input*/.searchable.sc-ic-select-h .select-input.sc-ic-select{cursor:auto}/*!@.searchable-select-container*/.searchable-select-container.sc-ic-select{align-items:center;display:flex;width:100%;position:relative}/*!@.expand-icon*/.expand-icon.sc-ic-select{height:var(--ic-space-lg);padding-left:var(--ic-space-xs);color:var(--ic-action-dark)}/*!@.expand-icon > svg*/.expand-icon.sc-ic-select>svg.sc-ic-select{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}/*!@:host(.disabled) .expand-icon,\n:host(.disabled) .expand-icon > svg > path*/.disabled.sc-ic-select-h .expand-icon.sc-ic-select,.disabled.sc-ic-select-h .expand-icon.sc-ic-select>svg.sc-ic-select>path.sc-ic-select{color:var(--ic-architectural-200)}/*!@:host(.searchable) .expand-icon*/.searchable.sc-ic-select-h .expand-icon.sc-ic-select{padding-left:var(--ic-space-xxs);height:2.25rem}/*!@:host(.searchable) .expand-icon > svg*/.searchable.sc-ic-select-h .expand-icon.sc-ic-select>svg.sc-ic-select{height:2.25rem;padding:0 0.375rem}/*!@:host(.searchable:not(.disabled)) .expand-icon > svg*/.searchable.sc-ic-select-h:not(.disabled) .expand-icon.sc-ic-select>svg.sc-ic-select{cursor:pointer}/*!@.expand-icon-open*/.expand-icon-open.sc-ic-select{color:var(--ic-action-dark)}/*!@.expand-icon-filled*/.expand-icon-filled.sc-ic-select{color:var(--ic-action-dark)}/*!@.expand-icon-open,\n:host(.searchable) .expand-icon-open*/.expand-icon-open.sc-ic-select,.searchable.sc-ic-select-h .expand-icon-open.sc-ic-select{transform:rotateX(180deg)}/*!@:host(.disabled) .value-text,\n.placeholder*/.disabled.sc-ic-select-h .value-text.sc-ic-select,.placeholder.sc-ic-select{color:var(--ic-color-tertiary-text)}/*!@.select-input-end*/.select-input-end.sc-ic-select{display:flex;align-items:center}/*!@.clear-button-container*/.clear-button-container.sc-ic-select{display:flex;gap:var(--ic-space-xxs);padding-left:2.375rem;align-items:center}/*!@:host(.small) .clear-button-container*/.small.sc-ic-select-h .clear-button-container.sc-ic-select{padding-left:1.875rem}/*!@.divider*/.divider.sc-ic-select{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*/.small.sc-ic-select-h .divider.sc-ic-select{height:var(--ic-space-md)}/*!@.clear-button*/.clear-button.sc-ic-select{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*/.clear-button.sc-ic-select: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 **/.clear-button.sc-ic-select:focus *.sc-ic-select{fill:white}/*!@.searchable-select-results-status*/.searchable-select-results-status.sc-ic-select{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)}";
|
22495
22862
|
|
22496
22863
|
let inputIds$3 = 0;
|
22864
|
+
const MUTABLE_ATTRIBUTES$1 = [...IC_INHERITED_ARIA$1, "tabindex", "title"];
|
22497
22865
|
class Select$1 {
|
22498
22866
|
constructor(hostRef) {
|
22499
22867
|
registerInstance(this, hostRef);
|
@@ -22513,6 +22881,16 @@ class Select$1 {
|
|
22513
22881
|
this.menuId = `${this.inputId}-menu`;
|
22514
22882
|
this.searchableMenuItemSelected = false;
|
22515
22883
|
this.ungroupedOptions = [];
|
22884
|
+
this.hostMutationObserver = null;
|
22885
|
+
// triggered when attributes of host element change
|
22886
|
+
this.hostMutationCallback = (mutationList) => {
|
22887
|
+
mutationList.forEach(({ attributeName }) => {
|
22888
|
+
if (MUTABLE_ATTRIBUTES$1.includes(attributeName)) {
|
22889
|
+
this.inheritedAttributes[attributeName] =
|
22890
|
+
this.el.getAttribute(attributeName);
|
22891
|
+
}
|
22892
|
+
});
|
22893
|
+
};
|
22516
22894
|
this.handleRetry = (ev) => {
|
22517
22895
|
var _a;
|
22518
22896
|
if (ev.detail.keyPressed)
|
@@ -22579,7 +22957,8 @@ class Select$1 {
|
|
22579
22957
|
* Loop through options array and for all options with no value, infer it from the label
|
22580
22958
|
*/
|
22581
22959
|
this.setOptionsValuesFromLabels = () => {
|
22582
|
-
|
22960
|
+
var _a;
|
22961
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.options.map) {
|
22583
22962
|
this.options.map((option) => {
|
22584
22963
|
if (!option.value) {
|
22585
22964
|
option.value = option.label;
|
@@ -22991,11 +23370,12 @@ class Select$1 {
|
|
22991
23370
|
newValue && this.triggerLoading();
|
22992
23371
|
}
|
22993
23372
|
watchOptionsHandler() {
|
23373
|
+
var _a;
|
22994
23374
|
if (!this.hasTimedOut) {
|
22995
23375
|
this.loading = false;
|
22996
23376
|
clearTimeout(this.timeoutTimer);
|
22997
23377
|
if (this.isExternalFiltering()) {
|
22998
|
-
if (this.options.length > 0) {
|
23378
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
22999
23379
|
this.setOptionsValuesFromLabels();
|
23000
23380
|
this.noOptions = null;
|
23001
23381
|
this.uniqueOptions = this.deduplicateOptions(this.options);
|
@@ -23020,8 +23400,9 @@ class Select$1 {
|
|
23020
23400
|
}
|
23021
23401
|
}
|
23022
23402
|
else {
|
23023
|
-
if (!this.searchable)
|
23403
|
+
if (!this.searchable) {
|
23024
23404
|
this.options = this.noOptions;
|
23405
|
+
}
|
23025
23406
|
}
|
23026
23407
|
}
|
23027
23408
|
debounceChangedHandler(newValue) {
|
@@ -23040,18 +23421,17 @@ class Select$1 {
|
|
23040
23421
|
this.open ? this.icOpen.emit() : this.icClose.emit();
|
23041
23422
|
}
|
23042
23423
|
disconnectedCallback() {
|
23424
|
+
var _a;
|
23043
23425
|
removeFormResetListener$1(this.el, this.handleFormReset);
|
23426
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
23044
23427
|
}
|
23045
23428
|
componentWillLoad() {
|
23046
|
-
|
23047
|
-
|
23048
|
-
"tabindex",
|
23049
|
-
"title",
|
23050
|
-
]);
|
23429
|
+
var _a;
|
23430
|
+
this.inheritedAttributes = inheritAttributes$1(this.el, MUTABLE_ATTRIBUTES$1);
|
23051
23431
|
removeDisabledFalse$1(this.disabled, this.el);
|
23052
23432
|
this.setOptionsValuesFromLabels();
|
23053
23433
|
addFormResetListener$1(this.el, this.handleFormReset);
|
23054
|
-
if (!this.options.length) {
|
23434
|
+
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.length)) {
|
23055
23435
|
this.initialOptionsEmpty = true;
|
23056
23436
|
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
23057
23437
|
this.uniqueOptions = this.noOptions;
|
@@ -23068,6 +23448,10 @@ class Select$1 {
|
|
23068
23448
|
this.triggerLoading();
|
23069
23449
|
}
|
23070
23450
|
this.hiddenInputValue = this.searchable && this.currValue;
|
23451
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
23452
|
+
this.hostMutationObserver.observe(this.el, {
|
23453
|
+
attributes: true,
|
23454
|
+
});
|
23071
23455
|
}
|
23072
23456
|
componentDidRender() {
|
23073
23457
|
if (this.nativeSelectElement && !this.disabled) {
|
@@ -24177,7 +24561,7 @@ class SideNavigation {
|
|
24177
24561
|
this.arrangeSlottedNavigationItem = (menuExpanded) => {
|
24178
24562
|
const navItems = this.el.querySelectorAll("ic-navigation-item");
|
24179
24563
|
navItems.forEach((navItem) => {
|
24180
|
-
const isNamedSlot = isSlotUsed(navItem, "navigation-item");
|
24564
|
+
const isNamedSlot = isSlotUsed$1(navItem, "navigation-item");
|
24181
24565
|
const isUnnamedSlot = navItem.children[0] && !navItem.children[0].getAttribute("slot");
|
24182
24566
|
if (isNamedSlot || isUnnamedSlot) {
|
24183
24567
|
let navItemSlot;
|
@@ -24396,14 +24780,14 @@ class SideNavigation {
|
|
24396
24780
|
};
|
24397
24781
|
this.renderTopBar = ({ isSDevice, foregroundColor, menuOpen, href, isAppNameSubtitleVariant, }) => {
|
24398
24782
|
const hasTitle = this.appTitle !== "" && isPropDefined(this.appTitle);
|
24399
|
-
const Component = isSlotUsed(this.el, "app-title") ? "div" : "a";
|
24783
|
+
const Component = isSlotUsed$1(this.el, "app-title") ? "div" : "a";
|
24400
24784
|
const attrs = Component == "a" && {
|
24401
24785
|
href: href,
|
24402
24786
|
};
|
24403
24787
|
return (hAsync("div", { class: {
|
24404
24788
|
"top-bar": true,
|
24405
24789
|
[this.foregroundColor]: true,
|
24406
|
-
} }, isSDevice && (hAsync("nav", { "aria-labelledby": "menu-navigation-toggle-button-landmark", "aria-hidden": "false" }, hAsync("ic-button", { "aria-label": "Open navigation menu", class: "menu-button", id: "menu-button", variant: "secondary", size: "small", "full-width": "true", appearance: foregroundColor, onClick: this.toggleMenu, ariaOwnsId: "side-navigation", "aria-haspopup": "true", "aria-expanded": "false", ref: (el) => (this.menuButton = el) }, hAsync("span", { class: "mobile-top-bar-menu-icon", slot: "icon", innerHTML: menuOpen ? closeIcon : menuIcon }), menuOpen ? "Close" : "Menu"), hAsync("span", { id: "menu-navigation-toggle-button-landmark", class: "navigation-landmark-title", "aria-hidden": "true" }, "Navigation menu toggle button"))), hAsync("div", { class: "app-title-wrapper" }, (hasTitle || isSlotUsed(this.el, "app-title")) && (hAsync(Component, Object.assign({}, attrs, { class: "title-link" }), hAsync("div", { class: "app-icon-container", "aria-hidden": "true" }, hAsync("slot", { name: "app-icon" })), hAsync("div", { class: "app-title-inner-wrapper" }, isSlotUsed(this.el, "app-title") ? (hAsync("slot", { name: "app-title" })) : (this.renderAppTitle(isAppNameSubtitleVariant))))))));
|
24790
|
+
} }, isSDevice && (hAsync("nav", { "aria-labelledby": "menu-navigation-toggle-button-landmark", "aria-hidden": "false" }, hAsync("ic-button", { "aria-label": "Open navigation menu", class: "menu-button", id: "menu-button", variant: "secondary", size: "small", "full-width": "true", appearance: foregroundColor, onClick: this.toggleMenu, ariaOwnsId: "side-navigation", "aria-haspopup": "true", "aria-expanded": "false", ref: (el) => (this.menuButton = el) }, hAsync("span", { class: "mobile-top-bar-menu-icon", slot: "icon", innerHTML: menuOpen ? closeIcon : menuIcon }), menuOpen ? "Close" : "Menu"), hAsync("span", { id: "menu-navigation-toggle-button-landmark", class: "navigation-landmark-title", "aria-hidden": "true" }, "Navigation menu toggle button"))), hAsync("div", { class: "app-title-wrapper" }, (hasTitle || isSlotUsed$1(this.el, "app-title")) && (hAsync(Component, Object.assign({}, attrs, { class: "title-link" }), hAsync("div", { class: "app-icon-container", "aria-hidden": "true" }, hAsync("slot", { name: "app-icon" })), hAsync("div", { class: "app-title-inner-wrapper" }, isSlotUsed$1(this.el, "app-title") ? (hAsync("slot", { name: "app-title" })) : (this.renderAppTitle(isAppNameSubtitleVariant))))))));
|
24407
24791
|
};
|
24408
24792
|
this.deviceSize = getCurrentDeviceSize();
|
24409
24793
|
this.deviceSizeAppTitle = DEVICE_SIZES.S;
|
@@ -24431,7 +24815,7 @@ class SideNavigation {
|
|
24431
24815
|
if (this.collapsedIconLabels) {
|
24432
24816
|
this.setCollapsedIconLabels();
|
24433
24817
|
}
|
24434
|
-
this.hasSecondaryNavigation = isSlotUsed(this.el, "secondary-navigation");
|
24818
|
+
this.hasSecondaryNavigation = isSlotUsed$1(this.el, "secondary-navigation");
|
24435
24819
|
}
|
24436
24820
|
componentDidLoad() {
|
24437
24821
|
this.emitSideNavigationExpanded({
|
@@ -24443,7 +24827,7 @@ class SideNavigation {
|
|
24443
24827
|
this.arrangeSlottedNavigationItem(this.menuExpanded);
|
24444
24828
|
this.displayTooltipWithExpandedLongLabel(this.menuExpanded);
|
24445
24829
|
this.setExpandedButtonHeight();
|
24446
|
-
!isSlotUsed(this.el, "app-title") &&
|
24830
|
+
!isSlotUsed$1(this.el, "app-title") &&
|
24447
24831
|
onComponentRequiredPropUndefined$1([{ prop: this.appTitle, propName: "app-title" }], "Side Navigation");
|
24448
24832
|
}
|
24449
24833
|
disconnectedCallback() {
|
@@ -24479,10 +24863,10 @@ class SideNavigation {
|
|
24479
24863
|
[IcThemeForegroundEnum$1.Dark]: foregroundColor === IcThemeForegroundEnum$1.Dark,
|
24480
24864
|
["collapsed-labels"]: !isSDevice && !menuExpanded && collapsedIconLabels,
|
24481
24865
|
["inline"]: inline,
|
24482
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (hAsync("nav", { class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { class: "navigation-list" }, hAsync("slot", { name: "primary-navigation" }))))), hAsync("div", { class: {
|
24866
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { class: "navigation-list" }, hAsync("slot", { name: "primary-navigation" }))))), hAsync("div", { class: {
|
24483
24867
|
["bottom-wrapper"]: true,
|
24484
24868
|
["classification-spacing"]: hasClassificationBanner(),
|
24485
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (hAsync("nav", { class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { class: "navigation-list" }, hAsync("slot", { name: "secondary-navigation" })))), hAsync("div", { class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", null), displayExpandBtn && (hAsync("button", { class: "menu-expand-button", innerHTML: chevronIcon, onClick: this.toggleMenuExpanded, "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { class: "app-status-wrapper" }, status !== "" && (hAsync("div", { class: {
|
24869
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { class: "navigation-list" }, hAsync("slot", { name: "secondary-navigation" })))), hAsync("div", { class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", null), displayExpandBtn && (hAsync("button", { class: "menu-expand-button", innerHTML: chevronIcon, onClick: this.toggleMenuExpanded, "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { class: "app-status-wrapper" }, status !== "" && (hAsync("div", { class: {
|
24486
24870
|
["app-status"]: true,
|
24487
24871
|
} }, hAsync("ic-typography", { "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version !== "" && (hAsync("ic-typography", { variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
24488
24872
|
}
|
@@ -24640,7 +25024,7 @@ var warningIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" x
|
|
24640
25024
|
<path d="M7.99935 4.32666L13.0193 13H2.97935L7.99935 4.32666ZM7.99935 1.66666L0.666016 14.3333H15.3327L7.99935 1.66666ZM8.66602 11H7.33268V12.3333H8.66602V11ZM8.66602 6.99999H7.33268V9.66666H8.66602V6.99999Z" fill="currentColor"/>
|
24641
25025
|
</svg>`;
|
24642
25026
|
|
24643
|
-
const icStepCss = "/*!@:host*/.sc-ic-step-h{display:flex;flex:auto}/*!@.step*/.step.sc-ic-step{display:flex;flex:1 1 0}/*!@.step-icon*/.step-icon.sc-ic-step{display:flex;justify-content:center}/*!@.step-title,\n.step-subtitle,\n.step-status,\n.next-step*/.step-title.sc-ic-step,.step-subtitle.sc-ic-step,.step-status.sc-ic-step,.next-step.sc-ic-step{white-space:pre-line}/*!@.visually-hidden*/.visually-hidden.sc-ic-step{position:absolute;left:-625rem;top:auto;width:1px;height:1px;overflow:hidden}/*!@:host(.compact)*/.compact.sc-ic-step-h{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-status-info);--compact-step-circular-line-width:var(--ic-space-xxs)}/*!@:host(.compact) .step*/.compact.sc-ic-step-h .step.sc-ic-step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}/*!@:host(.compact) .step:not(.current)*/.compact.sc-ic-step-h .step.sc-ic-step:not(.current){display:none;opacity:0;visibility:hidden}/*!@.compact-step-progress-indicator*/.compact-step-progress-indicator.sc-ic-step{margin:var(--ic-space-xs) 0 0}/*!@:host ic-loading-indicator::part(ic-loading-container)*/.sc-ic-step-h ic-loading-indicator.sc-ic-step::part(ic-loading-container){border-radius:50%;background-color:var(--ic-architectural-white)}/*!@:host(.compact) .step-title-area*/.compact.sc-ic-step-h .step-title-area.sc-ic-step{display:flex;flex-direction:column;width:14.25rem}/*!@.info-line*/.info-line.sc-ic-step{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}/*!@.step-status*/.step-status.sc-ic-step{display:flex;color:var(--ic-color-secondary-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}/*!@.compact-step-completed .step-status*/.compact-step-completed.sc-ic-step .step-status.sc-ic-step{color:var(--ic-status-success)}/*!@.compact-step-disabled :is(.step-title, .step-status)*/.compact-step-disabled.sc-ic-step .sc-ic-step:is(.step-title,.step-status).sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@.step-num*/.step-num.sc-ic-step{color:var(--ic-color-secondary-text);white-space:nowrap}/*!@:host(.compact) .step-icon*/.compact.sc-ic-step-h .step-icon.sc-ic-step{margin:var(--ic-space-xxxs)}/*!@:host(.compact) .step-icon svg*/.compact.sc-ic-step-h .step-icon.sc-ic-step svg.sc-ic-step{width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.default) .step*/.default.sc-ic-step-h .step.sc-ic-step{flex-direction:column}/*!@:host(.default.last-step)*/.default.last-step.sc-ic-step-h{flex-grow:initial}/*!@.step-top*/.step-top.sc-ic-step{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}/*!@:host(.default) .step-icon*/.default.sc-ic-step-h .step-icon.sc-ic-step{border-radius:50%;background-color:var(--ic-architectural-white)}/*!@.step-icon-inner*/.step-icon-inner.sc-ic-step{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%}/*!@:host(.default) .current*/.default.sc-ic-step-h .current.sc-ic-step{color:var(--ic-status-info)}/*!@:host(.default) .step-title-area*/.default.sc-ic-step-h .step-title-area.sc-ic-step{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}/*!@:host(.default) .step-title,\n.step-subtitle*/.default.sc-ic-step-h .step-title.sc-ic-step,.step-subtitle.sc-ic-step{width:-moz-fit-content;width:fit-content}/*!@.step-subtitle*/.step-subtitle.sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@.current .step-subtitle*/.current.sc-ic-step .step-subtitle.sc-ic-step{color:var(--ic-color-primary-text)}/*!@:host(.default) .completed*/.default.sc-ic-step-h .completed.sc-ic-step{color:var(--ic-status-success)}/*!@.active .step-icon-inner*/.active.sc-ic-step .step-icon-inner.sc-ic-step{box-shadow:inset var(--ic-architectural-200) 0 0 0 0.125rem}/*!@.current .step-icon-inner*/.current.sc-ic-step .step-icon-inner.sc-ic-step{background-color:var(--ic-status-info);color:white}/*!@.disabled*/.disabled.sc-ic-step{color:var(--ic-architectural-200)}/*!@.disabled .step-icon-inner*/.disabled.sc-ic-step .step-icon-inner.sc-ic-step{border:var(--ic-border-width) dashed var(--ic-architectural-200);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs))}/*!@.disabled .step-title-area*/.disabled.sc-ic-step .step-title-area.sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@.completed .step-icon-inner*/.completed.sc-ic-step .step-icon-inner.sc-ic-step{background:var(--ic-status-success);box-shadow:inset var(--ic-status-success) 0 0 0 var(--ic-space-xxxs);border-radius:100%}/*!@:host(.default) .current .step-icon*/.default.sc-ic-step-h .current.sc-ic-step .step-icon.sc-ic-step{border:var(--ic-space-xxxs) solid var(--ic-status-info);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs))}/*!@.step-connect*/.step-connect.sc-ic-step{height:var(--ic-space-xxxs);background-color:var(--ic-architectural-200);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}/*!@.aligned-full-width.step-connect*/.aligned-full-width.step-connect.sc-ic-step{min-width:6.25rem;width:100%}/*!@.disabled .step-connect*/.disabled.sc-ic-step .step-connect.sc-ic-step{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-architectural-200);border-radius:0}/*!@.completed .step-connect*/.completed.sc-ic-step .step-connect.sc-ic-step{background-color:var(--ic-status-success)}/*!@.step-connect-inner*/.step-connect-inner.sc-ic-step{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-status-info)}/*!@.step-icon-inner .check-icon*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step{padding-top:var(--ic-space-xxs)}/*!@.step-icon-inner .check-icon svg*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step svg.sc-ic-step{width:var(--ic-space-md);height:auto}/*!@.step-icon-inner .check-icon > svg > path*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step>svg.sc-ic-step>path.sc-ic-step{fill:var(--ic-color-white-text)}@media (forced-colors: active){/*!@.compact-step-disabled :is(.step-title, .step-status)*/.compact-step-disabled.sc-ic-step .sc-ic-step:is(.step-title,.step-status).sc-ic-step{color:GrayText}/*!@.step-connect:not(.disabled .step-connect)*/.step-connect.sc-ic-step:not(.disabled .step-connect).sc-ic-step{border:var(--ic-hc-border)}/*!@.active .step-icon-inner,\n .completed .step-icon-inner,\n .current .step-icon-inner*/.active.sc-ic-step .step-icon-inner.sc-ic-step,.completed.sc-ic-step .step-icon-inner.sc-ic-step,.current.sc-ic-step .step-icon-inner.sc-ic-step{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}/*!@:host(.default) .current .step-icon*/.default.sc-ic-step-h .current.sc-ic-step .step-icon.sc-ic-step{padding:0;border:none}/*!@.disabled,\n .disabled .step-title-area*/.disabled.sc-ic-step,.disabled.sc-ic-step .step-title-area.sc-ic-step{color:GrayText}/*!@.step-connect-inner,\n .completed .step-connect*/.step-connect-inner.sc-ic-step,.completed.sc-ic-step .step-connect.sc-ic-step{background-color:canvastext}/*!@.step-icon-inner .check-icon > svg > path*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step>svg.sc-ic-step>path.sc-ic-step{fill:canvastext}}";
|
25027
|
+
const icStepCss = "/*!@:host*/.sc-ic-step-h{display:flex;flex:auto}/*!@.step*/.step.sc-ic-step{display:flex;flex:1 1 0}/*!@.step-icon*/.step-icon.sc-ic-step{display:flex;justify-content:center}/*!@.step-title,\n.step-subtitle,\n.step-status,\n.next-step*/.step-title.sc-ic-step,.step-subtitle.sc-ic-step,.step-status.sc-ic-step,.next-step.sc-ic-step{white-space:pre-line}/*!@.visually-hidden*/.visually-hidden.sc-ic-step{position:absolute;left:-625rem;top:auto;width:1px;height:1px;overflow:hidden}/*!@:host(.compact)*/.compact.sc-ic-step-h{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-status-info);--compact-step-circular-line-width:var(--ic-space-xxs)}/*!@:host(.compact.light)*/.compact.light.sc-ic-step-h{--compact-step-inner-color:var(--ic-status-info-contrast);--compact-step-outer-color:var(--ic-architectural-600)}/*!@:host(.compact) .step*/.compact.sc-ic-step-h .step.sc-ic-step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}/*!@:host(.compact) .step:not(.current)*/.compact.sc-ic-step-h .step.sc-ic-step:not(.current){display:none;opacity:0;visibility:hidden}/*!@.compact-step-progress-indicator*/.compact-step-progress-indicator.sc-ic-step{margin:var(--ic-space-xs) 0 0}/*!@:host ic-loading-indicator::part(ic-loading-container)*/.sc-ic-step-h ic-loading-indicator.sc-ic-step::part(ic-loading-container){border-radius:50%}/*!@:host(:not(.light)) ic-loading-indicator::part(ic-loading-container)*/.sc-ic-step-h:not(.light) ic-loading-indicator.sc-ic-step::part(ic-loading-container){background-color:var(--ic-architectural-white)}/*!@:host(.compact) .step-title-area*/.compact.sc-ic-step-h .step-title-area.sc-ic-step{display:flex;flex-direction:column;width:14.25rem}/*!@:host(.compact.light) .disabled .step-title-area*/.compact.light.sc-ic-step-h .disabled.sc-ic-step .step-title-area.sc-ic-step{color:var(--ic-architectural-400)}/*!@.info-line*/.info-line.sc-ic-step{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}/*!@.step-status*/.step-status.sc-ic-step{display:flex;color:var(--ic-color-secondary-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}/*!@.compact-step-completed .step-status*/.compact-step-completed.sc-ic-step .step-status.sc-ic-step{color:var(--ic-status-success)}/*!@:host(.light) .compact-step-completed .step-status*/.light.sc-ic-step-h .compact-step-completed.sc-ic-step .step-status.sc-ic-step{color:var(--ic-status-success-contrast)}/*!@.compact-step-disabled :is(.step-title, .step-status)*/.compact-step-disabled.sc-ic-step .sc-ic-step:is(.step-title,.step-status).sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@:host(.light) .compact-step-disabled :is(.step-status)*/.light.sc-ic-step-h .compact-step-disabled.sc-ic-step .sc-ic-step:is(.step-status){color:var(--ic-architectural-white)}/*!@.step-num*/.step-num.sc-ic-step{color:var(--ic-color-secondary-text);white-space:nowrap}/*!@:host(.light) .step-num*/.light.sc-ic-step-h .step-num.sc-ic-step{color:var(--ic-architectural-white)}/*!@:host(.compact) .step-icon*/.compact.sc-ic-step-h .step-icon.sc-ic-step{margin:var(--ic-space-xxxs)}/*!@:host(.compact) .step-icon svg*/.compact.sc-ic-step-h .step-icon.sc-ic-step svg.sc-ic-step{width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.default) .step*/.default.sc-ic-step-h .step.sc-ic-step{flex-direction:column}/*!@:host(.default.last-step)*/.default.last-step.sc-ic-step-h{flex-grow:initial}/*!@.step-top*/.step-top.sc-ic-step{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}/*!@:host(.default) .step-icon*/.default.sc-ic-step-h .step-icon.sc-ic-step{border-radius:50%}/*!@:host(.default:not(.light)) .step-icon*/.default.sc-ic-step-h:not(.light) .step-icon.sc-ic-step{background-color:var(--ic-architectural-white)}/*!@.step-icon-inner*/.step-icon-inner.sc-ic-step{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%}/*!@:host(.default) .current*/.default.sc-ic-step-h .current.sc-ic-step{color:var(--ic-status-info)}/*!@:host(.default.light) .current,\n:host(.default.light) .current .step-title-area*/.default.light.sc-ic-step-h .current.sc-ic-step,.default.light.sc-ic-step-h .current.sc-ic-step .step-title-area.sc-ic-step{color:var(--ic-status-info-contrast)}/*!@:host(.default) .step-title-area*/.default.sc-ic-step-h .step-title-area.sc-ic-step{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}/*!@:host(.light) .step-title-area*/.light.sc-ic-step-h .step-title-area.sc-ic-step{color:var(--ic-architectural-200)}/*!@:host(.compact.light) .step-title-area*/.compact.light.sc-ic-step-h .step-title-area.sc-ic-step{color:var(--ic-architectural-white)}/*!@:host(.default) .step-title,\n.step-subtitle*/.default.sc-ic-step-h .step-title.sc-ic-step,.step-subtitle.sc-ic-step{width:-moz-fit-content;width:fit-content}/*!@.step-subtitle*/.step-subtitle.sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@:host(.light) .step-subtitle*/.light.sc-ic-step-h .step-subtitle.sc-ic-step{color:var(--ic-architectural-white)}/*!@.current .step-subtitle*/.current.sc-ic-step .step-subtitle.sc-ic-step{color:var(--ic-color-primary-text)}/*!@:host(.default) .completed*/.default.sc-ic-step-h .completed.sc-ic-step{color:var(--ic-status-success)}/*!@:host(.default.light) .completed,\n:host(.default.light) .completed .step-title-area*/.default.light.sc-ic-step-h .completed.sc-ic-step,.default.light.sc-ic-step-h .completed.sc-ic-step .step-title-area.sc-ic-step{color:var(--ic-status-success-contrast)}/*!@.active .step-icon-inner*/.active.sc-ic-step .step-icon-inner.sc-ic-step{box-shadow:inset var(--ic-architectural-200) 0 0 0 0.125rem}/*!@:host(.light) .active .step-icon-inner*/.light.sc-ic-step-h .active.sc-ic-step .step-icon-inner.sc-ic-step{color:var(--ic-architectural-white)}/*!@.current .step-icon-inner*/.current.sc-ic-step .step-icon-inner.sc-ic-step{background-color:var(--ic-status-info);color:white}/*!@:host(.light) .current .step-icon-inner*/.light.sc-ic-step-h .current.sc-ic-step .step-icon-inner.sc-ic-step{background-color:var(--ic-status-info-contrast)}/*!@.disabled*/.disabled.sc-ic-step{color:var(--ic-architectural-200)}/*!@:host(.default.light) .disabled,\n:host(.default.light) .disabled .step-title-area*/.default.light.sc-ic-step-h .disabled.sc-ic-step,.default.light.sc-ic-step-h .disabled.sc-ic-step .step-title-area.sc-ic-step{color:var(--ic-architectural-400)}/*!@.disabled .step-icon-inner*/.disabled.sc-ic-step .step-icon-inner.sc-ic-step{border:var(--ic-border-width) dashed var(--ic-architectural-200);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs))}/*!@:host(.light) .disabled .step-icon-inner*/.light.sc-ic-step-h .disabled.sc-ic-step .step-icon-inner.sc-ic-step{border:var(--ic-border-width) dashed var(--ic-architectural-400)}/*!@.disabled .step-title-area,\n:host(.default.light) .disabled .step-subtitle*/.disabled.sc-ic-step .step-title-area.sc-ic-step,.default.light.sc-ic-step-h .disabled.sc-ic-step .step-subtitle.sc-ic-step{color:var(--ic-color-tertiary-text)}/*!@.completed .step-icon-inner*/.completed.sc-ic-step .step-icon-inner.sc-ic-step{background:var(--ic-status-success);box-shadow:inset var(--ic-status-success) 0 0 0 var(--ic-space-xxxs);border-radius:100%}/*!@:host(.light) .completed .step-icon-inner*/.light.sc-ic-step-h .completed.sc-ic-step .step-icon-inner.sc-ic-step{background:var(--ic-status-success-contrast);box-shadow:inset var(--ic-status-success-contrast) 0 0 0 var(--ic-space-xxxs)}/*!@:host(.default) .current .step-icon*/.default.sc-ic-step-h .current.sc-ic-step .step-icon.sc-ic-step{border:var(--ic-space-xxxs) solid var(--ic-status-info);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs))}/*!@:host(.default.light) .current .step-icon*/.default.light.sc-ic-step-h .current.sc-ic-step .step-icon.sc-ic-step{border:var(--ic-space-xxxs) solid var(--ic-status-info-contrast)}/*!@.step-connect*/.step-connect.sc-ic-step{height:var(--ic-space-xxxs);background-color:var(--ic-architectural-200);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}/*!@:host(.light) .step-connect*/.light.sc-ic-step-h .step-connect.sc-ic-step{background-color:var(--ic-architectural-600)}/*!@.aligned-full-width.step-connect*/.aligned-full-width.step-connect.sc-ic-step{min-width:6.25rem;width:100%}/*!@.disabled .step-connect*/.disabled.sc-ic-step .step-connect.sc-ic-step{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-architectural-200);border-radius:0}/*!@:host(.light) .disabled .step-connect*/.light.sc-ic-step-h .disabled.sc-ic-step .step-connect.sc-ic-step{border-top:0.125rem dashed var(--ic-architectural-600)}/*!@.completed .step-connect*/.completed.sc-ic-step .step-connect.sc-ic-step{background-color:var(--ic-status-success)}/*!@:host(.light) .completed .step-connect*/.light.sc-ic-step-h .completed.sc-ic-step .step-connect.sc-ic-step{background-color:var(--ic-status-success-contrast)}/*!@.step-connect-inner*/.step-connect-inner.sc-ic-step{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-status-info)}/*!@:host(.light) .step-connect-inner*/.light.sc-ic-step-h .step-connect-inner.sc-ic-step{background-color:var(--ic-status-info-contrast)}/*!@.step-icon-inner .check-icon*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step{padding-top:var(--ic-space-xxs)}/*!@.step-icon-inner .check-icon svg*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step svg.sc-ic-step{width:var(--ic-space-md);height:auto}/*!@.step-icon-inner .check-icon > svg > path*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step>svg.sc-ic-step>path.sc-ic-step{fill:var(--ic-color-white-text)}@media (forced-colors: active){/*!@.compact-step-disabled :is(.step-title, .step-status)*/.compact-step-disabled.sc-ic-step .sc-ic-step:is(.step-title,.step-status).sc-ic-step{color:GrayText}/*!@.step-connect:not(.disabled .step-connect)*/.step-connect.sc-ic-step:not(.disabled .step-connect).sc-ic-step{border:var(--ic-hc-border)}/*!@.active .step-icon-inner,\n .completed .step-icon-inner,\n .current .step-icon-inner*/.active.sc-ic-step .step-icon-inner.sc-ic-step,.completed.sc-ic-step .step-icon-inner.sc-ic-step,.current.sc-ic-step .step-icon-inner.sc-ic-step{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}/*!@:host(.default) .current .step-icon*/.default.sc-ic-step-h .current.sc-ic-step .step-icon.sc-ic-step{padding:0;border:none}/*!@.disabled,\n .disabled .step-title-area*/.disabled.sc-ic-step,.disabled.sc-ic-step .step-title-area.sc-ic-step{color:GrayText}/*!@.step-connect-inner,\n .completed .step-connect*/.step-connect-inner.sc-ic-step,.completed.sc-ic-step .step-connect.sc-ic-step{background-color:canvastext}/*!@.step-icon-inner .check-icon > svg > path*/.step-icon-inner.sc-ic-step .check-icon.sc-ic-step>svg.sc-ic-step>path.sc-ic-step{fill:canvastext}}";
|
24644
25028
|
|
24645
25029
|
class Step {
|
24646
25030
|
constructor(hostRef) {
|
@@ -24667,6 +25051,7 @@ class Step {
|
|
24667
25051
|
}
|
24668
25052
|
}
|
24669
25053
|
render() {
|
25054
|
+
var _a;
|
24670
25055
|
// ARIA LABEL
|
24671
25056
|
let ariaLabel = "";
|
24672
25057
|
if (this.stepType === "completed") {
|
@@ -24757,6 +25142,8 @@ class Step {
|
|
24757
25142
|
["aligned-full-width"]: this.el.parentElement.classList.contains("default") &&
|
24758
25143
|
!this.el.parentElement.classList.contains("aligned-left"),
|
24759
25144
|
[`${this.variant}`]: true,
|
25145
|
+
["light"]: ((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.appearance) ===
|
25146
|
+
"light",
|
24760
25147
|
} }, this.variant === "compact" ? compactStep : defaultStep));
|
24761
25148
|
}
|
24762
25149
|
get el() { return getElement(this); }
|
@@ -24969,6 +25356,7 @@ class Stepper {
|
|
24969
25356
|
this.stepTypes = [];
|
24970
25357
|
this.variantOverride = this.variant !== "compact";
|
24971
25358
|
this.aligned = "full-width";
|
25359
|
+
this.appearance = "default";
|
24972
25360
|
this.connectorWidth = 100;
|
24973
25361
|
this.hideStepInfo = false;
|
24974
25362
|
this.variant = "default";
|
@@ -25003,6 +25391,7 @@ class Stepper {
|
|
25003
25391
|
"$tagName$": "ic-stepper",
|
25004
25392
|
"$members$": {
|
25005
25393
|
"aligned": [1],
|
25394
|
+
"appearance": [1],
|
25006
25395
|
"connectorWidth": [2, "connector-width"],
|
25007
25396
|
"hideStepInfo": [4, "hide-step-info"],
|
25008
25397
|
"variant": [1025],
|
@@ -25214,7 +25603,7 @@ class Tab {
|
|
25214
25603
|
["ic-tab-light"]: appearance === IcThemeForegroundEnum$1.Light,
|
25215
25604
|
["selected"]: selected,
|
25216
25605
|
["disabled"]: disabled,
|
25217
|
-
}, role: "tab", "aria-selected": selected ? "true" : "false", onClick: this.handleClick, onFocus: this.handleFocus, onMouseDown: this.handleMouseDown, "aria-disabled": disabled ? "true" : "false", tabindex: this.selected ? 0 : -1 }, this.el.querySelector('[slot="icon"]') && hAsync("slot", { name: "icon" }), hAsync("ic-typography", { class: "ic-tab-label", variant: "label" }, hAsync("span", null, hAsync("slot", null))), isSlotUsed(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
25606
|
+
}, role: "tab", "aria-selected": selected ? "true" : "false", onClick: this.handleClick, onFocus: this.handleFocus, onMouseDown: this.handleMouseDown, "aria-disabled": disabled ? "true" : "false", tabindex: this.selected ? 0 : -1 }, this.el.querySelector('[slot="icon"]') && hAsync("slot", { name: "icon" }), hAsync("ic-typography", { class: "ic-tab-label", variant: "label" }, hAsync("span", null, hAsync("slot", null))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
25218
25607
|
}
|
25219
25608
|
get el() { return getElement(this); }
|
25220
25609
|
static get watchers() { return {
|
@@ -25619,6 +26008,7 @@ class TabPanel {
|
|
25619
26008
|
const icTextFieldCss = "/*!@html*/html.sc-ic-text-field{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-text-field{margin:0}/*!@main*/main.sc-ic-text-field{display:block}/*!@h1*/h1.sc-ic-text-field{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-text-field{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-text-field{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-text-field{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-text-field{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-text-field,strong.sc-ic-text-field{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-text-field,kbd.sc-ic-text-field,samp.sc-ic-text-field{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-text-field{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-text-field,sup.sc-ic-text-field{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-text-field{bottom:-0.25em}/*!@sup*/sup.sc-ic-text-field{top:-0.5em}/*!@img*/img.sc-ic-text-field{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-text-field,input.sc-ic-text-field,optgroup.sc-ic-text-field,select.sc-ic-text-field,textarea.sc-ic-text-field{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-text-field,input.sc-ic-text-field{overflow:visible}/*!@button,\nselect*/button.sc-ic-text-field,select.sc-ic-text-field{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-text-field,[type=\"button\"].sc-ic-text-field,[type=\"reset\"].sc-ic-text-field,[type=\"submit\"].sc-ic-text-field{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-text-field::-moz-focus-inner,[type=\"button\"].sc-ic-text-field::-moz-focus-inner,[type=\"reset\"].sc-ic-text-field::-moz-focus-inner,[type=\"submit\"].sc-ic-text-field::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-text-field:-moz-focusring,[type=\"button\"].sc-ic-text-field:-moz-focusring,[type=\"reset\"].sc-ic-text-field:-moz-focusring,[type=\"submit\"].sc-ic-text-field:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-text-field{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-text-field{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-text-field{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-text-field{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-text-field,[type=\"radio\"].sc-ic-text-field{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-text-field::-webkit-inner-spin-button,[type=\"number\"].sc-ic-text-field::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-text-field{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-text-field::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-text-field::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-text-field{display:block}/*!@summary*/summary.sc-ic-text-field{display:list-item}/*!@template*/template.sc-ic-text-field{display:none}/*!@[hidden]*/[hidden].sc-ic-text-field{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-text-field,body.sc-ic-text-field,div.sc-ic-text-field,span.sc-ic-text-field,applet.sc-ic-text-field,object.sc-ic-text-field,iframe.sc-ic-text-field,h1.sc-ic-text-field,h2.sc-ic-text-field,h3.sc-ic-text-field,h4.sc-ic-text-field,h5.sc-ic-text-field,h6.sc-ic-text-field,p.sc-ic-text-field,blockquote.sc-ic-text-field,pre.sc-ic-text-field,a.sc-ic-text-field,abbr.sc-ic-text-field,acronym.sc-ic-text-field,address.sc-ic-text-field,big.sc-ic-text-field,cite.sc-ic-text-field,code.sc-ic-text-field,del.sc-ic-text-field,dfn.sc-ic-text-field,em.sc-ic-text-field,img.sc-ic-text-field,ins.sc-ic-text-field,kbd.sc-ic-text-field,q.sc-ic-text-field,s.sc-ic-text-field,samp.sc-ic-text-field,small.sc-ic-text-field,strike.sc-ic-text-field,strong.sc-ic-text-field,sub.sc-ic-text-field,sup.sc-ic-text-field,tt.sc-ic-text-field,var.sc-ic-text-field,b.sc-ic-text-field,u.sc-ic-text-field,i.sc-ic-text-field,center.sc-ic-text-field,dl.sc-ic-text-field,dt.sc-ic-text-field,dd.sc-ic-text-field,ol.sc-ic-text-field,ul.sc-ic-text-field,li.sc-ic-text-field,fieldset.sc-ic-text-field,form.sc-ic-text-field,label.sc-ic-text-field,legend.sc-ic-text-field,table.sc-ic-text-field,caption.sc-ic-text-field,tbody.sc-ic-text-field,tfoot.sc-ic-text-field,thead.sc-ic-text-field,tr.sc-ic-text-field,th.sc-ic-text-field,td.sc-ic-text-field,article.sc-ic-text-field,aside.sc-ic-text-field,canvas.sc-ic-text-field,details.sc-ic-text-field,embed.sc-ic-text-field,figure.sc-ic-text-field,figcaption.sc-ic-text-field,footer.sc-ic-text-field,header.sc-ic-text-field,hgroup.sc-ic-text-field,menu.sc-ic-text-field,nav.sc-ic-text-field,output.sc-ic-text-field,ruby.sc-ic-text-field,section.sc-ic-text-field,summary.sc-ic-text-field,time.sc-ic-text-field,mark.sc-ic-text-field,audio.sc-ic-text-field,video.sc-ic-text-field{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-text-field-h{display:block}/*!@:host(.fullwidth)*/.fullwidth.sc-ic-text-field-h{width:100%}/*!@::-moz-placeholder*/.sc-ic-text-field::-moz-placeholder{color:var(--ic-color-tertiary-text);opacity:1}/*!@::placeholder*/.sc-ic-text-field::placeholder{color:var(--ic-color-tertiary-text);opacity:1}/*!@input,\ntextarea*/input.sc-ic-text-field,textarea.sc-ic-text-field{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs)}/*!@textarea*/textarea.sc-ic-text-field{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}/*!@input:focus,\ntextarea:focus*/input.sc-ic-text-field:focus,textarea.sc-ic-text-field:focus{border:0;outline:0}/*!@input:disabled,\ntextarea:disabled*/input.sc-ic-text-field:disabled,textarea.sc-ic-text-field:disabled{color:var(--ic-architectural-200)}/*!@input.readonly,\ntextarea.readonly*/input.readonly.sc-ic-text-field,textarea.readonly.sc-ic-text-field{color:var(--ic-color-primary-text)}/*!@input::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button*/input.sc-ic-text-field::-webkit-outer-spin-button,input.sc-ic-text-field::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}/*!@input[type=\"number\"]*/input[type=\"number\"].sc-ic-text-field{-moz-appearance:textfield}/*!@textarea.no-resize*/textarea.no-resize.sc-ic-text-field{resize:none}/*!@.maxlengthtext*/.maxlengthtext.sc-ic-text-field{color:var(--ic-color-secondary-text)}/*!@.no-left-pad*/.no-left-pad.sc-ic-text-field{padding-left:0}/*!@::slotted([slot=\"icon\"])*/.sc-ic-text-field-s>[slot=\"icon\"]{fill:var(--ic-color-tertiary-text)}/*!@.has-value ::slotted([slot=\"icon\"])*/.has-value .sc-ic-text-field-s>[slot=\"icon\"]{fill:var(--ic-color-primary-text)}/*!@.charcount*/.charcount.sc-ic-text-field{margin-right:calc(-1 * var(--ic-space-xxxs))}/*!@input[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration,\ninput[type=\"search\"]::-webkit-search-results-button,\ninput[type=\"search\"]::-webkit-search-results-decoration*/input[type=\"search\"].sc-ic-text-field::-webkit-search-cancel-button,input[type=\"search\"].sc-ic-text-field::-webkit-search-decoration,input[type=\"search\"].sc-ic-text-field::-webkit-search-results-button,input[type=\"search\"].sc-ic-text-field::-webkit-search-results-decoration{display:none}/*!@input[type=\"search\"].truncate-value*/input[type=\"search\"].truncate-value.sc-ic-text-field{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){/*!@input.readonly,\n textarea.readonly*/input.readonly.sc-ic-text-field,textarea.readonly.sc-ic-text-field{color:canvastext}/*!@.has-value ::slotted([slot=\"icon\"])*/.has-value .sc-ic-text-field-s>[slot=\"icon\"]{fill:currentcolor}}";
|
25620
26009
|
|
25621
26010
|
let inputIds = 0;
|
26011
|
+
const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA$1, "title"];
|
25622
26012
|
/**
|
25623
26013
|
* @slot icon - Content will be placed to the left of the text input.
|
25624
26014
|
*/
|
@@ -25633,6 +26023,7 @@ class TextField {
|
|
25633
26023
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
25634
26024
|
this.inheritedAttributes = {};
|
25635
26025
|
this.showLeftIcon = this.hasLeftIconSlot();
|
26026
|
+
this.hostMutationObserver = null;
|
25636
26027
|
this.getMaxLengthExceeded = (value) => {
|
25637
26028
|
this.numChars = value.length;
|
25638
26029
|
if (this.type === "number") {
|
@@ -25689,6 +26080,15 @@ class TextField {
|
|
25689
26080
|
this.handleFormReset = () => {
|
25690
26081
|
this.value = this.initialValue;
|
25691
26082
|
};
|
26083
|
+
// triggered when attributes of host element change
|
26084
|
+
this.hostMutationCallback = (mutationList) => {
|
26085
|
+
mutationList.forEach(({ attributeName }) => {
|
26086
|
+
if (MUTABLE_ATTRIBUTES.includes(attributeName)) {
|
26087
|
+
this.inheritedAttributes[attributeName] =
|
26088
|
+
this.el.getAttribute(attributeName);
|
26089
|
+
}
|
26090
|
+
});
|
26091
|
+
};
|
25692
26092
|
this.numChars = 0;
|
25693
26093
|
this.maxCharactersReached = false;
|
25694
26094
|
this.maxCharactersError = false;
|
@@ -25752,7 +26152,9 @@ class TextField {
|
|
25752
26152
|
this.debounceChanged();
|
25753
26153
|
}
|
25754
26154
|
disconnectedCallback() {
|
26155
|
+
var _a;
|
25755
26156
|
removeFormResetListener$1(this.el, this.handleFormReset);
|
26157
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
25756
26158
|
}
|
25757
26159
|
componentWillLoad() {
|
25758
26160
|
if (this.value !== this.initialValue) {
|
@@ -25760,10 +26162,7 @@ class TextField {
|
|
25760
26162
|
}
|
25761
26163
|
this.getMaxLengthExceeded(this.value);
|
25762
26164
|
this.getMaxCharactersReached(this.value);
|
25763
|
-
this.inheritedAttributes = inheritAttributes$1(this.el,
|
25764
|
-
...IC_INHERITED_ARIA$1,
|
25765
|
-
"title",
|
25766
|
-
]);
|
26165
|
+
this.inheritedAttributes = inheritAttributes$1(this.el, MUTABLE_ATTRIBUTES);
|
25767
26166
|
if (this.readonly) {
|
25768
26167
|
this.maxLengthExceeded = false;
|
25769
26168
|
this.maxValueExceeded = false;
|
@@ -25777,6 +26176,10 @@ class TextField {
|
|
25777
26176
|
if (this.validationInlineInternal) {
|
25778
26177
|
this.getInlineValidationText();
|
25779
26178
|
}
|
26179
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
26180
|
+
this.hostMutationObserver.observe(this.el, {
|
26181
|
+
attributes: true,
|
26182
|
+
});
|
25780
26183
|
}
|
25781
26184
|
handleKeyDown(ev) {
|
25782
26185
|
this.icKeydown.emit({ event: ev });
|
@@ -25843,15 +26246,15 @@ class TextField {
|
|
25843
26246
|
return (hAsync(Host, { class: { ["fullwidth"]: fullWidth } }, hAsync("ic-input-container", { readonly: readonly, disabled: disabledMode }, !this.hideLabel && (hAsync("ic-input-label", { for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), hAsync("ic-input-component-container", { size: small ? "small" : size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, this.showLeftIcon && (hAsync("span", { class: {
|
25844
26247
|
["readonly"]: readonly,
|
25845
26248
|
["has-value"]: value.length > 0,
|
25846
|
-
}, slot: "left-icon" }, hAsync("slot", { name: "icon" }))), !multiline
|
26249
|
+
}, slot: "left-icon" }, hAsync("slot", { name: "icon" }))), !multiline ? (hAsync("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: this.type, min: min, max: max, value: value, class: {
|
25847
26250
|
["no-left-pad"]: !this.showLeftIcon && readonly,
|
25848
26251
|
["readonly"]: readonly,
|
25849
26252
|
["truncate-value"]: truncateValue,
|
25850
|
-
}, 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, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes)))
|
26253
|
+
}, 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, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))) : (hAsync("textarea", Object.assign({ id: inputId, class: {
|
25851
26254
|
["no-resize"]: resize === false || readonly,
|
25852
26255
|
["no-left-pad"]: !this.showLeftIcon && readonly,
|
25853
26256
|
["readonly"]: readonly,
|
25854
|
-
}, 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, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))), isSlotUsed(this.el, "clear-button") && (hAsync("slot", { name: "clear-button" })), isSlotUsed(this.el, "search-submit-button") && (hAsync("slot", { name: "search-submit-button" }))), isSlotUsed(this.el, "menu") && hAsync("slot", { name: "menu" }), (!isEmptyString$1(validationStatus) ||
|
26257
|
+
}, 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, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))), isSlotUsed$1(this.el, "clear-button") && (hAsync("slot", { name: "clear-button" })), isSlotUsed$1(this.el, "search-submit-button") && (hAsync("slot", { name: "search-submit-button" }))), isSlotUsed$1(this.el, "menu") && hAsync("slot", { name: "menu" }), (!isEmptyString$1(validationStatus) ||
|
25855
26258
|
!isEmptyString$1(validationText) ||
|
25856
26259
|
maxNumChars > 0 ||
|
25857
26260
|
maxValueExceeded ||
|
@@ -25945,28 +26348,19 @@ class Theme {
|
|
25945
26348
|
}
|
25946
26349
|
};
|
25947
26350
|
this.setThemeColor = () => {
|
25948
|
-
|
25949
|
-
|
25950
|
-
const
|
25951
|
-
|
25952
|
-
|
25953
|
-
}
|
25954
|
-
|
25955
|
-
|
25956
|
-
}
|
25957
|
-
this.setThemeRGBA(colorRGBA);
|
25958
|
-
}
|
25959
|
-
};
|
25960
|
-
this.setThemeRGBA = (colorRGBA) => {
|
25961
|
-
if (colorRGBA !== null) {
|
25962
|
-
const root = document.documentElement;
|
25963
|
-
root.style.setProperty("--ic-theme-primary-r", colorRGBA.r.toString());
|
25964
|
-
root.style.setProperty("--ic-theme-primary-g", colorRGBA.g.toString());
|
25965
|
-
root.style.setProperty("--ic-theme-primary-b", colorRGBA.b.toString());
|
25966
|
-
root.style.setProperty("--ic-theme-primary-a", colorRGBA.a.toString());
|
26351
|
+
const colorRGBA = convertToRGBA(this.color);
|
26352
|
+
if (colorRGBA) {
|
26353
|
+
const { r, g, b, a } = colorRGBA;
|
26354
|
+
const { style } = document.documentElement;
|
26355
|
+
style.setProperty("--ic-theme-primary-r", `${r}`);
|
26356
|
+
style.setProperty("--ic-theme-primary-g", `${g}`);
|
26357
|
+
style.setProperty("--ic-theme-primary-b", `${b}`);
|
26358
|
+
style.setProperty("--ic-theme-primary-a", `${a}`);
|
25967
26359
|
this.checkThemeColorContrast();
|
25968
|
-
|
25969
|
-
|
26360
|
+
this.themeChange.emit({
|
26361
|
+
mode: getThemeForegroundColor(),
|
26362
|
+
color: colorRGBA,
|
26363
|
+
});
|
25970
26364
|
}
|
25971
26365
|
};
|
25972
26366
|
this.color = null;
|
@@ -26035,10 +26429,10 @@ class Toast {
|
|
26035
26429
|
this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);
|
26036
26430
|
if (this.autoDismissTimeout < 5000)
|
26037
26431
|
this.autoDismissTimeout = 5000;
|
26038
|
-
if (isSlotUsed(this.el, "action"))
|
26432
|
+
if (isSlotUsed$1(this.el, "action"))
|
26039
26433
|
this.dismissMode = "manual";
|
26040
26434
|
this.isManual = this.dismissMode === "manual";
|
26041
|
-
if (isSlotUsed(this.el, "neutral-icon"))
|
26435
|
+
if (isSlotUsed$1(this.el, "neutral-icon"))
|
26042
26436
|
this.variant = "neutral";
|
26043
26437
|
if (this.variant === "neutral") {
|
26044
26438
|
this.neutralVariantLabel =
|
@@ -26057,7 +26451,7 @@ class Toast {
|
|
26057
26451
|
}
|
26058
26452
|
componentDidLoad() {
|
26059
26453
|
onComponentRequiredPropUndefined$1([{ prop: this.heading, propName: "heading" }], "Toast");
|
26060
|
-
const actionContent = getSlot(this.el, "action");
|
26454
|
+
const actionContent = getSlot$1(this.el, "action");
|
26061
26455
|
const dismissButton = this.el.shadowRoot.querySelector("ic-button");
|
26062
26456
|
if (actionContent)
|
26063
26457
|
this.interactiveElements.push(actionContent);
|
@@ -26147,8 +26541,8 @@ class Toast {
|
|
26147
26541
|
[`divider-${variant}`]: true,
|
26148
26542
|
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { class: {
|
26149
26543
|
["toast-content"]: true,
|
26150
|
-
["no-icon"]: variant === "neutral" && !isSlotUsed(this.el, "neutral-icon"),
|
26151
|
-
} }, hAsync("div", { class: "toast-message" }, hAsync("ic-typography", { variant: "subtitle-large" }, visible && hAsync("h5", null, heading)), message && (hAsync("ic-typography", { variant: "body" }, visible && hAsync("p", null, message)))), isSlotUsed(this.el, "action") && (hAsync("div", { class: "toast-action-container" }, hAsync("slot", { name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", appearance: "light", size: "icon", progress: this.timerProgress })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum$1.Light, "aria-label": dismissButtonAriaLabel })))));
|
26544
|
+
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
26545
|
+
} }, hAsync("div", { class: "toast-message" }, hAsync("ic-typography", { variant: "subtitle-large" }, visible && hAsync("h5", null, heading)), message && (hAsync("ic-typography", { variant: "body" }, visible && hAsync("p", null, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { class: "toast-action-container" }, hAsync("slot", { name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", appearance: "light", size: "icon", progress: this.timerProgress })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon", appearance: IcThemeForegroundEnum$1.Light, "aria-label": dismissButtonAriaLabel })))));
|
26152
26546
|
}
|
26153
26547
|
get el() { return getElement(this); }
|
26154
26548
|
static get style() { return icToastCss; }
|
@@ -26294,7 +26688,7 @@ class ToggleButton {
|
|
26294
26688
|
["icon"]: this.variant === "icon",
|
26295
26689
|
[`${this.size}`]: true,
|
26296
26690
|
["loading"]: this.loading,
|
26297
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { "aria-pressed": this.toggleChecked.toString(), variant: this.variant === "icon" ? "icon" : "secondary", onClick: this.handleClick, title: this.accessibleLabel, "aria-label": `${this.accessibleLabel ? this.accessibleLabel : this.label}, ${this.toggleChecked ? "ticked" : "unticked"}`, disabled: this.disabled, appearance: this.appearance, size: this.size, fullWidth: this.fullWidth, loading: this.loading, "aria-disabled": `${this.disabled}` }, this.variant !== "icon" && this.label, hAsync("slot", null), isSlotUsed(this.el, "icon") && (hAsync("slot", { name: "icon", slot: `${this.iconPlacement ? `${this.iconPlacement}-icon` : "icon"}` })), isSlotUsed(this.el, "badge") && (hAsync("slot", { name: "badge", slot: "badge" })))));
|
26691
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { "aria-pressed": this.toggleChecked.toString(), variant: this.variant === "icon" ? "icon" : "secondary", onClick: this.handleClick, title: this.accessibleLabel, "aria-label": `${this.accessibleLabel ? this.accessibleLabel : this.label}, ${this.toggleChecked ? "ticked" : "unticked"}`, disabled: this.disabled, appearance: this.appearance, size: this.size, fullWidth: this.fullWidth, loading: this.loading, "aria-disabled": `${this.disabled}` }, this.variant !== "icon" && this.label, hAsync("slot", null), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { name: "icon", slot: `${this.iconPlacement ? `${this.iconPlacement}-icon` : "icon"}` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { name: "badge", slot: "badge" })))));
|
26298
26692
|
}
|
26299
26693
|
static get delegatesFocus() { return true; }
|
26300
26694
|
get el() { return getElement(this); }
|
@@ -26515,7 +26909,7 @@ class ToggleButtonGroup {
|
|
26515
26909
|
}; }
|
26516
26910
|
}
|
26517
26911
|
|
26518
|
-
const icTooltipCss = "/*!@html*/html.sc-ic-tooltip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-tooltip{margin:0}/*!@main*/main.sc-ic-tooltip{display:block}/*!@h1*/h1.sc-ic-tooltip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-tooltip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-tooltip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-tooltip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-tooltip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-tooltip,strong.sc-ic-tooltip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-tooltip,kbd.sc-ic-tooltip,samp.sc-ic-tooltip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-tooltip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-tooltip,sup.sc-ic-tooltip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-tooltip{bottom:-0.25em}/*!@sup*/sup.sc-ic-tooltip{top:-0.5em}/*!@img*/img.sc-ic-tooltip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-tooltip,input.sc-ic-tooltip,optgroup.sc-ic-tooltip,select.sc-ic-tooltip,textarea.sc-ic-tooltip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-tooltip,input.sc-ic-tooltip{overflow:visible}/*!@button,\nselect*/button.sc-ic-tooltip,select.sc-ic-tooltip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-tooltip,[type=\"button\"].sc-ic-tooltip,[type=\"reset\"].sc-ic-tooltip,[type=\"submit\"].sc-ic-tooltip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-tooltip::-moz-focus-inner,[type=\"button\"].sc-ic-tooltip::-moz-focus-inner,[type=\"reset\"].sc-ic-tooltip::-moz-focus-inner,[type=\"submit\"].sc-ic-tooltip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-tooltip:-moz-focusring,[type=\"button\"].sc-ic-tooltip:-moz-focusring,[type=\"reset\"].sc-ic-tooltip:-moz-focusring,[type=\"submit\"].sc-ic-tooltip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-tooltip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-tooltip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-tooltip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-tooltip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-tooltip,[type=\"radio\"].sc-ic-tooltip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-tooltip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-tooltip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-tooltip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-tooltip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-tooltip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-tooltip{display:block}/*!@summary*/summary.sc-ic-tooltip{display:list-item}/*!@template*/template.sc-ic-tooltip{display:none}/*!@[hidden]*/[hidden].sc-ic-tooltip{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-tooltip,body.sc-ic-tooltip,div.sc-ic-tooltip,span.sc-ic-tooltip,applet.sc-ic-tooltip,object.sc-ic-tooltip,iframe.sc-ic-tooltip,h1.sc-ic-tooltip,h2.sc-ic-tooltip,h3.sc-ic-tooltip,h4.sc-ic-tooltip,h5.sc-ic-tooltip,h6.sc-ic-tooltip,p.sc-ic-tooltip,blockquote.sc-ic-tooltip,pre.sc-ic-tooltip,a.sc-ic-tooltip,abbr.sc-ic-tooltip,acronym.sc-ic-tooltip,address.sc-ic-tooltip,big.sc-ic-tooltip,cite.sc-ic-tooltip,code.sc-ic-tooltip,del.sc-ic-tooltip,dfn.sc-ic-tooltip,em.sc-ic-tooltip,img.sc-ic-tooltip,ins.sc-ic-tooltip,kbd.sc-ic-tooltip,q.sc-ic-tooltip,s.sc-ic-tooltip,samp.sc-ic-tooltip,small.sc-ic-tooltip,strike.sc-ic-tooltip,strong.sc-ic-tooltip,sub.sc-ic-tooltip,sup.sc-ic-tooltip,tt.sc-ic-tooltip,var.sc-ic-tooltip,b.sc-ic-tooltip,u.sc-ic-tooltip,i.sc-ic-tooltip,center.sc-ic-tooltip,dl.sc-ic-tooltip,dt.sc-ic-tooltip,dd.sc-ic-tooltip,ol.sc-ic-tooltip,ul.sc-ic-tooltip,li.sc-ic-tooltip,fieldset.sc-ic-tooltip,form.sc-ic-tooltip,label.sc-ic-tooltip,legend.sc-ic-tooltip,table.sc-ic-tooltip,caption.sc-ic-tooltip,tbody.sc-ic-tooltip,tfoot.sc-ic-tooltip,thead.sc-ic-tooltip,tr.sc-ic-tooltip,th.sc-ic-tooltip,td.sc-ic-tooltip,article.sc-ic-tooltip,aside.sc-ic-tooltip,canvas.sc-ic-tooltip,details.sc-ic-tooltip,embed.sc-ic-tooltip,figure.sc-ic-tooltip,figcaption.sc-ic-tooltip,footer.sc-ic-tooltip,header.sc-ic-tooltip,hgroup.sc-ic-tooltip,menu.sc-ic-tooltip,nav.sc-ic-tooltip,output.sc-ic-tooltip,ruby.sc-ic-tooltip,section.sc-ic-tooltip,summary.sc-ic-tooltip,time.sc-ic-tooltip,mark.sc-ic-tooltip,audio.sc-ic-tooltip,video.sc-ic-tooltip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.ic-tooltip) .ic-tooltip-container*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{background-color:var(--ic-architectural-800);color:#ffff;text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-architectural-40);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay)}/*!@:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed))\n .ic-tooltip-container,\n:host(.tooltip-disabled) .ic-tooltip-container*/.tooltip-navigation-item.sc-ic-tooltip-h:not(.tooltip-navigation-item-side-nav-collapsed) .ic-tooltip-container.sc-ic-tooltip,.tooltip-disabled.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{display:none !important}/*!@:host(.tooltip-long-label-navigation-item-side-nav-expanded)\n .ic-tooltip-container[data-show]*/.tooltip-long-label-navigation-item-side-nav-expanded.sc-ic-tooltip-h .ic-tooltip-container[data-show].sc-ic-tooltip{display:block !important}/*!@:host(.ic-tooltip) .ic-tooltip-arrow,\n:host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip,.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{position:absolute;background:inherit}/*!@:host(.ic-tooltip) .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-architectural-40);width:100%;height:100%}/*!@:host(.ic-tooltip) .ic-tooltip-container[data-show]*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-show].sc-ic-tooltip{display:block}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"top\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"top\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{height:var(--ic-space-xxxs)}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"top\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"top\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"bottom\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"bottom\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"bottom\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"bottom\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"left\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"left\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"left\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"left\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"right\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"right\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"right\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"right\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}/*!@:host(.on-dialog) .ic-tooltip-container*/.on-dialog.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{transform:translate(\n var(--tooltip-translate-x),\n var(--tooltip-translate-y)\n ) !important}@media screen and (max-width: 576px){/*!@:host(.ic-tooltip) .ic-tooltip-container*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{max-width:18.875rem}}@media (forced-colors: active){/*!@:host(.ic-tooltip) .ic-tooltip-container,\n :host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip,.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{border:var(--ic-hc-border)}}";
|
26912
|
+
const icTooltipCss = "/*!@html*/html.sc-ic-tooltip{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-tooltip{margin:0}/*!@main*/main.sc-ic-tooltip{display:block}/*!@h1*/h1.sc-ic-tooltip{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-tooltip{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-tooltip{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-tooltip{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-tooltip{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-tooltip,strong.sc-ic-tooltip{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-tooltip,kbd.sc-ic-tooltip,samp.sc-ic-tooltip{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-tooltip{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-tooltip,sup.sc-ic-tooltip{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-tooltip{bottom:-0.25em}/*!@sup*/sup.sc-ic-tooltip{top:-0.5em}/*!@img*/img.sc-ic-tooltip{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-tooltip,input.sc-ic-tooltip,optgroup.sc-ic-tooltip,select.sc-ic-tooltip,textarea.sc-ic-tooltip{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-tooltip,input.sc-ic-tooltip{overflow:visible}/*!@button,\nselect*/button.sc-ic-tooltip,select.sc-ic-tooltip{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-tooltip,[type=\"button\"].sc-ic-tooltip,[type=\"reset\"].sc-ic-tooltip,[type=\"submit\"].sc-ic-tooltip{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-tooltip::-moz-focus-inner,[type=\"button\"].sc-ic-tooltip::-moz-focus-inner,[type=\"reset\"].sc-ic-tooltip::-moz-focus-inner,[type=\"submit\"].sc-ic-tooltip::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-tooltip:-moz-focusring,[type=\"button\"].sc-ic-tooltip:-moz-focusring,[type=\"reset\"].sc-ic-tooltip:-moz-focusring,[type=\"submit\"].sc-ic-tooltip:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-tooltip{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-tooltip{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-tooltip{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-tooltip{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-tooltip,[type=\"radio\"].sc-ic-tooltip{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-tooltip::-webkit-inner-spin-button,[type=\"number\"].sc-ic-tooltip::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-tooltip{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-tooltip::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-tooltip::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-tooltip{display:block}/*!@summary*/summary.sc-ic-tooltip{display:list-item}/*!@template*/template.sc-ic-tooltip{display:none}/*!@[hidden]*/[hidden].sc-ic-tooltip{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-tooltip,body.sc-ic-tooltip,div.sc-ic-tooltip,span.sc-ic-tooltip,applet.sc-ic-tooltip,object.sc-ic-tooltip,iframe.sc-ic-tooltip,h1.sc-ic-tooltip,h2.sc-ic-tooltip,h3.sc-ic-tooltip,h4.sc-ic-tooltip,h5.sc-ic-tooltip,h6.sc-ic-tooltip,p.sc-ic-tooltip,blockquote.sc-ic-tooltip,pre.sc-ic-tooltip,a.sc-ic-tooltip,abbr.sc-ic-tooltip,acronym.sc-ic-tooltip,address.sc-ic-tooltip,big.sc-ic-tooltip,cite.sc-ic-tooltip,code.sc-ic-tooltip,del.sc-ic-tooltip,dfn.sc-ic-tooltip,em.sc-ic-tooltip,img.sc-ic-tooltip,ins.sc-ic-tooltip,kbd.sc-ic-tooltip,q.sc-ic-tooltip,s.sc-ic-tooltip,samp.sc-ic-tooltip,small.sc-ic-tooltip,strike.sc-ic-tooltip,strong.sc-ic-tooltip,sub.sc-ic-tooltip,sup.sc-ic-tooltip,tt.sc-ic-tooltip,var.sc-ic-tooltip,b.sc-ic-tooltip,u.sc-ic-tooltip,i.sc-ic-tooltip,center.sc-ic-tooltip,dl.sc-ic-tooltip,dt.sc-ic-tooltip,dd.sc-ic-tooltip,ol.sc-ic-tooltip,ul.sc-ic-tooltip,li.sc-ic-tooltip,fieldset.sc-ic-tooltip,form.sc-ic-tooltip,label.sc-ic-tooltip,legend.sc-ic-tooltip,table.sc-ic-tooltip,caption.sc-ic-tooltip,tbody.sc-ic-tooltip,tfoot.sc-ic-tooltip,thead.sc-ic-tooltip,tr.sc-ic-tooltip,th.sc-ic-tooltip,td.sc-ic-tooltip,article.sc-ic-tooltip,aside.sc-ic-tooltip,canvas.sc-ic-tooltip,details.sc-ic-tooltip,embed.sc-ic-tooltip,figure.sc-ic-tooltip,figcaption.sc-ic-tooltip,footer.sc-ic-tooltip,header.sc-ic-tooltip,hgroup.sc-ic-tooltip,menu.sc-ic-tooltip,nav.sc-ic-tooltip,output.sc-ic-tooltip,ruby.sc-ic-tooltip,section.sc-ic-tooltip,summary.sc-ic-tooltip,time.sc-ic-tooltip,mark.sc-ic-tooltip,audio.sc-ic-tooltip,video.sc-ic-tooltip{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host(.ic-tooltip)*/.ic-tooltip.sc-ic-tooltip-h{width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}/*!@:host(.ic-tooltip) .ic-tooltip-container*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{background-color:var(--ic-architectural-800);color:#ffff;text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-architectural-40);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay)}/*!@:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed))\n .ic-tooltip-container,\n:host(.tooltip-disabled) .ic-tooltip-container*/.tooltip-navigation-item.sc-ic-tooltip-h:not(.tooltip-navigation-item-side-nav-collapsed) .ic-tooltip-container.sc-ic-tooltip,.tooltip-disabled.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{display:none !important}/*!@:host(.tooltip-long-label-navigation-item-side-nav-expanded)\n .ic-tooltip-container[data-show]*/.tooltip-long-label-navigation-item-side-nav-expanded.sc-ic-tooltip-h .ic-tooltip-container[data-show].sc-ic-tooltip{display:block !important}/*!@:host(.ic-tooltip) .ic-tooltip-arrow,\n:host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip,.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{position:absolute;background:inherit}/*!@:host(.ic-tooltip) .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}/*!@:host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-architectural-40);width:100%;height:100%}/*!@:host(.ic-tooltip) .ic-tooltip-container[data-show]*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-show].sc-ic-tooltip{display:block}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"top\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"top\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{height:var(--ic-space-xxxs)}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"top\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"top\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"bottom\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"bottom\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"bottom\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"bottom\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"left\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"left\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"left\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"left\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"right\"]\n > .ic-tooltip-arrow*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"right\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}/*!@:host(.ic-tooltip)\n .ic-tooltip-container[data-popper-placement^=\"right\"]\n > .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container[data-popper-placement^=\"right\"].sc-ic-tooltip>.ic-tooltip-arrow.sc-ic-tooltip::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}/*!@:host(.on-dialog) .ic-tooltip-container*/.on-dialog.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{transform:translate(\n var(--tooltip-translate-x),\n var(--tooltip-translate-y)\n ) !important}@media screen and (max-width: 576px){/*!@:host(.ic-tooltip) .ic-tooltip-container*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip{max-width:18.875rem}}@media (forced-colors: active){/*!@:host(.ic-tooltip) .ic-tooltip-container,\n :host(.ic-tooltip) .ic-tooltip-arrow::before*/.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-container.sc-ic-tooltip,.ic-tooltip.sc-ic-tooltip-h .ic-tooltip-arrow.sc-ic-tooltip::before{border:var(--ic-hc-border)}}";
|
26519
26913
|
|
26520
26914
|
class Tooltip {
|
26521
26915
|
constructor(hostRef) {
|
@@ -26759,7 +27153,7 @@ class TopNavigation {
|
|
26759
27153
|
this.searchBar = null;
|
26760
27154
|
this.initialiseSearchBar = () => {
|
26761
27155
|
if (this.hasSearchSlotContent) {
|
26762
|
-
const slot = getSlot(this.el, "search");
|
27156
|
+
const slot = getSlot$1(this.el, "search");
|
26763
27157
|
if ((slot === null || slot === void 0 ? void 0 : slot.tagName) === "IC-SEARCH-BAR") {
|
26764
27158
|
this.searchBar = slot;
|
26765
27159
|
}
|
@@ -26838,23 +27232,23 @@ class TopNavigation {
|
|
26838
27232
|
}
|
26839
27233
|
}
|
26840
27234
|
componentWillLoad() {
|
26841
|
-
this.hasAppIcon = isSlotUsed(this.el, "app-icon");
|
26842
|
-
this.hasNavigation = isSlotUsed(this.el, "navigation");
|
26843
|
-
this.hasIconButtons = isSlotUsed(this.el, "buttons");
|
26844
|
-
this.hasSearchSlotContent = isSlotUsed(this.el, "search");
|
27235
|
+
this.hasAppIcon = isSlotUsed$1(this.el, "app-icon");
|
27236
|
+
this.hasNavigation = isSlotUsed$1(this.el, "navigation");
|
27237
|
+
this.hasIconButtons = isSlotUsed$1(this.el, "buttons");
|
27238
|
+
this.hasSearchSlotContent = isSlotUsed$1(this.el, "search");
|
26845
27239
|
this.deviceSize = getCurrentDeviceSize();
|
26846
27240
|
this.initialiseSearchBar();
|
26847
27241
|
}
|
26848
27242
|
componentDidLoad() {
|
26849
27243
|
checkResizeObserver$1(this.runResizeObserver);
|
26850
|
-
!isSlotUsed(this.el, "app-title") &&
|
27244
|
+
!isSlotUsed$1(this.el, "app-title") &&
|
26851
27245
|
onComponentRequiredPropUndefined$1([{ prop: this.appTitle, propName: "app-title" }], "Top Navigation");
|
26852
27246
|
}
|
26853
27247
|
componentWillRender() {
|
26854
|
-
this.hasNavigation = isSlotUsed(this.el, "navigation");
|
26855
|
-
this.hasSearchSlotContent = isSlotUsed(this.el, "search");
|
26856
|
-
this.hasIconButtons = isSlotUsed(this.el, "buttons");
|
26857
|
-
this.hasAppIcon = isSlotUsed(this.el, "app-icon");
|
27248
|
+
this.hasNavigation = isSlotUsed$1(this.el, "navigation");
|
27249
|
+
this.hasSearchSlotContent = isSlotUsed$1(this.el, "search");
|
27250
|
+
this.hasIconButtons = isSlotUsed$1(this.el, "buttons");
|
27251
|
+
this.hasAppIcon = isSlotUsed$1(this.el, "app-icon");
|
26858
27252
|
}
|
26859
27253
|
navBarMenuCloseHandler() {
|
26860
27254
|
this.showNavMenu(false);
|
@@ -26916,8 +27310,8 @@ class TopNavigation {
|
|
26916
27310
|
: "h3";
|
26917
27311
|
const mobileSearchButtonTitle = `${mobileSearchBarVisible ? "Hide" : "Show"} search`;
|
26918
27312
|
const menuSize = deviceSize <= DEVICE_SIZES.S ? "small" : "default";
|
26919
|
-
const shortAppTitleSlot = isSlotUsed(el, "short-app-title");
|
26920
|
-
const hasAppTitleSlot = isSlotUsed(el, "app-title");
|
27313
|
+
const shortAppTitleSlot = isSlotUsed$1(el, "short-app-title");
|
27314
|
+
const hasAppTitleSlot = isSlotUsed$1(el, "app-title");
|
26921
27315
|
const Component = hasAppTitleSlot ? "div" : "a";
|
26922
27316
|
const attrs = Component == "a" && {
|
26923
27317
|
href: href,
|
@@ -26964,7 +27358,7 @@ class TopNavigation {
|
|
26964
27358
|
}; }
|
26965
27359
|
}
|
26966
27360
|
|
26967
|
-
const icTypographyCss = "/*!@html*/html.sc-ic-typography{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-typography{margin:0}/*!@main*/main.sc-ic-typography{display:block}/*!@h1*/h1.sc-ic-typography{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-typography{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-typography{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-typography{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-typography{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-typography,strong.sc-ic-typography{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-typography,kbd.sc-ic-typography,samp.sc-ic-typography{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-typography{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-typography,sup.sc-ic-typography{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-typography{bottom:-0.25em}/*!@sup*/sup.sc-ic-typography{top:-0.5em}/*!@img*/img.sc-ic-typography{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-typography,input.sc-ic-typography,optgroup.sc-ic-typography,select.sc-ic-typography,textarea.sc-ic-typography{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-typography,input.sc-ic-typography{overflow:visible}/*!@button,\nselect*/button.sc-ic-typography,select.sc-ic-typography{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-typography,[type=\"button\"].sc-ic-typography,[type=\"reset\"].sc-ic-typography,[type=\"submit\"].sc-ic-typography{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-typography::-moz-focus-inner,[type=\"button\"].sc-ic-typography::-moz-focus-inner,[type=\"reset\"].sc-ic-typography::-moz-focus-inner,[type=\"submit\"].sc-ic-typography::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-typography:-moz-focusring,[type=\"button\"].sc-ic-typography:-moz-focusring,[type=\"reset\"].sc-ic-typography:-moz-focusring,[type=\"submit\"].sc-ic-typography:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-typography{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-typography{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-typography{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-typography{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-typography,[type=\"radio\"].sc-ic-typography{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-typography::-webkit-inner-spin-button,[type=\"number\"].sc-ic-typography::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-typography{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-typography::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-typography::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-typography{display:block}/*!@summary*/summary.sc-ic-typography{display:list-item}/*!@template*/template.sc-ic-typography{display:none}/*!@[hidden]*/[hidden].sc-ic-typography{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-typography,body.sc-ic-typography,div.sc-ic-typography,span.sc-ic-typography,applet.sc-ic-typography,object.sc-ic-typography,iframe.sc-ic-typography,h1.sc-ic-typography,h2.sc-ic-typography,h3.sc-ic-typography,h4.sc-ic-typography,h5.sc-ic-typography,h6.sc-ic-typography,p.sc-ic-typography,blockquote.sc-ic-typography,pre.sc-ic-typography,a.sc-ic-typography,abbr.sc-ic-typography,acronym.sc-ic-typography,address.sc-ic-typography,big.sc-ic-typography,cite.sc-ic-typography,code.sc-ic-typography,del.sc-ic-typography,dfn.sc-ic-typography,em.sc-ic-typography,img.sc-ic-typography,ins.sc-ic-typography,kbd.sc-ic-typography,q.sc-ic-typography,s.sc-ic-typography,samp.sc-ic-typography,small.sc-ic-typography,strike.sc-ic-typography,strong.sc-ic-typography,sub.sc-ic-typography,sup.sc-ic-typography,tt.sc-ic-typography,var.sc-ic-typography,b.sc-ic-typography,u.sc-ic-typography,i.sc-ic-typography,center.sc-ic-typography,dl.sc-ic-typography,dt.sc-ic-typography,dd.sc-ic-typography,ol.sc-ic-typography,ul.sc-ic-typography,li.sc-ic-typography,fieldset.sc-ic-typography,form.sc-ic-typography,label.sc-ic-typography,legend.sc-ic-typography,table.sc-ic-typography,caption.sc-ic-typography,tbody.sc-ic-typography,tfoot.sc-ic-typography,thead.sc-ic-typography,tr.sc-ic-typography,th.sc-ic-typography,td.sc-ic-typography,article.sc-ic-typography,aside.sc-ic-typography,canvas.sc-ic-typography,details.sc-ic-typography,embed.sc-ic-typography,figure.sc-ic-typography,figcaption.sc-ic-typography,footer.sc-ic-typography,header.sc-ic-typography,hgroup.sc-ic-typography,menu.sc-ic-typography,nav.sc-ic-typography,output.sc-ic-typography,ruby.sc-ic-typography,section.sc-ic-typography,summary.sc-ic-typography,time.sc-ic-typography,mark.sc-ic-typography,audio.sc-ic-typography,video.sc-ic-typography{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-typography-h{display:block;position:relative}/*!@:host(.ic-typography-vertical-margins-h1)*/.ic-typography-vertical-margins-h1.sc-ic-typography-h{margin:0 0 var(--ic-space-xl)}/*!@:host(.ic-typography-vertical-margins-h2)*/.ic-typography-vertical-margins-h2.sc-ic-typography-h{margin:var(--ic-space-xxl) 0 var(--ic-space-lg)}/*!@:host(.ic-typography-vertical-margins-h3)*/.ic-typography-vertical-margins-h3.sc-ic-typography-h{margin:var(--ic-space-xl) 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-h4)*/.ic-typography-vertical-margins-h4.sc-ic-typography-h{margin:var(--ic-space-lg) 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-subtitle-large),\n:host(.ic-typography-vertical-margins-subtitle-small),\n:host(.ic-typography-vertical-margins-body),\n:host(.ic-typography-vertical-margins-code-large),\n:host(.ic-typography-vertical-margins-code-small),\n:host(.ic-typography-vertical-margins-code-extra-small)*/.ic-typography-vertical-margins-subtitle-large.sc-ic-typography-h,.ic-typography-vertical-margins-subtitle-small.sc-ic-typography-h,.ic-typography-vertical-margins-body.sc-ic-typography-h,.ic-typography-vertical-margins-code-large.sc-ic-typography-h,.ic-typography-vertical-margins-code-small.sc-ic-typography-h,.ic-typography-vertical-margins-code-extra-small.sc-ic-typography-h{margin:0 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-caption),\n:host(.ic-typography-vertical-margins-caption-uppercase)*/.ic-typography-vertical-margins-caption.sc-ic-typography-h,.ic-typography-vertical-margins-caption-uppercase.sc-ic-typography-h{margin:0 0 var(--ic-space-xs)}/*!@:host(.ic-typography-vertical-margins-h2:first-child),\n:host(.ic-typography-vertical-margins-h3:first-child),\n:host(.ic-typography-vertical-margins-h4:first-child)*/.ic-typography-vertical-margins-h2.sc-ic-typography-h:first-child,.ic-typography-vertical-margins-h3.sc-ic-typography-h:first-child,.ic-typography-vertical-margins-h4.sc-ic-typography-h:first-child{margin-top:0}/*!@:host(.ic-typography-h1)*/.ic-typography-h1.sc-ic-typography-h{font:var(--ic-font-h1) !important}/*!@:host(.ic-typography-h2)*/.ic-typography-h2.sc-ic-typography-h{font:var(--ic-font-h2);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-h3)*/.ic-typography-h3.sc-ic-typography-h{font:var(--ic-font-h3)}/*!@:host(.ic-typography-h4)*/.ic-typography-h4.sc-ic-typography-h{font:var(--ic-font-h4);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-subtitle-large)*/.ic-typography-subtitle-large.sc-ic-typography-h{font:var(--ic-font-subtitle-large);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-subtitle-small)*/.ic-typography-subtitle-small.sc-ic-typography-h{font:var(--ic-font-subtitle-small);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-body)*/.ic-typography-body.sc-ic-typography-h{font:var(--ic-font-body);letter-spacing:var(--ic-font-letter-spacing-0pt005)}/*!@:host(.ic-typography-caption)*/.ic-typography-caption.sc-ic-typography-h{font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-caption-uppercase)*/.ic-typography-caption-uppercase.sc-ic-typography-h{font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025);text-transform:uppercase}/*!@:host(.ic-typography-label)*/.ic-typography-label.sc-ic-typography-h{font:var(--ic-font-label);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-label-uppercase)*/.ic-typography-label-uppercase.sc-ic-typography-h{font:var(--ic-font-label);letter-spacing:var(--ic-font-letter-spacing-0pt025);text-transform:uppercase}/*!@:host(.ic-typography-code-large)*/.ic-typography-code-large.sc-ic-typography-h{font:var(--ic-font-code-large);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-code-small)*/.ic-typography-code-small.sc-ic-typography-h{font:var(--ic-font-code-small);letter-spacing:var(--ic-font-letter-spacing-0pt005)}/*!@:host(.ic-typography-code-extra-small)*/.ic-typography-code-extra-small.sc-ic-typography-h{font:var(--ic-font-code-extra-small);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-badge)*/.ic-typography-badge.sc-ic-typography-h{font:var(--ic-font-badge);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-badge-small)*/.ic-typography-badge-small.sc-ic-typography-h{font:var(--ic-font-badge-small);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-no-wrap)*/.ic-typography-no-wrap.sc-ic-typography-h{white-space:nowrap}/*!@:host ::slotted(h1),\n:host ::slotted(h2),\n:host ::slotted(h3),\n:host ::slotted(h4),\n:host ::slotted(h5),\n:host ::slotted(h6),\n:host ::slotted(p),\n:host ::slotted(label)*/.sc-ic-typography-h .sc-ic-typography-s>h1,.sc-ic-typography-h.sc-ic-typography-s>h2,.sc-ic-typography-h .sc-ic-typography-s>h2,.sc-ic-typography-h.sc-ic-typography-s>h3,.sc-ic-typography-h .sc-ic-typography-s>h3,.sc-ic-typography-h.sc-ic-typography-s>h4,.sc-ic-typography-h .sc-ic-typography-s>h4,.sc-ic-typography-h.sc-ic-typography-s>h5,.sc-ic-typography-h .sc-ic-typography-s>h5,.sc-ic-typography-h.sc-ic-typography-s>h6,.sc-ic-typography-h .sc-ic-typography-s>h6,.sc-ic-typography-h.sc-ic-typography-s>p,.sc-ic-typography-h .sc-ic-typography-s>p,.sc-ic-typography-h.sc-ic-typography-s>label,.sc-ic-typography-h .sc-ic-typography-s>label{font:inherit;letter-spacing:inherit}/*!@.trunc-wrapper*/.trunc-wrapper.sc-ic-typography{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:var(--truncation-max-lines, initial);-webkit-line-clamp:var(--truncation-max-lines, initial);overflow:hidden}/*!@.trunc-btn*/.trunc-btn.sc-ic-typography{border:none;background:none;padding:0;color:var(--ic-color-primary-text);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}/*!@.trunc-btn:hover,\n.trunc-btn.focus*/.trunc-btn.sc-ic-typography:hover,.trunc-btn.focus.sc-ic-typography{outline:none;border-bottom:var(--ic-space-xxs) solid !important;margin-bottom:calc(-1 * var(--ic-space-xxs)) !important;text-decoration:none;cursor:pointer}/*!@:host(.strikethrough)*/.strikethrough.sc-ic-typography-h{text-decoration:line-through}/*!@:host(.underline)*/.underline.sc-ic-typography-h{text-decoration:underline}/*!@:host(.underline.strikethrough)*/.underline.strikethrough.sc-ic-typography-h{text-decoration:line-through underline}/*!@:host(.italic)*/.italic.sc-ic-typography-h{font-style:italic !important}/*!@:host(.bold)*/.bold.sc-ic-typography-h{font-weight:var(--ic-font-weight-bold)}@supports (text-decoration-thickness: 25%){/*!@.trunc-btn:hover,\n .trunc-btn.focus*/.trunc-btn.sc-ic-typography:hover,.trunc-btn.focus.sc-ic-typography{text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:25%;border-bottom:0 !important;margin-bottom:0 !important}}";
|
27361
|
+
const icTypographyCss = "/*!@html*/html.sc-ic-typography{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-typography{margin:0}/*!@main*/main.sc-ic-typography{display:block}/*!@h1*/h1.sc-ic-typography{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-typography{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-typography{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-typography{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-typography{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-typography,strong.sc-ic-typography{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-typography,kbd.sc-ic-typography,samp.sc-ic-typography{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-typography{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-typography,sup.sc-ic-typography{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-typography{bottom:-0.25em}/*!@sup*/sup.sc-ic-typography{top:-0.5em}/*!@img*/img.sc-ic-typography{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-typography,input.sc-ic-typography,optgroup.sc-ic-typography,select.sc-ic-typography,textarea.sc-ic-typography{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-typography,input.sc-ic-typography{overflow:visible}/*!@button,\nselect*/button.sc-ic-typography,select.sc-ic-typography{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-typography,[type=\"button\"].sc-ic-typography,[type=\"reset\"].sc-ic-typography,[type=\"submit\"].sc-ic-typography{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-typography::-moz-focus-inner,[type=\"button\"].sc-ic-typography::-moz-focus-inner,[type=\"reset\"].sc-ic-typography::-moz-focus-inner,[type=\"submit\"].sc-ic-typography::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-typography:-moz-focusring,[type=\"button\"].sc-ic-typography:-moz-focusring,[type=\"reset\"].sc-ic-typography:-moz-focusring,[type=\"submit\"].sc-ic-typography:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-typography{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-typography{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-typography{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-typography{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-typography,[type=\"radio\"].sc-ic-typography{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-typography::-webkit-inner-spin-button,[type=\"number\"].sc-ic-typography::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-typography{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-typography::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-typography::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-typography{display:block}/*!@summary*/summary.sc-ic-typography{display:list-item}/*!@template*/template.sc-ic-typography{display:none}/*!@[hidden]*/[hidden].sc-ic-typography{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-typography,body.sc-ic-typography,div.sc-ic-typography,span.sc-ic-typography,applet.sc-ic-typography,object.sc-ic-typography,iframe.sc-ic-typography,h1.sc-ic-typography,h2.sc-ic-typography,h3.sc-ic-typography,h4.sc-ic-typography,h5.sc-ic-typography,h6.sc-ic-typography,p.sc-ic-typography,blockquote.sc-ic-typography,pre.sc-ic-typography,a.sc-ic-typography,abbr.sc-ic-typography,acronym.sc-ic-typography,address.sc-ic-typography,big.sc-ic-typography,cite.sc-ic-typography,code.sc-ic-typography,del.sc-ic-typography,dfn.sc-ic-typography,em.sc-ic-typography,img.sc-ic-typography,ins.sc-ic-typography,kbd.sc-ic-typography,q.sc-ic-typography,s.sc-ic-typography,samp.sc-ic-typography,small.sc-ic-typography,strike.sc-ic-typography,strong.sc-ic-typography,sub.sc-ic-typography,sup.sc-ic-typography,tt.sc-ic-typography,var.sc-ic-typography,b.sc-ic-typography,u.sc-ic-typography,i.sc-ic-typography,center.sc-ic-typography,dl.sc-ic-typography,dt.sc-ic-typography,dd.sc-ic-typography,ol.sc-ic-typography,ul.sc-ic-typography,li.sc-ic-typography,fieldset.sc-ic-typography,form.sc-ic-typography,label.sc-ic-typography,legend.sc-ic-typography,table.sc-ic-typography,caption.sc-ic-typography,tbody.sc-ic-typography,tfoot.sc-ic-typography,thead.sc-ic-typography,tr.sc-ic-typography,th.sc-ic-typography,td.sc-ic-typography,article.sc-ic-typography,aside.sc-ic-typography,canvas.sc-ic-typography,details.sc-ic-typography,embed.sc-ic-typography,figure.sc-ic-typography,figcaption.sc-ic-typography,footer.sc-ic-typography,header.sc-ic-typography,hgroup.sc-ic-typography,menu.sc-ic-typography,nav.sc-ic-typography,output.sc-ic-typography,ruby.sc-ic-typography,section.sc-ic-typography,summary.sc-ic-typography,time.sc-ic-typography,mark.sc-ic-typography,audio.sc-ic-typography,video.sc-ic-typography{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-typography-h{display:block;position:relative}/*!@:host(.ic-typography-vertical-margins-h1)*/.ic-typography-vertical-margins-h1.sc-ic-typography-h{margin:0 0 var(--ic-space-xl)}/*!@:host(.ic-typography-vertical-margins-h2)*/.ic-typography-vertical-margins-h2.sc-ic-typography-h{margin:var(--ic-space-xxl) 0 var(--ic-space-lg)}/*!@:host(.ic-typography-vertical-margins-h3)*/.ic-typography-vertical-margins-h3.sc-ic-typography-h{margin:var(--ic-space-xl) 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-h4)*/.ic-typography-vertical-margins-h4.sc-ic-typography-h{margin:var(--ic-space-lg) 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-subtitle-large),\n:host(.ic-typography-vertical-margins-subtitle-small),\n:host(.ic-typography-vertical-margins-body),\n:host(.ic-typography-vertical-margins-code-large),\n:host(.ic-typography-vertical-margins-code-small),\n:host(.ic-typography-vertical-margins-code-extra-small)*/.ic-typography-vertical-margins-subtitle-large.sc-ic-typography-h,.ic-typography-vertical-margins-subtitle-small.sc-ic-typography-h,.ic-typography-vertical-margins-body.sc-ic-typography-h,.ic-typography-vertical-margins-code-large.sc-ic-typography-h,.ic-typography-vertical-margins-code-small.sc-ic-typography-h,.ic-typography-vertical-margins-code-extra-small.sc-ic-typography-h{margin:0 0 var(--ic-space-md)}/*!@:host(.ic-typography-vertical-margins-caption),\n:host(.ic-typography-vertical-margins-caption-uppercase)*/.ic-typography-vertical-margins-caption.sc-ic-typography-h,.ic-typography-vertical-margins-caption-uppercase.sc-ic-typography-h{margin:0 0 var(--ic-space-xs)}/*!@:host(.ic-typography-vertical-margins-h2:first-child),\n:host(.ic-typography-vertical-margins-h3:first-child),\n:host(.ic-typography-vertical-margins-h4:first-child)*/.ic-typography-vertical-margins-h2.sc-ic-typography-h:first-child,.ic-typography-vertical-margins-h3.sc-ic-typography-h:first-child,.ic-typography-vertical-margins-h4.sc-ic-typography-h:first-child{margin-top:0}/*!@:host(.ic-typography-h1)*/.ic-typography-h1.sc-ic-typography-h{font:var(--ic-font-h1) !important}/*!@:host(.ic-typography-h2)*/.ic-typography-h2.sc-ic-typography-h{font:var(--ic-font-h2);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-h3)*/.ic-typography-h3.sc-ic-typography-h{font:var(--ic-font-h3)}/*!@:host(.ic-typography-h4)*/.ic-typography-h4.sc-ic-typography-h{font:var(--ic-font-h4);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-subtitle-large)*/.ic-typography-subtitle-large.sc-ic-typography-h{font:var(--ic-font-subtitle-large);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-subtitle-small)*/.ic-typography-subtitle-small.sc-ic-typography-h{font:var(--ic-font-subtitle-small);letter-spacing:var(--ic-font-letter-spacing-0pt0015)}/*!@:host(.ic-typography-body)*/.ic-typography-body.sc-ic-typography-h{font:var(--ic-font-body);letter-spacing:var(--ic-font-letter-spacing-0pt005)}/*!@:host(.ic-typography-caption)*/.ic-typography-caption.sc-ic-typography-h{font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-caption-uppercase)*/.ic-typography-caption-uppercase.sc-ic-typography-h{font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025);text-transform:uppercase}/*!@:host(.ic-typography-label)*/.ic-typography-label.sc-ic-typography-h{font:var(--ic-font-label);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-label-uppercase)*/.ic-typography-label-uppercase.sc-ic-typography-h{font:var(--ic-font-label);letter-spacing:var(--ic-font-letter-spacing-0pt025);text-transform:uppercase}/*!@:host(.ic-typography-code-large)*/.ic-typography-code-large.sc-ic-typography-h{font:var(--ic-font-code-large);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-code-small)*/.ic-typography-code-small.sc-ic-typography-h{font:var(--ic-font-code-small);letter-spacing:var(--ic-font-letter-spacing-0pt005)}/*!@:host(.ic-typography-code-extra-small)*/.ic-typography-code-extra-small.sc-ic-typography-h{font:var(--ic-font-code-extra-small);letter-spacing:var(--ic-font-letter-spacing-0pt025)}/*!@:host(.ic-typography-badge)*/.ic-typography-badge.sc-ic-typography-h{font:var(--ic-font-badge);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-badge-small)*/.ic-typography-badge-small.sc-ic-typography-h{font:var(--ic-font-badge-small);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}/*!@:host(.ic-typography-no-wrap)*/.ic-typography-no-wrap.sc-ic-typography-h{white-space:nowrap}/*!@:host ::slotted(h1),\n:host ::slotted(h2),\n:host ::slotted(h3),\n:host ::slotted(h4),\n:host ::slotted(h5),\n:host ::slotted(h6),\n:host ::slotted(p),\n:host ::slotted(label)*/.sc-ic-typography-h .sc-ic-typography-s>h1,.sc-ic-typography-h.sc-ic-typography-s>h2,.sc-ic-typography-h .sc-ic-typography-s>h2,.sc-ic-typography-h.sc-ic-typography-s>h3,.sc-ic-typography-h .sc-ic-typography-s>h3,.sc-ic-typography-h.sc-ic-typography-s>h4,.sc-ic-typography-h .sc-ic-typography-s>h4,.sc-ic-typography-h.sc-ic-typography-s>h5,.sc-ic-typography-h .sc-ic-typography-s>h5,.sc-ic-typography-h.sc-ic-typography-s>h6,.sc-ic-typography-h .sc-ic-typography-s>h6,.sc-ic-typography-h.sc-ic-typography-s>p,.sc-ic-typography-h .sc-ic-typography-s>p,.sc-ic-typography-h.sc-ic-typography-s>label,.sc-ic-typography-h .sc-ic-typography-s>label{font:inherit;letter-spacing:inherit}/*!@.trunc-wrapper*/.trunc-wrapper.sc-ic-typography{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:var(--truncation-max-lines, initial);-webkit-line-clamp:var(--truncation-max-lines, initial);overflow:hidden}/*!@.trunc-btn*/.trunc-btn.sc-ic-typography{border:none;background:none;padding:0;color:var(--ic-color-primary-text);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}/*!@.trunc-btn:hover,\n.trunc-btn.focus*/.trunc-btn.sc-ic-typography:hover,.trunc-btn.focus.sc-ic-typography{outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none;cursor:pointer}/*!@:host(.strikethrough)*/.strikethrough.sc-ic-typography-h{text-decoration:line-through}/*!@:host(.underline)*/.underline.sc-ic-typography-h{text-decoration:underline}/*!@:host(.underline.strikethrough)*/.underline.strikethrough.sc-ic-typography-h{text-decoration:line-through underline}/*!@:host(.italic)*/.italic.sc-ic-typography-h{font-style:italic !important}/*!@:host(.bold)*/.bold.sc-ic-typography-h{font-weight:var(--ic-font-weight-bold)}@supports (text-decoration-thickness: 25%){/*!@.trunc-btn:hover,\n .trunc-btn.focus*/.trunc-btn.sc-ic-typography:hover,.trunc-btn.focus.sc-ic-typography{text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:25%;border-bottom:0 !important;margin-bottom:0 !important}}";
|
26968
27362
|
|
26969
27363
|
class Typography {
|
26970
27364
|
constructor(hostRef) {
|
@@ -27125,6 +27519,7 @@ registerComponents([
|
|
27125
27519
|
DataEntity,
|
27126
27520
|
DataRow,
|
27127
27521
|
DataTable,
|
27522
|
+
DataTableTitleBar,
|
27128
27523
|
DateInput,
|
27129
27524
|
DatePicker,
|
27130
27525
|
Dialog,
|