@ukic/canary-web-components 3.0.0-canary.32 → 3.0.0-canary.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-6f4b406b.js → helpers-f81fed28.js} +37 -1
- package/dist/cjs/helpers-f81fed28.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +6 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +28 -16
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/ic-calendar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +23 -2
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +11 -7
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +11 -8
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +3 -4
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +8 -4
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +20 -5
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +16 -14
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +24 -4
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-table-of-contents.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-time-input.cjs.entry.js +402 -100
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-time-selector.cjs.entry.js +722 -0
- package/dist/cjs/ic-time-selector.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +5 -5
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/{ic-toggle-button.cjs.entry.js → ic-toggle-button_2.cjs.entry.js} +276 -3
- package/dist/cjs/ic-toggle-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-tree-view.cjs.entry.js +4 -4
- package/dist/cjs/index-d337cd8a.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ic-calendar/ic-calendar.css +8 -6
- package/dist/collection/components/ic-calendar/ic-calendar.stories.js +13 -0
- package/dist/collection/components/ic-calendar/ic-calendar.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +10 -7
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +30 -6
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.css +21 -3
- package/dist/collection/components/ic-time-input/ic-time-input.js +436 -108
- package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js +62 -13
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js.map +1 -1
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js +2 -0
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -1
- package/dist/collection/components/ic-time-selector/ic-time-selector.css +293 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.js +928 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.js.map +1 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.stories.js +192 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.stories.js.map +1 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.types.js +2 -0
- package/dist/collection/components/ic-time-selector/ic-time-selector.types.js.map +1 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +2 -2
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +3 -3
- package/dist/collection/utils/helpers.js +35 -0
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers2.js +36 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-alert.js +7 -2
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-button2.js +4 -4
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-calendar2.js +1 -1
- package/dist/components/ic-calendar2.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +24 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-data-row.js +1 -1
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +10 -7
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-input-validation2.js +4 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +27 -13
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu2.js +1 -1
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +11 -6
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination2.js +9 -4
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-skeleton.js +23 -6
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-step.js +17 -15
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +24 -4
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +4 -4
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-time-input.js +432 -113
- package/dist/components/ic-time-input.js.map +1 -1
- package/dist/components/ic-time-selector.d.ts +11 -0
- package/dist/components/ic-time-selector.js +776 -0
- package/dist/components/ic-time-selector.js.map +1 -0
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +5 -5
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +1 -299
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/{esm/ic-toggle-button-group.entry.js → components/ic-toggle-button-group2.js} +70 -13
- package/dist/components/ic-toggle-button-group2.js.map +1 -0
- package/dist/components/ic-toggle-button.js +1 -228
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/{esm/ic-toggle-button.entry.js → components/ic-toggle-button2.js} +67 -12
- package/dist/components/ic-toggle-button2.js.map +1 -0
- package/dist/components/ic-tree-item.js +2 -2
- package/dist/components/ic-tree-view.js +4 -4
- package/dist/core/core.css +28 -6
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-b80b08ae.entry.js → p-08f24329.entry.js} +2 -2
- package/dist/core/{p-96177a74.entry.js → p-0bca234b.entry.js} +2 -2
- package/dist/core/{p-96177a74.entry.js.map → p-0bca234b.entry.js.map} +1 -1
- package/dist/core/{p-615d474e.entry.js → p-14b8bf37.entry.js} +2 -2
- package/dist/core/{p-81f12581.entry.js → p-169ad948.entry.js} +2 -2
- package/dist/core/{p-5254a078.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/{p-5254a078.entry.js.map → p-1be17f22.entry.js.map} +1 -1
- package/dist/core/{p-847cbb16.entry.js → p-1d166343.entry.js} +2 -2
- package/dist/core/{p-15c05eb8.entry.js → p-1dbefb37.entry.js} +2 -2
- package/dist/core/p-1dbefb37.entry.js.map +1 -0
- package/dist/core/{p-b4bfaf8f.entry.js → p-201b41c7.entry.js} +2 -2
- package/dist/core/{p-24bac55f.entry.js → p-33509a89.entry.js} +2 -2
- package/dist/core/{p-e1920777.entry.js → p-3389625c.entry.js} +2 -2
- package/dist/core/{p-5a1cfb3c.entry.js → p-344752cb.entry.js} +2 -2
- package/dist/core/{p-6c238418.entry.js → p-348d7080.entry.js} +2 -2
- package/dist/core/{p-3ef2e98d.entry.js → p-39cdf5db.entry.js} +2 -2
- package/dist/core/{p-775b8dba.entry.js → p-409d03b2.entry.js} +2 -2
- package/dist/core/{p-775b8dba.entry.js.map → p-409d03b2.entry.js.map} +1 -1
- package/dist/core/p-492991ad.entry.js +2 -0
- package/dist/core/p-492991ad.entry.js.map +1 -0
- package/dist/core/{p-fd20470e.entry.js → p-496b314f.entry.js} +2 -2
- package/dist/core/{p-bd9a76d8.entry.js → p-508b6da3.entry.js} +2 -2
- package/dist/core/p-53dad961.entry.js +2 -0
- package/dist/core/p-53dad961.entry.js.map +1 -0
- package/dist/core/p-551a0fc1.entry.js +2 -0
- package/dist/core/p-551a0fc1.entry.js.map +1 -0
- package/dist/core/{p-f5cea10d.entry.js → p-5e6687a8.entry.js} +2 -2
- package/dist/core/{p-72171192.entry.js → p-60f4fe3a.entry.js} +2 -2
- package/dist/core/p-61c92598.entry.js +2 -0
- package/dist/core/p-61c92598.entry.js.map +1 -0
- package/dist/core/p-691dd972.entry.js +2 -0
- package/dist/core/p-691dd972.entry.js.map +1 -0
- package/dist/core/{p-c6c87e58.entry.js → p-6dfe0922.entry.js} +2 -2
- package/dist/core/{p-fd7f3b58.entry.js → p-770e92cd.entry.js} +2 -2
- package/dist/core/{p-7cf6b428.entry.js → p-79ead0e7.entry.js} +2 -2
- package/dist/core/{p-285892ef.entry.js → p-7b4b45cf.entry.js} +2 -2
- package/dist/core/p-7c4d6b13.entry.js +2 -0
- package/dist/core/p-7c4d6b13.entry.js.map +1 -0
- package/dist/core/{p-af821831.entry.js → p-7d878ad7.entry.js} +2 -2
- package/dist/core/p-7d878ad7.entry.js.map +1 -0
- package/dist/core/{p-afedcfdb.entry.js → p-7efdbab8.entry.js} +2 -2
- package/dist/core/p-829b34f9.js +2 -0
- package/dist/core/p-829b34f9.js.map +1 -0
- package/dist/core/{p-9a9605c3.entry.js → p-879c180d.entry.js} +2 -2
- package/dist/core/{p-444cd8d3.entry.js → p-8ab37b4d.entry.js} +2 -2
- package/dist/core/{p-31f3fb15.entry.js → p-8d42a6e5.entry.js} +2 -2
- package/dist/core/{p-31f3fb15.entry.js.map → p-8d42a6e5.entry.js.map} +1 -1
- package/dist/core/{p-c87cc0d1.entry.js → p-939025af.entry.js} +2 -2
- package/dist/core/{p-5a4344cb.entry.js → p-9dea5764.entry.js} +2 -2
- package/dist/core/{p-ffc1cea6.entry.js → p-a58cf6fd.entry.js} +2 -2
- package/dist/core/p-a58cf6fd.entry.js.map +1 -0
- package/dist/core/{p-53740194.entry.js → p-a8310dfd.entry.js} +2 -2
- package/dist/core/p-a8310dfd.entry.js.map +1 -0
- package/dist/core/{p-90611726.entry.js → p-a8a92e54.entry.js} +2 -2
- package/dist/core/{p-2646a629.entry.js → p-b76fdade.entry.js} +2 -2
- package/dist/core/{p-2646a629.entry.js.map → p-b76fdade.entry.js.map} +1 -1
- package/dist/core/{p-04cb17d7.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/{p-04cb17d7.entry.js.map → p-b9459ba2.entry.js.map} +1 -1
- package/dist/core/p-bb3db366.entry.js +2 -0
- package/dist/core/p-bb3db366.entry.js.map +1 -0
- package/dist/core/p-bc6e5d64.entry.js +2 -0
- package/dist/core/p-bc6e5d64.entry.js.map +1 -0
- package/dist/core/{p-2188b483.entry.js → p-c0a7eed7.entry.js} +2 -2
- package/dist/core/{p-2bd2f38b.entry.js → p-c0b227d2.entry.js} +2 -2
- package/dist/core/{p-7a0f62c2.entry.js → p-c4b2774d.entry.js} +2 -2
- package/dist/core/{p-7026afad.entry.js → p-ca05573a.entry.js} +2 -2
- package/dist/core/{p-8c580d88.entry.js → p-d0607a70.entry.js} +2 -2
- package/dist/core/{p-adde6c66.entry.js → p-d376858f.entry.js} +2 -2
- package/dist/core/{p-adde6c66.entry.js.map → p-d376858f.entry.js.map} +1 -1
- package/dist/core/{p-e00e67ff.entry.js → p-dbd9a403.entry.js} +2 -2
- package/dist/core/{p-e00e67ff.entry.js.map → p-dbd9a403.entry.js.map} +1 -1
- package/dist/core/p-df064c8b.entry.js +2 -0
- package/dist/core/p-df064c8b.entry.js.map +1 -0
- package/dist/core/{p-e4ef4263.js → p-e519f607.js} +2 -2
- package/dist/core/{p-3f0bce15.entry.js → p-e5c6d01a.entry.js} +2 -2
- package/dist/core/{p-04a9f82f.entry.js → p-e8db8772.entry.js} +2 -2
- package/dist/core/{p-e4b82731.entry.js → p-ea04103e.entry.js} +2 -2
- package/dist/core/p-eac60693.entry.js +2 -0
- package/dist/core/p-eac60693.entry.js.map +1 -0
- package/dist/core/{p-8e592393.entry.js → p-ecc7fd71.entry.js} +2 -2
- package/dist/core/{p-6cfba272.entry.js → p-efe260f0.entry.js} +2 -2
- package/dist/core/{p-b6d6b26e.entry.js → p-f1b57f91.entry.js} +2 -2
- package/dist/core/{p-e4551a38.entry.js → p-f5dc04f7.entry.js} +2 -2
- package/dist/core/{p-25280383.entry.js → p-fb07921b.entry.js} +2 -2
- package/dist/core/p-fb07921b.entry.js.map +1 -0
- package/dist/core/{p-1900c7c7.entry.js → p-fd08156a.entry.js} +2 -2
- package/dist/core/{p-3594922d.entry.js → p-fe5b51bb.entry.js} +2 -2
- package/dist/core/{p-ef5b6622.entry.js → p-ff618439.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-5419eb6c.js → helpers-063369f4.js} +2 -2
- package/dist/esm/{helpers-5419eb6c.js.map → helpers-063369f4.js.map} +1 -1
- package/dist/esm/{helpers-9f228880.js → helpers-a08b3f32.js} +37 -2
- package/dist/esm/helpers-a08b3f32.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +7 -3
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +29 -17
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-calendar_2.entry.js +2 -2
- package/dist/esm/ic-calendar_2.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +1 -1
- package/dist/esm/ic-card-vertical.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +24 -3
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +12 -8
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +1 -1
- package/dist/esm/ic-data-row.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +1 -1
- package/dist/esm/ic-data-table.entry.js +11 -8
- package/dist/esm/ic-data-table.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-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 +4 -5
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-menu.entry.js +2 -2
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js +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 +9 -5
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +1 -1
- package/dist/esm/ic-radio-group.entry.js +1 -1
- package/dist/esm/ic-radio-option.entry.js +1 -1
- package/dist/esm/ic-search-bar.entry.js +1 -1
- package/dist/esm/ic-side-navigation.entry.js +1 -1
- package/dist/esm/ic-skeleton.entry.js +20 -5
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-step.entry.js +17 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +25 -5
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-table-of-contents.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-time-input.entry.js +402 -100
- package/dist/esm/ic-time-input.entry.js.map +1 -1
- package/dist/esm/ic-time-selector.entry.js +718 -0
- package/dist/esm/ic-time-selector.entry.js.map +1 -0
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +6 -6
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button_2.entry.js +449 -0
- package/dist/esm/ic-toggle-button_2.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +1 -1
- package/dist/esm/ic-tree-item.entry.js +3 -3
- package/dist/esm/ic-tree-view.entry.js +4 -4
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/index-a7a720e7.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-calendar/ic-calendar.stories.d.ts +20 -14
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +4 -0
- package/dist/types/components/ic-time-input/ic-time-input.d.ts +27 -7
- package/dist/types/components/ic-time-input/ic-time-input.stories.d.ts +31 -7
- package/dist/types/components/ic-time-input/test/helpers/ic-time-input.d.ts +1 -0
- package/dist/types/components/ic-time-selector/ic-time-selector.d.ts +80 -0
- package/dist/types/components/ic-time-selector/ic-time-selector.stories.d.ts +134 -0
- package/dist/types/components/ic-time-selector/ic-time-selector.types.d.ts +1 -0
- package/dist/types/components.d.ts +137 -11
- package/dist/types/utils/helpers.d.ts +14 -0
- package/dist/types/utils/types.d.ts +2 -2
- package/hydrate/index.js +1384 -201
- package/hydrate/index.mjs +1384 -201
- package/package.json +30 -30
- package/dist/cjs/helpers-6f4b406b.js.map +0 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +0 -267
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +0 -1
- package/dist/core/p-0043b019.entry.js +0 -2
- package/dist/core/p-0043b019.entry.js.map +0 -1
- package/dist/core/p-15c05eb8.entry.js.map +0 -1
- package/dist/core/p-25280383.entry.js.map +0 -1
- package/dist/core/p-2c86ce4b.entry.js +0 -2
- package/dist/core/p-2c86ce4b.entry.js.map +0 -1
- package/dist/core/p-3891ce53.entry.js +0 -2
- package/dist/core/p-3891ce53.entry.js.map +0 -1
- package/dist/core/p-4992e9ac.entry.js +0 -2
- package/dist/core/p-4992e9ac.entry.js.map +0 -1
- package/dist/core/p-53740194.entry.js.map +0 -1
- package/dist/core/p-5b32aaf3.entry.js +0 -2
- package/dist/core/p-5b32aaf3.entry.js.map +0 -1
- package/dist/core/p-80111272.entry.js +0 -2
- package/dist/core/p-80111272.entry.js.map +0 -1
- package/dist/core/p-9044539c.entry.js +0 -2
- package/dist/core/p-9044539c.entry.js.map +0 -1
- package/dist/core/p-9a95f428.entry.js +0 -2
- package/dist/core/p-9a95f428.entry.js.map +0 -1
- package/dist/core/p-af821831.entry.js.map +0 -1
- package/dist/core/p-ba75ed34.entry.js +0 -2
- package/dist/core/p-ba75ed34.entry.js.map +0 -1
- package/dist/core/p-c3eddb99.entry.js +0 -2
- package/dist/core/p-c3eddb99.entry.js.map +0 -1
- package/dist/core/p-f48ce5f6.js +0 -2
- package/dist/core/p-f48ce5f6.js.map +0 -1
- package/dist/core/p-ffc1cea6.entry.js.map +0 -1
- package/dist/esm/helpers-9f228880.js.map +0 -1
- package/dist/esm/ic-toggle-button-group.entry.js.map +0 -1
- package/dist/esm/ic-toggle-button.entry.js.map +0 -1
- /package/dist/core/{p-b80b08ae.entry.js.map → p-08f24329.entry.js.map} +0 -0
- /package/dist/core/{p-615d474e.entry.js.map → p-14b8bf37.entry.js.map} +0 -0
- /package/dist/core/{p-81f12581.entry.js.map → p-169ad948.entry.js.map} +0 -0
- /package/dist/core/{p-847cbb16.entry.js.map → p-1d166343.entry.js.map} +0 -0
- /package/dist/core/{p-b4bfaf8f.entry.js.map → p-201b41c7.entry.js.map} +0 -0
- /package/dist/core/{p-24bac55f.entry.js.map → p-33509a89.entry.js.map} +0 -0
- /package/dist/core/{p-e1920777.entry.js.map → p-3389625c.entry.js.map} +0 -0
- /package/dist/core/{p-5a1cfb3c.entry.js.map → p-344752cb.entry.js.map} +0 -0
- /package/dist/core/{p-6c238418.entry.js.map → p-348d7080.entry.js.map} +0 -0
- /package/dist/core/{p-3ef2e98d.entry.js.map → p-39cdf5db.entry.js.map} +0 -0
- /package/dist/core/{p-fd20470e.entry.js.map → p-496b314f.entry.js.map} +0 -0
- /package/dist/core/{p-bd9a76d8.entry.js.map → p-508b6da3.entry.js.map} +0 -0
- /package/dist/core/{p-f5cea10d.entry.js.map → p-5e6687a8.entry.js.map} +0 -0
- /package/dist/core/{p-72171192.entry.js.map → p-60f4fe3a.entry.js.map} +0 -0
- /package/dist/core/{p-c6c87e58.entry.js.map → p-6dfe0922.entry.js.map} +0 -0
- /package/dist/core/{p-fd7f3b58.entry.js.map → p-770e92cd.entry.js.map} +0 -0
- /package/dist/core/{p-7cf6b428.entry.js.map → p-79ead0e7.entry.js.map} +0 -0
- /package/dist/core/{p-285892ef.entry.js.map → p-7b4b45cf.entry.js.map} +0 -0
- /package/dist/core/{p-afedcfdb.entry.js.map → p-7efdbab8.entry.js.map} +0 -0
- /package/dist/core/{p-9a9605c3.entry.js.map → p-879c180d.entry.js.map} +0 -0
- /package/dist/core/{p-444cd8d3.entry.js.map → p-8ab37b4d.entry.js.map} +0 -0
- /package/dist/core/{p-c87cc0d1.entry.js.map → p-939025af.entry.js.map} +0 -0
- /package/dist/core/{p-5a4344cb.entry.js.map → p-9dea5764.entry.js.map} +0 -0
- /package/dist/core/{p-90611726.entry.js.map → p-a8a92e54.entry.js.map} +0 -0
- /package/dist/core/{p-2188b483.entry.js.map → p-c0a7eed7.entry.js.map} +0 -0
- /package/dist/core/{p-2bd2f38b.entry.js.map → p-c0b227d2.entry.js.map} +0 -0
- /package/dist/core/{p-7a0f62c2.entry.js.map → p-c4b2774d.entry.js.map} +0 -0
- /package/dist/core/{p-7026afad.entry.js.map → p-ca05573a.entry.js.map} +0 -0
- /package/dist/core/{p-8c580d88.entry.js.map → p-d0607a70.entry.js.map} +0 -0
- /package/dist/core/{p-e4ef4263.js.map → p-e519f607.js.map} +0 -0
- /package/dist/core/{p-3f0bce15.entry.js.map → p-e5c6d01a.entry.js.map} +0 -0
- /package/dist/core/{p-04a9f82f.entry.js.map → p-e8db8772.entry.js.map} +0 -0
- /package/dist/core/{p-e4b82731.entry.js.map → p-ea04103e.entry.js.map} +0 -0
- /package/dist/core/{p-8e592393.entry.js.map → p-ecc7fd71.entry.js.map} +0 -0
- /package/dist/core/{p-6cfba272.entry.js.map → p-efe260f0.entry.js.map} +0 -0
- /package/dist/core/{p-b6d6b26e.entry.js.map → p-f1b57f91.entry.js.map} +0 -0
- /package/dist/core/{p-e4551a38.entry.js.map → p-f5dc04f7.entry.js.map} +0 -0
- /package/dist/core/{p-1900c7c7.entry.js.map → p-fd08156a.entry.js.map} +0 -0
- /package/dist/core/{p-3594922d.entry.js.map → p-fe5b51bb.entry.js.map} +0 -0
- /package/dist/core/{p-ef5b6622.entry.js.map → p-ff618439.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -4210,6 +4210,10 @@ class Alert {
|
|
|
4210
4210
|
* If `true`, the alert will have a close icon at the end to dismiss it.
|
|
4211
4211
|
*/
|
|
4212
4212
|
this.dismissible = false;
|
|
4213
|
+
/**
|
|
4214
|
+
* The text in the dismiss button tooltip. Makes the user aware of the action resulting from clicking the 'Dismiss' button.
|
|
4215
|
+
*/
|
|
4216
|
+
this.dismissLabel = "Dismiss";
|
|
4213
4217
|
/**
|
|
4214
4218
|
* The optional title to display at the start of the alert.
|
|
4215
4219
|
*/
|
|
@@ -4279,7 +4283,7 @@ class Alert {
|
|
|
4279
4283
|
this.el.style.setProperty("--ic-alert-min-height", minHeight);
|
|
4280
4284
|
}
|
|
4281
4285
|
render() {
|
|
4282
|
-
const { variant, heading, message, titleAbove, dismissible, announced, visible, showDefaultIcon, theme, alertTitleWrap, dismissAction, } = this;
|
|
4286
|
+
const { variant, heading, message, titleAbove, dismissible, announced, visible, showDefaultIcon, theme, alertTitleWrap, dismissAction, dismissLabel, } = this;
|
|
4283
4287
|
const Icon = () => {
|
|
4284
4288
|
const iconClass = {
|
|
4285
4289
|
"alert-icon": true,
|
|
@@ -4306,7 +4310,7 @@ class Alert {
|
|
|
4306
4310
|
}, ref: (el) => (this.messageEl = el) }, heading && (hAsync("ic-typography", { class: {
|
|
4307
4311
|
"alert-title": true,
|
|
4308
4312
|
"alert-title-above": titleAbove || alertTitleWrap,
|
|
4309
|
-
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, 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: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon-tertiary", theme: "dark", title:
|
|
4313
|
+
}, variant: "subtitle-large", ref: (el) => (this.titleEl = el) }, 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: { "svg-container": true, "dismiss-icon": true }, innerHTML: closeIcon, onClick: dismissAction, variant: "icon-tertiary", theme: "dark", title: dismissLabel })))))));
|
|
4310
4314
|
}
|
|
4311
4315
|
get el() { return getElement(this); }
|
|
4312
4316
|
static get watchers() { return {
|
|
@@ -4319,6 +4323,7 @@ class Alert {
|
|
|
4319
4323
|
"$members$": {
|
|
4320
4324
|
"announced": [4],
|
|
4321
4325
|
"dismissible": [4],
|
|
4326
|
+
"dismissLabel": [1, "dismiss-label"],
|
|
4322
4327
|
"heading": [1],
|
|
4323
4328
|
"message": [1],
|
|
4324
4329
|
"showDefaultIcon": [4, "show-default-icon"],
|
|
@@ -5082,7 +5087,7 @@ var arrowDropdown$1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="non
|
|
|
5082
5087
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
|
5083
5088
|
</svg>`;
|
|
5084
5089
|
|
|
5085
|
-
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus,:host(.clock-button) .button:focus{box-shadow:none}:host(.clear-button) .button,:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:hover,:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
|
5090
|
+
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}.loading-indicator-icon-button{--circular-diameter:var(--ic-space-md)}:host(.ic-button-size-small) .loading-indicator-icon-button{--circular-diameter:calc(var(--ic-space-sm) + var(--ic-space-xxxs))}:host(.ic-button-size-large) .loading-indicator-icon-button{--circular-diameter:calc(var(--ic-space-sm) + var(--ic-space-xs))}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus,:host(.clock-button) .button:focus{box-shadow:none}:host(.clear-button) .button,:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:hover,:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
|
5086
5091
|
var IcButtonStyle0 = icButtonCss;
|
|
5087
5092
|
|
|
5088
5093
|
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
|
@@ -5472,14 +5477,14 @@ class Button {
|
|
|
5472
5477
|
const describedby = !hasTooltip ? describedById : `ic-tooltip-${buttonId}`;
|
|
5473
5478
|
const hasLeftIcon = !!this.getSlottedIcon("left");
|
|
5474
5479
|
const hasRightIcon = !!this.getSlottedIcon("right");
|
|
5475
|
-
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
|
5480
|
+
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: isIconVariant() ? "circular" : "linear", class: { "loading-indicator-icon-button": isIconVariant() }, monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
|
5476
5481
|
(!!this.getSlottedIcon("top") && !hasRightIcon)) && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), hAsync("slot", null), !dropdown
|
|
5477
5482
|
? hasRightIcon && (hAsync("div", { class: { "icon-container": true, "right-icon": true } }, hAsync("slot", { name: "right-icon" })))
|
|
5478
5483
|
: variant !== "icon" &&
|
|
5479
5484
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
|
5480
5485
|
? "dropdown-expanded"
|
|
5481
5486
|
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
|
5482
|
-
return (hAsync(Host, { key: '
|
|
5487
|
+
return (hAsync(Host, { key: '742d4ee3daabdb12a7ef9f30803ed01a49414849', class: {
|
|
5483
5488
|
"ic-button-disabled": disabled && !loading,
|
|
5484
5489
|
"ic-button-full-width": fullWidth,
|
|
5485
5490
|
"ic-button-loading": loading,
|
|
@@ -5495,7 +5500,7 @@ class Button {
|
|
|
5495
5500
|
monochrome,
|
|
5496
5501
|
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
|
5497
5502
|
"with-badge": isSlotUsed$1(this.el, "badge"),
|
|
5498
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
|
5503
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '6526412bc27a6725714bc73f671e76d8cf30d28e', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, fixedPositioning: tooltipFixedPositioning, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: 'f7df2578a6539a40373d599788d1097e2bcaa5a5' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'b790a201f342345bafe97cfd19bd53d7ffd1811c', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: 'fa2a22102dbd45b0c4c02a7608fc913bc50f641d' })));
|
|
5499
5504
|
}
|
|
5500
5505
|
static get delegatesFocus() { return true; }
|
|
5501
5506
|
get el() { return getElement(this); }
|
|
@@ -5924,6 +5929,41 @@ const hasDynamicChildSlots = (mutationList, slotNames) => mutationList.some(({ t
|
|
|
5924
5929
|
const renderDynamicChildSlots = (mutationList, slotNames, ref) => {
|
|
5925
5930
|
if (hasDynamicChildSlots(mutationList, slotNames)) ;
|
|
5926
5931
|
};
|
|
5932
|
+
/**
|
|
5933
|
+
* Parses a time string (HH:MM or HH:MM:SS) or Date and returns both Date and time parts.
|
|
5934
|
+
* @param value string or Date
|
|
5935
|
+
* @returns { date: Date | null, parts: { hour: number, minute: number, second: number } | null }
|
|
5936
|
+
*/
|
|
5937
|
+
function parseTimeHelper(value) {
|
|
5938
|
+
if (!value)
|
|
5939
|
+
return { date: null, parts: null };
|
|
5940
|
+
let d;
|
|
5941
|
+
if (typeof value === "string") {
|
|
5942
|
+
const parts = value.split(/[:.]/);
|
|
5943
|
+
if (parts.length >= 2) {
|
|
5944
|
+
d = new Date();
|
|
5945
|
+
d.setHours(+parts[0], +parts[1], parts[2] ? +parts[2] : 0, parts[3] ? +parts[3] : 0);
|
|
5946
|
+
}
|
|
5947
|
+
else {
|
|
5948
|
+
return { date: null, parts: null };
|
|
5949
|
+
}
|
|
5950
|
+
}
|
|
5951
|
+
else if (value instanceof Date) {
|
|
5952
|
+
d = value;
|
|
5953
|
+
}
|
|
5954
|
+
else {
|
|
5955
|
+
return { date: null, parts: null };
|
|
5956
|
+
}
|
|
5957
|
+
return {
|
|
5958
|
+
date: d,
|
|
5959
|
+
parts: {
|
|
5960
|
+
hour: d.getHours(),
|
|
5961
|
+
minute: d.getMinutes(),
|
|
5962
|
+
second: d.getSeconds(),
|
|
5963
|
+
millisecond: d.getMilliseconds(),
|
|
5964
|
+
},
|
|
5965
|
+
};
|
|
5966
|
+
}
|
|
5927
5967
|
|
|
5928
5968
|
const DayButton = ({ focussed, today, day, monthInView, onFocusDay, onBlurDay, onSelectDay, selected, focussedDayRef, inRange, showDaysOutsideMonth, disableDay, }) => {
|
|
5929
5969
|
const handleDayClick = () => {
|
|
@@ -6048,7 +6088,7 @@ const YearPicker = ({ decadeView, size, focussedYear, yearInView, onSelectYear,
|
|
|
6048
6088
|
return (hAsync("div", { class: "year-picker", role: "grid" }, thisDecade.map((years, yearIdx) => (hAsync("div", { class: "year-picker-row", role: "row", key: yearIdx }, years.map((yr, idx) => renderYearButton(yr, yearIdx, idx)))))));
|
|
6049
6089
|
};
|
|
6050
6090
|
|
|
6051
|
-
const icCalendarCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-date-picker-above) .calendar-container{bottom:calc(var(--ic-space-xxl) - var(--ic-space-xxs))}:host(.ic-date-picker-calendar) .calendar-container{box-shadow:var(--ic-calendar-elevation)}:host .calendar-container{min-width:19rem;max-width:23.5rem;width:var(--input-width);display:flex;flex-direction:column;gap:var(--ic-space-xs);position:absolute;border:var(--ic-border-default);border-color:var(--ic-calendar-border);border-radius:var(--ic-border-radius);align-items:center;background-color:var(--ic-calendar-bg);z-index:var(--ic-z-index-calendar);box-sizing:border-box;margin-top:var(--ic-space-xxxs);padding:var(--ic-space-xs);animation:fade-in-calendar var(--ic-transition-duration-slow)}:host(.ic-calendar-small) .calendar-container{min-width:17rem;max-width:21.5rem}:host(.ic-calendar-large) .calendar-container{min-width:21rem;max-width:25.5rem}:host(.ic-calendar-large){--month-button-width:6.3125rem}:host(.ic-calendar-small){--month-button-width:6.25rem}:host .month-year-nav-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}:host .month-year-nav-container.hidden{display:none}:host .month-year-nav{display:flex;justify-content:space-between;align-items:center;flex:1 0 0}:host .month-picker,:host .year-picker{display:flex;flex-direction:column;align-items:center;width:17.5rem;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs);row-gap:var(--ic-space-xxs)}:host(.ic-calendar-small) .month-picker,:host(.ic-calendar-small) .year-picker{width:13.125rem}:host(.ic-calendar-large) .month-picker,:host(.ic-calendar-large) .year-picker{width:20rem}:host .month-picker .month-picker-row,:host .year-picker .year-picker-row{display:inline-grid;grid-template-columns:repeat(3, minmax(0, 1fr));width:100%;gap:var(--ic-space-xs)}:host(.ic-calendar-small) .month-picker .month-picker-row,:host(.ic-calendar-small) .year-picker .year-picker-row{grid-template-columns:repeat(2, minmax(0, 1fr))}:host .month-picker-button,:host .year-picker-button{width:5rem;--min-width:5rem}:host .month-button,:host .year-button{width:var(--month-button-width)}:host .month-button.focussed,:host .year-button.focussed{z-index:1}:host .month-button::part(button),:host .year-button::part(button){min-width:var(--month-button-width);padding:var(--ic-space-xs) auto}:host .prev-decade.year-button svg{margin-right:calc(-1 * var(--ic-space-xs));--icon-width:var(--ic-space-md);--icon-height:var(--ic-space-md)}:host(.ic-calendar-small) .prev-decade.year-button svg{margin-right:calc(-1 * calc(var(--ic-space-md) + var(--ic-space-1px)))}:host(.ic-calendar-large) .prev-decade.year-button svg{margin-right:calc(-1 * calc(var(--ic-space-md) + var(--ic-space-xxs)))}:host .prev-decade.year-button::part(button){padding-left:0;padding-right:var(--ic-space-lg);gap:var(--ic-space-xxxs);display:inline-grid;grid-template-columns:1.5rem 1fr}:host(.ic-calendar-small) .prev-decade.year-button::part(button){padding-left:0;padding-right:calc(var(--ic-space-lg) + var(--ic-space-xxs))}:host .next-decade.year-button svg{margin-left:calc(-1 * var(--ic-space-lg));--icon-width:var(--ic-space-md);--icon-height:var(--ic-space-md)}:host(.ic-calendar-small) .next-decade.year-button svg,:host(.ic-calendar-large) .next-decade.year-button svg{margin-left:calc(\n -1 * (var(--ic-space-lg) + var(--ic-space-xs) + var(--ic-space-1px))\n )}:host .next-decade.year-button::part(button){padding-right:0;padding-left:var(--ic-space-lg);gap:var(--ic-space-xxxs);display:inline-grid;grid-template-columns:1fr 1.5rem}:host(.ic-calendar-small) .next-decade.year-button::part(button),:host(.ic-calendar-large) .next-decade.year-button::part(button){padding-left:calc(var(--ic-space-xl) - var(--ic-space-xxs))}:host .bottom-buttons{display:flex;justify-content:space-between;align-items:center;align-self:stretch;animation:fade-in-buttons var(--ic-transition-duration-slow)}:host .bottom-buttons.no-today{align-items:flex-end;flex-direction:column}:host .bottom-buttons.hidden{display:none}:host .calendar{display:flex;flex-direction:column;align-items:flex-start;width:15.75rem;animation:fade-in-buttons var(--ic-transition-duration-slow)}:host(.ic-calendar-large) .calendar{width:19.25rem}:host(.ic-calendar-small) .calendar{padding-bottom:var(--ic-space-xxs);width:14rem}:host .hidden{display:none}:host .weekdays-container{display:flex;align-self:stretch}:host .weekdays{display:flex;flex-grow:1;justify-content:space-between;align-items:flex-start;padding-bottom:var(--ic-space-xs)}:host .calendar-days-container{display:flex;flex-wrap:wrap;justify-content:space-between;row-gap:var(--ic-space-xs);padding:var(--ic-space-xxs) 0;min-height:16rem;align-content:flex-start}:host(.ic-calendar-small) .calendar-days-container{padding:var(--ic-space-xxxs) 0;min-height:14.5rem}:host(.ic-calendar-large) .calendar-days-container{padding:var(--ic-space-xs) 0;min-height:17.5rem}:host .calendar-days-container tr{display:flex;flex-grow:1;justify-content:space-between;border-spacing:0}:host .calendar-day-header{display:flex;width:2rem;padding:var(--ic-space-xxs) 0;justify-content:center;align-items:center;color:var(--ic-typography-color, var(--ic-color-text-primary));--ic-typography-color:var(--ic-calendar-label);text-align:center;font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}:host(.ic-calendar-large) .calendar-day-header{padding:var(--ic-space-xxs)}:host .day-button-container{display:flex;justify-content:center;align-items:center;width:2.25rem;height:2.25rem}:host(.ic-calendar-small) .day-button-container{width:2rem;height:2rem}:host(.ic-calendar-large) .day-button-container{width:2.5rem;height:2.5rem}:host .day-button{display:flex;position:relative;justify-content:center;align-items:center;border:0;border-radius:2rem;background-color:var(--ic-calendar-bg);width:2rem;height:2rem;cursor:pointer;transition:var(--ic-easing-transition-fast);z-index:0}:host .day-button.disabled{cursor:default}:host(.ic-calendar-large) .day-button{width:2.25rem;height:2.25rem}:host(.ic-calendar-small) .day-button{width:1.75rem;height:1.75rem}:host .day-button ic-typography{width:1.75rem;--ic-typography-color:var(--ic-calendar-date-label-default)}:host .day-button.outside-range ic-typography{--ic-typography-color:var(--ic-calendar-date-label-disabled)}:host .day-button.outside-month ic-typography{font-weight:var(--ic-font-weight-regular) !important}:host .day-button.outside-month:not(.outside-range):not(.selected) ic-typography{--ic-typography-color:var(--ic-calendar-date-label-default)}:host .day-button:hover:not(.disabled){background-color:var(--ic-calendar-date-default-bg-hover)}:host .day-button:active:not(.disabled){background-color:var(--ic-calendar-date-default-bg-pressed)}@media (prefers-reduced-motion: no-preference){:host .day-button:hover:not(.disabled):not(.focussed),:host .day-button:active:not(.disabled):not(.focussed){transition:background-color var(--ic-transition-duration-slow) ease-in-out}}:host .day-button.selected:not(.hidden){background-color:var(--ic-calendar-date-active-bg-default)}:host .day-button.selected ic-typography{--ic-typography-color:var(--ic-calendar-date-label-selected)}:host .day-button.selected:not(.hidden):hover{background-color:var(--ic-calendar-date-active-bg-hover)}:host .day-button.selected:not(.hidden):active{background-color:var(--ic-calendar-date-active-bg-pressed)}:host .day-button.focussed{z-index:1}:host .day-button:focus{outline:none}:host .day-button.focussed:focus{box-shadow:var(--ic-border-focus)}:host .day-button.today:not(.hidden)::after{content:\"\";position:absolute;width:0.875rem;height:0.125rem;bottom:0.4rem;border-radius:var(--ic-border-radius);background-color:var(--ic-calendar-default-underline)}:host(.ic-calendar-small) .day-button.today::after{bottom:0.35rem}:host(.ic-calendar-large) .day-button.today::after{width:1rem}:host .day-button.today.selected::after{background-color:var(--ic-calendar-selected-underline)}:host #select-month-hint,:host #select-year-hint{display:none}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){:host .calendar-container,:host .calendar,:host .bottom-buttons{animation:none}}@keyframes fade-in-buttons{0%{opacity:0}50%{opacity:0}100%{opacity:1}}@keyframes fade-in-calendar{0%{display:flex;max-height:0}100%{display:flex;max-height:600px}}@media (forced-colors: active){:host .day-button.today:not(.hidden)::after{background-color:highlight}:host .day-button.selected:not(.hidden){background-color:highlight}:host .day-button.focussed:focus{border:var(--ic-border-hc)}:host .month-button.selected::part(button),:host .year-button.selected::part(button){background-color:highlight}}";
|
|
6091
|
+
const icCalendarCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-date-picker-above) .calendar-container{bottom:calc(var(--ic-space-xxl) - var(--ic-space-xxs))}:host(.ic-date-picker-calendar) .calendar-container{position:absolute;min-width:19rem;max-width:23.5rem;width:var(--input-width);margin-top:var(--ic-space-xxxs);animation:fade-in-calendar var(--ic-transition-duration-slow);box-shadow:var(--ic-calendar-elevation)}:host .calendar-container{display:flex;flex-direction:column;gap:var(--ic-space-xs);width:-moz-fit-content;width:fit-content;border:var(--ic-border-default);border-color:var(--ic-calendar-border);border-radius:var(--ic-border-radius);align-items:center;background-color:var(--ic-calendar-bg);z-index:var(--ic-z-index-calendar);box-sizing:border-box;padding:var(--ic-space-xs)}:host(.ic-calendar-small) .calendar-container{min-width:17rem;max-width:21.5rem}:host(.ic-calendar-large) .calendar-container{min-width:21rem;max-width:25.5rem}:host(.ic-calendar-large){--month-button-width:6.3125rem}:host(.ic-calendar-small){--month-button-width:6.25rem}:host .month-year-nav-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}:host .month-year-nav-container.hidden{display:none}:host .month-year-nav{display:flex;justify-content:space-between;align-items:center;flex:1 0 0}:host .month-picker,:host .year-picker{display:flex;flex-direction:column;align-items:center;width:17.5rem;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs);row-gap:var(--ic-space-xxs)}:host(.ic-calendar-small) .month-picker,:host(.ic-calendar-small) .year-picker{width:13.125rem}:host(.ic-calendar-large) .month-picker,:host(.ic-calendar-large) .year-picker{width:20rem}:host .month-picker .month-picker-row,:host .year-picker .year-picker-row{display:inline-grid;grid-template-columns:repeat(3, minmax(0, 1fr));width:100%;gap:var(--ic-space-xs)}:host(.ic-calendar-small) .month-picker .month-picker-row,:host(.ic-calendar-small) .year-picker .year-picker-row{grid-template-columns:repeat(2, minmax(0, 1fr))}:host .month-picker-button,:host .year-picker-button{width:5rem;--min-width:5rem}:host .month-button,:host .year-button{width:var(--month-button-width)}:host .month-button.focussed,:host .year-button.focussed{z-index:1}:host .month-button::part(button),:host .year-button::part(button){min-width:var(--month-button-width);padding:var(--ic-space-xs) auto}:host .prev-decade.year-button svg{margin-right:calc(-1 * var(--ic-space-xs));--icon-width:var(--ic-space-md);--icon-height:var(--ic-space-md)}:host(.ic-calendar-small) .prev-decade.year-button svg{margin-right:calc(-1 * calc(var(--ic-space-md) + var(--ic-space-1px)))}:host(.ic-calendar-large) .prev-decade.year-button svg{margin-right:calc(-1 * calc(var(--ic-space-md) + var(--ic-space-xxs)))}:host .prev-decade.year-button::part(button){padding-left:0;padding-right:var(--ic-space-lg);gap:var(--ic-space-xxxs);display:inline-grid;grid-template-columns:1.5rem 1fr}:host(.ic-calendar-small) .prev-decade.year-button::part(button){padding-left:0;padding-right:calc(var(--ic-space-lg) + var(--ic-space-xxs))}:host .next-decade.year-button svg{margin-left:calc(-1 * var(--ic-space-lg));--icon-width:var(--ic-space-md);--icon-height:var(--ic-space-md)}:host(.ic-calendar-small) .next-decade.year-button svg,:host(.ic-calendar-large) .next-decade.year-button svg{margin-left:calc(\n -1 * (var(--ic-space-lg) + var(--ic-space-xs) + var(--ic-space-1px))\n )}:host .next-decade.year-button::part(button){padding-right:0;padding-left:var(--ic-space-lg);gap:var(--ic-space-xxxs);display:inline-grid;grid-template-columns:1fr 1.5rem}:host(.ic-calendar-small) .next-decade.year-button::part(button),:host(.ic-calendar-large) .next-decade.year-button::part(button){padding-left:calc(var(--ic-space-xl) - var(--ic-space-xxs))}:host .bottom-buttons{display:flex;justify-content:space-between;align-items:center;align-self:stretch;animation:fade-in-buttons var(--ic-transition-duration-slow)}:host .bottom-buttons.no-today{align-items:flex-end;flex-direction:column}:host .bottom-buttons.hidden{display:none}:host .calendar{display:flex;flex-direction:column;align-items:flex-start;width:15.75rem;animation:fade-in-buttons var(--ic-transition-duration-slow)}:host(.ic-calendar-large) .calendar{width:19.25rem}:host(.ic-calendar-small) .calendar{padding-bottom:var(--ic-space-xxs);width:14rem}:host .hidden{display:none}:host .weekdays-container{display:flex;align-self:stretch}:host .weekdays{display:flex;flex-grow:1;justify-content:space-between;align-items:flex-start;padding-bottom:var(--ic-space-xs)}:host .calendar-days-container{display:flex;flex-wrap:wrap;justify-content:space-between;row-gap:var(--ic-space-xs);padding:var(--ic-space-xxs) 0;min-height:16rem;align-content:flex-start}:host(.ic-calendar-small) .calendar-days-container{padding:var(--ic-space-xxxs) 0;min-height:14.5rem}:host(.ic-calendar-large) .calendar-days-container{padding:var(--ic-space-xs) 0;min-height:17.5rem}:host .calendar-days-container tr{display:flex;flex-grow:1;justify-content:space-between;border-spacing:0}:host .calendar-day-header{display:flex;width:2rem;padding:var(--ic-space-xxs) 0;justify-content:center;align-items:center;color:var(--ic-typography-color, var(--ic-color-text-primary));--ic-typography-color:var(--ic-calendar-label);text-align:center;font:var(--ic-font-caption);letter-spacing:var(--ic-font-letter-spacing-0pt0025)}:host(.ic-calendar-large) .calendar-day-header{padding:var(--ic-space-xxs)}:host .day-button-container{display:flex;justify-content:center;align-items:center;width:2.25rem;height:2.25rem}:host(.ic-calendar-small) .day-button-container{width:2rem;height:2rem}:host(.ic-calendar-large) .day-button-container{width:2.5rem;height:2.5rem}:host .day-button{display:flex;position:relative;justify-content:center;align-items:center;border:0;border-radius:2rem;background-color:var(--ic-calendar-bg);width:2rem;height:2rem;cursor:pointer;transition:var(--ic-easing-transition-fast);z-index:0}:host .day-button.disabled{cursor:default}:host(.ic-calendar-large) .day-button{width:2.25rem;height:2.25rem}:host(.ic-calendar-small) .day-button{width:1.75rem;height:1.75rem}:host .day-button ic-typography{width:1.75rem;--ic-typography-color:var(--ic-calendar-date-label-default)}:host .day-button.outside-range ic-typography{--ic-typography-color:var(--ic-calendar-date-label-disabled)}:host .day-button.outside-month ic-typography{font-weight:var(--ic-font-weight-regular) !important}:host .day-button.outside-month:not(.outside-range):not(.selected) ic-typography{--ic-typography-color:var(--ic-calendar-date-label-default)}:host .day-button:hover:not(.disabled){background-color:var(--ic-calendar-date-default-bg-hover)}:host .day-button:active:not(.disabled){background-color:var(--ic-calendar-date-default-bg-pressed)}@media (prefers-reduced-motion: no-preference){:host .day-button:hover:not(.disabled):not(.focussed),:host .day-button:active:not(.disabled):not(.focussed){transition:background-color var(--ic-transition-duration-slow) ease-in-out}}:host .day-button.selected:not(.hidden){background-color:var(--ic-calendar-date-active-bg-default)}:host .day-button.selected ic-typography{--ic-typography-color:var(--ic-calendar-date-label-selected)}:host .day-button.selected:not(.hidden):hover{background-color:var(--ic-calendar-date-active-bg-hover)}:host .day-button.selected:not(.hidden):active{background-color:var(--ic-calendar-date-active-bg-pressed)}:host .day-button.focussed{z-index:1}:host .day-button:focus{outline:none}:host .day-button.focussed:focus{box-shadow:var(--ic-border-focus)}:host .day-button.today:not(.hidden)::after{content:\"\";position:absolute;width:0.875rem;height:0.125rem;bottom:0.4rem;border-radius:var(--ic-border-radius);background-color:var(--ic-calendar-default-underline)}:host(.ic-calendar-small) .day-button.today::after{bottom:0.35rem}:host(.ic-calendar-large) .day-button.today::after{width:1rem}:host .day-button.today.selected::after{background-color:var(--ic-calendar-selected-underline)}:host #select-month-hint,:host #select-year-hint{display:none}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){:host .calendar-container,:host .calendar,:host .bottom-buttons{animation:none}}@keyframes fade-in-buttons{0%{opacity:0}50%{opacity:0}100%{opacity:1}}@keyframes fade-in-calendar{0%{display:flex;max-height:0}100%{display:flex;max-height:600px}}@media (forced-colors: active){:host .day-button.today:not(.hidden)::after{background-color:highlight}:host .day-button.selected:not(.hidden){background-color:highlight}:host .day-button.focussed:focus{border:var(--ic-border-hc)}:host .month-button.selected::part(button),:host .year-button.selected::part(button){background-color:highlight}}";
|
|
6052
6092
|
var IcCalendarStyle0 = icCalendarCss;
|
|
6053
6093
|
|
|
6054
6094
|
const FOCUS_TIMER = 100;
|
|
@@ -7734,8 +7774,22 @@ class CheckboxGroup {
|
|
|
7734
7774
|
* The text to display as the validation message.
|
|
7735
7775
|
*/
|
|
7736
7776
|
this.validationText = "";
|
|
7777
|
+
this.setCheckboxProps = () => {
|
|
7778
|
+
this.checkboxes = Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR));
|
|
7779
|
+
this.checkboxes.forEach((checkbox) => {
|
|
7780
|
+
if (!checkbox.disabled) {
|
|
7781
|
+
checkbox.disabled = this.disabled;
|
|
7782
|
+
}
|
|
7783
|
+
if (!checkbox.size) {
|
|
7784
|
+
checkbox.size = this.size;
|
|
7785
|
+
}
|
|
7786
|
+
});
|
|
7787
|
+
};
|
|
7737
7788
|
}
|
|
7738
7789
|
watchDisabledHandler() {
|
|
7790
|
+
this.checkboxes.forEach((checkbox) => {
|
|
7791
|
+
checkbox.disabled = this.disabled;
|
|
7792
|
+
});
|
|
7739
7793
|
removeDisabledFalse$1(this.disabled, this.el);
|
|
7740
7794
|
}
|
|
7741
7795
|
labelNameHandler(newValue, oldValue, propName) {
|
|
@@ -7748,6 +7802,11 @@ class CheckboxGroup {
|
|
|
7748
7802
|
}
|
|
7749
7803
|
});
|
|
7750
7804
|
}
|
|
7805
|
+
watchSizeHandler() {
|
|
7806
|
+
this.checkboxes.forEach((checkbox) => {
|
|
7807
|
+
checkbox.size = this.size;
|
|
7808
|
+
});
|
|
7809
|
+
}
|
|
7751
7810
|
watchThemeHandler(newValue) {
|
|
7752
7811
|
Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).forEach((checkbox) => {
|
|
7753
7812
|
checkbox.theme = newValue;
|
|
@@ -7761,6 +7820,7 @@ class CheckboxGroup {
|
|
|
7761
7820
|
}
|
|
7762
7821
|
}
|
|
7763
7822
|
componentWillLoad() {
|
|
7823
|
+
this.setCheckboxProps();
|
|
7764
7824
|
removeDisabledFalse$1(this.disabled, this.el);
|
|
7765
7825
|
this.watchThemeHandler(this.theme);
|
|
7766
7826
|
}
|
|
@@ -7789,11 +7849,11 @@ class CheckboxGroup {
|
|
|
7789
7849
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
|
7790
7850
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
7791
7851
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
7792
|
-
return (hAsync(Host, { key: '
|
|
7852
|
+
return (hAsync(Host, { key: '4bf0ebdc41ee60a21034e57ffa313abf87290794', class: {
|
|
7793
7853
|
"ic-checkbox-group-disabled": !!disabled,
|
|
7794
7854
|
[`ic-checkbox-group-${size}`]: true,
|
|
7795
7855
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
7796
|
-
} }, renderSRText && (hAsync("span", { key: '
|
|
7856
|
+
} }, renderSRText && (hAsync("span", { key: '69b9b6d5d0698d168e6df0c01b47d333b5afddba', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: 'ad8d27f986ca3337c4507829c70b1bfb0aa37ed5', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '84c10349be7a6d6acb70a5c9e70d888b86dbe258' }, hAsync("ic-input-label", { key: '00d928c2b7b8ce34262c4fe82d2d87a869bfaf9c', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '42e5a3983f00c06616384cd7ba1a0793188aad7d', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: '726918f0786e8418fcdd616841128a1cb7365bec', class: "checkboxes-container" }, hAsync("slot", { key: 'c4323eeff5908bf1a6a9e8a9fcfe2b5678489d8e' }))), hAsync("ic-input-validation", { key: '0178a6710479690c9ee615f9d7e25d04d1108fdd', class: {
|
|
7797
7857
|
"show-validation": showValidation,
|
|
7798
7858
|
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
7799
7859
|
}
|
|
@@ -7802,6 +7862,7 @@ class CheckboxGroup {
|
|
|
7802
7862
|
"disabled": ["watchDisabledHandler"],
|
|
7803
7863
|
"label": ["labelNameHandler"],
|
|
7804
7864
|
"name": ["labelNameHandler"],
|
|
7865
|
+
"size": ["watchSizeHandler"],
|
|
7805
7866
|
"theme": ["watchThemeHandler"]
|
|
7806
7867
|
}; }
|
|
7807
7868
|
static get style() { return IcCheckboxGroupStyle0; }
|
|
@@ -8087,7 +8148,7 @@ class DataList {
|
|
|
8087
8148
|
}; }
|
|
8088
8149
|
}
|
|
8089
8150
|
|
|
8090
|
-
const icDataRowCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{position:relative;display:block}.data{display:flex;align-items:
|
|
8151
|
+
const icDataRowCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{position:relative;display:block}.data{display:flex;align-items:top}.text-cells{display:flex;flex-grow:1;min-width:0;--ic-typography-color:var(--ic-data-list-text-cell);color:var(--ic-data-list-text-cell)}.label{width:var(--data-row-label-width, 12.5rem);min-width:12.5rem;margin-right:var(--ic-space-md);--ic-typography-color:var(--ic-data-list-text-label);color:var(--ic-data-list-text-label)}.value{flex-grow:1}slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label]){margin-top:calc(var(--ic-space-xs) * -1)}slot[name=\"value\"]::slotted(ic-text-field[small][readonly][hide-label]){margin-top:calc(var(--ic-space-xxs) * -1)}slot[name=\"value\"]::slotted(ic-text-field[readonly][hide-label][rows]){margin-top:calc(var(--ic-space-xxs) * -1 - var(--ic-space-xxxs))}.end-component{width:-moz-fit-content;width:fit-content;margin-left:3.5rem}.divider{margin-top:var(--ic-space-md);height:var(--ic-border-width);background-color:var(--ic-data-list-keyline-cell)}:host(.ic-data-row-small) .divider{margin-top:var(--ic-space-xs)}:host(.breakpoint-medium) .label{width:10rem;min-width:10rem}:host(.breakpoint-xs) .text-cells{flex-direction:column}:host(.breakpoint-xs) .label{width:8rem;margin-bottom:var(--ic-space-xs)}:host(.breakpoint-xs) .value{max-width:95%}:host(.breakpoint-xs) .end-component{margin-left:0}@media (forced-colors: active){.divider{background-color:canvastext}}";
|
|
8091
8152
|
var IcDataRowStyle0 = icDataRowCss;
|
|
8092
8153
|
|
|
8093
8154
|
/**
|
|
@@ -10128,6 +10189,9 @@ class DataTable {
|
|
|
10128
10189
|
if (columnWidth.maxWidth) {
|
|
10129
10190
|
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-max-width"]: columnWidth.maxWidth });
|
|
10130
10191
|
}
|
|
10192
|
+
if (columnWidth.width) {
|
|
10193
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-width"]: columnWidth.width });
|
|
10194
|
+
}
|
|
10131
10195
|
}
|
|
10132
10196
|
return columnWidthStyling;
|
|
10133
10197
|
};
|
|
@@ -10926,26 +10990,26 @@ class DataTable {
|
|
|
10926
10990
|
? "deselect all"
|
|
10927
10991
|
: "select all remaining"
|
|
10928
10992
|
: "select all";
|
|
10929
|
-
return (hAsync(Host, { key: '
|
|
10993
|
+
return (hAsync(Host, { key: '5a54a8292fc31e31e968c76b21f957d6ed4665bb', style: Object.assign({}, this.setTableDimensions()), class: {
|
|
10930
10994
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
10931
10995
|
[`ic-data-table-show-pagination`]: !!showPagination,
|
|
10932
10996
|
[`ic-data-table-embedded`]: !!embedded,
|
|
10933
|
-
} }, hAsync("div", { key: '
|
|
10997
|
+
} }, hAsync("div", { key: '664f9b13c5c5f9b2a0323a870b7c96cfc8e2c45d', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '997ec993032c647aea11da288c2f2b19c5f69f8b', name: "title-bar" }), hAsync("div", { key: '35823b8f7cfeeaeab64dc248ef65c6c52762cf03', class: {
|
|
10934
10998
|
["table-row-container"]: true,
|
|
10935
10999
|
scrollable,
|
|
10936
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
11000
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '9b9c1bbf6ebcc08ca235f2637c95dc74bd49c3a1', style: {
|
|
10937
11001
|
"--table-layout": tableLayout,
|
|
10938
|
-
} }, hAsync("caption", { key: '
|
|
11002
|
+
} }, hAsync("caption", { key: 'f5acadc8976d3b474dab6d17c957553a384c348a', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: '4131acaa910add9c3f596f34c879b539e69e4c69', class: {
|
|
10939
11003
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
10940
11004
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
10941
|
-
} }, hAsync("tr", { key: '
|
|
11005
|
+
} }, hAsync("tr", { key: 'ddf0b02e09b404800f07b86709812a8c719da333' }, rowSelection && data && (hAsync("th", { key: '3aa7cb15d490ea90a1c33959ff83987b244951f4', class: {
|
|
10942
11006
|
"column-header": true,
|
|
10943
11007
|
"checkbox-cell": true,
|
|
10944
11008
|
"updating-state-headers": updating && !loading,
|
|
10945
11009
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
10946
|
-
} }, hAsync("div", { key: '
|
|
11010
|
+
} }, hAsync("div", { key: '0b42136651692a5b69131dc40eb80636e0cb5ff1', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: 'be47f6ce2b9c6450b4fff5bba46686396fbf7bab', class: "ic-data-table-checkbox", checked: rowsSelected && allRowsSelected, disabled: updating || loading, hideLabel: true, indeterminate: rowsSelected && !allRowsSelected, label: `${caption} ${headerCheckboxLabelState} rows`, nativeIndeterminateBehaviour: true, onIcCheck: () => selectAllRows(), size: density === "dense" ? "small" : "medium", value: caption })))), createColumnHeaders()))), updating &&
|
|
10947
11011
|
!loading &&
|
|
10948
|
-
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '
|
|
11012
|
+
(hideColumnHeaders ? (hAsync("thead", null, createUpdatingIndicator())) : (createUpdatingIndicator())), this.renderTableBody(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), this.renderEmptyState(loading, data, loadingOptions === null || loadingOptions === void 0 ? void 0 : loadingOptions.overlay)), hAsync("div", { key: '23b30f12641186e93d7c20cee3b302d002f799cc', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: '639f16bbcb3ee28acd812e753ad242bdfc9fda24', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (hAsync("slot", { name: "pagination-bar" })) : (hAsync("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, hideCurrentPage: paginationBarOptions.hideCurrentPage, hideFirstAndLastPageButton: paginationBarOptions.hideFirstAndLastPageButton, hideRangeLabel: paginationBarOptions.hideRangeLabel, itemLabel: paginationBarOptions.itemLabel, itemsPerPageOptions: paginationBarOptions.itemsPerPageOptions, monochrome: paginationBarOptions.monochrome, pageLabel: paginationBarOptions.pageLabel, rangeLabelType: paginationBarOptions.rangeLabelType, selectedItemsPerPage: paginationBarOptions.selectedItemsPerPage, selectItemsPerPageOnEnter: paginationBarOptions.selectItemsPerPageOnEnter, setToFirstPageOnPaginationChange: paginationBarOptions.setToFirstPageOnPaginationChange, showGoToPageControl: paginationBarOptions.showGoToPageControl, showItemsPerPageControl: paginationBarOptions.showItemsPerPageControl, theme: theme, totalItems: (_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0, type: paginationBarOptions.type })))), sortable && (hAsync("div", { key: 'fdd6bfc99732ce13c66e322f91630bb02e23fd1b', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
|
10949
11013
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
10950
11014
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
10951
11015
|
: "table unsorted")))));
|
|
@@ -11086,7 +11150,7 @@ class DataTableTitleBar {
|
|
|
11086
11150
|
}; }
|
|
11087
11151
|
}
|
|
11088
11152
|
|
|
11089
|
-
var Clear$
|
|
11153
|
+
var Clear$2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11090
11154
|
<path d="M15.8327 5.34199L14.6577 4.16699L9.99935 8.82533L5.34102 4.16699L4.16602 5.34199L8.82435 10.0003L4.16602 14.6587L5.34102 15.8337L9.99935 11.1753L14.6577 15.8337L15.8327 14.6587L11.1743 10.0003L15.8327 5.34199Z" fill="currentColor"/>
|
|
11091
11155
|
</svg>
|
|
11092
11156
|
`;
|
|
@@ -12278,7 +12342,7 @@ class DateInput {
|
|
|
12278
12342
|
["hidden"]: isEmptyString(this.day) &&
|
|
12279
12343
|
isEmptyString(this.month) &&
|
|
12280
12344
|
isEmptyString(this.year),
|
|
12281
|
-
}, disabled: this.disabled, innerHTML: Clear$
|
|
12345
|
+
}, disabled: this.disabled, innerHTML: Clear$2, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: 'ec2f995db607ae5d575ddd7994e85f4b883ce2bb', class: "show-calendar-button-wrapper" }, hAsync("div", { key: '74e895071ab608fcccc0a3e2b2ec368511efe4d3', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: '51e8939da851ae18809840d22492f3b5be958b26', id: "calendar-button", ref: (el) => (this.calendarButtonEl = el), "aria-label": "Display calendar", "aria-haspopup": "dialog", class: "calendar-button", disabled: this.disabled, innerHTML: Calendar, onClick: this.handleCalendarOpen, variant: "icon-tertiary", size: size, onFocus: this.handleCalendarFocus, onBlur: this.handleCalendarBlur, theme: this.calendarFocused ? "light" : "dark" })))))), hAsync("span", { key: '77d360d10492577650304e7914021ad40bb8b281', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '1c285045fb1b18bca93c9e32956e93b8d400b0a1', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), hAsync("ic-input-validation", { key: '7f02c2d9ec754c92dec3156339e6ea6b504b8d74', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId, ariaLiveMode: validationAriaLive }))));
|
|
12282
12346
|
}
|
|
12283
12347
|
static get delegatesFocus() { return true; }
|
|
12284
12348
|
get el() { return getElement(this); }
|
|
@@ -14263,20 +14327,19 @@ class InputValidation {
|
|
|
14263
14327
|
}, 200); // Delay to help ensure screen readers detect change
|
|
14264
14328
|
}
|
|
14265
14329
|
componentDidLoad() {
|
|
14266
|
-
onComponentRequiredPropUndefined$1([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
14267
14330
|
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
14268
14331
|
}
|
|
14269
14332
|
render() {
|
|
14270
14333
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
14271
14334
|
const displayIcon = status !== "" ? ICON[status] : "";
|
|
14272
|
-
return (hAsync(Host, { key: '
|
|
14335
|
+
return (hAsync(Host, { key: '2314e8e4f655e95cee33a0717322b65a5077cc3a', class: {
|
|
14273
14336
|
[`ic-input-validation-${status}`]: status !== "",
|
|
14274
14337
|
"ic-input-validation-full-width": !!fullWidth,
|
|
14275
14338
|
"ic-input-validation-with-status": status !== "",
|
|
14276
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
|
14339
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '171000e63f0d8ea96cd34e283700cfa641795419', class: {
|
|
14277
14340
|
"status-icon": true,
|
|
14278
14341
|
[`icon-${status}`]: true,
|
|
14279
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
|
14342
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '87c722d45b0b7c02602f65b418748b8fe890fed8', variant: "caption", class: "statustext" }, hAsync("span", { key: 'd4440c3115b085b471b0de094cb89f9e775df5cb', id: this.for && getInputValidationTextID$1(this.for) }, message), hAsync("span", { key: '3e1f4328c6ae86a01eccc0bc99a26e37af3aa4c4', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), hAsync("slot", { key: 'b042762de928907af3e92882ae2f6068a3c2808d', name: "validation-message-adornment" })));
|
|
14280
14343
|
}
|
|
14281
14344
|
get el() { return getElement(this); }
|
|
14282
14345
|
static get watchers() { return {
|
|
@@ -14678,6 +14741,7 @@ class LoadingIndicator {
|
|
|
14678
14741
|
r: 0,
|
|
14679
14742
|
};
|
|
14680
14743
|
this.clipInnerElement = false;
|
|
14744
|
+
this.internalType = "circular";
|
|
14681
14745
|
/**
|
|
14682
14746
|
* The description that will be set as the aria-label of the loading indicator when not using a visible label.
|
|
14683
14747
|
*/
|
|
@@ -14713,7 +14777,7 @@ class LoadingIndicator {
|
|
|
14713
14777
|
*/
|
|
14714
14778
|
this.theme = "inherit";
|
|
14715
14779
|
/**
|
|
14716
|
-
* The type of indicator, either linear or circular.
|
|
14780
|
+
* The type of indicator, either linear or circular. When size is set to 'icon' the type will be set to circular.
|
|
14717
14781
|
*/
|
|
14718
14782
|
this.type = "circular";
|
|
14719
14783
|
this.getLabel = (labelIndex) => new Promise(() => {
|
|
@@ -14728,7 +14792,7 @@ class LoadingIndicator {
|
|
|
14728
14792
|
}, this.labelDuration);
|
|
14729
14793
|
});
|
|
14730
14794
|
this.getLabelVariant = () => {
|
|
14731
|
-
const width = this.
|
|
14795
|
+
const width = this.internalType === "circular" ? this.calculateWidth() : 0;
|
|
14732
14796
|
if (this.size === "small" || (width && width < 60)) {
|
|
14733
14797
|
return "label";
|
|
14734
14798
|
}
|
|
@@ -14772,6 +14836,12 @@ class LoadingIndicator {
|
|
|
14772
14836
|
}
|
|
14773
14837
|
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
|
14774
14838
|
};
|
|
14839
|
+
this.setInternalType = () => {
|
|
14840
|
+
this.internalType = this.type;
|
|
14841
|
+
if (this.type == "linear") {
|
|
14842
|
+
this.internalType = this.size == "icon" ? "circular" : "linear";
|
|
14843
|
+
}
|
|
14844
|
+
};
|
|
14775
14845
|
this.updateLabel = () => {
|
|
14776
14846
|
if (!this.label)
|
|
14777
14847
|
return;
|
|
@@ -14807,15 +14877,19 @@ class LoadingIndicator {
|
|
|
14807
14877
|
this.updateLabel();
|
|
14808
14878
|
}
|
|
14809
14879
|
handleProgressChange() {
|
|
14810
|
-
if (this.
|
|
14880
|
+
if (this.internalType === "linear") {
|
|
14811
14881
|
this.setLinearDeterminateWidth();
|
|
14812
14882
|
}
|
|
14813
14883
|
else {
|
|
14814
14884
|
this.setCircleDimensions();
|
|
14815
14885
|
}
|
|
14816
14886
|
}
|
|
14887
|
+
handleIconSize() {
|
|
14888
|
+
this.setIndicatorDimensions();
|
|
14889
|
+
}
|
|
14817
14890
|
setIndicatorDimensions() {
|
|
14818
|
-
|
|
14891
|
+
this.setInternalType();
|
|
14892
|
+
if (this.internalType === "circular") {
|
|
14819
14893
|
// Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
|
|
14820
14894
|
const diameter = this.calculateWidth();
|
|
14821
14895
|
if (this.outerElement && diameter !== this.circularDiameter) {
|
|
@@ -14840,25 +14914,25 @@ class LoadingIndicator {
|
|
|
14840
14914
|
this.setIndicatorDimensions();
|
|
14841
14915
|
}
|
|
14842
14916
|
render() {
|
|
14843
|
-
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme,
|
|
14844
|
-
return (hAsync(Host, { key: '
|
|
14917
|
+
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, internalType, label, max, min, monochrome, progress, size, theme, } = this;
|
|
14918
|
+
return (hAsync(Host, { key: '576bca57e7314a41e887f7f1e258b14563560c46', class: {
|
|
14845
14919
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
14846
14920
|
"ic-loading-indicator-full-width": fullWidth,
|
|
14847
14921
|
"ic-loading-indicator-label": !!label,
|
|
14848
14922
|
"ic-loading-indicator-monochrome": monochrome,
|
|
14849
14923
|
[`ic-loading-indicator-size-${size}`]: true,
|
|
14850
|
-
} }, hAsync("div", { key: '
|
|
14851
|
-
[`ic-loading-${
|
|
14924
|
+
} }, hAsync("div", { key: '16ff356ffed07fe8136691d8e0753845c2430238', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: '5124f9e43b1c0495f1e5d954c289877475a523b3', ref: (el) => (this.outerElement = el), class: {
|
|
14925
|
+
[`ic-loading-${internalType}-outer`]: true,
|
|
14852
14926
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
|
14853
|
-
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: '
|
|
14854
|
-
[`ic-loading-${
|
|
14927
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: 'c9cf5cacd62bbbe1373aac4d91ac81eea4020377', ref: (el) => (this.innerElement = el), class: {
|
|
14928
|
+
[`ic-loading-${internalType}-inner`]: true,
|
|
14855
14929
|
"inner-label": !!innerLabel,
|
|
14856
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
|
14930
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '5c5f7a6a38f6b390d60461c245a37117e551f644', variant: "subtitle-small", class: "inner-text" }, innerLabel)), internalType === "circular" && (hAsync("svg", { key: '3a6199bb2179195850d1fc96129f80073df3b987', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: '7a449a4379039d1e07e33aa01259e503b3b5390f', cx: x, cy: y, r: r }), hAsync("circle", { key: '0307da67d66732d95653e87c56e10568eaf60623', style: {
|
|
14857
14931
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
|
14858
14932
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
|
14859
14933
|
"--stroke-dasharray": dashArray,
|
|
14860
14934
|
"--stroke-dashoffset": dashOffset,
|
|
14861
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
|
14935
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: 'f24cde659281c195321e185fe95f8afc1c655ad9', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, hAsync("p", { key: '17d96b5a351f90e17e939b37478e9da2d089857c' }, indicatorLabel))))));
|
|
14862
14936
|
}
|
|
14863
14937
|
get el() { return getElement(this); }
|
|
14864
14938
|
static get watchers() { return {
|
|
@@ -14866,6 +14940,7 @@ class LoadingIndicator {
|
|
|
14866
14940
|
"max": ["handleProgressChange"],
|
|
14867
14941
|
"min": ["handleProgressChange"],
|
|
14868
14942
|
"progress": ["handleProgressChange"],
|
|
14943
|
+
"size": ["handleIconSize"],
|
|
14869
14944
|
"type": ["setIndicatorDimensions"]
|
|
14870
14945
|
}; }
|
|
14871
14946
|
static get style() { return IcLoadingIndicatorStyle0; }
|
|
@@ -14889,7 +14964,8 @@ class LoadingIndicator {
|
|
|
14889
14964
|
"circularLineWidth": [32],
|
|
14890
14965
|
"circularDimensions": [32],
|
|
14891
14966
|
"indicatorLabel": [32],
|
|
14892
|
-
"clipInnerElement": [32]
|
|
14967
|
+
"clipInnerElement": [32],
|
|
14968
|
+
"internalType": [32]
|
|
14893
14969
|
},
|
|
14894
14970
|
"$listeners$": undefined,
|
|
14895
14971
|
"$lazyBundleId$": "-",
|
|
@@ -16708,7 +16784,7 @@ const sanitizeHTMLIconString = (html) => {
|
|
|
16708
16784
|
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16709
16785
|
};
|
|
16710
16786
|
|
|
16711
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}";
|
|
16787
|
+
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu:focus{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}";
|
|
16712
16788
|
var IcMenuStyle0 = icMenuCss;
|
|
16713
16789
|
|
|
16714
16790
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -18906,6 +18982,10 @@ class Pagination {
|
|
|
18906
18982
|
this.midItems = [];
|
|
18907
18983
|
this.startEllipsis = false;
|
|
18908
18984
|
this.startItems = [];
|
|
18985
|
+
/**
|
|
18986
|
+
* The accessible label of the pagination component to provide context for screen reader users.
|
|
18987
|
+
*/
|
|
18988
|
+
this.accessibleLabel = "Pagination Navigation";
|
|
18909
18989
|
/**
|
|
18910
18990
|
* The number of pages displayed adjacent to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
|
|
18911
18991
|
*/
|
|
@@ -19136,14 +19216,14 @@ class Pagination {
|
|
|
19136
19216
|
}
|
|
19137
19217
|
render() {
|
|
19138
19218
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
19139
|
-
return (hAsync(Host, { key: '
|
|
19219
|
+
return (hAsync(Host, { key: '206014fa2aa2c61bb9535e4de4fa5bf756bd318c', class: {
|
|
19140
19220
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19141
19221
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
19142
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
|
19222
|
+
} }, type === "simple" && (hAsync("nav", { key: '8544b88d593c806867e0bd49cb0624a684dec271', class: {
|
|
19143
19223
|
["disabled"]: !!disabled,
|
|
19144
|
-
}, role: "navigation", "aria-label":
|
|
19224
|
+
}, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '5331aca30709281171cf19f17c2f05a0d0cdf168', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("nav", { key: '6b7acef9da08b590b941a7ce142ce448dbf79ff2', class: {
|
|
19145
19225
|
["disabled"]: !!disabled,
|
|
19146
|
-
}, role: "navigation", "aria-label":
|
|
19226
|
+
}, role: "navigation", "aria-label": this.accessibleLabel }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: 'e60f3fb36b78e7970f14836295efbd3a1f481885', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
|
19147
19227
|
}
|
|
19148
19228
|
get el() { return getElement(this); }
|
|
19149
19229
|
static get watchers() { return {
|
|
@@ -19159,6 +19239,7 @@ class Pagination {
|
|
|
19159
19239
|
"$flags$": 9,
|
|
19160
19240
|
"$tagName$": "ic-pagination",
|
|
19161
19241
|
"$members$": {
|
|
19242
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
19162
19243
|
"adjacentPageCount": [1026, "adjacent-page-count"],
|
|
19163
19244
|
"boundaryPageCount": [1026, "boundary-page-count"],
|
|
19164
19245
|
"defaultPage": [2, "default-page"],
|
|
@@ -19201,6 +19282,10 @@ class PaginationBar {
|
|
|
19201
19282
|
this.itemsPerPageString = "10";
|
|
19202
19283
|
this.lowerBound = 1;
|
|
19203
19284
|
this.paginationWrapped = false;
|
|
19285
|
+
/**
|
|
19286
|
+
* The accessible label passed down to the pagination component to provide context for screen reader users.
|
|
19287
|
+
*/
|
|
19288
|
+
this.accessibleLabel = "Pagination Navigation";
|
|
19204
19289
|
/**
|
|
19205
19290
|
* Sets the alignment of the items in the pagination bar.
|
|
19206
19291
|
*/
|
|
@@ -19528,22 +19613,22 @@ class PaginationBar {
|
|
|
19528
19613
|
this.changePage(page);
|
|
19529
19614
|
}
|
|
19530
19615
|
render() {
|
|
19531
|
-
const { alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, hideCurrentPage, hideFirstAndLastPageButton, } = this;
|
|
19532
|
-
return (hAsync(Host, { key: '
|
|
19616
|
+
const { accessibleLabel, alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, hideCurrentPage, hideFirstAndLastPageButton, } = this;
|
|
19617
|
+
return (hAsync(Host, { key: 'b4156a3e8ea25f4e3c63b6806a132998acc4d413', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'cdbb0088e57c64438cdf78d82a09f022321a6e79', class: {
|
|
19533
19618
|
["pagination-bar"]: true,
|
|
19534
19619
|
[`pagination-bar-${alignment}`]: true,
|
|
19535
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
19620
|
+
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '2ca590958c60e8e01b77e8f8ed09e7fa8dd91557', class: "item-controls" }, showItemsPerPageControl && (hAsync("div", { key: '4fc26efe806e4897e305842dcc47d81180364698', class: "items-per-page-holder" }, hAsync("ic-typography", { key: 'eb35b4a2a49a249584532042647a02aaadd4c9b6', class: {
|
|
19536
19621
|
["items-per-page-control-label"]: true,
|
|
19537
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
19622
|
+
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: 'f8541624bc0a7121cac0dce4e49392c6ad85e819', theme: theme, size: "small", label: "items-per-page-input", class: "items-per-page-input", hideLabel: true, options: displayedItemsPerPageOptions, selectOnEnter: selectItemsPerPageOnEnter, value: itemsPerPageString, onIcChange: this.changeItemsPerPage, ref: (el) => (this.pageDropdownEl = el) }))), !hideRangeLabel &&
|
|
19538
19623
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
19539
19624
|
["item-pagination-label"]: true,
|
|
19540
19625
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
19541
19626
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
19542
19627
|
["page-pagination-label"]: true,
|
|
19543
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
19628
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: 'a781f60abd8da11927f5e3686926113f638936ad', class: {
|
|
19544
19629
|
["pagination-controls"]: true,
|
|
19545
19630
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
19546
|
-
} }, hAsync("div", { key: '
|
|
19631
|
+
} }, hAsync("div", { key: 'eb1dd49fe13eaa7358fadd76e7b7fe552f3e3fe1', class: "pagination-holder" }, hAsync("ic-pagination", { key: '717308c1d004d129c56d2b37ecf6ea207bdd1bc5', accessibleLabel: accessibleLabel, type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage, theme: theme, monochrome: monochrome, hideCurrentPage: hideCurrentPage, hideFirstAndLastPageButton: hideFirstAndLastPageButton })), showGoToPageControl && (hAsync("div", { key: 'f13fda5cee5728bf3c35ba480a96437416a66721', class: "go-to-page-holder" }, hAsync("ic-typography", { key: 'd33e0a8d6ccbde4f5b44d2cdac54eac4288cf2de', variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { key: '6a6d2d300dbb3419313775fec483f5580bf45add', label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { key: '94b9d3cb57ca5141392827b81006267e44358473', theme: theme, type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { key: 'e6b3a97814c0af73c289f46b9c797efdfd3702e2', variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go")))))));
|
|
19547
19632
|
}
|
|
19548
19633
|
get el() { return getElement(this); }
|
|
19549
19634
|
static get watchers() { return {
|
|
@@ -19560,6 +19645,7 @@ class PaginationBar {
|
|
|
19560
19645
|
"$flags$": 9,
|
|
19561
19646
|
"$tagName$": "ic-pagination-bar",
|
|
19562
19647
|
"$members$": {
|
|
19648
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
19563
19649
|
"alignment": [1],
|
|
19564
19650
|
"currentPage": [2, "current-page"],
|
|
19565
19651
|
"selectedItemsPerPage": [2, "selected-items-per-page"],
|
|
@@ -21169,7 +21255,7 @@ var Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
21169
21255
|
</svg>
|
|
21170
21256
|
`;
|
|
21171
21257
|
|
|
21172
|
-
var Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
21258
|
+
var Clear$1 = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
21173
21259
|
<path d="M12.6666 4.27334L11.7266 3.33334L7.99998 7.06001L4.27331 3.33334L3.33331 4.27334L7.05998 8.00001L3.33331 11.7267L4.27331 12.6667L7.99998 8.94001L11.7266 12.6667L12.6666 11.7267L8.93998 8.00001L12.6666 4.27334Z" fill="currentColor" />
|
|
21174
21260
|
</svg>
|
|
21175
21261
|
`;
|
|
@@ -21991,7 +22077,7 @@ class Select {
|
|
|
21991
22077
|
}, role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: inputId, value: searchableSelectInputValue || undefined, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: form }), isClearable && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": searchableSelectInputValue &&
|
|
21992
22078
|
(currValue === null || loading)
|
|
21993
22079
|
? "Clear input"
|
|
21994
|
-
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
22080
|
+
: "Clear selection", class: "clear-button", innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { class: "divider" }))), hAsync("span", { onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
21995
22081
|
"expand-icon": true,
|
|
21996
22082
|
"expand-icon-open": open,
|
|
21997
22083
|
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (hAsync("div", { class: "select-container" }, hAsync("button", { role: "combobox", class: "select-input", ref: (el) => (this.customSelectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && currValue
|
|
@@ -22005,7 +22091,7 @@ class Select {
|
|
|
22005
22091
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
22006
22092
|
"expand-icon": true,
|
|
22007
22093
|
"expand-icon-open": open,
|
|
22008
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'b56cf5adc26838ad0f873aa16df8da7fd7b83d22', class: {
|
|
22094
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (hAsync("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'b56cf5adc26838ad0f873aa16df8da7fd7b83d22', class: {
|
|
22009
22095
|
"no-results": loading ||
|
|
22010
22096
|
hasTimedOut ||
|
|
22011
22097
|
(searchable &&
|
|
@@ -22603,6 +22689,11 @@ const DEFAULT_HEIGHTS = {
|
|
|
22603
22689
|
circle: "25px",
|
|
22604
22690
|
rectangle: "93px",
|
|
22605
22691
|
};
|
|
22692
|
+
const DEFAULT_WIDTHS = {
|
|
22693
|
+
text: "260px",
|
|
22694
|
+
circle: "25px",
|
|
22695
|
+
rectangle: "260px",
|
|
22696
|
+
};
|
|
22606
22697
|
class Skeleton {
|
|
22607
22698
|
constructor(hostRef) {
|
|
22608
22699
|
registerInstance(this, hostRef);
|
|
@@ -22616,18 +22707,28 @@ class Skeleton {
|
|
|
22616
22707
|
this.variant = "rectangle";
|
|
22617
22708
|
}
|
|
22618
22709
|
render() {
|
|
22619
|
-
const { variant, theme, el } = this;
|
|
22710
|
+
const { variant = "rectangle", theme, el } = this;
|
|
22711
|
+
let height = this.height;
|
|
22712
|
+
let width = this.width;
|
|
22713
|
+
if (variant === "circle") {
|
|
22714
|
+
if (height && !width) {
|
|
22715
|
+
width = height;
|
|
22716
|
+
}
|
|
22717
|
+
else if (width && !height) {
|
|
22718
|
+
height = width;
|
|
22719
|
+
}
|
|
22720
|
+
}
|
|
22620
22721
|
const style = !el.firstElementChild
|
|
22621
22722
|
? {
|
|
22622
|
-
height: el.style.height || DEFAULT_HEIGHTS[variant],
|
|
22623
|
-
width: el.style.width ||
|
|
22723
|
+
height: el.style.height || height || DEFAULT_HEIGHTS[variant],
|
|
22724
|
+
width: el.style.width || width || DEFAULT_WIDTHS[variant],
|
|
22624
22725
|
}
|
|
22625
22726
|
: undefined;
|
|
22626
|
-
return (hAsync(Host, { key: '
|
|
22727
|
+
return (hAsync(Host, { key: '3cb324b15256dfa0f641621061b5c9a0a102da61', class: {
|
|
22627
22728
|
skeleton: true,
|
|
22628
22729
|
"ic-skeleton-circle": variant === "circle",
|
|
22629
22730
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22630
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
|
22731
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '93a1efa371acaf2aaff6674198e4083a4cf21862' })));
|
|
22631
22732
|
}
|
|
22632
22733
|
get el() { return getElement(this); }
|
|
22633
22734
|
static get style() { return IcSkeletonStyle0; }
|
|
@@ -22636,7 +22737,9 @@ class Skeleton {
|
|
|
22636
22737
|
"$tagName$": "ic-skeleton",
|
|
22637
22738
|
"$members$": {
|
|
22638
22739
|
"theme": [1],
|
|
22639
|
-
"variant": [1]
|
|
22740
|
+
"variant": [1],
|
|
22741
|
+
"height": [1],
|
|
22742
|
+
"width": [1]
|
|
22640
22743
|
},
|
|
22641
22744
|
"$listeners$": undefined,
|
|
22642
22745
|
"$lazyBundleId$": "-",
|
|
@@ -22781,9 +22884,12 @@ var warningIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" x
|
|
|
22781
22884
|
<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"/>
|
|
22782
22885
|
</svg>`;
|
|
22783
22886
|
|
|
22784
|
-
const icStepCss = ":host{display:flex;flex:auto;--ic-typography-color:currentcolor}.step{display:flex;flex:1 1 0}.step-icon{display:flex;justify-content:center}.heading,.subheading,.step-status,.next-step{white-space:pre-line}.next-step{color:var(--ic-stepper-compact-step-next-text)}.visually-hidden{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.visually-hidden:dir(rtl){right:-9999px}:host(.ic-step-compact){-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-step-indicator-status-current);--compact-step-outer-color:var(--ic-step-indicator-status-remaining);--compact-step-circular-line-width:var(--ic-space-xxs)}:host(.ic-step-compact) .step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}:host(.ic-step-compact) .step:not(.current){display:none;opacity:0;visibility:hidden}.compact-step-progress-indicator{margin:var(--ic-space-xs) 0 0}:host ic-loading-indicator::part(ic-loading-container){border-radius:50%}:host() ic-loading-indicator::part(ic-loading-container){background-color:var(--ic-step-indicator-background)}:host(.ic-step-compact) .heading-area{display:flex;flex-direction:column;width:14.25rem}:host(.ic-step-compact) .heading{color:var(--ic-stepper-compact-step-title)}:host(.ic-step-compact) .disabled .heading{color:var(--ic-stepper-compact-step-title-disabled)}.info-line{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}.step-status{display:flex;color:var(--ic-stepper-compact-step-requirement-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}.compact-step-completed .step-status{color:var(--ic-stepper-compact-step-completed-text)}.compact-step-disabled :is(.heading,.step-status){color:var(--ic-stepper-compact-step-requirement-text-disabled)}.step-num{color:var(--ic-stepper-compact-step-stage-text);white-space:nowrap}:host(.ic-step-compact) .step-icon{margin:var(--ic-space-xxxs)}:host(.ic-step-compact) .step-icon svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-step-default) .step{flex-direction:column}:host(.ic-step-default.last-step){flex-grow:initial}.step-top{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}:host(.ic-step-default) .step-icon{border-radius:50%;background-color:var(--ic-step-number-inactive)}.step-icon-inner{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%;color:var(--ic-step-number-text-inactive)}:host(.ic-step-default) .current{color:var(--ic-status-info-default)}:host(.ic-step-default) .heading-area{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}:host(.ic-step-default) .heading,.subheading{width:-moz-fit-content;width:fit-content}.heading{color:var(--ic-step-title)}.current .heading{color:var(--ic-step-title-current)}.completed .heading{color:var(--ic-step-title-success)}.disabled .heading{color:var(--ic-step-title-disabled)}.subheading{color:var(--ic-step-title-status-text-inactive)}.current .subheading{color:var(--ic-step-title-status-text-current)}.disabled .subheading{color:var(--ic-step-title-status-text-disabled)}:host(.ic-step-default) .completed{color:var(--ic-status-success-default)}.active .step-icon-inner{box-shadow:inset var(--ic-step-number-inactive-outline) 0 0 0 0.125rem}.current .step-icon-inner{background-color:var(--ic-step-number-background-active);color:var(--ic-step-number-text-current)}.disabled{color:var(--ic-color-text-disabled-mid)}.disabled .step-icon-inner{border:var(--ic-border-width) dashed var(--ic-step-number-disabled);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs));color:var(--ic-step-number-text-disabled)}.disabled .step-icon{background-color:transparent !important}.completed .step-icon-inner{background:var(--ic-step-number-background-success);box-shadow:inset var(--ic-step-number-background-success) 0 0 0\n var(--ic-space-xxxs);border-radius:100%}:host(.ic-step-default) .current .step-icon{border:var(--ic-space-xxxs) solid var(--ic-step-number-current-outline);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs));background-color:var(--ic-step-number-current-outer-fill);}.step-connect{height:var(--ic-space-xxxs);background-color:var(--ic-stepper-connector-remaining-status);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}.aligned-full-width.step-connect{min-width:6.25rem;width:100%}.disabled .step-connect{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-stepper-connector-disabled);border-radius:0}.completed .step-connect{background-color:var(--ic-stepper-connector-success)}.step-connect-inner{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-stepper-connector-current-status)}.step-icon-inner .check-icon{padding-top:var(--ic-space-xxs)}.step-icon-inner .check-icon svg{width:var(--ic-space-md);height:auto}.step-icon-inner .check-icon>svg>path{fill:var(--ic-step-number-icon-success)}@media (forced-colors: active){.compact-step-disabled :is(.heading,.step-status){color:GrayText}.step-connect:not(.disabled .step-connect){border:var(--ic-border-hc)}.active .step-icon-inner,.completed .step-icon-inner,.current .step-icon-inner{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}:host(.ic-step-default) .current .step-icon{padding:0;border:none}.disabled,.disabled .heading-area,.disabled .step-icon-inner,.disabled .heading{color:GrayText}.step-connect-inner,.completed .step-connect{background-color:canvastext}.step-icon-inner .check-icon>svg>path{fill:canvastext}}";
|
|
22887
|
+
const icStepCss = ":host{display:flex;flex:auto;--ic-typography-color:currentcolor}.step{display:flex;flex:1 1 0}.step-icon{display:flex;justify-content:center}.heading,::slotted([slot=\"heading\"]),.subheading,.step-status,.next-step{white-space:pre-line}.next-step{color:var(--ic-stepper-compact-step-next-text)}.visually-hidden{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.visually-hidden:dir(rtl){right:-9999px}:host(.ic-step-compact){-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm);--compact-step-inner-color:var(--ic-step-indicator-status-current);--compact-step-outer-color:var(--ic-step-indicator-status-remaining);--compact-step-circular-line-width:var(--ic-space-xxs)}:host(.ic-step-compact) .step{-moz-column-gap:var(--ic-space-sm);column-gap:var(--ic-space-sm)}:host(.ic-step-compact) .step:not(.current){display:none;opacity:0;visibility:hidden}.compact-step-progress-indicator{margin:var(--ic-space-xs) 0 0}:host ic-loading-indicator::part(ic-loading-container){border-radius:50%}:host() ic-loading-indicator::part(ic-loading-container){background-color:var(--ic-step-indicator-background)}:host(.ic-step-compact) .heading-area{display:flex;flex-direction:column;width:14.25rem}:host(.ic-step-compact) .heading,:host(.ic-step-compact) ::slotted([slot=\"heading\"]){color:var(--ic-stepper-compact-step-title)}:host(.ic-step-compact) .disabled .heading,:host(.ic-step-compact) .disabled ::slotted([slot=\"heading\"]){color:var(--ic-stepper-compact-step-title-disabled)}.info-line{display:flex;-moz-column-gap:var(--ic-space-xs);column-gap:var(--ic-space-xs)}.step-status{display:flex;color:var(--ic-stepper-compact-step-requirement-text);-moz-column-gap:var(--ic-space-xxxs);column-gap:var(--ic-space-xxxs)}.compact-step-completed .step-status{color:var(--ic-stepper-compact-step-completed-text)}.compact-step-disabled :is(.heading,.step-status){color:var(--ic-stepper-compact-step-requirement-text-disabled)}.step-num{color:var(--ic-stepper-compact-step-stage-text);white-space:nowrap}:host(.ic-step-compact) .step-icon{margin:var(--ic-space-xxxs)}:host(.ic-step-compact) .step-icon svg{width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-step-default) .step{flex-direction:column}:host(.ic-step-default.last-step){flex-grow:initial}.step-top{display:flex;width:100%;align-items:center;align-self:flex-start;height:2.5rem}:host(.ic-step-default) .step-icon{border-radius:50%;background-color:var(--ic-step-number-inactive)}.step-icon-inner{width:var(--ic-space-xl);height:var(--ic-space-xl);display:flex;justify-content:center;align-items:center;border-radius:50%;color:var(--ic-step-number-text-inactive)}:host(.ic-step-default) .current{color:var(--ic-status-info-default)}:host(.ic-step-default) .heading-area{margin:var(--ic-space-xs) 0;padding-right:var(--ic-space-xs);width:100%}:host(.ic-step-default) .heading,:host(.ic-step-default) ::slotted([slot=\"heading\"]),.subheading{width:-moz-fit-content;width:fit-content}.heading,::slotted([slot=\"heading\"]){color:var(--ic-step-title)}.current .heading,.current ::slotted([slot=\"heading\"]){color:var(--ic-step-title-current)}.completed .heading,.completed ::slotted([slot=\"heading\"]){color:var(--ic-step-title-success)}.disabled .heading,.disabled ::slotted([slot=\"heading\"]){color:var(--ic-step-title-disabled)}.subheading{color:var(--ic-step-title-status-text-inactive)}.current .subheading{color:var(--ic-step-title-status-text-current)}.disabled .subheading{color:var(--ic-step-title-status-text-disabled)}:host(.ic-step-default) .completed{color:var(--ic-status-success-default)}.active .step-icon-inner{box-shadow:inset var(--ic-step-number-inactive-outline) 0 0 0 0.125rem}.current .step-icon-inner{background-color:var(--ic-step-number-background-active);color:var(--ic-step-number-text-current)}.disabled{color:var(--ic-color-text-disabled-mid)}.disabled .step-icon-inner{border:var(--ic-border-width) dashed var(--ic-step-number-disabled);width:calc(var(--ic-space-xl) - var(--ic-space-xxxs));height:calc(var(--ic-space-xl) - var(--ic-space-xxxs));color:var(--ic-step-number-text-disabled)}.disabled .step-icon{background-color:transparent !important}.completed .step-icon-inner{background:var(--ic-step-number-background-success);box-shadow:inset var(--ic-step-number-background-success) 0 0 0\n var(--ic-space-xxxs);border-radius:100%}:host(.ic-step-default) .current .step-icon{border:var(--ic-space-xxxs) solid var(--ic-step-number-current-outline);padding:var(--ic-space-xxxs);margin:0 calc(-1 * var(--ic-space-xxxs));background-color:var(--ic-step-number-current-outer-fill);}.step-connect{height:var(--ic-space-xxxs);background-color:var(--ic-stepper-connector-remaining-status);margin:0 var(--ic-space-xs);border-radius:var(--ic-space-xxs);width:100%}.aligned-full-width.step-connect{min-width:6.25rem;width:100%}.disabled .step-connect{height:0;background-color:rgb(0 0 0 / 0%);border-top:0.125rem dashed var(--ic-stepper-connector-disabled);border-radius:0}.completed .step-connect{background-color:var(--ic-stepper-connector-success)}.step-connect-inner{width:70%;display:flex;flex:auto;height:var(--ic-space-xxxs);border-radius:var(--ic-space-xxs);background-color:var(--ic-stepper-connector-current-status)}.step-icon-inner .check-icon{padding-top:var(--ic-space-xxs)}.step-icon-inner .check-icon svg{width:var(--ic-space-md);height:auto}.step-icon-inner .check-icon>svg>path{fill:var(--ic-step-number-icon-success)}@media (forced-colors: active){.compact-step-disabled :is(.heading,.step-status){color:GrayText}.step-connect:not(.disabled .step-connect){border:var(--ic-border-hc)}.active .step-icon-inner,.completed .step-icon-inner,.current .step-icon-inner{forced-color-adjust:none;box-shadow:inset canvastext 0 0 0 0.125rem;background-color:transparent;color:canvastext}:host(.ic-step-default) .current .step-icon{padding:0;border:none}.disabled,.disabled .heading-area,.disabled .step-icon-inner,.disabled .heading,.disabled ::slotted([slot=\"heading\"]){color:GrayText}.step-connect-inner,.completed .step-connect{background-color:canvastext}.step-icon-inner .check-icon>svg>path{fill:canvastext}}";
|
|
22785
22888
|
var IcStepStyle0 = icStepCss;
|
|
22786
22889
|
|
|
22890
|
+
/**
|
|
22891
|
+
* @slot heading - Content will be rendered in place of the heading prop.
|
|
22892
|
+
*/
|
|
22787
22893
|
class Step {
|
|
22788
22894
|
constructor(hostRef) {
|
|
22789
22895
|
registerInstance(this, hostRef);
|
|
@@ -22827,6 +22933,8 @@ class Step {
|
|
|
22827
22933
|
const { compactStepStyling, current, heading, icI18n, lastStep, lastStepNum, nextStepHeading, progress, status, stepNum, subheading, theme, type, variant, } = this;
|
|
22828
22934
|
// ARIA LABEL
|
|
22829
22935
|
let ariaLabel = "";
|
|
22936
|
+
const hasHeading = (isPropDefined$1(heading) && heading !== "") ||
|
|
22937
|
+
isSlotUsed$1(this.el, "heading");
|
|
22830
22938
|
if (type === "completed") {
|
|
22831
22939
|
ariaLabel = `. ${icI18n.completed}`;
|
|
22832
22940
|
}
|
|
@@ -22855,27 +22963,27 @@ class Step {
|
|
|
22855
22963
|
// STATUS ICON FOR COMPACT STEP
|
|
22856
22964
|
let statusIcon;
|
|
22857
22965
|
if (type === "completed" || compactStepStyling === "completed") {
|
|
22858
|
-
statusIcon = (hAsync("span", { key: '
|
|
22966
|
+
statusIcon = (hAsync("span", { key: 'ba84e43d6b6febb1b465c7d0a5a5bd76e6645c01', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
22859
22967
|
}
|
|
22860
22968
|
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
22861
|
-
statusIcon = (hAsync("span", { key: '
|
|
22969
|
+
statusIcon = (hAsync("span", { key: '43b597121b17fa8aef98f41792b9e75e5da95d73', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
22862
22970
|
}
|
|
22863
22971
|
// COMPACT STEP COMPONENT
|
|
22864
|
-
const compactStep = (hAsync("div", { key: '
|
|
22972
|
+
const compactStep = (hAsync("div", { key: 'cac4daaa6da8904d2e69ec16346262d18281819d', class: {
|
|
22865
22973
|
["step"]: true,
|
|
22866
22974
|
["current"]: !!current,
|
|
22867
22975
|
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
22868
22976
|
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
22869
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
|
22977
|
+
} }, hAsync("ic-loading-indicator", { key: 'aef65f9660c2bd2fe46dc205afbf582c16d6b6a0', class: {
|
|
22870
22978
|
"compact-step-progress-indicator": true,
|
|
22871
22979
|
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
22872
|
-
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: '
|
|
22980
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), hAsync("div", { key: 'ddb67de08977f0f460d72493d9049d332296aeaa', class: "heading-area" }, isSlotUsed$1(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "h4", class: "heading" }, heading)), hAsync("div", { key: 'f6b657968d62be2010ee736bbccbcf3484f56196', class: "info-line" }, hAsync("ic-typography", { key: 'c632f49ad68d701a398e3cfb7a60bf08ceb00b98', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, hAsync("span", { key: '6fa841aa5da07894c41076b60ffc7846ceee6595', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
22873
22981
|
type === "completed" ||
|
|
22874
22982
|
type === "disabled" ||
|
|
22875
22983
|
(this.variant === "compact" &&
|
|
22876
22984
|
!!compactStepStyling &&
|
|
22877
22985
|
compactStepStyling !== "active") ||
|
|
22878
|
-
!!status) && (hAsync("div", { key: '
|
|
22986
|
+
!!status) && (hAsync("div", { key: '7a309e8ff089ca29c132aec776ee076bc107b46a', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (hAsync("ic-typography", { key: '9aeddf74fce64cfb90861b7e0ca88ac7c206c0ad', variant: "caption" }, subheading !== null && isPropDefined$1(subheading)
|
|
22879
22987
|
? subheading
|
|
22880
22988
|
: type === "disabled" ||
|
|
22881
22989
|
(variant === "compact" &&
|
|
@@ -22888,26 +22996,26 @@ class Step {
|
|
|
22888
22996
|
// ICON FOR DEFAULT STEP
|
|
22889
22997
|
let icon;
|
|
22890
22998
|
if (type !== "completed") {
|
|
22891
|
-
icon = (hAsync("ic-typography", { key: '
|
|
22999
|
+
icon = (hAsync("ic-typography", { key: 'b2bd2aec5f28419635b1d0c2983c1d131fa0cf93', variant: "subtitle-small" }, hAsync("span", { key: '26ad3501e4f159aac36162064f712c404b896017', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
22892
23000
|
}
|
|
22893
23001
|
else {
|
|
22894
|
-
icon = (hAsync("div", { key: '
|
|
23002
|
+
icon = (hAsync("div", { key: '6b34304442c6b4eb8b106a0ff2ad5c231bf205bf', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: 'd62fc155679ce30e9fbf87e2a26d47a7f4b546ed', class: "check-icon", innerHTML: checkIcon })));
|
|
22895
23003
|
}
|
|
22896
23004
|
// STEP CONNECT FOR DEFAULT STEP
|
|
22897
|
-
const partialBar = type === "current" && (hAsync("div", { key: '
|
|
22898
|
-
const finalStep = !lastStep && (hAsync("div", { key: '
|
|
23005
|
+
const partialBar = type === "current" && (hAsync("div", { key: '9aca98b76e886d9d11cedba769002d757c85f6f0', class: "step-connect-inner" }));
|
|
23006
|
+
const finalStep = !lastStep && (hAsync("div", { key: '494c8fb9fe72ce7ba37a52b56edcd00460248cca', class: {
|
|
22899
23007
|
["step-connect"]: true,
|
|
22900
23008
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
22901
23009
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
22902
23010
|
} }, partialBar));
|
|
22903
23011
|
// DEFAULT STEP COMPONENT
|
|
22904
|
-
const defaultStep = (hAsync("div", { key: '
|
|
23012
|
+
const defaultStep = (hAsync("div", { key: '00c780fca9cab9cf01f5662d10fed10474d84045', class: {
|
|
22905
23013
|
["step"]: true,
|
|
22906
23014
|
[`${type}`]: true,
|
|
22907
|
-
} }, hAsync("div", { key: '
|
|
23015
|
+
} }, hAsync("div", { key: 'd727e05be7c6179c65fafc7eb6508b871ff5e30c', class: "step-top" }, hAsync("div", { key: 'e03d6f2665ef97f1d6f2d38e86cf1461d515cd7a', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (hAsync("div", { key: '04d1c9ac6ee4df8e5d4394a1d1f6fe073d8ee307', class: "heading-area" }, isSlotUsed$1(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (hAsync("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (hAsync("ic-typography", { key: '16fc9c541e21d0be0d8f0f7566ed8ac8e5c333cd', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined$1(subheading)
|
|
22908
23016
|
? subheading
|
|
22909
23017
|
: stepStatus))))));
|
|
22910
|
-
return (hAsync(Host, { key: '
|
|
23018
|
+
return (hAsync(Host, { key: 'b0ae592b4c3148fe977efc52cd17f88c2a01da2c', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
22911
23019
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
22912
23020
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
22913
23021
|
[`ic-step-${variant}`]: true,
|
|
@@ -22995,10 +23103,29 @@ class Stepper {
|
|
|
22995
23103
|
* The variant of the stepper.
|
|
22996
23104
|
*/
|
|
22997
23105
|
this.variant = "default";
|
|
23106
|
+
this.stepHeading = (step, includeAutogeneratedTitles = false) => {
|
|
23107
|
+
var _a, _b, _c, _d;
|
|
23108
|
+
if (step.hasAttribute("heading") && step.getAttribute("heading") !== "") {
|
|
23109
|
+
return step.getAttribute("heading") || undefined;
|
|
23110
|
+
}
|
|
23111
|
+
const headingSlot = (_a = step.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="heading"]');
|
|
23112
|
+
const assignedNodes = ((_b = headingSlot === null || headingSlot === void 0 ? void 0 : headingSlot.assignedNodes) === null || _b === void 0 ? void 0 : _b.call(headingSlot)) || [];
|
|
23113
|
+
for (const node of assignedNodes) {
|
|
23114
|
+
const text = node.nodeType === Node.TEXT_NODE
|
|
23115
|
+
? (_c = node.textContent) === null || _c === void 0 ? void 0 : _c.trim()
|
|
23116
|
+
: (_d = node.innerText) === null || _d === void 0 ? void 0 : _d.trim();
|
|
23117
|
+
if (text)
|
|
23118
|
+
return text;
|
|
23119
|
+
}
|
|
23120
|
+
if (includeAutogeneratedTitles && step.heading) {
|
|
23121
|
+
return step.heading;
|
|
23122
|
+
}
|
|
23123
|
+
return undefined;
|
|
23124
|
+
};
|
|
22998
23125
|
// Get all steps currently within this stepper
|
|
22999
23126
|
this.getChildren = () => {
|
|
23000
23127
|
this.steps = Array.from(this.el.querySelectorAll("ic-step"));
|
|
23001
|
-
this.stepsWithStepTitles =
|
|
23128
|
+
this.stepsWithStepTitles = this.steps.filter((step) => !!this.stepHeading(step, false));
|
|
23002
23129
|
};
|
|
23003
23130
|
// Inform the user that stepTitles are required on all steps in a compact stepper
|
|
23004
23131
|
this.checkStepTitles = () => {
|
|
@@ -23080,7 +23207,8 @@ class Stepper {
|
|
|
23080
23207
|
step.classList.add("hide");
|
|
23081
23208
|
}
|
|
23082
23209
|
if (!step.lastStep) {
|
|
23083
|
-
|
|
23210
|
+
const nextStep = this.steps[index + 1];
|
|
23211
|
+
step.nextStepHeading = this.stepHeading(nextStep, true);
|
|
23084
23212
|
step.progress = (step.stepNum / this.steps.length) * 100;
|
|
23085
23213
|
}
|
|
23086
23214
|
else if (step.lastStep && this.stepTypes[index] !== "completed") {
|
|
@@ -23207,11 +23335,11 @@ class Stepper {
|
|
|
23207
23335
|
checkResizeObserver$1(this.runResizeObserver);
|
|
23208
23336
|
}
|
|
23209
23337
|
render() {
|
|
23210
|
-
return (hAsync(Host, { key: '
|
|
23338
|
+
return (hAsync(Host, { key: '2ec1fcb09c175807a7d6c4f56748378363073f1e', class: {
|
|
23211
23339
|
[`ic-stepper-${this.variant}`]: true,
|
|
23212
23340
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
23213
23341
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
23214
|
-
} }, hAsync("ul", { key: '
|
|
23342
|
+
} }, hAsync("ul", { key: 'a83274c2c50ef587165b467a169f0f252e5540c7', class: "step-item-list" }, hAsync("slot", { key: '0143ddf0255e345ded3a8d741797c0d0ce1da4ca' }))));
|
|
23215
23343
|
}
|
|
23216
23344
|
get el() { return getElement(this); }
|
|
23217
23345
|
static get watchers() { return {
|
|
@@ -23342,16 +23470,16 @@ class Switch {
|
|
|
23342
23470
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
23343
23471
|
const isSmall = size === "small";
|
|
23344
23472
|
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
|
23345
|
-
return (hAsync(Host, { key: '
|
|
23473
|
+
return (hAsync(Host, { key: 'e11db5d9ef7157f5b496107646dd45989b3fd2cf', class: {
|
|
23346
23474
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23347
|
-
} }, hAsync("label", { key: '
|
|
23475
|
+
} }, hAsync("label", { key: '3f0b6684b623d60898f68ae91914696ed1856907', class: {
|
|
23348
23476
|
"ic-switch-container": true,
|
|
23349
23477
|
"ic-switch-disabled": !!disabled,
|
|
23350
23478
|
"ic-switch-small": isSmall,
|
|
23351
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
|
23479
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: 'd170da813d11e7842c7b52ad33a0e003326c91b2', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
23352
23480
|
"ic-switch-label": true,
|
|
23353
23481
|
"ic-switch-label-small": isSmall,
|
|
23354
|
-
} }, hAsync("slot", { key: '
|
|
23482
|
+
} }, hAsync("slot", { key: '86b0675dc2701c7eae251047fd8cc4177d3ec3a5', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: '10a20bc44042273b6dda222f4c0547279b89844f', class: "ic-switch-line-break" }), hAsync("input", { key: '6edd5108b2f94b6fb0766b142980e1c7d5ef2209', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText$1(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), hAsync("span", { key: 'f8fe1fa3345d804d3df07284bc66d8f54127833a', class: "ic-switch-toggle" }, hAsync("svg", { key: 'bbd2c67828e7931dc5618be39e454075352ba321', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '430057b77a9506f2eeb2338ab9db8917234d1f93', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: 'f3a8b817039210b892faee6ca5a115d4fdb07286', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: 'f7d2d56b743834016888f477892202e17b2b3fef', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'fec7bad487e3f3c4e3223b713b74653c155114ae', name: "right-adornment" }))));
|
|
23355
23483
|
}
|
|
23356
23484
|
static get delegatesFocus() { return true; }
|
|
23357
23485
|
get el() { return getElement(this); }
|
|
@@ -23737,7 +23865,7 @@ class TabContext {
|
|
|
23737
23865
|
}
|
|
23738
23866
|
}
|
|
23739
23867
|
render() {
|
|
23740
|
-
return hAsync("slot", { key: '
|
|
23868
|
+
return hAsync("slot", { key: 'f5ec87ebfe042f0ebc06c809601b7040c0979dc3' });
|
|
23741
23869
|
}
|
|
23742
23870
|
get el() { return getElement(this); }
|
|
23743
23871
|
static get watchers() { return {
|
|
@@ -23784,11 +23912,11 @@ class TabGroup {
|
|
|
23784
23912
|
}
|
|
23785
23913
|
render() {
|
|
23786
23914
|
const { inline, theme, label, monochrome } = this;
|
|
23787
|
-
return (hAsync(Host, { key: '
|
|
23915
|
+
return (hAsync(Host, { key: 'd4354a73edcfe5ed044e2acf6d04256eddcb7f40', role: "tablist", "aria-label": label, class: {
|
|
23788
23916
|
["ic-tab-group-inline"]: !!inline,
|
|
23789
23917
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23790
23918
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
23791
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
|
23919
|
+
} }, hAsync("ic-horizontal-scroll", { key: '42cf7391e17b38a3489e77bc3d882aa31902c14a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: '81270d7ad5567b23ab8098679705c3818b3bfd35', class: "tabs-container" }, hAsync("slot", { key: 'ee7b2ece3edc06146170b759f2c08e22bca9fc7f' })))));
|
|
23792
23920
|
}
|
|
23793
23921
|
static get delegatesFocus() { return true; }
|
|
23794
23922
|
static get style() { return IcTabGroupStyle0; }
|
|
@@ -23831,10 +23959,10 @@ class TabPanel {
|
|
|
23831
23959
|
}
|
|
23832
23960
|
render() {
|
|
23833
23961
|
const { active, theme } = this;
|
|
23834
|
-
return (hAsync(Host, { key: '
|
|
23962
|
+
return (hAsync(Host, { key: '5da4dba2bf404436c8b49173f9056d56912e9049', class: {
|
|
23835
23963
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
23836
23964
|
"ic-tab-panel-hidden": !active,
|
|
23837
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
|
23965
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '9f7b4cbaa9a2c5a72307ca07097cdb50fd93adb2' }, hAsync("slot", { key: 'f97121f2a2d3092c18bd15c82743ba2a988a1134' }))));
|
|
23838
23966
|
}
|
|
23839
23967
|
get el() { return getElement(this); }
|
|
23840
23968
|
static get style() { return IcTabPanelStyle0; }
|
|
@@ -24776,7 +24904,7 @@ class Theme {
|
|
|
24776
24904
|
}
|
|
24777
24905
|
render() {
|
|
24778
24906
|
const { themeClass } = this;
|
|
24779
|
-
return (hAsync(Host, { key: '
|
|
24907
|
+
return (hAsync(Host, { key: 'd994b33e982d89fdb62837456a5a1c90471d0a6a', class: themeClass }, hAsync("slot", { key: 'cc67f5ec282adfe4695a7ecf9134fba920a71a7e' })));
|
|
24780
24908
|
}
|
|
24781
24909
|
static get watchers() { return {
|
|
24782
24910
|
"brandColor": ["watchBrandColorPropHandler"],
|
|
@@ -24798,7 +24926,7 @@ class Theme {
|
|
|
24798
24926
|
|
|
24799
24927
|
var Clock = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>clock-outline</title><path d="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z" /></svg>`;
|
|
24800
24928
|
|
|
24801
|
-
const icTimeInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input,.
|
|
24929
|
+
const icTimeInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--ic-input-label-helpertext-padding:var(--ic-space-xs);--input-bg-color:var(--ic-time-picker-field-background);--ic-input-label-text-color:var(--ic-time-picker-label);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle);--border-color:var(--ic-time-picker-time-field-border-default);--border-color-disabled:var(--ic-time-picker-border-disabled);--border-color-hover:var(--ic-time-picker-time-field-border-hover);--border-color-pressed:var(--ic-time-picker-time-field-border-pressed);--border-error-color:var(--ic-time-picker-border-error);--border-error-color-hover:var(--ic-time-picker-border-error-hover);--border-error-color-pressed:var(--ic-time-picker-border-error-pressed);--border-success-color:var(--ic-time-picker-border-success);--border-success-color-hover:var(--ic-time-picker-border-success-hover);--border-success-color-pressed:var(--ic-time-picker-border-success-pressed);--border-warning-color:var(--ic-time-picker-border-warning);--border-warning-color-hover:var(--ic-time-picker-border-warning-hover);--border-warning-color-pressed:var(--ic-time-picker-border-warning-pressed);--input-width:calc((4 * var(--ic-space-xxl)) + var(--ic-space-xxs))}:host(.ic-time-input-disabled){--ic-input-label-text-color:var(--ic-time-picker-label-disabled);--ic-input-label-helper-text-color:var(--ic-time-picker-subtitle-disabled)}:host(.ic-time-input-disabled) input{color:var(--ic-time-picker-time-text-disabled)}:host(.ic-time-input-large){--input-width:calc(\n (4 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-lg)\n )}:host(.ic-time-input-small){--input-width:calc(\n (3 * var(--ic-space-xxl)) + var(--ic-space-xxs) + var(--ic-space-xl)\n )}.with-am-pm-toggle{display:flex;flex-direction:row}.am-pm-toggle ::part(button){min-width:-moz-fit-content;min-width:fit-content}.am-pm-toggle{margin-left:var(--ic-space-xs)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-time-picker-time-text-default);caret-color:var(--ic-time-picker-typing-cursor)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}input:-webkit-autofill{box-shadow:0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset;-webkit-text-fill-color:var(--ic-time-picker-time-text-default) !important}input::-moz-placeholder{color:var(--ic-time-picker-field-placeholder-text)}input::placeholder{color:var(--ic-time-picker-field-placeholder-text)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.time-inputs{color:var(--ic-time-picker-field-placeholder-text)}.hour-input{width:1.438rem}.minute-input{width:1.813rem}.second-input{width:1.18rem}.millisecond-input,.millisecond-input.fit-to-value{width:1.75rem}.fit-to-value{width:1.25rem}.sr-only{position:absolute;left:-9999px}.input-container{width:100%;display:flex;justify-content:space-between;align-items:center;position:relative}.action-buttons{display:flex;align-items:center}.show-clock-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.clock-button{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{display:none}.clear-button:focus,.clock-button:focus,.clear-button:active,.clock-button:active{background-color:var(--ic-color-focus-inner) !important;box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer) !important;border-radius:0.25rem}.clock-button:focus,.clock-button:active{--ic-button-tertiary-text-active:var(--ic-atoms-input-clear-button-focus);--ic-button-tertiary-text-hover-active:var(\n --ic-atoms-input-clear-button-focus\n );--ic-button-tertiary-text-pressed-active:var(\n --ic-atoms-input-clear-button-focus\n )}.clear-button:focus,.clock-button:focus,.clear-button:active *,.clock-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-time-picker-clear-icon)}.clear-button:focus svg{color:var(--ic-atoms-input-clear-button-focus)}.divider{margin:0 var(--ic-space-xxs);width:var(--ic-space-1px);background-color:var(--ic-atoms-input-divider);border-radius:var(--ic-space-1px)}.divider.small{height:var(--ic-space-md)}.divider.medium{height:calc(var(--ic-space-sm) + var(--ic-space-xs))}.divider.large{height:var(--ic-space-lg)}ic-input-validation{--ic-input-validation-status-text-color:var(--ic-time-picker-status-text);--ic-input-validation-error:var(--ic-time-picker-icon-error);--ic-input-validation-warning-icon-color:var(--ic-time-picker-icon-warning);--ic-input-validation-success-icon-color:var(--ic-time-picker-icon-success)}@media (forced-colors: active){.clear-button svg{color:currentcolor}}";
|
|
24802
24930
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
24803
24931
|
|
|
24804
24932
|
let inputIds = 0;
|
|
@@ -24810,9 +24938,10 @@ class TimeInput {
|
|
|
24810
24938
|
registerInstance(this, hostRef);
|
|
24811
24939
|
this.clockButtonClicked = createEvent(this, "clockButtonClicked", 7);
|
|
24812
24940
|
this.icBlur = createEvent(this, "icBlur", 7);
|
|
24813
|
-
this.
|
|
24941
|
+
this.icTimeChange = createEvent(this, "icTimeChange", 7);
|
|
24814
24942
|
this.icFocus = createEvent(this, "icFocus", 7);
|
|
24815
24943
|
this.DEFAULT_TIME_FORMAT = "HH:MM:SS";
|
|
24944
|
+
this.TOGGLE_BUTTON_SELECTOR = "ic-toggle-button";
|
|
24816
24945
|
this.ARIA_INVALID = "aria-invalid";
|
|
24817
24946
|
this.ARIA_LABEL = "aria-label";
|
|
24818
24947
|
this.ARIA_LABELLED_BY = "aria-labelledby";
|
|
@@ -24823,6 +24952,7 @@ class TimeInput {
|
|
|
24823
24952
|
this.isValidHour = true;
|
|
24824
24953
|
this.isValidMinute = true;
|
|
24825
24954
|
this.isValidSecond = true;
|
|
24955
|
+
this.isValidMillisecond = true;
|
|
24826
24956
|
this.isValidTime = true;
|
|
24827
24957
|
this.isTimeSetFromKeyboardEvent = false;
|
|
24828
24958
|
this.previousSelectedTime = null;
|
|
@@ -24831,22 +24961,30 @@ class TimeInput {
|
|
|
24831
24961
|
this.clearInput = false;
|
|
24832
24962
|
this.maxTime = null;
|
|
24833
24963
|
this.minTime = null;
|
|
24964
|
+
this.previousHour = "";
|
|
24965
|
+
this.previousMinute = "";
|
|
24966
|
+
this.previousSecond = "";
|
|
24967
|
+
this.previousMillisecond = "";
|
|
24968
|
+
this.previousPeriod = "AM";
|
|
24834
24969
|
this.clockFocused = false;
|
|
24835
24970
|
this.clearButtonFocused = false;
|
|
24836
24971
|
this.removeLabelledBy = false;
|
|
24837
24972
|
this.hour = "";
|
|
24838
24973
|
this.minute = "";
|
|
24839
24974
|
this.second = "";
|
|
24975
|
+
this.millisecond = "";
|
|
24976
|
+
this.period = "AM";
|
|
24977
|
+
this.isSSSFormat = () => this.timeFormat === "HH:MM:SS.SSS";
|
|
24840
24978
|
/**
|
|
24841
24979
|
* If `true`, the disabled state will be set.
|
|
24842
24980
|
*/
|
|
24843
24981
|
this.disabled = false;
|
|
24844
24982
|
/**
|
|
24845
|
-
* An array of
|
|
24983
|
+
* An array of objects with start and end values that will be disabled in the time input. The times can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
24846
24984
|
*/
|
|
24847
24985
|
this.disableTimes = [];
|
|
24848
24986
|
/**
|
|
24849
|
-
* If `true`, every individual input field completed will emit an
|
|
24987
|
+
* If `true`, every individual input field completed will emit an icTimeChange event.
|
|
24850
24988
|
*/
|
|
24851
24989
|
this.emitTimePartChange = false;
|
|
24852
24990
|
/**
|
|
@@ -24881,6 +25019,10 @@ class TimeInput {
|
|
|
24881
25019
|
* If `true`, the input will require a value.
|
|
24882
25020
|
*/
|
|
24883
25021
|
this.required = false;
|
|
25022
|
+
/**
|
|
25023
|
+
* If `true`, the time input will show an AM/PM toggle when in 12-hour time period.
|
|
25024
|
+
*/
|
|
25025
|
+
this.showAmPmToggle = false;
|
|
24884
25026
|
/**
|
|
24885
25027
|
* If `true`, a button which clears the time input when clicked will be displayed.
|
|
24886
25028
|
*/
|
|
@@ -24928,19 +25070,6 @@ class TimeInput {
|
|
|
24928
25070
|
inputEl.classList.add(this.FIT_TO_VALUE);
|
|
24929
25071
|
}
|
|
24930
25072
|
};
|
|
24931
|
-
this.parseTime = (value) => {
|
|
24932
|
-
if (!value)
|
|
24933
|
-
return null;
|
|
24934
|
-
if (value instanceof Date)
|
|
24935
|
-
return value;
|
|
24936
|
-
const parts = value.split(":");
|
|
24937
|
-
if (parts.length >= 2) {
|
|
24938
|
-
const d = new Date();
|
|
24939
|
-
d.setHours(+parts[0], +parts[1], parts[2] ? +parts[2] : 0, 0);
|
|
24940
|
-
return d;
|
|
24941
|
-
}
|
|
24942
|
-
return null;
|
|
24943
|
-
};
|
|
24944
25073
|
this.isHHMMFormat = () => this.timeFormat === "HH:MM";
|
|
24945
25074
|
this.isKeyboardOrEvent = (event) => {
|
|
24946
25075
|
return (Object.prototype.toString.call(event) === this.EVENT_OBJECT_STRING ||
|
|
@@ -24968,9 +25097,22 @@ class TimeInput {
|
|
|
24968
25097
|
else {
|
|
24969
25098
|
this.isValidSecond = true;
|
|
24970
25099
|
}
|
|
25100
|
+
if (this.isSSSFormat()) {
|
|
25101
|
+
if (!isEmptyString(this.millisecond)) {
|
|
25102
|
+
this.isValidMillisecond =
|
|
25103
|
+
+this.millisecond >= 0 && +this.millisecond <= 999;
|
|
25104
|
+
}
|
|
25105
|
+
else {
|
|
25106
|
+
this.isValidMillisecond = true;
|
|
25107
|
+
}
|
|
25108
|
+
}
|
|
25109
|
+
else {
|
|
25110
|
+
this.isValidMillisecond = true;
|
|
25111
|
+
}
|
|
24971
25112
|
}
|
|
24972
25113
|
else {
|
|
24973
25114
|
this.isValidSecond = true;
|
|
25115
|
+
this.isValidMillisecond = true;
|
|
24974
25116
|
}
|
|
24975
25117
|
};
|
|
24976
25118
|
this.setInputValue = (input, clear = false) => {
|
|
@@ -24984,6 +25126,9 @@ class TimeInput {
|
|
|
24984
25126
|
else if (input === this.secondInputEl && !this.isHHMMFormat()) {
|
|
24985
25127
|
this.second = newValue;
|
|
24986
25128
|
}
|
|
25129
|
+
else if (this.isSSSFormat() && input === this.millisecondInputEl) {
|
|
25130
|
+
this.millisecond = newValue;
|
|
25131
|
+
}
|
|
24987
25132
|
this.setValidationMessage();
|
|
24988
25133
|
};
|
|
24989
25134
|
this.setPreventInput = (input, isPrevented) => {
|
|
@@ -24996,22 +25141,50 @@ class TimeInput {
|
|
|
24996
25141
|
else if (input === this.secondInputEl) {
|
|
24997
25142
|
this.preventSecondInput = isPrevented;
|
|
24998
25143
|
}
|
|
25144
|
+
else if (this.isSSSFormat() && input === this.millisecondInputEl) {
|
|
25145
|
+
this.preventMillisecondInput = isPrevented;
|
|
25146
|
+
}
|
|
24999
25147
|
};
|
|
25000
25148
|
this.setValidationMessage = () => {
|
|
25001
|
-
this.maxTime =
|
|
25002
|
-
this.minTime =
|
|
25149
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
25150
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
25003
25151
|
this.setTimeValidity();
|
|
25004
25152
|
let outOfBoundsMsg = "";
|
|
25005
25153
|
let isDisabledTime = false;
|
|
25006
25154
|
if (!isEmptyString(this.hour) &&
|
|
25007
25155
|
!isEmptyString(this.minute) &&
|
|
25008
|
-
(this.isHHMMFormat() || !isEmptyString(this.second))
|
|
25009
|
-
|
|
25010
|
-
this.
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25156
|
+
(this.isHHMMFormat() || !isEmptyString(this.second)) &&
|
|
25157
|
+
(!this.isSSSFormat() || !isEmptyString(this.millisecond))) {
|
|
25158
|
+
this.selectedTime = this.convertToTime(this.hour, this.minute, this.isHHMMFormat() ? "00" : this.second, this.isSSSFormat() ? this.millisecond : "000");
|
|
25159
|
+
const inputHour = +this.hour;
|
|
25160
|
+
const selectedHour = this.selectedTime
|
|
25161
|
+
? this.selectedTime.getHours()
|
|
25162
|
+
: null;
|
|
25163
|
+
if (this.timePeriod === "12" &&
|
|
25164
|
+
this.showAmPmToggle &&
|
|
25165
|
+
selectedHour !== null) {
|
|
25166
|
+
let selectedHour12 = selectedHour % 12;
|
|
25167
|
+
if (selectedHour12 === 0)
|
|
25168
|
+
selectedHour12 = 12;
|
|
25169
|
+
this.isValidTime =
|
|
25170
|
+
!!this.selectedTime &&
|
|
25171
|
+
selectedHour12 == inputHour &&
|
|
25172
|
+
this.selectedTime.getMinutes() == +this.minute &&
|
|
25173
|
+
(this.isHHMMFormat() ||
|
|
25174
|
+
this.selectedTime.getSeconds() == +this.second) &&
|
|
25175
|
+
(!this.isSSSFormat() ||
|
|
25176
|
+
this.selectedTime.getMilliseconds() == +this.millisecond);
|
|
25177
|
+
}
|
|
25178
|
+
else {
|
|
25179
|
+
this.isValidTime =
|
|
25180
|
+
!!this.selectedTime &&
|
|
25181
|
+
this.selectedTime.getHours() == inputHour &&
|
|
25182
|
+
this.selectedTime.getMinutes() == +this.minute &&
|
|
25183
|
+
(this.isHHMMFormat() ||
|
|
25184
|
+
this.selectedTime.getSeconds() == +this.second) &&
|
|
25185
|
+
(!this.isSSSFormat() ||
|
|
25186
|
+
this.selectedTime.getMilliseconds() == +this.millisecond);
|
|
25187
|
+
}
|
|
25015
25188
|
if (this.selectedTime &&
|
|
25016
25189
|
Array.isArray(this.disableTimes) &&
|
|
25017
25190
|
this.disableTimes.length > 0) {
|
|
@@ -25020,18 +25193,25 @@ class TimeInput {
|
|
|
25020
25193
|
t !== null &&
|
|
25021
25194
|
"start" in t &&
|
|
25022
25195
|
"end" in t) {
|
|
25023
|
-
const start =
|
|
25024
|
-
const end =
|
|
25196
|
+
const start = parseTimeHelper(t.start).date;
|
|
25197
|
+
const end = parseTimeHelper(t.end).date;
|
|
25025
25198
|
if (start && end) {
|
|
25026
25199
|
return this.selectedTime >= start && this.selectedTime <= end;
|
|
25027
25200
|
}
|
|
25028
25201
|
return false;
|
|
25029
25202
|
}
|
|
25030
|
-
const parsed =
|
|
25031
|
-
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25203
|
+
const parsed = parseTimeHelper(t).parts;
|
|
25204
|
+
if (!parsed)
|
|
25205
|
+
return false;
|
|
25206
|
+
let selectedHour = this.selectedTime.getHours();
|
|
25207
|
+
let parsedHour = parsed.hour;
|
|
25208
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25209
|
+
selectedHour = this.convertTo24Hour(selectedHour);
|
|
25210
|
+
parsedHour = this.convertTo24Hour(parsedHour);
|
|
25211
|
+
}
|
|
25212
|
+
return (parsedHour === selectedHour &&
|
|
25213
|
+
parsed.minute === this.selectedTime.getMinutes() &&
|
|
25214
|
+
parsed.second === this.selectedTime.getSeconds());
|
|
25035
25215
|
});
|
|
25036
25216
|
if (isDisabledTime) {
|
|
25037
25217
|
this.isValidTime = false;
|
|
@@ -25061,6 +25241,7 @@ class TimeInput {
|
|
|
25061
25241
|
if (!(this.isValidHour &&
|
|
25062
25242
|
this.isValidMinute &&
|
|
25063
25243
|
this.isValidSecond &&
|
|
25244
|
+
this.isValidMillisecond &&
|
|
25064
25245
|
this.isValidTime)) {
|
|
25065
25246
|
this.invalidTimeText = outOfBoundsMsg || this.invalidTimeMessage;
|
|
25066
25247
|
}
|
|
@@ -25072,12 +25253,33 @@ class TimeInput {
|
|
|
25072
25253
|
const hh = time.getHours().toString().padStart(2, "0");
|
|
25073
25254
|
const mm = time.getMinutes().toString().padStart(2, "0");
|
|
25074
25255
|
const ss = time.getSeconds().toString().padStart(2, "0");
|
|
25256
|
+
const sss = time.getMilliseconds().toString().padStart(3, "0");
|
|
25257
|
+
if (this.isSSSFormat()) {
|
|
25258
|
+
return `${hh}:${mm}:${ss}.${sss}`;
|
|
25259
|
+
}
|
|
25075
25260
|
return this.isHHMMFormat() ? `${hh}:${mm}` : `${hh}:${mm}:${ss}`;
|
|
25076
25261
|
};
|
|
25077
25262
|
this.handleInput = (event) => {
|
|
25078
25263
|
const inputEvent = event;
|
|
25079
25264
|
const input = event.target;
|
|
25080
|
-
if (input
|
|
25265
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25266
|
+
this.setInputValue(input);
|
|
25267
|
+
this.setPreventInput(input, false);
|
|
25268
|
+
this.setFitToValueStyling(input);
|
|
25269
|
+
if (input.value.length === 3) {
|
|
25270
|
+
this.moveToNextInput(input);
|
|
25271
|
+
this.setPreventInput(input, true);
|
|
25272
|
+
}
|
|
25273
|
+
else {
|
|
25274
|
+
this.setPreventInput(input, false);
|
|
25275
|
+
}
|
|
25276
|
+
if (input.value.length === 0) {
|
|
25277
|
+
this.setInputValue(input, true);
|
|
25278
|
+
this.setValidationMessage();
|
|
25279
|
+
}
|
|
25280
|
+
this.notifyScreenReader(input);
|
|
25281
|
+
}
|
|
25282
|
+
else if (input !== this.hourInputEl) {
|
|
25081
25283
|
if (inputEvent.inputType !== "deleteContentBackward" &&
|
|
25082
25284
|
!this.preventAutoFormatting) {
|
|
25083
25285
|
if (input.value.length === 1 &&
|
|
@@ -25110,6 +25312,12 @@ class TimeInput {
|
|
|
25110
25312
|
if (input.value.length !== 2) {
|
|
25111
25313
|
this.setPreventInput(input, false);
|
|
25112
25314
|
}
|
|
25315
|
+
this.setFitToValueStyling(input);
|
|
25316
|
+
if (input.value.length === 0) {
|
|
25317
|
+
this.setInputValue(input, true);
|
|
25318
|
+
this.setValidationMessage();
|
|
25319
|
+
}
|
|
25320
|
+
this.notifyScreenReader(input);
|
|
25113
25321
|
}
|
|
25114
25322
|
else {
|
|
25115
25323
|
if (input.value.length === 2) {
|
|
@@ -25123,18 +25331,25 @@ class TimeInput {
|
|
|
25123
25331
|
this.setInputValue(input, true);
|
|
25124
25332
|
this.setPreventInput(input, false);
|
|
25125
25333
|
}
|
|
25334
|
+
this.setFitToValueStyling(input);
|
|
25335
|
+
if (input.value.length === 0) {
|
|
25336
|
+
this.setInputValue(input, true);
|
|
25337
|
+
this.setValidationMessage();
|
|
25338
|
+
}
|
|
25339
|
+
this.notifyScreenReader(input);
|
|
25126
25340
|
}
|
|
25127
|
-
this.setFitToValueStyling(input);
|
|
25128
|
-
if (input.value.length === 0) {
|
|
25129
|
-
this.setInputValue(input, true);
|
|
25130
|
-
this.setValidationMessage();
|
|
25131
|
-
}
|
|
25132
|
-
this.notifyScreenReader(input);
|
|
25133
25341
|
};
|
|
25134
25342
|
this.handleKeyDown = (event, isInputPrevented) => {
|
|
25135
25343
|
var _a;
|
|
25344
|
+
const navKeys = /arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/i;
|
|
25136
25345
|
const input = event.target;
|
|
25137
25346
|
const eventKey = (_a = event.key) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
25347
|
+
if (!/-?\d*\.?\d+(e[-+]?\d+)?|[:]|[.]/i.test(eventKey) &&
|
|
25348
|
+
!navKeys.test(eventKey) &&
|
|
25349
|
+
!((event.ctrlKey || event.metaKey) &&
|
|
25350
|
+
(eventKey === "v" || eventKey === "c"))) {
|
|
25351
|
+
event.preventDefault();
|
|
25352
|
+
}
|
|
25138
25353
|
const regex = /-?\d*\.?\d+(e[-+]?\d+)?|[:]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;
|
|
25139
25354
|
if (!regex.test(eventKey) &&
|
|
25140
25355
|
!((event.ctrlKey || event.metaKey) &&
|
|
@@ -25172,7 +25387,18 @@ class TimeInput {
|
|
|
25172
25387
|
};
|
|
25173
25388
|
this.handleBlur = (event) => {
|
|
25174
25389
|
const input = event.target;
|
|
25175
|
-
if (input) {
|
|
25390
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25391
|
+
if (input.value.length === 1) {
|
|
25392
|
+
input.value = `00${input.value}`;
|
|
25393
|
+
this.setInputValue(input);
|
|
25394
|
+
}
|
|
25395
|
+
else if (input.value.length === 2) {
|
|
25396
|
+
input.value = `0${input.value}`;
|
|
25397
|
+
this.setInputValue(input);
|
|
25398
|
+
}
|
|
25399
|
+
this.setFitToValueStyling(input);
|
|
25400
|
+
}
|
|
25401
|
+
else if (input) {
|
|
25176
25402
|
this.autocompleteInput(input);
|
|
25177
25403
|
}
|
|
25178
25404
|
};
|
|
@@ -25228,20 +25454,80 @@ class TimeInput {
|
|
|
25228
25454
|
};
|
|
25229
25455
|
this.setValueAndEmitChange = (value, force = false) => {
|
|
25230
25456
|
if (this.value !== value || force) {
|
|
25231
|
-
this.
|
|
25457
|
+
this.emitIcTimeChange(value);
|
|
25232
25458
|
this.value = value;
|
|
25233
25459
|
}
|
|
25234
25460
|
};
|
|
25235
|
-
this.
|
|
25236
|
-
|
|
25237
|
-
this.
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25244
|
-
|
|
25461
|
+
this.convertTo24Hour = (hour) => {
|
|
25462
|
+
let date24hours = hour;
|
|
25463
|
+
if (this.period === "PM" && hour < 12)
|
|
25464
|
+
date24hours = hour + 12;
|
|
25465
|
+
if (this.period === "AM" && hour === 12)
|
|
25466
|
+
date24hours = 0;
|
|
25467
|
+
return date24hours;
|
|
25468
|
+
};
|
|
25469
|
+
this.emitIcTimeChange = (t) => {
|
|
25470
|
+
const hour = parseInt(this.hour);
|
|
25471
|
+
const minute = parseInt(this.minute);
|
|
25472
|
+
const second = parseInt(this.second);
|
|
25473
|
+
const millisecond = parseInt(this.millisecond);
|
|
25474
|
+
const period = this.period;
|
|
25475
|
+
let allSelected = false;
|
|
25476
|
+
if (this.isSSSFormat()) {
|
|
25477
|
+
allSelected =
|
|
25478
|
+
this.hour !== "" &&
|
|
25479
|
+
this.minute !== "" &&
|
|
25480
|
+
this.second !== "" &&
|
|
25481
|
+
this.millisecond !== "";
|
|
25482
|
+
}
|
|
25483
|
+
else if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
25484
|
+
allSelected =
|
|
25485
|
+
this.hour !== "" && this.minute !== "" && this.second !== "";
|
|
25486
|
+
}
|
|
25487
|
+
else if (this.timeFormat === "HH:MM") {
|
|
25488
|
+
allSelected = this.hour !== "" && this.minute !== "";
|
|
25489
|
+
}
|
|
25490
|
+
let time = t;
|
|
25491
|
+
let date24hours = hour;
|
|
25492
|
+
if (hour != null &&
|
|
25493
|
+
period &&
|
|
25494
|
+
this.timePeriod === "12" &&
|
|
25495
|
+
this.showAmPmToggle) {
|
|
25496
|
+
date24hours = this.convertTo24Hour(hour);
|
|
25497
|
+
time = new Date();
|
|
25498
|
+
time.setHours(date24hours !== null && date24hours !== void 0 ? date24hours : 0);
|
|
25499
|
+
time.setMinutes(minute !== null && minute !== void 0 ? minute : 0);
|
|
25500
|
+
time.setSeconds(second !== null && second !== void 0 ? second : 0);
|
|
25501
|
+
this.isSSSFormat() && time.setMilliseconds(millisecond !== null && millisecond !== void 0 ? millisecond : 0);
|
|
25502
|
+
}
|
|
25503
|
+
this.selectedTime = time;
|
|
25504
|
+
const allTimePartsEmpty = this.hour === "" &&
|
|
25505
|
+
this.minute === "" &&
|
|
25506
|
+
this.second === "" &&
|
|
25507
|
+
this.millisecond === "";
|
|
25508
|
+
const onlyPeriodChanged = allTimePartsEmpty &&
|
|
25509
|
+
this.period !== this.previousPeriod &&
|
|
25510
|
+
this.previousHour === "" &&
|
|
25511
|
+
this.previousMinute === "" &&
|
|
25512
|
+
this.previousSecond === "" &&
|
|
25513
|
+
this.previousMillisecond === "";
|
|
25514
|
+
if (!onlyPeriodChanged) {
|
|
25515
|
+
this.icTimeChange.emit({
|
|
25516
|
+
value: allSelected ? time : null,
|
|
25517
|
+
timeObject: {
|
|
25518
|
+
hour: this.hour === "" ? null : this.hour,
|
|
25519
|
+
minute: this.minute === "" ? null : this.minute,
|
|
25520
|
+
second: this.second === "" ? null : this.second,
|
|
25521
|
+
millisecond: this.millisecond === "" ? null : this.millisecond,
|
|
25522
|
+
period: this.period === "" ? null : this.period,
|
|
25523
|
+
},
|
|
25524
|
+
});
|
|
25525
|
+
}
|
|
25526
|
+
this.previousHour = this.hour;
|
|
25527
|
+
this.previousMinute = this.minute;
|
|
25528
|
+
this.previousSecond = this.second;
|
|
25529
|
+
this.previousMillisecond = this.millisecond;
|
|
25530
|
+
this.previousPeriod = this.period;
|
|
25245
25531
|
};
|
|
25246
25532
|
this.setTime = (time) => {
|
|
25247
25533
|
if (time === null || time === "" || time === undefined) {
|
|
@@ -25251,6 +25537,8 @@ class TimeInput {
|
|
|
25251
25537
|
this.minute = "";
|
|
25252
25538
|
if (this.second)
|
|
25253
25539
|
this.second = "";
|
|
25540
|
+
if (this.millisecond)
|
|
25541
|
+
this.millisecond = "";
|
|
25254
25542
|
this.inputsInOrder.forEach((input) => {
|
|
25255
25543
|
input.classList.remove(this.FIT_TO_VALUE);
|
|
25256
25544
|
this.setPreventInput(input, false);
|
|
@@ -25266,22 +25554,26 @@ class TimeInput {
|
|
|
25266
25554
|
this.second = zuluMatch[3];
|
|
25267
25555
|
}
|
|
25268
25556
|
else {
|
|
25269
|
-
const parts = time.split(
|
|
25557
|
+
const parts = time.split(/[:.]/);
|
|
25270
25558
|
this.hour = parts[0] || "";
|
|
25271
25559
|
this.minute = parts[1] || "";
|
|
25272
25560
|
this.second = parts[2] || "";
|
|
25561
|
+
this.millisecond = parts[3] || "";
|
|
25273
25562
|
}
|
|
25274
25563
|
}
|
|
25275
25564
|
else if (time instanceof Date) {
|
|
25276
25565
|
this.hour = time.getHours().toString().padStart(2, "0");
|
|
25277
25566
|
this.minute = time.getMinutes().toString().padStart(2, "0");
|
|
25278
25567
|
this.second = time.getSeconds().toString().padStart(2, "0");
|
|
25568
|
+
if (this.isSSSFormat()) {
|
|
25569
|
+
this.millisecond = time.getMilliseconds().toString().padStart(3, "0");
|
|
25570
|
+
}
|
|
25279
25571
|
}
|
|
25280
25572
|
}
|
|
25281
25573
|
this.setValidationMessage();
|
|
25282
25574
|
};
|
|
25283
|
-
this.setAriaInvalid = (validHour, validMinute, validSecond) => {
|
|
25284
|
-
var _a, _b, _c;
|
|
25575
|
+
this.setAriaInvalid = (validHour, validMinute, validSecond, validMillisecond) => {
|
|
25576
|
+
var _a, _b, _c, _d;
|
|
25285
25577
|
if (this.inputsInOrder.length) {
|
|
25286
25578
|
this.inputsInOrder.forEach((input) => {
|
|
25287
25579
|
input.removeAttribute(this.ARIA_INVALID);
|
|
@@ -25295,7 +25587,10 @@ class TimeInput {
|
|
|
25295
25587
|
if (!validSecond) {
|
|
25296
25588
|
(_c = this.secondInputEl) === null || _c === void 0 ? void 0 : _c.setAttribute(this.ARIA_INVALID, "true");
|
|
25297
25589
|
}
|
|
25298
|
-
if (!
|
|
25590
|
+
if (!validMillisecond) {
|
|
25591
|
+
(_d = this.millisecondInputEl) === null || _d === void 0 ? void 0 : _d.setAttribute(this.ARIA_INVALID, "true");
|
|
25592
|
+
}
|
|
25593
|
+
if (!(validHour && validMinute && validSecond && validMillisecond)) {
|
|
25299
25594
|
this.inputsInOrder.forEach((input) => {
|
|
25300
25595
|
input.setAttribute(this.ARIA_INVALID, "true");
|
|
25301
25596
|
});
|
|
@@ -25303,6 +25598,7 @@ class TimeInput {
|
|
|
25303
25598
|
}
|
|
25304
25599
|
};
|
|
25305
25600
|
this.handleClear = () => {
|
|
25601
|
+
var _a;
|
|
25306
25602
|
this.clearInput = true;
|
|
25307
25603
|
if (this.hourInputEl) {
|
|
25308
25604
|
this.hourInputEl.value = "";
|
|
@@ -25313,9 +25609,25 @@ class TimeInput {
|
|
|
25313
25609
|
if (!this.isHHMMFormat() && this.secondInputEl) {
|
|
25314
25610
|
this.secondInputEl.value = "";
|
|
25315
25611
|
}
|
|
25612
|
+
if (this.isSSSFormat() && this.millisecondInputEl) {
|
|
25613
|
+
this.millisecondInputEl.value = "";
|
|
25614
|
+
}
|
|
25316
25615
|
this.hour = "";
|
|
25317
25616
|
this.minute = "";
|
|
25318
25617
|
this.second = "";
|
|
25618
|
+
this.millisecond = "";
|
|
25619
|
+
this.period = "AM";
|
|
25620
|
+
if (this.showAmPmToggle) {
|
|
25621
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25622
|
+
const toggleBtn = btn;
|
|
25623
|
+
if (toggleBtn.label === "AM") {
|
|
25624
|
+
toggleBtn.checked = true;
|
|
25625
|
+
}
|
|
25626
|
+
else {
|
|
25627
|
+
toggleBtn.checked = false;
|
|
25628
|
+
}
|
|
25629
|
+
});
|
|
25630
|
+
}
|
|
25319
25631
|
this.handleTimeChange(true);
|
|
25320
25632
|
this.inputsInOrder.forEach((input) => {
|
|
25321
25633
|
input.classList.remove(this.FIT_TO_VALUE);
|
|
@@ -25331,26 +25643,31 @@ class TimeInput {
|
|
|
25331
25643
|
};
|
|
25332
25644
|
this.notifyScreenReaderSelectedTime = () => {
|
|
25333
25645
|
if (this.selectedTime && this.selectedTimeInfoEl) {
|
|
25646
|
+
let hours = this.selectedTime.getHours();
|
|
25647
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25648
|
+
hours = this.convertTo24Hour(hours);
|
|
25649
|
+
}
|
|
25650
|
+
const hoursStr = hours.toString().padStart(2, "0");
|
|
25651
|
+
const minutesStr = this.selectedTime
|
|
25652
|
+
.getMinutes()
|
|
25653
|
+
.toString()
|
|
25654
|
+
.padStart(2, "0");
|
|
25655
|
+
const secondsStr = this.selectedTime
|
|
25656
|
+
.getSeconds()
|
|
25657
|
+
.toString()
|
|
25658
|
+
.padStart(2, "0");
|
|
25659
|
+
const msStr = this.selectedTime
|
|
25660
|
+
.getMilliseconds()
|
|
25661
|
+
.toString()
|
|
25662
|
+
.padStart(3, "0");
|
|
25334
25663
|
if (this.isHHMMFormat()) {
|
|
25335
|
-
this.selectedTimeInfoEl.textContent = `Selected time: ${
|
|
25336
|
-
|
|
25337
|
-
|
|
25338
|
-
|
|
25339
|
-
.getMinutes()
|
|
25340
|
-
.toString()
|
|
25341
|
-
.padStart(2, "0")}`;
|
|
25664
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}`;
|
|
25665
|
+
}
|
|
25666
|
+
else if (!this.isSSSFormat()) {
|
|
25667
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}:${secondsStr}`;
|
|
25342
25668
|
}
|
|
25343
25669
|
else {
|
|
25344
|
-
this.selectedTimeInfoEl.textContent = `Selected time: ${
|
|
25345
|
-
.getHours()
|
|
25346
|
-
.toString()
|
|
25347
|
-
.padStart(2, "0")}:${this.selectedTime
|
|
25348
|
-
.getMinutes()
|
|
25349
|
-
.toString()
|
|
25350
|
-
.padStart(2, "0")}:${this.selectedTime
|
|
25351
|
-
.getSeconds()
|
|
25352
|
-
.toString()
|
|
25353
|
-
.padStart(2, "0")}`;
|
|
25670
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}:${secondsStr}.${msStr}`;
|
|
25354
25671
|
}
|
|
25355
25672
|
}
|
|
25356
25673
|
};
|
|
@@ -25368,7 +25685,7 @@ class TimeInput {
|
|
|
25368
25685
|
};
|
|
25369
25686
|
this.handleHostFocus = () => {
|
|
25370
25687
|
var _a, _b;
|
|
25371
|
-
if ((_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) === null || _b === void 0 ? void 0 : _b.id.match(/(hour|minute|second)-input$/)) {
|
|
25688
|
+
if ((_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) === null || _b === void 0 ? void 0 : _b.id.match(/(hour|minute|second|millisecond)-input$/)) {
|
|
25372
25689
|
this.removeLabelledBy = false;
|
|
25373
25690
|
}
|
|
25374
25691
|
else {
|
|
@@ -25417,12 +25734,17 @@ class TimeInput {
|
|
|
25417
25734
|
this.setInputValue(input);
|
|
25418
25735
|
}
|
|
25419
25736
|
};
|
|
25420
|
-
this.convertToTime = (hour, minute, second) => {
|
|
25737
|
+
this.convertToTime = (hour, minute, second, millisecond = null) => {
|
|
25421
25738
|
if (!isEmptyString(hour) &&
|
|
25422
25739
|
!isEmptyString(minute) &&
|
|
25423
|
-
(this.isHHMMFormat() || !isEmptyString(second))
|
|
25740
|
+
(this.isHHMMFormat() || !isEmptyString(second)) &&
|
|
25741
|
+
(!this.isSSSFormat() ||
|
|
25742
|
+
(millisecond !== null && !isEmptyString(millisecond)))) {
|
|
25424
25743
|
const d = new Date();
|
|
25425
25744
|
d.setHours(+hour, +minute, this.isHHMMFormat() ? 0 : +second, 0);
|
|
25745
|
+
if (this.isSSSFormat() && millisecond !== null) {
|
|
25746
|
+
d.setMilliseconds(+millisecond);
|
|
25747
|
+
}
|
|
25426
25748
|
return d;
|
|
25427
25749
|
}
|
|
25428
25750
|
else {
|
|
@@ -25467,17 +25789,22 @@ class TimeInput {
|
|
|
25467
25789
|
(_d = this.inputCompContainerEl) === null || _d === void 0 ? void 0 : _d.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
|
|
25468
25790
|
};
|
|
25469
25791
|
this.getInputsInOrder = () => {
|
|
25470
|
-
const timeParts = this.timeFormat.split(
|
|
25792
|
+
const timeParts = this.timeFormat.split(/[:.]/);
|
|
25471
25793
|
return timeParts.map((part) => {
|
|
25472
|
-
switch (part
|
|
25473
|
-
case "
|
|
25794
|
+
switch (part) {
|
|
25795
|
+
case "HH":
|
|
25474
25796
|
return (hAsync("input", { class: "hour-input", id: "hour-input", ref: (el) => (this.hourInputEl = el), "aria-label": "hour", placeholder: "HH", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventHourInput) }));
|
|
25475
|
-
case "
|
|
25797
|
+
case "MM":
|
|
25476
25798
|
return (hAsync("input", { id: "minute-input", class: "minute-input", ref: (el) => (this.minuteInputEl = el), "aria-label": "minute", placeholder: "MM", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventMinuteInput) }));
|
|
25477
|
-
case "
|
|
25799
|
+
case "SS":
|
|
25478
25800
|
if (!this.isHHMMFormat()) {
|
|
25479
25801
|
return (hAsync("input", { id: "second-input", class: "second-input", ref: (el) => (this.secondInputEl = el), "aria-label": "second", placeholder: "SS", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventSecondInput) }));
|
|
25480
25802
|
}
|
|
25803
|
+
break;
|
|
25804
|
+
case "SSS":
|
|
25805
|
+
if (this.isSSSFormat()) {
|
|
25806
|
+
return (hAsync("input", { id: "millisecond-input", class: "millisecond-input", ref: (el) => (this.millisecondInputEl = el), "aria-label": "millisecond", placeholder: "SSS", disabled: this.disabled, "aria-required": `${this.required}`, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventMillisecondInput) }));
|
|
25807
|
+
}
|
|
25481
25808
|
return null;
|
|
25482
25809
|
default:
|
|
25483
25810
|
return null;
|
|
@@ -25485,6 +25812,9 @@ class TimeInput {
|
|
|
25485
25812
|
});
|
|
25486
25813
|
};
|
|
25487
25814
|
this.getDescOfInputsOrder = () => {
|
|
25815
|
+
if (this.isSSSFormat()) {
|
|
25816
|
+
return "hour, minute, second, and millisecond";
|
|
25817
|
+
}
|
|
25488
25818
|
return "hour, minute, and second";
|
|
25489
25819
|
};
|
|
25490
25820
|
this.getScreenReaderInfo = (validationStatus) => {
|
|
@@ -25524,7 +25854,7 @@ class TimeInput {
|
|
|
25524
25854
|
this.removeLabelledBy = false;
|
|
25525
25855
|
return;
|
|
25526
25856
|
}
|
|
25527
|
-
if (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id.match(/(minute|second)-input$/)) {
|
|
25857
|
+
if (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id.match(/(minute|second|millisecond)-input$/)) {
|
|
25528
25858
|
this.removeLabelledBy = false;
|
|
25529
25859
|
return;
|
|
25530
25860
|
}
|
|
@@ -25542,6 +25872,18 @@ class TimeInput {
|
|
|
25542
25872
|
return value;
|
|
25543
25873
|
}
|
|
25544
25874
|
}
|
|
25875
|
+
else if (this.isSSSFormat()) {
|
|
25876
|
+
if (/^\d{2}:\d{2}:\d{2}\.\d{1,3}$/.test(value)) {
|
|
25877
|
+
return value;
|
|
25878
|
+
}
|
|
25879
|
+
if (/^\d{2}:\d{2}:\d{2}\.\d{1,3}Z$/.test(value)) {
|
|
25880
|
+
return value.replace("Z", "");
|
|
25881
|
+
}
|
|
25882
|
+
const isoMatch = value.match(/T(\d{2}:\d{2}:\d{2}\.\d{1,3})/);
|
|
25883
|
+
if (isoMatch) {
|
|
25884
|
+
return isoMatch[1];
|
|
25885
|
+
}
|
|
25886
|
+
}
|
|
25545
25887
|
else {
|
|
25546
25888
|
if (/^\d{2}:\d{2}:\d{2}$/.test(value)) {
|
|
25547
25889
|
return value;
|
|
@@ -25558,16 +25900,78 @@ class TimeInput {
|
|
|
25558
25900
|
};
|
|
25559
25901
|
this.setPastedValueAndValidation = (isValidTime, pastedValue, event) => {
|
|
25560
25902
|
if (isValidTime) {
|
|
25561
|
-
const timeParts = isValidTime.split(
|
|
25903
|
+
const timeParts = isValidTime.split(/[:.]/);
|
|
25562
25904
|
this.inputsInOrder.forEach((input, index) => {
|
|
25905
|
+
var _a, _b, _c, _d;
|
|
25563
25906
|
input.classList.add(this.FIT_TO_VALUE);
|
|
25564
|
-
|
|
25565
|
-
input.
|
|
25907
|
+
let timeValue = timeParts[index] || "";
|
|
25908
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25909
|
+
timeValue = timeValue.slice(0, 3);
|
|
25910
|
+
}
|
|
25911
|
+
else {
|
|
25912
|
+
timeValue = timeValue.slice(0, 2);
|
|
25913
|
+
}
|
|
25914
|
+
if (input === this.hourInputEl) {
|
|
25915
|
+
let activeToggle;
|
|
25916
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25917
|
+
if (parseInt(timeValue) > 12) {
|
|
25918
|
+
timeValue = (parseInt(timeValue) - 12)
|
|
25919
|
+
.toString()
|
|
25920
|
+
.padStart(2, "0");
|
|
25921
|
+
if (parseInt(timeValue) > 12) {
|
|
25922
|
+
return;
|
|
25923
|
+
}
|
|
25924
|
+
else {
|
|
25925
|
+
this.period = "PM";
|
|
25926
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25927
|
+
const toggleBtn = btn;
|
|
25928
|
+
if (toggleBtn.label === "PM") {
|
|
25929
|
+
activeToggle = toggleBtn;
|
|
25930
|
+
}
|
|
25931
|
+
else {
|
|
25932
|
+
toggleBtn.checked = false;
|
|
25933
|
+
}
|
|
25934
|
+
});
|
|
25935
|
+
if (activeToggle) {
|
|
25936
|
+
(_b = this.periodToggleEl) === null || _b === void 0 ? void 0 : _b.setActiveToggle(activeToggle);
|
|
25937
|
+
activeToggle.checked = true;
|
|
25938
|
+
}
|
|
25939
|
+
this.invalidTimeText = "";
|
|
25940
|
+
this.validationStatus = "";
|
|
25941
|
+
}
|
|
25942
|
+
}
|
|
25943
|
+
else {
|
|
25944
|
+
if (parseInt(timeValue) === 0) {
|
|
25945
|
+
timeValue = "12";
|
|
25946
|
+
}
|
|
25947
|
+
this.period = "AM";
|
|
25948
|
+
(_c = this.periodToggleEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25949
|
+
const toggleBtn = btn;
|
|
25950
|
+
if (toggleBtn.label === "AM") {
|
|
25951
|
+
activeToggle = toggleBtn;
|
|
25952
|
+
}
|
|
25953
|
+
else {
|
|
25954
|
+
toggleBtn.checked = false;
|
|
25955
|
+
}
|
|
25956
|
+
});
|
|
25957
|
+
if (activeToggle) {
|
|
25958
|
+
(_d = this.periodToggleEl) === null || _d === void 0 ? void 0 : _d.setActiveToggle(activeToggle);
|
|
25959
|
+
activeToggle.checked = true;
|
|
25960
|
+
}
|
|
25961
|
+
this.invalidTimeText = "";
|
|
25962
|
+
this.validationStatus = "";
|
|
25963
|
+
}
|
|
25964
|
+
}
|
|
25965
|
+
}
|
|
25966
|
+
input.value = timeValue;
|
|
25566
25967
|
this.setInputValue(input);
|
|
25567
25968
|
this.autocompleteInput(input);
|
|
25568
25969
|
});
|
|
25569
|
-
if (this.isHHMMFormat() &&
|
|
25970
|
+
if (this.isHHMMFormat() &&
|
|
25971
|
+
this.second !== "" &&
|
|
25972
|
+
this.millisecond !== "") {
|
|
25570
25973
|
this.second = "";
|
|
25974
|
+
this.millisecond = "";
|
|
25571
25975
|
}
|
|
25572
25976
|
}
|
|
25573
25977
|
else {
|
|
@@ -25582,14 +25986,22 @@ class TimeInput {
|
|
|
25582
25986
|
}
|
|
25583
25987
|
}
|
|
25584
25988
|
};
|
|
25989
|
+
this.handleAMPM = (selectedOption) => {
|
|
25990
|
+
var _a;
|
|
25991
|
+
this.period = selectedOption.label;
|
|
25992
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.setActiveToggle(selectedOption);
|
|
25993
|
+
};
|
|
25585
25994
|
}
|
|
25586
25995
|
watchInputHandler() {
|
|
25587
25996
|
if (this.emitTimePartChange &&
|
|
25588
25997
|
!this.externalSetTime &&
|
|
25589
25998
|
!this.clearInput &&
|
|
25590
|
-
!(this.hour &&
|
|
25999
|
+
!(this.hour &&
|
|
26000
|
+
this.minute &&
|
|
26001
|
+
this.second &&
|
|
26002
|
+
(this.isSSSFormat() ? this.millisecond : true)) &&
|
|
25591
26003
|
this.selectedTime === null) {
|
|
25592
|
-
this.
|
|
26004
|
+
this.emitIcTimeChange(this.selectedTime);
|
|
25593
26005
|
}
|
|
25594
26006
|
}
|
|
25595
26007
|
watchDisabledHandler() {
|
|
@@ -25600,10 +26012,10 @@ class TimeInput {
|
|
|
25600
26012
|
this.helperText = this.defaultHelperText;
|
|
25601
26013
|
}
|
|
25602
26014
|
watchMaxHandler() {
|
|
25603
|
-
this.maxTime =
|
|
26015
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
25604
26016
|
}
|
|
25605
26017
|
watchMinHandler() {
|
|
25606
|
-
this.minTime =
|
|
26018
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
25607
26019
|
}
|
|
25608
26020
|
watchRequiredHandler() {
|
|
25609
26021
|
var _a, _b;
|
|
@@ -25652,7 +26064,7 @@ class TimeInput {
|
|
|
25652
26064
|
input.classList.add(this.FIT_TO_VALUE);
|
|
25653
26065
|
});
|
|
25654
26066
|
}
|
|
25655
|
-
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
|
26067
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond, this.isValidMillisecond);
|
|
25656
26068
|
if (this.value) {
|
|
25657
26069
|
this.notifyScreenReaderSelectedTime();
|
|
25658
26070
|
}
|
|
@@ -25666,7 +26078,7 @@ class TimeInput {
|
|
|
25666
26078
|
componentWillUpdate() {
|
|
25667
26079
|
if (!this.isTimeSetFromKeyboardEvent)
|
|
25668
26080
|
this.setTime(this.value);
|
|
25669
|
-
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
|
26081
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond, this.isValidMillisecond);
|
|
25670
26082
|
this.handleTimeChange(false);
|
|
25671
26083
|
this.isTimeSetFromKeyboardEvent = false;
|
|
25672
26084
|
}
|
|
@@ -25685,12 +26097,12 @@ class TimeInput {
|
|
|
25685
26097
|
return this.selectedTime;
|
|
25686
26098
|
}
|
|
25687
26099
|
/**
|
|
25688
|
-
* @internal Used to enable other components to invoke an
|
|
26100
|
+
* @internal Used to enable other components to invoke an icTimeChange event from the input.
|
|
25689
26101
|
*/
|
|
25690
|
-
async
|
|
26102
|
+
async triggerIcTimeChange(t) {
|
|
25691
26103
|
this.externalSetTime = true;
|
|
25692
26104
|
this.setTime(t);
|
|
25693
|
-
this.
|
|
26105
|
+
this.emitIcTimeChange(t);
|
|
25694
26106
|
this.externalSetTime = false;
|
|
25695
26107
|
}
|
|
25696
26108
|
render() {
|
|
@@ -25707,23 +26119,39 @@ class TimeInput {
|
|
|
25707
26119
|
!(isEmptyString(this.hour) &&
|
|
25708
26120
|
isEmptyString(this.minute) &&
|
|
25709
26121
|
isEmptyString(this.second)));
|
|
25710
|
-
|
|
26122
|
+
if (this.showAmPmToggle && this.timePeriod !== "12") {
|
|
26123
|
+
this.showAmPmToggle = false;
|
|
26124
|
+
}
|
|
26125
|
+
return (hAsync(Host, { key: 'a9e366c7a8ed345fdbe3293191c0cab3e83341cb', class: {
|
|
25711
26126
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25712
26127
|
[`ic-time-input-disabled`]: disabled,
|
|
25713
26128
|
[`ic-time-input-${size}`]: true,
|
|
25714
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
26129
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '32e07bf234275ab82cc4fb5cf52477d98b20ee56', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '76167c9c821ea70383f853f6247c8c33364063e9', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: '1d283d444c18e0395297d6bda0a2eff80a7ecbc7', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: '8793da4aa61522afb9e4fb4c6fc3245b64afb111', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: 'a8ec036ff5eb8b030f843527ecf437504db61e43', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'b6a584ada9f2bd59350a528347df54faab176d90', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: '22fdb36105184f0ac8bcbdcdb5a001ca75f24072', class: {
|
|
26130
|
+
"with-am-pm-toggle": this.showAmPmToggle === true,
|
|
26131
|
+
} }, hAsync("ic-input-component-container", { key: 'b14252270fdada4256b78c6ae2d3a086650a2672', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'fba1548161f7bae290edce7cb4e11ced2aa6f306', class: "input-container" }, hAsync("div", { key: 'edb256e2b99f6c2835f4044b5b8940e3a4d5548c', class: "time-inputs" }, [
|
|
25715
26132
|
this.getInputsInOrder()[0],
|
|
25716
26133
|
":",
|
|
25717
26134
|
this.getInputsInOrder()[1],
|
|
25718
26135
|
!this.isHHMMFormat()
|
|
25719
26136
|
? [":", this.getInputsInOrder()[2]]
|
|
25720
26137
|
: null,
|
|
25721
|
-
|
|
26138
|
+
this.isSSSFormat()
|
|
26139
|
+
? [".", this.getInputsInOrder()[3]]
|
|
26140
|
+
: null,
|
|
26141
|
+
]), hAsync("div", { key: '7ce636fe859c10ac1bec25a3800c0c457ff66db2', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '52a844605b6d6feba6ed75dbdc8f13985764d77f', id: "clear-button", "aria-label": "Clear input", class: {
|
|
25722
26142
|
["clear-button"]: true,
|
|
25723
26143
|
["hidden"]: isEmptyString(this.hour) &&
|
|
25724
26144
|
isEmptyString(this.minute) &&
|
|
25725
26145
|
isEmptyString(this.second),
|
|
25726
|
-
}, disabled: this.disabled, innerHTML: Clear$
|
|
26146
|
+
}, disabled: this.disabled, innerHTML: Clear$2, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: '5d2973cc6faccd02ca824546d8b685abcb7e884b', class: "show-clock-button-wrapper" }, hAsync("div", { key: '7dd67432231339d85e15d63d15f03776f607dbce', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: 'f1f6cdb97c9144a2d0d84431b3586be10c06dc47', id: "clock-button", "aria-label": "Display clock", "aria-haspopup": "dialog", class: "clock-button", disabled: this.disabled, innerHTML: Clock, variant: "icon-tertiary", size: size, onFocus: this.handleClockFocus, onBlur: this.handleClockBlur, theme: this.clockFocused ? "light" : "dark" })))))), this.showAmPmToggle && (hAsync("ic-toggle-button-group", { key: 'cd635525ce0feb57ca71184c7bfe37bf31558322', "select-type": "single", "accessible-label": "AM PM Toggle", ref: (el) => (this.periodToggleEl = el), disabled: disabled, class: "am-pm-toggle", "select-method": "auto", onIcChange: (e) => this.handleAMPM(e.detail.selectedOption), onKeyDown: (e) => {
|
|
26147
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
26148
|
+
e.preventDefault();
|
|
26149
|
+
if (this.inputsInOrder && this.inputsInOrder.length > 0) {
|
|
26150
|
+
const lastInput = this.inputsInOrder[this.inputsInOrder.length - 1];
|
|
26151
|
+
lastInput === null || lastInput === void 0 ? void 0 : lastInput.focus();
|
|
26152
|
+
}
|
|
26153
|
+
}
|
|
26154
|
+
} }, hAsync("ic-toggle-button", { key: '7074ef3bed173ac1d7e2642f8d090af56eeca074', label: "AM", disabled: disabled, checked: true }), hAsync("ic-toggle-button", { key: '157f7a6a165ded075516f8a6684c020c5cd1a0d5', label: "PM", disabled: disabled })))), hAsync("span", { key: '6360d4f8c1aa62a2274ade9ffc4c76ea405f7189', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: 'd223325cc0be5c0666175259c892806c3d58840b', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), hAsync("ic-input-validation", { key: '94b686791ab2684b955551b48e23b74fb3a8dcba', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId, ariaLiveMode: validationAriaLive }))));
|
|
25727
26155
|
}
|
|
25728
26156
|
static get delegatesFocus() { return true; }
|
|
25729
26157
|
get el() { return getElement(this); }
|
|
@@ -25731,6 +26159,8 @@ class TimeInput {
|
|
|
25731
26159
|
"hour": ["watchInputHandler"],
|
|
25732
26160
|
"minute": ["watchInputHandler"],
|
|
25733
26161
|
"second": ["watchInputHandler"],
|
|
26162
|
+
"millisecond": ["watchInputHandler"],
|
|
26163
|
+
"period": ["watchInputHandler"],
|
|
25734
26164
|
"disabled": ["watchDisabledHandler"],
|
|
25735
26165
|
"helperText": ["watchHelperTextHandler"],
|
|
25736
26166
|
"max": ["watchMaxHandler"],
|
|
@@ -25756,6 +26186,7 @@ class TimeInput {
|
|
|
25756
26186
|
"min": [1],
|
|
25757
26187
|
"name": [1],
|
|
25758
26188
|
"required": [4],
|
|
26189
|
+
"showAmPmToggle": [1028, "show-am-pm-toggle"],
|
|
25759
26190
|
"showClearButton": [4, "show-clear-button"],
|
|
25760
26191
|
"showClockButton": [4, "show-clock-button"],
|
|
25761
26192
|
"size": [1],
|
|
@@ -25773,8 +26204,742 @@ class TimeInput {
|
|
|
25773
26204
|
"hour": [32],
|
|
25774
26205
|
"minute": [32],
|
|
25775
26206
|
"second": [32],
|
|
26207
|
+
"millisecond": [32],
|
|
26208
|
+
"period": [32],
|
|
25776
26209
|
"getTime": [64],
|
|
25777
|
-
"
|
|
26210
|
+
"triggerIcTimeChange": [64]
|
|
26211
|
+
},
|
|
26212
|
+
"$listeners$": undefined,
|
|
26213
|
+
"$lazyBundleId$": "-",
|
|
26214
|
+
"$attrsToReflect$": []
|
|
26215
|
+
}; }
|
|
26216
|
+
}
|
|
26217
|
+
|
|
26218
|
+
var Check = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
26219
|
+
<path d="M8.79502 15.875L4.62502 11.705L3.20502 13.115L8.79502 18.705L20.795 6.70501L19.385 5.29501L8.79502 15.875Z" fill="currentColor"/>
|
|
26220
|
+
</svg>
|
|
26221
|
+
`;
|
|
26222
|
+
|
|
26223
|
+
var Clear = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
26224
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
26225
|
+
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
|
|
26226
|
+
<title>close icon</title>
|
|
26227
|
+
</svg>
|
|
26228
|
+
`;
|
|
26229
|
+
|
|
26230
|
+
const icTimeSelectorCss = ":host(.ic-time-selector-small){--time-selector-padded-item-height:var(--ic-space-lg)}:host(.ic-time-selector-medium){--time-selector-padded-item-height:calc(\n var(--ic-space-lg) + var(--ic-space-xxs)\n )}:host(.ic-time-selector-large){--time-selector-padded-item-height:var(--ic-space-xl)}.ic-time-selector-dialog-container{background-color:var(--ic-time-picker-time-selector-bg);border:var(--ic-space-1px) solid var(--ic-time-picker-time-selector-border);border-radius:var(--ic-space-xxs);padding:var(--ic-space-xs);max-width:calc(\n 3 * var(--ic-space-xxl) + var(--ic-space-xl) + var(--ic-space-xxs)\n );width:-moz-fit-content;width:fit-content}:host(.ic-time-selector-small) .ic-time-selector-dialog-container{padding:var(--ic-space-xxs);max-width:calc(\n 3 * var(--ic-space-xxl) + var(--ic-space-lg) + var(--ic-space-xxs)\n )}:host(.ic-time-selector-large) .ic-time-selector-dialog-container{padding:var(--ic-space-md);max-width:calc(\n 3 * var(--ic-space-xxl) + var(--ic-space-xl) + var(--ic-space-xs) +\n var(--ic-space-xxs)\n )}.ic-time-selector-item{height:var(--ic-space-lg);padding:var(--ic-space-xxxs);text-align:center;cursor:pointer;scroll-snap-align:start;transition:background 0.2s, color 0.2s}:host(.ic-time-selector-small) .ic-time-selector-item{padding:0}:host(.ic-time-selector-large) .ic-time-selector-item{padding:var(--ic-space-xxs)}.ic-time-selector-item:hover:not(.disabled):not(.selected){background-color:var(--ic-time-picker-time-bg-hover)}.ic-time-selector-item:active:not(.disabled):not(.selected){background-color:var(--ic-time-picker-time-bg-pressed)}.ic-time-selector-item.selected{background-color:var(--ic-time-picker-time-bg-selected);--ic-typography-color:var(--ic-time-picker-time-text-selected);position:relative}.ic-time-selector-item.selected:hover{background-color:var(--ic-time-picker-time-active-bg-hover)}.ic-time-selector-item.selected:active{background-color:var(--ic-time-picker-time-active-bg-pressed)}.ic-time-selector-colon-selected{background-color:var(--ic-time-picker-colon-bg-selected);color:var(--ic-time-picker-colon-selected) !important}.ic-time-selector-item.selected::before,.ic-time-selector-item.selected::after,.ic-time-selector-colon-selected::before,.ic-time-selector-colon-selected::after{content:\"\";position:absolute;left:0;right:0;height:var(--ic-space-1px);background:var(--ic-time-picker-time-selector-bg)}.ic-time-selector-item.selected::before,.ic-time-selector-colon-selected::before{top:0}.ic-time-selector-item.selected::after,.ic-time-selector-colon-selected::after{bottom:0}.ic-time-selector-item.disabled{--ic-typography-color:var(--ic-time-picker-time-text-disabled);cursor:not-allowed}.ic-time-selector-column-wrapper{display:flex;flex-direction:column}.ic-time-selector-scroll-row{height:var(--time-selector-padded-item-height) !important;background:transparent !important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default !important;box-sizing:border-box}:host(.ic-time-selector-small) .ic-time-selector-scroll-row-last{height:calc(var(--ic-space-1px) + var(--ic-space-xxxs)) !important}:host(.ic-time-selector-medium) .ic-time-selector-scroll-row-last,:host(.ic-time-selector-large) .ic-time-selector-scroll-row-last{height:calc(\n var(--ic-space-1px) + var(--ic-space-xxxs) + var(--ic-space-md)\n ) !important}.ic-time-selector-scroll-row:hover,.ic-time-selector-scroll-row:active{background:transparent !important}.ic-time-selector-header-row{color:var(--ic-time-picker-hh-label);--ic-typography-color:var(--ic-time-picker-hh-label) !important;background:transparent !important;text-align:center;height:var(--time-selector-padded-item-height);display:flex;align-items:center;justify-content:center}.ic-time-selector-header-border{position:absolute;left:0;right:0;top:var(--time-selector-padded-item-height);height:var(--ic-space-1px);background:var(--ic-time-picker-header-border);pointer-events:none}.ic-time-selector-colon{display:flex;align-items:center;justify-content:center;color:var(--ic-time-picker-colon-default);height:var(--time-selector-padded-item-height);margin-top:calc(3 * var(--time-selector-padded-item-height))}.ic-time-selector-columns{display:flex;flex-direction:row;border-bottom:var(--ic-space-1px) solid var(--ic-time-picker-lower-border);margin:0 var(--ic-space-xxs);position:relative;z-index:1}.ic-time-selector-highlight-lines{position:relative;width:100%}.ic-time-selector-highlight{position:absolute;left:0;right:0;width:100%;height:var(--ic-space-1px);background:var(--ic-time-picker-selection-border);pointer-events:none;z-index:1}.ic-time-selector-highlight-top{top:calc(3 * var(--time-selector-padded-item-height) - var(--ic-space-1px))}.ic-time-selector-highlight-bottom{top:calc(4 * var(--time-selector-padded-item-height))}.ic-time-selector-column{height:calc((5 * var(--ic-space-xxl)) + (3 * var(--ic-space-1px)));overflow-y:auto;width:calc(var(--ic-space-xl) + var(--ic-space-xs));position:relative;scroll-snap-type:y mandatory;scrollbar-width:none;-ms-overflow-style:none}:host(.ic-time-selector-small) .ic-time-selector-column{width:calc(var(--ic-space-xl) + var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.ic-time-selector-large) .ic-time-selector-column{width:calc(var(--ic-space-xl) + var(--ic-space-xs) + var(--ic-space-xxxs))}.ic-time-selector-column-period{margin-left:var(--ic-space-xxs)}.ic-time-selector-column::-webkit-scrollbar{display:none}.ic-time-selector-column:focus-visible,.ic-time-selector-item:focus-visible{outline:none;background-color:transparent}.ic-time-selector-column:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:3}.ic-time-selector-list{list-style:none;margin:0;padding:0}.ic-time-selector-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;margin-top:var(--ic-space-xs);margin-left:auto}.ic-time-selector-check-btn{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}.sr-only{position:absolute;left:-9999px}@media (forced-colors: active){.ic-time-selector-item.selected{background-color:highlight !important}.ic-time-selector-item.disabled{--ic-typography-color:GrayText !important}.ic-time-selector-column:focus{border:var(--ic-border-hc)}.ic-time-selector-highlight{background:Highlight !important}}";
|
|
26231
|
+
var IcTimeSelectorStyle0 = icTimeSelectorCss;
|
|
26232
|
+
|
|
26233
|
+
const COLUMN_TYPES = ["hour", "minute", "period"];
|
|
26234
|
+
const COLUMN_CLASS = ".ic-time-selector-column";
|
|
26235
|
+
const ITEM_CLASS = ".ic-time-selector-item";
|
|
26236
|
+
class TimeSelector {
|
|
26237
|
+
constructor(hostRef) {
|
|
26238
|
+
registerInstance(this, hostRef);
|
|
26239
|
+
this.icChange = createEvent(this, "icChange", 7);
|
|
26240
|
+
this.minutes = Array.from({ length: 60 }, (_, i) => i);
|
|
26241
|
+
this.periods = ["AM", "PM"];
|
|
26242
|
+
this.minTime = null;
|
|
26243
|
+
this.maxTime = null;
|
|
26244
|
+
this.ariaLiveMessage = "";
|
|
26245
|
+
/**
|
|
26246
|
+
* An array of objects with start and end values that will be disabled in the time selector. The times can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
26247
|
+
*/
|
|
26248
|
+
this.disableTimes = [];
|
|
26249
|
+
/**
|
|
26250
|
+
* The earliest time that will be allowed. The value can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
26251
|
+
*/
|
|
26252
|
+
this.min = "";
|
|
26253
|
+
/**
|
|
26254
|
+
* The latest time that will be allowed. The value can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
26255
|
+
*/
|
|
26256
|
+
this.max = "";
|
|
26257
|
+
/**
|
|
26258
|
+
* The size of the time selector to be displayed.
|
|
26259
|
+
*/
|
|
26260
|
+
this.size = "medium";
|
|
26261
|
+
/**
|
|
26262
|
+
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
|
26263
|
+
*/
|
|
26264
|
+
this.theme = "inherit";
|
|
26265
|
+
/**
|
|
26266
|
+
* The time period format: "12" for 12-hour, "24" for 24-hour. Defaults to "24".
|
|
26267
|
+
*/
|
|
26268
|
+
this.timePeriod = "24";
|
|
26269
|
+
/**
|
|
26270
|
+
* The value of the time selector. The value can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
|
26271
|
+
*/
|
|
26272
|
+
this.value = "";
|
|
26273
|
+
this.setTimeParts = (hour, minute) => {
|
|
26274
|
+
let period = "AM";
|
|
26275
|
+
if (this.timePeriod === "12") {
|
|
26276
|
+
if (hour === 0) {
|
|
26277
|
+
hour = 12;
|
|
26278
|
+
period = "AM";
|
|
26279
|
+
}
|
|
26280
|
+
else if (hour === 12) {
|
|
26281
|
+
period = "PM";
|
|
26282
|
+
}
|
|
26283
|
+
else if (hour > 12) {
|
|
26284
|
+
hour = hour - 12;
|
|
26285
|
+
period = "PM";
|
|
26286
|
+
}
|
|
26287
|
+
else {
|
|
26288
|
+
period = "AM";
|
|
26289
|
+
}
|
|
26290
|
+
this.selectedHour = hour;
|
|
26291
|
+
this.selectedPeriod = period;
|
|
26292
|
+
}
|
|
26293
|
+
else {
|
|
26294
|
+
this.selectedHour = hour;
|
|
26295
|
+
}
|
|
26296
|
+
this.selectedMinute = minute;
|
|
26297
|
+
};
|
|
26298
|
+
this.checkIfScrollIsFinished = (column, scrollTop) => {
|
|
26299
|
+
const isScrollFinished = setInterval(() => {
|
|
26300
|
+
if (column.scrollTop === scrollTop + 56) {
|
|
26301
|
+
column === null || column === void 0 ? void 0 : column.focus();
|
|
26302
|
+
clearInterval(isScrollFinished);
|
|
26303
|
+
}
|
|
26304
|
+
}, 25);
|
|
26305
|
+
};
|
|
26306
|
+
this.handleSelect = (type, value) => {
|
|
26307
|
+
var _a;
|
|
26308
|
+
const prevValue = this.getSelectedValue(type);
|
|
26309
|
+
switch (type) {
|
|
26310
|
+
case "hour":
|
|
26311
|
+
this.selectedHour = Number(value);
|
|
26312
|
+
break;
|
|
26313
|
+
case "minute":
|
|
26314
|
+
this.selectedMinute = Number(value);
|
|
26315
|
+
break;
|
|
26316
|
+
case "period":
|
|
26317
|
+
this.selectedPeriod = value;
|
|
26318
|
+
break;
|
|
26319
|
+
}
|
|
26320
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26321
|
+
const idx = COLUMN_TYPES.indexOf(type);
|
|
26322
|
+
if (columns && columns[idx]) {
|
|
26323
|
+
columns[idx].focus();
|
|
26324
|
+
window.requestAnimationFrame(() => {
|
|
26325
|
+
this.scrollSelectedItem(type);
|
|
26326
|
+
});
|
|
26327
|
+
}
|
|
26328
|
+
if (prevValue === undefined || prevValue === null) {
|
|
26329
|
+
this.announceSelectedColumn(type);
|
|
26330
|
+
}
|
|
26331
|
+
else {
|
|
26332
|
+
this.lastAnnouncedType = type;
|
|
26333
|
+
this.lastAnnouncedValue = this.getSelectedValue(type);
|
|
26334
|
+
}
|
|
26335
|
+
};
|
|
26336
|
+
this.isTimeDisabled = (hour, minute, type) => {
|
|
26337
|
+
var _a, _b;
|
|
26338
|
+
for (const t of this.disableTimes) {
|
|
26339
|
+
if (t && typeof t === "object" && "start" in t && "end" in t) {
|
|
26340
|
+
const startParts = parseTimeHelper(t.start).parts;
|
|
26341
|
+
const endParts = parseTimeHelper(t.end).parts;
|
|
26342
|
+
if (startParts && endParts) {
|
|
26343
|
+
const timeVal = hour * 3600 + minute * 60;
|
|
26344
|
+
const startVal = startParts.hour * 3600 + startParts.minute * 60;
|
|
26345
|
+
const endVal = endParts.hour * 3600 + endParts.minute * 60;
|
|
26346
|
+
if (timeVal >= startVal && timeVal <= endVal) {
|
|
26347
|
+
return true;
|
|
26348
|
+
}
|
|
26349
|
+
}
|
|
26350
|
+
}
|
|
26351
|
+
}
|
|
26352
|
+
if (this.min) {
|
|
26353
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
26354
|
+
if (this.minTime) {
|
|
26355
|
+
const minHour = this.minTime.getHours();
|
|
26356
|
+
const minMinute = this.minTime.getMinutes();
|
|
26357
|
+
if (type === "hour") {
|
|
26358
|
+
const highlightedMinute = (_a = this.selectedMinute) !== null && _a !== void 0 ? _a : minMinute;
|
|
26359
|
+
if (hour < minHour ||
|
|
26360
|
+
(hour === minHour && highlightedMinute < minMinute) ||
|
|
26361
|
+
(hour === minHour && highlightedMinute === minMinute)) {
|
|
26362
|
+
return true;
|
|
26363
|
+
}
|
|
26364
|
+
}
|
|
26365
|
+
else if (type === "minute") {
|
|
26366
|
+
if (hour === minHour && minute < minMinute) {
|
|
26367
|
+
return true;
|
|
26368
|
+
}
|
|
26369
|
+
}
|
|
26370
|
+
else {
|
|
26371
|
+
if (hour < minHour ||
|
|
26372
|
+
(hour === minHour && minute < minMinute) ||
|
|
26373
|
+
(hour === minHour && minute === minMinute)) {
|
|
26374
|
+
return true;
|
|
26375
|
+
}
|
|
26376
|
+
}
|
|
26377
|
+
}
|
|
26378
|
+
}
|
|
26379
|
+
if (this.max) {
|
|
26380
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
26381
|
+
if (this.maxTime) {
|
|
26382
|
+
const maxHour = this.maxTime.getHours();
|
|
26383
|
+
const maxMinute = this.maxTime.getMinutes();
|
|
26384
|
+
if (type === "hour") {
|
|
26385
|
+
const selectedMinute = (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : 59;
|
|
26386
|
+
if (hour > maxHour ||
|
|
26387
|
+
(hour === maxHour && selectedMinute > maxMinute) ||
|
|
26388
|
+
(hour === maxHour && selectedMinute === maxMinute)) {
|
|
26389
|
+
return true;
|
|
26390
|
+
}
|
|
26391
|
+
}
|
|
26392
|
+
else if (type === "minute") {
|
|
26393
|
+
if (hour === maxHour && minute > maxMinute) {
|
|
26394
|
+
return true;
|
|
26395
|
+
}
|
|
26396
|
+
}
|
|
26397
|
+
else {
|
|
26398
|
+
if (hour > maxHour ||
|
|
26399
|
+
(hour === maxHour && minute > maxMinute) ||
|
|
26400
|
+
(hour === maxHour && minute === maxMinute)) {
|
|
26401
|
+
return true;
|
|
26402
|
+
}
|
|
26403
|
+
}
|
|
26404
|
+
}
|
|
26405
|
+
}
|
|
26406
|
+
return false;
|
|
26407
|
+
};
|
|
26408
|
+
this.handleColumnKeyDown = (type, event) => {
|
|
26409
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
26410
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26411
|
+
const idx = COLUMN_TYPES.indexOf(type);
|
|
26412
|
+
if (!columns)
|
|
26413
|
+
return;
|
|
26414
|
+
const values = this.getColumnValues(type);
|
|
26415
|
+
const selected = this.getSelectedValue(type);
|
|
26416
|
+
const col = columns[idx];
|
|
26417
|
+
if (!col)
|
|
26418
|
+
return;
|
|
26419
|
+
const selectHighlighted = () => {
|
|
26420
|
+
const highlighted = this.getHighlightedValue(type, col);
|
|
26421
|
+
if (highlighted !== null) {
|
|
26422
|
+
this.handleSelect(type, highlighted);
|
|
26423
|
+
}
|
|
26424
|
+
else if (values.length > 0) {
|
|
26425
|
+
this.handleSelect(type, values[0]);
|
|
26426
|
+
}
|
|
26427
|
+
};
|
|
26428
|
+
switch (event.key) {
|
|
26429
|
+
case "Enter":
|
|
26430
|
+
case " ":
|
|
26431
|
+
event.preventDefault();
|
|
26432
|
+
selectHighlighted();
|
|
26433
|
+
return;
|
|
26434
|
+
case "ArrowRight":
|
|
26435
|
+
event.preventDefault();
|
|
26436
|
+
selectHighlighted();
|
|
26437
|
+
if (idx < columns.length - 1) {
|
|
26438
|
+
(_b = columns[idx + 1]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
26439
|
+
}
|
|
26440
|
+
return;
|
|
26441
|
+
case "ArrowLeft":
|
|
26442
|
+
event.preventDefault();
|
|
26443
|
+
if (idx > 0)
|
|
26444
|
+
(_c = columns[idx - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
26445
|
+
return;
|
|
26446
|
+
case "Tab":
|
|
26447
|
+
if (event.shiftKey) {
|
|
26448
|
+
if (idx === 0) {
|
|
26449
|
+
return;
|
|
26450
|
+
}
|
|
26451
|
+
else {
|
|
26452
|
+
event.preventDefault();
|
|
26453
|
+
(_d = columns[idx - 1]) === null || _d === void 0 ? void 0 : _d.focus();
|
|
26454
|
+
}
|
|
26455
|
+
}
|
|
26456
|
+
else {
|
|
26457
|
+
event.preventDefault();
|
|
26458
|
+
selectHighlighted();
|
|
26459
|
+
this.announceSelectedColumn(type);
|
|
26460
|
+
if (idx < columns.length - 1) {
|
|
26461
|
+
(_e = columns[idx + 1]) === null || _e === void 0 ? void 0 : _e.focus();
|
|
26462
|
+
}
|
|
26463
|
+
else {
|
|
26464
|
+
(_g = (_f = this.el.shadowRoot) === null || _f === void 0 ? void 0 : _f.querySelector(".ic-time-selector-clear-btn")) === null || _g === void 0 ? void 0 : _g.focus();
|
|
26465
|
+
this.updateAriaLiveMessage();
|
|
26466
|
+
}
|
|
26467
|
+
}
|
|
26468
|
+
return;
|
|
26469
|
+
case "ArrowUp":
|
|
26470
|
+
case "ArrowDown": {
|
|
26471
|
+
let idxInValues = values.findIndex((v) => v === selected);
|
|
26472
|
+
if (idxInValues === -1)
|
|
26473
|
+
idxInValues = 0;
|
|
26474
|
+
let newIdx = idxInValues;
|
|
26475
|
+
const direction = event.key === "ArrowUp" ? -1 : 1;
|
|
26476
|
+
const maxIdx = values.length - 1;
|
|
26477
|
+
do {
|
|
26478
|
+
newIdx += direction;
|
|
26479
|
+
} while (newIdx >= 0 &&
|
|
26480
|
+
newIdx <= maxIdx &&
|
|
26481
|
+
(() => {
|
|
26482
|
+
var _a, _b;
|
|
26483
|
+
if (type === "hour" || type === "minute") {
|
|
26484
|
+
const hour = type === "hour"
|
|
26485
|
+
? values[newIdx]
|
|
26486
|
+
: (_a = this.selectedHour) !== null && _a !== void 0 ? _a : 0;
|
|
26487
|
+
const minute = type === "minute"
|
|
26488
|
+
? values[newIdx]
|
|
26489
|
+
: (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : 0;
|
|
26490
|
+
return this.isTimeDisabled(hour, minute);
|
|
26491
|
+
}
|
|
26492
|
+
return false;
|
|
26493
|
+
})());
|
|
26494
|
+
this.ariaLiveMessage = `Selected ${type}: ${values[newIdx]}`;
|
|
26495
|
+
if (newIdx >= 0 && newIdx <= maxIdx && newIdx !== idxInValues) {
|
|
26496
|
+
this.handleSelect(type, values[newIdx]);
|
|
26497
|
+
}
|
|
26498
|
+
return;
|
|
26499
|
+
}
|
|
26500
|
+
default:
|
|
26501
|
+
return;
|
|
26502
|
+
}
|
|
26503
|
+
};
|
|
26504
|
+
this.renderColumn = (type, values, selected) => {
|
|
26505
|
+
const isTimeColumn = type === "hour" || type === "minute";
|
|
26506
|
+
const isPeriodColumn = type === "period";
|
|
26507
|
+
const headerLabel = this.getHeaderLabel(type);
|
|
26508
|
+
const topSpacerCount = 2;
|
|
26509
|
+
let bottomSpacerCount = 6;
|
|
26510
|
+
if (this.size === "large") {
|
|
26511
|
+
bottomSpacerCount = 5;
|
|
26512
|
+
}
|
|
26513
|
+
else if (this.size === "small") {
|
|
26514
|
+
bottomSpacerCount = 8;
|
|
26515
|
+
}
|
|
26516
|
+
return (hAsync("div", { class: "ic-time-selector-column-wrapper" }, isPeriodColumn ? (hAsync("div", { class: "ic-time-selector-header-row" })) : (headerLabel && (hAsync("div", { class: "ic-time-selector-header-row" }, hAsync("ic-typography", { variant: "subtitle-small" }, headerLabel)))), hAsync("div", { class: {
|
|
26517
|
+
"ic-time-selector-column": true,
|
|
26518
|
+
"ic-time-selector-column-period": isPeriodColumn,
|
|
26519
|
+
}, tabIndex: 0, onKeyDown: (e) => this.handleColumnKeyDown(type, e) }, hAsync("ul", { class: "ic-time-selector-list", role: "listbox", "aria-label": type }, this.renderScrollRows(topSpacerCount, `${type}-top-spacer`), values.map((val) => {
|
|
26520
|
+
var _a, _b;
|
|
26521
|
+
let disabled = false;
|
|
26522
|
+
if (isTimeColumn) {
|
|
26523
|
+
const hour = type === "hour" ? val : (_a = this.selectedHour) !== null && _a !== void 0 ? _a : 0;
|
|
26524
|
+
const minute = type === "minute"
|
|
26525
|
+
? val
|
|
26526
|
+
: (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : 0;
|
|
26527
|
+
disabled = this.isTimeDisabled(hour, minute, type);
|
|
26528
|
+
}
|
|
26529
|
+
return (hAsync("li", { class: {
|
|
26530
|
+
"ic-time-selector-item": true,
|
|
26531
|
+
selected: val === selected,
|
|
26532
|
+
disabled,
|
|
26533
|
+
}, role: "option", "aria-selected": val === selected ? "true" : "false", "aria-disabled": disabled ? "true" : "false", onClick: () => !disabled && this.handleSelect(type, val), tabIndex: -1, key: `${type}-val-${val}` }, hAsync("ic-typography", { variant: "subtitle-small" }, typeof val === "number"
|
|
26534
|
+
? val.toString().padStart(2, "0")
|
|
26535
|
+
: val)));
|
|
26536
|
+
}), (isTimeColumn || isPeriodColumn) &&
|
|
26537
|
+
this.renderScrollRows(bottomSpacerCount, `${type}-bottom-spacer`)))));
|
|
26538
|
+
};
|
|
26539
|
+
this.handleClear = () => {
|
|
26540
|
+
this.selectedHour = undefined;
|
|
26541
|
+
this.scrollSelectedItem("hour", true);
|
|
26542
|
+
this.selectedMinute = undefined;
|
|
26543
|
+
this.scrollSelectedItem("minute", true);
|
|
26544
|
+
this.selectedPeriod = undefined;
|
|
26545
|
+
this.scrollSelectedItem("period", true);
|
|
26546
|
+
this.lastAnnouncedType = undefined;
|
|
26547
|
+
this.lastAnnouncedValue = undefined;
|
|
26548
|
+
this.icChange.emit({
|
|
26549
|
+
value: null,
|
|
26550
|
+
timeString: null,
|
|
26551
|
+
timeObject: {
|
|
26552
|
+
hour: null,
|
|
26553
|
+
minute: null,
|
|
26554
|
+
period: undefined,
|
|
26555
|
+
},
|
|
26556
|
+
});
|
|
26557
|
+
};
|
|
26558
|
+
this.handleConfirmClick = () => {
|
|
26559
|
+
const hour = this.selectedHour != null ? this.selectedHour : null;
|
|
26560
|
+
const minute = this.selectedMinute != null ? this.selectedMinute : null;
|
|
26561
|
+
const period = this.selectedPeriod;
|
|
26562
|
+
const hourStr = hour != null ? hour.toString().padStart(2, "0") : null;
|
|
26563
|
+
const minuteStr = minute != null ? minute.toString().padStart(2, "0") : null;
|
|
26564
|
+
let allSelected = false;
|
|
26565
|
+
allSelected = hour !== null && minute !== null;
|
|
26566
|
+
let value = null;
|
|
26567
|
+
let timeString = null;
|
|
26568
|
+
if (allSelected) {
|
|
26569
|
+
let date24hours = hour;
|
|
26570
|
+
if (hour != null && period && this.timePeriod === "12") {
|
|
26571
|
+
if (period === "PM" && hour < 12)
|
|
26572
|
+
date24hours = hour + 12;
|
|
26573
|
+
if (period === "AM" && hour === 12)
|
|
26574
|
+
date24hours = 0;
|
|
26575
|
+
}
|
|
26576
|
+
value = new Date();
|
|
26577
|
+
value.setHours(date24hours !== null && date24hours !== void 0 ? date24hours : 0);
|
|
26578
|
+
value.setMinutes(minute !== null && minute !== void 0 ? minute : 0);
|
|
26579
|
+
timeString = hourStr + ":" + minuteStr + (period ? " " + period : "");
|
|
26580
|
+
this.value = value;
|
|
26581
|
+
}
|
|
26582
|
+
this.icChange.emit({
|
|
26583
|
+
value: allSelected ? value : null,
|
|
26584
|
+
timeString: allSelected ? timeString : null,
|
|
26585
|
+
timeObject: Object.assign({ hour: hourStr, minute: minuteStr }, (period ? { period } : {})),
|
|
26586
|
+
});
|
|
26587
|
+
};
|
|
26588
|
+
}
|
|
26589
|
+
watchMinHandler() {
|
|
26590
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
26591
|
+
}
|
|
26592
|
+
watchMaxHandler() {
|
|
26593
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
26594
|
+
}
|
|
26595
|
+
watchValueHandler() {
|
|
26596
|
+
this.setTime(this.value);
|
|
26597
|
+
setTimeout(() => {
|
|
26598
|
+
this.scrollSelectedItem("hour");
|
|
26599
|
+
this.scrollSelectedItem("minute");
|
|
26600
|
+
if (this.timePeriod === "12") {
|
|
26601
|
+
this.scrollSelectedItem("period");
|
|
26602
|
+
}
|
|
26603
|
+
}, 0);
|
|
26604
|
+
}
|
|
26605
|
+
componentWillLoad() {
|
|
26606
|
+
this.setTime(this.value);
|
|
26607
|
+
}
|
|
26608
|
+
componentDidLoad() {
|
|
26609
|
+
setTimeout(() => {
|
|
26610
|
+
if (this.selectedHour !== undefined && this.selectedHour !== null) {
|
|
26611
|
+
this.scrollSelectedItem("hour");
|
|
26612
|
+
}
|
|
26613
|
+
else if (this.min) {
|
|
26614
|
+
this.scrollMinTime("hour");
|
|
26615
|
+
}
|
|
26616
|
+
if (this.selectedMinute !== undefined && this.selectedMinute !== null) {
|
|
26617
|
+
this.scrollSelectedItem("minute");
|
|
26618
|
+
}
|
|
26619
|
+
else if (this.min) {
|
|
26620
|
+
this.scrollMinTime("minute");
|
|
26621
|
+
}
|
|
26622
|
+
if (this.timePeriod === "12") {
|
|
26623
|
+
if (this.selectedPeriod !== undefined && this.selectedPeriod !== null) {
|
|
26624
|
+
this.scrollSelectedItem("period");
|
|
26625
|
+
}
|
|
26626
|
+
else if (this.min) {
|
|
26627
|
+
this.scrollMinTime("period");
|
|
26628
|
+
}
|
|
26629
|
+
}
|
|
26630
|
+
this.updateAriaLiveMessage();
|
|
26631
|
+
}, 0);
|
|
26632
|
+
}
|
|
26633
|
+
getHeaderLabel(type) {
|
|
26634
|
+
switch (type) {
|
|
26635
|
+
case "hour":
|
|
26636
|
+
return "HH";
|
|
26637
|
+
case "minute":
|
|
26638
|
+
return "MM";
|
|
26639
|
+
default:
|
|
26640
|
+
return "";
|
|
26641
|
+
}
|
|
26642
|
+
}
|
|
26643
|
+
setTime(time) {
|
|
26644
|
+
if (time === null || time === undefined || time === "") {
|
|
26645
|
+
this.handleClear();
|
|
26646
|
+
return;
|
|
26647
|
+
}
|
|
26648
|
+
if (typeof time === "string") {
|
|
26649
|
+
const zuluMatch = time.match(/^([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.[0-9]{1,3})?Z?$/);
|
|
26650
|
+
if (zuluMatch) {
|
|
26651
|
+
this.setTimeParts(Number(zuluMatch[1]), Number(zuluMatch[2]));
|
|
26652
|
+
}
|
|
26653
|
+
else {
|
|
26654
|
+
const parts = time.split(":");
|
|
26655
|
+
this.setTimeParts(Number(parts[0]) || 0, Number(parts[1]) || 0);
|
|
26656
|
+
}
|
|
26657
|
+
}
|
|
26658
|
+
else {
|
|
26659
|
+
const { parts } = parseTimeHelper(time);
|
|
26660
|
+
if (parts) {
|
|
26661
|
+
this.setTimeParts(parts.hour, parts.minute);
|
|
26662
|
+
}
|
|
26663
|
+
}
|
|
26664
|
+
}
|
|
26665
|
+
renderScrollRows(count, keyPrefix = "scroll-row") {
|
|
26666
|
+
return Array.from({ length: count }).map((_, i) => {
|
|
26667
|
+
const isLast = keyPrefix.endsWith("bottom-spacer")
|
|
26668
|
+
? i === count - 1
|
|
26669
|
+
: false;
|
|
26670
|
+
return (hAsync("li", { class: Object.assign({ "ic-time-selector-item": true, "ic-time-selector-scroll-row": true }, (isLast ? { "ic-time-selector-scroll-row-last": true } : {})), "aria-hidden": "true", tabIndex: -1, key: `${keyPrefix}-${i}` }));
|
|
26671
|
+
});
|
|
26672
|
+
}
|
|
26673
|
+
scrollSelectedItem(colClass, clear) {
|
|
26674
|
+
var _a;
|
|
26675
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26676
|
+
let colIdx = COLUMN_TYPES.indexOf(colClass);
|
|
26677
|
+
if (colClass === "period" && (columns === null || columns === void 0 ? void 0 : columns.length)) {
|
|
26678
|
+
colIdx = columns.length - 1;
|
|
26679
|
+
}
|
|
26680
|
+
const col = columns === null || columns === void 0 ? void 0 : columns[colIdx];
|
|
26681
|
+
if (col) {
|
|
26682
|
+
const items = col.querySelectorAll(ITEM_CLASS);
|
|
26683
|
+
let selectedIdx = -1;
|
|
26684
|
+
items.forEach((item, idx) => {
|
|
26685
|
+
if (item.classList.contains("selected"))
|
|
26686
|
+
selectedIdx = idx;
|
|
26687
|
+
});
|
|
26688
|
+
if (clear) {
|
|
26689
|
+
selectedIdx = 0;
|
|
26690
|
+
}
|
|
26691
|
+
if (selectedIdx > -1) {
|
|
26692
|
+
const scrollRow = col.querySelector(".ic-time-selector-scroll-row");
|
|
26693
|
+
let resolvedHeight = 0;
|
|
26694
|
+
if (scrollRow) {
|
|
26695
|
+
resolvedHeight = parseFloat(getComputedStyle(scrollRow).height);
|
|
26696
|
+
}
|
|
26697
|
+
const offset = resolvedHeight * 2;
|
|
26698
|
+
const scrollTop = items[selectedIdx].offsetTop - offset;
|
|
26699
|
+
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
26700
|
+
col.scrollTo({
|
|
26701
|
+
top: scrollTop,
|
|
26702
|
+
behavior: prefersReducedMotion ? "instant" : "smooth",
|
|
26703
|
+
});
|
|
26704
|
+
if (clear) {
|
|
26705
|
+
setTimeout(() => {
|
|
26706
|
+
var _a;
|
|
26707
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26708
|
+
if (columns && columns.length > 0) {
|
|
26709
|
+
this.checkIfScrollIsFinished(columns[0], scrollTop);
|
|
26710
|
+
}
|
|
26711
|
+
}, 300);
|
|
26712
|
+
}
|
|
26713
|
+
}
|
|
26714
|
+
}
|
|
26715
|
+
}
|
|
26716
|
+
scrollMinTime(colClass) {
|
|
26717
|
+
var _a;
|
|
26718
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26719
|
+
const colIdx = COLUMN_TYPES.indexOf(colClass);
|
|
26720
|
+
const col = columns === null || columns === void 0 ? void 0 : columns[colIdx];
|
|
26721
|
+
if (!col)
|
|
26722
|
+
return;
|
|
26723
|
+
const items = col.querySelectorAll(ITEM_CLASS);
|
|
26724
|
+
let minHour = 0, minMinute = 0;
|
|
26725
|
+
if (this.minTime) {
|
|
26726
|
+
minHour = this.minTime.getHours() + 2;
|
|
26727
|
+
minMinute = this.minTime.getMinutes() + 2;
|
|
26728
|
+
}
|
|
26729
|
+
else if (this.min) {
|
|
26730
|
+
const minDate = parseTimeHelper(this.min).date;
|
|
26731
|
+
if (minDate) {
|
|
26732
|
+
minHour = minDate.getHours();
|
|
26733
|
+
minMinute = minDate.getMinutes();
|
|
26734
|
+
}
|
|
26735
|
+
}
|
|
26736
|
+
let targetIdx = -1;
|
|
26737
|
+
const values = this.getColumnValues(colClass);
|
|
26738
|
+
if (colClass === "hour") {
|
|
26739
|
+
targetIdx = values.findIndex((v) => v === minHour);
|
|
26740
|
+
}
|
|
26741
|
+
else if (colClass === "minute") {
|
|
26742
|
+
targetIdx = values.findIndex((v) => v === minMinute);
|
|
26743
|
+
}
|
|
26744
|
+
else if (colClass === "period") {
|
|
26745
|
+
let period = "AM";
|
|
26746
|
+
if (this.timePeriod === "12") {
|
|
26747
|
+
if (minHour === 0) {
|
|
26748
|
+
period = "AM";
|
|
26749
|
+
}
|
|
26750
|
+
else if (minHour === 12) {
|
|
26751
|
+
period = "PM";
|
|
26752
|
+
}
|
|
26753
|
+
else if (minHour > 12) {
|
|
26754
|
+
period = "PM";
|
|
26755
|
+
}
|
|
26756
|
+
else {
|
|
26757
|
+
period = "AM";
|
|
26758
|
+
}
|
|
26759
|
+
}
|
|
26760
|
+
targetIdx = values.findIndex((v) => v === period);
|
|
26761
|
+
}
|
|
26762
|
+
if (targetIdx > -1) {
|
|
26763
|
+
const scrollRow = col.querySelector(".ic-time-selector-scroll-row");
|
|
26764
|
+
let resolvedHeight = 0;
|
|
26765
|
+
if (scrollRow) {
|
|
26766
|
+
resolvedHeight = parseFloat(getComputedStyle(scrollRow).height);
|
|
26767
|
+
}
|
|
26768
|
+
const offset = resolvedHeight * 2;
|
|
26769
|
+
const scrollTop = items[targetIdx].offsetTop - offset;
|
|
26770
|
+
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
26771
|
+
col.scrollTo({
|
|
26772
|
+
top: scrollTop,
|
|
26773
|
+
behavior: prefersReducedMotion ? "instant" : "smooth",
|
|
26774
|
+
});
|
|
26775
|
+
}
|
|
26776
|
+
}
|
|
26777
|
+
announceSelectedColumn(type) {
|
|
26778
|
+
const value = this.getSelectedValue(type);
|
|
26779
|
+
if (value !== null &&
|
|
26780
|
+
value !== undefined &&
|
|
26781
|
+
(type !== this.lastAnnouncedType || value !== this.lastAnnouncedValue)) {
|
|
26782
|
+
this.ariaLiveMessage = `Selected ${type}: ${value}`;
|
|
26783
|
+
}
|
|
26784
|
+
else {
|
|
26785
|
+
this.ariaLiveMessage = "";
|
|
26786
|
+
}
|
|
26787
|
+
this.lastAnnouncedType = type;
|
|
26788
|
+
this.lastAnnouncedValue = value;
|
|
26789
|
+
}
|
|
26790
|
+
getColumnValues(type) {
|
|
26791
|
+
if (type === "hour")
|
|
26792
|
+
return this.timePeriod === "12"
|
|
26793
|
+
? Array.from({ length: 12 }, (_, i) => i + 1)
|
|
26794
|
+
: Array.from({ length: 24 }, (_, i) => i);
|
|
26795
|
+
if (type === "minute")
|
|
26796
|
+
return this.minutes;
|
|
26797
|
+
if (type === "period")
|
|
26798
|
+
return this.periods;
|
|
26799
|
+
return [];
|
|
26800
|
+
}
|
|
26801
|
+
getSelectedValue(type) {
|
|
26802
|
+
var _a, _b, _c;
|
|
26803
|
+
if (type === "hour")
|
|
26804
|
+
return (_a = this.selectedHour) !== null && _a !== void 0 ? _a : null;
|
|
26805
|
+
if (type === "minute")
|
|
26806
|
+
return (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : null;
|
|
26807
|
+
if (type === "period")
|
|
26808
|
+
return (_c = this.selectedPeriod) !== null && _c !== void 0 ? _c : null;
|
|
26809
|
+
return null;
|
|
26810
|
+
}
|
|
26811
|
+
getHighlightedValue(type, col) {
|
|
26812
|
+
var _a, _b, _c;
|
|
26813
|
+
const items = Array.from(col.querySelectorAll(ITEM_CLASS));
|
|
26814
|
+
const realItems = items.filter((item) => !item.classList.contains("ic-time-selector-scroll-row"));
|
|
26815
|
+
if (realItems.length === 0)
|
|
26816
|
+
return null;
|
|
26817
|
+
const highlightTop = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-time-selector-highlight-top");
|
|
26818
|
+
const highlightBottom = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(".ic-time-selector-highlight-bottom");
|
|
26819
|
+
if (!highlightTop || !highlightBottom)
|
|
26820
|
+
return null;
|
|
26821
|
+
const topRect = highlightTop.getBoundingClientRect();
|
|
26822
|
+
const bottomRect = highlightBottom.getBoundingClientRect();
|
|
26823
|
+
const highlightStart = topRect.bottom;
|
|
26824
|
+
const highlightEnd = bottomRect.top;
|
|
26825
|
+
for (const item of realItems) {
|
|
26826
|
+
const itemRect = item.getBoundingClientRect();
|
|
26827
|
+
const itemCenter = itemRect.top + itemRect.height / 2;
|
|
26828
|
+
if (itemCenter >= highlightStart && itemCenter <= highlightEnd) {
|
|
26829
|
+
const key = item.getAttribute("key");
|
|
26830
|
+
if (key) {
|
|
26831
|
+
const valStr = key.replace(`${type}-val-`, "");
|
|
26832
|
+
if (type === "hour" || type === "minute") {
|
|
26833
|
+
return Number(valStr);
|
|
26834
|
+
}
|
|
26835
|
+
else {
|
|
26836
|
+
return valStr;
|
|
26837
|
+
}
|
|
26838
|
+
}
|
|
26839
|
+
const text = (_c = item.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
26840
|
+
if (type === "hour" || type === "minute") {
|
|
26841
|
+
return text ? Number(text) : null;
|
|
26842
|
+
}
|
|
26843
|
+
else {
|
|
26844
|
+
return text;
|
|
26845
|
+
}
|
|
26846
|
+
}
|
|
26847
|
+
}
|
|
26848
|
+
return null;
|
|
26849
|
+
}
|
|
26850
|
+
updateAriaLiveMessage() {
|
|
26851
|
+
const hourStr = this.selectedHour != null
|
|
26852
|
+
? this.selectedHour.toString().padStart(2, "0")
|
|
26853
|
+
: null;
|
|
26854
|
+
const minuteStr = this.selectedMinute != null
|
|
26855
|
+
? this.selectedMinute.toString().padStart(2, "0")
|
|
26856
|
+
: null;
|
|
26857
|
+
let timeString = "";
|
|
26858
|
+
let allSelected = false;
|
|
26859
|
+
allSelected = hourStr !== null && minuteStr !== null;
|
|
26860
|
+
if (allSelected) {
|
|
26861
|
+
timeString =
|
|
26862
|
+
hourStr +
|
|
26863
|
+
":" +
|
|
26864
|
+
minuteStr +
|
|
26865
|
+
(this.selectedPeriod ? " " + this.selectedPeriod : "");
|
|
26866
|
+
}
|
|
26867
|
+
this.ariaLiveMessage =
|
|
26868
|
+
allSelected && timeString ? `Selected time: ${timeString}` : "";
|
|
26869
|
+
}
|
|
26870
|
+
render() {
|
|
26871
|
+
var _a, _b, _c;
|
|
26872
|
+
const hours = this.timePeriod === "12"
|
|
26873
|
+
? Array.from({ length: 12 }, (_, i) => i + 1)
|
|
26874
|
+
: Array.from({ length: 24 }, (_, i) => i);
|
|
26875
|
+
const columns = [
|
|
26876
|
+
this.renderColumn("hour", hours, (_a = this.selectedHour) !== null && _a !== void 0 ? _a : null),
|
|
26877
|
+
this.renderColumn("minute", this.minutes, (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : null),
|
|
26878
|
+
];
|
|
26879
|
+
let colonSelectedStates = [];
|
|
26880
|
+
colonSelectedStates = [
|
|
26881
|
+
this.selectedHour !== undefined && this.selectedMinute !== undefined,
|
|
26882
|
+
];
|
|
26883
|
+
const isInPicker = this.el.closest("ic-time-picker") !== null;
|
|
26884
|
+
const { size, theme, timePeriod } = this;
|
|
26885
|
+
return (hAsync(Host, { key: 'af65b8999b8c677a6ef2e33fe167fb5b333f0571', class: {
|
|
26886
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
26887
|
+
[`ic-time-selector-${size}`]: true,
|
|
26888
|
+
} }, hAsync("div", { key: 'c345308cda9bc9b1a6e20ad7b1969c8e1b173efa', role: isInPicker ? "dialog" : undefined, "aria-modal": isInPicker ? true : undefined, "aria-label": "Select time. Use arrow keys to navigate and select the options and then tab to move onto the next selection.", class: {
|
|
26889
|
+
"ic-time-selector-dialog-container": true,
|
|
26890
|
+
} }, hAsync("div", { key: '85f4f862ec0a9263e491e45dc4cacac69854d5d6', class: "ic-time-selector-highlight-lines" }, hAsync("div", { key: 'd5175185db4049b2660ec4b81971ac13b9b307cb', class: "ic-time-selector-header-border" }), hAsync("div", { key: 'b1be244ff1cdd68b33dad814f501c4e5c8486318', class: {
|
|
26891
|
+
"ic-time-selector-highlight": true,
|
|
26892
|
+
"ic-time-selector-highlight-top": true,
|
|
26893
|
+
} }), hAsync("div", { key: 'ec20a6536aa67a4dbc96f29ef42d424a0342ebe8', class: "ic-time-selector-columns" }, columns.map((col, idx) => [
|
|
26894
|
+
col,
|
|
26895
|
+
idx < columns.length - 1 ? (hAsync("ic-typography", { class: {
|
|
26896
|
+
"ic-time-selector-colon": true,
|
|
26897
|
+
"ic-time-selector-colon-selected": colonSelectedStates[idx],
|
|
26898
|
+
}, variant: "subtitle-small", "aria-hidden": "true", key: `colon-${idx}` }, ":")) : null,
|
|
26899
|
+
]), timePeriod !== "24" &&
|
|
26900
|
+
this.renderColumn("period", this.periods, (_c = this.selectedPeriod) !== null && _c !== void 0 ? _c : null)), hAsync("div", { key: '72b1abb5e7f19bf853b208dca7365c57b397d9f6', class: {
|
|
26901
|
+
"ic-time-selector-highlight": true,
|
|
26902
|
+
"ic-time-selector-highlight-bottom": true,
|
|
26903
|
+
} })), hAsync("div", { key: '2b8125333fd8e8d119d3496cb690a9c3d3711cb7', class: "ic-time-selector-actions" }, hAsync("ic-button", { key: '5cd3db3be7006940e8e8ed8c2e823c384e6a677c', variant: "icon-tertiary", "aria-label": "Clear time", class: {
|
|
26904
|
+
"ic-time-selector-clear-btn": true,
|
|
26905
|
+
}, onClick: this.handleClear, disabled: this.selectedHour === undefined &&
|
|
26906
|
+
this.selectedMinute === undefined &&
|
|
26907
|
+
this.selectedPeriod === undefined, size: size, tabIndex: 0, onKeyDown: (e) => {
|
|
26908
|
+
var _a;
|
|
26909
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
26910
|
+
e.preventDefault();
|
|
26911
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26912
|
+
if (columns && columns.length > 0) {
|
|
26913
|
+
const lastCol = columns[columns.length - 1];
|
|
26914
|
+
lastCol === null || lastCol === void 0 ? void 0 : lastCol.focus();
|
|
26915
|
+
}
|
|
26916
|
+
}
|
|
26917
|
+
} }, hAsync("span", { key: '4c6383f537d199e7d282d0dc5f4d8eac30c86e47', "aria-hidden": "true", innerHTML: Clear })), hAsync("ic-button", { key: '021b111b463ddb83d4449fb2c77cf27c972c04b7', variant: "icon-tertiary", "aria-label": "Select time", class: "ic-time-selector-check-btn", onClick: this.handleConfirmClick, disabled: this.selectedHour === undefined &&
|
|
26918
|
+
this.selectedMinute === undefined &&
|
|
26919
|
+
this.selectedPeriod === undefined, size: size, tabIndex: 0 }, hAsync("span", { key: '95ba008a5b36459cba5d972dee1356f8c0194297', "aria-hidden": "true", innerHTML: Check })))), hAsync("div", { key: '266f4b6084ff8530d3832eee59546af9419eb7a3', class: "sr-only", "aria-live": "polite" }, this.ariaLiveMessage)));
|
|
26920
|
+
}
|
|
26921
|
+
get el() { return getElement(this); }
|
|
26922
|
+
static get watchers() { return {
|
|
26923
|
+
"min": ["watchMinHandler"],
|
|
26924
|
+
"max": ["watchMaxHandler"],
|
|
26925
|
+
"value": ["watchValueHandler"]
|
|
26926
|
+
}; }
|
|
26927
|
+
static get style() { return IcTimeSelectorStyle0; }
|
|
26928
|
+
static get cmpMeta() { return {
|
|
26929
|
+
"$flags$": 9,
|
|
26930
|
+
"$tagName$": "ic-time-selector",
|
|
26931
|
+
"$members$": {
|
|
26932
|
+
"disableTimes": [16],
|
|
26933
|
+
"min": [1],
|
|
26934
|
+
"max": [1],
|
|
26935
|
+
"size": [1],
|
|
26936
|
+
"theme": [1],
|
|
26937
|
+
"timePeriod": [1, "time-period"],
|
|
26938
|
+
"value": [1025],
|
|
26939
|
+
"selectedHour": [32],
|
|
26940
|
+
"selectedMinute": [32],
|
|
26941
|
+
"selectedPeriod": [32],
|
|
26942
|
+
"ariaLiveMessage": [32]
|
|
25778
26943
|
},
|
|
25779
26944
|
"$listeners$": undefined,
|
|
25780
26945
|
"$lazyBundleId$": "-",
|
|
@@ -25991,20 +27156,20 @@ class Toast {
|
|
|
25991
27156
|
}
|
|
25992
27157
|
render() {
|
|
25993
27158
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, theme, } = this;
|
|
25994
|
-
return (hAsync(Host, { key: '
|
|
27159
|
+
return (hAsync(Host, { key: '2bac1c836e58af45a4471435aa0721bfd0aafcc4', class: {
|
|
25995
27160
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25996
27161
|
["ic-toast-hidden"]: !visible,
|
|
25997
27162
|
[`ic-toast-variant-${variant}`]: variant !== undefined,
|
|
25998
|
-
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '
|
|
27163
|
+
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: 'b4388f3cfba0cb1084e026dca2f97efd3ccafc2a', class: {
|
|
25999
27164
|
["container"]: true,
|
|
26000
27165
|
[`container-${variant}`]: variant !== undefined,
|
|
26001
|
-
} }, variant && visible && (hAsync("div", { key: '
|
|
27166
|
+
} }, variant && visible && (hAsync("div", { key: 'e587c5b11b4ddcd93e1eb8ee0a8b2f2e63154e48', class: "toast-icon-container" }, hAsync("div", { key: '841cabdcbc6b499303599d3f521332877a626dc8', class: {
|
|
26002
27167
|
["divider"]: true,
|
|
26003
27168
|
[`divider-${variant}`]: true,
|
|
26004
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
27169
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '0346511199e51296a49ceb78c3858e93f481ff9a', class: {
|
|
26005
27170
|
["toast-content"]: true,
|
|
26006
27171
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
|
26007
|
-
} }, hAsync("div", { key: '
|
|
27172
|
+
} }, hAsync("div", { key: '455cef756a449a6a23dec8679f6a9e68ca19e761', class: "toast-text" }, hAsync("ic-typography", { key: '33a1f0d5080f96a67fc9ef753d2b90806665f62e', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '334748fcea7132f4c3f82f8e3f6267c532796289', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '5178bc7cba60aa663105fa09fc31617c6a923f0d' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '263401f6f52c6acd495a448fb21176a3af002234', class: "toast-action-container" }, hAsync("slot", { key: '3f1cbc47a3a01254c7581ec4a0a1a6ef988cd417', name: "action" })))), !isManual ? (hAsync("ic-loading-indicator", { class: "toast-dismiss-timer", theme: "dark", monochrome: true, size: "icon", progress: this.timerProgress, description: "Dismiss timer" })) : (hAsync("ic-button", { id: "dismiss-button", innerHTML: closeIcon, onClick: this.dismissAction, variant: "icon-tertiary", "aria-label": dismissButtonAriaLabel })))));
|
|
26008
27173
|
}
|
|
26009
27174
|
get el() { return getElement(this); }
|
|
26010
27175
|
static get watchers() { return {
|
|
@@ -26077,7 +27242,7 @@ class ToastRegion {
|
|
|
26077
27242
|
}
|
|
26078
27243
|
}
|
|
26079
27244
|
render() {
|
|
26080
|
-
return hAsync("slot", { key: '
|
|
27245
|
+
return hAsync("slot", { key: '8ba16a1a1aa173043f4a14af432e11a82fffda5a' });
|
|
26081
27246
|
}
|
|
26082
27247
|
get el() { return getElement(this); }
|
|
26083
27248
|
static get watchers() { return {
|
|
@@ -26250,7 +27415,7 @@ class ToggleButton {
|
|
|
26250
27415
|
render() {
|
|
26251
27416
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
|
26252
27417
|
const iconVariant = variant === "icon";
|
|
26253
|
-
return (hAsync(Host, { key: '
|
|
27418
|
+
return (hAsync(Host, { key: 'a7fc7b7059ce70e3234ef1635586a175d69891a3', class: {
|
|
26254
27419
|
"ic-toggle-button-checked": checked,
|
|
26255
27420
|
"ic-toggle-button-disabled": disabled,
|
|
26256
27421
|
"ic-toggle-button-icon": iconVariant,
|
|
@@ -26260,7 +27425,7 @@ class ToggleButton {
|
|
|
26260
27425
|
"ic-toggle-button-hide-outline": !outline,
|
|
26261
27426
|
[`ic-toggle-button-${size}`]: true,
|
|
26262
27427
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
26263
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
|
27428
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '163a1360e830e9ef99683346438f9becc8c70482', "aria-pressed": `${checked}`, variant: iconVariant ? "icon-tertiary" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: 'b9a212fe0f7566d49b1545a999c1f8929775beed' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: '69aa58ba2bb432ee222abc899fcb7f666d784176', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: 'd274ed4513b466b0e0c0e690cc085e8aca2e74ca', name: "badge", slot: "badge" })))));
|
|
26264
27429
|
}
|
|
26265
27430
|
static get delegatesFocus() { return true; }
|
|
26266
27431
|
get el() { return getElement(this); }
|
|
@@ -26304,6 +27469,7 @@ class ToggleButtonGroup {
|
|
|
26304
27469
|
key: null,
|
|
26305
27470
|
shift: false,
|
|
26306
27471
|
};
|
|
27472
|
+
this.externallySetActiveToggle = null;
|
|
26307
27473
|
/**
|
|
26308
27474
|
* The accessible label of the toggle button group component to provide context for screen reader users.
|
|
26309
27475
|
*/
|
|
@@ -26387,7 +27553,15 @@ class ToggleButtonGroup {
|
|
|
26387
27553
|
key !== "ArrowUp")
|
|
26388
27554
|
return;
|
|
26389
27555
|
const toggleButtonOptions = this.getAllToggleButtons();
|
|
26390
|
-
|
|
27556
|
+
let targetToggle;
|
|
27557
|
+
if (this.externallySetActiveToggle) {
|
|
27558
|
+
targetToggle =
|
|
27559
|
+
toggleButtonOptions[this.getNextItemToSelect(toggleButtonOptions.indexOf(toggleButtonOptions.filter((el) => el === this.externallySetActiveToggle)[0]), key === "ArrowDown" || key === "ArrowRight")];
|
|
27560
|
+
}
|
|
27561
|
+
else {
|
|
27562
|
+
targetToggle =
|
|
27563
|
+
toggleButtonOptions[this.getNextItemToSelect(toggleButtonOptions.indexOf(toggleButtonOptions.filter((el) => el === document.activeElement)[0]), key === "ArrowDown" || key === "ArrowRight")];
|
|
27564
|
+
}
|
|
26391
27565
|
if (this.selectMethod === "auto") {
|
|
26392
27566
|
// trigger selectHandler when unable to add 'target'
|
|
26393
27567
|
targetToggle.checked = true;
|
|
@@ -26497,6 +27671,12 @@ class ToggleButtonGroup {
|
|
|
26497
27671
|
});
|
|
26498
27672
|
}
|
|
26499
27673
|
}
|
|
27674
|
+
/**
|
|
27675
|
+
* @internal Used to enable other components to set the active toggle button when toggle button group is in a shadow dom.
|
|
27676
|
+
*/
|
|
27677
|
+
async setActiveToggle(toggle) {
|
|
27678
|
+
this.externallySetActiveToggle = toggle;
|
|
27679
|
+
}
|
|
26500
27680
|
componentWillLoad() {
|
|
26501
27681
|
if (this.selectType === "multi")
|
|
26502
27682
|
this.selectMethod = "manual";
|
|
@@ -26525,14 +27705,14 @@ class ToggleButtonGroup {
|
|
|
26525
27705
|
}
|
|
26526
27706
|
render() {
|
|
26527
27707
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
26528
|
-
return (hAsync(Host, { key: '
|
|
27708
|
+
return (hAsync(Host, { key: 'd8c78a67a57bfaf00ff1f7f732ea581af080c7a6', role: "group", "aria-label": accessibleLabel, tabindex: disabled ? -1 : 0, class: {
|
|
26529
27709
|
"ic-toggle-button-group-disabled": disabled,
|
|
26530
27710
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
26531
27711
|
"ic-toggle-button-group-loading": loading,
|
|
26532
27712
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
26533
27713
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
26534
27714
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
26535
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
27715
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '84cdbfb743f949d9c804da2af8bcc6d7cfdd035e' })));
|
|
26536
27716
|
}
|
|
26537
27717
|
get el() { return getElement(this); }
|
|
26538
27718
|
static get watchers() { return {
|
|
@@ -26564,7 +27744,9 @@ class ToggleButtonGroup {
|
|
|
26564
27744
|
"theme": [1],
|
|
26565
27745
|
"tooltipPlacement": [1, "tooltip-placement"],
|
|
26566
27746
|
"variant": [513],
|
|
26567
|
-
"lastKeyPressed": [32]
|
|
27747
|
+
"lastKeyPressed": [32],
|
|
27748
|
+
"externallySetActiveToggle": [32],
|
|
27749
|
+
"setActiveToggle": [64]
|
|
26568
27750
|
},
|
|
26569
27751
|
"$listeners$": [[0, "icToggleChecked", "selectHandler"]],
|
|
26570
27752
|
"$lazyBundleId$": "-",
|
|
@@ -27378,7 +28560,7 @@ class TreeItem {
|
|
|
27378
28560
|
rel: this.rel,
|
|
27379
28561
|
target: this.target,
|
|
27380
28562
|
};
|
|
27381
|
-
return (hAsync(Host, { key: '
|
|
28563
|
+
return (hAsync(Host, { key: '2b66767ebcadc7f0d59c0e2309424e01dbc49410', class: {
|
|
27382
28564
|
"ic-tree-item-disabled": disabled,
|
|
27383
28565
|
"ic-tree-item-selected": !disabled && selected,
|
|
27384
28566
|
[`ic-tree-item-${size}`]: size !== "medium",
|
|
@@ -27389,7 +28571,7 @@ class TreeItem {
|
|
|
27389
28571
|
}, tabIndex: disabled ? -1 : 0, onClick: this.handleTreeItemClicked, ref: (el) => (this.treeItemElement = el), "aria-disabled": disabled ? "true" : "false", "aria-live": "polite" }, attrs, { onFocus: () => this.handleDisplayTooltip(true), onBlur: () => this.handleDisplayTooltip(false) }), this.isParent && (hAsync("span", { class: {
|
|
27390
28572
|
["arrow-dropdown"]: true,
|
|
27391
28573
|
["tree-item-expanded"]: expanded,
|
|
27392
|
-
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '
|
|
28574
|
+
}, "aria-hidden": "true", innerHTML: arrowDropdown })), isSlotUsed(this.el, "icon") && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: "icon" }))), hAsync("ic-typography", { class: "tree-item-label" }, isSlotUsed(this.el, "label") ? hAsync("slot", { name: "label" }) : label))), expanded && (hAsync("div", { key: '1806805bf01bf7d6320b753a2ed577ea08b8f716', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: '2c7de11af3f2248a6c7ca57d43f56851046cc26a' })))));
|
|
27393
28575
|
}
|
|
27394
28576
|
get el() { return getElement(this); }
|
|
27395
28577
|
static get watchers() { return {
|
|
@@ -27746,14 +28928,14 @@ class TreeView {
|
|
|
27746
28928
|
}
|
|
27747
28929
|
render() {
|
|
27748
28930
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
27749
|
-
return (hAsync(Host, { key: '
|
|
28931
|
+
return (hAsync(Host, { key: 'b64c96601e14f028d70d42596ab73c3adcc5c50c', "context-id": this.treeViewId, class: {
|
|
27750
28932
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
27751
28933
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
27752
28934
|
"ic-tree-view-truncate": truncateHeading,
|
|
27753
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
28935
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '2147d52cb5d094a6b2030707832e7986452ec793', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '884b18baa7bf9a6530578e14e554e7da405184e4', class: "icon-container" }, hAsync("slot", { key: 'a7b165ab9a5851dd0006a0ed2d58299c6cce8008', name: "icon" }))), hAsync("ic-typography", { key: 'b851dc0c5d16d8127ba3e3e0c0efdbbb2675bdd4', variant: "subtitle-large", class: {
|
|
27754
28936
|
"tree-view-header": true,
|
|
27755
28937
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
27756
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
28938
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '1e2577f386a2121c89644f395358fb746eb63cd1' })));
|
|
27757
28939
|
}
|
|
27758
28940
|
get el() { return getElement(this); }
|
|
27759
28941
|
static get watchers() { return {
|
|
@@ -28067,6 +29249,7 @@ registerComponents([
|
|
|
28067
29249
|
TextField,
|
|
28068
29250
|
Theme,
|
|
28069
29251
|
TimeInput,
|
|
29252
|
+
TimeSelector,
|
|
28070
29253
|
Toast,
|
|
28071
29254
|
ToastRegion,
|
|
28072
29255
|
ToggleButton,
|