@ukic/canary-web-components 3.0.0-canary.31 → 3.0.0-canary.33
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-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_3.cjs.entry.js +19 -7
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js.map +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 +13 -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-footer.cjs.entry.js +9 -5
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +2 -2
- 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-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.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-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +9 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-table-of-contents.cjs.entry.js +1 -1
- package/dist/cjs/ic-time-input.cjs.entry.js +401 -99
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-time-selector.cjs.entry.js +842 -0
- package/dist/cjs/ic-time-selector.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-toast.cjs.entry.js +14 -6
- 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} +274 -1
- 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 +13 -7
- 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 +13 -8
- 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 +78 -6
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.js +28 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.stories.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 +434 -106
- 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 +58 -9
- 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 +1075 -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 +166 -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-calendar2.js +1 -1
- package/dist/components/ic-calendar2.js.map +1 -1
- package/dist/components/ic-checkbox2.js.map +1 -1
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +12 -7
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-footer.js +10 -5
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +1 -1
- package/dist/components/ic-input-validation2.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-navigation-group.js +1 -1
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +21 -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-radio-group.js +1 -1
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +10 -7
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +1 -1
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-time-input.js +431 -112
- 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 +898 -0
- package/dist/components/ic-time-selector.js.map +1 -0
- package/dist/components/ic-toast.js +15 -6
- 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} +65 -10
- 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-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-169ad948.entry.js.map +1 -0
- package/dist/core/{p-847cbb16.entry.js → p-1d166343.entry.js} +2 -2
- 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-ffbf493f.entry.js → p-496b314f.entry.js} +2 -2
- package/dist/core/p-496b314f.entry.js.map +1 -0
- package/dist/core/{p-bd9a76d8.entry.js → p-508b6da3.entry.js} +2 -2
- 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-e00e67ff.entry.js → p-6323da7a.entry.js} +2 -2
- 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-71cc5909.entry.js +2 -0
- package/dist/core/p-71cc5909.entry.js.map +1 -0
- package/dist/core/p-770e92cd.entry.js +2 -0
- package/dist/core/p-770e92cd.entry.js.map +1 -0
- package/dist/core/{p-7cf6b428.entry.js → p-79ead0e7.entry.js} +2 -2
- package/dist/core/p-7b4b45cf.entry.js +2 -0
- package/dist/core/p-7b4b45cf.entry.js.map +1 -0
- package/dist/core/{p-afedcfdb.entry.js → p-7efdbab8.entry.js} +2 -2
- package/dist/core/p-802a4bd3.entry.js +2 -0
- package/dist/core/p-802a4bd3.entry.js.map +1 -0
- 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-3891ce53.entry.js → p-8830011c.entry.js} +2 -2
- package/dist/core/{p-444cd8d3.entry.js → p-8ab37b4d.entry.js} +2 -2
- package/dist/core/{p-c87cc0d1.entry.js → p-939025af.entry.js} +2 -2
- package/dist/core/p-939b168a.entry.js +2 -0
- package/dist/core/p-939b168a.entry.js.map +1 -0
- package/dist/core/{p-5a4344cb.entry.js → p-9dea5764.entry.js} +2 -2
- package/dist/core/{p-af821831.entry.js → p-a88e61b2.entry.js} +2 -2
- package/dist/core/p-a88e61b2.entry.js.map +1 -0
- package/dist/core/{p-90611726.entry.js → p-a8a92e54.entry.js} +2 -2
- package/dist/core/{p-31f3fb15.entry.js → p-a94a7b71.entry.js} +2 -2
- package/dist/core/p-ad551a0c.entry.js +2 -0
- package/dist/core/p-ad551a0c.entry.js.map +1 -0
- package/dist/core/{p-ba75ed34.entry.js → p-b434bd7c.entry.js} +2 -2
- package/dist/core/p-b4a2f6fa.entry.js.map +1 -1
- package/dist/core/{p-2188b483.entry.js → p-c0a7eed7.entry.js} +2 -2
- package/dist/core/p-c0b227d2.entry.js +2 -0
- package/dist/core/p-c0b227d2.entry.js.map +1 -0
- package/dist/core/{p-2646a629.entry.js → p-c32f043e.entry.js} +2 -2
- package/dist/core/{p-7a0f62c2.entry.js → p-c4b2774d.entry.js} +2 -2
- package/dist/core/p-c9525aac.entry.js +2 -0
- package/dist/core/p-c9525aac.entry.js.map +1 -0
- 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-15c05eb8.entry.js → p-d528d856.entry.js} +2 -2
- package/dist/core/{p-0043b019.entry.js → p-da1c2883.entry.js} +2 -2
- package/dist/core/{p-ffc1cea6.entry.js → p-e2e556ec.entry.js} +2 -2
- 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-9a95f428.entry.js → p-eaeb473e.entry.js} +2 -2
- package/dist/core/p-eaeb473e.entry.js.map +1 -0
- package/dist/core/{p-8e592393.entry.js → p-ecc7fd71.entry.js} +2 -2
- package/dist/core/p-efe260f0.entry.js +2 -0
- package/dist/core/p-efe260f0.entry.js.map +1 -0
- package/dist/core/{p-b6d6b26e.entry.js → p-f1b57f91.entry.js} +2 -2
- package/dist/core/p-f5dc04f7.entry.js +2 -0
- package/dist/core/p-f5dc04f7.entry.js.map +1 -0
- package/dist/core/p-fb07921b.entry.js +2 -0
- 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 +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +1 -1
- package/dist/esm/ic-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 +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +20 -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-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- 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 +13 -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 +10 -6
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +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 +2 -2
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +10 -7
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +2 -2
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +1 -1
- package/dist/esm/ic-status-tag.entry.js +1 -1
- package/dist/esm/ic-step.entry.js +1 -1
- package/dist/esm/ic-stepper.entry.js +1 -1
- package/dist/esm/ic-switch.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-table-of-contents.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-time-input.entry.js +401 -99
- package/dist/esm/ic-time-input.entry.js.map +1 -1
- package/dist/esm/ic-time-selector.entry.js +838 -0
- package/dist/esm/ic-time-selector.entry.js.map +1 -0
- package/dist/esm/ic-toast.entry.js +15 -7
- 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 +12 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.stories.d.ts +12 -0
- package/dist/types/components/ic-time-input/ic-time-input.d.ts +26 -6
- 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 +88 -0
- package/dist/types/components/ic-time-selector/ic-time-selector.stories.d.ts +99 -0
- package/dist/types/components/ic-time-selector/ic-time-selector.types.d.ts +1 -0
- package/dist/types/components.d.ts +163 -11
- package/dist/types/utils/helpers.d.ts +14 -0
- package/dist/types/utils/types.d.ts +4 -1
- package/hydrate/index.js +1410 -156
- package/hydrate/index.mjs +1410 -156
- 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-1a976789.entry.js +0 -2
- package/dist/core/p-1a976789.entry.js.map +0 -1
- package/dist/core/p-3ba2b455.entry.js +0 -2
- package/dist/core/p-3ba2b455.entry.js.map +0 -1
- package/dist/core/p-41def410.entry.js +0 -2
- package/dist/core/p-41def410.entry.js.map +0 -1
- package/dist/core/p-4b188516.entry.js +0 -2
- package/dist/core/p-4b188516.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-7332320d.entry.js +0 -2
- package/dist/core/p-7332320d.entry.js.map +0 -1
- package/dist/core/p-81f12581.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.map +0 -1
- package/dist/core/p-9f76eed6.entry.js +0 -2
- package/dist/core/p-9f76eed6.entry.js.map +0 -1
- package/dist/core/p-a1448064.entry.js +0 -2
- package/dist/core/p-a1448064.entry.js.map +0 -1
- package/dist/core/p-a237af88.entry.js +0 -2
- package/dist/core/p-a237af88.entry.js.map +0 -1
- package/dist/core/p-af821831.entry.js.map +0 -1
- package/dist/core/p-ba21f477.entry.js +0 -2
- package/dist/core/p-ba21f477.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-c5d65718.entry.js +0 -2
- package/dist/core/p-c5d65718.entry.js.map +0 -1
- package/dist/core/p-d144ca59.entry.js +0 -2
- package/dist/core/p-d144ca59.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-ffbf493f.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-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-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-e00e67ff.entry.js.map → p-6323da7a.entry.js.map} +0 -0
- /package/dist/core/{p-c6c87e58.entry.js.map → p-6dfe0922.entry.js.map} +0 -0
- /package/dist/core/{p-7cf6b428.entry.js.map → p-79ead0e7.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-3891ce53.entry.js.map → p-8830011c.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-31f3fb15.entry.js.map → p-a94a7b71.entry.js.map} +0 -0
- /package/dist/core/{p-ba75ed34.entry.js.map → p-b434bd7c.entry.js.map} +0 -0
- /package/dist/core/{p-2188b483.entry.js.map → p-c0a7eed7.entry.js.map} +0 -0
- /package/dist/core/{p-2646a629.entry.js.map → p-c32f043e.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-15c05eb8.entry.js.map → p-d528d856.entry.js.map} +0 -0
- /package/dist/core/{p-0043b019.entry.js.map → p-da1c2883.entry.js.map} +0 -0
- /package/dist/core/{p-ffc1cea6.entry.js.map → p-e2e556ec.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-b6d6b26e.entry.js.map → p-f1b57f91.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
|
@@ -5924,6 +5924,41 @@ const hasDynamicChildSlots = (mutationList, slotNames) => mutationList.some(({ t
|
|
|
5924
5924
|
const renderDynamicChildSlots = (mutationList, slotNames, ref) => {
|
|
5925
5925
|
if (hasDynamicChildSlots(mutationList, slotNames)) ;
|
|
5926
5926
|
};
|
|
5927
|
+
/**
|
|
5928
|
+
* Parses a time string (HH:MM or HH:MM:SS) or Date and returns both Date and time parts.
|
|
5929
|
+
* @param value string or Date
|
|
5930
|
+
* @returns { date: Date | null, parts: { hour: number, minute: number, second: number } | null }
|
|
5931
|
+
*/
|
|
5932
|
+
function parseTimeHelper(value) {
|
|
5933
|
+
if (!value)
|
|
5934
|
+
return { date: null, parts: null };
|
|
5935
|
+
let d;
|
|
5936
|
+
if (typeof value === "string") {
|
|
5937
|
+
const parts = value.split(/[:.]/);
|
|
5938
|
+
if (parts.length >= 2) {
|
|
5939
|
+
d = new Date();
|
|
5940
|
+
d.setHours(+parts[0], +parts[1], parts[2] ? +parts[2] : 0, parts[3] ? +parts[3] : 0);
|
|
5941
|
+
}
|
|
5942
|
+
else {
|
|
5943
|
+
return { date: null, parts: null };
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
else if (value instanceof Date) {
|
|
5947
|
+
d = value;
|
|
5948
|
+
}
|
|
5949
|
+
else {
|
|
5950
|
+
return { date: null, parts: null };
|
|
5951
|
+
}
|
|
5952
|
+
return {
|
|
5953
|
+
date: d,
|
|
5954
|
+
parts: {
|
|
5955
|
+
hour: d.getHours(),
|
|
5956
|
+
minute: d.getMinutes(),
|
|
5957
|
+
second: d.getSeconds(),
|
|
5958
|
+
millisecond: d.getMilliseconds(),
|
|
5959
|
+
},
|
|
5960
|
+
};
|
|
5961
|
+
}
|
|
5927
5962
|
|
|
5928
5963
|
const DayButton = ({ focussed, today, day, monthInView, onFocusDay, onBlurDay, onSelectDay, selected, focussedDayRef, inRange, showDaysOutsideMonth, disableDay, }) => {
|
|
5929
5964
|
const handleDayClick = () => {
|
|
@@ -6048,7 +6083,7 @@ const YearPicker = ({ decadeView, size, focussedYear, yearInView, onSelectYear,
|
|
|
6048
6083
|
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
6084
|
};
|
|
6050
6085
|
|
|
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(0px, 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}}";
|
|
6086
|
+
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
6087
|
var IcCalendarStyle0 = icCalendarCss;
|
|
6053
6088
|
|
|
6054
6089
|
const FOCUS_TIMER = 100;
|
|
@@ -9681,6 +9716,8 @@ class DataTable {
|
|
|
9681
9716
|
this.paginationBarOptions = {
|
|
9682
9717
|
alignment: "right",
|
|
9683
9718
|
hideAllFromItemsPerPage: false,
|
|
9719
|
+
hideCurrentPage: false,
|
|
9720
|
+
hideFirstAndLastPageButton: false,
|
|
9684
9721
|
hideRangeLabel: false,
|
|
9685
9722
|
itemLabel: "Item",
|
|
9686
9723
|
itemsPerPageOptions: [
|
|
@@ -10126,6 +10163,9 @@ class DataTable {
|
|
|
10126
10163
|
if (columnWidth.maxWidth) {
|
|
10127
10164
|
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-max-width"]: columnWidth.maxWidth });
|
|
10128
10165
|
}
|
|
10166
|
+
if (columnWidth.width) {
|
|
10167
|
+
columnWidthStyling = Object.assign(Object.assign({}, columnWidthStyling), { ["--column-width"]: columnWidth.width });
|
|
10168
|
+
}
|
|
10129
10169
|
}
|
|
10130
10170
|
return columnWidthStyling;
|
|
10131
10171
|
};
|
|
@@ -10924,26 +10964,26 @@ class DataTable {
|
|
|
10924
10964
|
? "deselect all"
|
|
10925
10965
|
: "select all remaining"
|
|
10926
10966
|
: "select all";
|
|
10927
|
-
return (hAsync(Host, { key: '
|
|
10967
|
+
return (hAsync(Host, { key: '5a54a8292fc31e31e968c76b21f957d6ed4665bb', style: Object.assign({}, this.setTableDimensions()), class: {
|
|
10928
10968
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
10929
10969
|
[`ic-data-table-show-pagination`]: !!showPagination,
|
|
10930
10970
|
[`ic-data-table-embedded`]: !!embedded,
|
|
10931
|
-
} }, hAsync("div", { key: '
|
|
10971
|
+
} }, hAsync("div", { key: '664f9b13c5c5f9b2a0323a870b7c96cfc8e2c45d', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '997ec993032c647aea11da288c2f2b19c5f69f8b', name: "title-bar" }), hAsync("div", { key: '35823b8f7cfeeaeab64dc248ef65c6c52762cf03', class: {
|
|
10932
10972
|
["table-row-container"]: true,
|
|
10933
10973
|
scrollable,
|
|
10934
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
|
10974
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '9b9c1bbf6ebcc08ca235f2637c95dc74bd49c3a1', style: {
|
|
10935
10975
|
"--table-layout": tableLayout,
|
|
10936
|
-
} }, hAsync("caption", { key: '
|
|
10976
|
+
} }, hAsync("caption", { key: 'f5acadc8976d3b474dab6d17c957553a384c348a', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: '4131acaa910add9c3f596f34c879b539e69e4c69', class: {
|
|
10937
10977
|
["column-header-sticky"]: stickyColumnHeaders,
|
|
10938
10978
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
|
10939
|
-
} }, hAsync("tr", { key: '
|
|
10979
|
+
} }, hAsync("tr", { key: 'ddf0b02e09b404800f07b86709812a8c719da333' }, rowSelection && data && (hAsync("th", { key: '3aa7cb15d490ea90a1c33959ff83987b244951f4', class: {
|
|
10940
10980
|
"column-header": true,
|
|
10941
10981
|
"checkbox-cell": true,
|
|
10942
10982
|
"updating-state-headers": updating && !loading,
|
|
10943
10983
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
|
10944
|
-
} }, hAsync("div", { key: '
|
|
10984
|
+
} }, 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 &&
|
|
10945
10985
|
!loading &&
|
|
10946
|
-
(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: '
|
|
10986
|
+
(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
|
|
10947
10987
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
10948
10988
|
sortedColumn} sorted ${sortedColumnOrder}`
|
|
10949
10989
|
: "table unsorted")))));
|
|
@@ -11084,7 +11124,7 @@ class DataTableTitleBar {
|
|
|
11084
11124
|
}; }
|
|
11085
11125
|
}
|
|
11086
11126
|
|
|
11087
|
-
var Clear$
|
|
11127
|
+
var Clear$2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11088
11128
|
<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"/>
|
|
11089
11129
|
</svg>
|
|
11090
11130
|
`;
|
|
@@ -12276,7 +12316,7 @@ class DateInput {
|
|
|
12276
12316
|
["hidden"]: isEmptyString(this.day) &&
|
|
12277
12317
|
isEmptyString(this.month) &&
|
|
12278
12318
|
isEmptyString(this.year),
|
|
12279
|
-
}, disabled: this.disabled, innerHTML: Clear$
|
|
12319
|
+
}, 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 }))));
|
|
12280
12320
|
}
|
|
12281
12321
|
static get delegatesFocus() { return true; }
|
|
12282
12322
|
get el() { return getElement(this); }
|
|
@@ -13431,6 +13471,10 @@ class Footer {
|
|
|
13431
13471
|
* If `true`, the footer will display the crown copyright at the bottom.
|
|
13432
13472
|
*/
|
|
13433
13473
|
this.copyright = true;
|
|
13474
|
+
/**
|
|
13475
|
+
* The text displayed for the copyright notice if `copyright` is `true`.
|
|
13476
|
+
*/
|
|
13477
|
+
this.copyrightText = "© Crown Copyright";
|
|
13434
13478
|
/**
|
|
13435
13479
|
* If `true`, the footer will be set up to handle link groups instead of standalone links.
|
|
13436
13480
|
*/
|
|
@@ -13488,13 +13532,13 @@ class Footer {
|
|
|
13488
13532
|
: false;
|
|
13489
13533
|
}
|
|
13490
13534
|
render() {
|
|
13491
|
-
const { aligned, caption, copyright, description, deviceSize, el, foregroundColor, groupLinks, } = this;
|
|
13535
|
+
const { aligned, caption, copyright, copyrightText, description, deviceSize, el, foregroundColor, groupLinks, } = this;
|
|
13492
13536
|
const small = this.isSmall();
|
|
13493
13537
|
const showComplianceSection = isSlotUsed$1(el, "logo") ||
|
|
13494
13538
|
isSlotUsed$1(el, "caption") ||
|
|
13495
13539
|
caption ||
|
|
13496
13540
|
copyright;
|
|
13497
|
-
return (hAsync(Host, { key: '
|
|
13541
|
+
return (hAsync(Host, { key: '6d91277fef5b4a25ebc1300c5f6c9697f7cf51db', class: {
|
|
13498
13542
|
["ic-footer"]: true,
|
|
13499
13543
|
[`ic-footer-${small ? "small" : "sparse"}`]: true,
|
|
13500
13544
|
[`ic-footer-${groupLinks ? "grouped" : "ungrouped"}`]: true,
|
|
@@ -13502,12 +13546,12 @@ class Footer {
|
|
|
13502
13546
|
// Slots will be able to infer their own color
|
|
13503
13547
|
[`ic-footer-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
|
13504
13548
|
[`ic-footer-${IcBrandForegroundEnum$1.Light}`]: foregroundColor === IcBrandForegroundEnum$1.Light,
|
|
13505
|
-
} }, hAsync("footer", { key: '
|
|
13549
|
+
} }, hAsync("footer", { key: 'ff497893502821b501404631d81a6c43282b1b36', ref: (el) => (this.footerEl = el) }, (isSlotUsed$1(el, "description") || description) && (hAsync("div", { key: 'f8d674674bba8dc6570a7352e943ba8ce97ef666', class: "footer-description" }, hAsync("ic-section-container", { key: 'd1c80f2b82c740b0ae5b3bfe55a42aa81ef631c9', aligned: aligned, fullHeight: true }, hAsync("div", { key: '669b78285fb7274a0f36ad4ffca2e6527bc7ee8f', class: "footer-description-inner" }, hAsync("ic-typography", { key: '0ef8cbc1311b48cfdc9fb0031802dfb3672e1bc0', variant: "body" }, hAsync("slot", { key: '3ea6f48d56500f8ee7711e53c4c4794c5c06bc84', name: "description" }, description)))))), isSlotUsed$1(el, "link") && (hAsync("div", { key: '3790b13ae7b820882d92d866ab946749f83515dc', class: "footer-links" }, groupLinks && small ? (hAsync("div", { class: "footer-links-inner", role: "list" }, hAsync("slot", { name: "link" }))) : (hAsync("ic-section-container", { fullHeight: true, aligned: aligned }, hAsync("div", { class: "footer-links-inner", role: "list" }, hAsync("slot", { name: "link" })))))), showComplianceSection && (hAsync("div", { key: 'bd4f9da66406e7587aadab57768e0f00d176f5f2', class: "footer-compliance" }, hAsync("ic-section-container", { key: '4b760604abdeb1096927ca72d8b8c53ab2128ea9', aligned: aligned, fullHeight: true }, hAsync("div", { key: '63f1d4b0009cf34f4f4492851f17653f2f2dba84', class: "footer-compliance-inner" }, isSlotUsed$1(el, "logo") && (hAsync("div", { key: '9b8f9f9983db8f0f8642e79e20906e337c7cf57d', class: "footer-logo" }, hAsync("slot", { key: 'faac7b5562c641bbb700514007e3ee6702e155df', name: "logo" }))), (isSlotUsed$1(el, "caption") || caption) && (hAsync("div", { key: 'a388c6b1549d5a5516e94f872ecb538f15b1102f', class: "footer-caption" }, hAsync("ic-typography", { key: '7e8a8e10983d31235ed8d90919d673f74d13bccb', variant: deviceSize <= IC_DEVICE_SIZES$1.M ? "caption" : "body" }, hAsync("slot", { key: '81152b67972243451c8e9b3c05b1e79d5ce1b7f1', name: "caption" }, caption)))), copyright && (hAsync("div", { key: '8f6480deac3ac1a31c0ad0e4a250c35cb07917eb', class: {
|
|
13506
13550
|
["footer-copyright"]: true,
|
|
13507
13551
|
["classification-spacing"]: hasClassificationBanner(),
|
|
13508
|
-
} }, hAsync("ic-typography", { key: '
|
|
13552
|
+
} }, hAsync("ic-typography", { key: 'e119f8f68ad5dc19a9e1020f8fabb52397fd0394', variant: deviceSize <= IC_DEVICE_SIZES$1.M
|
|
13509
13553
|
? "caption-uppercase"
|
|
13510
|
-
: "label-uppercase" },
|
|
13554
|
+
: "label-uppercase" }, copyrightText))))))))));
|
|
13511
13555
|
}
|
|
13512
13556
|
get el() { return getElement(this); }
|
|
13513
13557
|
static get style() { return IcFooterStyle0; }
|
|
@@ -13519,6 +13563,7 @@ class Footer {
|
|
|
13519
13563
|
"breakpoint": [1],
|
|
13520
13564
|
"caption": [1],
|
|
13521
13565
|
"copyright": [4],
|
|
13566
|
+
"copyrightText": [1, "copyright-text"],
|
|
13522
13567
|
"description": [1],
|
|
13523
13568
|
"groupLinks": [4, "group-links"],
|
|
13524
13569
|
"deviceSize": [32],
|
|
@@ -14002,7 +14047,7 @@ class HorizontalScroll {
|
|
|
14002
14047
|
}; }
|
|
14003
14048
|
}
|
|
14004
14049
|
|
|
14005
|
-
const icInputComponentContainerCss = "ic-input-component-container{display:flex;border:var(--ic-border-width) solid\n var(--border-color, var(--ic-architectural-400));border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-slow);height:2.5rem;min-height:2.5rem;width:var(--input-width, 20rem);padding:var(--ic-space-1px);background-color:var(--input-bg-color, var(--ic-color-background-primary));box-sizing:border-box;fill:var(--ic-architectural-400);outline:none}ic-input-component-container.ic-input-component-container-full-width{width:100
|
|
14050
|
+
const icInputComponentContainerCss = "ic-input-component-container{display:flex;border:var(--ic-border-width) solid\n var(--border-color, var(--ic-architectural-400));border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-slow);height:2.5rem;min-height:2.5rem;width:var(--input-width, 20rem);padding:var(--ic-space-1px);background-color:var(--input-bg-color, var(--ic-color-background-primary));box-sizing:border-box;fill:var(--ic-architectural-400);outline:none}ic-input-component-container.ic-input-component-container-full-width{width:100%;max-width:none}ic-input-component-container.ic-input-component-container-disabled,ic-input-component-container.ic-input-component-container-disabled:hover{border:var(--ic-border-width) dashed\n var(--border-color-disabled, var(--ic-color-border-neutral-disabled))}ic-input-component-container.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-small.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-large.ic-input-component-container-readonly{height:auto;background:transparent}ic-input-component-container.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-readonly:hover{border:none;padding:0}ic-input-component-container.ic-input-component-container-error{border:var(--ic-space-xxxs) solid\n var(--border-color-error, var(--ic-color-border-error));padding:0}ic-input-component-container.ic-input-component-container-error:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-error-hover, var(--ic-color-border-error-hover))}ic-input-component-container.ic-input-component-container-error:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-error-pressed, var(--ic-color-border-error-pressed))}ic-input-component-container.ic-input-component-container-warning{border:var(--ic-space-xxxs) solid\n var(--border-color-warning, var(--ic-color-border-warning));padding:0}ic-input-component-container.ic-input-component-container-warning:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-warning-hover, var(--ic-color-border-warning-hover))}ic-input-component-container.ic-input-component-container-warning:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-warning-pressed, var(--ic-color-border-warning-pressed))}ic-input-component-container.ic-input-component-container-success{border:var(--ic-space-xxxs) solid\n var(--border-color-success, var(--ic-color-border-success));padding:0}ic-input-component-container.ic-input-component-container-success:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-success-hover, var(--ic-color-border-success-hover))}ic-input-component-container.ic-input-component-container-success:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-success-pressed, var(--ic-color-border-success-pressed))}ic-input-component-container.ic-input-component-container-small{height:var(--ic-space-xl);min-height:var(--ic-space-xl)}ic-input-component-container.ic-input-component-container-large{height:var(--ic-space-xxl);min-height:var(--ic-space-xxl)}ic-input-component-container.ic-input-component-container-multiline{height:auto}ic-input-component-container .icon-container{margin-top:var(--ic-space-xxs);margin-left:0.438rem;display:flex;align-items:center}ic-input-component-container.ic-input-component-container-multiline .icon-container,ic-input-component-container.ic-input-component-container-multiline.ic-input-component-container-small .icon-container{margin-top:0.375rem;display:block}ic-input-component-container.ic-input-component-container-readonly .icon-container{margin-left:-0.313rem}ic-input-component-container.ic-input-component-container-disabled ::-moz-placeholder{display:none}ic-input-component-container.ic-input-component-container-disabled ::placeholder{display:none}ic-input-component-container .inline-success{margin:var(--ic-space-xs) 0.375rem;display:flex;align-items:center}ic-input-component-container .inline-success>svg{fill:var(--ic-input-component-container-success-icon-inline-color);height:1.25rem;width:1.25rem}ic-input-component-container:hover{border:var(--ic-input-component-container-hover-border);border-color:var(--border-color-hover, var(--ic-color-border-neutral-hover));color:var(--ic-action-monochrome-hover-dark)}ic-input-component-container:focus{border:var(--ic-border-pressed);border-color:var(\n --border-color-pressed,\n var(--ic-color-border-neutral-pressed)\n )}.focus-indicator{display:flex;width:100%;margin:-0.125rem;padding:0.125rem;border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.focus-indicator:focus-within,.focus-indicator-enabled{box-shadow:var(--ic-border-focus)}.focus-indicator.ic-input-component-container-dark:focus-within{box-shadow:var(--ic-border-focus)}@media (forced-colors: active){ic-input-component-container,.focus-indicator{transition:none}ic-input-component-container:focus-within{border:var(--ic-border-width) solid Highlight;outline:0.125rem solid Highlight}ic-input-component-container.ic-input-component-container-disabled,ic-input-component-container.ic-input-component-container-disabled:hover{border:var(--ic-border-width) dashed GrayText}}@media screen AND (max-width: 22rem){ic-input-component-container{max-width:var(--input-width, 20rem);width:100%}}";
|
|
14006
14051
|
var IcInputComponentContainerStyle0 = icInputComponentContainerCss;
|
|
14007
14052
|
|
|
14008
14053
|
/**
|
|
@@ -14219,7 +14264,7 @@ class InputLabel {
|
|
|
14219
14264
|
}; }
|
|
14220
14265
|
}
|
|
14221
14266
|
|
|
14222
|
-
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);display:flex}ic-input-validation.ic-input-validation-with-status{margin-top:var(--ic-space-xs)}ic-input-validation.ic-input-validation-full-width{width:100
|
|
14267
|
+
const icInputValidationCss = "ic-input-validation{max-width:var(--input-width, 20rem);display:flex}ic-input-validation.ic-input-validation-with-status{margin-top:var(--ic-space-xs)}ic-input-validation.ic-input-validation-full-width{width:100%;max-width:none}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-input-validation-success-icon-color)}ic-input-validation span.icon-error>svg{fill:var(--ic-input-validation-error, var(--ic-atoms-status-icon-error))}ic-input-validation span.icon-warning>svg{fill:var(--ic-input-validation-warning-icon-color)}ic-input-validation .statustext{flex-grow:1;color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n );--ic-typography-color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n )}ic-input-validation .sr-only{position:absolute;left:-9999px}";
|
|
14223
14268
|
var IcInputValidationStyle0 = icInputValidationCss;
|
|
14224
14269
|
|
|
14225
14270
|
const ICON = {
|
|
@@ -16701,7 +16746,7 @@ const sanitizeHTMLIconString = (html) => {
|
|
|
16701
16746
|
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
16702
16747
|
};
|
|
16703
16748
|
|
|
16704
|
-
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}}";
|
|
16749
|
+
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%}}";
|
|
16705
16750
|
var IcMenuStyle0 = icMenuCss;
|
|
16706
16751
|
|
|
16707
16752
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -18006,7 +18051,7 @@ class NavigationButton {
|
|
|
18006
18051
|
}; }
|
|
18007
18052
|
}
|
|
18008
18053
|
|
|
18009
|
-
const icNavigationGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-typography-color:currentcolor}:host(.in-side-menu){border-bottom:var(--ic-border-width) solid\n var(--ic-divider-background-monochrome);padding:var(--ic-space-md) 0}:host .navigation-group{height:100%;width:-moz-fit-content;width:fit-content;color:var(--ic-brand-text-color);display:flex;gap:var(--ic-space-xxs);align-items:center;justify-content:center;padding:0 var(--ic-space-md);transition:var(--ic-easing-transition-slow);position:relative;background:none;border:none;text-align:left;box-sizing:border-box}:host .navigation-group:hover,:host .navigation-group:active,:host .selected{background-color:var(--ic-architectural-20);color:var(--ic-color-text-primary-light);outline:none;cursor:pointer}:host(.in-side-menu) .navigation-group{min-height:2.5rem;width:100%;gap:1.25rem}:host(.in-side-menu) .navigation-group .ic-typography-label{width:100%}:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group,:host(.in-side-menu) .navigation-group-side-menu-collapsed,:host(.in-side-menu) .navigation-group-side-menu-expanded{color:var(--ic-top-navigation-nav-group-link);justify-content:flex-start;padding:var(--ic-space-xs) var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-expanded{margin-bottom:var(--ic-space-xs)}:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,:host(.in-side-menu) .navigation-group-side-menu-expanded::after{border-style:solid;border-width:0.125em 0.125em 0 0;content:\"\";display:inline-block;min-height:0.45em;position:relative;top:-0.1em;transform:rotate(135deg);vertical-align:top;min-width:0.45em}:host(.in-side-menu) .navigation-group-side-menu-expanded::after{top:0.15em;transform:rotate(-45deg)}:host(:not(.in-side-menu)) .navigation-group:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);z-index:var(--ic-z-index-navigation-item);transition:box-shadow var(--ic-easing-transition-fast)}:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus){background-color:var(--ic-top-navigation-nav-group-hover);cursor:pointer}:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus){background-color:var(--ic-top-navigation-nav-group-pressed)}:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);outline:var(--ic-hc-focus-outline);background:none}:host .navigation-group-dropdown{background-color:var(--ic-top-navigation-menu-background);border-bottom:var(--ic-space-1px) solid var(--ic-top-navigation-menu-border);position:absolute;left:0;right:0;padding:var(--ic-space-xs) var(--ic-space-md);box-shadow:0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);z-index:calc(var(--ic-z-index-navigation-item) - 1)}:host .navigation-group-dropdown-items-list{list-style:none;display:flex;flex-flow:column wrap;align-content:flex-start;padding-left:var(--ic-space-md);max-height:16.5rem}:host .chevron-toggle-icon-wrapper{display:flex;align-items:center}:host .chevron-toggle-icon-wrapper svg{transform:rotate(90deg);height:var(--ic-space-lg);width:var(--ic-space-lg)}:host .chevron-toggle-icon-closed svg{transform:rotate(-90deg)}:host(.ic-navigation-group-expanded) .grouped-links-wrapper{height:var(--navigation-child-items-height, auto) !important;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .link,:host(.ic-navigation-group-side-nav) ::slotted(a){height:var(--navigation-child-items-height, auto)}:host(.ic-navigation-group-collapsed) .grouped-links-wrapper{height:0;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .navigation-group{min-height:var(--navigation-group-height);height:-moz-fit-content;height:fit-content;min-width:100%;width:var(--navigation-group-width, auto);justify-content:var(--navigation-group-justify-content);padding:var(--ic-space-md) var(--navigation-group-expand-toggle-padding)\n var(--ic-space-xs) var(--ic-space-md)}:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group{padding-right:var(--ic-space-md)}:host(.ic-navigation-group-side-nav) .navigation-group:hover,:host(.ic-navigation-group-side-nav) .navigation-group:active,:host(.ic-navigation-group-side-nav) .selected{background-color:var(--navigation-group-hover);color:var(--navigation-group-text-hover)}:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group:hover,:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group:active,:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group:hover,:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group:active{background:none;cursor:auto}:host(.ic-navigation-group-side-nav) .navigation-group:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background:none}:host(.ic-navigation-group-side-nav) .ic-typography-caption{position:var(--navigation-group-title-position);left:var(--navigation-group-title-position-left)}";
|
|
18054
|
+
const icNavigationGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-typography-color:currentcolor}:host(.in-side-menu){border-bottom:var(--ic-border-width) solid\n var(--ic-divider-background-monochrome);padding:var(--ic-space-md) 0}:host .navigation-group{height:100%;width:-moz-fit-content;width:fit-content;color:var(--ic-brand-text-color);display:flex;gap:var(--ic-space-xxs);align-items:center;justify-content:center;padding:0 var(--ic-space-md);transition:var(--ic-easing-transition-slow);position:relative;background:none;border:none;text-align:left;box-sizing:border-box}:host .navigation-group:hover,:host .navigation-group:active,:host .selected{background-color:var(--ic-architectural-20);color:var(--ic-color-text-primary-light);outline:none;cursor:pointer}:host(.in-side-menu) .navigation-group{min-height:2.5rem;width:100%;gap:1.25rem}:host(.in-side-menu) .navigation-group .ic-typography-label{width:100%}:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group,:host(.in-side-menu) .navigation-group-side-menu-collapsed,:host(.in-side-menu) .navigation-group-side-menu-expanded{color:var(--ic-top-navigation-nav-group-link);justify-content:flex-start;padding:var(--ic-space-xs) var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-expanded{margin-bottom:var(--ic-space-xs)}:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,:host(.in-side-menu) .navigation-group-side-menu-expanded::after{border-style:solid;border-width:0.125em 0.125em 0 0;content:\"\";display:inline-block;min-height:0.45em;position:relative;top:-0.1em;transform:rotate(135deg);vertical-align:top;min-width:0.45em}:host(.in-side-menu) .navigation-group-side-menu-expanded::after{top:0.15em;transform:rotate(-45deg)}:host(:not(.in-side-menu)) .navigation-group:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);z-index:var(--ic-z-index-navigation-item);transition:box-shadow var(--ic-easing-transition-fast)}:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus){background-color:var(--ic-top-navigation-nav-group-hover);cursor:pointer}:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus){background-color:var(--ic-top-navigation-nav-group-pressed)}:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);outline:var(--ic-hc-focus-outline);background:none}:host .navigation-group-dropdown{background-color:var(--ic-top-navigation-menu-background);border-bottom:var(--ic-space-1px) solid var(--ic-top-navigation-menu-border);position:absolute;left:0;right:0;padding:var(--ic-space-xs) var(--ic-space-md);box-shadow:0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);z-index:calc(var(--ic-z-index-navigation-item) - 1)}:host .navigation-group-dropdown-items-list{list-style:none;display:flex;flex-flow:column wrap;align-content:flex-start;padding-left:var(--ic-space-md);max-height:16.5rem}:host .chevron-toggle-icon-wrapper{display:flex;align-items:center}:host .chevron-toggle-icon-wrapper svg{transform:rotate(90deg);height:var(--ic-space-lg);width:var(--ic-space-lg)}:host .chevron-toggle-icon-closed svg{transform:rotate(-90deg)}#nav-group-title{text-wrap:nowrap}:host(.in-side-menu) #nav-group-title{text-wrap:wrap}:host(.ic-navigation-group-side-nav) #nav-group-title{text-wrap:wrap}:host(.ic-navigation-group-expanded) .grouped-links-wrapper{height:var(--navigation-child-items-height, auto) !important;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .link,:host(.ic-navigation-group-side-nav) ::slotted(a){height:var(--navigation-child-items-height, auto)}:host(.ic-navigation-group-collapsed) .grouped-links-wrapper{height:0;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .navigation-group{min-height:var(--navigation-group-height);height:-moz-fit-content;height:fit-content;min-width:100%;width:var(--navigation-group-width, auto);justify-content:var(--navigation-group-justify-content);padding:var(--ic-space-md) var(--navigation-group-expand-toggle-padding)\n var(--ic-space-xs) var(--ic-space-md)}:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group{padding-right:var(--ic-space-md)}:host(.ic-navigation-group-side-nav) .navigation-group:hover,:host(.ic-navigation-group-side-nav) .navigation-group:active,:host(.ic-navigation-group-side-nav) .selected{background-color:var(--navigation-group-hover);color:var(--navigation-group-text-hover)}:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group:hover,:host(.ic-navigation-group-side-nav:not(.ic-navigation-group-expandable)) .navigation-group:active,:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group:hover,:host(.in-side-menu:not(.ic-navigation-group-expandable)) .navigation-group:active{background:none;cursor:auto}:host(.ic-navigation-group-side-nav) .navigation-group:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background:none}:host(.ic-navigation-group-side-nav) .ic-typography-caption{position:var(--navigation-group-title-position);left:var(--navigation-group-title-position-left)}";
|
|
18010
18055
|
var IcNavigationGroupStyle0 = icNavigationGroupCss;
|
|
18011
18056
|
|
|
18012
18057
|
const IC_NAVIGATION_ITEM = "ic-navigation-item";
|
|
@@ -18309,7 +18354,7 @@ class NavigationGroup {
|
|
|
18309
18354
|
}; }
|
|
18310
18355
|
}
|
|
18311
18356
|
|
|
18312
|
-
const icNavigationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap;--ic-typography-color:var(--navigation-link-colour)}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-page-header,.navigation-item-side-menu,.navigation-item-top-nav-child)) ::slotted(a:hover:not(:focus)),:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){color:var(--ic-color-text-primary);--ic-typography-color:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:calc(100% - var(--ic-space-xl));min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
|
18357
|
+
const icNavigationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap;--ic-typography-color:var(--navigation-link-colour)}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-page-header,.navigation-item-side-menu,.navigation-item-top-nav-child)) ::slotted(a:hover:not(:focus)),:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:calc(100% - var(--ic-space-xl));min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow);--ic-typography-color:var(--ic-color-text-primary)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
|
18313
18358
|
var IcNavigationItemStyle0 = icNavigationItemCss;
|
|
18314
18359
|
|
|
18315
18360
|
/**
|
|
@@ -18899,6 +18944,10 @@ class Pagination {
|
|
|
18899
18944
|
this.midItems = [];
|
|
18900
18945
|
this.startEllipsis = false;
|
|
18901
18946
|
this.startItems = [];
|
|
18947
|
+
/**
|
|
18948
|
+
* The accessible label of the pagination component to provide context for screen reader users.
|
|
18949
|
+
*/
|
|
18950
|
+
this.accessibleLabel = "Pagination Navigation";
|
|
18902
18951
|
/**
|
|
18903
18952
|
* The number of pages displayed adjacent to the current page when using 'complex' type pagination. Accepted values are 0, 1 & 2.
|
|
18904
18953
|
*/
|
|
@@ -19129,14 +19178,14 @@ class Pagination {
|
|
|
19129
19178
|
}
|
|
19130
19179
|
render() {
|
|
19131
19180
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
19132
|
-
return (hAsync(Host, { key: '
|
|
19181
|
+
return (hAsync(Host, { key: '206014fa2aa2c61bb9535e4de4fa5bf756bd318c', class: {
|
|
19133
19182
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
19134
19183
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
19135
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
|
19184
|
+
} }, type === "simple" && (hAsync("nav", { key: '8544b88d593c806867e0bd49cb0624a684dec271', class: {
|
|
19136
19185
|
["disabled"]: !!disabled,
|
|
19137
|
-
}, role: "navigation", "aria-label":
|
|
19186
|
+
}, 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: {
|
|
19138
19187
|
["disabled"]: !!disabled,
|
|
19139
|
-
}, role: "navigation", "aria-label":
|
|
19188
|
+
}, 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))));
|
|
19140
19189
|
}
|
|
19141
19190
|
get el() { return getElement(this); }
|
|
19142
19191
|
static get watchers() { return {
|
|
@@ -19152,6 +19201,7 @@ class Pagination {
|
|
|
19152
19201
|
"$flags$": 9,
|
|
19153
19202
|
"$tagName$": "ic-pagination",
|
|
19154
19203
|
"$members$": {
|
|
19204
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
19155
19205
|
"adjacentPageCount": [1026, "adjacent-page-count"],
|
|
19156
19206
|
"boundaryPageCount": [1026, "boundary-page-count"],
|
|
19157
19207
|
"defaultPage": [2, "default-page"],
|
|
@@ -19194,6 +19244,10 @@ class PaginationBar {
|
|
|
19194
19244
|
this.itemsPerPageString = "10";
|
|
19195
19245
|
this.lowerBound = 1;
|
|
19196
19246
|
this.paginationWrapped = false;
|
|
19247
|
+
/**
|
|
19248
|
+
* The accessible label passed down to the pagination component to provide context for screen reader users.
|
|
19249
|
+
*/
|
|
19250
|
+
this.accessibleLabel = "Pagination Navigation";
|
|
19197
19251
|
/**
|
|
19198
19252
|
* Sets the alignment of the items in the pagination bar.
|
|
19199
19253
|
*/
|
|
@@ -19206,6 +19260,14 @@ class PaginationBar {
|
|
|
19206
19260
|
* If `true`, the 'All' option will be hidden from the 'items per page' select input.
|
|
19207
19261
|
*/
|
|
19208
19262
|
this.hideAllFromItemsPerPage = false;
|
|
19263
|
+
/**
|
|
19264
|
+
* If `true`, the current page of the simple pagination will not be displayed.
|
|
19265
|
+
*/
|
|
19266
|
+
this.hideCurrentPage = false;
|
|
19267
|
+
/**
|
|
19268
|
+
* If `true`, the first and last page buttons will not be displayed.
|
|
19269
|
+
*/
|
|
19270
|
+
this.hideFirstAndLastPageButton = false;
|
|
19209
19271
|
/**
|
|
19210
19272
|
* The text which will be used in place of 'Item' on the pagination bar.
|
|
19211
19273
|
*/
|
|
@@ -19513,22 +19575,22 @@ class PaginationBar {
|
|
|
19513
19575
|
this.changePage(page);
|
|
19514
19576
|
}
|
|
19515
19577
|
render() {
|
|
19516
|
-
const { alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, theme, monochrome, selectItemsPerPageOnEnter, } = this;
|
|
19517
|
-
return (hAsync(Host, { key: '
|
|
19578
|
+
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;
|
|
19579
|
+
return (hAsync(Host, { key: 'b4156a3e8ea25f4e3c63b6806a132998acc4d413', class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'cdbb0088e57c64438cdf78d82a09f022321a6e79', class: {
|
|
19518
19580
|
["pagination-bar"]: true,
|
|
19519
19581
|
[`pagination-bar-${alignment}`]: true,
|
|
19520
|
-
}, ref: (el) => (this.paginationBarEl = el) }, (!hideRangeLabel || showItemsPerPageControl) && (hAsync("div", { key: '
|
|
19582
|
+
}, 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: {
|
|
19521
19583
|
["items-per-page-control-label"]: true,
|
|
19522
|
-
}, variant: "label", onClick: this.itemsPerPageLabelClickHandler }, capitalizedItemLabel, "s per ", lowerCasePageLabel), hAsync("ic-select", { key: '
|
|
19584
|
+
}, 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 &&
|
|
19523
19585
|
(rangeLabelType === "data" ? (hAsync("ic-typography", { class: {
|
|
19524
19586
|
["item-pagination-label"]: true,
|
|
19525
19587
|
}, variant: "label", "aria-live": "polite" }, this.upperBound === 0 && `0 ${lowerCaseItemLabel}s`, this.upperBound > 0 &&
|
|
19526
19588
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
|
19527
19589
|
["page-pagination-label"]: true,
|
|
19528
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: '
|
|
19590
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { key: 'a781f60abd8da11927f5e3686926113f638936ad', class: {
|
|
19529
19591
|
["pagination-controls"]: true,
|
|
19530
19592
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
|
19531
|
-
} }, hAsync("div", { key: '
|
|
19593
|
+
} }, 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")))))));
|
|
19532
19594
|
}
|
|
19533
19595
|
get el() { return getElement(this); }
|
|
19534
19596
|
static get watchers() { return {
|
|
@@ -19545,10 +19607,13 @@ class PaginationBar {
|
|
|
19545
19607
|
"$flags$": 9,
|
|
19546
19608
|
"$tagName$": "ic-pagination-bar",
|
|
19547
19609
|
"$members$": {
|
|
19610
|
+
"accessibleLabel": [1, "accessible-label"],
|
|
19548
19611
|
"alignment": [1],
|
|
19549
19612
|
"currentPage": [2, "current-page"],
|
|
19550
19613
|
"selectedItemsPerPage": [2, "selected-items-per-page"],
|
|
19551
19614
|
"hideAllFromItemsPerPage": [4, "hide-all-from-items-per-page"],
|
|
19615
|
+
"hideCurrentPage": [4, "hide-current-page"],
|
|
19616
|
+
"hideFirstAndLastPageButton": [4, "hide-first-and-last-page-button"],
|
|
19552
19617
|
"itemLabel": [1, "item-label"],
|
|
19553
19618
|
"itemsPerPageOptions": [16],
|
|
19554
19619
|
"monochrome": [4],
|
|
@@ -19989,7 +20054,7 @@ class PopoverMenu {
|
|
|
19989
20054
|
}; }
|
|
19990
20055
|
}
|
|
19991
20056
|
|
|
19992
|
-
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label
|
|
20057
|
+
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}:host ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}:host ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}:host ic-input-validation.show-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation.show-validation{margin-top:calc(var(--ic-space-sm) / 2)}:host ic-input-label:not(.with-helper) .ic-typography-label,:host ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}:host ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
|
19993
20058
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
|
19994
20059
|
|
|
19995
20060
|
/**
|
|
@@ -20271,7 +20336,7 @@ class RadioGroup {
|
|
|
20271
20336
|
}; }
|
|
20272
20337
|
}
|
|
20273
20338
|
|
|
20274
|
-
const icRadioOptionCss = "/*! 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}ic-radio-option{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.additional-field-wrapper [slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}ic-radio-option.ic-radio-option-disabled,ic-radio-option.ic-radio-option-disabled .radio-label{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.container input:focus+span.checkmark,.container:hover input:focus+span.checkmark,.container:active input:focus+span.checkmark,:host(:focus) .container input:checked+span.checkmark{box-shadow:var(--ic-border-focus)}.container{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.ic-radio-group-small .container{margin:0 0 0 var(--ic-space-xxs)}.container.disabled,.container.disabled input:disabled{cursor:default}.container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.ic-radio-group-small .container input{height:var(--ic-space-md);width:var(--ic-space-md)}.checkmark{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.ic-radio-group-small .checkmark{height:var(--ic-space-md);width:var(--ic-space-md)}.container input:checked~.checkmark::after{display:inline-block}.container:hover input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.container:hover input:checked~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.container:hover:not(.disabled) input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-hover)}.container:active input~.checkmark{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.container:active input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.ic-radio-group-small .container input:checked~.checkmark{border-width:var(--ic-space-1px)}.container:active input:checked~.checkmark::after{background-color:var(--ic-radio-button-default-pressed)}.container input:checked~.checkmark{border:0.125rem solid var(--ic-radio-button-default-active)}.container input:checked:disabled~.checkmark{border:0.125rem solid var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.container input:disabled~.checkmark::after{background:var(--ic-radio-button-disabled)}.container:hover input:disabled~.checkmark{box-shadow:none;border:0.125rem solid none}.container:active input:disabled~.checkmark::after{background-color:var(--ic-radio-button-disabled)}.container .checkmark::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.ic-radio-group-small .container .checkmark::after{top:50%;left:50%;width:0.625rem;height:0.625rem;border-radius:50%;background:var(--ic-radio-button-default-active);transform:translate(-50%, -50%)}.radio-label{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.ic-radio-group-small .radio-label{margin-left:var(--ic-space-xs)}.additional-field-wrapper{margin-left:var(--ic-space-xs)}.branch-corner{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.dynamic-container{display:flex;position:relative;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.ic-radio-group-small .dynamic-container{margin-left:12px}.dynamic-container.hidden{display:none}.dynamic-text{color:var(--ic-radio-button-required-text);--ic-typography-color:var(--ic-radio-button-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){ic-text-field{--input-width:100%}}@media (forced-colors: active){.container input:checked~.checkmark,.container:active input:checked~.checkmark{border-color:Highlight}.container input:checked~.checkmark::after,.container:active input:checked~.checkmark::after{background-color:Highlight}.container input:disabled~.checkmark,.container input:checked:disabled~.checkmark{border-color:GrayText}.container input:disabled~.checkmark::after,.container:active input:disabled~.checkmark::after{background-color:GrayText}}input[type=\"radio\"]:dir(rtl){right:0}.radio-label:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.branch-corner:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.dynamic-container:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
20339
|
+
const icRadioOptionCss = "html.sc-ic-radio-option{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-radio-option{margin:0}main.sc-ic-radio-option{display:block}h1.sc-ic-radio-option{font-size:2em;margin:0.67em 0}hr.sc-ic-radio-option{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-radio-option{font-family:monospace, monospace;font-size:1em}a.sc-ic-radio-option{background-color:transparent}abbr[title].sc-ic-radio-option{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-radio-option,strong.sc-ic-radio-option{font-weight:bolder}code.sc-ic-radio-option,kbd.sc-ic-radio-option,samp.sc-ic-radio-option{font-family:monospace, monospace;font-size:1em}small.sc-ic-radio-option{font-size:80%}sub.sc-ic-radio-option,sup.sc-ic-radio-option{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-radio-option{bottom:-0.25em}sup.sc-ic-radio-option{top:-0.5em}img.sc-ic-radio-option{border-style:none}button.sc-ic-radio-option,input.sc-ic-radio-option,optgroup.sc-ic-radio-option,select.sc-ic-radio-option,textarea.sc-ic-radio-option{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-radio-option,input.sc-ic-radio-option{overflow:visible}button.sc-ic-radio-option,select.sc-ic-radio-option{text-transform:none}button.sc-ic-radio-option,[type=\"button\"].sc-ic-radio-option,[type=\"reset\"].sc-ic-radio-option,[type=\"submit\"].sc-ic-radio-option{-webkit-appearance:button}button.sc-ic-radio-option::-moz-focus-inner,[type=\"button\"].sc-ic-radio-option::-moz-focus-inner,[type=\"reset\"].sc-ic-radio-option::-moz-focus-inner,[type=\"submit\"].sc-ic-radio-option::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-radio-option:-moz-focusring,[type=\"button\"].sc-ic-radio-option:-moz-focusring,[type=\"reset\"].sc-ic-radio-option:-moz-focusring,[type=\"submit\"].sc-ic-radio-option:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-radio-option{padding:0.35em 0.75em 0.625em}legend.sc-ic-radio-option{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-radio-option{vertical-align:baseline}textarea.sc-ic-radio-option{overflow:auto}[type=\"checkbox\"].sc-ic-radio-option,[type=\"radio\"].sc-ic-radio-option{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-radio-option::-webkit-inner-spin-button,[type=\"number\"].sc-ic-radio-option::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-radio-option{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-radio-option::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-radio-option::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-radio-option{display:block}summary.sc-ic-radio-option{display:list-item}template.sc-ic-radio-option{display:none}[hidden].sc-ic-radio-option{display:none}html.sc-ic-radio-option,body.sc-ic-radio-option,div.sc-ic-radio-option,span.sc-ic-radio-option,applet.sc-ic-radio-option,object.sc-ic-radio-option,iframe.sc-ic-radio-option,h1.sc-ic-radio-option,h2.sc-ic-radio-option,h3.sc-ic-radio-option,h4.sc-ic-radio-option,h5.sc-ic-radio-option,h6.sc-ic-radio-option,p.sc-ic-radio-option,blockquote.sc-ic-radio-option,pre.sc-ic-radio-option,a.sc-ic-radio-option,abbr.sc-ic-radio-option,acronym.sc-ic-radio-option,address.sc-ic-radio-option,big.sc-ic-radio-option,cite.sc-ic-radio-option,code.sc-ic-radio-option,del.sc-ic-radio-option,dfn.sc-ic-radio-option,em.sc-ic-radio-option,img.sc-ic-radio-option,ins.sc-ic-radio-option,kbd.sc-ic-radio-option,q.sc-ic-radio-option,s.sc-ic-radio-option,samp.sc-ic-radio-option,small.sc-ic-radio-option,strike.sc-ic-radio-option,strong.sc-ic-radio-option,sub.sc-ic-radio-option,sup.sc-ic-radio-option,tt.sc-ic-radio-option,var.sc-ic-radio-option,b.sc-ic-radio-option,u.sc-ic-radio-option,i.sc-ic-radio-option,center.sc-ic-radio-option,dl.sc-ic-radio-option,dt.sc-ic-radio-option,dd.sc-ic-radio-option,ol.sc-ic-radio-option,ul.sc-ic-radio-option,li.sc-ic-radio-option,fieldset.sc-ic-radio-option,form.sc-ic-radio-option,label.sc-ic-radio-option,legend.sc-ic-radio-option,table.sc-ic-radio-option,caption.sc-ic-radio-option,tbody.sc-ic-radio-option,tfoot.sc-ic-radio-option,thead.sc-ic-radio-option,tr.sc-ic-radio-option,th.sc-ic-radio-option,td.sc-ic-radio-option,article.sc-ic-radio-option,aside.sc-ic-radio-option,canvas.sc-ic-radio-option,details.sc-ic-radio-option,embed.sc-ic-radio-option,figure.sc-ic-radio-option,figcaption.sc-ic-radio-option,footer.sc-ic-radio-option,header.sc-ic-radio-option,hgroup.sc-ic-radio-option,menu.sc-ic-radio-option,nav.sc-ic-radio-option,output.sc-ic-radio-option,ruby.sc-ic-radio-option,section.sc-ic-radio-option,summary.sc-ic-radio-option,time.sc-ic-radio-option,mark.sc-ic-radio-option,audio.sc-ic-radio-option,video.sc-ic-radio-option{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}.sc-ic-radio-option-h{display:flex;flex-direction:column;width:-moz-fit-content;width:fit-content}.sc-ic-radio-option-h .additional-field-wrapper-static.sc-ic-radio-option-s>[slot=\"additional-field\"]{margin-top:calc(var(--ic-space-sm) / 2);margin-left:var(--ic-space-xl)}.ic-radio-option-disabled.sc-ic-radio-option-h,.ic-radio-option-disabled.sc-ic-radio-option-h .radio-label.sc-ic-radio-option{--ic-typography-color:var(--ic-radio-button-text-option-disabled)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:focus+span.checkmark.sc-ic-radio-option,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:hover input.sc-ic-radio-option:focus+span.checkmark.sc-ic-radio-option,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:focus+span.checkmark.sc-ic-radio-option,.sc-ic-radio-option-h:focus .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked+span.checkmark.sc-ic-radio-option{box-shadow:var(--ic-border-focus)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option{display:grid;grid-template-columns:min-content auto;position:relative;cursor:pointer;align-items:center;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-xxs)}.ic-radio-option-small.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option{margin:0 0 0 var(--ic-space-xxs)}.sc-ic-radio-option-h .radio-option-container.disabled.sc-ic-radio-option,.sc-ic-radio-option-h .radio-option-container.disabled.sc-ic-radio-option input.sc-ic-radio-option:disabled{cursor:default}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block;position:absolute;cursor:pointer;height:var(--ic-space-lg);width:var(--ic-space-lg);border-radius:50%;border:none}.ic-radio-option-small.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option{height:var(--ic-space-md);width:var(--ic-space-md)}.sc-ic-radio-option-h .checkmark.sc-ic-radio-option{display:block;position:relative;top:0;left:0;height:var(--ic-space-lg);width:var(--ic-space-lg);background-color:var(--ic-radio-button-background-default);border:var(--ic-space-1px) solid var(--ic-radio-button-border-default);border-radius:50%;transition:var(--ic-easing-transition-fast);box-sizing:border-box}.ic-radio-option-small.sc-ic-radio-option-h .checkmark.sc-ic-radio-option{height:var(--ic-space-md);width:var(--ic-space-md)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option::after{display:inline-block}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:hover input.sc-ic-radio-option~.checkmark.sc-ic-radio-option{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:var(--ic-border-width) solid var(--ic-radio-button-default-hover)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:hover input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-hover);border:0.125rem solid var(--ic-radio-button-default-hover)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:hover:not(.disabled) input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option::after{background-color:var(--ic-radio-button-default-hover)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option~.checkmark.sc-ic-radio-option{box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed);border:var(--ic-border-width) solid var(--ic-radio-button-default-pressed)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option{border:0.125rem solid var(--ic-radio-button-default-pressed);box-shadow:0 0 0 0.25rem var(--ic-radio-button-active-pressed)}.ic-radio-option-small.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option{border-width:var(--ic-space-1px)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option::after{background-color:var(--ic-radio-button-default-pressed)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option{border:0.125rem solid var(--ic-radio-button-default-active)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked:disabled~.checkmark.sc-ic-radio-option{border:0.125rem solid var(--ic-radio-button-border-disabled)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option{border:var(--ic-border-width) dashed var(--ic-radio-button-border-disabled)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option::after{background:var(--ic-radio-button-disabled)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:hover input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option{box-shadow:none;border:0.125rem solid none}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option::after{background-color:var(--ic-radio-button-disabled)}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option .checkmark.sc-ic-radio-option::after{content:\"\";position:absolute;display:none;top:calc(50% - var(--ic-space-xs));left:calc(50% - var(--ic-space-xs));width:var(--ic-space-md);height:var(--ic-space-md);border-radius:50%;background:var(--ic-radio-button-default-active)}.ic-radio-option-small.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option .checkmark.sc-ic-radio-option::after{top:50%;left:50%;width:0.625rem;height:0.625rem;border-radius:50%;background:var(--ic-radio-button-default-active);transform:translate(-50%, -50%)}.sc-ic-radio-option-h .radio-label.sc-ic-radio-option{margin-left:var(--ic-space-md);--ic-typography-color:var(--ic-radio-button-text-option)}.ic-radio-option-small.sc-ic-radio-option-h .radio-label.sc-ic-radio-option{margin-left:var(--ic-space-xs)}.sc-ic-radio-option-h .additional-field-wrapper-static.sc-ic-radio-option{margin-left:var(--ic-space-xs)}.sc-ic-radio-option-h .branch-corner.sc-ic-radio-option{color:var(--ic-radio-button-required-bar);height:var(--ic-space-md);width:var(--ic-space-xl);border-radius:0 0 0 0.188rem;border-bottom:0.125rem solid var(--ic-radio-button-required-bar);border-left:0.125rem solid var(--ic-radio-button-required-bar);margin-left:calc(-1 * var(--ic-space-1px))}.sc-ic-radio-option-h .dynamic-container.sc-ic-radio-option{display:flex;position:relative;margin:var(--ic-space-xxs) 0 var(--ic-space-xxs) var(--ic-space-md);gap:var(--ic-space-xs)}.ic-radio-option-small.sc-ic-radio-option-h .dynamic-container.sc-ic-radio-option{margin-left:12px}.sc-ic-radio-option-h .dynamic-container.hidden.sc-ic-radio-option{display:none}.sc-ic-radio-option-h .dynamic-text.sc-ic-radio-option{color:var(--ic-radio-button-required-text);--ic-typography-color:var(--ic-radio-button-required-text);margin-top:calc(var(--ic-space-sm) / 2);margin-bottom:var(--ic-space-xs);border-radius:2%}@media (max-width: 576px){.sc-ic-radio-option-h .additional-field-wrapper-dynamic.sc-ic-radio-option-s>ic-text-field,.sc-ic-radio-option-h .additional-field-wrapper-static.sc-ic-radio-option-s>ic-text-field{--input-width:100%}}@media (forced-colors: active){.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option{border-color:Highlight}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option::after,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:checked~.checkmark.sc-ic-radio-option::after{background-color:Highlight}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:checked:disabled~.checkmark.sc-ic-radio-option{border-color:GrayText}.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option::after,.sc-ic-radio-option-h .radio-option-container.sc-ic-radio-option:active input.sc-ic-radio-option:disabled~.checkmark.sc-ic-radio-option::after{background-color:GrayText}}.sc-ic-radio-option-h input[type=\"radio\"].sc-ic-radio-option:dir(rtl){right:0}.sc-ic-radio-option-h .radio-label.sc-ic-radio-option:dir(rtl){padding-right:var(--ic-space-sm);padding-left:0}.sc-ic-radio-option-h .branch-corner.sc-ic-radio-option:dir(rtl){border-radius:0 0 0.188rem;border-right:0.125rem solid var(--ic-action-default);border-left:none}.sc-ic-radio-option-h .dynamic-container.sc-ic-radio-option:dir(rtl){margin:var(--ic-space-xxxs) var(--ic-space-sm) var(--ic-space-xxs) 0}";
|
|
20275
20340
|
var IcRadioOptionStyle0 = icRadioOptionCss;
|
|
20276
20341
|
|
|
20277
20342
|
const ADDITIONAL_FIELD = "additional-field";
|
|
@@ -20414,17 +20479,20 @@ class RadioOption {
|
|
|
20414
20479
|
return additionalField;
|
|
20415
20480
|
}
|
|
20416
20481
|
render() {
|
|
20482
|
+
var _a, _b;
|
|
20417
20483
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
|
20418
20484
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
|
20419
|
-
return (hAsync(Host, { key: '
|
|
20485
|
+
return (hAsync(Host, { key: '0a7177993a68c85ed54198b8ee213811aa2e130a', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
|
20420
20486
|
["ic-radio-option-disabled"]: !!disabled,
|
|
20421
20487
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
20422
|
-
|
|
20488
|
+
["ic-radio-option-small"]: ((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === "IC-RADIO-GROUP" &&
|
|
20489
|
+
((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.className.includes("ic-radio-group-small")),
|
|
20490
|
+
} }, hAsync("div", { key: '64bac9a6440919352131dc732648034a90d7e92e', class: { "radio-option-container": true, disabled: !!disabled } }, hAsync("div", { key: '419dc17817ca4c9945025268e0e00de83db01790' }, hAsync("input", { key: '0885bab10d42cd69eda2e0d78702c6c2afcff615', tabindex: selected ? "0" : "-1", type: "radio", name: name, id: id, value: value, disabled: disabled, checked: selected, ref: (el) => (this.radioElement = el), form: form }), hAsync("span", { key: 'df142dc79e23d240abd15f5088d703b6d388456b', class: "checkmark" })), hAsync("ic-typography", { key: '4d5a779bbef4ccb65fbe7ebf6b3aeceafb9227e0', class: "radio-label", variant: "body" }, hAsync("label", { key: '6d2778eb36c462f3c7fa25ed9ae5d8733b0fcb20', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: '9772fd4d064854c3db492f430b90098eccd13701', class: {
|
|
20423
20491
|
"dynamic-container": true,
|
|
20424
20492
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
|
20425
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
|
20426
|
-
|
|
20427
|
-
} }, hAsync("slot", { key: '
|
|
20493
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: 'a237b8043bf912d5fb1be67014ae0bde41c5a2a4', class: "branch-corner" })), hAsync("div", { key: '70524014fa4d75197460d321f47824ab20503806' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '2f652884ff6ac334fd6cb688e52d05d0bdabf3de', variant: "caption", role: "alert" }, hAsync("p", { key: '36cc2915b063c8d85e61dd18a3c384460b996d4f', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: 'd8386ddb6c70fd7893544d3c6d1720b349bb378b', class: {
|
|
20494
|
+
[`additional-field-wrapper-${additionalFieldDisplay}`]: true,
|
|
20495
|
+
} }, hAsync("slot", { key: 'f9b72315938873b57c52af87730ee72b24a413af', name: ADDITIONAL_FIELD })))))));
|
|
20428
20496
|
}
|
|
20429
20497
|
get el() { return getElement(this); }
|
|
20430
20498
|
static get watchers() { return {
|
|
@@ -20433,7 +20501,7 @@ class RadioOption {
|
|
|
20433
20501
|
}; }
|
|
20434
20502
|
static get style() { return IcRadioOptionStyle0; }
|
|
20435
20503
|
static get cmpMeta() { return {
|
|
20436
|
-
"$flags$":
|
|
20504
|
+
"$flags$": 6,
|
|
20437
20505
|
"$tagName$": "ic-radio-option",
|
|
20438
20506
|
"$members$": {
|
|
20439
20507
|
"additionalFieldDisplay": [513, "additional-field-display"],
|
|
@@ -20465,7 +20533,7 @@ var searchIcon = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xm
|
|
|
20465
20533
|
<path d="M13.1292 11.8792H12.4708L12.2375 11.6542C13.0542 10.7042 13.5458 9.47083 13.5458 8.12916C13.5458 5.13749 11.1208 2.71249 8.12916 2.71249C5.13749 2.71249 2.71249 5.13749 2.71249 8.12916C2.71249 11.1208 5.13749 13.5458 8.12916 13.5458C9.47083 13.5458 10.7042 13.0542 11.6542 12.2375L11.8792 12.4708V13.1292L16.0458 17.2875L17.2875 16.0458L13.1292 11.8792ZM8.12916 11.8792C6.05416 11.8792 4.37916 10.2042 4.37916 8.12916C4.37916 6.05416 6.05416 4.37916 8.12916 4.37916C10.2042 4.37916 11.8792 6.05416 11.8792 8.12916C11.8792 10.2042 10.2042 11.8792 8.12916 11.8792Z" fill="currentColor"/>
|
|
20466
20534
|
</svg>`;
|
|
20467
20535
|
|
|
20468
|
-
const icSearchBarCss = "/*! 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-search-bar-search){display:block;--divider-height:1.5rem;--ic-input-label-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-search-bar-outline);--input-bg-color:var(--ic-search-bar-background);--border-color-disabled:var(--ic-search-bar-outline-disabled);--menu-item-text-color:var(--ic-search-bar-dropdown-option-text);--menu-item-desc-text-color:var(--ic-search-bar-dropdown-option-description);--menu-bg-color:var(--ic-search-bar-dropdown-background);--menu-border-color:var(--ic-search-bar-dropdown-outline)}:host(.ic-search-bar-disabled){--ic-input-label-text-color:var(--ic-search-bar-label-disabled);--ic-input-label-helper-text-color:var(--ic-search-bar-subtitle-disabled)}:host(.ic-search-bar-search:hover){--border-color:var(--ic-search-bar-outline-hover)}:host(.ic-search-bar-search:active){--border-color:var(--ic-search-bar-outline-pressed)}:host(.ic-search-bar-search.ic-search-bar-small){--divider-height:1rem}:host(.ic-search-bar-full-width){width:100%}::-moz-placeholder{color:var(--ic-search-bar-placeholder-text);opacity:1}::placeholder{color:var(--ic-search-bar-placeholder-text);opacity:1}input{border:0;border-radius:var(--ic-border-radius);color:var(--ic-search-bar-filled-text);background-color:var(--input-bg-color);line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(--ic-search-bar-filled-text-cursor)}input:focus{border:0;outline:0}input:disabled::-moz-placeholder{color:var(--ic-search-bar-disabled-text)}input:disabled,input:disabled::placeholder{color:var(--ic-search-bar-disabled-text)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.no-left-pad{padding-left:0}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clear-button-container{align-items:center;margin-right:var(--ic-space-1px);display:none;visibility:hidden}.clear-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button-unfocused *{fill:var(--ic-search-bar-clear-button)}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button-visible{visibility:visible;display:flex}.search-submit-button-container{display:flex;align-items:center}.search-submit-button-unfocused *{fill:var(--ic-search-bar-filled-icon)}.search-submit-button-disabled *{fill:var(--ic-search-bar-icon-disabled)}.search-submit-button-disabled .ic-tooltip-container{display:none !important}.search-submit-button:focus,.search-submit-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:var(--ic-space-xxs)}.search-submit-button:focus,.search-submit-button:active *{fill:white}.divider{width:var(--ic-border-width);background-color:var(--ic-search-bar-dropdown-divider);height:var(--divider-height)}.menu-container{width:var(--input-width, 20rem);position:relative;top:var(--ic-space-xxxs)}.menu-container.fullwidth{width:100%}.no-results{cursor:not-allowed}.search-results-status{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);margin-bottom:calc(-1 * var(--ic-space-1px));margin-right:calc(-1 * var(--ic-space-1px));overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}@media (forced-colors: active){.search-submit-button-unfocused *{fill:canvastext}.search-submit-button-disabled *{fill:GrayText}}";
|
|
20536
|
+
const icSearchBarCss = "/*! 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-search-bar-search){display:block;--divider-height:1.5rem;--ic-input-label-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-search-bar-outline);--input-bg-color:var(--ic-search-bar-background);--border-color-disabled:var(--ic-search-bar-outline-disabled);--menu-item-text-color:var(--ic-search-bar-dropdown-option-text);--menu-item-desc-text-color:var(--ic-search-bar-dropdown-option-description);--menu-bg-color:var(--ic-search-bar-dropdown-background);--menu-border-color:var(--ic-search-bar-dropdown-outline)}:host(.ic-search-bar-disabled){--ic-input-label-text-color:var(--ic-search-bar-label-disabled);--ic-input-label-helper-text-color:var(--ic-search-bar-subtitle-disabled)}:host(.ic-search-bar-search:hover){--border-color:var(--ic-search-bar-outline-hover)}:host(.ic-search-bar-search:active){--border-color:var(--ic-search-bar-outline-pressed)}:host(.ic-search-bar-search.ic-search-bar-small){--divider-height:1rem}:host(.ic-search-bar-full-width){width:100%}::-moz-placeholder{color:var(--ic-search-bar-placeholder-text);opacity:1}::placeholder{color:var(--ic-search-bar-placeholder-text);opacity:1}input{border:0;border-radius:var(--ic-border-radius);color:var(--ic-search-bar-filled-text);background-color:var(--input-bg-color);line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs);caret-color:var(--ic-search-bar-filled-text-cursor)}input:focus{border:0;outline:0}input:disabled::-moz-placeholder{color:var(--ic-search-bar-disabled-text)}input:disabled,input:disabled::placeholder{color:var(--ic-search-bar-disabled-text)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.no-left-pad{padding-left:0}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.clear-button-container{align-items:center;margin-right:var(--ic-space-1px);display:none;visibility:hidden}.clear-button{border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus,.clear-button:active{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button-unfocused *{fill:var(--ic-search-bar-clear-button)}.clear-button:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button-visible{visibility:visible;display:flex}.search-submit-button-container{display:flex;align-items:center}.search-submit-button-unfocused *{fill:var(--ic-search-bar-filled-icon)}.search-submit-button-disabled *{fill:var(--ic-search-bar-icon-disabled)}.search-submit-button-disabled .ic-tooltip-container{display:none !important}.search-submit-button:focus,.search-submit-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:var(--ic-space-xxs)}.search-submit-button:focus,.search-submit-button:active *{fill:white}.divider{width:var(--ic-border-width);background-color:var(--ic-search-bar-dropdown-divider);height:var(--divider-height)}.menu-container{width:var(--input-width, 20rem);position:relative;top:var(--ic-space-xxxs)}.menu-container.fullwidth{width:100%}.no-results{cursor:not-allowed}.search-results-status{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);margin-bottom:calc(-1 * var(--ic-space-1px));margin-right:calc(-1 * var(--ic-space-1px));overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}@media (forced-colors: active){.search-submit-button-unfocused *{fill:canvastext}.search-submit-button-disabled *{fill:GrayText}}@media screen AND (max-width: 22rem){.menu-container{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}";
|
|
20469
20537
|
var IcSearchBarStyle0 = icSearchBarCss;
|
|
20470
20538
|
|
|
20471
20539
|
let inputIds$4 = 0;
|
|
@@ -21149,7 +21217,7 @@ var Expand = `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
21149
21217
|
</svg>
|
|
21150
21218
|
`;
|
|
21151
21219
|
|
|
21152
|
-
var Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
21220
|
+
var Clear$1 = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
21153
21221
|
<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" />
|
|
21154
21222
|
</svg>
|
|
21155
21223
|
`;
|
|
@@ -21971,7 +22039,7 @@ class Select {
|
|
|
21971
22039
|
}, 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 &&
|
|
21972
22040
|
(currValue === null || loading)
|
|
21973
22041
|
? "Clear input"
|
|
21974
|
-
: "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: {
|
|
22042
|
+
: "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: {
|
|
21975
22043
|
"expand-icon": true,
|
|
21976
22044
|
"expand-icon-open": open,
|
|
21977
22045
|
}, 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
|
|
@@ -21985,7 +22053,7 @@ class Select {
|
|
|
21985
22053
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
|
21986
22054
|
"expand-icon": true,
|
|
21987
22055
|
"expand-icon-open": open,
|
|
21988
|
-
}, 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: {
|
|
22056
|
+
}, 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: {
|
|
21989
22057
|
"no-results": loading ||
|
|
21990
22058
|
hasTimedOut ||
|
|
21991
22059
|
(searchable &&
|
|
@@ -24778,7 +24846,7 @@ class Theme {
|
|
|
24778
24846
|
|
|
24779
24847
|
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>`;
|
|
24780
24848
|
|
|
24781
|
-
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,.
|
|
24849
|
+
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}}";
|
|
24782
24850
|
var IcTimeInputStyle0 = icTimeInputCss;
|
|
24783
24851
|
|
|
24784
24852
|
let inputIds = 0;
|
|
@@ -24790,9 +24858,10 @@ class TimeInput {
|
|
|
24790
24858
|
registerInstance(this, hostRef);
|
|
24791
24859
|
this.clockButtonClicked = createEvent(this, "clockButtonClicked", 7);
|
|
24792
24860
|
this.icBlur = createEvent(this, "icBlur", 7);
|
|
24793
|
-
this.
|
|
24861
|
+
this.icTimeChange = createEvent(this, "icTimeChange", 7);
|
|
24794
24862
|
this.icFocus = createEvent(this, "icFocus", 7);
|
|
24795
24863
|
this.DEFAULT_TIME_FORMAT = "HH:MM:SS";
|
|
24864
|
+
this.TOGGLE_BUTTON_SELECTOR = "ic-toggle-button";
|
|
24796
24865
|
this.ARIA_INVALID = "aria-invalid";
|
|
24797
24866
|
this.ARIA_LABEL = "aria-label";
|
|
24798
24867
|
this.ARIA_LABELLED_BY = "aria-labelledby";
|
|
@@ -24803,6 +24872,7 @@ class TimeInput {
|
|
|
24803
24872
|
this.isValidHour = true;
|
|
24804
24873
|
this.isValidMinute = true;
|
|
24805
24874
|
this.isValidSecond = true;
|
|
24875
|
+
this.isValidMillisecond = true;
|
|
24806
24876
|
this.isValidTime = true;
|
|
24807
24877
|
this.isTimeSetFromKeyboardEvent = false;
|
|
24808
24878
|
this.previousSelectedTime = null;
|
|
@@ -24811,12 +24881,20 @@ class TimeInput {
|
|
|
24811
24881
|
this.clearInput = false;
|
|
24812
24882
|
this.maxTime = null;
|
|
24813
24883
|
this.minTime = null;
|
|
24884
|
+
this.previousHour = "";
|
|
24885
|
+
this.previousMinute = "";
|
|
24886
|
+
this.previousSecond = "";
|
|
24887
|
+
this.previousMillisecond = "";
|
|
24888
|
+
this.previousPeriod = "AM";
|
|
24814
24889
|
this.clockFocused = false;
|
|
24815
24890
|
this.clearButtonFocused = false;
|
|
24816
24891
|
this.removeLabelledBy = false;
|
|
24817
24892
|
this.hour = "";
|
|
24818
24893
|
this.minute = "";
|
|
24819
24894
|
this.second = "";
|
|
24895
|
+
this.millisecond = "";
|
|
24896
|
+
this.period = "AM";
|
|
24897
|
+
this.isSSSFormat = () => this.timeFormat === "HH:MM:SS.SSS";
|
|
24820
24898
|
/**
|
|
24821
24899
|
* If `true`, the disabled state will be set.
|
|
24822
24900
|
*/
|
|
@@ -24826,7 +24904,7 @@ class TimeInput {
|
|
|
24826
24904
|
*/
|
|
24827
24905
|
this.disableTimes = [];
|
|
24828
24906
|
/**
|
|
24829
|
-
* If `true`, every individual input field completed will emit an
|
|
24907
|
+
* If `true`, every individual input field completed will emit an icTimeChange event.
|
|
24830
24908
|
*/
|
|
24831
24909
|
this.emitTimePartChange = false;
|
|
24832
24910
|
/**
|
|
@@ -24861,6 +24939,10 @@ class TimeInput {
|
|
|
24861
24939
|
* If `true`, the input will require a value.
|
|
24862
24940
|
*/
|
|
24863
24941
|
this.required = false;
|
|
24942
|
+
/**
|
|
24943
|
+
* If `true`, the time input will show an AM/PM toggle when in 12-hour time period.
|
|
24944
|
+
*/
|
|
24945
|
+
this.showAmPmToggle = false;
|
|
24864
24946
|
/**
|
|
24865
24947
|
* If `true`, a button which clears the time input when clicked will be displayed.
|
|
24866
24948
|
*/
|
|
@@ -24908,19 +24990,6 @@ class TimeInput {
|
|
|
24908
24990
|
inputEl.classList.add(this.FIT_TO_VALUE);
|
|
24909
24991
|
}
|
|
24910
24992
|
};
|
|
24911
|
-
this.parseTime = (value) => {
|
|
24912
|
-
if (!value)
|
|
24913
|
-
return null;
|
|
24914
|
-
if (value instanceof Date)
|
|
24915
|
-
return value;
|
|
24916
|
-
const parts = value.split(":");
|
|
24917
|
-
if (parts.length >= 2) {
|
|
24918
|
-
const d = new Date();
|
|
24919
|
-
d.setHours(+parts[0], +parts[1], parts[2] ? +parts[2] : 0, 0);
|
|
24920
|
-
return d;
|
|
24921
|
-
}
|
|
24922
|
-
return null;
|
|
24923
|
-
};
|
|
24924
24993
|
this.isHHMMFormat = () => this.timeFormat === "HH:MM";
|
|
24925
24994
|
this.isKeyboardOrEvent = (event) => {
|
|
24926
24995
|
return (Object.prototype.toString.call(event) === this.EVENT_OBJECT_STRING ||
|
|
@@ -24948,9 +25017,22 @@ class TimeInput {
|
|
|
24948
25017
|
else {
|
|
24949
25018
|
this.isValidSecond = true;
|
|
24950
25019
|
}
|
|
25020
|
+
if (this.isSSSFormat()) {
|
|
25021
|
+
if (!isEmptyString(this.millisecond)) {
|
|
25022
|
+
this.isValidMillisecond =
|
|
25023
|
+
+this.millisecond >= 0 && +this.millisecond <= 999;
|
|
25024
|
+
}
|
|
25025
|
+
else {
|
|
25026
|
+
this.isValidMillisecond = true;
|
|
25027
|
+
}
|
|
25028
|
+
}
|
|
25029
|
+
else {
|
|
25030
|
+
this.isValidMillisecond = true;
|
|
25031
|
+
}
|
|
24951
25032
|
}
|
|
24952
25033
|
else {
|
|
24953
25034
|
this.isValidSecond = true;
|
|
25035
|
+
this.isValidMillisecond = true;
|
|
24954
25036
|
}
|
|
24955
25037
|
};
|
|
24956
25038
|
this.setInputValue = (input, clear = false) => {
|
|
@@ -24964,6 +25046,9 @@ class TimeInput {
|
|
|
24964
25046
|
else if (input === this.secondInputEl && !this.isHHMMFormat()) {
|
|
24965
25047
|
this.second = newValue;
|
|
24966
25048
|
}
|
|
25049
|
+
else if (this.isSSSFormat() && input === this.millisecondInputEl) {
|
|
25050
|
+
this.millisecond = newValue;
|
|
25051
|
+
}
|
|
24967
25052
|
this.setValidationMessage();
|
|
24968
25053
|
};
|
|
24969
25054
|
this.setPreventInput = (input, isPrevented) => {
|
|
@@ -24976,22 +25061,50 @@ class TimeInput {
|
|
|
24976
25061
|
else if (input === this.secondInputEl) {
|
|
24977
25062
|
this.preventSecondInput = isPrevented;
|
|
24978
25063
|
}
|
|
25064
|
+
else if (this.isSSSFormat() && input === this.millisecondInputEl) {
|
|
25065
|
+
this.preventMillisecondInput = isPrevented;
|
|
25066
|
+
}
|
|
24979
25067
|
};
|
|
24980
25068
|
this.setValidationMessage = () => {
|
|
24981
|
-
this.maxTime =
|
|
24982
|
-
this.minTime =
|
|
25069
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
25070
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
24983
25071
|
this.setTimeValidity();
|
|
24984
25072
|
let outOfBoundsMsg = "";
|
|
24985
25073
|
let isDisabledTime = false;
|
|
24986
25074
|
if (!isEmptyString(this.hour) &&
|
|
24987
25075
|
!isEmptyString(this.minute) &&
|
|
24988
|
-
(this.isHHMMFormat() || !isEmptyString(this.second))
|
|
24989
|
-
|
|
24990
|
-
this.
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
|
|
25076
|
+
(this.isHHMMFormat() || !isEmptyString(this.second)) &&
|
|
25077
|
+
(!this.isSSSFormat() || !isEmptyString(this.millisecond))) {
|
|
25078
|
+
this.selectedTime = this.convertToTime(this.hour, this.minute, this.isHHMMFormat() ? "00" : this.second, this.isSSSFormat() ? this.millisecond : "000");
|
|
25079
|
+
const inputHour = +this.hour;
|
|
25080
|
+
const selectedHour = this.selectedTime
|
|
25081
|
+
? this.selectedTime.getHours()
|
|
25082
|
+
: null;
|
|
25083
|
+
if (this.timePeriod === "12" &&
|
|
25084
|
+
this.showAmPmToggle &&
|
|
25085
|
+
selectedHour !== null) {
|
|
25086
|
+
let selectedHour12 = selectedHour % 12;
|
|
25087
|
+
if (selectedHour12 === 0)
|
|
25088
|
+
selectedHour12 = 12;
|
|
25089
|
+
this.isValidTime =
|
|
25090
|
+
!!this.selectedTime &&
|
|
25091
|
+
selectedHour12 == inputHour &&
|
|
25092
|
+
this.selectedTime.getMinutes() == +this.minute &&
|
|
25093
|
+
(this.isHHMMFormat() ||
|
|
25094
|
+
this.selectedTime.getSeconds() == +this.second) &&
|
|
25095
|
+
(!this.isSSSFormat() ||
|
|
25096
|
+
this.selectedTime.getMilliseconds() == +this.millisecond);
|
|
25097
|
+
}
|
|
25098
|
+
else {
|
|
25099
|
+
this.isValidTime =
|
|
25100
|
+
!!this.selectedTime &&
|
|
25101
|
+
this.selectedTime.getHours() == inputHour &&
|
|
25102
|
+
this.selectedTime.getMinutes() == +this.minute &&
|
|
25103
|
+
(this.isHHMMFormat() ||
|
|
25104
|
+
this.selectedTime.getSeconds() == +this.second) &&
|
|
25105
|
+
(!this.isSSSFormat() ||
|
|
25106
|
+
this.selectedTime.getMilliseconds() == +this.millisecond);
|
|
25107
|
+
}
|
|
24995
25108
|
if (this.selectedTime &&
|
|
24996
25109
|
Array.isArray(this.disableTimes) &&
|
|
24997
25110
|
this.disableTimes.length > 0) {
|
|
@@ -25000,18 +25113,25 @@ class TimeInput {
|
|
|
25000
25113
|
t !== null &&
|
|
25001
25114
|
"start" in t &&
|
|
25002
25115
|
"end" in t) {
|
|
25003
|
-
const start =
|
|
25004
|
-
const end =
|
|
25116
|
+
const start = parseTimeHelper(t.start).date;
|
|
25117
|
+
const end = parseTimeHelper(t.end).date;
|
|
25005
25118
|
if (start && end) {
|
|
25006
25119
|
return this.selectedTime >= start && this.selectedTime <= end;
|
|
25007
25120
|
}
|
|
25008
25121
|
return false;
|
|
25009
25122
|
}
|
|
25010
|
-
const parsed =
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25123
|
+
const parsed = parseTimeHelper(t).parts;
|
|
25124
|
+
if (!parsed)
|
|
25125
|
+
return false;
|
|
25126
|
+
let selectedHour = this.selectedTime.getHours();
|
|
25127
|
+
let parsedHour = parsed.hour;
|
|
25128
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25129
|
+
selectedHour = this.convertTo24Hour(selectedHour);
|
|
25130
|
+
parsedHour = this.convertTo24Hour(parsedHour);
|
|
25131
|
+
}
|
|
25132
|
+
return (parsedHour === selectedHour &&
|
|
25133
|
+
parsed.minute === this.selectedTime.getMinutes() &&
|
|
25134
|
+
parsed.second === this.selectedTime.getSeconds());
|
|
25015
25135
|
});
|
|
25016
25136
|
if (isDisabledTime) {
|
|
25017
25137
|
this.isValidTime = false;
|
|
@@ -25041,6 +25161,7 @@ class TimeInput {
|
|
|
25041
25161
|
if (!(this.isValidHour &&
|
|
25042
25162
|
this.isValidMinute &&
|
|
25043
25163
|
this.isValidSecond &&
|
|
25164
|
+
this.isValidMillisecond &&
|
|
25044
25165
|
this.isValidTime)) {
|
|
25045
25166
|
this.invalidTimeText = outOfBoundsMsg || this.invalidTimeMessage;
|
|
25046
25167
|
}
|
|
@@ -25052,12 +25173,33 @@ class TimeInput {
|
|
|
25052
25173
|
const hh = time.getHours().toString().padStart(2, "0");
|
|
25053
25174
|
const mm = time.getMinutes().toString().padStart(2, "0");
|
|
25054
25175
|
const ss = time.getSeconds().toString().padStart(2, "0");
|
|
25176
|
+
const sss = time.getMilliseconds().toString().padStart(3, "0");
|
|
25177
|
+
if (this.isSSSFormat()) {
|
|
25178
|
+
return `${hh}:${mm}:${ss}.${sss}`;
|
|
25179
|
+
}
|
|
25055
25180
|
return this.isHHMMFormat() ? `${hh}:${mm}` : `${hh}:${mm}:${ss}`;
|
|
25056
25181
|
};
|
|
25057
25182
|
this.handleInput = (event) => {
|
|
25058
25183
|
const inputEvent = event;
|
|
25059
25184
|
const input = event.target;
|
|
25060
|
-
if (input
|
|
25185
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25186
|
+
this.setInputValue(input);
|
|
25187
|
+
this.setPreventInput(input, false);
|
|
25188
|
+
this.setFitToValueStyling(input);
|
|
25189
|
+
if (input.value.length === 3) {
|
|
25190
|
+
this.moveToNextInput(input);
|
|
25191
|
+
this.setPreventInput(input, true);
|
|
25192
|
+
}
|
|
25193
|
+
else {
|
|
25194
|
+
this.setPreventInput(input, false);
|
|
25195
|
+
}
|
|
25196
|
+
if (input.value.length === 0) {
|
|
25197
|
+
this.setInputValue(input, true);
|
|
25198
|
+
this.setValidationMessage();
|
|
25199
|
+
}
|
|
25200
|
+
this.notifyScreenReader(input);
|
|
25201
|
+
}
|
|
25202
|
+
else if (input !== this.hourInputEl) {
|
|
25061
25203
|
if (inputEvent.inputType !== "deleteContentBackward" &&
|
|
25062
25204
|
!this.preventAutoFormatting) {
|
|
25063
25205
|
if (input.value.length === 1 &&
|
|
@@ -25090,6 +25232,12 @@ class TimeInput {
|
|
|
25090
25232
|
if (input.value.length !== 2) {
|
|
25091
25233
|
this.setPreventInput(input, false);
|
|
25092
25234
|
}
|
|
25235
|
+
this.setFitToValueStyling(input);
|
|
25236
|
+
if (input.value.length === 0) {
|
|
25237
|
+
this.setInputValue(input, true);
|
|
25238
|
+
this.setValidationMessage();
|
|
25239
|
+
}
|
|
25240
|
+
this.notifyScreenReader(input);
|
|
25093
25241
|
}
|
|
25094
25242
|
else {
|
|
25095
25243
|
if (input.value.length === 2) {
|
|
@@ -25103,18 +25251,25 @@ class TimeInput {
|
|
|
25103
25251
|
this.setInputValue(input, true);
|
|
25104
25252
|
this.setPreventInput(input, false);
|
|
25105
25253
|
}
|
|
25254
|
+
this.setFitToValueStyling(input);
|
|
25255
|
+
if (input.value.length === 0) {
|
|
25256
|
+
this.setInputValue(input, true);
|
|
25257
|
+
this.setValidationMessage();
|
|
25258
|
+
}
|
|
25259
|
+
this.notifyScreenReader(input);
|
|
25106
25260
|
}
|
|
25107
|
-
this.setFitToValueStyling(input);
|
|
25108
|
-
if (input.value.length === 0) {
|
|
25109
|
-
this.setInputValue(input, true);
|
|
25110
|
-
this.setValidationMessage();
|
|
25111
|
-
}
|
|
25112
|
-
this.notifyScreenReader(input);
|
|
25113
25261
|
};
|
|
25114
25262
|
this.handleKeyDown = (event, isInputPrevented) => {
|
|
25115
25263
|
var _a;
|
|
25264
|
+
const navKeys = /arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/i;
|
|
25116
25265
|
const input = event.target;
|
|
25117
25266
|
const eventKey = (_a = event.key) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
25267
|
+
if (!/-?\d*\.?\d+(e[-+]?\d+)?|[:]|[.]/i.test(eventKey) &&
|
|
25268
|
+
!navKeys.test(eventKey) &&
|
|
25269
|
+
!((event.ctrlKey || event.metaKey) &&
|
|
25270
|
+
(eventKey === "v" || eventKey === "c"))) {
|
|
25271
|
+
event.preventDefault();
|
|
25272
|
+
}
|
|
25118
25273
|
const regex = /-?\d*\.?\d+(e[-+]?\d+)?|[:]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;
|
|
25119
25274
|
if (!regex.test(eventKey) &&
|
|
25120
25275
|
!((event.ctrlKey || event.metaKey) &&
|
|
@@ -25152,7 +25307,18 @@ class TimeInput {
|
|
|
25152
25307
|
};
|
|
25153
25308
|
this.handleBlur = (event) => {
|
|
25154
25309
|
const input = event.target;
|
|
25155
|
-
if (input) {
|
|
25310
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25311
|
+
if (input.value.length === 1) {
|
|
25312
|
+
input.value = `00${input.value}`;
|
|
25313
|
+
this.setInputValue(input);
|
|
25314
|
+
}
|
|
25315
|
+
else if (input.value.length === 2) {
|
|
25316
|
+
input.value = `0${input.value}`;
|
|
25317
|
+
this.setInputValue(input);
|
|
25318
|
+
}
|
|
25319
|
+
this.setFitToValueStyling(input);
|
|
25320
|
+
}
|
|
25321
|
+
else if (input) {
|
|
25156
25322
|
this.autocompleteInput(input);
|
|
25157
25323
|
}
|
|
25158
25324
|
};
|
|
@@ -25208,20 +25374,80 @@ class TimeInput {
|
|
|
25208
25374
|
};
|
|
25209
25375
|
this.setValueAndEmitChange = (value, force = false) => {
|
|
25210
25376
|
if (this.value !== value || force) {
|
|
25211
|
-
this.
|
|
25377
|
+
this.emitIcTimeChange(value);
|
|
25212
25378
|
this.value = value;
|
|
25213
25379
|
}
|
|
25214
25380
|
};
|
|
25215
|
-
this.
|
|
25216
|
-
|
|
25217
|
-
this.
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
|
|
25224
|
-
|
|
25381
|
+
this.convertTo24Hour = (hour) => {
|
|
25382
|
+
let date24hours = hour;
|
|
25383
|
+
if (this.period === "PM" && hour < 12)
|
|
25384
|
+
date24hours = hour + 12;
|
|
25385
|
+
if (this.period === "AM" && hour === 12)
|
|
25386
|
+
date24hours = 0;
|
|
25387
|
+
return date24hours;
|
|
25388
|
+
};
|
|
25389
|
+
this.emitIcTimeChange = (t) => {
|
|
25390
|
+
const hour = parseInt(this.hour);
|
|
25391
|
+
const minute = parseInt(this.minute);
|
|
25392
|
+
const second = parseInt(this.second);
|
|
25393
|
+
const millisecond = parseInt(this.millisecond);
|
|
25394
|
+
const period = this.period;
|
|
25395
|
+
let allSelected = false;
|
|
25396
|
+
if (this.isSSSFormat()) {
|
|
25397
|
+
allSelected =
|
|
25398
|
+
this.hour !== "" &&
|
|
25399
|
+
this.minute !== "" &&
|
|
25400
|
+
this.second !== "" &&
|
|
25401
|
+
this.millisecond !== "";
|
|
25402
|
+
}
|
|
25403
|
+
else if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
25404
|
+
allSelected =
|
|
25405
|
+
this.hour !== "" && this.minute !== "" && this.second !== "";
|
|
25406
|
+
}
|
|
25407
|
+
else if (this.timeFormat === "HH:MM") {
|
|
25408
|
+
allSelected = this.hour !== "" && this.minute !== "";
|
|
25409
|
+
}
|
|
25410
|
+
let time = t;
|
|
25411
|
+
let date24hours = hour;
|
|
25412
|
+
if (hour != null &&
|
|
25413
|
+
period &&
|
|
25414
|
+
this.timePeriod === "12" &&
|
|
25415
|
+
this.showAmPmToggle) {
|
|
25416
|
+
date24hours = this.convertTo24Hour(hour);
|
|
25417
|
+
time = new Date();
|
|
25418
|
+
time.setHours(date24hours !== null && date24hours !== void 0 ? date24hours : 0);
|
|
25419
|
+
time.setMinutes(minute !== null && minute !== void 0 ? minute : 0);
|
|
25420
|
+
time.setSeconds(second !== null && second !== void 0 ? second : 0);
|
|
25421
|
+
this.isSSSFormat() && time.setMilliseconds(millisecond !== null && millisecond !== void 0 ? millisecond : 0);
|
|
25422
|
+
}
|
|
25423
|
+
this.selectedTime = time;
|
|
25424
|
+
const allTimePartsEmpty = this.hour === "" &&
|
|
25425
|
+
this.minute === "" &&
|
|
25426
|
+
this.second === "" &&
|
|
25427
|
+
this.millisecond === "";
|
|
25428
|
+
const onlyPeriodChanged = allTimePartsEmpty &&
|
|
25429
|
+
this.period !== this.previousPeriod &&
|
|
25430
|
+
this.previousHour === "" &&
|
|
25431
|
+
this.previousMinute === "" &&
|
|
25432
|
+
this.previousSecond === "" &&
|
|
25433
|
+
this.previousMillisecond === "";
|
|
25434
|
+
if (!onlyPeriodChanged) {
|
|
25435
|
+
this.icTimeChange.emit({
|
|
25436
|
+
value: allSelected ? time : null,
|
|
25437
|
+
timeObject: {
|
|
25438
|
+
hour: this.hour === "" ? null : this.hour,
|
|
25439
|
+
minute: this.minute === "" ? null : this.minute,
|
|
25440
|
+
second: this.second === "" ? null : this.second,
|
|
25441
|
+
millisecond: this.millisecond === "" ? null : this.millisecond,
|
|
25442
|
+
period: this.period === "" ? null : this.period,
|
|
25443
|
+
},
|
|
25444
|
+
});
|
|
25445
|
+
}
|
|
25446
|
+
this.previousHour = this.hour;
|
|
25447
|
+
this.previousMinute = this.minute;
|
|
25448
|
+
this.previousSecond = this.second;
|
|
25449
|
+
this.previousMillisecond = this.millisecond;
|
|
25450
|
+
this.previousPeriod = this.period;
|
|
25225
25451
|
};
|
|
25226
25452
|
this.setTime = (time) => {
|
|
25227
25453
|
if (time === null || time === "" || time === undefined) {
|
|
@@ -25231,6 +25457,8 @@ class TimeInput {
|
|
|
25231
25457
|
this.minute = "";
|
|
25232
25458
|
if (this.second)
|
|
25233
25459
|
this.second = "";
|
|
25460
|
+
if (this.millisecond)
|
|
25461
|
+
this.millisecond = "";
|
|
25234
25462
|
this.inputsInOrder.forEach((input) => {
|
|
25235
25463
|
input.classList.remove(this.FIT_TO_VALUE);
|
|
25236
25464
|
this.setPreventInput(input, false);
|
|
@@ -25246,22 +25474,26 @@ class TimeInput {
|
|
|
25246
25474
|
this.second = zuluMatch[3];
|
|
25247
25475
|
}
|
|
25248
25476
|
else {
|
|
25249
|
-
const parts = time.split(
|
|
25477
|
+
const parts = time.split(/[:.]/);
|
|
25250
25478
|
this.hour = parts[0] || "";
|
|
25251
25479
|
this.minute = parts[1] || "";
|
|
25252
25480
|
this.second = parts[2] || "";
|
|
25481
|
+
this.millisecond = parts[3] || "";
|
|
25253
25482
|
}
|
|
25254
25483
|
}
|
|
25255
25484
|
else if (time instanceof Date) {
|
|
25256
25485
|
this.hour = time.getHours().toString().padStart(2, "0");
|
|
25257
25486
|
this.minute = time.getMinutes().toString().padStart(2, "0");
|
|
25258
25487
|
this.second = time.getSeconds().toString().padStart(2, "0");
|
|
25488
|
+
if (this.isSSSFormat()) {
|
|
25489
|
+
this.millisecond = time.getMilliseconds().toString().padStart(3, "0");
|
|
25490
|
+
}
|
|
25259
25491
|
}
|
|
25260
25492
|
}
|
|
25261
25493
|
this.setValidationMessage();
|
|
25262
25494
|
};
|
|
25263
|
-
this.setAriaInvalid = (validHour, validMinute, validSecond) => {
|
|
25264
|
-
var _a, _b, _c;
|
|
25495
|
+
this.setAriaInvalid = (validHour, validMinute, validSecond, validMillisecond) => {
|
|
25496
|
+
var _a, _b, _c, _d;
|
|
25265
25497
|
if (this.inputsInOrder.length) {
|
|
25266
25498
|
this.inputsInOrder.forEach((input) => {
|
|
25267
25499
|
input.removeAttribute(this.ARIA_INVALID);
|
|
@@ -25275,7 +25507,10 @@ class TimeInput {
|
|
|
25275
25507
|
if (!validSecond) {
|
|
25276
25508
|
(_c = this.secondInputEl) === null || _c === void 0 ? void 0 : _c.setAttribute(this.ARIA_INVALID, "true");
|
|
25277
25509
|
}
|
|
25278
|
-
if (!
|
|
25510
|
+
if (!validMillisecond) {
|
|
25511
|
+
(_d = this.millisecondInputEl) === null || _d === void 0 ? void 0 : _d.setAttribute(this.ARIA_INVALID, "true");
|
|
25512
|
+
}
|
|
25513
|
+
if (!(validHour && validMinute && validSecond && validMillisecond)) {
|
|
25279
25514
|
this.inputsInOrder.forEach((input) => {
|
|
25280
25515
|
input.setAttribute(this.ARIA_INVALID, "true");
|
|
25281
25516
|
});
|
|
@@ -25283,6 +25518,7 @@ class TimeInput {
|
|
|
25283
25518
|
}
|
|
25284
25519
|
};
|
|
25285
25520
|
this.handleClear = () => {
|
|
25521
|
+
var _a;
|
|
25286
25522
|
this.clearInput = true;
|
|
25287
25523
|
if (this.hourInputEl) {
|
|
25288
25524
|
this.hourInputEl.value = "";
|
|
@@ -25293,9 +25529,25 @@ class TimeInput {
|
|
|
25293
25529
|
if (!this.isHHMMFormat() && this.secondInputEl) {
|
|
25294
25530
|
this.secondInputEl.value = "";
|
|
25295
25531
|
}
|
|
25532
|
+
if (this.isSSSFormat() && this.millisecondInputEl) {
|
|
25533
|
+
this.millisecondInputEl.value = "";
|
|
25534
|
+
}
|
|
25296
25535
|
this.hour = "";
|
|
25297
25536
|
this.minute = "";
|
|
25298
25537
|
this.second = "";
|
|
25538
|
+
this.millisecond = "";
|
|
25539
|
+
this.period = "AM";
|
|
25540
|
+
if (this.showAmPmToggle) {
|
|
25541
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25542
|
+
const toggleBtn = btn;
|
|
25543
|
+
if (toggleBtn.label === "AM") {
|
|
25544
|
+
toggleBtn.checked = true;
|
|
25545
|
+
}
|
|
25546
|
+
else {
|
|
25547
|
+
toggleBtn.checked = false;
|
|
25548
|
+
}
|
|
25549
|
+
});
|
|
25550
|
+
}
|
|
25299
25551
|
this.handleTimeChange(true);
|
|
25300
25552
|
this.inputsInOrder.forEach((input) => {
|
|
25301
25553
|
input.classList.remove(this.FIT_TO_VALUE);
|
|
@@ -25311,26 +25563,31 @@ class TimeInput {
|
|
|
25311
25563
|
};
|
|
25312
25564
|
this.notifyScreenReaderSelectedTime = () => {
|
|
25313
25565
|
if (this.selectedTime && this.selectedTimeInfoEl) {
|
|
25566
|
+
let hours = this.selectedTime.getHours();
|
|
25567
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25568
|
+
hours = this.convertTo24Hour(hours);
|
|
25569
|
+
}
|
|
25570
|
+
const hoursStr = hours.toString().padStart(2, "0");
|
|
25571
|
+
const minutesStr = this.selectedTime
|
|
25572
|
+
.getMinutes()
|
|
25573
|
+
.toString()
|
|
25574
|
+
.padStart(2, "0");
|
|
25575
|
+
const secondsStr = this.selectedTime
|
|
25576
|
+
.getSeconds()
|
|
25577
|
+
.toString()
|
|
25578
|
+
.padStart(2, "0");
|
|
25579
|
+
const msStr = this.selectedTime
|
|
25580
|
+
.getMilliseconds()
|
|
25581
|
+
.toString()
|
|
25582
|
+
.padStart(3, "0");
|
|
25314
25583
|
if (this.isHHMMFormat()) {
|
|
25315
|
-
this.selectedTimeInfoEl.textContent = `Selected time: ${
|
|
25316
|
-
|
|
25317
|
-
|
|
25318
|
-
|
|
25319
|
-
.getMinutes()
|
|
25320
|
-
.toString()
|
|
25321
|
-
.padStart(2, "0")}`;
|
|
25584
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}`;
|
|
25585
|
+
}
|
|
25586
|
+
else if (!this.isSSSFormat()) {
|
|
25587
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}:${secondsStr}`;
|
|
25322
25588
|
}
|
|
25323
25589
|
else {
|
|
25324
|
-
this.selectedTimeInfoEl.textContent = `Selected time: ${
|
|
25325
|
-
.getHours()
|
|
25326
|
-
.toString()
|
|
25327
|
-
.padStart(2, "0")}:${this.selectedTime
|
|
25328
|
-
.getMinutes()
|
|
25329
|
-
.toString()
|
|
25330
|
-
.padStart(2, "0")}:${this.selectedTime
|
|
25331
|
-
.getSeconds()
|
|
25332
|
-
.toString()
|
|
25333
|
-
.padStart(2, "0")}`;
|
|
25590
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${hoursStr}:${minutesStr}:${secondsStr}.${msStr}`;
|
|
25334
25591
|
}
|
|
25335
25592
|
}
|
|
25336
25593
|
};
|
|
@@ -25348,7 +25605,7 @@ class TimeInput {
|
|
|
25348
25605
|
};
|
|
25349
25606
|
this.handleHostFocus = () => {
|
|
25350
25607
|
var _a, _b;
|
|
25351
|
-
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$/)) {
|
|
25608
|
+
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$/)) {
|
|
25352
25609
|
this.removeLabelledBy = false;
|
|
25353
25610
|
}
|
|
25354
25611
|
else {
|
|
@@ -25397,12 +25654,17 @@ class TimeInput {
|
|
|
25397
25654
|
this.setInputValue(input);
|
|
25398
25655
|
}
|
|
25399
25656
|
};
|
|
25400
|
-
this.convertToTime = (hour, minute, second) => {
|
|
25657
|
+
this.convertToTime = (hour, minute, second, millisecond = null) => {
|
|
25401
25658
|
if (!isEmptyString(hour) &&
|
|
25402
25659
|
!isEmptyString(minute) &&
|
|
25403
|
-
(this.isHHMMFormat() || !isEmptyString(second))
|
|
25660
|
+
(this.isHHMMFormat() || !isEmptyString(second)) &&
|
|
25661
|
+
(!this.isSSSFormat() ||
|
|
25662
|
+
(millisecond !== null && !isEmptyString(millisecond)))) {
|
|
25404
25663
|
const d = new Date();
|
|
25405
25664
|
d.setHours(+hour, +minute, this.isHHMMFormat() ? 0 : +second, 0);
|
|
25665
|
+
if (this.isSSSFormat() && millisecond !== null) {
|
|
25666
|
+
d.setMilliseconds(+millisecond);
|
|
25667
|
+
}
|
|
25406
25668
|
return d;
|
|
25407
25669
|
}
|
|
25408
25670
|
else {
|
|
@@ -25447,17 +25709,22 @@ class TimeInput {
|
|
|
25447
25709
|
(_d = this.inputCompContainerEl) === null || _d === void 0 ? void 0 : _d.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
|
|
25448
25710
|
};
|
|
25449
25711
|
this.getInputsInOrder = () => {
|
|
25450
|
-
const timeParts = this.timeFormat.split(
|
|
25712
|
+
const timeParts = this.timeFormat.split(/[:.]/);
|
|
25451
25713
|
return timeParts.map((part) => {
|
|
25452
|
-
switch (part
|
|
25453
|
-
case "
|
|
25714
|
+
switch (part) {
|
|
25715
|
+
case "HH":
|
|
25454
25716
|
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) }));
|
|
25455
|
-
case "
|
|
25717
|
+
case "MM":
|
|
25456
25718
|
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) }));
|
|
25457
|
-
case "
|
|
25719
|
+
case "SS":
|
|
25458
25720
|
if (!this.isHHMMFormat()) {
|
|
25459
25721
|
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) }));
|
|
25460
25722
|
}
|
|
25723
|
+
break;
|
|
25724
|
+
case "SSS":
|
|
25725
|
+
if (this.isSSSFormat()) {
|
|
25726
|
+
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) }));
|
|
25727
|
+
}
|
|
25461
25728
|
return null;
|
|
25462
25729
|
default:
|
|
25463
25730
|
return null;
|
|
@@ -25465,6 +25732,9 @@ class TimeInput {
|
|
|
25465
25732
|
});
|
|
25466
25733
|
};
|
|
25467
25734
|
this.getDescOfInputsOrder = () => {
|
|
25735
|
+
if (this.isSSSFormat()) {
|
|
25736
|
+
return "hour, minute, second, and millisecond";
|
|
25737
|
+
}
|
|
25468
25738
|
return "hour, minute, and second";
|
|
25469
25739
|
};
|
|
25470
25740
|
this.getScreenReaderInfo = (validationStatus) => {
|
|
@@ -25504,7 +25774,7 @@ class TimeInput {
|
|
|
25504
25774
|
this.removeLabelledBy = false;
|
|
25505
25775
|
return;
|
|
25506
25776
|
}
|
|
25507
|
-
if (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id.match(/(minute|second)-input$/)) {
|
|
25777
|
+
if (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id.match(/(minute|second|millisecond)-input$/)) {
|
|
25508
25778
|
this.removeLabelledBy = false;
|
|
25509
25779
|
return;
|
|
25510
25780
|
}
|
|
@@ -25522,6 +25792,18 @@ class TimeInput {
|
|
|
25522
25792
|
return value;
|
|
25523
25793
|
}
|
|
25524
25794
|
}
|
|
25795
|
+
else if (this.isSSSFormat()) {
|
|
25796
|
+
if (/^\d{2}:\d{2}:\d{2}\.\d{1,3}$/.test(value)) {
|
|
25797
|
+
return value;
|
|
25798
|
+
}
|
|
25799
|
+
if (/^\d{2}:\d{2}:\d{2}\.\d{1,3}Z$/.test(value)) {
|
|
25800
|
+
return value.replace("Z", "");
|
|
25801
|
+
}
|
|
25802
|
+
const isoMatch = value.match(/T(\d{2}:\d{2}:\d{2}\.\d{1,3})/);
|
|
25803
|
+
if (isoMatch) {
|
|
25804
|
+
return isoMatch[1];
|
|
25805
|
+
}
|
|
25806
|
+
}
|
|
25525
25807
|
else {
|
|
25526
25808
|
if (/^\d{2}:\d{2}:\d{2}$/.test(value)) {
|
|
25527
25809
|
return value;
|
|
@@ -25538,16 +25820,78 @@ class TimeInput {
|
|
|
25538
25820
|
};
|
|
25539
25821
|
this.setPastedValueAndValidation = (isValidTime, pastedValue, event) => {
|
|
25540
25822
|
if (isValidTime) {
|
|
25541
|
-
const timeParts = isValidTime.split(
|
|
25823
|
+
const timeParts = isValidTime.split(/[:.]/);
|
|
25542
25824
|
this.inputsInOrder.forEach((input, index) => {
|
|
25825
|
+
var _a, _b, _c, _d;
|
|
25543
25826
|
input.classList.add(this.FIT_TO_VALUE);
|
|
25544
|
-
|
|
25545
|
-
input.
|
|
25827
|
+
let timeValue = timeParts[index] || "";
|
|
25828
|
+
if (input === this.millisecondInputEl && this.isSSSFormat()) {
|
|
25829
|
+
timeValue = timeValue.slice(0, 3);
|
|
25830
|
+
}
|
|
25831
|
+
else {
|
|
25832
|
+
timeValue = timeValue.slice(0, 2);
|
|
25833
|
+
}
|
|
25834
|
+
if (input === this.hourInputEl) {
|
|
25835
|
+
let activeToggle;
|
|
25836
|
+
if (this.timePeriod === "12" && this.showAmPmToggle) {
|
|
25837
|
+
if (parseInt(timeValue) > 12) {
|
|
25838
|
+
timeValue = (parseInt(timeValue) - 12)
|
|
25839
|
+
.toString()
|
|
25840
|
+
.padStart(2, "0");
|
|
25841
|
+
if (parseInt(timeValue) > 12) {
|
|
25842
|
+
return;
|
|
25843
|
+
}
|
|
25844
|
+
else {
|
|
25845
|
+
this.period = "PM";
|
|
25846
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25847
|
+
const toggleBtn = btn;
|
|
25848
|
+
if (toggleBtn.label === "PM") {
|
|
25849
|
+
activeToggle = toggleBtn;
|
|
25850
|
+
}
|
|
25851
|
+
else {
|
|
25852
|
+
toggleBtn.checked = false;
|
|
25853
|
+
}
|
|
25854
|
+
});
|
|
25855
|
+
if (activeToggle) {
|
|
25856
|
+
(_b = this.periodToggleEl) === null || _b === void 0 ? void 0 : _b.setActiveToggle(activeToggle);
|
|
25857
|
+
activeToggle.checked = true;
|
|
25858
|
+
}
|
|
25859
|
+
this.invalidTimeText = "";
|
|
25860
|
+
this.validationStatus = "";
|
|
25861
|
+
}
|
|
25862
|
+
}
|
|
25863
|
+
else {
|
|
25864
|
+
if (parseInt(timeValue) === 0) {
|
|
25865
|
+
timeValue = "12";
|
|
25866
|
+
}
|
|
25867
|
+
this.period = "AM";
|
|
25868
|
+
(_c = this.periodToggleEl) === null || _c === void 0 ? void 0 : _c.querySelectorAll(this.TOGGLE_BUTTON_SELECTOR).forEach((btn) => {
|
|
25869
|
+
const toggleBtn = btn;
|
|
25870
|
+
if (toggleBtn.label === "AM") {
|
|
25871
|
+
activeToggle = toggleBtn;
|
|
25872
|
+
}
|
|
25873
|
+
else {
|
|
25874
|
+
toggleBtn.checked = false;
|
|
25875
|
+
}
|
|
25876
|
+
});
|
|
25877
|
+
if (activeToggle) {
|
|
25878
|
+
(_d = this.periodToggleEl) === null || _d === void 0 ? void 0 : _d.setActiveToggle(activeToggle);
|
|
25879
|
+
activeToggle.checked = true;
|
|
25880
|
+
}
|
|
25881
|
+
this.invalidTimeText = "";
|
|
25882
|
+
this.validationStatus = "";
|
|
25883
|
+
}
|
|
25884
|
+
}
|
|
25885
|
+
}
|
|
25886
|
+
input.value = timeValue;
|
|
25546
25887
|
this.setInputValue(input);
|
|
25547
25888
|
this.autocompleteInput(input);
|
|
25548
25889
|
});
|
|
25549
|
-
if (this.isHHMMFormat() &&
|
|
25890
|
+
if (this.isHHMMFormat() &&
|
|
25891
|
+
this.second !== "" &&
|
|
25892
|
+
this.millisecond !== "") {
|
|
25550
25893
|
this.second = "";
|
|
25894
|
+
this.millisecond = "";
|
|
25551
25895
|
}
|
|
25552
25896
|
}
|
|
25553
25897
|
else {
|
|
@@ -25562,14 +25906,22 @@ class TimeInput {
|
|
|
25562
25906
|
}
|
|
25563
25907
|
}
|
|
25564
25908
|
};
|
|
25909
|
+
this.handleAMPM = (selectedOption) => {
|
|
25910
|
+
var _a;
|
|
25911
|
+
this.period = selectedOption.label;
|
|
25912
|
+
(_a = this.periodToggleEl) === null || _a === void 0 ? void 0 : _a.setActiveToggle(selectedOption);
|
|
25913
|
+
};
|
|
25565
25914
|
}
|
|
25566
25915
|
watchInputHandler() {
|
|
25567
25916
|
if (this.emitTimePartChange &&
|
|
25568
25917
|
!this.externalSetTime &&
|
|
25569
25918
|
!this.clearInput &&
|
|
25570
|
-
!(this.hour &&
|
|
25919
|
+
!(this.hour &&
|
|
25920
|
+
this.minute &&
|
|
25921
|
+
this.second &&
|
|
25922
|
+
(this.isSSSFormat() ? this.millisecond : true)) &&
|
|
25571
25923
|
this.selectedTime === null) {
|
|
25572
|
-
this.
|
|
25924
|
+
this.emitIcTimeChange(this.selectedTime);
|
|
25573
25925
|
}
|
|
25574
25926
|
}
|
|
25575
25927
|
watchDisabledHandler() {
|
|
@@ -25580,10 +25932,10 @@ class TimeInput {
|
|
|
25580
25932
|
this.helperText = this.defaultHelperText;
|
|
25581
25933
|
}
|
|
25582
25934
|
watchMaxHandler() {
|
|
25583
|
-
this.maxTime =
|
|
25935
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
25584
25936
|
}
|
|
25585
25937
|
watchMinHandler() {
|
|
25586
|
-
this.minTime =
|
|
25938
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
25587
25939
|
}
|
|
25588
25940
|
watchRequiredHandler() {
|
|
25589
25941
|
var _a, _b;
|
|
@@ -25632,7 +25984,7 @@ class TimeInput {
|
|
|
25632
25984
|
input.classList.add(this.FIT_TO_VALUE);
|
|
25633
25985
|
});
|
|
25634
25986
|
}
|
|
25635
|
-
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
|
25987
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond, this.isValidMillisecond);
|
|
25636
25988
|
if (this.value) {
|
|
25637
25989
|
this.notifyScreenReaderSelectedTime();
|
|
25638
25990
|
}
|
|
@@ -25646,7 +25998,7 @@ class TimeInput {
|
|
|
25646
25998
|
componentWillUpdate() {
|
|
25647
25999
|
if (!this.isTimeSetFromKeyboardEvent)
|
|
25648
26000
|
this.setTime(this.value);
|
|
25649
|
-
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
|
26001
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond, this.isValidMillisecond);
|
|
25650
26002
|
this.handleTimeChange(false);
|
|
25651
26003
|
this.isTimeSetFromKeyboardEvent = false;
|
|
25652
26004
|
}
|
|
@@ -25665,12 +26017,12 @@ class TimeInput {
|
|
|
25665
26017
|
return this.selectedTime;
|
|
25666
26018
|
}
|
|
25667
26019
|
/**
|
|
25668
|
-
* @internal Used to enable other components to invoke an
|
|
26020
|
+
* @internal Used to enable other components to invoke an icTimeChange event from the input.
|
|
25669
26021
|
*/
|
|
25670
|
-
async
|
|
26022
|
+
async triggerIcTimeChange(t) {
|
|
25671
26023
|
this.externalSetTime = true;
|
|
25672
26024
|
this.setTime(t);
|
|
25673
|
-
this.
|
|
26025
|
+
this.emitIcTimeChange(t);
|
|
25674
26026
|
this.externalSetTime = false;
|
|
25675
26027
|
}
|
|
25676
26028
|
render() {
|
|
@@ -25687,23 +26039,39 @@ class TimeInput {
|
|
|
25687
26039
|
!(isEmptyString(this.hour) &&
|
|
25688
26040
|
isEmptyString(this.minute) &&
|
|
25689
26041
|
isEmptyString(this.second)));
|
|
25690
|
-
|
|
26042
|
+
if (this.showAmPmToggle && this.timePeriod !== "12") {
|
|
26043
|
+
this.showAmPmToggle = false;
|
|
26044
|
+
}
|
|
26045
|
+
return (hAsync(Host, { key: 'd005982324084fad9fdfe6392cf879e15709d2ef', class: {
|
|
25691
26046
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25692
26047
|
[`ic-time-input-disabled`]: disabled,
|
|
25693
26048
|
[`ic-time-input-${size}`]: true,
|
|
25694
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
|
26049
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '6fcc48d72a92ef2a0acf3f6b109e29b24c6608db', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '84364f527bbfeffed22d95df1ce879bb9cb55fde', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: '4a993ddc9a3923e4fbe58f4abfd1d6f51ef63494', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'de2889971bef74376661a3fb0963c9bc88673e12', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: 'b68b686d6794d6ad1247f18c867b1652066b48da', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: '56557e76da321f937be614926cd3f41b4c9a09a8', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: '89cbb13ffe21d66fd82a28ad6b5b295cf68c5787', class: {
|
|
26050
|
+
"with-am-pm-toggle": this.showAmPmToggle === true,
|
|
26051
|
+
} }, hAsync("ic-input-component-container", { key: '03a61c8d72f43d68f81069327aa31b632bfee74d', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '0fdf9d4191272a8b53e73d6230e10750032d5279', class: "input-container" }, hAsync("div", { key: 'c7b13f330ec67b48e817f4b87fff96ad6ad6102e', class: "time-inputs" }, [
|
|
25695
26052
|
this.getInputsInOrder()[0],
|
|
25696
26053
|
":",
|
|
25697
26054
|
this.getInputsInOrder()[1],
|
|
25698
26055
|
!this.isHHMMFormat()
|
|
25699
26056
|
? [":", this.getInputsInOrder()[2]]
|
|
25700
26057
|
: null,
|
|
25701
|
-
|
|
26058
|
+
this.isSSSFormat()
|
|
26059
|
+
? [".", this.getInputsInOrder()[3]]
|
|
26060
|
+
: null,
|
|
26061
|
+
]), hAsync("div", { key: 'caf4926b8008875a111f6bb3aa0815cfb2e10768', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '9883c16dc3d60c6ea4d9d3cc3e4a770479339879', id: "clear-button", "aria-label": "Clear input", class: {
|
|
25702
26062
|
["clear-button"]: true,
|
|
25703
26063
|
["hidden"]: isEmptyString(this.hour) &&
|
|
25704
26064
|
isEmptyString(this.minute) &&
|
|
25705
26065
|
isEmptyString(this.second),
|
|
25706
|
-
}, disabled: this.disabled, innerHTML: Clear$
|
|
26066
|
+
}, 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: '9ace5895419381c300bbdc5c8ef2eeacad05b63b', class: "show-clock-button-wrapper" }, hAsync("div", { key: 'dfa2a5bbf9e7bd74353d7caf3514861d545d6026', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: '1c36dcf4f02a323aafeb265126e2d1334df077b2', 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: 'c63749fddcc1b7ed3c394a17a5d1a65aa322f024', "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) => {
|
|
26067
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
26068
|
+
e.preventDefault();
|
|
26069
|
+
if (this.inputsInOrder && this.inputsInOrder.length > 0) {
|
|
26070
|
+
const lastInput = this.inputsInOrder[this.inputsInOrder.length - 1];
|
|
26071
|
+
lastInput === null || lastInput === void 0 ? void 0 : lastInput.focus();
|
|
26072
|
+
}
|
|
26073
|
+
}
|
|
26074
|
+
} }, hAsync("ic-toggle-button", { key: 'fc731674e7c26846a969768ddc77b94b14c6cca6', label: "AM", disabled: disabled, checked: true }), hAsync("ic-toggle-button", { key: '89e0bd48a39a8e786fcac5e034358edd560f4136', label: "PM", disabled: disabled })))), hAsync("span", { key: '52854ea1dc4a1c4e7783914ff90bf204848a2e6e', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '065c89020778df53ae78d037ef62feb189b7fdba', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), hAsync("ic-input-validation", { key: 'fc2500bef0e8e077272424a46663a85509a160c3', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId, ariaLiveMode: validationAriaLive }))));
|
|
25707
26075
|
}
|
|
25708
26076
|
static get delegatesFocus() { return true; }
|
|
25709
26077
|
get el() { return getElement(this); }
|
|
@@ -25711,6 +26079,8 @@ class TimeInput {
|
|
|
25711
26079
|
"hour": ["watchInputHandler"],
|
|
25712
26080
|
"minute": ["watchInputHandler"],
|
|
25713
26081
|
"second": ["watchInputHandler"],
|
|
26082
|
+
"millisecond": ["watchInputHandler"],
|
|
26083
|
+
"period": ["watchInputHandler"],
|
|
25714
26084
|
"disabled": ["watchDisabledHandler"],
|
|
25715
26085
|
"helperText": ["watchHelperTextHandler"],
|
|
25716
26086
|
"max": ["watchMaxHandler"],
|
|
@@ -25736,6 +26106,7 @@ class TimeInput {
|
|
|
25736
26106
|
"min": [1],
|
|
25737
26107
|
"name": [1],
|
|
25738
26108
|
"required": [4],
|
|
26109
|
+
"showAmPmToggle": [1028, "show-am-pm-toggle"],
|
|
25739
26110
|
"showClearButton": [4, "show-clear-button"],
|
|
25740
26111
|
"showClockButton": [4, "show-clock-button"],
|
|
25741
26112
|
"size": [1],
|
|
@@ -25753,8 +26124,10 @@ class TimeInput {
|
|
|
25753
26124
|
"hour": [32],
|
|
25754
26125
|
"minute": [32],
|
|
25755
26126
|
"second": [32],
|
|
26127
|
+
"millisecond": [32],
|
|
26128
|
+
"period": [32],
|
|
25756
26129
|
"getTime": [64],
|
|
25757
|
-
"
|
|
26130
|
+
"triggerIcTimeChange": [64]
|
|
25758
26131
|
},
|
|
25759
26132
|
"$listeners$": undefined,
|
|
25760
26133
|
"$lazyBundleId$": "-",
|
|
@@ -25762,7 +26135,861 @@ class TimeInput {
|
|
|
25762
26135
|
}; }
|
|
25763
26136
|
}
|
|
25764
26137
|
|
|
25765
|
-
|
|
26138
|
+
var Check = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
26139
|
+
<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"/>
|
|
26140
|
+
</svg>
|
|
26141
|
+
`;
|
|
26142
|
+
|
|
26143
|
+
var Clear = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
26144
|
+
<path d="M0 0h24v24H0z" fill="none"/>
|
|
26145
|
+
<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"/>
|
|
26146
|
+
<title>close icon</title>
|
|
26147
|
+
</svg>
|
|
26148
|
+
`;
|
|
26149
|
+
|
|
26150
|
+
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}}";
|
|
26151
|
+
var IcTimeSelectorStyle0 = icTimeSelectorCss;
|
|
26152
|
+
|
|
26153
|
+
const COLUMN_TYPES = ["hour", "minute", "second", "period"];
|
|
26154
|
+
const COLUMN_CLASS = ".ic-time-selector-column";
|
|
26155
|
+
const ITEM_CLASS = ".ic-time-selector-item";
|
|
26156
|
+
class TimeSelector {
|
|
26157
|
+
constructor(hostRef) {
|
|
26158
|
+
registerInstance(this, hostRef);
|
|
26159
|
+
this.icChange = createEvent(this, "icChange", 7);
|
|
26160
|
+
this.DEFAULT_TIME_FORMAT = "HH:MM:SS";
|
|
26161
|
+
this.minutes = Array.from({ length: 60 }, (_, i) => i);
|
|
26162
|
+
this.seconds = Array.from({ length: 60 }, (_, i) => i);
|
|
26163
|
+
this.periods = ["AM", "PM"];
|
|
26164
|
+
this.minTime = null;
|
|
26165
|
+
this.maxTime = null;
|
|
26166
|
+
this.ariaLiveMessage = "";
|
|
26167
|
+
/**
|
|
26168
|
+
* An array of times 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.
|
|
26169
|
+
*/
|
|
26170
|
+
this.disableTimes = [];
|
|
26171
|
+
/**
|
|
26172
|
+
* 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.
|
|
26173
|
+
*/
|
|
26174
|
+
this.min = "";
|
|
26175
|
+
/**
|
|
26176
|
+
* 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.
|
|
26177
|
+
*/
|
|
26178
|
+
this.max = "";
|
|
26179
|
+
/**
|
|
26180
|
+
* The size of the time selector to be displayed.
|
|
26181
|
+
*/
|
|
26182
|
+
this.size = "medium";
|
|
26183
|
+
/**
|
|
26184
|
+
* 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.
|
|
26185
|
+
*/
|
|
26186
|
+
this.theme = "inherit";
|
|
26187
|
+
/**
|
|
26188
|
+
* The format in which the time will be displayed.
|
|
26189
|
+
*/
|
|
26190
|
+
this.timeFormat = this.DEFAULT_TIME_FORMAT;
|
|
26191
|
+
/**
|
|
26192
|
+
* The time period format: "12" for 12-hour, "24" for 24-hour. Defaults to "24".
|
|
26193
|
+
*/
|
|
26194
|
+
this.timePeriod = "24";
|
|
26195
|
+
/**
|
|
26196
|
+
* 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.
|
|
26197
|
+
*/
|
|
26198
|
+
this.value = "";
|
|
26199
|
+
this.setTimeParts = (hour, minute, second) => {
|
|
26200
|
+
let period = "AM";
|
|
26201
|
+
if (this.timePeriod === "12") {
|
|
26202
|
+
if (hour === 0) {
|
|
26203
|
+
hour = 12;
|
|
26204
|
+
period = "AM";
|
|
26205
|
+
}
|
|
26206
|
+
else if (hour === 12) {
|
|
26207
|
+
period = "PM";
|
|
26208
|
+
}
|
|
26209
|
+
else if (hour > 12) {
|
|
26210
|
+
hour = hour - 12;
|
|
26211
|
+
period = "PM";
|
|
26212
|
+
}
|
|
26213
|
+
else {
|
|
26214
|
+
period = "AM";
|
|
26215
|
+
}
|
|
26216
|
+
this.selectedHour = hour;
|
|
26217
|
+
this.selectedPeriod = period;
|
|
26218
|
+
}
|
|
26219
|
+
else {
|
|
26220
|
+
this.selectedHour = hour;
|
|
26221
|
+
}
|
|
26222
|
+
this.selectedMinute = minute;
|
|
26223
|
+
this.selectedSecond = second;
|
|
26224
|
+
};
|
|
26225
|
+
this.checkIfScrollIsFinished = (column, scrollTop) => {
|
|
26226
|
+
const isScrollFinished = setInterval(() => {
|
|
26227
|
+
if (column.scrollTop === scrollTop + 56) {
|
|
26228
|
+
column === null || column === void 0 ? void 0 : column.focus();
|
|
26229
|
+
clearInterval(isScrollFinished);
|
|
26230
|
+
}
|
|
26231
|
+
}, 25);
|
|
26232
|
+
};
|
|
26233
|
+
this.handleSelect = (type, value) => {
|
|
26234
|
+
var _a;
|
|
26235
|
+
const prevValue = this.getSelectedValue(type);
|
|
26236
|
+
switch (type) {
|
|
26237
|
+
case "hour":
|
|
26238
|
+
this.selectedHour = Number(value);
|
|
26239
|
+
break;
|
|
26240
|
+
case "minute":
|
|
26241
|
+
this.selectedMinute = Number(value);
|
|
26242
|
+
break;
|
|
26243
|
+
case "second":
|
|
26244
|
+
this.selectedSecond = Number(value);
|
|
26245
|
+
break;
|
|
26246
|
+
case "period":
|
|
26247
|
+
this.selectedPeriod = value;
|
|
26248
|
+
break;
|
|
26249
|
+
}
|
|
26250
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26251
|
+
const idx = COLUMN_TYPES.indexOf(type);
|
|
26252
|
+
if (columns && columns[idx]) {
|
|
26253
|
+
columns[idx].focus();
|
|
26254
|
+
window.requestAnimationFrame(() => {
|
|
26255
|
+
this.scrollSelectedItem(type);
|
|
26256
|
+
});
|
|
26257
|
+
}
|
|
26258
|
+
if (prevValue === undefined || prevValue === null) {
|
|
26259
|
+
this.announceSelectedColumn(type);
|
|
26260
|
+
}
|
|
26261
|
+
else {
|
|
26262
|
+
this.lastAnnouncedType = type;
|
|
26263
|
+
this.lastAnnouncedValue = this.getSelectedValue(type);
|
|
26264
|
+
}
|
|
26265
|
+
};
|
|
26266
|
+
this.isTimeDisabled = (hour, minute, second, type) => {
|
|
26267
|
+
var _a, _b, _c, _d;
|
|
26268
|
+
for (const t of this.disableTimes) {
|
|
26269
|
+
if (typeof t === "string" || t instanceof Date) {
|
|
26270
|
+
const parts = parseTimeHelper(t).parts;
|
|
26271
|
+
if (parts &&
|
|
26272
|
+
parts.hour === hour &&
|
|
26273
|
+
parts.minute === minute &&
|
|
26274
|
+
parts.second === second) {
|
|
26275
|
+
return true;
|
|
26276
|
+
}
|
|
26277
|
+
}
|
|
26278
|
+
else if (t && typeof t === "object" && "start" in t && "end" in t) {
|
|
26279
|
+
const startParts = parseTimeHelper(t.start).parts;
|
|
26280
|
+
const endParts = parseTimeHelper(t.end).parts;
|
|
26281
|
+
if (startParts && endParts) {
|
|
26282
|
+
const timeVal = hour * 3600 + minute * 60 + second;
|
|
26283
|
+
const startVal = startParts.hour * 3600 + startParts.minute * 60 + startParts.second;
|
|
26284
|
+
const endVal = endParts.hour * 3600 + endParts.minute * 60 + endParts.second;
|
|
26285
|
+
if (timeVal >= startVal && timeVal <= endVal) {
|
|
26286
|
+
return true;
|
|
26287
|
+
}
|
|
26288
|
+
}
|
|
26289
|
+
}
|
|
26290
|
+
}
|
|
26291
|
+
if (this.min) {
|
|
26292
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
26293
|
+
if (this.minTime) {
|
|
26294
|
+
const minHour = this.minTime.getHours();
|
|
26295
|
+
const minMinute = this.minTime.getMinutes();
|
|
26296
|
+
const minSecond = this.minTime.getSeconds();
|
|
26297
|
+
if (type === "hour") {
|
|
26298
|
+
const highlightedMinute = (_a = this.selectedMinute) !== null && _a !== void 0 ? _a : minMinute;
|
|
26299
|
+
const highlightedSecond = (_b = this.selectedSecond) !== null && _b !== void 0 ? _b : minSecond;
|
|
26300
|
+
if (hour < minHour ||
|
|
26301
|
+
(hour === minHour && highlightedMinute < minMinute) ||
|
|
26302
|
+
(hour === minHour &&
|
|
26303
|
+
highlightedMinute === minMinute &&
|
|
26304
|
+
highlightedSecond < minSecond)) {
|
|
26305
|
+
return true;
|
|
26306
|
+
}
|
|
26307
|
+
}
|
|
26308
|
+
else if (type === "minute") {
|
|
26309
|
+
if (hour === minHour && minute < minMinute) {
|
|
26310
|
+
return true;
|
|
26311
|
+
}
|
|
26312
|
+
}
|
|
26313
|
+
else if (type === "second") {
|
|
26314
|
+
if (hour === minHour && minute === minMinute && second < minSecond) {
|
|
26315
|
+
return true;
|
|
26316
|
+
}
|
|
26317
|
+
}
|
|
26318
|
+
else {
|
|
26319
|
+
if (hour < minHour ||
|
|
26320
|
+
(hour === minHour && minute < minMinute) ||
|
|
26321
|
+
(hour === minHour && minute === minMinute && second < minSecond)) {
|
|
26322
|
+
return true;
|
|
26323
|
+
}
|
|
26324
|
+
}
|
|
26325
|
+
}
|
|
26326
|
+
}
|
|
26327
|
+
if (this.max) {
|
|
26328
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
26329
|
+
if (this.maxTime) {
|
|
26330
|
+
const maxHour = this.maxTime.getHours();
|
|
26331
|
+
const maxMinute = this.maxTime.getMinutes();
|
|
26332
|
+
const maxSecond = this.maxTime.getSeconds();
|
|
26333
|
+
if (type === "hour") {
|
|
26334
|
+
const selectedMinute = (_c = this.selectedMinute) !== null && _c !== void 0 ? _c : 59;
|
|
26335
|
+
const selectedSecond = (_d = this.selectedSecond) !== null && _d !== void 0 ? _d : 59;
|
|
26336
|
+
if (hour > maxHour ||
|
|
26337
|
+
(hour === maxHour && selectedMinute > maxMinute) ||
|
|
26338
|
+
(hour === maxHour &&
|
|
26339
|
+
selectedMinute === maxMinute &&
|
|
26340
|
+
selectedSecond > maxSecond)) {
|
|
26341
|
+
return true;
|
|
26342
|
+
}
|
|
26343
|
+
}
|
|
26344
|
+
else if (type === "minute") {
|
|
26345
|
+
if (hour === maxHour && minute > maxMinute) {
|
|
26346
|
+
return true;
|
|
26347
|
+
}
|
|
26348
|
+
}
|
|
26349
|
+
else if (type === "second") {
|
|
26350
|
+
if (hour === maxHour && minute === maxMinute && second > maxSecond) {
|
|
26351
|
+
return true;
|
|
26352
|
+
}
|
|
26353
|
+
}
|
|
26354
|
+
else {
|
|
26355
|
+
if (hour > maxHour ||
|
|
26356
|
+
(hour === maxHour && minute > maxMinute) ||
|
|
26357
|
+
(hour === maxHour && minute === maxMinute && second > maxSecond)) {
|
|
26358
|
+
return true;
|
|
26359
|
+
}
|
|
26360
|
+
}
|
|
26361
|
+
}
|
|
26362
|
+
}
|
|
26363
|
+
return false;
|
|
26364
|
+
};
|
|
26365
|
+
this.handleColumnKeyDown = (type, event) => {
|
|
26366
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
26367
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26368
|
+
const idx = COLUMN_TYPES.indexOf(type);
|
|
26369
|
+
if (!columns)
|
|
26370
|
+
return;
|
|
26371
|
+
const values = this.getColumnValues(type);
|
|
26372
|
+
const selected = this.getSelectedValue(type);
|
|
26373
|
+
const col = columns[idx];
|
|
26374
|
+
if (!col)
|
|
26375
|
+
return;
|
|
26376
|
+
const selectHighlighted = () => {
|
|
26377
|
+
const highlighted = this.getHighlightedValue(type, col);
|
|
26378
|
+
if (highlighted !== null) {
|
|
26379
|
+
this.handleSelect(type, highlighted);
|
|
26380
|
+
}
|
|
26381
|
+
else if (values.length > 0) {
|
|
26382
|
+
this.handleSelect(type, values[0]);
|
|
26383
|
+
}
|
|
26384
|
+
};
|
|
26385
|
+
switch (event.key) {
|
|
26386
|
+
case "Enter":
|
|
26387
|
+
case " ":
|
|
26388
|
+
event.preventDefault();
|
|
26389
|
+
selectHighlighted();
|
|
26390
|
+
return;
|
|
26391
|
+
case "ArrowRight":
|
|
26392
|
+
event.preventDefault();
|
|
26393
|
+
selectHighlighted();
|
|
26394
|
+
if (idx < columns.length - 1) {
|
|
26395
|
+
(_b = columns[idx + 1]) === null || _b === void 0 ? void 0 : _b.focus();
|
|
26396
|
+
}
|
|
26397
|
+
return;
|
|
26398
|
+
case "ArrowLeft":
|
|
26399
|
+
event.preventDefault();
|
|
26400
|
+
if (idx > 0)
|
|
26401
|
+
(_c = columns[idx - 1]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
26402
|
+
return;
|
|
26403
|
+
case "Tab":
|
|
26404
|
+
if (event.shiftKey) {
|
|
26405
|
+
if (idx === 0) {
|
|
26406
|
+
return;
|
|
26407
|
+
}
|
|
26408
|
+
else {
|
|
26409
|
+
event.preventDefault();
|
|
26410
|
+
(_d = columns[idx - 1]) === null || _d === void 0 ? void 0 : _d.focus();
|
|
26411
|
+
}
|
|
26412
|
+
}
|
|
26413
|
+
else {
|
|
26414
|
+
event.preventDefault();
|
|
26415
|
+
selectHighlighted();
|
|
26416
|
+
this.announceSelectedColumn(type);
|
|
26417
|
+
if (idx < columns.length - 1) {
|
|
26418
|
+
(_e = columns[idx + 1]) === null || _e === void 0 ? void 0 : _e.focus();
|
|
26419
|
+
}
|
|
26420
|
+
else {
|
|
26421
|
+
(_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();
|
|
26422
|
+
this.updateAriaLiveMessage();
|
|
26423
|
+
}
|
|
26424
|
+
}
|
|
26425
|
+
return;
|
|
26426
|
+
case "ArrowUp":
|
|
26427
|
+
case "ArrowDown": {
|
|
26428
|
+
let idxInValues = values.findIndex((v) => v === selected);
|
|
26429
|
+
if (idxInValues === -1)
|
|
26430
|
+
idxInValues = 0;
|
|
26431
|
+
let newIdx = idxInValues;
|
|
26432
|
+
const direction = event.key === "ArrowUp" ? -1 : 1;
|
|
26433
|
+
const maxIdx = values.length - 1;
|
|
26434
|
+
do {
|
|
26435
|
+
newIdx += direction;
|
|
26436
|
+
} while (newIdx >= 0 &&
|
|
26437
|
+
newIdx <= maxIdx &&
|
|
26438
|
+
(() => {
|
|
26439
|
+
var _a, _b, _c;
|
|
26440
|
+
if (type === "hour" || type === "minute" || type === "second") {
|
|
26441
|
+
const hour = type === "hour"
|
|
26442
|
+
? values[newIdx]
|
|
26443
|
+
: (_a = this.selectedHour) !== null && _a !== void 0 ? _a : 0;
|
|
26444
|
+
const minute = type === "minute"
|
|
26445
|
+
? values[newIdx]
|
|
26446
|
+
: (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : 0;
|
|
26447
|
+
const second = type === "second"
|
|
26448
|
+
? values[newIdx]
|
|
26449
|
+
: (_c = this.selectedSecond) !== null && _c !== void 0 ? _c : 0;
|
|
26450
|
+
return this.isTimeDisabled(hour, minute, second);
|
|
26451
|
+
}
|
|
26452
|
+
return false;
|
|
26453
|
+
})());
|
|
26454
|
+
this.ariaLiveMessage = `Selected ${type}: ${values[newIdx]}`;
|
|
26455
|
+
if (newIdx >= 0 && newIdx <= maxIdx && newIdx !== idxInValues) {
|
|
26456
|
+
this.handleSelect(type, values[newIdx]);
|
|
26457
|
+
}
|
|
26458
|
+
return;
|
|
26459
|
+
}
|
|
26460
|
+
default:
|
|
26461
|
+
return;
|
|
26462
|
+
}
|
|
26463
|
+
};
|
|
26464
|
+
this.renderColumn = (type, values, selected) => {
|
|
26465
|
+
const isTimeColumn = type === "hour" || type === "minute" || type === "second";
|
|
26466
|
+
const isPeriodColumn = type === "period";
|
|
26467
|
+
const headerLabel = this.getHeaderLabel(type);
|
|
26468
|
+
const topSpacerCount = 2;
|
|
26469
|
+
let bottomSpacerCount = 6;
|
|
26470
|
+
if (this.size === "large") {
|
|
26471
|
+
bottomSpacerCount = 5;
|
|
26472
|
+
}
|
|
26473
|
+
else if (this.size === "small") {
|
|
26474
|
+
bottomSpacerCount = 8;
|
|
26475
|
+
}
|
|
26476
|
+
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: {
|
|
26477
|
+
"ic-time-selector-column": true,
|
|
26478
|
+
"ic-time-selector-column-period": isPeriodColumn,
|
|
26479
|
+
}, 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) => {
|
|
26480
|
+
var _a, _b, _c;
|
|
26481
|
+
let disabled = false;
|
|
26482
|
+
if (isTimeColumn) {
|
|
26483
|
+
const hour = type === "hour" ? val : (_a = this.selectedHour) !== null && _a !== void 0 ? _a : 0;
|
|
26484
|
+
const minute = type === "minute"
|
|
26485
|
+
? val
|
|
26486
|
+
: (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : 0;
|
|
26487
|
+
const second = type === "second"
|
|
26488
|
+
? val
|
|
26489
|
+
: (_c = this.selectedSecond) !== null && _c !== void 0 ? _c : 0;
|
|
26490
|
+
disabled = this.isTimeDisabled(hour, minute, second, type);
|
|
26491
|
+
}
|
|
26492
|
+
return (hAsync("li", { class: {
|
|
26493
|
+
"ic-time-selector-item": true,
|
|
26494
|
+
selected: val === selected,
|
|
26495
|
+
disabled,
|
|
26496
|
+
}, 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"
|
|
26497
|
+
? val.toString().padStart(2, "0")
|
|
26498
|
+
: val)));
|
|
26499
|
+
}), (isTimeColumn || isPeriodColumn) &&
|
|
26500
|
+
this.renderScrollRows(bottomSpacerCount, `${type}-bottom-spacer`)))));
|
|
26501
|
+
};
|
|
26502
|
+
this.handleClear = () => {
|
|
26503
|
+
this.selectedHour = undefined;
|
|
26504
|
+
this.scrollSelectedItem("hour", true);
|
|
26505
|
+
this.selectedMinute = undefined;
|
|
26506
|
+
this.scrollSelectedItem("minute", true);
|
|
26507
|
+
this.selectedSecond = undefined;
|
|
26508
|
+
this.scrollSelectedItem("second", true);
|
|
26509
|
+
this.selectedPeriod = undefined;
|
|
26510
|
+
this.scrollSelectedItem("period", true);
|
|
26511
|
+
this.lastAnnouncedType = undefined;
|
|
26512
|
+
this.lastAnnouncedValue = undefined;
|
|
26513
|
+
this.icChange.emit({
|
|
26514
|
+
value: null,
|
|
26515
|
+
timeString: null,
|
|
26516
|
+
timeObject: {
|
|
26517
|
+
hour: null,
|
|
26518
|
+
minute: null,
|
|
26519
|
+
second: null,
|
|
26520
|
+
period: undefined,
|
|
26521
|
+
},
|
|
26522
|
+
});
|
|
26523
|
+
};
|
|
26524
|
+
this.handleConfirmClick = () => {
|
|
26525
|
+
const hour = this.selectedHour != null ? this.selectedHour : null;
|
|
26526
|
+
const minute = this.selectedMinute != null ? this.selectedMinute : null;
|
|
26527
|
+
const second = this.selectedSecond != null ? this.selectedSecond : null;
|
|
26528
|
+
const period = this.selectedPeriod;
|
|
26529
|
+
const hourStr = hour != null ? hour.toString().padStart(2, "0") : null;
|
|
26530
|
+
const minuteStr = minute != null ? minute.toString().padStart(2, "0") : null;
|
|
26531
|
+
const secondStr = second != null ? second.toString().padStart(2, "0") : null;
|
|
26532
|
+
let allSelected = false;
|
|
26533
|
+
if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26534
|
+
allSelected = hour !== null && minute !== null && second !== null;
|
|
26535
|
+
}
|
|
26536
|
+
else {
|
|
26537
|
+
allSelected = hour !== null && minute !== null;
|
|
26538
|
+
}
|
|
26539
|
+
let value = null;
|
|
26540
|
+
let timeString = null;
|
|
26541
|
+
if (allSelected) {
|
|
26542
|
+
let date24hours = hour;
|
|
26543
|
+
if (hour != null && period && this.timePeriod === "12") {
|
|
26544
|
+
if (period === "PM" && hour < 12)
|
|
26545
|
+
date24hours = hour + 12;
|
|
26546
|
+
if (period === "AM" && hour === 12)
|
|
26547
|
+
date24hours = 0;
|
|
26548
|
+
}
|
|
26549
|
+
value = new Date();
|
|
26550
|
+
value.setHours(date24hours !== null && date24hours !== void 0 ? date24hours : 0);
|
|
26551
|
+
value.setMinutes(minute !== null && minute !== void 0 ? minute : 0);
|
|
26552
|
+
value.setSeconds(second !== null && second !== void 0 ? second : 0);
|
|
26553
|
+
value.setMilliseconds(0);
|
|
26554
|
+
if (this.timeFormat === "HH:MM") {
|
|
26555
|
+
timeString = hourStr + ":" + minuteStr + (period ? " " + period : "");
|
|
26556
|
+
}
|
|
26557
|
+
else if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26558
|
+
timeString =
|
|
26559
|
+
hourStr +
|
|
26560
|
+
":" +
|
|
26561
|
+
minuteStr +
|
|
26562
|
+
":" +
|
|
26563
|
+
secondStr +
|
|
26564
|
+
(period ? " " + period : "");
|
|
26565
|
+
}
|
|
26566
|
+
this.value = value;
|
|
26567
|
+
}
|
|
26568
|
+
this.icChange.emit({
|
|
26569
|
+
value: allSelected ? value : null,
|
|
26570
|
+
timeString: allSelected ? timeString : null,
|
|
26571
|
+
timeObject: Object.assign({ hour: hourStr, minute: minuteStr, second: secondStr }, (period ? { period } : {})),
|
|
26572
|
+
});
|
|
26573
|
+
};
|
|
26574
|
+
}
|
|
26575
|
+
watchMinHandler() {
|
|
26576
|
+
this.minTime = parseTimeHelper(this.min).date;
|
|
26577
|
+
}
|
|
26578
|
+
watchMaxHandler() {
|
|
26579
|
+
this.maxTime = parseTimeHelper(this.max).date;
|
|
26580
|
+
}
|
|
26581
|
+
watchValueHandler() {
|
|
26582
|
+
this.setTime(this.value);
|
|
26583
|
+
setTimeout(() => {
|
|
26584
|
+
this.scrollSelectedItem("hour");
|
|
26585
|
+
this.scrollSelectedItem("minute");
|
|
26586
|
+
if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26587
|
+
this.scrollSelectedItem("second");
|
|
26588
|
+
}
|
|
26589
|
+
if (this.timePeriod === "12") {
|
|
26590
|
+
this.scrollSelectedItem("period");
|
|
26591
|
+
}
|
|
26592
|
+
}, 0);
|
|
26593
|
+
}
|
|
26594
|
+
componentWillLoad() {
|
|
26595
|
+
this.setTime(this.value);
|
|
26596
|
+
}
|
|
26597
|
+
componentDidLoad() {
|
|
26598
|
+
setTimeout(() => {
|
|
26599
|
+
if (this.selectedHour !== undefined && this.selectedHour !== null) {
|
|
26600
|
+
this.scrollSelectedItem("hour");
|
|
26601
|
+
}
|
|
26602
|
+
else if (this.min) {
|
|
26603
|
+
this.scrollMinTime("hour");
|
|
26604
|
+
}
|
|
26605
|
+
if (this.selectedMinute !== undefined && this.selectedMinute !== null) {
|
|
26606
|
+
this.scrollSelectedItem("minute");
|
|
26607
|
+
}
|
|
26608
|
+
else if (this.min) {
|
|
26609
|
+
this.scrollMinTime("minute");
|
|
26610
|
+
}
|
|
26611
|
+
if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26612
|
+
if (this.selectedSecond !== undefined && this.selectedSecond !== null) {
|
|
26613
|
+
this.scrollSelectedItem("second");
|
|
26614
|
+
}
|
|
26615
|
+
else if (this.min) {
|
|
26616
|
+
this.scrollMinTime("second");
|
|
26617
|
+
}
|
|
26618
|
+
}
|
|
26619
|
+
if (this.timePeriod === "12") {
|
|
26620
|
+
if (this.selectedPeriod !== undefined && this.selectedPeriod !== null) {
|
|
26621
|
+
this.scrollSelectedItem("period");
|
|
26622
|
+
}
|
|
26623
|
+
else if (this.min) {
|
|
26624
|
+
this.scrollMinTime("period");
|
|
26625
|
+
}
|
|
26626
|
+
}
|
|
26627
|
+
this.updateAriaLiveMessage();
|
|
26628
|
+
}, 0);
|
|
26629
|
+
}
|
|
26630
|
+
getHeaderLabel(type) {
|
|
26631
|
+
switch (type) {
|
|
26632
|
+
case "hour":
|
|
26633
|
+
return "HH";
|
|
26634
|
+
case "minute":
|
|
26635
|
+
return "MM";
|
|
26636
|
+
case "second":
|
|
26637
|
+
return "SS";
|
|
26638
|
+
default:
|
|
26639
|
+
return "";
|
|
26640
|
+
}
|
|
26641
|
+
}
|
|
26642
|
+
setTime(time) {
|
|
26643
|
+
if (time === null || time === undefined || time === "") {
|
|
26644
|
+
this.handleClear();
|
|
26645
|
+
return;
|
|
26646
|
+
}
|
|
26647
|
+
if (typeof time === "string") {
|
|
26648
|
+
const zuluMatch = time.match(/^([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.[0-9]{1,3})?Z?$/);
|
|
26649
|
+
if (zuluMatch) {
|
|
26650
|
+
this.setTimeParts(Number(zuluMatch[1]), Number(zuluMatch[2]), Number(zuluMatch[3]));
|
|
26651
|
+
}
|
|
26652
|
+
else {
|
|
26653
|
+
const parts = time.split(":");
|
|
26654
|
+
this.setTimeParts(Number(parts[0]) || 0, Number(parts[1]) || 0, Number(parts[2]) || 0);
|
|
26655
|
+
}
|
|
26656
|
+
}
|
|
26657
|
+
else {
|
|
26658
|
+
const { parts } = parseTimeHelper(time);
|
|
26659
|
+
if (parts) {
|
|
26660
|
+
this.setTimeParts(parts.hour, parts.minute, parts.second);
|
|
26661
|
+
}
|
|
26662
|
+
}
|
|
26663
|
+
}
|
|
26664
|
+
renderScrollRows(count, keyPrefix = "scroll-row") {
|
|
26665
|
+
return Array.from({ length: count }).map((_, i) => {
|
|
26666
|
+
const isLast = keyPrefix.endsWith("bottom-spacer")
|
|
26667
|
+
? i === count - 1
|
|
26668
|
+
: false;
|
|
26669
|
+
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}` }));
|
|
26670
|
+
});
|
|
26671
|
+
}
|
|
26672
|
+
scrollSelectedItem(colClass, clear) {
|
|
26673
|
+
var _a;
|
|
26674
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26675
|
+
let colIdx = COLUMN_TYPES.indexOf(colClass);
|
|
26676
|
+
if (colClass === "period" && (columns === null || columns === void 0 ? void 0 : columns.length)) {
|
|
26677
|
+
colIdx = columns.length - 1;
|
|
26678
|
+
}
|
|
26679
|
+
const col = columns === null || columns === void 0 ? void 0 : columns[colIdx];
|
|
26680
|
+
if (col) {
|
|
26681
|
+
const items = col.querySelectorAll(ITEM_CLASS);
|
|
26682
|
+
let selectedIdx = -1;
|
|
26683
|
+
items.forEach((item, idx) => {
|
|
26684
|
+
if (item.classList.contains("selected"))
|
|
26685
|
+
selectedIdx = idx;
|
|
26686
|
+
});
|
|
26687
|
+
if (clear) {
|
|
26688
|
+
selectedIdx = 0;
|
|
26689
|
+
}
|
|
26690
|
+
if (selectedIdx > -1) {
|
|
26691
|
+
const scrollRow = col.querySelector(".ic-time-selector-scroll-row");
|
|
26692
|
+
let resolvedHeight = 0;
|
|
26693
|
+
if (scrollRow) {
|
|
26694
|
+
resolvedHeight = parseFloat(getComputedStyle(scrollRow).height);
|
|
26695
|
+
}
|
|
26696
|
+
const offset = resolvedHeight * 2;
|
|
26697
|
+
const scrollTop = items[selectedIdx].offsetTop - offset;
|
|
26698
|
+
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
26699
|
+
col.scrollTo({
|
|
26700
|
+
top: scrollTop,
|
|
26701
|
+
behavior: prefersReducedMotion ? "instant" : "smooth",
|
|
26702
|
+
});
|
|
26703
|
+
if (clear) {
|
|
26704
|
+
setTimeout(() => {
|
|
26705
|
+
var _a;
|
|
26706
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26707
|
+
if (columns && columns.length > 0) {
|
|
26708
|
+
this.checkIfScrollIsFinished(columns[0], scrollTop);
|
|
26709
|
+
}
|
|
26710
|
+
}, 300);
|
|
26711
|
+
}
|
|
26712
|
+
}
|
|
26713
|
+
}
|
|
26714
|
+
}
|
|
26715
|
+
scrollMinTime(colClass) {
|
|
26716
|
+
var _a;
|
|
26717
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26718
|
+
const colIdx = COLUMN_TYPES.indexOf(colClass);
|
|
26719
|
+
const col = columns === null || columns === void 0 ? void 0 : columns[colIdx];
|
|
26720
|
+
if (!col)
|
|
26721
|
+
return;
|
|
26722
|
+
const items = col.querySelectorAll(ITEM_CLASS);
|
|
26723
|
+
let minHour = 0, minMinute = 0, minSecond = 0;
|
|
26724
|
+
if (this.minTime) {
|
|
26725
|
+
minHour = this.minTime.getHours() + 2;
|
|
26726
|
+
minMinute = this.minTime.getMinutes() + 2;
|
|
26727
|
+
minSecond = this.minTime.getSeconds();
|
|
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
|
+
minSecond = minDate.getSeconds();
|
|
26735
|
+
}
|
|
26736
|
+
}
|
|
26737
|
+
let targetIdx = -1;
|
|
26738
|
+
const values = this.getColumnValues(colClass);
|
|
26739
|
+
if (colClass === "hour") {
|
|
26740
|
+
targetIdx = values.findIndex((v) => v === minHour);
|
|
26741
|
+
}
|
|
26742
|
+
else if (colClass === "minute") {
|
|
26743
|
+
targetIdx = values.findIndex((v) => v === minMinute);
|
|
26744
|
+
}
|
|
26745
|
+
else if (colClass === "second") {
|
|
26746
|
+
targetIdx = values.findIndex((v) => v === minSecond);
|
|
26747
|
+
}
|
|
26748
|
+
else if (colClass === "period") {
|
|
26749
|
+
let period = "AM";
|
|
26750
|
+
if (this.timePeriod === "12") {
|
|
26751
|
+
if (minHour === 0) {
|
|
26752
|
+
period = "AM";
|
|
26753
|
+
}
|
|
26754
|
+
else if (minHour === 12) {
|
|
26755
|
+
period = "PM";
|
|
26756
|
+
}
|
|
26757
|
+
else if (minHour > 12) {
|
|
26758
|
+
period = "PM";
|
|
26759
|
+
}
|
|
26760
|
+
else {
|
|
26761
|
+
period = "AM";
|
|
26762
|
+
}
|
|
26763
|
+
}
|
|
26764
|
+
targetIdx = values.findIndex((v) => v === period);
|
|
26765
|
+
}
|
|
26766
|
+
if (targetIdx > -1) {
|
|
26767
|
+
const scrollRow = col.querySelector(".ic-time-selector-scroll-row");
|
|
26768
|
+
let resolvedHeight = 0;
|
|
26769
|
+
if (scrollRow) {
|
|
26770
|
+
resolvedHeight = parseFloat(getComputedStyle(scrollRow).height);
|
|
26771
|
+
}
|
|
26772
|
+
const offset = resolvedHeight * 2;
|
|
26773
|
+
const scrollTop = items[targetIdx].offsetTop - offset;
|
|
26774
|
+
const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
26775
|
+
col.scrollTo({
|
|
26776
|
+
top: scrollTop,
|
|
26777
|
+
behavior: prefersReducedMotion ? "instant" : "smooth",
|
|
26778
|
+
});
|
|
26779
|
+
}
|
|
26780
|
+
}
|
|
26781
|
+
announceSelectedColumn(type) {
|
|
26782
|
+
const value = this.getSelectedValue(type);
|
|
26783
|
+
if (value !== null &&
|
|
26784
|
+
value !== undefined &&
|
|
26785
|
+
(type !== this.lastAnnouncedType || value !== this.lastAnnouncedValue)) {
|
|
26786
|
+
this.ariaLiveMessage = `Selected ${type}: ${value}`;
|
|
26787
|
+
}
|
|
26788
|
+
else {
|
|
26789
|
+
this.ariaLiveMessage = "";
|
|
26790
|
+
}
|
|
26791
|
+
this.lastAnnouncedType = type;
|
|
26792
|
+
this.lastAnnouncedValue = value;
|
|
26793
|
+
}
|
|
26794
|
+
getColumnValues(type) {
|
|
26795
|
+
if (type === "hour")
|
|
26796
|
+
return this.timePeriod === "12"
|
|
26797
|
+
? Array.from({ length: 12 }, (_, i) => i + 1)
|
|
26798
|
+
: Array.from({ length: 24 }, (_, i) => i);
|
|
26799
|
+
if (type === "minute")
|
|
26800
|
+
return this.minutes;
|
|
26801
|
+
if (type === "second")
|
|
26802
|
+
return this.seconds;
|
|
26803
|
+
if (type === "period")
|
|
26804
|
+
return this.periods;
|
|
26805
|
+
return [];
|
|
26806
|
+
}
|
|
26807
|
+
getSelectedValue(type) {
|
|
26808
|
+
var _a, _b, _c, _d;
|
|
26809
|
+
if (type === "hour")
|
|
26810
|
+
return (_a = this.selectedHour) !== null && _a !== void 0 ? _a : null;
|
|
26811
|
+
if (type === "minute")
|
|
26812
|
+
return (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : null;
|
|
26813
|
+
if (type === "second")
|
|
26814
|
+
return (_c = this.selectedSecond) !== null && _c !== void 0 ? _c : null;
|
|
26815
|
+
if (type === "period")
|
|
26816
|
+
return (_d = this.selectedPeriod) !== null && _d !== void 0 ? _d : null;
|
|
26817
|
+
return null;
|
|
26818
|
+
}
|
|
26819
|
+
getHighlightedValue(type, col) {
|
|
26820
|
+
var _a, _b, _c;
|
|
26821
|
+
const items = Array.from(col.querySelectorAll(ITEM_CLASS));
|
|
26822
|
+
const realItems = items.filter((item) => !item.classList.contains("ic-time-selector-scroll-row"));
|
|
26823
|
+
if (realItems.length === 0)
|
|
26824
|
+
return null;
|
|
26825
|
+
const highlightTop = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-time-selector-highlight-top");
|
|
26826
|
+
const highlightBottom = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(".ic-time-selector-highlight-bottom");
|
|
26827
|
+
if (!highlightTop || !highlightBottom)
|
|
26828
|
+
return null;
|
|
26829
|
+
const topRect = highlightTop.getBoundingClientRect();
|
|
26830
|
+
const bottomRect = highlightBottom.getBoundingClientRect();
|
|
26831
|
+
const highlightStart = topRect.bottom;
|
|
26832
|
+
const highlightEnd = bottomRect.top;
|
|
26833
|
+
for (const item of realItems) {
|
|
26834
|
+
const itemRect = item.getBoundingClientRect();
|
|
26835
|
+
const itemCenter = itemRect.top + itemRect.height / 2;
|
|
26836
|
+
if (itemCenter >= highlightStart && itemCenter <= highlightEnd) {
|
|
26837
|
+
const key = item.getAttribute("key");
|
|
26838
|
+
if (key) {
|
|
26839
|
+
const valStr = key.replace(`${type}-val-`, "");
|
|
26840
|
+
if (type === "hour" || type === "minute" || type === "second") {
|
|
26841
|
+
return Number(valStr);
|
|
26842
|
+
}
|
|
26843
|
+
else {
|
|
26844
|
+
return valStr;
|
|
26845
|
+
}
|
|
26846
|
+
}
|
|
26847
|
+
const text = (_c = item.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
26848
|
+
if (type === "hour" || type === "minute" || type === "second") {
|
|
26849
|
+
return text ? Number(text) : null;
|
|
26850
|
+
}
|
|
26851
|
+
else {
|
|
26852
|
+
return text;
|
|
26853
|
+
}
|
|
26854
|
+
}
|
|
26855
|
+
}
|
|
26856
|
+
return null;
|
|
26857
|
+
}
|
|
26858
|
+
updateAriaLiveMessage() {
|
|
26859
|
+
const hourStr = this.selectedHour != null
|
|
26860
|
+
? this.selectedHour.toString().padStart(2, "0")
|
|
26861
|
+
: null;
|
|
26862
|
+
const minuteStr = this.selectedMinute != null
|
|
26863
|
+
? this.selectedMinute.toString().padStart(2, "0")
|
|
26864
|
+
: null;
|
|
26865
|
+
const secondStr = this.selectedSecond != null
|
|
26866
|
+
? this.selectedSecond.toString().padStart(2, "0")
|
|
26867
|
+
: null;
|
|
26868
|
+
let timeString = "";
|
|
26869
|
+
let allSelected = false;
|
|
26870
|
+
if (this.timeFormat === "HH:MM") {
|
|
26871
|
+
allSelected = hourStr !== null && minuteStr !== null;
|
|
26872
|
+
if (allSelected) {
|
|
26873
|
+
timeString =
|
|
26874
|
+
hourStr +
|
|
26875
|
+
":" +
|
|
26876
|
+
minuteStr +
|
|
26877
|
+
(this.selectedPeriod ? " " + this.selectedPeriod : "");
|
|
26878
|
+
}
|
|
26879
|
+
}
|
|
26880
|
+
else if (this.timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26881
|
+
allSelected =
|
|
26882
|
+
hourStr !== null && minuteStr !== null && secondStr !== null;
|
|
26883
|
+
if (allSelected) {
|
|
26884
|
+
timeString =
|
|
26885
|
+
hourStr +
|
|
26886
|
+
":" +
|
|
26887
|
+
minuteStr +
|
|
26888
|
+
":" +
|
|
26889
|
+
secondStr +
|
|
26890
|
+
(this.selectedPeriod ? " " + this.selectedPeriod : "");
|
|
26891
|
+
}
|
|
26892
|
+
}
|
|
26893
|
+
this.ariaLiveMessage =
|
|
26894
|
+
allSelected && timeString ? `Selected time: ${timeString}` : "";
|
|
26895
|
+
}
|
|
26896
|
+
render() {
|
|
26897
|
+
var _a, _b, _c, _d;
|
|
26898
|
+
const hours = this.timePeriod === "12"
|
|
26899
|
+
? Array.from({ length: 12 }, (_, i) => i + 1)
|
|
26900
|
+
: Array.from({ length: 24 }, (_, i) => i);
|
|
26901
|
+
const timeFormat = this.timeFormat || this.DEFAULT_TIME_FORMAT;
|
|
26902
|
+
const columns = [
|
|
26903
|
+
this.renderColumn("hour", hours, (_a = this.selectedHour) !== null && _a !== void 0 ? _a : null),
|
|
26904
|
+
this.renderColumn("minute", this.minutes, (_b = this.selectedMinute) !== null && _b !== void 0 ? _b : null),
|
|
26905
|
+
];
|
|
26906
|
+
if (timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26907
|
+
columns.push(this.renderColumn("second", this.seconds, (_c = this.selectedSecond) !== null && _c !== void 0 ? _c : null));
|
|
26908
|
+
}
|
|
26909
|
+
let colonSelectedStates = [];
|
|
26910
|
+
if (timeFormat === this.DEFAULT_TIME_FORMAT) {
|
|
26911
|
+
colonSelectedStates = [
|
|
26912
|
+
this.selectedHour !== undefined && this.selectedMinute !== undefined,
|
|
26913
|
+
this.selectedMinute !== undefined && this.selectedSecond !== undefined,
|
|
26914
|
+
];
|
|
26915
|
+
}
|
|
26916
|
+
else {
|
|
26917
|
+
colonSelectedStates = [
|
|
26918
|
+
this.selectedHour !== undefined && this.selectedMinute !== undefined,
|
|
26919
|
+
];
|
|
26920
|
+
}
|
|
26921
|
+
const isInPicker = this.el.closest("ic-time-picker") !== null;
|
|
26922
|
+
const { size, theme, timePeriod } = this;
|
|
26923
|
+
return (hAsync(Host, { key: '0a25adbaeba34a4dcd3ef15edd5076d8ed4ad0a5', class: {
|
|
26924
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
26925
|
+
[`ic-time-selector-${size}`]: true,
|
|
26926
|
+
} }, hAsync("div", { key: 'e65b452fb22c989b634fd1d8839ecf3bcb5c8a96', 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: {
|
|
26927
|
+
"ic-time-selector-dialog-container": true,
|
|
26928
|
+
} }, hAsync("div", { key: '178213ede67d838f70b8bd164aac6481a97b03eb', class: "ic-time-selector-highlight-lines" }, hAsync("div", { key: 'c10de931f6cba5496de152f1fdfc87a118413e08', class: "ic-time-selector-header-border" }), hAsync("div", { key: '440b09028d77256e9b0bb18cc2f24550eac5f30d', class: {
|
|
26929
|
+
"ic-time-selector-highlight": true,
|
|
26930
|
+
"ic-time-selector-highlight-top": true,
|
|
26931
|
+
} }), hAsync("div", { key: 'eed615b5bbd35c5b0d0a5b3625710b00675856ab', class: "ic-time-selector-columns" }, columns.map((col, idx) => [
|
|
26932
|
+
col,
|
|
26933
|
+
idx < columns.length - 1 ? (hAsync("ic-typography", { class: {
|
|
26934
|
+
"ic-time-selector-colon": true,
|
|
26935
|
+
"ic-time-selector-colon-selected": colonSelectedStates[idx],
|
|
26936
|
+
}, variant: "subtitle-small", "aria-hidden": "true", key: `colon-${idx}` }, ":")) : null,
|
|
26937
|
+
]), timePeriod !== "24" &&
|
|
26938
|
+
this.renderColumn("period", this.periods, (_d = this.selectedPeriod) !== null && _d !== void 0 ? _d : null)), hAsync("div", { key: '8b2b12a4e907c615b7e79d9801d5840d522e775d', class: {
|
|
26939
|
+
"ic-time-selector-highlight": true,
|
|
26940
|
+
"ic-time-selector-highlight-bottom": true,
|
|
26941
|
+
} })), hAsync("div", { key: '0d3a320315b1cf0557b8d281b6e468ef517b7ff4', class: "ic-time-selector-actions" }, hAsync("ic-button", { key: '70d842672493c3a63ced6571d7e1ab6afba2abdf', variant: "icon-tertiary", "aria-label": "Clear time", class: {
|
|
26942
|
+
"ic-time-selector-clear-btn": true,
|
|
26943
|
+
}, onClick: this.handleClear, disabled: this.selectedHour === undefined &&
|
|
26944
|
+
this.selectedMinute === undefined &&
|
|
26945
|
+
this.selectedSecond === undefined &&
|
|
26946
|
+
this.selectedPeriod === undefined, size: size, tabIndex: 0, onKeyDown: (e) => {
|
|
26947
|
+
var _a;
|
|
26948
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
26949
|
+
e.preventDefault();
|
|
26950
|
+
const columns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(COLUMN_CLASS);
|
|
26951
|
+
if (columns && columns.length > 0) {
|
|
26952
|
+
const lastCol = columns[columns.length - 1];
|
|
26953
|
+
lastCol === null || lastCol === void 0 ? void 0 : lastCol.focus();
|
|
26954
|
+
}
|
|
26955
|
+
}
|
|
26956
|
+
} }, hAsync("span", { key: '45c66f9552c10be9e3b466342c6e7d22fd7df90b', "aria-hidden": "true", innerHTML: Clear })), hAsync("ic-button", { key: 'eae553c514bc635a71220b969044df8d32e457bb', variant: "icon-tertiary", "aria-label": "Select time", class: "ic-time-selector-check-btn", onClick: this.handleConfirmClick, disabled: this.selectedHour === undefined &&
|
|
26957
|
+
this.selectedMinute === undefined &&
|
|
26958
|
+
this.selectedSecond === undefined &&
|
|
26959
|
+
this.selectedPeriod === undefined, size: size, tabIndex: 0 }, hAsync("span", { key: 'f586f8d1b2659d3cf2f0f8e7365ebcd9828ebf23', "aria-hidden": "true", innerHTML: Check })))), hAsync("div", { key: '27dd2db88615040635a0b61b9e785d50a488d90a', class: "sr-only", "aria-live": "polite" }, this.ariaLiveMessage)));
|
|
26960
|
+
}
|
|
26961
|
+
get el() { return getElement(this); }
|
|
26962
|
+
static get watchers() { return {
|
|
26963
|
+
"min": ["watchMinHandler"],
|
|
26964
|
+
"max": ["watchMaxHandler"],
|
|
26965
|
+
"value": ["watchValueHandler"]
|
|
26966
|
+
}; }
|
|
26967
|
+
static get style() { return IcTimeSelectorStyle0; }
|
|
26968
|
+
static get cmpMeta() { return {
|
|
26969
|
+
"$flags$": 9,
|
|
26970
|
+
"$tagName$": "ic-time-selector",
|
|
26971
|
+
"$members$": {
|
|
26972
|
+
"disableTimes": [16],
|
|
26973
|
+
"min": [1],
|
|
26974
|
+
"max": [1],
|
|
26975
|
+
"size": [1],
|
|
26976
|
+
"theme": [1],
|
|
26977
|
+
"timeFormat": [1, "time-format"],
|
|
26978
|
+
"timePeriod": [1, "time-period"],
|
|
26979
|
+
"value": [1025],
|
|
26980
|
+
"selectedHour": [32],
|
|
26981
|
+
"selectedMinute": [32],
|
|
26982
|
+
"selectedSecond": [32],
|
|
26983
|
+
"selectedPeriod": [32],
|
|
26984
|
+
"ariaLiveMessage": [32]
|
|
26985
|
+
},
|
|
26986
|
+
"$listeners$": undefined,
|
|
26987
|
+
"$lazyBundleId$": "-",
|
|
26988
|
+
"$attrsToReflect$": []
|
|
26989
|
+
}; }
|
|
26990
|
+
}
|
|
26991
|
+
|
|
26992
|
+
const icToastCss = "/*! 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}@media (prefers-reduced-motion: no-preference){:host{animation:fadein var(--ic-transition-duration-slow) ease-in-out}:host(.hidden){animation:fadeout var(--ic-transition-duration-slow) ease-in-out}}:host{--bottom-position:var(--ic-space-xl);position:fixed;bottom:var(--bottom-position);left:50%;transform:translate(-50%);z-index:var(--ic-z-index-toast)}:host(.ic-toast-hidden){display:none}:host(:focus){outline:none}.container{max-width:32.5rem;min-width:18rem;box-shadow:var(--ic-elevation-overlay);min-height:3.5rem;background-color:var(--ic-toast-background);display:flex;align-items:center;position:relative;border:var(--ic-space-1px) solid var(--ic-color-border-neutral-grey);border-radius:var(--ic-border-radius)}.toast-icon-container{height:100%;display:flex;align-items:center}.container-neutral{border-color:var(--ic-toast-status-neutral)}.container-info{border-color:var(--ic-toast-status-info)}.container-warning{border-color:var(--ic-toast-status-warning)}.container-error{border-color:var(--ic-toast-status-error)}.container-success{border-color:var(--ic-toast-status-success)}.container-ai{border-color:var(--ic-toast-status-ai)}.divider{height:100%;width:var(--ic-space-xs);position:absolute;border-radius:0}.divider-neutral{background-color:var(--ic-toast-status-neutral)}.divider-info{background-color:var(--ic-toast-status-info)}.divider-warning{background-color:var(--ic-toast-status-warning)}.divider-error{background-color:var(--ic-toast-status-error)}.divider-success{background-color:var(--ic-toast-status-success)}.divider-ai{background-color:var(--ic-toast-status-ai)}.toast-icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}:host(.ic-toast-variant-neutral) .toast-icon svg,::slotted(svg){fill:var(--ic-toast-icon-neutral)}:host(.ic-toast-variant-info) .toast-icon svg{fill:var(--ic-toast-icon-info)}:host(.ic-toast-variant-warning) .toast-icon svg{fill:var(--ic-toast-icon-warning)}:host(.ic-toast-variant-error) .toast-icon svg{fill:var(--ic-toast-icon-error)}:host(.ic-toast-variant-success) .toast-icon svg{fill:var(--ic-toast-icon-success)}:host(.ic-toast-variant-ai) .toast-icon svg{fill:var(--ic-toast-icon-ai)}.toast-content{margin-left:var(--ic-space-xs);width:100%}.no-icon{margin-left:var(--ic-space-md)}.toast-text{padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0}.toast-heading{--ic-typography-color:var(--ic-toast-title)}.toast-message{--ic-typography-color:var(--ic-toast-description)}.toast-action-container{padding-bottom:var(--ic-space-md)}#dismiss-button{padding:var(--ic-space-xs)}#dismiss-button>svg{color:var(--ic-toast-dismiss-button)}ic-loading-indicator{--outer-color:transparent;--inner-color:var(--ic-action-monochrome)}.toast-dismiss-timer{padding:var(--ic-space-sm)}@media (max-width: 576px){:host{--bottom-position:var(--ic-space-lg);width:calc(100% - 2 * var(--ic-space-md))}}@media (min-width: 993px){:host{--bottom-position:calc(var(--ic-space-xl) + var(--ic-space-xs))}}@media (forced-colors: active){.container{border:var(--ic-border-hc)}}@keyframes fadein{from{bottom:0;opacity:0}to{bottom:var(--bottom-position);opacity:1}}@keyframes fadeout{from{bottom:var(--bottom-position);opacity:1}to{bottom:0;opacity:0}}";
|
|
25766
26993
|
var IcToastStyle0 = icToastCss;
|
|
25767
26994
|
|
|
25768
26995
|
const AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;
|
|
@@ -25779,6 +27006,10 @@ class Toast {
|
|
|
25779
27006
|
this.interactiveElements = [];
|
|
25780
27007
|
this.timerProgress = 100;
|
|
25781
27008
|
this.visible = false;
|
|
27009
|
+
/**
|
|
27010
|
+
* 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.
|
|
27011
|
+
*/
|
|
27012
|
+
this.theme = "inherit";
|
|
25782
27013
|
/**
|
|
25783
27014
|
* If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)
|
|
25784
27015
|
* (NOTE: Has a minimum value of `5000ms`)
|
|
@@ -25966,17 +27197,21 @@ class Toast {
|
|
|
25966
27197
|
: document.activeElement === targetEl;
|
|
25967
27198
|
}
|
|
25968
27199
|
render() {
|
|
25969
|
-
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
|
25970
|
-
return (hAsync(Host, { key: '
|
|
27200
|
+
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, theme, } = this;
|
|
27201
|
+
return (hAsync(Host, { key: '9934a16e3f339bec971138aec7d46092216d5554', class: {
|
|
27202
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
25971
27203
|
["ic-toast-hidden"]: !visible,
|
|
25972
27204
|
[`ic-toast-variant-${variant}`]: variant !== undefined,
|
|
25973
|
-
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '
|
|
27205
|
+
}, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '97a03d41017adf58f826e42291906b3225ab091c', class: {
|
|
27206
|
+
["container"]: true,
|
|
27207
|
+
[`container-${variant}`]: variant !== undefined,
|
|
27208
|
+
} }, variant && visible && (hAsync("div", { key: '289b4544bee27fd02b20deae22b5bbb822844c9e', class: "toast-icon-container" }, hAsync("div", { key: '03dae21944b95c1d96e2a6b2480b0c20e12ccbd7', class: {
|
|
25974
27209
|
["divider"]: true,
|
|
25975
27210
|
[`divider-${variant}`]: true,
|
|
25976
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
|
27211
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '6191a3f5c39adfa8c5ab4ca5c9e35fd214e00fa2', class: {
|
|
25977
27212
|
["toast-content"]: true,
|
|
25978
27213
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
|
25979
|
-
} }, hAsync("div", { key: '
|
|
27214
|
+
} }, hAsync("div", { key: '1e08fbbfa2ba920c1b90f2eaf35aa801830d47b0', class: "toast-text" }, hAsync("ic-typography", { key: 'ebc61cb12c3bdd05511ae567d09f5504ad010c47', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '48ffe5377a09237ac490c8d4a62e962979ce6dc0', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '7fbffa0f6e6d30389a9d0e5a3b5e1c279911ed9a' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '83ba75d3d7aa54caf13cc7723defee623103dffc', class: "toast-action-container" }, hAsync("slot", { key: '18367dd5f8acdc33129ead64728abc71a82f7e57', 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 })))));
|
|
25980
27215
|
}
|
|
25981
27216
|
get el() { return getElement(this); }
|
|
25982
27217
|
static get watchers() { return {
|
|
@@ -25988,6 +27223,7 @@ class Toast {
|
|
|
25988
27223
|
"$flags$": 9,
|
|
25989
27224
|
"$tagName$": "ic-toast",
|
|
25990
27225
|
"$members$": {
|
|
27226
|
+
"theme": [1],
|
|
25991
27227
|
"autoDismissTimeout": [1026, "auto-dismiss-timeout"],
|
|
25992
27228
|
"dismissButtonAriaLabel": [1, "dismiss-button-aria-label"],
|
|
25993
27229
|
"dismissMode": [1025, "dismiss-mode"],
|
|
@@ -26275,6 +27511,7 @@ class ToggleButtonGroup {
|
|
|
26275
27511
|
key: null,
|
|
26276
27512
|
shift: false,
|
|
26277
27513
|
};
|
|
27514
|
+
this.externallySetActiveToggle = null;
|
|
26278
27515
|
/**
|
|
26279
27516
|
* The accessible label of the toggle button group component to provide context for screen reader users.
|
|
26280
27517
|
*/
|
|
@@ -26358,7 +27595,15 @@ class ToggleButtonGroup {
|
|
|
26358
27595
|
key !== "ArrowUp")
|
|
26359
27596
|
return;
|
|
26360
27597
|
const toggleButtonOptions = this.getAllToggleButtons();
|
|
26361
|
-
|
|
27598
|
+
let targetToggle;
|
|
27599
|
+
if (this.externallySetActiveToggle) {
|
|
27600
|
+
targetToggle =
|
|
27601
|
+
toggleButtonOptions[this.getNextItemToSelect(toggleButtonOptions.indexOf(toggleButtonOptions.filter((el) => el === this.externallySetActiveToggle)[0]), key === "ArrowDown" || key === "ArrowRight")];
|
|
27602
|
+
}
|
|
27603
|
+
else {
|
|
27604
|
+
targetToggle =
|
|
27605
|
+
toggleButtonOptions[this.getNextItemToSelect(toggleButtonOptions.indexOf(toggleButtonOptions.filter((el) => el === document.activeElement)[0]), key === "ArrowDown" || key === "ArrowRight")];
|
|
27606
|
+
}
|
|
26362
27607
|
if (this.selectMethod === "auto") {
|
|
26363
27608
|
// trigger selectHandler when unable to add 'target'
|
|
26364
27609
|
targetToggle.checked = true;
|
|
@@ -26468,6 +27713,12 @@ class ToggleButtonGroup {
|
|
|
26468
27713
|
});
|
|
26469
27714
|
}
|
|
26470
27715
|
}
|
|
27716
|
+
/**
|
|
27717
|
+
* @internal Used to enable other components to set the active toggle button when toggle button group is in a shadow dom.
|
|
27718
|
+
*/
|
|
27719
|
+
async setActiveToggle(toggle) {
|
|
27720
|
+
this.externallySetActiveToggle = toggle;
|
|
27721
|
+
}
|
|
26471
27722
|
componentWillLoad() {
|
|
26472
27723
|
if (this.selectType === "multi")
|
|
26473
27724
|
this.selectMethod = "manual";
|
|
@@ -26496,14 +27747,14 @@ class ToggleButtonGroup {
|
|
|
26496
27747
|
}
|
|
26497
27748
|
render() {
|
|
26498
27749
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
|
26499
|
-
return (hAsync(Host, { key: '
|
|
27750
|
+
return (hAsync(Host, { key: '5ae12c9f09c65a04cbe1f19850998c0d942327c8', role: "group", "aria-label": accessibleLabel, tabindex: disabled ? -1 : 0, class: {
|
|
26500
27751
|
"ic-toggle-button-group-disabled": disabled,
|
|
26501
27752
|
"ic-toggle-button-group-full-width": fullWidth,
|
|
26502
27753
|
"ic-toggle-button-group-loading": loading,
|
|
26503
27754
|
"ic-toggle-button-group-monochrome": monochrome,
|
|
26504
27755
|
"ic-toggle-button-group-hide-outline": !outline,
|
|
26505
27756
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
26506
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
|
27757
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '02c4f4cd7df626d4032246bdbcd7e07d2167ba52' })));
|
|
26507
27758
|
}
|
|
26508
27759
|
get el() { return getElement(this); }
|
|
26509
27760
|
static get watchers() { return {
|
|
@@ -26535,7 +27786,9 @@ class ToggleButtonGroup {
|
|
|
26535
27786
|
"theme": [1],
|
|
26536
27787
|
"tooltipPlacement": [1, "tooltip-placement"],
|
|
26537
27788
|
"variant": [513],
|
|
26538
|
-
"lastKeyPressed": [32]
|
|
27789
|
+
"lastKeyPressed": [32],
|
|
27790
|
+
"externallySetActiveToggle": [32],
|
|
27791
|
+
"setActiveToggle": [64]
|
|
26539
27792
|
},
|
|
26540
27793
|
"$listeners$": [[0, "icToggleChecked", "selectHandler"]],
|
|
26541
27794
|
"$lazyBundleId$": "-",
|
|
@@ -27349,7 +28602,7 @@ class TreeItem {
|
|
|
27349
28602
|
rel: this.rel,
|
|
27350
28603
|
target: this.target,
|
|
27351
28604
|
};
|
|
27352
|
-
return (hAsync(Host, { key: '
|
|
28605
|
+
return (hAsync(Host, { key: '2b66767ebcadc7f0d59c0e2309424e01dbc49410', class: {
|
|
27353
28606
|
"ic-tree-item-disabled": disabled,
|
|
27354
28607
|
"ic-tree-item-selected": !disabled && selected,
|
|
27355
28608
|
[`ic-tree-item-${size}`]: size !== "medium",
|
|
@@ -27360,7 +28613,7 @@ class TreeItem {
|
|
|
27360
28613
|
}, 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: {
|
|
27361
28614
|
["arrow-dropdown"]: true,
|
|
27362
28615
|
["tree-item-expanded"]: expanded,
|
|
27363
|
-
}, "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: '
|
|
28616
|
+
}, "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' })))));
|
|
27364
28617
|
}
|
|
27365
28618
|
get el() { return getElement(this); }
|
|
27366
28619
|
static get watchers() { return {
|
|
@@ -27717,14 +28970,14 @@ class TreeView {
|
|
|
27717
28970
|
}
|
|
27718
28971
|
render() {
|
|
27719
28972
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
|
27720
|
-
return (hAsync(Host, { key: '
|
|
28973
|
+
return (hAsync(Host, { key: 'b64c96601e14f028d70d42596ab73c3adcc5c50c', "context-id": this.treeViewId, class: {
|
|
27721
28974
|
[`ic-tree-view-${size}`]: size !== "medium",
|
|
27722
28975
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
27723
28976
|
"ic-tree-view-truncate": truncateHeading,
|
|
27724
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
|
28977
|
+
}, 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: {
|
|
27725
28978
|
"tree-view-header": true,
|
|
27726
28979
|
"with-padding": this.truncateHeading && !isLoaded,
|
|
27727
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
|
28980
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '1e2577f386a2121c89644f395358fb746eb63cd1' })));
|
|
27728
28981
|
}
|
|
27729
28982
|
get el() { return getElement(this); }
|
|
27730
28983
|
static get watchers() { return {
|
|
@@ -28038,6 +29291,7 @@ registerComponents([
|
|
|
28038
29291
|
TextField,
|
|
28039
29292
|
Theme,
|
|
28040
29293
|
TimeInput,
|
|
29294
|
+
TimeSelector,
|
|
28041
29295
|
Toast,
|
|
28042
29296
|
ToastRegion,
|
|
28043
29297
|
ToggleButton,
|