@ukic/canary-web-components 3.0.0-canary.21 → 3.0.0-canary.23
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/README.md +2 -1
- package/dist/cjs/clear-icon-547aa9b9.js +10 -0
- package/dist/cjs/clear-icon-547aa9b9.js.map +1 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/helpers-da852478.js.map +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +116 -0
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +2 -2
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +41 -86
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +4 -4
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +6 -6
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +11 -3
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +63 -68
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +25 -17
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +17 -10
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +4 -4
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +224 -0
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/{ic-input-component-container_3.cjs.entry.js → ic-menu.cjs.entry.js} +41 -140
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -10
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +17 -17
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +13 -13
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-time-input.cjs.entry.js +943 -0
- package/dist/cjs/ic-time-input.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +3 -3
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +15 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +13 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +14 -8
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +23 -15
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-d337cd8a.js +12 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/clock.svg +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ic-data-table/ic-data-table.css +3 -2
- package/dist/collection/components/ic-data-table/ic-data-table.js +62 -68
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js +5 -4
- package/dist/collection/components/ic-data-table/ic-data-table.stories.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +39 -130
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js +24 -12
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +37 -10
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-time-input/ic-time-input.css +648 -0
- package/dist/collection/components/ic-time-input/ic-time-input.js +1600 -0
- package/dist/collection/components/ic-time-input/ic-time-input.js.map +1 -0
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js +320 -0
- package/dist/collection/components/ic-time-input/ic-time-input.stories.js.map +1 -0
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js +45 -0
- package/dist/collection/components/ic-time-input/test/helpers/ic-time-input.js.map +1 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +14 -8
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +23 -15
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/clear-icon.js +8 -0
- package/dist/components/clear-icon.js.map +1 -0
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-action-chip.js +160 -0
- package/dist/components/ic-action-chip.js.map +1 -0
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +2 -2
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +2 -2
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +2 -2
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +3 -3
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox2.js +4 -4
- package/dist/components/ic-checkbox2.js.map +1 -1
- package/dist/components/ic-chip.js +12 -4
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table.js +63 -68
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +25 -17
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +18 -10
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-empty-state2.js +2 -2
- package/dist/components/ic-empty-state2.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +3 -3
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +2 -2
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +6 -6
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu2.js +42 -47
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-button.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 +3 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +4 -4
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +9 -9
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +6 -6
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +4 -4
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +4 -4
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +6 -6
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-time-input.d.ts +11 -0
- package/dist/components/ic-time-input.js +1045 -0
- package/dist/components/ic-time-input.js.map +1 -0
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +17 -4
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +14 -4
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +33 -78
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.js +15 -9
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +24 -16
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +227 -7
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-137dd76e.entry.js → p-00a89919.entry.js} +2 -2
- package/dist/core/{p-137dd76e.entry.js.map → p-00a89919.entry.js.map} +1 -1
- package/dist/core/{p-e253a857.js → p-0f22f41e.js} +2 -2
- package/dist/core/p-0f22f41e.js.map +1 -0
- package/dist/core/{p-97abdbf7.entry.js → p-1521e96b.entry.js} +2 -2
- package/dist/core/{p-97abdbf7.entry.js.map → p-1521e96b.entry.js.map} +1 -1
- package/dist/core/{p-5d987f8f.entry.js → p-153d3597.entry.js} +2 -2
- package/dist/core/{p-5d987f8f.entry.js.map → p-153d3597.entry.js.map} +1 -1
- package/dist/core/{p-4b6818d9.entry.js → p-1cc402b8.entry.js} +2 -2
- package/dist/core/{p-4b6818d9.entry.js.map → p-1cc402b8.entry.js.map} +1 -1
- package/dist/core/{p-8d908a57.entry.js → p-22863d31.entry.js} +2 -2
- package/dist/core/{p-8d908a57.entry.js.map → p-22863d31.entry.js.map} +1 -1
- package/dist/core/{p-c94e7b0b.entry.js → p-27207aa3.entry.js} +2 -2
- package/dist/core/{p-c94e7b0b.entry.js.map → p-27207aa3.entry.js.map} +1 -1
- package/dist/core/{p-2c4bf16f.entry.js → p-2d6a1b50.entry.js} +2 -2
- package/dist/core/{p-2c4bf16f.entry.js.map → p-2d6a1b50.entry.js.map} +1 -1
- package/dist/core/{p-b6b7c15c.entry.js → p-307c13a1.entry.js} +2 -2
- package/dist/core/p-307c13a1.entry.js.map +1 -0
- package/dist/core/{p-2d8900bf.entry.js → p-30b3afb1.entry.js} +2 -2
- package/dist/core/{p-2d8900bf.entry.js.map → p-30b3afb1.entry.js.map} +1 -1
- package/dist/core/{p-bf93baea.entry.js → p-324862f7.entry.js} +2 -2
- package/dist/core/{p-bf93baea.entry.js.map → p-324862f7.entry.js.map} +1 -1
- package/dist/core/{p-0fe08a58.js → p-33927ee1.js} +2 -2
- package/dist/core/{p-1bcf49fa.entry.js → p-369f4536.entry.js} +2 -2
- package/dist/core/p-369f4536.entry.js.map +1 -0
- package/dist/core/{p-b6d1988d.entry.js → p-3a5da30c.entry.js} +2 -2
- package/dist/core/{p-b6d1988d.entry.js.map → p-3a5da30c.entry.js.map} +1 -1
- package/dist/core/{p-826a6c25.entry.js → p-3d10fa12.entry.js} +2 -2
- package/dist/core/{p-826a6c25.entry.js.map → p-3d10fa12.entry.js.map} +1 -1
- package/dist/core/{p-f569a91f.entry.js → p-48127d40.entry.js} +2 -2
- package/dist/core/{p-f569a91f.entry.js.map → p-48127d40.entry.js.map} +1 -1
- package/dist/core/{p-3448c713.entry.js → p-48db785a.entry.js} +2 -2
- package/dist/core/{p-3448c713.entry.js.map → p-48db785a.entry.js.map} +1 -1
- package/dist/core/{p-b27bc1a1.entry.js → p-4b212968.entry.js} +2 -2
- package/dist/core/{p-b27bc1a1.entry.js.map → p-4b212968.entry.js.map} +1 -1
- package/dist/core/p-53d50d9e.entry.js +2 -0
- package/dist/core/p-53d50d9e.entry.js.map +1 -0
- package/dist/core/p-558936fb.entry.js +2 -0
- package/dist/core/p-558936fb.entry.js.map +1 -0
- package/dist/core/{p-64372a57.entry.js → p-593cc594.entry.js} +2 -2
- package/dist/core/{p-64372a57.entry.js.map → p-593cc594.entry.js.map} +1 -1
- package/dist/core/{p-bbf39a76.entry.js → p-666a671b.entry.js} +2 -2
- package/dist/core/{p-bbf39a76.entry.js.map → p-666a671b.entry.js.map} +1 -1
- package/dist/core/{p-8397766e.entry.js → p-726144b4.entry.js} +2 -2
- package/dist/core/{p-8397766e.entry.js.map → p-726144b4.entry.js.map} +1 -1
- package/dist/core/p-74e0f41f.entry.js +2 -0
- package/dist/core/p-74e0f41f.entry.js.map +1 -0
- package/dist/core/{p-0dc0d839.entry.js → p-75f3038c.entry.js} +2 -2
- package/dist/core/{p-0dc0d839.entry.js.map → p-75f3038c.entry.js.map} +1 -1
- package/dist/core/p-7892130d.entry.js +2 -0
- package/dist/core/p-7892130d.entry.js.map +1 -0
- package/dist/core/{p-b6c3cc1c.entry.js → p-7e5e94a9.entry.js} +2 -2
- package/dist/core/p-7e5e94a9.entry.js.map +1 -0
- package/dist/core/p-8048c7da.entry.js +2 -0
- package/dist/core/{p-1e256460.entry.js.map → p-8048c7da.entry.js.map} +1 -1
- package/dist/core/p-80e43591.entry.js +2 -0
- package/dist/core/{p-8cb5deba.entry.js.map → p-80e43591.entry.js.map} +1 -1
- package/dist/core/{p-75901d06.entry.js → p-86ff903d.entry.js} +2 -2
- package/dist/core/{p-ead0acc3.entry.js → p-8908b8e6.entry.js} +2 -2
- package/dist/core/{p-832c7042.entry.js → p-8bf1022e.entry.js} +2 -2
- package/dist/core/{p-90364cef.entry.js → p-8fa7085e.entry.js} +2 -2
- package/dist/core/{p-90364cef.entry.js.map → p-8fa7085e.entry.js.map} +1 -1
- package/dist/core/{p-5237f3ac.entry.js → p-97c437bb.entry.js} +2 -2
- package/dist/core/p-9c8a98e8.entry.js +2 -0
- package/dist/core/p-9c8a98e8.entry.js.map +1 -0
- package/dist/core/{p-0f86ea09.entry.js → p-9f792a31.entry.js} +2 -2
- package/dist/core/{p-0f86ea09.entry.js.map → p-9f792a31.entry.js.map} +1 -1
- package/dist/core/{p-cd8178a9.entry.js → p-abcc90f0.entry.js} +2 -2
- package/dist/core/{p-cd8178a9.entry.js.map → p-abcc90f0.entry.js.map} +1 -1
- package/dist/core/p-ad48c77c.entry.js +2 -0
- package/dist/core/p-ad48c77c.entry.js.map +1 -0
- package/dist/core/p-b0462734.entry.js +2 -0
- package/dist/core/p-b0462734.entry.js.map +1 -0
- package/dist/core/{p-88c5ec78.entry.js → p-b2680959.entry.js} +2 -2
- package/dist/core/{p-88c5ec78.entry.js.map → p-b2680959.entry.js.map} +1 -1
- package/dist/core/{p-b1b27b7e.entry.js → p-b3ac38c5.entry.js} +2 -2
- package/dist/core/{p-b1b27b7e.entry.js.map → p-b3ac38c5.entry.js.map} +1 -1
- package/dist/core/p-b5ef2799.entry.js +2 -0
- package/dist/core/{p-497918fd.entry.js.map → p-b5ef2799.entry.js.map} +1 -1
- package/dist/core/{p-33404c14.entry.js → p-b7a0dc04.entry.js} +2 -2
- package/dist/core/{p-33404c14.entry.js.map → p-b7a0dc04.entry.js.map} +1 -1
- package/dist/core/p-b8938f93.entry.js +2 -0
- package/dist/core/p-b8938f93.entry.js.map +1 -0
- package/dist/core/{p-9097a16a.entry.js → p-b9d4c0db.entry.js} +2 -2
- package/dist/core/{p-9097a16a.entry.js.map → p-b9d4c0db.entry.js.map} +1 -1
- package/dist/core/{p-b3509380.entry.js → p-c4bf8742.entry.js} +2 -2
- package/dist/core/{p-3cf99186.entry.js → p-c6eabd53.entry.js} +2 -2
- package/dist/core/{p-6f72e6ac.entry.js → p-c7ccc52a.entry.js} +2 -2
- package/dist/core/{p-6f72e6ac.entry.js.map → p-c7ccc52a.entry.js.map} +1 -1
- package/dist/core/p-c82a2e84.entry.js +2 -0
- package/dist/core/p-c82a2e84.entry.js.map +1 -0
- package/dist/core/{p-94065f7a.entry.js → p-ca3c6653.entry.js} +2 -2
- package/dist/core/{p-94065f7a.entry.js.map → p-ca3c6653.entry.js.map} +1 -1
- package/dist/core/{p-d281c3cf.entry.js → p-d47acbd4.entry.js} +2 -2
- package/dist/core/{p-d281c3cf.entry.js.map → p-d47acbd4.entry.js.map} +1 -1
- package/dist/core/{p-a54eb1d1.entry.js → p-d5f8ef77.entry.js} +2 -2
- package/dist/core/{p-c77d6efc.entry.js → p-db3b0c0a.entry.js} +2 -2
- package/dist/core/{p-c77d6efc.entry.js.map → p-db3b0c0a.entry.js.map} +1 -1
- package/dist/core/{p-cc36abaa.entry.js → p-db6d0463.entry.js} +2 -2
- package/dist/core/p-dbde45ff.entry.js +2 -0
- package/dist/core/p-dbde45ff.entry.js.map +1 -0
- package/dist/core/p-dc8eede2.entry.js +2 -0
- package/dist/core/p-dc8eede2.entry.js.map +1 -0
- package/dist/core/p-dd7450fb.js +2 -0
- package/dist/core/p-dd7450fb.js.map +1 -0
- package/dist/core/{p-fc5661ac.entry.js → p-de43d375.entry.js} +2 -2
- package/dist/core/{p-fc5661ac.entry.js.map → p-de43d375.entry.js.map} +1 -1
- package/dist/core/p-de8081c6.entry.js +2 -0
- package/dist/core/{p-a26a60ff.entry.js.map → p-de8081c6.entry.js.map} +1 -1
- package/dist/core/p-e4906394.entry.js +2 -0
- package/dist/core/{p-032113b9.entry.js.map → p-e4906394.entry.js.map} +1 -1
- package/dist/core/p-e595bb87.entry.js +2 -0
- package/dist/core/p-e595bb87.entry.js.map +1 -0
- package/dist/core/{p-42913c5b.entry.js → p-e75514f1.entry.js} +2 -2
- package/dist/core/{p-42913c5b.entry.js.map → p-e75514f1.entry.js.map} +1 -1
- package/dist/core/{p-6dd73165.entry.js → p-ee6caf27.entry.js} +2 -2
- package/dist/core/{p-6dd73165.entry.js.map → p-ee6caf27.entry.js.map} +1 -1
- package/dist/core/{p-2de3287c.entry.js → p-f33eae3c.entry.js} +2 -2
- package/dist/core/{p-2de3287c.entry.js.map → p-f33eae3c.entry.js.map} +1 -1
- package/dist/core/{p-9e051db4.entry.js → p-f34eee68.entry.js} +2 -2
- package/dist/core/{p-9e051db4.entry.js.map → p-f34eee68.entry.js.map} +1 -1
- package/dist/core/{p-fb7f4e2e.entry.js → p-fbb0a74d.entry.js} +2 -2
- package/dist/core/{p-fb7f4e2e.entry.js.map → p-fbb0a74d.entry.js.map} +1 -1
- package/dist/core/{p-9fafa5fa.entry.js → p-fbd80981.entry.js} +2 -2
- package/dist/core/p-fbd80981.entry.js.map +1 -0
- package/dist/core/{p-e18ba5d6.entry.js → p-fffb98c9.entry.js} +2 -2
- package/dist/core/{p-e18ba5d6.entry.js.map → p-fffb98c9.entry.js.map} +1 -1
- package/dist/esm/clear-icon-1c79bda2.js +8 -0
- package/dist/esm/clear-icon-1c79bda2.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-d9387cd3.js → helpers-89cb996d.js} +2 -2
- package/dist/esm/helpers-89cb996d.js.map +1 -0
- package/dist/esm/{helpers-574534c9.js → helpers-dea3fd9b.js} +2 -2
- package/dist/esm/{helpers-574534c9.js.map → helpers-dea3fd9b.js.map} +1 -1
- 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 +112 -0
- package/dist/esm/ic-action-chip.entry.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +3 -3
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +3 -3
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +42 -87
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +1 -1
- package/dist/esm/ic-card-vertical.entry.js +5 -5
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +3 -3
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +8 -8
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +12 -4
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- 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 +64 -69
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +26 -18
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +18 -11
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-dialog.entry.js.map +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 +3 -3
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +217 -0
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/{ic-input-component-container_3.entry.js → ic-menu.entry.js} +43 -140
- package/dist/esm/ic-menu.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-button.entry.js.map +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 +4 -11
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +18 -18
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +10 -10
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +5 -5
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-time-input.entry.js +939 -0
- package/dist/esm/ic-time-input.entry.js.map +1 -0
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +16 -5
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +14 -5
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +15 -9
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +24 -16
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-a7a720e7.js +12 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.stories.d.ts +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +12 -7
- package/dist/types/components/ic-data-table/story-data.d.ts +11 -84
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +2 -1
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +4 -0
- package/dist/types/components/ic-time-input/ic-time-input.d.ts +229 -0
- package/dist/types/components/ic-time-input/ic-time-input.stories.d.ts +121 -0
- package/dist/types/components/ic-time-input/test/helpers/ic-time-input.d.ts +23 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +2 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +2 -1
- package/dist/types/components.d.ts +242 -2
- package/dist/types/utils/types.d.ts +5 -0
- package/hydrate/index.js +1611 -493
- package/hydrate/index.mjs +1611 -493
- package/package.json +3 -3
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +0 -133
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +0 -1
- package/dist/core/p-032113b9.entry.js +0 -2
- package/dist/core/p-145238fe.entry.js +0 -2
- package/dist/core/p-145238fe.entry.js.map +0 -1
- package/dist/core/p-1b20ab19.entry.js +0 -2
- package/dist/core/p-1b20ab19.entry.js.map +0 -1
- package/dist/core/p-1bcf49fa.entry.js.map +0 -1
- package/dist/core/p-1e256460.entry.js +0 -2
- package/dist/core/p-224b2e14.entry.js +0 -2
- package/dist/core/p-224b2e14.entry.js.map +0 -1
- package/dist/core/p-497918fd.entry.js +0 -2
- package/dist/core/p-5f8b09e4.entry.js +0 -2
- package/dist/core/p-5f8b09e4.entry.js.map +0 -1
- package/dist/core/p-7001f1c1.entry.js +0 -2
- package/dist/core/p-7001f1c1.entry.js.map +0 -1
- package/dist/core/p-8cb5deba.entry.js +0 -2
- package/dist/core/p-95881758.entry.js +0 -2
- package/dist/core/p-95881758.entry.js.map +0 -1
- package/dist/core/p-9fafa5fa.entry.js.map +0 -1
- package/dist/core/p-a26a60ff.entry.js +0 -2
- package/dist/core/p-b6b7c15c.entry.js.map +0 -1
- package/dist/core/p-b6c3cc1c.entry.js.map +0 -1
- package/dist/core/p-b9369ce5.entry.js +0 -2
- package/dist/core/p-b9369ce5.entry.js.map +0 -1
- package/dist/core/p-cbbba154.entry.js +0 -2
- package/dist/core/p-cbbba154.entry.js.map +0 -1
- package/dist/core/p-cdd6d5e8.entry.js +0 -2
- package/dist/core/p-cdd6d5e8.entry.js.map +0 -1
- package/dist/core/p-dc3aba7c.entry.js +0 -2
- package/dist/core/p-dc3aba7c.entry.js.map +0 -1
- package/dist/core/p-e253a857.js.map +0 -1
- package/dist/esm/helpers-d9387cd3.js.map +0 -1
- package/dist/esm/ic-input-component-container_3.entry.js.map +0 -1
- package/dist/esm/ic-input-label_2.entry.js +0 -128
- package/dist/esm/ic-input-label_2.entry.js.map +0 -1
- /package/dist/core/{p-0fe08a58.js.map → p-33927ee1.js.map} +0 -0
- /package/dist/core/{p-75901d06.entry.js.map → p-86ff903d.entry.js.map} +0 -0
- /package/dist/core/{p-ead0acc3.entry.js.map → p-8908b8e6.entry.js.map} +0 -0
- /package/dist/core/{p-832c7042.entry.js.map → p-8bf1022e.entry.js.map} +0 -0
- /package/dist/core/{p-5237f3ac.entry.js.map → p-97c437bb.entry.js.map} +0 -0
- /package/dist/core/{p-b3509380.entry.js.map → p-c4bf8742.entry.js.map} +0 -0
- /package/dist/core/{p-3cf99186.entry.js.map → p-c6eabd53.entry.js.map} +0 -0
- /package/dist/core/{p-a54eb1d1.entry.js.map → p-d5f8ef77.entry.js.map} +0 -0
- /package/dist/core/{p-cc36abaa.entry.js.map → p-db6d0463.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
@@ -4005,6 +4005,147 @@ class AccordionGroup {
|
|
4005
4005
|
}; }
|
4006
4006
|
}
|
4007
4007
|
|
4008
|
+
var OpenInNew = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>`;
|
4009
|
+
|
4010
|
+
const icActionChipCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput {\n /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect {\n /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n\nhtml,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font-style: inherit;\n vertical-align: baseline;\n}\n\n\n:host {\n display: inline-block;\n max-width: 100%;\n vertical-align: middle;\n}\n\n.chip {\n --icon-color: var(--ic-action-chip-filled-icon);\n --text-color: var(--ic-action-chip-filled-label);\n --ic-typography-color: var(--text-color);\n\n align-items: center;\n background-color: var(--ic-action-chip-filled-background-default);\n border: var(--ic-border-width) solid transparent;\n border-radius: var(--ic-space-md);\n color: var(--text-color);\n cursor: pointer;\n display: flex;\n padding: var(--ic-space-xxs);\n position: relative;\n text-decoration: none;\n\n &:hover {\n background-color: var(--ic-action-chip-filled-background-hover);\n }\n\n &:active {\n background-color: var(--ic-action-chip-filled-background-pressed);\n }\n\n &:focus {\n box-shadow: var(--ic-border-focus);\n outline: var(--ic-hc-focus-outline);\n z-index: 1;\n }\n}\n\n.small {\n border-radius: calc(var(--ic-space-md) - var(--ic-space-xxxs));\n padding: var(--ic-space-xxxs);\n}\n\n.large {\n border-radius: calc(var(--ic-space-md) + var(--ic-space-xxs));\n padding: var(--ic-space-xs);\n}\n\n.outlined {\n --icon-color: var(--ic-action-chip-outlined-icon);\n --text-color: var(--ic-action-chip-outlined-label);\n\n background-color: transparent;\n border-color: var(--ic-action-chip-outlined-border-default);\n\n &.non-transparent {\n background-color: var(--ic-action-chip-outlined-background-default);\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-outlined-icon-hover);\n --text-color: var(--ic-action-chip-outlined-label-hover);\n\n background-color: var(--ic-action-chip-outlined-background-hover);\n border-color: var(--ic-action-chip-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-outlined-label-pressed);\n\n background-color: var(--ic-action-chip-outlined-background-pressed);\n border-color: var(--ic-action-chip-outlined-border-pressed);\n }\n}\n\n.monochrome {\n &.filled {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-default\n );\n\n &:hover {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-hover\n );\n }\n\n &:active {\n background-color: var(\n --ic-action-chip-monochrome-filled-background-pressed\n );\n }\n }\n\n &.outlined {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon);\n --text-color: var(--ic-action-chip-monochrome-outlined-label);\n\n border-color: var(--ic-action-chip-monochrome-outlined-border-default);\n\n &.non-transparent {\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-default\n );\n }\n\n &:hover {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-hover);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-hover);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-hover\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-hover);\n }\n\n &:active {\n --icon-color: var(--ic-action-chip-monochrome-outlined-icon-pressed);\n --text-color: var(--ic-action-chip-monochrome-outlined-label-pressed);\n\n background-color: var(\n --ic-action-chip-monochrome-outlined-background-pressed\n );\n border-color: var(--ic-action-chip-monochrome-outlined-border-pressed);\n }\n }\n}\n\n.disabled {\n --icon-color: var(--ic-action-chip-icon-disabled) !important;\n --text-color: var(--ic-action-chip-label-disabled) !important;\n\n background-color: var(--ic-action-chip-background-disabled) !important;\n cursor: default;\n\n &.outlined {\n border-color: var(--ic-action-chip-outlined-border-disabled) !important;\n border-style: dashed;\n\n &:not(.non-transparent) {\n background-color: transparent !important;\n }\n }\n}\n\n.label {\n padding: 0 var(--ic-space-xs);\n}\n\n.icon {\n box-sizing: border-box;\n color: var(--icon-color);\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n padding: var(--ic-space-xxxs);\n}\n\n.open-in-new-icon {\n box-sizing: border-box;\n height: var(--ic-space-md);\n width: var(--ic-space-md);\n}\n\n.open-in-new-icon > svg {\n fill: var(--icon-color);\n height: inherit;\n width: inherit;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .chip {\n transition: var(--ic-easing-transition-fast);\n }\n}\n\n@media (forced-colors: active) {\n .chip {\n border: var(--ic-border-hc);\n\n &.disabled {\n --text-color: GrayText;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n border-color: GrayText;\n\n svg,\n ::slotted(svg) {\n fill: GrayText;\n }\n }\n\n &:focus {\n border-color: Highlight;\n outline: none;\n }\n }\n}\n";
|
4011
|
+
var IcActionChipStyle0 = icActionChipCss;
|
4012
|
+
|
4013
|
+
/**
|
4014
|
+
* @slot badge - Badge component overlaying the top right of the chip.
|
4015
|
+
* @slot icon - Content will be rendered at the start of the chip.
|
4016
|
+
*/
|
4017
|
+
class ActionChip {
|
4018
|
+
constructor(hostRef) {
|
4019
|
+
registerInstance(this, hostRef);
|
4020
|
+
/**
|
4021
|
+
* If `true`, the chip will appear disabled.
|
4022
|
+
*/
|
4023
|
+
this.disabled = false;
|
4024
|
+
/**
|
4025
|
+
* If `true`, the user can save the linked URL instead of navigating to it.
|
4026
|
+
*/
|
4027
|
+
this.download = false;
|
4028
|
+
/**
|
4029
|
+
* If `true`, the button will display as monochromatic in either `light` or `dark` theme.
|
4030
|
+
*/
|
4031
|
+
this.monochrome = false;
|
4032
|
+
/**
|
4033
|
+
* The size of the chip.
|
4034
|
+
*/
|
4035
|
+
this.size = "medium";
|
4036
|
+
/**
|
4037
|
+
* Sets the chip to the dark or light theme colors. "inherit" will set the color based on the system settings or ic-theme component.
|
4038
|
+
*/
|
4039
|
+
this.theme = "inherit";
|
4040
|
+
/**
|
4041
|
+
* If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.
|
4042
|
+
*/
|
4043
|
+
this.transparentBackground = true;
|
4044
|
+
/**
|
4045
|
+
* The type of the chip.
|
4046
|
+
*/
|
4047
|
+
this.type = "button";
|
4048
|
+
/**
|
4049
|
+
* The emphasis of the chip.
|
4050
|
+
*/
|
4051
|
+
this.variant = "filled";
|
4052
|
+
}
|
4053
|
+
watchDisabledHandler() {
|
4054
|
+
removeDisabledFalse$1(this.disabled, this.el);
|
4055
|
+
}
|
4056
|
+
disconnectedCallback() {
|
4057
|
+
var _a;
|
4058
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
4059
|
+
}
|
4060
|
+
componentWillLoad() {
|
4061
|
+
removeDisabledFalse$1(this.disabled, this.el);
|
4062
|
+
}
|
4063
|
+
componentDidLoad() {
|
4064
|
+
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
|
4065
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots$1(mutationList, ["icon", "badge"]));
|
4066
|
+
this.hostMutationObserver.observe(this.el, {
|
4067
|
+
childList: true,
|
4068
|
+
});
|
4069
|
+
}
|
4070
|
+
/**
|
4071
|
+
* Sets focus on the chip.
|
4072
|
+
*/
|
4073
|
+
async setFocus() {
|
4074
|
+
var _a;
|
4075
|
+
(_a = this.chipEl) === null || _a === void 0 ? void 0 : _a.focus();
|
4076
|
+
}
|
4077
|
+
render() {
|
4078
|
+
const { disabled, download, form, formaction, formenctype, formmethod, formnovalidate, formtarget, href, hreflang, label, monochrome, referrerpolicy, rel, size, target, theme, transparentBackground, type, variant, } = this;
|
4079
|
+
const TagType = href ? "a" : "button";
|
4080
|
+
const isButtonElement = TagType === "button";
|
4081
|
+
const chipAttrs = isButtonElement
|
4082
|
+
? {
|
4083
|
+
disabled,
|
4084
|
+
form,
|
4085
|
+
formaction,
|
4086
|
+
formenctype,
|
4087
|
+
formmethod,
|
4088
|
+
formnovalidate,
|
4089
|
+
formtarget,
|
4090
|
+
type,
|
4091
|
+
}
|
4092
|
+
: {
|
4093
|
+
download: download !== false ? download : null,
|
4094
|
+
href,
|
4095
|
+
hreflang,
|
4096
|
+
referrerpolicy,
|
4097
|
+
rel,
|
4098
|
+
target,
|
4099
|
+
};
|
4100
|
+
return (hAsync(Host, { key: '2c65125774e7ce4fc9cb0d447e0ebff984caad5a', class: {
|
4101
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
4102
|
+
} }, hAsync(TagType, Object.assign({ key: 'af57a8bb5d0b29b4ff1023747bc0d4ca3824af73', class: {
|
4103
|
+
chip: true,
|
4104
|
+
disabled: isButtonElement && disabled,
|
4105
|
+
monochrome,
|
4106
|
+
"non-transparent": variant === "outlined" && !transparentBackground,
|
4107
|
+
[`${size}`]: true,
|
4108
|
+
[`${variant}`]: true,
|
4109
|
+
}, ref: (el) => (this.chipEl = el) }, chipAttrs), isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '755a2318e2968614423a5b88b2831e259caef7e3', class: "icon" }, hAsync("slot", { key: '4137b19dc8fc2be40a7ccf696f820e30c1b668b0', name: "icon" }))), hAsync("ic-typography", { key: '2b8615d3bce8b9b0d4b5e89cceac2b97b8d95105', variant: "label", class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '3f5d55931b36640b30b472fcc4febecb6d502189' }, label)), !isButtonElement && target === "_blank" && (hAsync("span", { key: 'd0c2331424af931db24f5d9fe2dc3500bf31db46', class: "open-in-new-icon", innerHTML: OpenInNew })), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'b0451850fd5b42f4120b7fa6e943332d64e52690', name: "badge" }))));
|
4110
|
+
}
|
4111
|
+
static get delegatesFocus() { return true; }
|
4112
|
+
get el() { return getElement(this); }
|
4113
|
+
static get watchers() { return {
|
4114
|
+
"disabled": ["watchDisabledHandler"]
|
4115
|
+
}; }
|
4116
|
+
static get style() { return IcActionChipStyle0; }
|
4117
|
+
static get cmpMeta() { return {
|
4118
|
+
"$flags$": 25,
|
4119
|
+
"$tagName$": "ic-action-chip",
|
4120
|
+
"$members$": {
|
4121
|
+
"disabled": [4],
|
4122
|
+
"download": [8],
|
4123
|
+
"form": [1],
|
4124
|
+
"formaction": [1],
|
4125
|
+
"formenctype": [1],
|
4126
|
+
"formmethod": [1],
|
4127
|
+
"formnovalidate": [4],
|
4128
|
+
"formtarget": [1],
|
4129
|
+
"href": [1],
|
4130
|
+
"hreflang": [1],
|
4131
|
+
"label": [1],
|
4132
|
+
"monochrome": [4],
|
4133
|
+
"referrerpolicy": [1],
|
4134
|
+
"rel": [1],
|
4135
|
+
"size": [1],
|
4136
|
+
"target": [1],
|
4137
|
+
"theme": [1],
|
4138
|
+
"transparentBackground": [4, "transparent-background"],
|
4139
|
+
"type": [1],
|
4140
|
+
"variant": [1],
|
4141
|
+
"setFocus": [64]
|
4142
|
+
},
|
4143
|
+
"$listeners$": undefined,
|
4144
|
+
"$lazyBundleId$": "-",
|
4145
|
+
"$attrsToReflect$": []
|
4146
|
+
}; }
|
4147
|
+
}
|
4148
|
+
|
4008
4149
|
var closeIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
4009
4150
|
<path d="M0 0h24v24H0z" fill="none"/>
|
4010
4151
|
<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"/>
|
@@ -4298,15 +4439,15 @@ class BackToTop {
|
|
4298
4439
|
const btnVariant = variant === "icon" ? "icon-secondary" : "secondary";
|
4299
4440
|
const size = variant === "icon" ? "large" : "medium";
|
4300
4441
|
const label = variant === "icon" ? "" : backToTopLabel;
|
4301
|
-
return (hAsync(Host, { key: '
|
4442
|
+
return (hAsync(Host, { key: '11f790112cc8047ab6b35459de506f6dc6a85c5f', class: {
|
4302
4443
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
4303
4444
|
[`ic-back-to-top-${this.position}`]: true,
|
4304
|
-
} }, hAsync("ic-button", { key: '
|
4445
|
+
} }, hAsync("ic-button", { key: '670015cd630e897033a440ff4846d475c113a453', "aria-label": backToTopLabel, variant: btnVariant, size: size, onClick: this.handleClick, class: {
|
4305
4446
|
["offset-banner"]: bannerOffset,
|
4306
4447
|
["show"]: !targetElVisible,
|
4307
4448
|
["by-footer"]: footerVisible,
|
4308
4449
|
["icon-only"]: variant === "icon",
|
4309
|
-
}, theme: this.theme }, hAsync("span", { key: '
|
4450
|
+
}, theme: this.theme }, hAsync("span", { key: 'e56c7a48a8226d1f471fc9a953851d27f4a6504c', class: "ic-back-to-top-icon", innerHTML: ArrowUpward }), label)));
|
4310
4451
|
}
|
4311
4452
|
static get delegatesFocus() { return true; }
|
4312
4453
|
get el() { return getElement(this); }
|
@@ -4490,7 +4631,7 @@ class Badge {
|
|
4490
4631
|
}
|
4491
4632
|
render() {
|
4492
4633
|
const { ariaLabel, el, foregroundColour, getLabel, position, size, label, type, variant, visible, theme, } = this;
|
4493
|
-
return (hAsync(Host, { key: '
|
4634
|
+
return (hAsync(Host, { key: '43b8e638c7b0965ad3591f8b306637b7b5aeea58', class: {
|
4494
4635
|
[`ic-badge-${position}`]: true,
|
4495
4636
|
[`ic-badge-${size}`]: true,
|
4496
4637
|
[`ic-badge-${variant}`]: true,
|
@@ -4498,7 +4639,7 @@ class Badge {
|
|
4498
4639
|
[`ic-badge-foreground-${foregroundColour}`]: foregroundColour !== null && variant === "custom",
|
4499
4640
|
[`${visible ? "ic-badge-show" : "ic-badge-hide"}`]: true,
|
4500
4641
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4501
|
-
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '
|
4642
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '7f8a72f58bc485b3bfe69ef67d4e43d75a995f1f', name: "badge-icon" }), type === "text" && label && (hAsync("ic-typography", { key: 'fe925213d388d0b3be444b9ab16a2a9a4cbc2649', variant: size === "small" ? "badge-small" : "badge" }, getLabel())), type === "dot" && hAsync("span", { key: 'e6e8d7092112d105fb3914002b53a083c540fe47', class: "sr-only" }, "badge")));
|
4502
4643
|
}
|
4503
4644
|
static get delegatesFocus() { return true; }
|
4504
4645
|
get el() { return getElement(this); }
|
@@ -4625,11 +4766,11 @@ class Breadcrumb {
|
|
4625
4766
|
render() {
|
4626
4767
|
const { current, href, monochrome, pageTitle, showBackIcon, theme } = this;
|
4627
4768
|
const describedById = `${pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
|
4628
|
-
return (hAsync(Host, { key: '
|
4769
|
+
return (hAsync(Host, { key: '2c1131138a8be3af8ee344e0fbff5594fbcc2d77', class: {
|
4629
4770
|
"ic-breadcrumb-back": showBackIcon,
|
4630
4771
|
"ic-breadcrumb-monochrome": monochrome,
|
4631
4772
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4632
|
-
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: '
|
4773
|
+
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: 'ee77a3aeced7063c4dbab6e1641daf11242d63ca', class: "breadcrumb" }, hAsync("span", { key: '1c2dc66e95e0676a381ab25769aa1b735ee5b9c5', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), showBackIcon && (hAsync("span", { key: '3857c2967dd82b45a2400107e50d6f03bc65cdde', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), !href ? (hAsync("div", { class: "slotted-link-container" }, showBackIcon && this.renderBackIcon(), hAsync("span", { class: "link-wrapper" }, hAsync("slot", null)))) : current ? (hAsync("span", { class: "current-page-container" }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)) : (hAsync("ic-link", { theme: theme, monochrome: monochrome, href: href, class: "breadcrumb-link", "aria-describedby": showBackIcon && describedById }, showBackIcon && this.renderBackIcon(), isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)))));
|
4633
4774
|
}
|
4634
4775
|
static get delegatesFocus() { return true; }
|
4635
4776
|
get el() { return getElement(this); }
|
@@ -4871,11 +5012,11 @@ class BreadcrumbGroup {
|
|
4871
5012
|
}
|
4872
5013
|
render() {
|
4873
5014
|
const { backBreadcrumbOnly, collapsed, theme } = this;
|
4874
|
-
return (hAsync(Host, { key: '
|
5015
|
+
return (hAsync(Host, { key: 'e9547e6fce74b57f2a3d7904bdca580c59abf881', class: {
|
4875
5016
|
"ic-breadcrumb-group-back": backBreadcrumbOnly,
|
4876
5017
|
"ic-breadcrumb-group-collapsed": collapsed,
|
4877
5018
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4878
|
-
} }, hAsync("nav", { key: '
|
5019
|
+
} }, hAsync("nav", { key: '56fd90771323680169a7e2ff757c534f499bda48', "aria-label": "breadcrumbs" }, hAsync("ol", { key: '2817e0c715c94937436a41222f86a0e5e6b9cc92' }, hAsync("slot", { key: '137e284689752e6256c39ecc19988aafd3e49942' })))));
|
4879
5020
|
}
|
4880
5021
|
get el() { return getElement(this); }
|
4881
5022
|
static get watchers() { return {
|
@@ -4905,7 +5046,7 @@ var arrowDropdown$1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="non
|
|
4905
5046
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
4906
5047
|
</svg>`;
|
4907
5048
|
|
4908
|
-
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.clear-button) .button,:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:hover,:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
5049
|
+
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important;margin:0;pointer-events:none}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus,:host(.clock-button) .button:focus{box-shadow:none}:host(.clear-button) .button,:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:hover,:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4909
5050
|
var IcButtonStyle0 = icButtonCss;
|
4910
5051
|
|
4911
5052
|
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
@@ -5276,7 +5417,7 @@ class Button {
|
|
5276
5417
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
5277
5418
|
? "dropdown-expanded"
|
5278
5419
|
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
5279
|
-
return (hAsync(Host, { key: '
|
5420
|
+
return (hAsync(Host, { key: '7ec6ab29cee9c1d669ffb4d181291ac2767cbbec', class: {
|
5280
5421
|
"ic-button-disabled": disabled && !loading,
|
5281
5422
|
"ic-button-full-width": fullWidth,
|
5282
5423
|
"ic-button-loading": loading,
|
@@ -5292,7 +5433,7 @@ class Button {
|
|
5292
5433
|
monochrome,
|
5293
5434
|
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
5294
5435
|
"with-badge": isSlotUsed$1(this.el, "badge"),
|
5295
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
5436
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: 'b9b1e24da3a9ca2e9aa33edf0dfde63f82473057', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: 'e2655f2e1623bb7a6177e8404a68ab1ab9c868a6' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'ca43b11aeff88a1c9a46ae22cd8836405f96753e', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: '3dd73eb3d140dd26aee9f245166142094762bc5c' }), describedByContent && (hAsync("span", { key: 'a38105ef6599d3b251b8528446db9f700982681e', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
5296
5437
|
}
|
5297
5438
|
static get delegatesFocus() { return true; }
|
5298
5439
|
get el() { return getElement(this); }
|
@@ -5952,19 +6093,19 @@ class CardVertical {
|
|
5952
6093
|
rel: rel,
|
5953
6094
|
target: target,
|
5954
6095
|
};
|
5955
|
-
return (hAsync(Host, { key: '
|
6096
|
+
return (hAsync(Host, { key: '2dc8070692fc796401c84c6156d1f66c8053310a', class: {
|
5956
6097
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
5957
|
-
} }, hAsync(Component, Object.assign({ key: '
|
6098
|
+
} }, hAsync(Component, Object.assign({ key: 'a1a8763990ed7e5ac5eecfc69e4b29ab184b9e6e', class: {
|
5958
6099
|
card: true,
|
5959
6100
|
clickable: !!clickable && !disabled,
|
5960
6101
|
disabled: !!disabled,
|
5961
6102
|
fullwidth: !!fullWidth,
|
5962
6103
|
focussed: isFocussed,
|
5963
6104
|
monochrome: monochrome,
|
5964
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed$1(this.el, "image-top") && (hAsync("div", { key: '
|
6105
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed$1(this.el, "image-top") && (hAsync("div", { key: '2c12f461a8b8972d8a4de1a6560a2c52ecadc36f', class: "image-top" }, hAsync("slot", { key: '9afec40e5ef6b57a10ca922d7f3da378f962200f', name: "image-top" }))), hAsync("div", { key: 'bb92939da24dbfa2fb2e4bc2606d4f7ef9d2ba37', class: "card-header" }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '165af9342325b430548209cf2bcd5b9781b752fd', class: "icon" }, hAsync("slot", { key: '4b2cdd47b1f2abfc16097dee848b630c93c1b835', name: "icon" }))), hAsync("div", { key: '02f1b6357a696bc43b9d5cc7c8030647b52e311c', class: "card-title" }, hAsync("slot", { key: 'b71ca0fa6a4aeb1cf75579920a66f58abe11d5ae', name: "heading" }, hAsync("ic-typography", { key: '63f9c6478987888f41a53d5beadec2b3deaa52ae', variant: "h4" }, hAsync("p", { key: '6d642c20d4656a408cf439c969a1895cb834c15e' }, heading)))), isSlotUsed$1(this.el, "interaction-button") && (hAsync("div", { key: '7a44d7d2c17cd980fa14da2a65aa68ddd8832f77', class: "interaction-button" }, hAsync("slot", { key: '6a9e0f0ca96125d94d39b31474c82ffe088ea475', name: "interaction-button" })))), (subheading || isSlotUsed$1(this.el, "subheading")) && (hAsync("div", { key: 'dc19ca8ae488c30aa1fc58e56db23fc0dc2a2c0f', class: "subheading" }, hAsync("slot", { key: 'bae9a057f813ef5c5df04befed60d09ccb106857', name: "subheading" }, hAsync("ic-typography", { key: '13a32e2d9bc3258b65edf8a5c385f181f39a2c8d', variant: "subtitle-small" }, subheading)))), isSlotUsed$1(this.el, "adornment") && (hAsync("div", { key: 'c359631c9d1ed0643290e1db2a5e521d6702b29d', class: "adornment" }, hAsync("slot", { key: '398a65927df066f96bffc5b59b95fd27ec558c12', name: "adornment" }))), isSlotUsed$1(this.el, "image-mid") && (hAsync("div", { key: '463a2495779d1faca6efd98a3e1425e3486fc0d1', class: "image-mid" }, hAsync("slot", { key: '049daa3cbf2542b0a47951a8758bb50a1ad699e2', name: "image-mid" }))), (message || isSlotUsed$1(this.el, "message")) && (hAsync("div", { key: '9f6b4ea8e3a8cfa0e8ad58366f4e2a198cb0f8f6', class: "card-message" }, message && (hAsync("ic-typography", { key: '1a32ff3958de50ea5732a0fb52616d04c6ebedcc', variant: "body" }, message)), isSlotUsed$1(this.el, "message") && hAsync("slot", { key: '0dabb8f6ed9bd42a0982284fa4976734c0d5e16f', name: "message" }))), (isSlotUsed$1(this.el, "interaction-controls") || expandable) && (hAsync("div", { key: '2d6292c895df325c53cffc72a330720855644c59', class: "interaction-area" }, hAsync("div", { key: 'a8c4c10d85a5608f49dbccb8cb65443d56d64a3f', class: "interaction-controls" }, hAsync("slot", { key: '5caebe86117ec6ef31d096a284aa035153e02a56', name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { key: '1d66d84f3181cc1694cdf779befca1610c538f71', id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { key: 'eaa2b9484428dab89fb67677b80a09a6174b011b', class: {
|
5965
6106
|
"toggle-button": true,
|
5966
6107
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
5967
|
-
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed$1(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: '
|
6108
|
+
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed$1(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: 'd896c331bad9e027c4b56dd1fce75bc530218516', class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { key: '7fc81de39ef8a949674f22089d413bf946befdd7', name: "expanded-content" }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '283bff90fab9be3b640ab7d04384d7ce2873bad8', name: "badge" }))));
|
5968
6109
|
}
|
5969
6110
|
get el() { return getElement(this); }
|
5970
6111
|
static get watchers() { return {
|
@@ -6112,17 +6253,17 @@ class Checkbox {
|
|
6112
6253
|
checked
|
6113
6254
|
? renderHiddenInput$1(el, value, name, disabled)
|
6114
6255
|
: removeHiddenInput(el);
|
6115
|
-
return (hAsync(Host, { key: '
|
6256
|
+
return (hAsync(Host, { key: '153b0b333ca1d0755d4e52dd9119d48cd1c246cc', class: {
|
6116
6257
|
"ic-checkbox-disabled": disabled,
|
6117
6258
|
[`ic-checkbox-${size}`]: !!size,
|
6118
6259
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6119
|
-
} }, hAsync("div", { key: '
|
6260
|
+
} }, hAsync("div", { key: 'c0f56ee4fbbdd38fea208d133cdd1fa91a41d6c7', class: "container" }, displayIndeterminate ? (hAsync("div", { class: "indeterminate-symbol" })) : (checked && (hAsync("svg", { class: "checkmark", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" })))), hAsync("input", { key: 'f8335e54b2f765591b3781d76a01632c34065855', role: "checkbox", class: {
|
6120
6261
|
checkbox: true,
|
6121
6262
|
checked,
|
6122
6263
|
indeterminate: displayIndeterminate,
|
6123
|
-
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '
|
6264
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '2ba4862a349e6b3f34c050c434ce247687f0dfd8', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'a3f3c733b5dc0a0acdf89d3b7db603e965102618', htmlFor: id }, label)))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { key: 'ad38f0547dda8ce82cd107fec3f3ff9d555cc1e8', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: 'd2c8566cada65dbd60546873ccbfedb33ec0e093', class: "branch-corner" }), hAsync("div", { key: '05489504f66d7f6e79bbbf18302dd63348f2f4a7', class: "dynamic-field-container" }, isDynamicAdditionalField && (hAsync("ic-typography", { key: 'eb397dc91080f791a4fd13e3c1815fad70c7cb87', variant: "caption" }, hAsync("p", { key: '49633d6c0806655957055fbef51688bfdeb11411', class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { key: '916e20f79f80cd7ff0fb5c4b030caf07f146ffcc', class: {
|
6124
6265
|
"additional-field-wrapper": !isDynamicAdditionalField,
|
6125
|
-
} }, hAsync("slot", { key: '
|
6266
|
+
} }, hAsync("slot", { key: '5783108ca7c6edb7c55dad2cc9469549e31d7cd3', name: "additional-field" })))))));
|
6126
6267
|
}
|
6127
6268
|
static get delegatesFocus() { return true; }
|
6128
6269
|
get el() { return getElement(this); }
|
@@ -6257,11 +6398,11 @@ class CheckboxGroup {
|
|
6257
6398
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
6258
6399
|
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
6259
6400
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
6260
|
-
return (hAsync(Host, { key: '
|
6401
|
+
return (hAsync(Host, { key: '977492f0ca432ab5dc9d7435c66cf6aafa8c44f1', class: {
|
6261
6402
|
"ic-checkbox-group-disabled": !!disabled,
|
6262
6403
|
[`ic-checkbox-group-${size}`]: true,
|
6263
6404
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6264
|
-
} }, renderSRText && (hAsync("span", { key: '
|
6405
|
+
} }, renderSRText && (hAsync("span", { key: '5a9d1c9fcf5f1b837e4f6ff3ae516db0b105e1ac', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: 'c3afb98a671db4dba8229d461c33d4b5a69d5e31', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: 'bc4e450767c3fb6f7deb01370d9d1599d4515417' }, hAsync("ic-input-label", { key: '7c0c76b80d4b89673495b56a79cf8a05f0a224f3', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: '348730e9c8ffbd0701a00e9380a11e403957604b', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: 'c4065c98766a8447ed51c0a84f953cc70c529d2c', class: "checkboxes-container" }, hAsync("slot", { key: 'cadbff332d84cf70bbbb42f1c40f4cb0bc705e38' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '0259abfb51282b2dfc8ed9aed0a2b97ccb769ac2', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
6265
6406
|
}
|
6266
6407
|
get el() { return getElement(this); }
|
6267
6408
|
static get watchers() { return {
|
@@ -6363,12 +6504,20 @@ class Chip {
|
|
6363
6504
|
watchDisabledHandler() {
|
6364
6505
|
removeDisabledFalse$1(this.disabled, this.el);
|
6365
6506
|
}
|
6507
|
+
disconnectedCallback() {
|
6508
|
+
var _a;
|
6509
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
6510
|
+
}
|
6366
6511
|
componentWillLoad() {
|
6367
6512
|
removeDisabledFalse$1(this.disabled, this.el);
|
6368
6513
|
this.customColorHandler();
|
6369
6514
|
}
|
6370
6515
|
componentDidLoad() {
|
6371
6516
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
|
6517
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots$1(mutationList, ["icon", "badge"]));
|
6518
|
+
this.hostMutationObserver.observe(this.el, {
|
6519
|
+
childList: true,
|
6520
|
+
});
|
6372
6521
|
}
|
6373
6522
|
handleClick() {
|
6374
6523
|
this.visible = !this.visible;
|
@@ -6383,10 +6532,10 @@ class Chip {
|
|
6383
6532
|
render() {
|
6384
6533
|
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
6385
6534
|
const ariaLabel = `${label} chip`;
|
6386
|
-
return (hAsync(Host, { key: '
|
6535
|
+
return (hAsync(Host, { key: 'ced030b6d7a5aeb6b7030ea7858200187d16ae90', class: {
|
6387
6536
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6388
6537
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
6389
|
-
} }, visible && (hAsync("div", { key: '
|
6538
|
+
} }, visible && (hAsync("div", { key: 'dca2da18144d1ee47d9507cbb616bc6493060f94', class: {
|
6390
6539
|
chip: true,
|
6391
6540
|
[`${variant}`]: true,
|
6392
6541
|
[`${size}`]: true,
|
@@ -6394,7 +6543,7 @@ class Chip {
|
|
6394
6543
|
dismissible,
|
6395
6544
|
hovered,
|
6396
6545
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
6397
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
6546
|
+
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '3e1537327125e7cfd54a20aeeb3f6279560da02f', class: "icon" }, hAsync("slot", { key: '33a229dad89f94f165c0a3f77e83720e1cc0603f', name: "icon" }))), hAsync("ic-typography", { key: '7445c7ae2254c909af206b43e5044f643177f1af', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: 'af34cb3ca942ea778c3ba4716f983755571626db' }, label)), dismissible && (hAsync("ic-tooltip", { key: '7664945e7ddc8cb66a302265a5b7affcea514241', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: '692fd13b54eef71e29ef4d3639182617770684df', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '6db0a5f0dd29df3315caa52aba01d339449e3bdd', name: "badge" }))), dismissible && (hAsync("div", { key: '2d989a411ff7eedad1e9238714c704c3e2d0d536', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
6398
6547
|
}
|
6399
6548
|
static get delegatesFocus() { return true; }
|
6400
6549
|
get el() { return getElement(this); }
|
@@ -6472,10 +6621,10 @@ class ClassificationBanner {
|
|
6472
6621
|
if (!classification ||
|
6473
6622
|
(classification && !classificationText[classification]))
|
6474
6623
|
classification = "default";
|
6475
|
-
return (hAsync(Host, { key: '
|
6624
|
+
return (hAsync(Host, { key: '8ccd98249fea7e78da349f2c97243366305c5dcc', class: { ["ic-classification-banner-inline"]: !!inline } }, hAsync("banner", { key: 'a108ace2bf5f64c5867f993d9d130595b61ccac9', "aria-label": "Protective marking", class: {
|
6476
6625
|
["classification-banner"]: true,
|
6477
6626
|
[`${classification}`]: classification,
|
6478
|
-
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: '
|
6627
|
+
} }, classification !== "default" ? (hAsync("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, hAsync("ic-typography", { key: '09edc559ec7b205d092210ef73ef95faa43c1a8a', variant: "caption-uppercase" }, classification === "default"
|
6479
6628
|
? classificationText[classification]
|
6480
6629
|
: `${upTo ? "up to" : ""}
|
6481
6630
|
${country}
|
@@ -6522,10 +6671,10 @@ class DataList {
|
|
6522
6671
|
if (size === "small") {
|
6523
6672
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
6524
6673
|
}
|
6525
|
-
return (hAsync(Host, { key: '
|
6674
|
+
return (hAsync(Host, { key: '5e7af483f24335b47442b4aa768c7b04bc14bb64', class: {
|
6526
6675
|
"ic-data-list-small": size === "small",
|
6527
6676
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6528
|
-
} }, hAsync("div", { key: '
|
6677
|
+
} }, hAsync("div", { key: 'a74f7d4a87b21b053a500cab89ca978ada43263e', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: 'c4896992d8558dfbe2a1d8dd689cabae2581ce89', name: "heading" }, hAsync("ic-typography", { key: 'b05016df276422f769464a73d6ae71533d3c028f', variant: "h3" }, heading))), hAsync("div", { key: 'a984729dc0849a27d09cd6403efd230cfc927007', class: "divider" }), hAsync("ul", { key: '916c5b5c74f16f3fab74e2a157c2216b570420f5', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: 'e5e05b0957b4cf986139795f31771556fd5f6150' }))));
|
6529
6678
|
}
|
6530
6679
|
get el() { return getElement(this); }
|
6531
6680
|
static get style() { return IcDataListStyle0; }
|
@@ -6615,12 +6764,12 @@ class DataRow {
|
|
6615
6764
|
}
|
6616
6765
|
render() {
|
6617
6766
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
6618
|
-
return (hAsync(Host, { key: '
|
6767
|
+
return (hAsync(Host, { key: '9a94132a8884960a5ec1c2f2772e89f46dbcc995', class: {
|
6619
6768
|
["ic-data-row-small"]: size === "small",
|
6620
6769
|
["breakpoint-medium"]: listSize === "m",
|
6621
6770
|
["breakpoint-xs"]: listSize === "xs",
|
6622
6771
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6623
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
6772
|
+
}, role: "listitem" }, hAsync("div", { key: '8a354952861f100d66f454998c5b6a40eff226bd', class: "data" }, hAsync("div", { key: '55359f425068a3a2b16cf194bc562ea8a2f865be', class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '1bb95d477f8d30759480a304c5214c9530a118d2', class: "end-component" }, hAsync("slot", { key: '11284607c2c69d5b231d41ae307ca3044b49b8d1', name: "end-component" })))), hAsync("div", { key: 'c4289c8446de02edbf8491e6d1d3cdb66561483e', class: "divider" })));
|
6624
6773
|
}
|
6625
6774
|
get el() { return getElement(this); }
|
6626
6775
|
static get style() { return IcDataRowStyle0; }
|
@@ -6653,7 +6802,7 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
6653
6802
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
6654
6803
|
</svg>`;
|
6655
6804
|
|
6656
|
-
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-
|
6805
|
+
const icDataTableCss = ":host{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}tbody{vertical-align:top}.table-container{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}.cell-container{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height);--ic-typography-color:var(--ic-data-table-text-default-emphasis)}.truncation-show-hide{display:block}.cell-icon.truncation-show-hide{display:flex}.cell-container:not(.data-type-element,.truncation-show-hide){overflow-x:hidden}ic-loading-indicator{position:sticky;top:20px}.table-row-container{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}:host([show-pagination=\"true\"]) .table-row-container{height:calc(100% - 3.5625rem)}table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}.table-row-container:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}:host([embedded=\"true\"]) .table-row-container{border:var(--ic-space-1px) solid var(--ic-data-table-border)}.column-header-inner-container{padding:var(--ic-space-xs);box-sizing:border-box}.column-header-inner-container ic-tooltip{pointer-events:none}.column-header-inner-container ic-tooltip.show-trunc-tooltip{pointer-events:auto}.column-header-inner-container ic-tooltip .column-header-text{--ic-line-clamp:1}.column-header-sticky{position:sticky;top:0;z-index:1}.column-header-overlay{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}.row-header-sticky{position:sticky;left:0}.column-header,.table-row{box-sizing:border-box}.table-row-selected{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-hover) 0 0\n );background-color:var(--ic-data-table-cell-background) !important}.table-row-selected:hover{background-image:linear-gradient(\n var(--ic-data-table-cell-background-selected-hover) 0 0\n )}.sort-button{margin-left:auto}.sort-button:hover{background-color:var(--ic-data-table-icon-button-background-hover)}.sort-button:active{background-color:var(--ic-data-table-icon-button-background-pressed)}.sort-button svg{color:var(--ic-data-table-sort-toggle-icon)}.sort-button-unsorted svg{color:var(--ic-data-table-sort-toggle-icon-default)}.table-density-dense .column-header-inner-container,td.table-density-dense{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}.text-dense{font-size:var(--ic-font-size-label)}.table-density-spacious .column-header-inner-container,td.table-density-spacious{padding:0.625rem var(--ic-space-xs) !important}.text-spacious{font-size:1.125rem}.column-header-text{font-weight:var(--ic-font-weight-bold)}.dummy-column-header-text{white-space:nowrap;overflow:hidden;height:0;width:-moz-fit-content;width:fit-content}.row-header,.column-header{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-data-table-header-background);border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline);color:var(--ic-data-table-header-text)}.column-header{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}.column-header:last-child{border-right:none}.scrollable .column-header:last-child{border-right:var(--ic-space-1px) solid var(--ic-data-table-header-keyline) !important}:host([embedded=\"true\"]) tr:last-child .table-cell,:host([embedded=\"true\"]) tr:last-child .row-header{border-bottom:none}.column-header-alignment-left,.row-header-alignment-left,.cell-alignment-left{text-align:left !important;justify-content:start !important}.column-header-alignment-right,.row-header-alignment-right,.cell-alignment-right{text-align:right !important;justify-content:end !important}.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.cell-alignment-right.truncation-show-hide ic-typography{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}.column-header-alignment-center,.row-header-alignment-center,.cell-alignment-center{text-align:center !important;justify-content:center !important}.table-row{background-color:var(--ic-data-table-cell-background)}.table-row:nth-child(even){background-color:var(--ic-data-table-cell-background-stripe)}.table-cell{padding:var(--ic-space-xs);border-bottom:solid var(--ic-data-table-cell-keyline) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}.table-cell.with-overflow{overflow:visible}.data-type-string,.data-type-address{text-align:left}.data-type-number,.data-type-date{text-align:right;justify-content:end}.cell-vertical-align-top{vertical-align:top;align-items:flex-start}.cell-vertical-align-middle{vertical-align:middle;align-items:center}.cell-vertical-align-bottom{vertical-align:bottom;align-items:flex-end}.cell-emphasis-low ic-typography{--ic-typography-color:var(--ic-data-table-text-low-emphasis)}.cell-emphasis-high ic-typography{--ic-typography-color:var(--ic-data-table-text-high-emphasis);font-weight:var(--ic-font-weight-bold)}.pagination-container{background-color:var(--ic-data-table-pagination-bar-background-color);border-top:var(--ic-space-1px) solid\n var(--ic-data-table-pagination-bar-keyline)}.screen-reader-sort-text,.table-caption{position:absolute;left:-100rem}.table-cell,.column-header,.row-header{word-wrap:break-word;white-space:pre-wrap}.loading-empty{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}.updating-state{padding:0;border-bottom:var(--ic-space-1px) solid var(--ic-data-table-header-keyline)}.updating-state-headers{border-bottom:none}.loading{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow);z-index:calc(var(--ic-z-index-popover) - 1);background-color:var(--ic-data-table-overlay-background);border:var(--ic-space-1px) solid var(--ic-data-table-overlay-border)}.loading.show{opacity:1}.icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}.column-header .icon>svg,.column-header ::slotted(svg){fill:var(--ic-data-table-icon)}.table-cell .icon>svg,.table-cell ::slotted(svg),.cell-description-icon>svg{fill:var(--ic-data-table-icon-default-emphasis)}.cell-emphasis-high .icon>svg,.cell-emphasis-high ::slotted(svg){fill:var(--ic-data-table-icon-high-emphasis)}.cell-emphasis-low .icon>svg,.cell-emphasis-low ::slotted(svg){fill:var(--ic-data-table-icon-low-emphasis)}.column-header-alignment-right>.icon,.row-header-alignment-right>.icon,.cell-alignment-right>.icon,.column-header-alignment-right>::slotted(svg),.row-header-alignment-right>::slotted(svg),.cell-alignment-right>::slotted(svg){margin-right:auto}.column-header-alignment-center>ic-typography,.column-header-alignment-center>.cell-text-wrapper,.row-header-alignment-right>ic-typography,.row-header-alignment-right>.cell-text-wrapper,.cell-alignment-center>ic-typography,.cell-alignment-center>.cell-text-wrapper{flex:1}.checkbox-cell{--column-width:var(--ic-space-xxl);align-content:center;border-right:none}.table-density-dense.checkbox-cell{--column-width:2.5rem}.checkbox-wrapper{display:flex;justify-content:center}.icon>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}.truncation-tooltip ic-typography{display:-webkit-box;line-clamp:var(--ic-line-clamp, 0);-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}.truncation-tooltip ic-typography,.truncation-show-hide ic-typography{white-space:normal}.ic-tooltip-overflow{overflow:hidden;width:100%}.action-element{display:flex;justify-content:right}.cell-grid-wrapper{display:grid;grid-template-columns:auto auto}.loading-overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ic-data-table-loading-indicator-overlay-background);z-index:calc(var(--ic-z-index-popover) - 2);opacity:0;transition:opacity var(--ic-transition-duration-slow)}.loading-overlay.show{visibility:visible;opacity:0.6}.sr-only{position:absolute;left:-9999px}@media (prefers-reduced-motion: reduce){.loading-overlay{transition:none}}.cell-text-wrapper{overflow:hidden}.cell-text-wrapper>ic-typography{margin-left:2px}.cell-text-no-wrap{word-wrap:initial}.cell-container-with-description{display:flex;flex-direction:row}.cell-description{display:flex;flex-direction:row;margin-top:var(--ic-space-xxs);word-break:break-all}.cell-description-text{color:var(--ic-data-table-cell-data-description)}.cell-description-icon{padding-right:var(--ic-space-xs)}.cell-description-icon>svg{height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs));display:flex}@media (min-width: 577px){.column-header-inner-container{display:flex;align-items:center}}@media (max-width: 577px){.cell-icon{flex-wrap:wrap}.cell-description-icon{padding-right:0}}@media (forced-colors: active){.icon,::slotted(svg),.cell-description-icon>svg{fill:currentcolor}.sort-button svg{color:currentcolor}.table-row-selected{background-color:Highlight !important}}";
|
6657
6806
|
var IcDataTableStyle0 = icDataTableCss;
|
6658
6807
|
|
6659
6808
|
/**
|
@@ -7206,7 +7355,7 @@ class DataTable {
|
|
7206
7355
|
}
|
7207
7356
|
return columnWidthStyling;
|
7208
7357
|
};
|
7209
|
-
this.getCalculatedRowHeight = (columnProps,
|
7358
|
+
this.getCalculatedRowHeight = (columnProps, cell, rowTextWrap, currentRowHeight) => {
|
7210
7359
|
if ((this.truncationPattern || currentRowHeight) &&
|
7211
7360
|
!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) &&
|
7212
7361
|
!rowTextWrap &&
|
@@ -7218,33 +7367,40 @@ class DataTable {
|
|
7218
7367
|
}
|
7219
7368
|
return {};
|
7220
7369
|
};
|
7370
|
+
this.getSlottedActionElement = (actionElement) => {
|
7371
|
+
const slotName = actionElement.getAttribute("name");
|
7372
|
+
return this.el.querySelector(`[slot="${slotName}"]`);
|
7373
|
+
};
|
7221
7374
|
this.adjustWidthForActionElement = () => {
|
7222
7375
|
var _a;
|
7223
7376
|
const elements = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".action-element");
|
7224
|
-
elements === null || elements === void 0 ? void 0 : elements.forEach((
|
7225
|
-
|
7226
|
-
|
7227
|
-
const
|
7228
|
-
|
7377
|
+
elements === null || elements === void 0 ? void 0 : elements.forEach((actionElementSpan) => {
|
7378
|
+
var _a;
|
7379
|
+
const actionElement = actionElementSpan.firstChild;
|
7380
|
+
const slottedActionElement = this.getSlottedActionElement(actionElement);
|
7381
|
+
const width = (_a = slottedActionElement === null || slottedActionElement === void 0 ? void 0 : slottedActionElement.getBoundingClientRect().width) !== null && _a !== void 0 ? _a : 0;
|
7382
|
+
const gridWrapper = actionElementSpan.closest(".cell-grid-wrapper");
|
7383
|
+
if (gridWrapper) {
|
7229
7384
|
gridWrapper.style.gridTemplateColumns = `auto calc(${width}px + var(--ic-space-xs))`;
|
7385
|
+
}
|
7230
7386
|
});
|
7231
7387
|
};
|
7232
|
-
this.createCellContent = (columnProps, cell, cellSlotName,
|
7388
|
+
this.createCellContent = (columnProps, cell, cellSlotName, hasIcon, cellValue, rowOptions, currentRowHeight) => {
|
7233
7389
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
7234
7390
|
return (hAsync("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
7235
7391
|
!isSlotUsed(this.el, cellSlotName)
|
7236
7392
|
? cell
|
7237
|
-
: undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", [`cell-alignment-${((
|
7238
|
-
((
|
7239
|
-
this.getCellAlignment(cell, "horizontal")}`]: !!((
|
7240
|
-
!!((
|
7393
|
+
: undefined, class: Object.assign(Object.assign({ "cell-container": (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element", "cell-icon": hasIcon || !!((_a = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _a === void 0 ? void 0 : _a.icon), [`cell-alignment-${((_b = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _b === void 0 ? void 0 : _b.horizontal) ||
|
7394
|
+
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.horizontal) ||
|
7395
|
+
this.getCellAlignment(cell, "horizontal")}`]: !!((_d = columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnAlignment) === null || _d === void 0 ? void 0 : _d.horizontal) ||
|
7396
|
+
!!((_e = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _e === void 0 ? void 0 : _e.horizontal) ||
|
7241
7397
|
!!this.getCellAlignment(cell, "horizontal"), [`data-type-${columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType}`]: true, [this.TEXT_WRAP_STRING]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.textWrap) ||
|
7242
7398
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
7243
|
-
!!this.getCellOptions(cell, "textWrap"), [
|
7399
|
+
!!this.getCellOptions(cell, "textWrap"), [`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
7244
7400
|
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
7245
|
-
|
7401
|
+
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis)}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
7246
7402
|
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
7247
|
-
!!
|
7403
|
+
!!(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis) }, this.setTruncationClass()), { [this.CELL_CONTAINER_WITH_DESCRIPTION_STRING]: this.isObject(cell) && Object.keys(cell).includes("description") }), style: Object.assign(Object.assign({}, this.getCalculatedRowHeight(columnProps, cell, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, currentRowHeight)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
7248
7404
|
? this.setRowHeight(currentRowHeight)
|
7249
7405
|
: null }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_f = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _f === void 0 ? void 0 : _f.onAllCells)) &&
|
7250
7406
|
(cellValue("icon") || ((_g = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _g === void 0 ? void 0 : _g.icon)) && (hAsync("span", { class: "icon", innerHTML: cellValue("icon") || ((_h = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _h === void 0 ? void 0 : _h.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
@@ -7254,9 +7410,9 @@ class DataTable {
|
|
7254
7410
|
} }, hAsync("ic-typography", { variant: "body", class: {
|
7255
7411
|
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
7256
7412
|
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
7257
|
-
|
7413
|
+
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis)}`]: (this.isObject(cell) && !!cellValue("emphasis")) ||
|
7258
7414
|
!!(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
7259
|
-
!!
|
7415
|
+
!!(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.emphasis),
|
7260
7416
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
7261
7417
|
} }, this.isObject(cell) && (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "date" ? (Object.keys(cell).includes("href") ? (hAsync("ic-link", { href: cellValue("href"), theme: this.theme, target: cellValue("target") || undefined, rel: cellValue("rel") || undefined }, cellValue("data"))) : (cellValue("data"))) : (this.getCellContent(cell, columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType))), this.isObject(cell) &&
|
7262
7418
|
Object.keys(cell).includes("description") && (hAsync("div", { class: {
|
@@ -7266,52 +7422,37 @@ class DataTable {
|
|
7266
7422
|
};
|
7267
7423
|
this.createCells = (row, rowIndex) => {
|
7268
7424
|
var _a;
|
7269
|
-
const rowKeys = Object.keys(row);
|
7270
|
-
const rowOptions = this.getObjectValue(row, "rowOptions");
|
7271
|
-
let rowAlignment;
|
7272
|
-
let rowEmphasis;
|
7273
|
-
const rowHeader = this.getObjectValue(row, "header");
|
7274
|
-
if (rowHeader) {
|
7275
|
-
rowAlignment = this.getObjectValue(rowHeader, "rowAlignment");
|
7276
|
-
rowEmphasis = this.getObjectValue(rowHeader, "emphasis");
|
7277
|
-
}
|
7278
7425
|
const variableRowHeightVal = (_a = this.variableRowHeight) === null || _a === void 0 ? void 0 : _a.call(this, Object.assign(Object.assign({}, row), { index: rowIndex }));
|
7279
7426
|
const currentRowHeight = variableRowHeightVal
|
7280
7427
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
7281
7428
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
7282
|
-
|
7429
|
+
const { rowOptions } = row;
|
7430
|
+
return this.columns.map((column) => {
|
7283
7431
|
var _a, _b, _c, _d;
|
7284
|
-
|
7285
|
-
|
7286
|
-
|
7287
|
-
|
7288
|
-
|
7289
|
-
|
7290
|
-
|
7291
|
-
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
|
7296
|
-
return (hAsync("td", { class: {
|
7297
|
-
["table-cell"]: true,
|
7298
|
-
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
7299
|
-
["with-overflow"]: (column === null || column === void 0 ? void 0 : column.dataType) === "element",
|
7300
|
-
[`cell-vertical-align-${((_a = column === null || column === void 0 ? void 0 : column.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
7301
|
-
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
7302
|
-
rowAlignment ||
|
7303
|
-
this.getCellAlignment(cell, "vertical")}`]: !!((_c = column === null || column === void 0 ? void 0 : column.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
7304
|
-
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
7305
|
-
!!rowAlignment ||
|
7306
|
-
!!this.getCellAlignment(cell, "vertical"),
|
7307
|
-
}, style: Object.assign({}, this.getColumnWidth(column.columnWidth)) }, this.isObject(cell) &&
|
7308
|
-
Object.keys(cell).includes("actionElement") ? (hAsync("div", { class: "cell-grid-wrapper" }, CellContent, hAsync("span", { class: "action-element", innerHTML: cellValue("actionElement"),
|
7309
|
-
// eslint-disable-next-line react/jsx-no-bind
|
7310
|
-
onClick: cell.actionOnClick
|
7311
|
-
? (event) => this.handleClick(event, cell.actionOnClick)
|
7312
|
-
: undefined }))) : (CellContent)));
|
7313
|
-
}
|
7432
|
+
const { columnAlignment, columnWidth, dataType, hidden, key } = column;
|
7433
|
+
if (hidden)
|
7434
|
+
return;
|
7435
|
+
const cell = this.getObjectValue(row, key);
|
7436
|
+
const cellSlotName = `${key}-${rowIndex}`;
|
7437
|
+
const cellValue = (key) => this.getObjectValue(cell, key);
|
7438
|
+
if (key === "header" && (rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.header)) {
|
7439
|
+
return (hAsync("th", { scope: "row", class: {
|
7440
|
+
"row-header": true,
|
7441
|
+
"row-header-sticky": this.stickyRowHeaders,
|
7442
|
+
[`row-header-alignment-${(_a = rowOptions.rowAlignment) === null || _a === void 0 ? void 0 : _a.horizontal}`]: !!((_b = rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.horizontal),
|
7443
|
+
} }, rowOptions.header));
|
7314
7444
|
}
|
7445
|
+
const CellContent = this.createCellContent(column, cell, cellSlotName, this.isObject(cell) && Object.keys(cell).includes("icon"), cellValue, rowOptions, currentRowHeight || undefined);
|
7446
|
+
return (hAsync("td", { class: {
|
7447
|
+
"table-cell": true,
|
7448
|
+
"with-overflow": dataType === "element",
|
7449
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
7450
|
+
[`cell-vertical-align-${(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
7451
|
+
((_c = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
7452
|
+
this.getCellAlignment(cell, "vertical")}`]: !!(columnAlignment === null || columnAlignment === void 0 ? void 0 : columnAlignment.vertical) ||
|
7453
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
7454
|
+
!!this.getCellAlignment(cell, "vertical"),
|
7455
|
+
}, style: Object.assign({}, this.getColumnWidth(columnWidth)) }, isSlotUsed(this.el, `${cellSlotName}-action-element`) ? (hAsync("div", { class: "cell-grid-wrapper" }, CellContent, hAsync("span", { class: "action-element" }, hAsync("slot", { name: `${cellSlotName}-action-element` })))) : (CellContent)));
|
7315
7456
|
});
|
7316
7457
|
};
|
7317
7458
|
this.createColumnHeaders = () => (this.columns || []).map(({ cellAlignment, colspan, icon, key, title, columnWidth, excludeColumnFromSort, hidden, }, index) => hidden !== true && (hAsync("th", { scope: "col", class: {
|
@@ -7329,9 +7470,7 @@ class DataTable {
|
|
7329
7470
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
7330
7471
|
["column-header-text"]: true,
|
7331
7472
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
7332
|
-
} }, title)), this.sortable && !excludeColumnFromSort && (hAsync("ic-button", { variant: "icon-tertiary", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
7333
|
-
// eslint-disable-next-line react/jsx-no-bind
|
7334
|
-
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
7473
|
+
} }, title)), this.sortable && !excludeColumnFromSort && (hAsync("ic-button", { variant: "icon-tertiary", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key), onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
7335
7474
|
? this.sortedColumnOrder
|
7336
7475
|
: "unsorted"], class: {
|
7337
7476
|
["sort-button"]: true,
|
@@ -7613,9 +7752,14 @@ class DataTable {
|
|
7613
7752
|
this.fixCellTooltip(slottedEl);
|
7614
7753
|
});
|
7615
7754
|
});
|
7616
|
-
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) =>
|
7755
|
+
(_d = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelectorAll(".action-element")) === null || _d === void 0 ? void 0 : _d.forEach((actionElementSpan) => {
|
7756
|
+
const actionElement = actionElementSpan.firstChild;
|
7757
|
+
const slottedActionElement = this.getSlottedActionElement(actionElement);
|
7758
|
+
if (slottedActionElement) {
|
7759
|
+
this.fixCellTooltip(slottedActionElement);
|
7760
|
+
}
|
7761
|
+
});
|
7617
7762
|
};
|
7618
|
-
this.handleClick = (event, callback) => callback(event);
|
7619
7763
|
this.renderTableBody = (loading, data, overlay) => {
|
7620
7764
|
if (!(data === null || data === void 0 ? void 0 : data.length))
|
7621
7765
|
return;
|
@@ -7997,22 +8141,22 @@ class DataTable {
|
|
7997
8141
|
? "deselect all"
|
7998
8142
|
: "select all remaining"
|
7999
8143
|
: "select all";
|
8000
|
-
return (hAsync(Host, { key: '
|
8144
|
+
return (hAsync(Host, { key: 'bcb83a93fd9734b2ddb501c75a0bd7267f22b45c', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '2aeadd74b7a8e5acf93ea72ce77c7a0ad520d95b', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '359c51f2db8d1ef0f4ba4da77acc334cb82f0ff1', name: "title-bar" }), hAsync("div", { key: 'ad28fdb967fe02e2d3b31e9e73787655f9b5bf5c', class: {
|
8001
8145
|
["table-row-container"]: true,
|
8002
8146
|
scrollable,
|
8003
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
8147
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: 'ed247db011e9783c6d56a03afe480fe5f4f2b6d0', style: {
|
8004
8148
|
"--table-layout": tableLayout,
|
8005
|
-
} }, hAsync("caption", { key: '
|
8149
|
+
} }, hAsync("caption", { key: '52bd7f8ae17ba373dceba49f7ee628780c825c71', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: '04d0c0199793ac830c9cc24fca64c999a287b690', class: {
|
8006
8150
|
["column-header-sticky"]: stickyColumnHeaders,
|
8007
8151
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
8008
|
-
} }, hAsync("tr", { key: '
|
8152
|
+
} }, hAsync("tr", { key: '5ff4686d2053f702a4d8217986d94d7a45596402' }, rowSelection && data && (hAsync("th", { key: 'b03c33ef7d27c1be4b9cff06eecfd85f280fb379', class: {
|
8009
8153
|
"column-header": true,
|
8010
8154
|
"checkbox-cell": true,
|
8011
8155
|
"updating-state-headers": updating && !loading,
|
8012
8156
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
8013
|
-
} }, hAsync("div", { key: '
|
8157
|
+
} }, hAsync("div", { key: '5c114f3e53652b8b700b2fad7365976f87b7b6c2', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: '349c87540675235321324f16157deedbd3221e45', 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 &&
|
8014
8158
|
!loading &&
|
8015
|
-
(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: '
|
8159
|
+
(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: '913a847423633138a6f2ed004499c82863ae9b90', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: '3998139318125dd0767c2ec0faf5e3059335aa40', class: "pagination-container" }, isSlotUsed(this.el, "pagination-bar") ? (hAsync("slot", { name: "pagination-bar" })) : (hAsync("ic-pagination-bar", { alignment: paginationBarOptions.alignment, hideAllFromItemsPerPage: paginationBarOptions.hideAllFromItemsPerPage, 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: '97605941ae5d70267886542504d34751695ea57f', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
8016
8160
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
8017
8161
|
sortedColumn} sorted ${sortedColumnOrder}`
|
8018
8162
|
: "table unsorted")))));
|
@@ -8251,7 +8395,7 @@ var Calendar = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" v
|
|
8251
8395
|
const icDateInputCss = "/*! 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-date-input-bg);--ic-input-label-text-color:var(--ic-date-input-label);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle);--border-color:var(--ic-date-input-border);--border-color-disabled:var(--ic-date-input-border-disabled);--border-color-hover:var(--ic-date-input-border-default-hover);--border-color-pressed:var(--ic-date-input-border-default-pressed);--border-error-color:var(--ic-date-input-border-error);--border-error-color-hover:var(--ic-date-input-border-error-hover);--border-error-color-pressed:var(--ic-date-input-border-error-pressed);--border-success-color:var(--ic-date-input-border-success);--border-success-color-hover:var(--ic-date-input-border-success-hover);--border-success-color-pressed:var(--ic-date-input-border-success-pressed);--border-warning-color:var(--ic-date-input-border-warning);--border-warning-color-hover:var(--ic-date-input-border-warning-hover);--border-warning-color-pressed:var(--ic-date-input-border-warning-pressed)}:host(.ic-date-input-disabled){--ic-input-label-text-color:var(--ic-date-input-label-disabled);--ic-input-label-helper-text-color:var(--ic-date-input-subtitle-disabled)}input{border:0;height:100%;padding:0;outline:none;background:none;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:var(--ic-date-input-text-filled);caret-color:var(--ic-date-input-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-date-input-text-filled) !important}input::-moz-placeholder{color:var(--ic-date-input-text-placeholder)}input::placeholder{color:var(--ic-date-input-text-placeholder)}ic-input-component-container{cursor:text}ic-input-component-container .focus-indicator{padding:var(--ic-space-xxxs) var(--ic-space-xs);align-items:center}.date-inputs{color:var(--ic-date-input-text-placeholder)}.day-input{width:1.438rem}.month-input{width:1.813rem}.year-input,.year-input.fit-to-value{width:2.313rem}.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-calendar-button-wrapper{display:flex;justify-content:center;align-items:center}.clear-button,.calendar-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,.calendar-button:focus,.clear-button:active,.calendar-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}.calendar-button:focus,.calendar-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,.calendar-button:focus,.clear-button:active *,.calendar-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button svg{color:var(--ic-date-input-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-date-input-status-text);--ic-input-validation-error:var(--ic-date-input-icon-error);--ic-input-validation-warning-icon-color:var(--ic-date-input-icon-warning);--ic-input-validation-success-icon-color:var(--ic-date-input-icon-success)}";
|
8252
8396
|
var IcDateInputStyle0 = icDateInputCss;
|
8253
8397
|
|
8254
|
-
let inputIds$
|
8398
|
+
let inputIds$5 = 0;
|
8255
8399
|
/**
|
8256
8400
|
* @slot helper-text - Content is set as the helper text for the date input.
|
8257
8401
|
*/
|
@@ -8273,7 +8417,7 @@ class DateInput {
|
|
8273
8417
|
this.inputsInOrder = [];
|
8274
8418
|
this.isAfterMax = false;
|
8275
8419
|
this.isBeforeMin = false;
|
8276
|
-
this.
|
8420
|
+
this.preventInputsUpdating = false;
|
8277
8421
|
this.isDisabledDate = false;
|
8278
8422
|
this.isValidDay = true;
|
8279
8423
|
this.isValidMonth = true;
|
@@ -8286,6 +8430,7 @@ class DateInput {
|
|
8286
8430
|
this.selectedDate = null;
|
8287
8431
|
this.externalSetDate = false;
|
8288
8432
|
this.clearInput = false;
|
8433
|
+
this.calendarIsOpen = false;
|
8289
8434
|
this.calendarFocused = false;
|
8290
8435
|
this.clearButtonFocused = false;
|
8291
8436
|
this.removeLabelledBy = false;
|
@@ -8339,7 +8484,7 @@ class DateInput {
|
|
8339
8484
|
/**
|
8340
8485
|
* The ID for the input.
|
8341
8486
|
*/
|
8342
|
-
this.inputId = `ic-date-input-${inputIds$
|
8487
|
+
this.inputId = `ic-date-input-${inputIds$5++}`;
|
8343
8488
|
/**
|
8344
8489
|
* The text to display as the validation message when an invalid date is entered.
|
8345
8490
|
*/
|
@@ -8493,7 +8638,6 @@ class DateInput {
|
|
8493
8638
|
this.setPreventInput(input, true);
|
8494
8639
|
}
|
8495
8640
|
else {
|
8496
|
-
this.setInputValue(input, true);
|
8497
8641
|
this.setPreventInput(input, false);
|
8498
8642
|
}
|
8499
8643
|
}
|
@@ -8542,7 +8686,7 @@ class DateInput {
|
|
8542
8686
|
break;
|
8543
8687
|
}
|
8544
8688
|
this.preventInput(event, isInputPrevented);
|
8545
|
-
this.
|
8689
|
+
this.preventInputsUpdating = true;
|
8546
8690
|
};
|
8547
8691
|
this.handleFocus = (event) => {
|
8548
8692
|
// Highlight / select all characters in input for easy replacement
|
@@ -8654,7 +8798,7 @@ class DateInput {
|
|
8654
8798
|
this.selectedDateInfoEl.textContent = "";
|
8655
8799
|
}
|
8656
8800
|
this.previousSelectedDate = this.selectedDate;
|
8657
|
-
if (!this.
|
8801
|
+
if (!this.preventInputsUpdating) {
|
8658
8802
|
this.updateInputValues(this.day, this.month, this.year);
|
8659
8803
|
}
|
8660
8804
|
}
|
@@ -9093,7 +9237,7 @@ class DateInput {
|
|
9093
9237
|
this.setPreventInput(input, false);
|
9094
9238
|
});
|
9095
9239
|
this.clearInput = false;
|
9096
|
-
this.
|
9240
|
+
this.preventInputsUpdating = false;
|
9097
9241
|
this.setValidationMessage();
|
9098
9242
|
this.handleDateChange(true);
|
9099
9243
|
this.inputsInOrder[0].focus();
|
@@ -9104,7 +9248,8 @@ class DateInput {
|
|
9104
9248
|
(_c = (_b = (_a = this.calendarButtonEl) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("ic-tooltip")) === null || _c === void 0 ? void 0 : _c.displayTooltip(false);
|
9105
9249
|
this.calendarButtonClicked.emit({ value: this.selectedDate });
|
9106
9250
|
(_f = (_e = (_d = this.calendarButtonEl) === null || _d === void 0 ? void 0 : _d.shadowRoot) === null || _e === void 0 ? void 0 : _e.querySelector("ic-tooltip")) === null || _f === void 0 ? void 0 : _f.displayTooltip(false);
|
9107
|
-
this.
|
9251
|
+
this.preventInputsUpdating = false;
|
9252
|
+
this.calendarIsOpen = true;
|
9108
9253
|
};
|
9109
9254
|
this.setValueAndEmitChange = (value) => {
|
9110
9255
|
if (!dateMatches(this.value ? new Date(this.value) : null, value)) {
|
@@ -9114,17 +9259,28 @@ class DateInput {
|
|
9114
9259
|
};
|
9115
9260
|
this.handleCalendarFocus = () => {
|
9116
9261
|
this.calendarFocused = true;
|
9262
|
+
if (this.calendarIsOpen) {
|
9263
|
+
// focus event triggered by closing calendar dialog so inputs should update
|
9264
|
+
this.preventInputsUpdating = false;
|
9265
|
+
this.calendarIsOpen = false;
|
9266
|
+
}
|
9267
|
+
else {
|
9268
|
+
this.preventInputsUpdating = true;
|
9269
|
+
}
|
9117
9270
|
};
|
9118
9271
|
this.handleCalendarBlur = () => {
|
9119
9272
|
this.calendarFocused = false;
|
9273
|
+
this.preventInputsUpdating = true;
|
9120
9274
|
};
|
9121
9275
|
this.handleClearFocus = () => {
|
9122
9276
|
this.removeLabelledBy = true;
|
9277
|
+
this.preventInputsUpdating = true;
|
9123
9278
|
this.clearButtonFocused = true;
|
9124
9279
|
};
|
9125
9280
|
this.handleClearBlur = (ev) => {
|
9126
9281
|
var _a;
|
9127
9282
|
this.clearButtonFocused = false;
|
9283
|
+
this.preventInputsUpdating = true;
|
9128
9284
|
if ((_a = ev.relatedTarget) === null || _a === void 0 ? void 0 : _a.id.match(/(day|year)-input$/)) {
|
9129
9285
|
this.removeLabelledBy = false;
|
9130
9286
|
return;
|
@@ -9248,11 +9404,11 @@ class DateInput {
|
|
9248
9404
|
componentWillUpdate() {
|
9249
9405
|
if (isEmptyString(this.helperText))
|
9250
9406
|
this.helperText = this.defaultHelperText;
|
9251
|
-
if (!this.
|
9407
|
+
if (!this.preventInputsUpdating)
|
9252
9408
|
this.setDate(this.value);
|
9253
9409
|
this.setAriaInvalid(this.isValidDay, this.isValidMonth, this.isValidDate, this.isDisabledDate);
|
9254
9410
|
this.handleDateChange(false);
|
9255
|
-
this.
|
9411
|
+
this.preventInputsUpdating = false;
|
9256
9412
|
}
|
9257
9413
|
componentDidRender() {
|
9258
9414
|
if (this.removeLabelledBy) {
|
@@ -9382,7 +9538,7 @@ class DateInput {
|
|
9382
9538
|
this.invalidDateText = (_a = this.previousInvalidDateTest) !== null && _a !== void 0 ? _a : "";
|
9383
9539
|
this.isPasteValidationDisplayed = false;
|
9384
9540
|
// This is to prevent setDate from triggering within componentWillUpdate
|
9385
|
-
this.
|
9541
|
+
this.preventInputsUpdating = true;
|
9386
9542
|
}
|
9387
9543
|
}
|
9388
9544
|
notifyScreenReader(input, event) {
|
@@ -9407,15 +9563,15 @@ class DateInput {
|
|
9407
9563
|
: "";
|
9408
9564
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
9409
9565
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
9410
|
-
return (hAsync(Host, { key: '
|
9566
|
+
return (hAsync(Host, { key: '767560eabf5c5242cf11ead943b6e07cff501305', class: {
|
9411
9567
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
9412
9568
|
[`ic-date-input-disabled`]: disabled,
|
9413
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
9569
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: 'cd37bd9a48a9f578cdf5b3f5a03bba04e4a502d5', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: '0bdb602306aa1177106759da5f977f36869a51e1', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: '3eba48de2044efaaba63c31474597c88906cf0e7', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: '4395cbcc455b0535a1dc51a17d43d2056894558c', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '2832552e06bf18c157e4b89240603c66e97d2bd7', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: '96ea3a7bb98dec9d217c9abfde2fffe29fd8b10b', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '239191d8b0d2f732fab91303a283d4592a6a8cbc', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: 'b11b5d3a989391a0960b29ca54e78f9de1e41f97', class: "input-container" }, hAsync("div", { key: '2e4106d33ee3b1ef5cf89cb61ac38f15c792a601', class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), hAsync("div", { key: '8da9c7b8ca40a1bba9a714de24ae33e540ed91d0', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '2a7a675746e26ffdd4a6d43f4fdd268b9425f81f', id: "clear-button", "aria-label": "Clear input", class: {
|
9414
9570
|
["clear-button"]: true,
|
9415
9571
|
["hidden"]: isEmptyString(this.day) &&
|
9416
9572
|
isEmptyString(this.month) &&
|
9417
9573
|
isEmptyString(this.year),
|
9418
|
-
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '
|
9574
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showCalendarButton && (hAsync("div", { key: '1a402f80e4ebfdb1e323b159dc2f93e412f84ff2', class: "show-calendar-button-wrapper" }, hAsync("div", { key: '1a93e892a8808109e93eb94ecee6639f930e78ac', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: '0a4a5c7d2fd886be631ad052d02175c05900a814', 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: 'c3db6318bf5b2759c708d07d0b5e446d35702f38', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '6a682bf4c118014e15709e3d7099f9346a41d1a5', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidDateText)) && (hAsync("ic-input-validation", { key: '90d5948c97133f9c1028016a20bc8b09542de88c', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId })))));
|
9419
9575
|
}
|
9420
9576
|
static get delegatesFocus() { return true; }
|
9421
9577
|
get el() { return getElement(this); }
|
@@ -9707,6 +9863,10 @@ class DatePicker {
|
|
9707
9863
|
* If `true`, days outside the current month will be visible in the date picker.
|
9708
9864
|
*/
|
9709
9865
|
this.showDaysOutsideMonth = true;
|
9866
|
+
/**
|
9867
|
+
* If 'true', the 'X' button on the date input will be visible, which clears the field.
|
9868
|
+
*/
|
9869
|
+
this.showClearButton = true;
|
9710
9870
|
/**
|
9711
9871
|
* If `true`, the `Clear` button on the date picker will be visible.
|
9712
9872
|
*/
|
@@ -10415,6 +10575,9 @@ class DatePicker {
|
|
10415
10575
|
if (this.required) {
|
10416
10576
|
inputProps.required = this.required;
|
10417
10577
|
}
|
10578
|
+
if (this.showClearButton !== null) {
|
10579
|
+
inputProps.showClearButton = this.showClearButton;
|
10580
|
+
}
|
10418
10581
|
if (this.size !== "medium") {
|
10419
10582
|
inputProps.size = this.size;
|
10420
10583
|
}
|
@@ -10591,33 +10754,33 @@ class DatePicker {
|
|
10591
10754
|
yesterday.setDate(minDate.getDate() - 1);
|
10592
10755
|
minDay = yesterday;
|
10593
10756
|
}
|
10594
|
-
return (hAsync(Host, { key: '
|
10757
|
+
return (hAsync(Host, { key: '531d49da81ba4f0d37c6a3644200e2b4354ef362', onKeyDown: this.keyDownHandler, class: {
|
10595
10758
|
[`ic-date-picker-${size}`]: true,
|
10596
10759
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
10597
|
-
} }, hAsync("div", { key: '
|
10760
|
+
} }, hAsync("div", { key: '4481290ae95d3ae086e0d50662c200b292c082ac', class: "date-input-container" }, hAsync("ic-date-input", Object.assign({ key: '56558836ac8b41e61149b007ac1cf16b506f8998', ref: (el) => (this.inputEl = el) }, dateInputProps), hAsync("slot", { key: 'de8165f61fa5333e8ca05ed0a18efbcb22578e1f', name: "helper-text", slot: "helper-text" }))), calendarOpen && (hAsync("div", { key: 'b5e7f219cc50107b5360779534094826ee4efeb5' }, hAsync("span", { key: 'cebf92d9beea25c39fd0bf64ff376015ea416698', id: "dialog-description", class: "sr-only" }, dialogDescription), hAsync("div", { key: '6ab22c6b303a6b91744584607fc6ad1fb349d035', role: "dialog", "aria-modal": "true", "aria-label": dialogLabel, "aria-describedBy": "dialog-description", class: {
|
10598
10761
|
"calendar-container": true,
|
10599
10762
|
above: this.showPickerAbove,
|
10600
|
-
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '
|
10763
|
+
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '1d3e11ab36f7fff14524586a982ddd457e4509a1', ref: (el) => (this.liveRegionEl = el), id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: '499133f3a2f1cf5a79c7f7b9d695959d5ee76f0d', class: {
|
10601
10764
|
"month-year-nav-container": true,
|
10602
|
-
} }, hAsync("div", { key: '
|
10765
|
+
} }, hAsync("div", { key: '519bf58003c5ca9f5bccc59e7c31a25c096e340d', class: "month-year-nav" }, this.previousMonthButton(), hAsync("span", { key: 'a4e70c8464318199e86df119481d5f7519e8c8ee', id: "select-month-hint", "aria-hidden": "true" }, monthButtonText), hAsync("ic-button", { key: '3c91455809a1630355b0f9f1e757da9e15ac04b6', ref: (el) => (this.monthButtonEl = el), size: size, class: "month-picker-button", "aria-haspopup": "menu", "aria-expanded": monthPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": monthLabel, "aria-describedby": "select-month-hint", onKeyDown: this.monthButtonKeyDownHandler, onClick: this.monthButtonClickHandler }, monthNames[monthInView]), this.nextMonthButton()), hAsync("div", { key: '8a9ba32ac36960d01070cab55953ff1bee71fa89', class: "month-year-nav" }, this.previousYearButton(), hAsync("span", { key: '038dfdff3ab2164d6eb2a18803f96a293ee26503', id: "select-year-hint", "aria-hidden": "true" }, yearButtonText), hAsync("ic-button", { key: '3a6fd2d52d8d3f52229aa08fc193ea5094825e26', ref: (el) => (this.yearButtonEl = el), size: size, class: "year-picker-button", "aria-haspopup": "menu", "aria-expanded": yearPickerVisible ? "true" : "false", "full-width": "true", variant: "tertiary", "aria-label": yearLabel, "aria-describedby": "select-year-hint", onKeyDown: this.yearButtonKeyDownHandler, onClick: this.yearButtonClickHandler }, this.yearInView), this.nextYearButton())), !(monthPickerVisible || yearPickerVisible) && (hAsync("div", { key: '78ca07c7e9b5b4737f6bef0fa40c9fb6fdeeb71c', class: {
|
10603
10766
|
calendar: true,
|
10604
10767
|
hidden: monthPickerVisible || yearPickerVisible,
|
10605
|
-
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '
|
10768
|
+
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: 'f740560dfc757dce70213118d6a0faacd415e188', class: "weekdays", "aria-hidden": "true" }, orderedDaysOfWeek.map((dayName) => {
|
10606
10769
|
const header = size === "small" ? dayName.charAt(0) : dayName;
|
10607
10770
|
return (hAsync("div", { class: "calendar-day-header" }, hAsync("ic-typography", { variant: "caption" }, header)));
|
10608
|
-
})), hAsync("div", { key: '
|
10771
|
+
})), hAsync("div", { key: 'c77c16fd12c3deeb1891a712ba709e6f29c970b5', class: "calendar-days-container" }, this.currMonthView.map((day) => {
|
10609
10772
|
var _a;
|
10610
10773
|
return (hAsync(DayButton, { day: day, disableDay: (_a = this.disableDays) === null || _a === void 0 ? void 0 : _a.includes(Number(day.getDay())), today: dateMatches(day, this.today), selected: dateMatches(day, this.selectedDate), focussed: dateMatches(day, this.focussedDate), inRange: dateInRange(day, minDay, maxDate), monthInView: monthInView, onSelectDay: this.handleSelectDay, focussedDayRef: this.setFocussedDayEl, onFocusDay: this.onDayButtonFocusHandler, onBlurDay: this.onDayButtonBlurHandler, showDaysOutsideMonth: this.showDaysOutsideMonth }));
|
10611
|
-
})))), hAsync("div", { key: '
|
10774
|
+
})))), hAsync("div", { key: '3e2853724e6401a48c7307940d00a43f64cd941a', class: {
|
10612
10775
|
"month-picker-container": true,
|
10613
10776
|
hidden: !monthPickerVisible,
|
10614
|
-
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '
|
10777
|
+
} }, monthPickerVisible && (hAsync(MonthPicker, { key: 'f3434bb526e456e46d219e7204f8e92a9c91c4b6', size: size, onSelectMonth: this.handleSelectMonth, monthInView: monthInView, focussedMonth: focussedMonth, onKeyDown: this.monthPickerKeyDownHandler, focussedMonthRef: this.setFocussedMonthEl, minDate: minDate, maxDate: maxDate, yearInView: yearInView }))), hAsync("div", { key: '540673c1426c75f0b7b2d96a07f8437fca64457a', class: {
|
10615
10778
|
"year-picker-container": true,
|
10616
10779
|
hidden: !yearPickerVisible,
|
10617
|
-
} }, yearPickerVisible && (hAsync(YearPicker, { key: '
|
10780
|
+
} }, yearPickerVisible && (hAsync(YearPicker, { key: 'd41bc6ef23d9112681165fcd423cd6fa290bce63', decadeView: decadeView, size: size, focussedYear: focussedYear, onSelectYear: this.handleSelectYear, onKeyDown: this.yearPickerKeyDownHandler, onFocusYear: this.onYearButtonFocusHandler, onBlurYear: this.onYearButtonBlurHandler, yearInView: yearInView, minDate: minDate, maxDate: maxDate, focussedYearRef: this.setFocussedYearEl }))), hAsync("div", { key: '2cbd003e0f17165e1a9ce1c2b84eb4cff4399a72', class: {
|
10618
10781
|
"bottom-buttons": true,
|
10619
10782
|
"no-today": !showPickerTodayButton,
|
10620
|
-
} }, showPickerTodayButton && (hAsync("ic-button", { key: '
|
10783
|
+
} }, showPickerTodayButton && (hAsync("ic-button", { key: '524161f633a38ed896c1416ca2b21f4f7cb09939', id: "today-button", variant: "tertiary", ref: (el) => (this.todayButtonEl = el), size: size, "aria-label": "Navigate to current date", onClick: this.todayButtonClickHandler, onKeyDown: this.todayButtonKeyDownHandler, disabled: this.isCurrentMonth() }, "Go to today")), showPickerClearButton && (hAsync("ic-button", { key: 'a4525f0a27fe97bfd2ae01ef0d9205e596a09b29', id: "clear-button", "aria-label": "clear selected date", ref: (el) => (this.clearButtonEl = el), variant: "tertiary", size: size, onClick: this.clearButtonClickHandler, onKeyDown: this.clearButtonKeyDownHandler, disabled: this.value === "" ||
|
10621
10784
|
this.value === null ||
|
10622
10785
|
this.value === undefined }, "Clear"))))))));
|
10623
10786
|
}
|
@@ -10664,6 +10827,7 @@ class DatePicker {
|
|
10664
10827
|
"openAtDate": [1, "open-at-date"],
|
10665
10828
|
"required": [4],
|
10666
10829
|
"showDaysOutsideMonth": [4, "show-days-outside-month"],
|
10830
|
+
"showClearButton": [4, "show-clear-button"],
|
10667
10831
|
"showPickerClearButton": [4, "show-picker-clear-button"],
|
10668
10832
|
"showPickerTodayButton": [4, "show-picker-today-button"],
|
10669
10833
|
"size": [1],
|
@@ -11038,7 +11202,7 @@ class Dialog {
|
|
11038
11202
|
}
|
11039
11203
|
render() {
|
11040
11204
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
11041
|
-
return (hAsync(Host, { key: '
|
11205
|
+
return (hAsync(Host, { key: 'ff1c220a6687596221a97f380dd78692d1689ca7', class: {
|
11042
11206
|
"ic-dialog-hidden": !dialogRendered,
|
11043
11207
|
"ic-dialog-fade-in": fadeIn,
|
11044
11208
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -11238,11 +11402,11 @@ class EmptyState {
|
|
11238
11402
|
}
|
11239
11403
|
render() {
|
11240
11404
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
11241
|
-
return (hAsync(Host, { key: '
|
11405
|
+
return (hAsync(Host, { key: '4bb35d1c3476b88cc58e952b1b8785e4425d5339', class: {
|
11242
11406
|
[`ic-empty-state-${aligned}`]: true,
|
11243
11407
|
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
11244
11408
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
11245
|
-
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '
|
11409
|
+
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '9e87ed9f746d37f57505a75c62b10279b31ef54e', name: "image" }), hAsync("div", { key: '4f94dc11d843660d3fecd976fa71f9c57644c89b' }, hAsync("slot", { key: 'be23c55a8dc832904fbae342890d2a3d2d74ae85', name: "heading" }, hAsync("ic-typography", { key: '52bf3dca695fecff3e5d650bd81db23d09665258', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: '7ed10d78475ac8b9c3f5a084a1294ad1be180f15', name: "subheading" }, hAsync("ic-typography", { key: '5772d056578a64a951178c3c3026b36d4b316496', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: '14a8815b51a06521642921f09fa8346483522e84', name: "body" }, hAsync("ic-typography", { key: 'bca780cc2275e81d4e25bae45f5065f6fab3bcd5', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: 'd6c0f61a358c1d0c86c4da922ed0504ffdc8228f', class: "action-area" }, hAsync("slot", { key: 'ac150a34e883376bfee43a6edbeb8992c3bc3f96', name: "actions" })))));
|
11246
11410
|
}
|
11247
11411
|
get el() { return getElement(this); }
|
11248
11412
|
static get style() { return IcEmptyStateStyle0; }
|
@@ -11356,7 +11520,7 @@ class Footer {
|
|
11356
11520
|
isSlotUsed$1(el, "caption") ||
|
11357
11521
|
caption ||
|
11358
11522
|
copyright;
|
11359
|
-
return (hAsync(Host, { key: '
|
11523
|
+
return (hAsync(Host, { key: '5e9f3b92157b9ffa5fc6e2dbe8f8a5c6a63a6237', class: {
|
11360
11524
|
["ic-footer"]: true,
|
11361
11525
|
[`ic-footer-${small ? "small" : "sparse"}`]: true,
|
11362
11526
|
[`ic-footer-${groupLinks ? "grouped" : "ungrouped"}`]: true,
|
@@ -11364,10 +11528,10 @@ class Footer {
|
|
11364
11528
|
// Slots will be able to infer their own color
|
11365
11529
|
[`ic-footer-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
11366
11530
|
[`ic-footer-${IcBrandForegroundEnum$1.Light}`]: foregroundColor === IcBrandForegroundEnum$1.Light,
|
11367
|
-
} }, hAsync("footer", { key: '
|
11531
|
+
} }, hAsync("footer", { key: 'cfae5dcdd5a431bba915b83e5ef2ae2347d5bb6d', ref: (el) => (this.footerEl = el) }, (isSlotUsed$1(el, "description") || description) && (hAsync("div", { key: '9f960b8fcae0e3281b177bcfe1adf365657406dc', class: "footer-description" }, hAsync("ic-section-container", { key: '49455d77e8d5e9e8a1199dc0dcc00226291e9adc', aligned: aligned, fullHeight: true }, hAsync("div", { key: 'dab1fa34ca43acd9ff4c354f324c7c426d53c77b', class: "footer-description-inner" }, hAsync("ic-typography", { key: '484158672386c4fed447390ab0d92bfd759a9272', variant: "body" }, hAsync("slot", { key: '4a500553fd0f76a8d4f7ef8410dbd927896561b1', name: "description" }, description)))))), isSlotUsed$1(el, "link") && (hAsync("div", { key: 'ed8613714e2bf4d79cd062f55f2b716d3e0cd304', 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: 'c3876f5fa89d39f28e64db1bc0fca90978102a01', class: "footer-compliance" }, hAsync("ic-section-container", { key: '3e169ea49bcd2698b84c58f8105b0915777d8bf3', aligned: aligned, fullHeight: true }, hAsync("div", { key: '9cfaa13eb736d3aa44b15db43221bf28bf4deb57', class: "footer-compliance-inner" }, isSlotUsed$1(el, "logo") && (hAsync("div", { key: '853fdedd70405ebb2e96cec2adc6407e5ed11538', class: "footer-logo" }, hAsync("slot", { key: '4eaaad7a4f17cd51cbdab414cdbadf3096891d38', name: "logo" }))), (isSlotUsed$1(el, "caption") || caption) && (hAsync("div", { key: '44a611218c4ea0f494df1551ecb26a8687d57a95', class: "footer-caption" }, hAsync("ic-typography", { key: 'b970144c7d85b7e05e319233be68cc91ef2d0476', variant: deviceSize <= IC_DEVICE_SIZES$1.M ? "caption" : "body" }, hAsync("slot", { key: '512d173a680ddd65b3583bada7530aa67d3f1f98', name: "caption" }, caption)))), copyright && (hAsync("div", { key: '604ac3c72ae99883f27fdb609202782f6069bfde', class: {
|
11368
11532
|
["footer-copyright"]: true,
|
11369
11533
|
["classification-spacing"]: hasClassificationBanner(),
|
11370
|
-
} }, hAsync("ic-typography", { key: '
|
11534
|
+
} }, hAsync("ic-typography", { key: '144bbc0144a865f8a55a1df5606cea9dfa87b5e8', variant: deviceSize <= IC_DEVICE_SIZES$1.M
|
11371
11535
|
? "caption-uppercase"
|
11372
11536
|
: "label-uppercase" }, "\u00A9 Crown Copyright"))))))))));
|
11373
11537
|
}
|
@@ -11435,12 +11599,12 @@ class FooterLink {
|
|
11435
11599
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
11436
11600
|
const { small, grouped } = footerConfig;
|
11437
11601
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
11438
|
-
return (hAsync(Host, { key: '
|
11602
|
+
return (hAsync(Host, { key: 'b8797484e397b1a952f2df6f644c985deec5be65', class: {
|
11439
11603
|
"footer-link": true,
|
11440
11604
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
11441
11605
|
[`footer-link-${this.foregroundColor}`]: true,
|
11442
11606
|
"footer-logo-link": isLogoLink,
|
11443
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
11607
|
+
}, role: "listitem" }, hAsync("ic-link", { key: '1cd559f7c768a70d2bc0c92845ad6ae6761b584a', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: 'f2104f33d9651f96414a4963b30ea2e6c2414b18' }))));
|
11444
11608
|
}
|
11445
11609
|
static get delegatesFocus() { return true; }
|
11446
11610
|
get el() { return getElement(this); }
|
@@ -11615,18 +11779,18 @@ class Hero {
|
|
11615
11779
|
"background-position": scrollFactor,
|
11616
11780
|
};
|
11617
11781
|
}
|
11618
|
-
return (hAsync(Host, { key: '
|
11782
|
+
return (hAsync(Host, { key: '482bc3a82ab3561d6f88c999ca302006a1d1aa0f', class: {
|
11619
11783
|
[`ic-hero-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
11620
11784
|
["has-background-image"]: backgroundImage !== undefined,
|
11621
11785
|
["has-right-content"]: this.rightContent,
|
11622
11786
|
["ic-hero-small"]: size === "small",
|
11623
11787
|
["secondary-heading"]: !!secondaryHeading,
|
11624
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
11788
|
+
}, style: style }, hAsync("ic-section-container", { key: '178b06d47614a00c4dabe06841acfebe369f7c0a', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '3cec4f74434ae64cc7c7df77755c32a54719e08a', class: {
|
11625
11789
|
["left-container"]: true,
|
11626
11790
|
["left-container-full-width"]: this.leftContentFullWidth,
|
11627
|
-
} }, hAsync("div", { key: '
|
11791
|
+
} }, hAsync("div", { key: '8053a5fad4279b04af9bb3ec1f606ec443c70b80', class: "heading" }, hAsync("slot", { key: 'ea0ec581076b555f8cbc03bd26be611e0e002df3', name: "heading" }, hAsync("ic-typography", { key: '93e39803e6d71599ee3831161dee785b0fa6dda7', variant: size === "small" ? "h2" : "h1", class: {
|
11628
11792
|
["heading-bottom-spacing"]: size !== "small",
|
11629
|
-
} }, hAsync("h2", { key: '
|
11793
|
+
} }, hAsync("h2", { key: '6931cd6ef37ca5ab9d01d4ca969130b9daf8d7a5' }, heading)))), hAsync("div", { key: 'a6212993adb3a6f3e4b267825e73cbf02e3129e7', class: "subheading" }, hAsync("slot", { key: '993071f73747a2d880a1b858f4fd6d9fec507002', name: "subheading" }, hAsync("ic-typography", { key: 'e16fd2e61701713aa782b9d128de9187cc81edd3', variant: "body" }, subheading))), hAsync("div", { key: '0ecd487ff2614787759eb35bdc8c6aecb385d795', class: "interaction-container" }, hAsync("slot", { key: '653843aca5d99e5bed6d0343e31c285ca1ad7e6d', name: "interaction" }))), (isPropDefined$1(secondaryHeading) || this.rightContent) && (hAsync("div", { key: 'ce6b3edc98f9f112b0bde6c590e1fbf7d3b75af8', class: "right-container" }, hAsync("slot", { key: '173399d87b56f858542b71da3105d25f639aad87', name: "secondary" }, secondaryHeading && (hAsync("div", { key: 'a2e895801f1611c60baacde029f2c55ce36b60a3', class: "secondary-container" }, hAsync("div", { key: 'aedd5eb54afb5f93a263cf366223257c6074b697', class: "secondary-heading" }, hAsync("ic-typography", { key: '6ec103c17df879c443aa587c09e32bfac942c2e3', variant: "h4" }, hAsync("h3", { key: '37623268a450894886e5ae7fe773a950a120c3cc' }, secondaryHeading))), hAsync("div", { key: '8e0ca17e68cf68c016040827d2999635babd1c9d', class: "secondary-subheading" }, hAsync("ic-typography", { key: '14c59d487b56af4c70a4ec37ab6091262bcc4b69', variant: "subtitle-small" }, secondarySubheading))))))))));
|
11630
11794
|
}
|
11631
11795
|
get el() { return getElement(this); }
|
11632
11796
|
static get style() { return IcHeroStyle0; }
|
@@ -11817,22 +11981,22 @@ class HorizontalScroll {
|
|
11817
11981
|
}
|
11818
11982
|
render() {
|
11819
11983
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
11820
|
-
return (hAsync(Host, { key: '
|
11984
|
+
return (hAsync(Host, { key: '5c313665e71e0abc91a19f204ccf08d7b017f46b', class: {
|
11821
11985
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
11822
11986
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum$1.Dark,
|
11823
11987
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum$1.Light,
|
11824
11988
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
11825
|
-
} }, hAsync("div", { key: '
|
11989
|
+
} }, hAsync("div", { key: '7a65d56af26a6bfe660c3e923beaf7b512f77de8', "aria-hidden": "true", class: {
|
11826
11990
|
["scroll-container-left"]: true,
|
11827
11991
|
["hidden"]: !itemOverflow,
|
11828
11992
|
["disabled"]: firstItemVisible,
|
11829
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
11993
|
+
}, role: "tab" }, hAsync("ic-button", { key: '0203d6acdde7444d03038b3ec86f3e318615030d', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
11830
11994
|
? "dark"
|
11831
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
11995
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: 'dffb5fee1c17005205216d0901141317e2dc4aa6', class: "scroll-splitter-left" })), hAsync("slot", { key: 'f637c15f3020e1572a61179c2132dece11d0699a' }), hAsync("div", { key: 'c563d5ca6d07a66f2111bea5aebe7d36ae481770', "aria-hidden": "true", class: {
|
11832
11996
|
["scroll-container-right"]: true,
|
11833
11997
|
["hidden"]: !itemOverflow,
|
11834
11998
|
["disabled"]: lastItemVisible,
|
11835
|
-
}, role: "tab" }, hAsync("span", { key: '
|
11999
|
+
}, role: "tab" }, hAsync("span", { key: 'd8afe9aaf2304d13909815aeb8e60ac4f8952f7f', class: "scroll-splitter-right" }), hAsync("ic-button", { key: '4f3be747e736a50705793742b0a1e9fab44d56db', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
11836
12000
|
? "dark"
|
11837
12001
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
11838
12002
|
}
|
@@ -11907,15 +12071,15 @@ class InputComponentContainer {
|
|
11907
12071
|
}
|
11908
12072
|
render() {
|
11909
12073
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
11910
|
-
return (hAsync(Host, { key: '
|
12074
|
+
return (hAsync(Host, { key: 'c33ebfd9dd18101fb9161259538e8e0046f77a3d', class: {
|
11911
12075
|
[`ic-input-component-container-${size}`]: true,
|
11912
12076
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
11913
12077
|
"ic-input-component-container-disabled": !!disabled,
|
11914
12078
|
"ic-input-component-container-readonly": !!readonly,
|
11915
12079
|
"ic-input-component-container-multiline": !!multiLine,
|
11916
12080
|
"ic-input-component-container-full-width": !!fullWidth,
|
11917
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
11918
|
-
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '
|
12081
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: 'a70f27a3235ac0edb9d9c5a18983ae3c02de2a48', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: 'aa0b233280382bd0e95a8ff932bf60a63603b7bf', class: "icon-container" }, hAsync("slot", { key: 'ceb8ec9b420073ac2ecd5d6793ad4342ab9ebbdd', name: "left-icon" }))), hAsync("slot", { key: '1850c6ed04510e678600c653a36e2114f982e561' }), validationInline &&
|
12082
|
+
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '58d228c595577c1cc9a0fe2b10538cc3efff53ab', class: "inline-success", innerHTML: successIcon })))));
|
11919
12083
|
}
|
11920
12084
|
get el() { return getElement(this); }
|
11921
12085
|
static get watchers() { return {
|
@@ -11956,11 +12120,11 @@ class InputContainer {
|
|
11956
12120
|
this.readonly = false;
|
11957
12121
|
}
|
11958
12122
|
render() {
|
11959
|
-
return (hAsync(Host, { key: '
|
12123
|
+
return (hAsync(Host, { key: '32ae22db5e182cc2c092c8f48e61d42a318284a0' }, hAsync("div", { key: 'bae9ef74f7f92004ec99c387a213822315c505ba', class: {
|
11960
12124
|
["component-container"]: true,
|
11961
12125
|
["disabled"]: !!this.disabled,
|
11962
12126
|
["readonly"]: !!this.readonly,
|
11963
|
-
} }, hAsync("slot", { key: '
|
12127
|
+
} }, hAsync("slot", { key: 'acca571eaa0d8f19b0e3379d2592409aacf9dd95' }))));
|
11964
12128
|
}
|
11965
12129
|
static get style() { return IcInputContainerStyle0; }
|
11966
12130
|
static get cmpMeta() { return {
|
@@ -12043,11 +12207,11 @@ class InputLabel {
|
|
12043
12207
|
"helpertext-readonly": readonly,
|
12044
12208
|
};
|
12045
12209
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
12046
|
-
return (hAsync(Host, { key: '
|
12210
|
+
return (hAsync(Host, { key: 'da58fe3cac026661d1c624c69c56c6e64ff3c07a', class: {
|
12047
12211
|
"ic-input-label-disabled": !!disabled,
|
12048
12212
|
"ic-input-label-readonly": readonly,
|
12049
12213
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
12050
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
12214
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'bb221e5f51681a0caa721c66f03fd475e4e08749', variant: "label", class: {
|
12051
12215
|
"readonly-label": readonly,
|
12052
12216
|
"error-label": status === "error" && !(readonly || disabled),
|
12053
12217
|
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (hAsync("span", { id: helperTextId, class: helperTextClass }, hAsync("slot", { name: "helper-text" }))) : (helperText !== "" && (hAsync("ic-typography", { variant: "caption", class: helperTextClass }, hAsync("span", { id: helperTextId }, helperText))))));
|
@@ -12107,13 +12271,13 @@ class InputValidation {
|
|
12107
12271
|
render() {
|
12108
12272
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
12109
12273
|
const displayIcon = status !== "" ? icon[status] : "";
|
12110
|
-
return (hAsync(Host, { key: '
|
12274
|
+
return (hAsync(Host, { key: '149fe6ed6f86bb49ff8179e617542c048da4b80f', class: {
|
12111
12275
|
[`ic-input-validation-${status}`]: status !== "",
|
12112
12276
|
"ic-input-validation-full-width": !!fullWidth,
|
12113
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
12277
|
+
} }, displayIcon !== "" && (hAsync("span", { key: 'e9e0ad999d435642e02a9f9c4abb95840fe13b3f', class: {
|
12114
12278
|
"status-icon": true,
|
12115
12279
|
[`icon-${status}`]: true,
|
12116
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
12280
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '7494901b17b7bb3c91167e95190c415fd06f03c9', variant: "caption", class: "statustext" }, hAsync("span", { key: '5e7d2d4cdcef0d32d5338f25365bc9831203a9c9', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID$1(this.for) }, message)), hAsync("slot", { key: '445c0fe4b8effa3b9d98a9b240921e613ef43e24', name: "validation-message-adornment" })));
|
12117
12281
|
}
|
12118
12282
|
get el() { return getElement(this); }
|
12119
12283
|
static get style() { return IcInputValidationStyle0; }
|
@@ -12133,8 +12297,6 @@ class InputValidation {
|
|
12133
12297
|
}; }
|
12134
12298
|
}
|
12135
12299
|
|
12136
|
-
var OpenInNew = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>`;
|
12137
|
-
|
12138
12300
|
const icLinkCss = "/*! 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-link) .link,:host(.ic-link) ::slotted(a){color:var(--ic-link-text);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}:host(.ic-link) .link:visited,:host(.ic-link) ::slotted(a:visited),:host(.ic-link) .link:visited:hover,:host(.ic-link) ::slotted(a:visited:hover),:host(.ic-link) .link:visited:active,:host(.ic-link) ::slotted(a:visited:active),:host(.ic-link) .link:visited:focus,:host(.ic-link) ::slotted(a:visited:focus){color:var(--ic-link-text-visited)}:host(.ic-link) .link:hover{color:var(--ic-link-text-hover)}:host(.ic-link) .link:active{color:var(--ic-link-text-pressed)}:host(.ic-link) .link:focus{color:var(--ic-link-text-focused)}:host(.ic-link-monochrome) .link:hover{color:var(--ic-link-text-hover-monochrome)}:host(.ic-link-monochrome) .link:active{color:var(--ic-link-text-pressed-monochrome)}:host(.ic-link-monochrome) .link:focus{color:var(--ic-link-text-focused-monochrome)}:host(.ic-link) .link:hover,:host(.ic-link) .link:focus,:host(.ic-link) ::slotted(a:hover),:host(.ic-link) ::slotted(a:focus){outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}@supports (text-underline-offset: 10%){:host(.ic-link) .link:hover,:host(.ic-link) .link:focus,:host(.ic-link) ::slotted(a:hover),:host(.ic-link) ::slotted(a:focus){text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:10%;border-bottom:0 !important;margin-bottom:0 !important}}:host(.ic-link) .link:active,:host(.ic-link) .link:focus:active,:host(.ic-link) .link:visited:active,:host(.ic-link) ::slotted(a:active),:host(.ic-link) ::slotted(a:focus:active),:host(.ic-link) ::slotted(a:visited:active){text-decoration:none}.ic-link-open-in-new-icon{vertical-align:middle;margin-left:var(--ic-space-xxs)}.ic-link-open-in-new-icon>svg{width:var(--ic-space-md);height:var(--ic-space-md);fill:var(--ic-link-icon-launch)}.link:visited>.ic-link-open-in-new-icon>svg{fill:var(--ic-link-icon-launch-visited)}:host(.ic-link-monochrome) .link,:host(.ic-link-monochrome) ::slotted(a){color:var(--ic-link-text-monochrome)}:host(.ic-link-monochrome) .link:visited,:host(.ic-link-monochrome) ::slotted(a:visited),:host(.ic-link-monochrome) .link:visited:hover,:host(.ic-link-monochrome) ::slotted(a:visited:hover),:host(.ic-link-monochrome) .link:visited:active,:host(.ic-link-monochrome) ::slotted(a:visited:active),:host(.ic-link-monochrome) .link:visited:focus,:host(.ic-link-monochrome) ::slotted(a:visited:focus){color:var(--ic-link-text-visited-monochrome)}:host(.ic-link-monochrome) .link>.ic-link-open-in-new-icon>svg{fill:var(--ic-link-icon-launch-monochrome)}:host(.ic-link-monochrome) .link:visited>.ic-link-open-in-new-icon>svg{fill:var(--ic-link-icon-launch-visited-monochrome)}:host(.breadcrumb-link) .link{display:var(--breadcrumb-link-display);align-items:var(--breadcrumb-link-align-items);gap:var(--breadcrumb-link-gap)}:host(.breadcrumb-link) .link ::slotted(.back-icon){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.breadcrumb-link.current-page) a,:host(.breadcrumb-link.current-page) ::slotted(a){font-weight:normal;color:inherit;text-decoration:none;display:flex;align-items:center}:host(.breadcrumb-link.current-page) .link,:host(.breadcrumb-link.current-page) ::slotted(a:focus){outline:var(--ic-hc-focus-outline);text-decoration:none}:host(.breadcrumb-link.current-page) .link:visited{color:var(--ic-color-text-primary)}:host(.footer-link) ::slotted(a){color:var(--ic-footer-link) !important}:host(.footer-link) .ic-link-open-in-new-icon>svg{fill:var(--ic-footer-icon) !important}@media (forced-colors: active){:host(.ic-link) .ic-link-open-in-new-icon>svg{fill:currentcolor !important}}";
|
12139
12301
|
var IcLinkStyle0 = icLinkCss;
|
12140
12302
|
|
@@ -12222,7 +12384,7 @@ class Link {
|
|
12222
12384
|
}
|
12223
12385
|
render() {
|
12224
12386
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
12225
|
-
return (hAsync(Host, { key: '
|
12387
|
+
return (hAsync(Host, { key: 'bc07dfd2d7467391a9c121f1263df5d053f7a59c', class: {
|
12226
12388
|
["ic-link"]: true,
|
12227
12389
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12228
12390
|
["ic-link-monochrome"]: !!monochrome,
|
@@ -12253,7 +12415,7 @@ class Link {
|
|
12253
12415
|
}; }
|
12254
12416
|
}
|
12255
12417
|
|
12256
|
-
const icLoadingIndicatorCss = "/*! 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;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
|
12418
|
+
const icLoadingIndicatorCss = "/*! 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;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-circular-outer[aria-valuenow=\"0\"] .ic-loading-circular-inner,.ic-loading-linear-outer[aria-valuenow=\"0\"] .ic-loading-linear-inner{--inner-color:var(--outer-color)}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
|
12257
12419
|
var IcLoadingIndicatorStyle0 = icLoadingIndicatorCss;
|
12258
12420
|
|
12259
12421
|
const LOADING_INDICATOR_WIDTHS = {
|
@@ -12437,23 +12599,23 @@ class LoadingIndicator {
|
|
12437
12599
|
}
|
12438
12600
|
render() {
|
12439
12601
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
12440
|
-
return (hAsync(Host, { key: '
|
12602
|
+
return (hAsync(Host, { key: 'a56bc4f2265b8697fb78fe0cb021df4f7c84b34d', class: {
|
12441
12603
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12442
12604
|
"ic-loading-indicator-full-width": fullWidth,
|
12443
12605
|
"ic-loading-indicator-label": !!label,
|
12444
12606
|
"ic-loading-indicator-monochrome": monochrome,
|
12445
|
-
} }, hAsync("div", { key: '
|
12607
|
+
} }, hAsync("div", { key: '8da5f575ce68a85df03c23e256125ed968d55496', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: '1a32acb1ce270a95b88a77d13591151d8a280fe8', ref: (el) => (this.outerElement = el), class: {
|
12446
12608
|
[`ic-loading-${type}-outer`]: true,
|
12447
12609
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
12448
|
-
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: '
|
12610
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, hAsync("div", { key: '0189f89d2f2f5a9f7530e1bbef1874fd52a00f87', ref: (el) => (this.innerElement = el), class: {
|
12449
12611
|
[`ic-loading-${type}-inner`]: true,
|
12450
12612
|
"inner-label": !!innerLabel,
|
12451
|
-
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '
|
12613
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: '83c67de5d281dca4c293f3d06b278eabe63ccee3', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (hAsync("svg", { key: 'e2449654d4dcb904c56ba47f6f72cfda5bcee7f0', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: '6436f697d6e7d7e030178fc3653ec86a509c2965', cx: x, cy: y, r: r }), hAsync("circle", { key: '19da0a067ffdd864a08a630eabff268e9bfd1c33', style: {
|
12452
12614
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
12453
12615
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
12454
12616
|
"--stroke-dasharray": dashArray,
|
12455
12617
|
"--stroke-dashoffset": dashOffset,
|
12456
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '
|
12618
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: 'e4d24f7e59633400c36e0e380e52ea1714c7f88f', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, hAsync("p", { key: 'e89f399cb0c43c4cc7dd743a201789cf50a73ed9' }, indicatorLabel))))));
|
12457
12619
|
}
|
12458
12620
|
get el() { return getElement(this); }
|
12459
12621
|
static get watchers() { return {
|
@@ -14311,9 +14473,6 @@ class Menu {
|
|
14311
14473
|
this.hasPreviouslyBlurred = false;
|
14312
14474
|
this.hasTimedOut = false;
|
14313
14475
|
this.isLoading = false;
|
14314
|
-
this.isMultiSelect = false;
|
14315
|
-
this.isSearchBar = false;
|
14316
|
-
this.isSearchableSelect = false;
|
14317
14476
|
this.lastOptionSelected = null; // Index of last option selected
|
14318
14477
|
this.lastOptionFocused = null; // Index of last option focused
|
14319
14478
|
this.multiOptionClicked = null;
|
@@ -14346,6 +14505,18 @@ class Menu {
|
|
14346
14505
|
* The custom name for the label field for IcMenuOption.
|
14347
14506
|
*/
|
14348
14507
|
this.labelField = "label";
|
14508
|
+
/**
|
14509
|
+
* @internal - flag to specify if menu is in a ic-select multiple.
|
14510
|
+
*/
|
14511
|
+
this.multiSelect = false;
|
14512
|
+
/**
|
14513
|
+
* @internal - flag to specify if menu is in a searchable ic-select.
|
14514
|
+
*/
|
14515
|
+
this.searchableSelect = false;
|
14516
|
+
/**
|
14517
|
+
* @internal - flag to specify if menu is in a ic-search-bar.
|
14518
|
+
*/
|
14519
|
+
this.searchBar = false;
|
14349
14520
|
/**
|
14350
14521
|
* Specify the mode search bar uses to search. `navigation` allows for quick lookups of a set of values, `query` allows for more general searches.
|
14351
14522
|
*/
|
@@ -14378,7 +14549,7 @@ class Menu {
|
|
14378
14549
|
this.preventClickOpen = false;
|
14379
14550
|
}
|
14380
14551
|
// Reset optionHighlighted so previously highlighted option doesn't get reselected when Enter pressed
|
14381
|
-
if (this.
|
14552
|
+
if (this.multiSelect) {
|
14382
14553
|
this.optionHighlighted = undefined;
|
14383
14554
|
this.multiOptionClicked = null;
|
14384
14555
|
}
|
@@ -14412,27 +14583,12 @@ class Menu {
|
|
14412
14583
|
});
|
14413
14584
|
}
|
14414
14585
|
};
|
14415
|
-
this.getParentEl = (parent) => {
|
14416
|
-
if (parent.tagName === this.SEARCH_BAR_TAG) {
|
14417
|
-
this.isSearchBar = true;
|
14418
|
-
}
|
14419
|
-
else if (parent.tagName === "IC-SELECT") {
|
14420
|
-
if (parent.getAttribute("searchable") !== null &&
|
14421
|
-
parent.getAttribute("searchable") !== undefined) {
|
14422
|
-
this.isSearchableSelect = true;
|
14423
|
-
}
|
14424
|
-
else if (parent.getAttribute("multiple") !== null &&
|
14425
|
-
parent.getAttribute("multiple") !== undefined) {
|
14426
|
-
this.isMultiSelect = true;
|
14427
|
-
}
|
14428
|
-
}
|
14429
|
-
};
|
14430
14586
|
// Open menu when up or down arrow keys are pressed
|
14431
14587
|
this.arrowBehaviour = (event) => {
|
14432
14588
|
event.preventDefault();
|
14433
14589
|
this.handleMenuChange(true);
|
14434
14590
|
};
|
14435
|
-
this.getMenuOptions = () => this.
|
14591
|
+
this.getMenuOptions = () => this.searchBar ? this.options : this.ungroupedOptions;
|
14436
14592
|
// Set option that is focused and so should show focus state
|
14437
14593
|
this.setHighlightedOption = (highlightedIndex) => {
|
14438
14594
|
const menuOptions = this.getMenuOptions();
|
@@ -14470,11 +14626,11 @@ class Menu {
|
|
14470
14626
|
if (!this.isLoading && !this.hasTimedOut) {
|
14471
14627
|
this.keyboardNav = true;
|
14472
14628
|
}
|
14473
|
-
const isOpen = this.
|
14629
|
+
const isOpen = this.searchBar || this.searchableSelect || this.open;
|
14474
14630
|
if (isOpen) {
|
14475
14631
|
if (highlightedOptionIndex >= 0) {
|
14476
14632
|
if (options[highlightedOptionIndex] !== undefined) {
|
14477
|
-
if (this.
|
14633
|
+
if (this.searchBar &&
|
14478
14634
|
options[highlightedOptionIndex].disabled === true) {
|
14479
14635
|
this.disabledOptionSelected = true;
|
14480
14636
|
}
|
@@ -14519,7 +14675,7 @@ class Menu {
|
|
14519
14675
|
const clickedMultiOptionIndex = menuOptions.findIndex((option) => option[this.valueField] === this.multiOptionClicked);
|
14520
14676
|
const getOptionId = (index) => { var _a; return (_a = Array.from(this.host.querySelectorAll("li"))[index]) === null || _a === void 0 ? void 0 : _a.id; };
|
14521
14677
|
// Space press should be equivalent to Enter when multi-select
|
14522
|
-
if (event.key === " " && this.
|
14678
|
+
if (event.key === " " && this.multiSelect) {
|
14523
14679
|
this.handleOptionSelect(event, highlightedOptionIndex);
|
14524
14680
|
}
|
14525
14681
|
else {
|
@@ -14550,7 +14706,7 @@ class Menu {
|
|
14550
14706
|
this.handleSingleShiftSelect(event, 0, menuOptions);
|
14551
14707
|
}
|
14552
14708
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
14553
|
-
if (this.
|
14709
|
+
if (this.multiSelect && this.shiftPressed) {
|
14554
14710
|
this.deselectSelectedOptions([
|
14555
14711
|
highlightedOptionIndex,
|
14556
14712
|
this.getOptionHighlightedIndex(),
|
@@ -14589,7 +14745,7 @@ class Menu {
|
|
14589
14745
|
this.handleSingleShiftSelect(event, highlightedOptionIndex - 1, menuOptions);
|
14590
14746
|
}
|
14591
14747
|
// Deselect currently selected options if arrow was pressed for first time after shift is held
|
14592
|
-
if (this.
|
14748
|
+
if (this.multiSelect && this.shiftPressed) {
|
14593
14749
|
this.deselectSelectedOptions([
|
14594
14750
|
highlightedOptionIndex,
|
14595
14751
|
this.getOptionHighlightedIndex(),
|
@@ -14637,7 +14793,7 @@ class Menu {
|
|
14637
14793
|
if (!isKeyboardCombination) {
|
14638
14794
|
this.keyboardNav = false;
|
14639
14795
|
}
|
14640
|
-
if (this.
|
14796
|
+
if (this.searchBar || this.searchableSelect) {
|
14641
14797
|
break;
|
14642
14798
|
}
|
14643
14799
|
else {
|
@@ -14675,10 +14831,10 @@ class Menu {
|
|
14675
14831
|
if (event.key === "Shift") {
|
14676
14832
|
this.shiftPressed = true;
|
14677
14833
|
}
|
14678
|
-
if (this.
|
14834
|
+
if (this.searchBar) {
|
14679
14835
|
this.keyboardNav = true;
|
14680
14836
|
}
|
14681
|
-
if (this.
|
14837
|
+
if (this.multiSelect) {
|
14682
14838
|
if (this.open && !event.shiftKey && this.selectAllButton) {
|
14683
14839
|
event.preventDefault();
|
14684
14840
|
this.selectAllButton.focus(); // Move focus to select all button instead of focused option
|
@@ -14721,7 +14877,7 @@ class Menu {
|
|
14721
14877
|
};
|
14722
14878
|
this.handleOptionClick = (event) => {
|
14723
14879
|
const { value, label } = event.target.dataset;
|
14724
|
-
if (this.
|
14880
|
+
if (this.multiSelect) {
|
14725
14881
|
const menuOptions = this.getMenuOptions();
|
14726
14882
|
const selectedOptionIndex = menuOptions.findIndex((option) => option.value === value);
|
14727
14883
|
this.handleOptionSelect(event, selectedOptionIndex, true);
|
@@ -14763,7 +14919,7 @@ class Menu {
|
|
14763
14919
|
this.lastOptionFocused = null;
|
14764
14920
|
this.lastOptionSelected = null;
|
14765
14921
|
}
|
14766
|
-
if (!this.
|
14922
|
+
if (!this.searchBar)
|
14767
14923
|
this.hasPreviouslyBlurred = !!event.relatedTarget;
|
14768
14924
|
};
|
14769
14925
|
this.handleMouseDown = (event) => {
|
@@ -14773,7 +14929,7 @@ class Menu {
|
|
14773
14929
|
if (this.activationType === "automatic") {
|
14774
14930
|
this.autoSetValueOnMenuKeyDown(event);
|
14775
14931
|
}
|
14776
|
-
else if (this.activationType === "manual" && !this.
|
14932
|
+
else if (this.activationType === "manual" && !this.searchBar) {
|
14777
14933
|
this.manualSetInputValueKeyboardOpen(event);
|
14778
14934
|
}
|
14779
14935
|
};
|
@@ -14816,7 +14972,7 @@ class Menu {
|
|
14816
14972
|
// When shift key is being used to select contiguous options one by one on a multi-select
|
14817
14973
|
// I.e. holding shift and pressing up and down arrow keys
|
14818
14974
|
this.handleSingleShiftSelect = (event, optionToSelectIndex, options) => {
|
14819
|
-
if (this.
|
14975
|
+
if (this.multiSelect &&
|
14820
14976
|
event.shiftKey &&
|
14821
14977
|
!this.isOptionSelected(optionToSelectIndex)) {
|
14822
14978
|
this.selectHighlightedOption(options, optionToSelectIndex);
|
@@ -15066,9 +15222,7 @@ class Menu {
|
|
15066
15222
|
this.loadUngroupedOptions();
|
15067
15223
|
}
|
15068
15224
|
connectedCallback() {
|
15069
|
-
if (this.
|
15070
|
-
this.getParentEl(this.parentEl);
|
15071
|
-
if (this.isSearchBar) {
|
15225
|
+
if (this.searchBar) {
|
15072
15226
|
if (this.searchMode === "navigation")
|
15073
15227
|
this.setHighlightedOption(0);
|
15074
15228
|
this.initialOptionsListRender = true;
|
@@ -15089,7 +15243,7 @@ class Menu {
|
|
15089
15243
|
this.isLoading = (_d = this.options) === null || _d === void 0 ? void 0 : _d.some((opt) => opt.loading);
|
15090
15244
|
}
|
15091
15245
|
componentDidLoad() {
|
15092
|
-
if (this.
|
15246
|
+
if (this.searchBar &&
|
15093
15247
|
this.parentEl.disableAutoFiltering) {
|
15094
15248
|
this.focusFromSearchKeypress = true;
|
15095
15249
|
}
|
@@ -15111,7 +15265,7 @@ class Menu {
|
|
15111
15265
|
this.keyboardNav &&
|
15112
15266
|
inputValueInOptions &&
|
15113
15267
|
this.autofocusOnSelected &&
|
15114
|
-
!this.
|
15268
|
+
!this.searchableSelect) {
|
15115
15269
|
this.scrollToSelected(this.menu);
|
15116
15270
|
}
|
15117
15271
|
else if (this.selectOnEnter) {
|
@@ -15205,21 +15359,21 @@ class Menu {
|
|
15205
15359
|
focusOnSearchOrSelectInput(menuOptions, highlightedOptionIndex) {
|
15206
15360
|
if (!menuOptions[highlightedOptionIndex])
|
15207
15361
|
return;
|
15208
|
-
if (this.
|
15362
|
+
if (this.searchBar) {
|
15209
15363
|
this.parentEl.setFocus();
|
15210
15364
|
if (this.searchMode === "navigation")
|
15211
15365
|
this.setHighlightedOption(0);
|
15212
15366
|
}
|
15213
|
-
if (this.
|
15367
|
+
if (this.searchableSelect) {
|
15214
15368
|
this.parentEl.setFocus();
|
15215
15369
|
}
|
15216
15370
|
this.focusFromSearchKeypress = true;
|
15217
15371
|
}
|
15218
15372
|
render() {
|
15219
|
-
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
15373
|
+
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
15220
15374
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
15221
15375
|
const hasNoResults = this.host.classList.contains("no-results");
|
15222
|
-
return (hAsync(Host, { key: '
|
15376
|
+
return (hAsync(Host, { key: '637bd569f0d987aae612c73390344c46127170ad', class: {
|
15223
15377
|
"ic-menu-full-width": !!fullWidth,
|
15224
15378
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
15225
15379
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -15227,8 +15381,8 @@ class Menu {
|
|
15227
15381
|
isLoading,
|
15228
15382
|
[`ic-menu-${size}`]: true,
|
15229
15383
|
"ic-menu-open": open && options.length !== 0,
|
15230
|
-
"ic-menu-multiple":
|
15231
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
15384
|
+
"ic-menu-multiple": multiSelect,
|
15385
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '3840de0e59bd4f2d87330cf23a6afe402870c848', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
15232
15386
|
!keyboardNav &&
|
15233
15387
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
15234
15388
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -15237,7 +15391,7 @@ class Menu {
|
|
15237
15391
|
if (option.children) {
|
15238
15392
|
if (option.children.length > 0) {
|
15239
15393
|
return (hAsync("div", null, hAsync("ic-typography", { class: "option-group-title", role: "presentation", variant: "subtitle-small" }, hAsync("p", null, option[this.labelField])), option.children.map((childOption) => childOption.label &&
|
15240
|
-
this.displayOption(childOption,
|
15394
|
+
this.displayOption(childOption, multiSelect
|
15241
15395
|
? value === null || value === void 0 ? void 0 : value.includes(childOption[this.valueField])
|
15242
15396
|
: childOption[this.valueField] === value, index, option))));
|
15243
15397
|
}
|
@@ -15248,15 +15402,15 @@ class Menu {
|
|
15248
15402
|
else {
|
15249
15403
|
// Display option only if it has a label (rather than displaying an empty space)
|
15250
15404
|
return (option.label &&
|
15251
|
-
this.displayOption(option,
|
15405
|
+
this.displayOption(option, multiSelect
|
15252
15406
|
? value === null || value === void 0 ? void 0 : value.includes(option[this.valueField])
|
15253
15407
|
: option[this.valueField] === value, index));
|
15254
15408
|
}
|
15255
15409
|
}))), options.length !== 0 &&
|
15256
|
-
|
15410
|
+
multiSelect &&
|
15257
15411
|
!isLoading &&
|
15258
15412
|
!hasTimedOut &&
|
15259
|
-
!hasNoResults && (hAsync("div", { key: '
|
15413
|
+
!hasNoResults && (hAsync("div", { key: '7c21b91f707319eac7433c9bf84b2e07117d4a5e', class: "option-bar" }, hAsync("ic-typography", { key: 'ebf470f1196440dbb9b7d827833866604df1273c' }, hAsync("p", { key: '796f1746246ee7867d6244c9ab824e5e483be7d0' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: 'ab28ce082f7fd653fb10c7692161ad0c00653792', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
15260
15414
|
}
|
15261
15415
|
get host() { return getElement(this); }
|
15262
15416
|
static get watchers() { return {
|
@@ -15277,8 +15431,11 @@ class Menu {
|
|
15277
15431
|
"inputLabel": [1, "input-label"],
|
15278
15432
|
"labelField": [1, "label-field"],
|
15279
15433
|
"menuId": [1, "menu-id"],
|
15434
|
+
"multiSelect": [4, "multi-select"],
|
15280
15435
|
"open": [516],
|
15281
15436
|
"parentEl": [16],
|
15437
|
+
"searchableSelect": [4, "searchable-select"],
|
15438
|
+
"searchBar": [4, "search-bar"],
|
15282
15439
|
"searchMode": [1, "search-mode"],
|
15283
15440
|
"selectOnEnter": [4, "select-on-enter"],
|
15284
15441
|
"size": [1],
|
@@ -15313,7 +15470,7 @@ class MenuGroup {
|
|
15313
15470
|
}
|
15314
15471
|
render() {
|
15315
15472
|
const parentMenu = this.el.closest("ic-popover-menu");
|
15316
|
-
return (hAsync(Host, { key: '
|
15473
|
+
return (hAsync(Host, { key: '4136f4cf036cf396b34c3c2000242aca5ca2eeff', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined$1(this.label) && (hAsync("ic-typography", { key: 'a0de968e792cfedeee7ddad9f4b43885241abce5', variant: "subtitle-small" }, this.label)), hAsync("span", { key: 'e9720932e7fc8ec62b7de24fef73a58bdc4af7c1', class: "menu-items-wrapper" }, hAsync("slot", { key: 'c5ba1104bbd9a8749aec9b78641a05159fb56b4b' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: 'f8daab6f88da899054ace20e75e67f636d24c346' }))));
|
15317
15474
|
}
|
15318
15475
|
get el() { return getElement(this); }
|
15319
15476
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -15563,11 +15720,11 @@ class NavigationButton {
|
|
15563
15720
|
target,
|
15564
15721
|
theme,
|
15565
15722
|
};
|
15566
|
-
return (hAsync(Host, { key: '
|
15723
|
+
return (hAsync(Host, { key: '6d5b61877075117e4e5a88b0d1edf1cf986f4bcd', class: {
|
15567
15724
|
"in-side-menu": isMenuMode,
|
15568
15725
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15569
15726
|
dark: parentThemeDark,
|
15570
|
-
} }, hAsync("ic-button", Object.assign({ key: '
|
15727
|
+
} }, hAsync("ic-button", Object.assign({ key: 'd1e885683fd648f260bec94656aeb818497899e2', ref: (el) => (this.buttonEl = el), class: { "popout-menu-button": isMenuMode }, "aria-label": !isMenuMode ? label : null, disableTooltip: isMenuMode, fullWidth: isMenuMode, monochrome: !isMenuMode, size: isMenuMode ? "medium" : "large", variant: isMenuMode ? "tertiary" : "icon-tertiary" }, buttonProps, inheritedAttributes), isMenuMode ? label : "", hAsync("slot", { key: 'c3ae147f7bccd4f10f9259d442b86636c1a332ca', slot: "left-icon", name: "icon" }), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'f5f961eb88638804430696e0e5b3424ad3b9ac6c', name: "badge" }))));
|
15571
15728
|
}
|
15572
15729
|
static get delegatesFocus() { return true; }
|
15573
15730
|
get el() { return getElement(this); }
|
@@ -15860,7 +16017,7 @@ class NavigationGroup {
|
|
15860
16017
|
const isTopNav = this.navigationType === "top";
|
15861
16018
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
15862
16019
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
15863
|
-
return (hAsync(Host, { key: '
|
16020
|
+
return (hAsync(Host, { key: 'c9fd5c0334c5a73ed68f4e6ad29fecaead553879', class: {
|
15864
16021
|
"in-side-menu": inTopNavSideMenu,
|
15865
16022
|
"ic-navigation-group-expandable": expandable,
|
15866
16023
|
"ic-navigation-group-side-nav": isSideNav,
|
@@ -15980,14 +16137,7 @@ class NavigationItem {
|
|
15980
16137
|
this.childBlur.emit();
|
15981
16138
|
}
|
15982
16139
|
};
|
15983
|
-
this.handleClick = (
|
15984
|
-
if (event.type === "click" ||
|
15985
|
-
(event.type === "keydown" &&
|
15986
|
-
(event.key === "Enter" ||
|
15987
|
-
event.key === " "))) {
|
15988
|
-
this.navItemClicked.emit();
|
15989
|
-
}
|
15990
|
-
};
|
16140
|
+
this.handleClick = () => this.navItemClicked.emit();
|
15991
16141
|
// triggered when attributes of host element change
|
15992
16142
|
this.hostMutationCallback = (mutationList) => {
|
15993
16143
|
mutationList.forEach(({ attributeName }) => {
|
@@ -16100,7 +16250,7 @@ class NavigationItem {
|
|
16100
16250
|
render() {
|
16101
16251
|
const { inTopNavSideMenu, isTopNavChild, selected, navigationType, focusStyle, isInitialRender, sideNavExpanded, displayNavigationTooltip, collapsedIconLabel, isSideNavMobile, expandable, isInSideNav, theme, } = this;
|
16102
16252
|
const isTopNavChildDesktop = isTopNavChild && !inTopNavSideMenu;
|
16103
|
-
return (hAsync(Host, { key: '
|
16253
|
+
return (hAsync(Host, { key: '6d3d330011cb09ae9fd95b59f98a9d18ffc25ba0', class: {
|
16104
16254
|
"navigation-item": true,
|
16105
16255
|
"navigation-item-selected": !isTopNavChild && selected,
|
16106
16256
|
"navigation-item-top-nav": !inTopNavSideMenu && navigationType === "top",
|
@@ -16119,7 +16269,7 @@ class NavigationItem {
|
|
16119
16269
|
expandable,
|
16120
16270
|
[focusStyle]: isTopNavChild ? isInSideNav : !inTopNavSideMenu,
|
16121
16271
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16122
|
-
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick,
|
16272
|
+
}, onBlur: isTopNavChildDesktop ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: 'af3a3de698b102182ff030ffcfb66b419d7ac857', label: this.generateTooltipLabel(), target: "navigation-item", placement: "right", class: {
|
16123
16273
|
"tooltip-navigation-item": true,
|
16124
16274
|
"tooltip-navigation-item-side-nav-collapsed": displayNavigationTooltip && isInSideNav,
|
16125
16275
|
"tooltip-long-label-navigation-item-side-nav-expanded": this.el.hasAttribute("[display-navigation-tooltip = 'true']"),
|
@@ -16292,16 +16442,16 @@ class NavigationMenu {
|
|
16292
16442
|
}
|
16293
16443
|
}
|
16294
16444
|
render() {
|
16295
|
-
return (hAsync(Host, { key: '
|
16445
|
+
return (hAsync(Host, { key: '9bfabe90fd07c5e8a14a49ab4bb524bb9f806dfe', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: 'b76961453827afb14dd44063e60ca9f7b8eb2f7c', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '999299a7dccb47e615a0161f8056b8849197bb19', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: 'b48aae3ed8dfe11905660f3dbe6104b1f236989f', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '5a940ea5954ddb7291556c02d0bd18ba059b78c1', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '850e5a96df80c52ae4940f02c87cac7901e78ac3', class: {
|
16296
16446
|
["menu-close-button-container"]: true,
|
16297
16447
|
["nav-group-first"]: this.navGroupFirst,
|
16298
|
-
} }, hAsync("ic-button", { key: '
|
16448
|
+
} }, hAsync("ic-button", { key: '2b6f4da8f43779709841b4ae9031ddc69fb23ec7', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, hAsync("svg", { key: '79bff3984af1e147c29eabf9980b6ce069d9bfc8', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '7651417208edb39d171ba5c12f54e459b1874cdd', d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" })))), this.hasNavigation && hAsync("slot", { key: '67bb136c9b9495d0f6936c6fd9ba9ce10d2ac259', name: "navigation" })), this.hasButtons && (hAsync("div", { key: 'c52e4bda9f81995710db38d6fcc732cb90084379', class: {
|
16299
16449
|
["menu-buttons-container"]: true,
|
16300
16450
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
16301
|
-
} }, hAsync("slot", { key: '
|
16451
|
+
} }, hAsync("slot", { key: '38a17cb7addc92a6b7efe4497e97e28161b968eb', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '2aa88c95fa491ca88b6c1479f8efedaf154cd705', class: {
|
16302
16452
|
["menu-status-version-container"]: true,
|
16303
16453
|
["status-version-no-buttons"]: !this.hasButtons,
|
16304
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
16454
|
+
} }, this.status !== "" && (hAsync("div", { key: '8622760368a90bc0d23838ba68515f1fa0a5f58d', class: "menu-status" }, hAsync("ic-typography", { key: '07bd54c4a3b95f4b582cc83959b42da930008f39', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: '58bbb4b9eb1531132fabc526b0271ae16807e795', class: "menu-version" }, hAsync("ic-typography", { key: '8dc5efdec4a21ffaad32e7542994a4bb40942108', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
16305
16455
|
}
|
16306
16456
|
get el() { return getElement(this); }
|
16307
16457
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -16434,19 +16584,19 @@ class PageHeader {
|
|
16434
16584
|
const navAriaLabel = `${isSlotUsed$1(this.el, "heading")
|
16435
16585
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
16436
16586
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
16437
|
-
return (hAsync(Host, { key: '
|
16587
|
+
return (hAsync(Host, { key: 'c8e370ff1598aa28712785d4b507bf5f025cebdb', class: {
|
16438
16588
|
["ic-page-header-sticky"]: !!sticky,
|
16439
16589
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
16440
16590
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16441
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
16591
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: 'f053e88d5e15efceffca136fd7ea40149128cd24', class: {
|
16442
16592
|
["border-bottom"]: !!border,
|
16443
16593
|
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
16444
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
16594
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '01db3e4aab357dbb9c7f01f170606811466076ca', aligned: aligned, fullHeight: isSlotUsed$1(this.el, "tabs") }, isSlotUsed$1(this.el, "breadcrumbs") && (hAsync("div", { key: '4b40dc91ec48350ed36dfc9a48c9602ba43f5373', class: "breadcrumb-area" }, hAsync("slot", { key: 'caf027eadebbc1380c21749aca3ee0577f238c1a', name: "breadcrumbs" }))), hAsync("div", { key: '9cc48ff862ec47b5c4f6e4339f3de5e01a095c5d', class: "main-content" }, hAsync("div", { key: '2728890f07f94ce5a9281c4840b17bbf76fe4386', class: "title-area" }, hAsync("div", { key: 'bbe4d03abb131d393eab89e60d3efc5b7c16e689', class: "header-content" }, hAsync("slot", { key: '5cd6f3d2aff865e81b86e88cdb9c3bddafe8880d', name: "heading" }, hAsync("ic-typography", { key: '134d8df0f315058110e52305aca1764da98f9727', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: 'ab8b90eb1ed5c8c563fe911e6a19b47687e38bbb' }, heading))), hAsync("slot", { key: '7d03675494aec7af35f8f1ce948399f9f254f163', name: "heading-adornment" })), hAsync("div", { key: 'b34566b9c5c92fe9fdc66faecf607917a4aeed29', class: {
|
16445
16595
|
["subheading-content"]: !!subheading || isSlotUsed$1(this.el, "subheading"),
|
16446
16596
|
["small"]: size === "small",
|
16447
|
-
} }, hAsync("slot", { key: '
|
16448
|
-
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '
|
16449
|
-
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '
|
16597
|
+
} }, hAsync("slot", { key: '41d87736aa23ad7bc6ba47ff3a95a977807c68cf', name: "subheading" }, hAsync("ic-typography", { key: '329f6d9840e4ed9109613c5f199d75340fd6fdc2', variant: "body" }, subheading)))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '36e1ae6a57d69362c2c1bfd7237779ea388984b6', class: "action-area" }, hAsync("slot", { key: 'e91d537a1ada1c2a7a239a28f698eabb46c2c0a7', name: "actions" }))), isSlotUsed$1(this.el, "input") && (hAsync("div", { key: 'b1432a5a237e6a10a67cbe51c9cb657bb2674d5d', class: "input-area" }, hAsync("slot", { key: '6896f964608a3a9f93719f1a508c7c411d7a2a05', name: "input" })))), (isSlotUsed$1(this.el, "stepper") ||
|
16598
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '186a79cb9e798376abe710d5ae90e9d0d2b1dfc7', class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
16599
|
+
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: 'ee5c38d0953c558ef430f3de863edef69f33b025', name: "stepper" }), isSlotUsed$1(this.el, "tabs") && (hAsync("nav", { key: '02fcd488fd3ef4e4562cae7827c1890d600474f3', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: '28660775ba31c4bcd7d589b9ed32b7fec75bff62' }, hAsync("ul", { key: 'ed3332f75cf9c9c93b60db8696cb55847eba93cb', class: "tabs-slot" }, hAsync("slot", { key: 'c34be8460a08d83074ace0d458c40fefffbe0807', name: "tabs" })))))))))));
|
16450
16600
|
}
|
16451
16601
|
get el() { return getElement(this); }
|
16452
16602
|
static get style() { return IcPageHeaderStyle0; }
|
@@ -16724,14 +16874,14 @@ class Pagination {
|
|
16724
16874
|
}
|
16725
16875
|
render() {
|
16726
16876
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
16727
|
-
return (hAsync(Host, { key: '
|
16877
|
+
return (hAsync(Host, { key: '41c3da149fa9478f842f05931c9dbfaeed3b28c9', class: {
|
16728
16878
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16729
16879
|
["ic-pagination-monochrome"]: !!monochrome,
|
16730
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
16880
|
+
} }, type === "simple" && (hAsync("nav", { key: '28dd37c1bfc70c1a46d5be79402a2f358f1dae8e', class: {
|
16731
16881
|
["disabled"]: !!disabled,
|
16732
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
16882
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: 'fd8075b42813e6bb183a59a7d663410efbc032e4', 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: 'e5cc07eeb2ab5daae6c093df1fb7bad7efee28b6', class: {
|
16733
16883
|
["disabled"]: !!disabled,
|
16734
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: '
|
16884
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (hAsync("span", { key: 'ef2236138709fd5e0ea462a8968c1394a2efba47', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
16735
16885
|
}
|
16736
16886
|
get el() { return getElement(this); }
|
16737
16887
|
static get watchers() { return {
|
@@ -17209,7 +17359,7 @@ class PaginationItem {
|
|
17209
17359
|
}
|
17210
17360
|
render() {
|
17211
17361
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
17212
|
-
return (hAsync("a", { key: '
|
17362
|
+
return (hAsync("a", { key: '21415f5d398cf1bf2b727e3b32c8cd94f33b0966', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
17213
17363
|
["item-container"]: true,
|
17214
17364
|
["ellipsis"]: true,
|
17215
17365
|
["disabled"]: !!disabled,
|
@@ -17524,17 +17674,17 @@ class PopoverMenu {
|
|
17524
17674
|
this.popperProps = props;
|
17525
17675
|
}
|
17526
17676
|
render() {
|
17527
|
-
return (hAsync(Host, { key: '
|
17677
|
+
return (hAsync(Host, { key: 'bf477545827775810fff96aeaec431968ddc868b', class: {
|
17528
17678
|
["ic-popover-menu-open"]: !!this.open,
|
17529
17679
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17530
|
-
} }, hAsync("div", { key: '
|
17680
|
+
} }, hAsync("div", { key: '8d806c10e5e2838f2c80bff8f6b3f2c0d5b5953a', id: this.parentPopover === undefined
|
17531
17681
|
? `ic-popover-submenu-${this.submenuId}`
|
17532
17682
|
: "", class: {
|
17533
17683
|
menu: true,
|
17534
|
-
} }, hAsync("span", { key: '
|
17684
|
+
} }, hAsync("span", { key: 'db4ddaa0ec0d2e425e0b49214f40098242de2710', class: {
|
17535
17685
|
"opening-from-parent": this.openingFromParent,
|
17536
17686
|
"opening-from-child": this.openingFromChild,
|
17537
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
17687
|
+
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: 'c0caa5f7a151e1ec2b41a9f5cdb8675409c3b969' }, hAsync("span", { key: 'ee3b377e7079ef95acdc5bfb3a0d3b7f83e27db2', role: "menu" }, hAsync("ic-menu-item", { key: '5f232c237300e529a5d3bd9d18eee5625f1dc0cd', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, hAsync("svg", { key: 'a0618ef1598d66a8c6b14a0b7a608f0d11a84616', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: 'ccdcb5e5ad7593839b9ae54f86586719c1ceb4dc', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: 'd6d1fbcd077f474eef14ba4d77f5d2bc4f5e30dc', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '31727abcc337bbd7b242b3387f6bd260a3abadd4', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '9cfdbe9c8a166d68ef1a00159c8b5b04fb1e29f7' }))))));
|
17538
17688
|
}
|
17539
17689
|
static get delegatesFocus() { return true; }
|
17540
17690
|
get el() { return getElement(this); }
|
@@ -17797,16 +17947,16 @@ class RadioGroup {
|
|
17797
17947
|
}
|
17798
17948
|
render() {
|
17799
17949
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
17800
|
-
return (hAsync(Host, { key: '
|
17950
|
+
return (hAsync(Host, { key: '94f34265abb206036b1d9ded9dd959647a710999', onKeyDown: handleKeyDown, class: {
|
17801
17951
|
"ic-radio-group-small": size === "small",
|
17802
17952
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17803
|
-
} }, hAsync("div", { key: '
|
17953
|
+
} }, hAsync("div", { key: 'ecb2a958a94beb49129c1548fafa4c3220036218', role: "radiogroup", "aria-label": `${label}${required ? ", required" : ""}` }, !hideLabel && (hAsync("ic-input-label", { key: 'f11f98513d71d6ea942519fc38a91e96824da3e7', class: {
|
17804
17954
|
[`${validationStatus}`]: true,
|
17805
17955
|
["disabled"]: !!disabled,
|
17806
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '
|
17956
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: '88578f95a79fe95d58294a93e8470dd663b42903', name: "helper-text", slot: "helper-text" }))), hAsync("div", { key: '9a5ea35f9f684085a25b40def44a29a992306ac1', class: {
|
17807
17957
|
"radio-buttons-container": true,
|
17808
17958
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
17809
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
17959
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'dafa17bf5bc76e8697f802a3376bb2bfe1cc249e' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '6b8a5b2aa258870a00b462d48a978b5cd3a4e33b', ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
17810
17960
|
}
|
17811
17961
|
get el() { return getElement(this); }
|
17812
17962
|
static get watchers() { return {
|
@@ -17986,15 +18136,15 @@ class RadioOption {
|
|
17986
18136
|
render() {
|
17987
18137
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
17988
18138
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
17989
|
-
return (hAsync(Host, { key: '
|
18139
|
+
return (hAsync(Host, { key: 'ee36e924b1c248c87724903313bc778976c36522', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
17990
18140
|
["ic-radio-option-disabled"]: !!disabled,
|
17991
18141
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17992
|
-
} }, hAsync("div", { key: '
|
18142
|
+
} }, hAsync("div", { key: '35871b7136c8dd16432e2a0683b13db53f2a1bd0', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: 'daead4b95901afb27be2d2640d1210783ec4c14e' }, hAsync("input", { key: '69d0c5dec724714118475529e021ed9d30350383', 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: '7ae687fb075f60e33fb7edd48b1f323c5833b9fb', class: "checkmark" })), hAsync("ic-typography", { key: 'a3990ac2ea9a3898a436f2fd05966f920a493fa4', class: "radio-label", variant: "body" }, hAsync("label", { key: '0b83a00e2f215d9d051e71650584fb1e0aad55a4', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: '47b6a141f6956e78d4516985d2e70f00c1bdf1cf', class: {
|
17993
18143
|
"dynamic-container": true,
|
17994
18144
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
17995
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
18145
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '2c06cbb85ba445972698c02757a07e048a09ce40', class: "branch-corner" })), hAsync("div", { key: 'ecc00a96cfb580b9f386ea148106a1dae5a31332' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: 'eeacd2d66085bd2bdb16698e6050e552d410d11b', variant: "caption" }, hAsync("p", { key: 'da0327cfe9a9a09405c86e268e7a84ca090b437f', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: 'c9177d6cd8174c92665a3c59a1fe38aeedf6e17b', class: {
|
17996
18146
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
17997
|
-
} }, hAsync("slot", { key: '
|
18147
|
+
} }, hAsync("slot", { key: '1f4fdd0f5eeca0900aeaa04d49191e0b65d843ab', name: ADDITIONAL_FIELD })))))));
|
17998
18148
|
}
|
17999
18149
|
get el() { return getElement(this); }
|
18000
18150
|
static get watchers() { return {
|
@@ -18038,7 +18188,7 @@ var searchIcon = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xm
|
|
18038
18188
|
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}}";
|
18039
18189
|
var IcSearchBarStyle0 = icSearchBarCss;
|
18040
18190
|
|
18041
|
-
let inputIds$
|
18191
|
+
let inputIds$4 = 0;
|
18042
18192
|
/**
|
18043
18193
|
* @slot helper-text - Content is set as the helper text for the search bar.
|
18044
18194
|
*/
|
@@ -18059,7 +18209,7 @@ class SearchBar {
|
|
18059
18209
|
this.icSearchBarFocus = createEvent(this, "icSearchBarFocus", 7);
|
18060
18210
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
18061
18211
|
this.hasTimedOut = false;
|
18062
|
-
this.inputId = `ic-search-bar-input-${inputIds$
|
18212
|
+
this.inputId = `ic-search-bar-input-${inputIds$4++}`;
|
18063
18213
|
this.menuCloseFromMenuChangeEvent = false;
|
18064
18214
|
this.menuId = `${this.inputId}-menu`;
|
18065
18215
|
this.preLoad = true;
|
@@ -18577,39 +18727,39 @@ class SearchBar {
|
|
18577
18727
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
18578
18728
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
18579
18729
|
renderHiddenInput$1(this.el, value, name, disabledMode);
|
18580
|
-
return (hAsync(Host, { key: '
|
18730
|
+
return (hAsync(Host, { key: '0446a1092d484ef29e0424eb22c6ae00b8fe8a72', class: {
|
18581
18731
|
"ic-search-bar-search": true,
|
18582
18732
|
"ic-search-bar-full-width": fullWidth,
|
18583
18733
|
"ic-search-bar-disabled": disabled,
|
18584
18734
|
"ic-search-bar-small": size === "small",
|
18585
18735
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18586
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
18736
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: 'fc32e70f7fa9397bc355774f58b8ab62af231083', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '32b8c40811415afc37480ed00416fde752704235', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: 'be47eb0acd1cde1b3d4f80ae5e4300021fe069d6', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '266d999ac46d480655e325db420850e495c3cae7', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: 'f9f3b64cd1bf88eeb7a7cd52d9d41240c7afa14f', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
18587
18737
|
"no-left-pad": readonly,
|
18588
18738
|
readonly,
|
18589
18739
|
"truncate-value": truncateValue,
|
18590
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: '
|
18740
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), hAsync("div", { key: 'cd71148d381416ce2aac9a4c6899bbbe5077ebb9', class: {
|
18591
18741
|
"clear-button-container": true,
|
18592
18742
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
18593
|
-
} }, hAsync("ic-button", { key: '
|
18743
|
+
} }, hAsync("ic-button", { key: '3cf8c824075d6df594b65f7885f664ffce21fca8', id: "clear-button", class: {
|
18594
18744
|
"clear-button": true,
|
18595
18745
|
"clear-button-unfocused": !clearButtonFocused,
|
18596
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '
|
18746
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: 'a8dd7dad12686d0d6dac4bde194d0df7eaf04c00', class: "divider" })), hAsync("div", { key: '0d3eb9dff9d6ebbdf4063826077c410256772aed', class: {
|
18597
18747
|
"search-submit-button-container": true,
|
18598
18748
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18599
|
-
} }, hAsync("ic-button", { key: '
|
18749
|
+
} }, hAsync("ic-button", { key: '7d6a4c3a6f2a63178db90324e6f66804bd74ae07', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
18600
18750
|
"search-submit-button": true,
|
18601
18751
|
"search-submit-button-small": size === "small",
|
18602
18752
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
18603
18753
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18604
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '
|
18754
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '7dbb3fd0f8374fffc17c3405e905d7307462a4c9', class: {
|
18605
18755
|
"menu-container": true,
|
18606
18756
|
fullwidth: fullWidth,
|
18607
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
18757
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '9af74de47a4042857e8bed7691ce97397bc19f06', class: {
|
18608
18758
|
"no-results": this.hadNoOptions() ||
|
18609
18759
|
(filteredOptions.length === 1 &&
|
18610
18760
|
(filteredOptions[0][labelField] === loadingLabel ||
|
18611
18761
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
18612
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField })))), hAsync("div", { key: '
|
18762
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), hAsync("div", { key: 'cf5b06c06543f839da43f37b3b105a16f2ca37f4', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
18613
18763
|
}
|
18614
18764
|
static get delegatesFocus() { return true; }
|
18615
18765
|
get el() { return getElement(this); }
|
@@ -18693,12 +18843,12 @@ class SectionContainer {
|
|
18693
18843
|
}
|
18694
18844
|
render() {
|
18695
18845
|
const { aligned, fullHeight } = this;
|
18696
|
-
return (hAsync(Host, { key: '
|
18846
|
+
return (hAsync(Host, { key: '353b38e749d03e4838d93d9b58f3bddc0980099f', class: {
|
18697
18847
|
["aligned-left"]: aligned === "left" || aligned === null,
|
18698
18848
|
["aligned-center"]: aligned === "center",
|
18699
18849
|
["aligned-full-width"]: aligned === "full-width",
|
18700
18850
|
["no-vertical-padding"]: !!fullHeight,
|
18701
|
-
} }, hAsync("slot", { key: '
|
18851
|
+
} }, hAsync("slot", { key: 'd79345e552288f52d7ad83d2bd0e2ceaae9b1570' })));
|
18702
18852
|
}
|
18703
18853
|
static get style() { return IcSectionContainerStyle0; }
|
18704
18854
|
static get cmpMeta() { return {
|
@@ -18727,7 +18877,7 @@ var Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w
|
|
18727
18877
|
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative;--ic-input-label-helpertext-padding:var(--ic-space-xs);--menu-max-height:100px;--border-color:var(--ic-select-field-border);--border-color-hover:var(--ic-select-field-border-hover);--border-color-pressed:var(--ic-select-field-border-pressed);--border-color-disabled:var(--ic-select-field-border-disabled);--border-color-error:var(--ic-select-field-border-error);--border-color-error-hover:var(--ic-select-field-border-error-hover);--border-color-error-pressed:var(--ic-select-field-border-error-pressed);--border-color-success:var(--ic-select-field-border-success);--border-color-success-hover:var(--ic-select-field-border-success-hover);--border-color-success-pressed:var(--ic-select-field-border-success-pressed);--border-color-warning:var(--ic-select-field-border-warning);--border-color-warning-hover:var(--ic-select-field-border-warning-hover);--border-color-warning-pressed:var(--ic-select-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-select-field-labe);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle\n );--ic-input-validation-status-text-color:var(--ic-select-state-text);--ic-input-validation-error:var(--ic-select-state-icon-error);--ic-input-validation-warning-icon-color:var(--ic-select-state-icon-warning);--ic-input-validation-success-icon-color:var(--ic-select-state-icon-success);--menu-item-text-color:var(--ic-select-list-option-text);--menu-bg-color:var(--ic-select-list-option-background);--menu-border-color:var(--ic-select-dropdown-list-border)}:host(.ic-select-disabled){--ic-input-label-text-color:var(--ic-select-field-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-select-input-field-label-subtitle-disabled\n )}:host(.ic-select-full-width){width:100%}ic-input-component-container.menu-open{--border-color:var(--ic-select-field-border-pressed)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs)}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-select-field-background);color:var(--ic-select-content-text);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:var(--ic-select-mobile-dropdown-icon);caret-color:var(--ic-select-input-field-text-cursor)}select option,.select-option-selected{color:var(--ic-select-list-option-text)}select:disabled{color:var(--ic-select-content-text-disabled);background-image:var(--ic-select-mobile-dropdown-icon-disabled)}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none;background-color:var(--ic-select-field-background);color:var(--ic-select-content-text)}.select-input:focus{outline:none}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.select-input.with-clear-button{padding-right:0}.value-text{max-width:calc(100% - (var(--ic-space-lg) + var(--ic-space-xxs)));box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:0 !important}.value-text.with-clear-button{padding-right:calc(var(--ic-space-xl) + var(--ic-space-xs))}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xxs);color:var(--ic-select-expand-icon-color)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-select-disabled-expand-icon-color)}:host(.ic-select-searchable) .expand-icon{padding-left:0;height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 calc(var(--ic-space-xxxs) + var(--ic-space-xxs)) 0\n var(--ic-space-xxs)}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-select-expand-icon-color)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}.placeholder{color:var(--ic-select-content-placeholder-text)}:host(.ic-select-disabled.ic-select-searchable) .select-input::-moz-placeholder{color:var(--ic-select-content-text-disabled)}:host(.ic-select-disabled) .value-text,:host(.ic-select-disabled) .select-input,:host(.ic-select-disabled) .placeholder,:host(.ic-select-disabled.ic-select-searchable) .select-input::placeholder{color:var(--ic-select-content-text-disabled)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;align-items:center}.divider{width:var(--ic-space-1px);background-color:var(--ic-select-content-divider);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}:host(.ic-select-large) .divider{height:var(--ic-space-xl)}.clear-button{color:var(--ic-select-clear-button);position:absolute;right:calc(var(--ic-space-xl) + var(--ic-space-xxs) - var(--ic-space-1px));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:focus,.clear-button:active *{fill:var(--ic-atoms-input-clear-button-focus)}.clear-button.searchable{position:static}.searchable-select-results-status,.multi-select-selected-count{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}::slotted([slot=\"icon\"]){fill:var(--ic-select-content-placeholder-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-select-content-text)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
18728
18878
|
var IcSelectStyle0 = icSelectCss;
|
18729
18879
|
|
18730
|
-
let inputIds$
|
18880
|
+
let inputIds$3 = 0;
|
18731
18881
|
const MUTABLE_ATTRIBUTES$1 = [...IC_INHERITED_ARIA, "tabindex", "title"];
|
18732
18882
|
/**
|
18733
18883
|
* @slot helper-text - Content is set as the helper text for the select.
|
@@ -18751,7 +18901,7 @@ class Select {
|
|
18751
18901
|
this.hasTimedOut = false;
|
18752
18902
|
this.inheritedAttributes = {};
|
18753
18903
|
this.initialOptionsEmpty = false;
|
18754
|
-
this.inputId = `ic-select-input-${inputIds$
|
18904
|
+
this.inputId = `ic-select-input-${inputIds$3++}`;
|
18755
18905
|
this.menuId = `${this.inputId}-menu`;
|
18756
18906
|
this.retryButtonClick = false;
|
18757
18907
|
this.searchableMenuItemSelected = false;
|
@@ -19513,18 +19663,18 @@ class Select {
|
|
19513
19663
|
(searchable
|
19514
19664
|
? !!searchableSelectInputValue
|
19515
19665
|
: !!currValue && !loading && showClearButton);
|
19516
|
-
return (hAsync(Host, { key: '
|
19666
|
+
return (hAsync(Host, { key: '17ddc749c9c786831031d470c5abdb1200293804', class: {
|
19517
19667
|
"ic-select-disabled": disabled,
|
19518
19668
|
"ic-select-searchable": searchable,
|
19519
19669
|
[`ic-select-${size}`]: size !== "medium",
|
19520
19670
|
"ic-select-full-width": fullWidth,
|
19521
19671
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
19522
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
19672
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: 'dac29abdd5b97fa78df511481a08c1657b56744d', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '83f950a29ea0bea2a73494d033b433ab792621f6', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: 'e0b1ba22f6b42a4b912d8b86ca87768301cdd6c6', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '682ddb2e85e88bf60fab50faa8e0fdcd85ac1951', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed$1(this.el, "icon") &&
|
19523
19673
|
!disabled &&
|
19524
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
19674
|
+
(!readonly || !!value) && (hAsync("span", { key: '743293181707560cac9fa7037c1d8a95faacbba1', slot: "left-icon", class: {
|
19525
19675
|
readonly,
|
19526
19676
|
"has-value": !!value,
|
19527
|
-
} }, hAsync("slot", { key: '
|
19677
|
+
} }, hAsync("slot", { key: '4925b524b62ce20585e1f7bc88fb9cc7cf543d12', name: "icon" }))), readonly ? (hAsync("ic-typography", null, hAsync("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (hAsync("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (hAsync("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: {
|
19528
19678
|
"select-input": true,
|
19529
19679
|
"with-clear-button": !!searchableSelectInputValue,
|
19530
19680
|
}, 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 &&
|
@@ -19544,13 +19694,13 @@ class Select {
|
|
19544
19694
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
19545
19695
|
"expand-icon": true,
|
19546
19696
|
"expand-icon-open": open,
|
19547
|
-
}, 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", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
19697
|
+
}, 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", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'bff3cb65c73365cf55b3d00befdb2b0b35105219', class: {
|
19548
19698
|
"no-results": loading ||
|
19549
19699
|
hasTimedOut ||
|
19550
19700
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
19551
19701
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
19552
19702
|
? this.searchableSelectElement
|
19553
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple })), multiple && (hAsync("div", { key: '
|
19703
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (hAsync("div", { key: 'c3a82cef8d2f90cc5b80ba435c63bf8b25aeaa4b', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: 'd5a812ebb98068eb82e642483002dfa652eb618c', class: { "menu-open": open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: inputId })))));
|
19554
19704
|
}
|
19555
19705
|
static get delegatesFocus() { return true; }
|
19556
19706
|
get el() { return getElement(this); }
|
@@ -20078,7 +20228,7 @@ class SideNavigation {
|
|
20078
20228
|
isAppNameSubtitleVariant,
|
20079
20229
|
appTitle: appTitle || "",
|
20080
20230
|
};
|
20081
|
-
return (hAsync(Host, { key: '
|
20231
|
+
return (hAsync(Host, { key: '7c08948b0f483f08399d9a843cc372a6e1117cd9', class: {
|
20082
20232
|
"xs-menu-open": menuOpen && isSDevice,
|
20083
20233
|
"xs-menu-close": !menuOpen && isSDevice,
|
20084
20234
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
@@ -20087,12 +20237,12 @@ class SideNavigation {
|
|
20087
20237
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
20088
20238
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
20089
20239
|
["ic-side-navigation-inline"]: !!inline,
|
20090
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
20240
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '39c88b80293b80db40ed2687f8c7a2b73db108f3', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'bc088f01295f7f02fb8cdc42f5daf5c1e7134949', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: '9b9e561ef17bc3678f5bcec1fe164db88efe8961', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '9eaf0d09e985d890b60a2b522d5df08918582236', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '55a2cc5e38b2f304d430e943127bbcd52c418ccd', class: "navigation-list" }, hAsync("slot", { key: 'dce3539aa12916535b689ce1a2c3daebf2dfd17f', name: "primary-navigation" }))))), hAsync("div", { key: '2124eb9c5ff8290ca530a562f4acb3068fb0063c', class: {
|
20091
20241
|
["bottom-wrapper"]: true,
|
20092
20242
|
["classification-spacing"]: hasClassificationBanner(),
|
20093
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
20243
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '4106c644d7a439ba2666b906ec7347d650b5b05c', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: 'f58a64351b6ba155aa5b00c81e54ddbdb8aed227', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '4cb6c3a3945270f216e36a8647740cc1747165c4', class: "navigation-list" }, hAsync("slot", { key: '2ccc8555d80f15fa9ee40a7a9d89e6c21c519699', name: "secondary-navigation" })))), hAsync("div", { key: 'e36505c13b14e9eb766d52e50dfef11ad86cf9e0', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: '824c6240652cd7166af42f2b0e08acdb63372b5e' }), displayExpandBtn && (hAsync("button", { key: '67a081ab610c586abb4076a42b54f59d3965e4fc', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '56ed2420285577e6a1010edfab4ae02445c135f8', class: "app-status-wrapper" }, status && (hAsync("div", { key: '56317ca2ad0b3fc6a28662cbb37479e826bb02de', class: {
|
20094
20244
|
["app-status"]: true,
|
20095
|
-
} }, hAsync("ic-typography", { key: '
|
20245
|
+
} }, hAsync("ic-typography", { key: '067246de4696a3066f987ab17479c764caeaf53d', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (hAsync("ic-typography", { key: 'cfcdca99019a27e730c07668de597eeb328ab500', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
20096
20246
|
}
|
20097
20247
|
get el() { return getElement(this); }
|
20098
20248
|
static get watchers() { return {
|
@@ -20156,11 +20306,11 @@ class Skeleton {
|
|
20156
20306
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
20157
20307
|
}
|
20158
20308
|
: undefined;
|
20159
|
-
return (hAsync(Host, { key: '
|
20309
|
+
return (hAsync(Host, { key: '7bd82290ac75e45c80d5ca97a888a9513e18ba96', class: {
|
20160
20310
|
skeleton: true,
|
20161
20311
|
"ic-skeleton-circle": variant === "circle",
|
20162
20312
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20163
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
20313
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'f80d529ee6c23cf3d09b6593d4b6b8648e42e465' })));
|
20164
20314
|
}
|
20165
20315
|
get el() { return getElement(this); }
|
20166
20316
|
static get style() { return IcSkeletonStyle0; }
|
@@ -20217,9 +20367,9 @@ class SkipLink {
|
|
20217
20367
|
}
|
20218
20368
|
render() {
|
20219
20369
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
20220
|
-
return (hAsync(Host, { key: '
|
20370
|
+
return (hAsync(Host, { key: '78f847910867f3dc91880c1f5a263a7784230d8b', class: {
|
20221
20371
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20222
|
-
} }, hAsync("ic-link", { key: '
|
20372
|
+
} }, hAsync("ic-link", { key: '53567dbe0778b8720252ad8ae08a10815244415e', class: {
|
20223
20373
|
"display-top": !inline,
|
20224
20374
|
"full-width": !!fullWidth,
|
20225
20375
|
"show-background": !transparentBackground,
|
@@ -20284,12 +20434,12 @@ class StatusTag {
|
|
20284
20434
|
}
|
20285
20435
|
render() {
|
20286
20436
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
20287
|
-
return (hAsync(Host, { key: '
|
20437
|
+
return (hAsync(Host, { key: 'd9e1718931d2128db61bada395e96366d3ab2878', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: '5ff6fc1840e1468d76d6ac6eb0ca2a8716cdaf71', class: {
|
20288
20438
|
["tag"]: true,
|
20289
20439
|
[`${variant}-${status}`]: true,
|
20290
20440
|
["outlined"]: variant === "outlined",
|
20291
20441
|
[`${size}`]: true,
|
20292
|
-
} }, hAsync("ic-typography", { key: '
|
20442
|
+
} }, hAsync("ic-typography", { key: '6512f5278d0616d1b483eaced047edf2961523a7', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '31850ff9c7d3438f222e1347300fba666a197315' }, label)))));
|
20293
20443
|
}
|
20294
20444
|
static get style() { return IcStatusTagStyle0; }
|
20295
20445
|
static get cmpMeta() { return {
|
@@ -20373,29 +20523,29 @@ class Step {
|
|
20373
20523
|
// STATUS ICON FOR COMPACT STEP
|
20374
20524
|
let statusIcon;
|
20375
20525
|
if (this.type === "completed" || this.compactStepStyling === "completed") {
|
20376
|
-
statusIcon = (hAsync("span", { key: '
|
20526
|
+
statusIcon = (hAsync("span", { key: 'c554d57470b9bb379d21a3cd1abda1c75e5cba08', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
20377
20527
|
}
|
20378
20528
|
else if (this.type === "disabled" ||
|
20379
20529
|
this.compactStepStyling === "disabled") {
|
20380
|
-
statusIcon = (hAsync("span", { key: '
|
20530
|
+
statusIcon = (hAsync("span", { key: '44e14eb7ee51ea4d6a6979139bf6da928e24de20', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
20381
20531
|
}
|
20382
20532
|
// COMPACT STEP COMPONENT
|
20383
|
-
const compactStep = (hAsync("div", { key: '
|
20533
|
+
const compactStep = (hAsync("div", { key: 'ba266206fb9d29e2d465d26df565ece4617d833f', class: {
|
20384
20534
|
["step"]: true,
|
20385
20535
|
["current"]: !!this.current,
|
20386
20536
|
[`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
|
20387
20537
|
["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
|
20388
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
20538
|
+
} }, hAsync("ic-loading-indicator", { key: '8ac7e7a5dda9311526fabcf7c7467251496688c0', class: {
|
20389
20539
|
"compact-step-progress-indicator": true,
|
20390
20540
|
"not-required": this.type === "disabled" ||
|
20391
20541
|
this.compactStepStyling === "disabled",
|
20392
|
-
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '
|
20542
|
+
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '3641cfb114f1bd1bcc53b61d61c7e60368074d59', class: "heading-area" }, hAsync("ic-typography", { key: 'f57e7f3ee8558562b06a983f9474ad22884e0fb0', variant: "h4", class: "heading" }, this.heading), hAsync("div", { key: '1bfffacf1695ac55a98fdb70c95e56d3d7374644', class: "info-line" }, hAsync("ic-typography", { key: '62b06cbe4ab2ca000a1947855ba9783e8fa87f34', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, hAsync("span", { key: '9801990157ce6e89a575dc505bfdb083dbf69d59', class: "visually-hidden" }, " steps")), (this.subheading ||
|
20393
20543
|
this.type === "completed" ||
|
20394
20544
|
this.type === "disabled" ||
|
20395
20545
|
(this.variant === "compact" &&
|
20396
20546
|
!!this.compactStepStyling &&
|
20397
20547
|
this.compactStepStyling !== "active") ||
|
20398
|
-
!!this.status) && (hAsync("div", { key: '
|
20548
|
+
!!this.status) && (hAsync("div", { key: '61da3c5be4a48ef8c49e049306e622038d09d972', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (hAsync("ic-typography", { key: '36b727dae2acfa76a3b00ad93e296f1a7687a8bc', variant: "caption" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20399
20549
|
? this.subheading
|
20400
20550
|
: this.type === "disabled" ||
|
20401
20551
|
(this.variant === "compact" &&
|
@@ -20408,26 +20558,26 @@ class Step {
|
|
20408
20558
|
// ICON FOR DEFAULT STEP
|
20409
20559
|
let icon;
|
20410
20560
|
if (this.type !== "completed") {
|
20411
|
-
icon = (hAsync("ic-typography", { key: '
|
20561
|
+
icon = (hAsync("ic-typography", { key: '39a605e15f1e787440200c1b2d013b245eebdc65', variant: "subtitle-small" }, hAsync("span", { key: 'b957bb4c7e99809903fd89be087f15204625a0b7', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
20412
20562
|
}
|
20413
20563
|
else {
|
20414
|
-
icon = (hAsync("div", { key: '
|
20564
|
+
icon = (hAsync("div", { key: 'f18d7120ca74ab1933e21efba3e3cf1ee08fbf70', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: 'a146e0b3a79e7aac5afc9e0e385701ed140cf672', class: "check-icon", innerHTML: checkIcon })));
|
20415
20565
|
}
|
20416
20566
|
// STEP CONNECT FOR DEFAULT STEP
|
20417
|
-
const partialBar = this.type === "current" && (hAsync("div", { key: '
|
20418
|
-
const finalStep = !this.lastStep && (hAsync("div", { key: '
|
20567
|
+
const partialBar = this.type === "current" && (hAsync("div", { key: '67fc4bea3d00a2c1dda63b5590816f5246c2e474', class: "step-connect-inner" }));
|
20568
|
+
const finalStep = !this.lastStep && (hAsync("div", { key: 'af37563dcbf8ec3a3411a9c451e31c73651e3160', class: {
|
20419
20569
|
["step-connect"]: true,
|
20420
20570
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
20421
20571
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20422
20572
|
} }, partialBar));
|
20423
20573
|
// DEFAULT STEP COMPONENT
|
20424
|
-
const defaultStep = (hAsync("div", { key: '
|
20574
|
+
const defaultStep = (hAsync("div", { key: 'b2c1130ef9a2e12fdf93c08f8564ec48631cf7d0', class: {
|
20425
20575
|
["step"]: true,
|
20426
20576
|
[`${this.type}`]: true,
|
20427
|
-
} }, hAsync("div", { key: '
|
20577
|
+
} }, hAsync("div", { key: '0282ce231a90fb918c383422de63cdab9a9d5528', class: "step-top" }, hAsync("div", { key: '1ce5c704d09efb169857dc1dd88af5e5f1f03021', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (hAsync("div", { key: 'ba9737c9919bb6bde9b09d320afaad8602d02d36', class: "heading-area" }, this.heading && (hAsync("ic-typography", { key: '9466eb68a941c56fe0cbecaef69e138cff2a8995', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (hAsync("ic-typography", { key: '90151ad68ae0cd4f58d3e7eb01b88b9649997f61', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20428
20578
|
? this.subheading
|
20429
20579
|
: stepStatus))))));
|
20430
|
-
return (hAsync(Host, { key: '
|
20580
|
+
return (hAsync(Host, { key: 'e002bcf7743d7161bfb9816facb9a939e03aa233', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
|
20431
20581
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
20432
20582
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20433
20583
|
[`ic-step-${this.variant}`]: true,
|
@@ -20708,11 +20858,11 @@ class Stepper {
|
|
20708
20858
|
checkResizeObserver$1(this.runResizeObserver);
|
20709
20859
|
}
|
20710
20860
|
render() {
|
20711
|
-
return (hAsync(Host, { key: '
|
20861
|
+
return (hAsync(Host, { key: '160ed7fd4476d0a3bc486fdc53e8b5201b2da91b', class: {
|
20712
20862
|
[`ic-stepper-${this.variant}`]: true,
|
20713
20863
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
20714
20864
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
20715
|
-
} }, hAsync("ul", { key: '
|
20865
|
+
} }, hAsync("ul", { key: '8bb8e3a99cd3a3c4ce4b7f0e532cb7f761dbcc89', class: "step-item-list" }, hAsync("slot", { key: '5ca26c0108e96ec012bcd9b99c420559fbccb839' }))));
|
20716
20866
|
}
|
20717
20867
|
get el() { return getElement(this); }
|
20718
20868
|
static get watchers() { return {
|
@@ -20747,7 +20897,7 @@ class Stepper {
|
|
20747
20897
|
const icSwitchCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;--ic-input-label-text-color:var(--ic-switch-label);--ic-input-label-helper-text-color:var(--ic-switch-help-text);--ic-input-label-helpertext-padding:var(--ic-space-xs)}input{overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ic-switch-container{display:flex;flex-wrap:wrap;align-items:center;cursor:pointer}.ic-switch-label{margin-left:var(--ic-space-xxs);margin-bottom:var(--ic-space-xs)}.ic-switch-label-small{margin-bottom:var(--ic-space-xs)}.ic-switch-toggle{display:flex;align-items:center;justify-content:space-around;width:4rem;height:var(--ic-space-xl);position:relative;border-radius:100vw;background-color:var(--ic-switch-unchecked-bg);border:var(--ic-border-width) solid var(--ic-switch-unchecked);box-sizing:border-box;transition:var(--ic-transition-duration-fast);margin-left:var(--ic-space-xxs)}.ic-switch-line-break{flex:1 0 100%}.ic-switch-toggle::before{content:\"\";width:1.333rem;height:1.333rem;border-radius:50%;position:absolute;z-index:2;top:50%;left:0.333rem;transform:translate(0, -50%);background-color:var(--ic-switch-unchecked);transition:var(--ic-transition-duration-slow)}.ic-switch-icon{display:inline-block;vertical-align:middle;width:0.625rem;height:0.625rem}.ic-switch-icon-circle,.ic-switch-icon-line{stroke-width:1}.ic-switch-icon-circle{stroke:var(--ic-switch-indicator-off)}.ic-switch-icon-line{stroke:var(--ic-switch-indicator-on)}@media (prefers-reduced-motion: reduce){.ic-switch-toggle::before{transition-duration:0ms}}.ic-switch-input:checked+.ic-switch-toggle{background-color:var(--ic-switch-checked-bg);border:none}.ic-switch-input:checked+.ic-switch-toggle::before{transform:translate(var(--ic-space-xl), -50%);background-color:var(--ic-switch-checked)}.ic-switch-input:not([disabled])+.ic-switch-toggle:hover::before{box-shadow:0 0 0 0.75rem var(--ic-switch-unchecked-bg-hover)}.ic-switch-input:not([disabled])+.ic-switch-toggle:active::before{box-shadow:0 0 0 0.75rem var(--ic-switch-unchecked-bg-pressed)}.ic-switch-input:not([disabled]):checked+.ic-switch-toggle:hover::before{box-shadow:0 0 0 0.75rem var(--ic-switch-checked-bg-hover)}.ic-switch-input:not([disabled]):checked+.ic-switch-toggle:active::before{box-shadow:0 0 0 0.75rem var(--ic-switch-checked-bg-pressed)}.ic-switch-input:focus:not([disabled])+.ic-switch-toggle,.ic-switch-input:focus-visible:not([disabled])+.ic-switch-toggle{box-shadow:var(--ic-border-focus)}.ic-switch-disabled{cursor:default}.ic-switch-disabled .ic-switch-icon-circle{stroke:var(--ic-switch-indicator-off-disabled)}.ic-switch-disabled .ic-switch-icon-line{stroke:var(--ic-switch-indicator-on-disabled)}.ic-switch-input:disabled+.ic-switch-toggle{background-color:var(--ic-switch-unchecked-bg-disabled);border:var(--ic-space-1px) dashed var(--ic-switch-unchecked-outline-disabled)}.ic-switch-input:disabled+.ic-switch-toggle::before{background-color:var(--ic-switch-unchecked-disabled)}.ic-switch-input:disabled:checked+.ic-switch-toggle{background-color:var(--ic-switch-checked-bg-disabled);border:var(--ic-border-width) dashed\n var(--ic-switch-checked-outline-disabled)}.ic-switch-input:disabled:checked+.ic-switch-toggle::before{background-color:var(--ic-switch-checked)}.ic-switch-small .ic-switch-toggle{width:var(--ic-space-xxl);height:var(--ic-space-lg)}.ic-switch-small .ic-switch-toggle::before{width:var(--ic-space-md);height:var(--ic-space-md);left:var(--ic-space-xxs)}.ic-switch-small .ic-switch-input:checked+.ic-switch-toggle::before{transform:translate(var(--ic-space-lg), -50%)}::slotted([slot=\"right-adornment\"]){margin-left:var(--ic-space-sm);fill:var(--ic-switch-icon)}@media (forced-colors: active){.ic-switch-toggle::before,.ic-switch-input:checked+.ic-switch-toggle{border:var(--ic-border-hc)}.ic-switch-input:focus+.ic-switch-toggle{border-color:highlight;outline:var(--ic-space-xxxs) solid highlight}.ic-switch-input:checked+.ic-switch-toggle::before{transform:translate(calc(var(--ic-space-xl) - 0.125rem), -50%)}.ic-switch-input:disabled+.ic-switch-toggle,.ic-switch-input:disabled:checked+.ic-switch-toggle,.ic-switch-input:disabled+.ic-switch-toggle::before{border-color:GrayText}.ic-switch-disabled .ic-switch-icon-circle,.ic-switch-disabled .ic-switch-icon-line{stroke:GrayText}}";
|
20748
20898
|
var IcSwitchStyle0 = icSwitchCss;
|
20749
20899
|
|
20750
|
-
let inputIds$
|
20900
|
+
let inputIds$2 = 0;
|
20751
20901
|
/**
|
20752
20902
|
* @slot helper-text - Content is set as the helper text for the switch.
|
20753
20903
|
* @slot right-adornment - Content is placed to the right of switch.
|
@@ -20758,7 +20908,7 @@ class Switch {
|
|
20758
20908
|
this.icBlur = createEvent(this, "icBlur", 7);
|
20759
20909
|
this.icChange = createEvent(this, "icChange", 7);
|
20760
20910
|
this.icFocus = createEvent(this, "icFocus", 7);
|
20761
|
-
this.inputId = `ic-switch-input-${inputIds$
|
20911
|
+
this.inputId = `ic-switch-input-${inputIds$2++}`;
|
20762
20912
|
this.checkedState = false;
|
20763
20913
|
this.initiallyChecked = this.checked;
|
20764
20914
|
/**
|
@@ -20842,16 +20992,16 @@ class Switch {
|
|
20842
20992
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
20843
20993
|
const isSmall = size === "small";
|
20844
20994
|
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
20845
|
-
return (hAsync(Host, { key: '
|
20995
|
+
return (hAsync(Host, { key: '9b7b3b90a63362a1759ddac6f4cf21b9a557e557', class: {
|
20846
20996
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20847
|
-
} }, hAsync("label", { key: '
|
20997
|
+
} }, hAsync("label", { key: '53127158241f105ee2901065800c2e2c2956bde7', class: {
|
20848
20998
|
"ic-switch-container": true,
|
20849
20999
|
"ic-switch-disabled": !!disabled,
|
20850
21000
|
"ic-switch-small": isSmall,
|
20851
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
21001
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '9a1a21f9800d5ac10a1a34c26cb4935ba5ffc11d', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
20852
21002
|
"ic-switch-label": true,
|
20853
21003
|
"ic-switch-label-small": isSmall,
|
20854
|
-
} }, hAsync("slot", { key: '
|
21004
|
+
} }, hAsync("slot", { key: 'a571eb57460d766e9170ec2eb805cff8d2e1942a', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: '466b4dabdcc9c83a940e23939f3ef578e8c5e9f6', class: "ic-switch-line-break" }), hAsync("input", { key: 'b6fb491a569160225e7ff8a26384d955a1bda816', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText$1(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), hAsync("span", { key: '5af91fad30f1284a67af6340d9bcc8196b395790', class: "ic-switch-toggle" }, hAsync("svg", { key: 'dc1454967547c70a3f344b73818343fa48468733', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '561f2562c544bac3161ac16835c2d15eaf16ef42', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '74e1eb608eae10deab115ec10a9e38e69e749248', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '315395645de307e2b865f92c148e1e20435b44bd', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'cc7c441c007e20c183417ae606e59360e86b3c4d', name: "right-adornment" }))));
|
20855
21005
|
}
|
20856
21006
|
static get delegatesFocus() { return true; }
|
20857
21007
|
get el() { return getElement(this); }
|
@@ -20974,13 +21124,13 @@ class Tab {
|
|
20974
21124
|
}
|
20975
21125
|
render() {
|
20976
21126
|
const { disabled, selected, theme, monochrome, handleClick, handleFocus, handleMouseDown, } = this;
|
20977
|
-
return (hAsync(Host, { key: '
|
21127
|
+
return (hAsync(Host, { key: 'fe6e517a696ed23c6fb64028d617997439ebbac6', class: {
|
20978
21128
|
["with-transition"]: !this.isInitialRender,
|
20979
21129
|
["ic-tab-selected"]: !!selected,
|
20980
21130
|
["ic-tab-disabled"]: !!disabled,
|
20981
21131
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20982
21132
|
["ic-tab-monochrome"]: !!monochrome,
|
20983
|
-
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { key: '
|
21133
|
+
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { key: '9c2bf173facd6f4b4fa96824bb14db06a2b97c6b', name: "icon" }), hAsync("ic-typography", { key: 'f1d4732d8f5ad9f198f2da6c08c3717731dcd8da', class: "ic-tab-label", variant: "label" }, hAsync("span", { key: '9f993fe757e86acb507a58259e47e507a5feddc3' }, hAsync("slot", { key: '2bfe6c474802a62771ce58947305f0b71db1803d' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '23c6074e338df9e72b77b5449938f61f9ee042a0', name: "badge" })));
|
20984
21134
|
}
|
20985
21135
|
get el() { return getElement(this); }
|
20986
21136
|
static get watchers() { return {
|
@@ -21229,7 +21379,7 @@ class TabContext {
|
|
21229
21379
|
}
|
21230
21380
|
}
|
21231
21381
|
render() {
|
21232
|
-
return hAsync("slot", { key: '
|
21382
|
+
return hAsync("slot", { key: '0df9be3f91695a070675c0809d85e94e4d64ec3b' });
|
21233
21383
|
}
|
21234
21384
|
get el() { return getElement(this); }
|
21235
21385
|
static get watchers() { return {
|
@@ -21275,11 +21425,11 @@ class TabGroup {
|
|
21275
21425
|
}
|
21276
21426
|
render() {
|
21277
21427
|
const { inline, theme, label, monochrome } = this;
|
21278
|
-
return (hAsync(Host, { key: '
|
21428
|
+
return (hAsync(Host, { key: '08da1fef9eb0a16a7f9d0f7cffff3894b3319b09', role: "tablist", "aria-label": label, class: {
|
21279
21429
|
["ic-tab-group-inline"]: !!inline,
|
21280
21430
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21281
21431
|
["ic-tab-group-monochrome"]: !!monochrome,
|
21282
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
21432
|
+
} }, hAsync("ic-horizontal-scroll", { key: 'c12cc06aba78c85277b3eab2250c8e61a3b4c4da', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: '01c299ea10f8600e2e9df303e06c4e97dcdab7c3', class: "tabs-container" }, hAsync("slot", { key: '1f2cb7d4f2f86c7e3ba8f910797a963d15d9a7e0' })))));
|
21283
21433
|
}
|
21284
21434
|
static get delegatesFocus() { return true; }
|
21285
21435
|
static get style() { return IcTabGroupStyle0; }
|
@@ -21322,10 +21472,10 @@ class TabPanel {
|
|
21322
21472
|
}
|
21323
21473
|
render() {
|
21324
21474
|
const { active, theme } = this;
|
21325
|
-
return (hAsync(Host, { key: '
|
21475
|
+
return (hAsync(Host, { key: 'ec5befdef261599b9f010a547bec533c28422dcd', class: {
|
21326
21476
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21327
21477
|
"ic-tab-panel-hidden": !active,
|
21328
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
21478
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '76bf7fc0f05bd9422c79ba6a592561c211b20bec' }, hAsync("slot", { key: '5ecfbc0ad3dc9c11b482f81557afc2afa5dd2803' }))));
|
21329
21479
|
}
|
21330
21480
|
get el() { return getElement(this); }
|
21331
21481
|
static get style() { return IcTabPanelStyle0; }
|
@@ -21349,7 +21499,7 @@ class TabPanel {
|
|
21349
21499
|
const icTextFieldCss = "/*! 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-helpertext-padding:var(--ic-space-xs);--border-color:var(--ic-text-field-border-neutral);--border-color-hover:var(--ic-text-field-border-neutral-hover);--border-color-pressed:var(--ic-text-field-border-neutral-pressed);--border-color-disabled:var(--ic-text-field-border-disabled);--border-color-error:var(--ic-text-field-border-error);--border-color-error-hover:var(--ic-text-field-border-error-hover);--border-color-error-pressed:var(--ic-text-field-border-error-pressed);--border-color-success:var(--ic-text-field-border-success);--border-color-success-hover:var(--ic-text-field-border-success-hover);--border-color-success-pressed:var(--ic-text-field-border-success-pressed);--border-color-warning:var(--ic-text-field-border-warning);--border-color-warning-hover:var(--ic-text-field-border-warning-hover);--border-color-warning-pressed:var(--ic-text-field-border-warning-pressed);--ic-input-label-text-color:var(--ic-text-field-label);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle);--ic-input-validation-status-text-color:var(--ic-text-field-state-text);--ic-input-validation-error:var(--ic-text-field-state-icon-error);--ic-input-validation-warning-icon-color:var(\n --ic-text-field-state-icon-warning\n );--ic-input-validation-success-icon-color:var(\n --ic-text-field-state-icon-success\n );--ic-input-component-container-success-icon-inline-color:var(\n --ic-text-field-state-icon-success\n )}:host(.ic-text-field-disabled){--ic-input-label-text-color:var(--ic-text-field-label-disabled);--ic-input-label-helper-text-color:var(--ic-text-field-subtitle-disabled);--text-field-placeholder-color:var(\n --ic-text-field-text-area-placeholder-text-disabled\n )}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}::placeholder{color:var(\n --text-field-placeholder-color,\n var(--ic-text-field-placeholder-text)\n );opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);color:var(--text-field-text-color, var(--ic-text-field-text));background-color:var(--input-bg-color, var(--ic-text-field-background));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(\n --text-field-typing-cursor,\n var(--ic-text-field-typing-cursor)\n )}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(\n --text-field-disabled-text-color,\n var(--ic-text-field-text-disabled)\n )}input.readonly,textarea.readonly{color:var(--ic-text-field-read-only-input-text-internal);background:transparent}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-text-field-character-limit);padding-right:var(--ic-space-xxxs)}:host(.ic-text-field-disabled) .char-count-text{--ic-typography-color:var(--ic-text-field-character-limit-disabled)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-text-field-text-disabled)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-text-field-input-internal-icon)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}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}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
21350
21500
|
var IcTextFieldStyle0 = icTextFieldCss;
|
21351
21501
|
|
21352
|
-
let inputIds = 0;
|
21502
|
+
let inputIds$1 = 0;
|
21353
21503
|
const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
|
21354
21504
|
/**
|
21355
21505
|
* @slot helper-text - Content is set as the helper text for the text field.
|
@@ -21419,7 +21569,7 @@ class TextField {
|
|
21419
21569
|
/**
|
21420
21570
|
* The ID for the input.
|
21421
21571
|
*/
|
21422
|
-
this.inputId = `ic-text-field-input-${inputIds++}`;
|
21572
|
+
this.inputId = `ic-text-field-input-${inputIds$1++}`;
|
21423
21573
|
/**
|
21424
21574
|
* A hint to the browser for which keyboard to display.
|
21425
21575
|
* Possible values: `"none"`, `"text"`, `"tel"`, `"url"`,
|
@@ -21716,14 +21866,14 @@ class TextField {
|
|
21716
21866
|
hiddenInput
|
21717
21867
|
? renderHiddenInput$1(this.el, value, name, disabledMode)
|
21718
21868
|
: removeHiddenInput(this.el);
|
21719
|
-
return (hAsync(Host, { key: '
|
21869
|
+
return (hAsync(Host, { key: 'af9f4dab9e78765b8e1e578d57783e5487d83f6b', class: {
|
21720
21870
|
"ic-text-field-full-width": fullWidth,
|
21721
21871
|
"ic-text-field-disabled": disabledMode,
|
21722
21872
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21723
|
-
} }, hAsync("ic-input-container", { key: '
|
21873
|
+
} }, hAsync("ic-input-container", { key: '7417dcc2f53f877899b713093e81a4db38c394c7', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '36ae0e2a6a99024c0b8fbd141519dcd4d5390e6d', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, hAsync("slot", { key: '9392299204d1bc2ef1b0bb464984b8f8bc148834', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'd6819ae02cab210950e11d74c1dac6dd3c5505ed', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: '660f12ab2717dfd7b75bd19a60c92c167fb06db3', class: {
|
21724
21874
|
readonly,
|
21725
21875
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
21726
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
21876
|
+
}, slot: "left-icon" }, hAsync("slot", { key: '8631fc623d4f5b422921add6d01992b736acdf22', name: "icon" }))), !multiline ? (hAsync("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
|
21727
21877
|
"no-left-pad": !showLeftIcon && readonly,
|
21728
21878
|
readonly,
|
21729
21879
|
"truncate-value": truncateValue,
|
@@ -21731,19 +21881,19 @@ class TextField {
|
|
21731
21881
|
"no-resize": resize === false || !!readonly,
|
21732
21882
|
"no-left-pad": !showLeftIcon && !!readonly,
|
21733
21883
|
readonly: !!readonly,
|
21734
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed$1(el, "clear-button") && (hAsync("slot", { key: '
|
21884
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed$1(el, "clear-button") && (hAsync("slot", { key: 'c92ce219c83dccaec610f5caeb2a71b4753cbe2f', name: "clear-button" })), isSlotUsed$1(el, "search-submit-button") && (hAsync("slot", { key: '4ee50a7855e3a2c3fb5ab4ad655b278bb7a2190d', name: "search-submit-button" }))), isSlotUsed$1(el, "menu") && hAsync("slot", { key: '9ab8449f815482c7cd689d3d22b918de4c72c27b', name: "menu" }), (!isEmptyString$1(validationStatus) ||
|
21735
21885
|
!isEmptyString$1(validationText) ||
|
21736
21886
|
maxNumChars > 0 ||
|
21737
21887
|
maxValueExceeded ||
|
21738
21888
|
maxCharactersWarning ||
|
21739
21889
|
minCharactersUnattained ||
|
21740
21890
|
minValueUnattained) &&
|
21741
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '
|
21891
|
+
!validationInlineInternal && (hAsync("ic-input-validation", { key: 'b87afc1859b8a33d5767b5b0c61056936b760de7', status: this.hasStatus(currentStatus) === false ||
|
21742
21892
|
(currentStatus === IcInformationStatus$1.Success &&
|
21743
21893
|
validationInline) ||
|
21744
21894
|
validationInlineInternal
|
21745
21895
|
? ""
|
21746
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
21896
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: 'b0f41b53066d1c7b6fa4442796ec5122198575bf', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: 'acc961a28e30293d1031a8469327e3f70c179936', variant: "caption", class: "char-count-text" }, hAsync("span", { key: '94e2d9e62a04beccd7abc4309a70f6a0908f4d34', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: 'caf33b69417c2a5d956b7a88ea3855212c7e3e19', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), hAsync("span", { key: 'f69c682178137ae9da47c05c15b81de48e06189a', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
|
21747
21897
|
}
|
21748
21898
|
get el() { return getElement(this); }
|
21749
21899
|
static get watchers() { return {
|
@@ -21881,7 +22031,7 @@ class Theme {
|
|
21881
22031
|
}
|
21882
22032
|
render() {
|
21883
22033
|
const { themeClass } = this;
|
21884
|
-
return (hAsync(Host, { key: '
|
22034
|
+
return (hAsync(Host, { key: '512d47b99bd3f18979a2e5bf12dc1959c4135026', class: themeClass }, hAsync("slot", { key: '16f87dc2ea22a43fa7208a9a4e37c5e37e779fc6' })));
|
21885
22035
|
}
|
21886
22036
|
static get watchers() { return {
|
21887
22037
|
"brandColor": ["watchBrandColorPropHandler"],
|
@@ -21901,76 +22051,1051 @@ class Theme {
|
|
21901
22051
|
}; }
|
21902
22052
|
}
|
21903
22053
|
|
21904
|
-
|
21905
|
-
var IcToastStyle0 = icToastCss;
|
22054
|
+
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>`;
|
21906
22055
|
|
21907
|
-
const
|
21908
|
-
|
21909
|
-
|
22056
|
+
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,.second-input.fit-to-value{width:2.313rem}.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}}";
|
22057
|
+
var IcTimeInputStyle0 = icTimeInputCss;
|
22058
|
+
|
22059
|
+
let inputIds = 0;
|
21910
22060
|
/**
|
21911
|
-
* @slot
|
21912
|
-
* @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.
|
22061
|
+
* @slot helper-text - Content is set as the helper text for the time input.
|
21913
22062
|
*/
|
21914
|
-
class
|
22063
|
+
class TimeInput {
|
21915
22064
|
constructor(hostRef) {
|
21916
22065
|
registerInstance(this, hostRef);
|
21917
|
-
this.
|
21918
|
-
this.
|
21919
|
-
this.
|
21920
|
-
this.
|
22066
|
+
this.clockButtonClicked = createEvent(this, "clockButtonClicked", 7);
|
22067
|
+
this.icBlur = createEvent(this, "icBlur", 7);
|
22068
|
+
this.icChange = createEvent(this, "icChange", 7);
|
22069
|
+
this.icFocus = createEvent(this, "icFocus", 7);
|
22070
|
+
this.DEFAULT_TIME_FORMAT = "HH:MM:SS";
|
22071
|
+
this.ARIA_INVALID = "aria-invalid";
|
22072
|
+
this.ARIA_LABEL = "aria-label";
|
22073
|
+
this.ARIA_LABELLED_BY = "aria-labelledby";
|
22074
|
+
this.EVENT_OBJECT_STRING = "[object Event]";
|
22075
|
+
this.FIT_TO_VALUE = "fit-to-value";
|
22076
|
+
this.initialValue = this.value;
|
22077
|
+
this.inputsInOrder = [];
|
22078
|
+
this.isValidHour = true;
|
22079
|
+
this.isValidMinute = true;
|
22080
|
+
this.isValidSecond = true;
|
22081
|
+
this.isValidTime = true;
|
22082
|
+
this.isTimeSetFromKeyboardEvent = false;
|
22083
|
+
this.previousSelectedTime = null;
|
22084
|
+
this.selectedTime = null;
|
22085
|
+
this.externalSetTime = false;
|
22086
|
+
this.clearInput = false;
|
22087
|
+
this.maxTime = null;
|
22088
|
+
this.minTime = null;
|
22089
|
+
this.clockFocused = false;
|
22090
|
+
this.clearButtonFocused = false;
|
22091
|
+
this.removeLabelledBy = false;
|
22092
|
+
this.hour = "";
|
22093
|
+
this.minute = "";
|
22094
|
+
this.second = "";
|
21921
22095
|
/**
|
21922
|
-
* If
|
21923
|
-
* (NOTE: Has a minimum value of `5000ms`)
|
22096
|
+
* If `true`, the disabled state will be set.
|
21924
22097
|
*/
|
21925
|
-
this.
|
22098
|
+
this.disabled = false;
|
21926
22099
|
/**
|
21927
|
-
*
|
22100
|
+
* An array of times that will be disabled in the time input. The times can be in any format supported as `timeFormat`, in ISO 8601 time string format (`HH:MM:SS`) or as a JavaScript `Date` object.
|
21928
22101
|
*/
|
21929
|
-
this.
|
22102
|
+
this.disableTimes = [];
|
21930
22103
|
/**
|
21931
|
-
*
|
22104
|
+
* If `true`, every individual input field completed will emit an icChange event.
|
21932
22105
|
*/
|
21933
|
-
this.
|
21934
|
-
|
21935
|
-
|
21936
|
-
|
21937
|
-
this.
|
21938
|
-
|
21939
|
-
|
21940
|
-
|
21941
|
-
this.
|
21942
|
-
|
21943
|
-
|
21944
|
-
|
21945
|
-
}
|
21946
|
-
|
21947
|
-
|
21948
|
-
|
21949
|
-
|
21950
|
-
|
21951
|
-
|
21952
|
-
|
21953
|
-
|
21954
|
-
|
21955
|
-
|
21956
|
-
|
21957
|
-
|
21958
|
-
|
21959
|
-
|
21960
|
-
|
21961
|
-
|
21962
|
-
|
21963
|
-
|
21964
|
-
|
21965
|
-
|
21966
|
-
|
21967
|
-
|
21968
|
-
|
21969
|
-
|
21970
|
-
|
21971
|
-
|
21972
|
-
|
21973
|
-
|
22106
|
+
this.emitTimePartChange = false;
|
22107
|
+
/**
|
22108
|
+
* If `true`, the helper text will be visually hidden, but still read out by screenreaders.
|
22109
|
+
*/
|
22110
|
+
this.hideHelperText = false;
|
22111
|
+
/**
|
22112
|
+
* If `true`, the label will be visually hidden, but will still be read out by screen readers.
|
22113
|
+
*/
|
22114
|
+
this.hideLabel = false;
|
22115
|
+
/**
|
22116
|
+
* The ID for the input.
|
22117
|
+
*/
|
22118
|
+
this.inputId = `ic-time-input-${inputIds++}`;
|
22119
|
+
/**
|
22120
|
+
* The text to display as the validation message when an invalid time is entered.
|
22121
|
+
*/
|
22122
|
+
this.invalidTimeMessage = "Please enter a valid time.";
|
22123
|
+
/**
|
22124
|
+
* 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.
|
22125
|
+
*/
|
22126
|
+
this.max = "";
|
22127
|
+
/**
|
22128
|
+
* 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.
|
22129
|
+
*/
|
22130
|
+
this.min = "";
|
22131
|
+
/**
|
22132
|
+
* The name of the control, which is submitted with the form data.
|
22133
|
+
*/
|
22134
|
+
this.name = this.inputId;
|
22135
|
+
/**
|
22136
|
+
* If `true`, the input will require a value.
|
22137
|
+
*/
|
22138
|
+
this.required = false;
|
22139
|
+
/**
|
22140
|
+
* If `true`, a button which clears the time input when clicked will be displayed.
|
22141
|
+
*/
|
22142
|
+
this.showClearButton = true;
|
22143
|
+
/**
|
22144
|
+
* @internal If `true`, a button which displays the clock view when clicked will be displayed.
|
22145
|
+
*/
|
22146
|
+
this.showClockButton = false;
|
22147
|
+
/**
|
22148
|
+
* The size of the time input to be displayed.
|
22149
|
+
*/
|
22150
|
+
this.size = "medium";
|
22151
|
+
/**
|
22152
|
+
* Sets the time picker to the dark or light theme colors. "inherit" will set the color based on the system settings or ic-theme component.
|
22153
|
+
*/
|
22154
|
+
this.theme = "inherit";
|
22155
|
+
/**
|
22156
|
+
* The format in which the time will be displayed.
|
22157
|
+
*/
|
22158
|
+
this.timeFormat = this.DEFAULT_TIME_FORMAT;
|
22159
|
+
/**
|
22160
|
+
* The time period format: "12" for 12-hour, "24" for 24-hour. Defaults to "24".
|
22161
|
+
*/
|
22162
|
+
this.timePeriod = "24";
|
22163
|
+
/**
|
22164
|
+
* The value of the time input. 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.
|
22165
|
+
*/
|
22166
|
+
this.value = "";
|
22167
|
+
/**
|
22168
|
+
* The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in time validation.
|
22169
|
+
*/
|
22170
|
+
this.validationStatus = "";
|
22171
|
+
/**
|
22172
|
+
* The text to display as the validation message. This will override the built-in time validation.
|
22173
|
+
*/
|
22174
|
+
this.validationText = "";
|
22175
|
+
this.setInputPasteValue = (input, pastedValue) => {
|
22176
|
+
if (input) {
|
22177
|
+
const inputEl = input;
|
22178
|
+
inputEl.value = pastedValue;
|
22179
|
+
inputEl.classList.add(this.FIT_TO_VALUE);
|
22180
|
+
}
|
22181
|
+
};
|
22182
|
+
this.parseTime = (value) => {
|
22183
|
+
if (!value)
|
22184
|
+
return null;
|
22185
|
+
if (value instanceof Date)
|
22186
|
+
return value;
|
22187
|
+
const parts = value.split(":");
|
22188
|
+
if (parts.length >= 2) {
|
22189
|
+
const d = new Date();
|
22190
|
+
d.setHours(+parts[0], +parts[1], parts[2] ? +parts[2] : 0, 0);
|
22191
|
+
return d;
|
22192
|
+
}
|
22193
|
+
return null;
|
22194
|
+
};
|
22195
|
+
this.isHHMMFormat = () => this.timeFormat === "HH:MM";
|
22196
|
+
this.isKeyboardOrEvent = (event) => {
|
22197
|
+
return (Object.prototype.toString.call(event) === this.EVENT_OBJECT_STRING ||
|
22198
|
+
Object.prototype.toString.call(event) === "[object KeyboardEvent]");
|
22199
|
+
};
|
22200
|
+
this.setTimeValidity = () => {
|
22201
|
+
const minHour = 0;
|
22202
|
+
const maxHour = this.timePeriod === "12" ? 11 : 23;
|
22203
|
+
if (!isEmptyString(this.hour)) {
|
22204
|
+
this.isValidHour = +this.hour >= minHour && +this.hour <= maxHour;
|
22205
|
+
}
|
22206
|
+
else {
|
22207
|
+
this.isValidHour = true;
|
22208
|
+
}
|
22209
|
+
if (!isEmptyString(this.minute)) {
|
22210
|
+
this.isValidMinute = +this.minute >= 0 && +this.minute <= 59;
|
22211
|
+
}
|
22212
|
+
else {
|
22213
|
+
this.isValidMinute = true;
|
22214
|
+
}
|
22215
|
+
if (!this.isHHMMFormat()) {
|
22216
|
+
if (!isEmptyString(this.second)) {
|
22217
|
+
this.isValidSecond = +this.second >= 0 && +this.second <= 59;
|
22218
|
+
}
|
22219
|
+
else {
|
22220
|
+
this.isValidSecond = true;
|
22221
|
+
}
|
22222
|
+
}
|
22223
|
+
else {
|
22224
|
+
this.isValidSecond = true;
|
22225
|
+
}
|
22226
|
+
};
|
22227
|
+
this.setInputValue = (input, clear = false) => {
|
22228
|
+
const newValue = clear ? "" : input.value;
|
22229
|
+
if (input === this.hourInputEl) {
|
22230
|
+
this.hour = newValue;
|
22231
|
+
}
|
22232
|
+
else if (input === this.minuteInputEl) {
|
22233
|
+
this.minute = newValue;
|
22234
|
+
}
|
22235
|
+
else if (input === this.secondInputEl && !this.isHHMMFormat()) {
|
22236
|
+
this.second = newValue;
|
22237
|
+
}
|
22238
|
+
this.setValidationMessage();
|
22239
|
+
};
|
22240
|
+
this.setPreventInput = (input, isPrevented) => {
|
22241
|
+
if (input === this.hourInputEl) {
|
22242
|
+
this.preventHourInput = isPrevented;
|
22243
|
+
}
|
22244
|
+
else if (input === this.minuteInputEl) {
|
22245
|
+
this.preventMinuteInput = isPrevented;
|
22246
|
+
}
|
22247
|
+
else if (input === this.secondInputEl) {
|
22248
|
+
this.preventSecondInput = isPrevented;
|
22249
|
+
}
|
22250
|
+
};
|
22251
|
+
this.setValidationMessage = () => {
|
22252
|
+
this.maxTime = this.parseTime(this.max);
|
22253
|
+
this.minTime = this.parseTime(this.min);
|
22254
|
+
this.setTimeValidity();
|
22255
|
+
let outOfBoundsMsg = "";
|
22256
|
+
let isDisabledTime = false;
|
22257
|
+
if (!isEmptyString(this.hour) &&
|
22258
|
+
!isEmptyString(this.minute) &&
|
22259
|
+
(this.isHHMMFormat() || !isEmptyString(this.second))) {
|
22260
|
+
this.selectedTime = this.convertToTime(this.hour, this.minute, this.isHHMMFormat() ? "00" : this.second);
|
22261
|
+
this.isValidTime =
|
22262
|
+
!!this.selectedTime &&
|
22263
|
+
this.selectedTime.getHours() == +this.hour &&
|
22264
|
+
this.selectedTime.getMinutes() == +this.minute &&
|
22265
|
+
(this.isHHMMFormat() || this.selectedTime.getSeconds() == +this.second);
|
22266
|
+
if (this.selectedTime &&
|
22267
|
+
Array.isArray(this.disableTimes) &&
|
22268
|
+
this.disableTimes.length > 0) {
|
22269
|
+
isDisabledTime = this.disableTimes.some((t) => {
|
22270
|
+
if (typeof t === "object" &&
|
22271
|
+
t !== null &&
|
22272
|
+
"start" in t &&
|
22273
|
+
"end" in t) {
|
22274
|
+
const start = this.parseTime(t.start);
|
22275
|
+
const end = this.parseTime(t.end);
|
22276
|
+
if (start && end) {
|
22277
|
+
return this.selectedTime >= start && this.selectedTime <= end;
|
22278
|
+
}
|
22279
|
+
return false;
|
22280
|
+
}
|
22281
|
+
const parsed = this.parseTime(t);
|
22282
|
+
return (parsed &&
|
22283
|
+
parsed.getHours() === this.selectedTime.getHours() &&
|
22284
|
+
parsed.getMinutes() === this.selectedTime.getMinutes() &&
|
22285
|
+
parsed.getSeconds() === this.selectedTime.getSeconds());
|
22286
|
+
});
|
22287
|
+
if (isDisabledTime) {
|
22288
|
+
this.isValidTime = false;
|
22289
|
+
outOfBoundsMsg = this.invalidTimeMessage;
|
22290
|
+
}
|
22291
|
+
}
|
22292
|
+
if (this.selectedTime && !isDisabledTime) {
|
22293
|
+
if (this.minTime && this.selectedTime < this.minTime) {
|
22294
|
+
this.isValidTime = false;
|
22295
|
+
outOfBoundsMsg = `Please enter a time after ${this.formatTime(this.minTime)}.`;
|
22296
|
+
}
|
22297
|
+
else if (this.maxTime && this.selectedTime > this.maxTime) {
|
22298
|
+
this.isValidTime = false;
|
22299
|
+
outOfBoundsMsg = `Please enter a time before ${this.formatTime(this.maxTime)}.`;
|
22300
|
+
}
|
22301
|
+
}
|
22302
|
+
if (!this.isValidTime) {
|
22303
|
+
this.inputsInOrder.forEach((input) => input.setAttribute(this.ARIA_INVALID, "true"));
|
22304
|
+
}
|
22305
|
+
else {
|
22306
|
+
this.inputsInOrder.forEach((input) => input.removeAttribute(this.ARIA_INVALID));
|
22307
|
+
}
|
22308
|
+
}
|
22309
|
+
else {
|
22310
|
+
this.selectedTime = null;
|
22311
|
+
}
|
22312
|
+
if (!(this.isValidHour &&
|
22313
|
+
this.isValidMinute &&
|
22314
|
+
this.isValidSecond &&
|
22315
|
+
this.isValidTime)) {
|
22316
|
+
this.invalidTimeText = outOfBoundsMsg || this.invalidTimeMessage;
|
22317
|
+
}
|
22318
|
+
else {
|
22319
|
+
this.invalidTimeText = "";
|
22320
|
+
}
|
22321
|
+
};
|
22322
|
+
this.formatTime = (time) => {
|
22323
|
+
const hh = time.getHours().toString().padStart(2, "0");
|
22324
|
+
const mm = time.getMinutes().toString().padStart(2, "0");
|
22325
|
+
const ss = time.getSeconds().toString().padStart(2, "0");
|
22326
|
+
return this.isHHMMFormat() ? `${hh}:${mm}` : `${hh}:${mm}:${ss}`;
|
22327
|
+
};
|
22328
|
+
this.handleInput = (event) => {
|
22329
|
+
const inputEvent = event;
|
22330
|
+
const input = event.target;
|
22331
|
+
if (input !== this.hourInputEl) {
|
22332
|
+
if (inputEvent.inputType !== "deleteContentBackward" &&
|
22333
|
+
!this.preventAutoFormatting) {
|
22334
|
+
if (input.value.length === 1 &&
|
22335
|
+
+input.value >= 6 &&
|
22336
|
+
+input.value <= 9) {
|
22337
|
+
this.setInputValue(input);
|
22338
|
+
this.notifyScreenReader(input);
|
22339
|
+
this.moveToNextInput(input);
|
22340
|
+
}
|
22341
|
+
if (input.value.length === 2) {
|
22342
|
+
this.setInputValue(input);
|
22343
|
+
this.setPreventInput(input, true);
|
22344
|
+
this.notifyScreenReader(input);
|
22345
|
+
this.moveToNextInput(input);
|
22346
|
+
}
|
22347
|
+
else {
|
22348
|
+
this.setPreventInput(input, false);
|
22349
|
+
}
|
22350
|
+
}
|
22351
|
+
else if (this.preventAutoFormatting) {
|
22352
|
+
if (input.value.length === 2 && !this.isKeyboardOrEvent(event)) {
|
22353
|
+
this.setInputValue(input);
|
22354
|
+
this.setPreventInput(input, true);
|
22355
|
+
this.moveToNextInput(input);
|
22356
|
+
}
|
22357
|
+
else {
|
22358
|
+
this.setInputValue(input);
|
22359
|
+
}
|
22360
|
+
}
|
22361
|
+
if (input.value.length !== 2) {
|
22362
|
+
this.setPreventInput(input, false);
|
22363
|
+
}
|
22364
|
+
}
|
22365
|
+
else {
|
22366
|
+
if (input.value.length === 2) {
|
22367
|
+
this.setInputValue(input);
|
22368
|
+
if (Object.prototype.toString.call(event) !== this.EVENT_OBJECT_STRING) {
|
22369
|
+
this.moveToNextInput(input);
|
22370
|
+
}
|
22371
|
+
this.setPreventInput(input, true);
|
22372
|
+
}
|
22373
|
+
else {
|
22374
|
+
this.setInputValue(input, true);
|
22375
|
+
this.setPreventInput(input, false);
|
22376
|
+
}
|
22377
|
+
}
|
22378
|
+
this.setFitToValueStyling(input);
|
22379
|
+
if (input.value.length === 0) {
|
22380
|
+
this.setInputValue(input, true);
|
22381
|
+
this.setValidationMessage();
|
22382
|
+
}
|
22383
|
+
this.notifyScreenReader(input);
|
22384
|
+
};
|
22385
|
+
this.handleKeyDown = (event, isInputPrevented) => {
|
22386
|
+
var _a;
|
22387
|
+
const input = event.target;
|
22388
|
+
const eventKey = (_a = event.key) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
22389
|
+
const regex = /-?\d*\.?\d+(e[-+]?\d+)?|[:]|arrowup|arrowdown|arrowleft|arrowright|shift|tab|backspace|delete/;
|
22390
|
+
if (!regex.test(eventKey) &&
|
22391
|
+
!((event.ctrlKey || event.metaKey) &&
|
22392
|
+
(eventKey === "v" || eventKey === "c"))) {
|
22393
|
+
event.preventDefault();
|
22394
|
+
}
|
22395
|
+
switch (eventKey) {
|
22396
|
+
case ":":
|
22397
|
+
case "arrowright":
|
22398
|
+
event.preventDefault();
|
22399
|
+
this.moveToNextInput(input);
|
22400
|
+
break;
|
22401
|
+
case "arrowleft":
|
22402
|
+
event.preventDefault();
|
22403
|
+
this.moveToPreviousInput(input);
|
22404
|
+
break;
|
22405
|
+
case "arrowup":
|
22406
|
+
case "arrowdown":
|
22407
|
+
this.preventAutoFormatting = true;
|
22408
|
+
this.handleUpDownArrowKeyPress(input, event);
|
22409
|
+
break;
|
22410
|
+
case "backspace":
|
22411
|
+
if (input.value.length === 0) {
|
22412
|
+
event.preventDefault();
|
22413
|
+
this.moveToPreviousInput(input);
|
22414
|
+
}
|
22415
|
+
break;
|
22416
|
+
}
|
22417
|
+
this.preventInput(event, isInputPrevented);
|
22418
|
+
this.isTimeSetFromKeyboardEvent = true;
|
22419
|
+
};
|
22420
|
+
this.handleFocus = (event) => {
|
22421
|
+
const input = event.target;
|
22422
|
+
input.select();
|
22423
|
+
};
|
22424
|
+
this.handleBlur = (event) => {
|
22425
|
+
const input = event.target;
|
22426
|
+
if (input) {
|
22427
|
+
this.autocompleteInput(input);
|
22428
|
+
}
|
22429
|
+
};
|
22430
|
+
this.handleUpDownArrowKeyPress = (input, event) => {
|
22431
|
+
let minValue = 0;
|
22432
|
+
let maxValue = 59;
|
22433
|
+
if (input === this.hourInputEl) {
|
22434
|
+
minValue = 0;
|
22435
|
+
maxValue = this.timePeriod === "12" ? 11 : 23;
|
22436
|
+
}
|
22437
|
+
let val = +input.value;
|
22438
|
+
if (event.key === "ArrowUp") {
|
22439
|
+
val = val + 1;
|
22440
|
+
if (val > maxValue)
|
22441
|
+
val = minValue;
|
22442
|
+
input.value = val.toString().padStart(2, "0");
|
22443
|
+
this.notifyScreenReader(input);
|
22444
|
+
}
|
22445
|
+
if (event.key === "ArrowDown") {
|
22446
|
+
val = val - 1;
|
22447
|
+
if (val < minValue)
|
22448
|
+
val = maxValue;
|
22449
|
+
input.value = val.toString().padStart(2, "0");
|
22450
|
+
this.notifyScreenReader(input);
|
22451
|
+
}
|
22452
|
+
this.setInputValue(input);
|
22453
|
+
this.setFitToValueStyling(input);
|
22454
|
+
};
|
22455
|
+
this.handleTimeChange = (force) => {
|
22456
|
+
if (force || this.selectedTime !== this.previousSelectedTime) {
|
22457
|
+
if (this.value) {
|
22458
|
+
this.inputsInOrder.forEach((input) => {
|
22459
|
+
input.classList.add(this.FIT_TO_VALUE);
|
22460
|
+
});
|
22461
|
+
}
|
22462
|
+
if (this.hour &&
|
22463
|
+
this.minute &&
|
22464
|
+
(this.isHHMMFormat() || this.second) &&
|
22465
|
+
this.invalidTimeText === "") {
|
22466
|
+
this.setValueAndEmitChange(this.selectedTime);
|
22467
|
+
this.notifyScreenReaderSelectedTime();
|
22468
|
+
}
|
22469
|
+
else if (!(this.selectedTime === null && this.previousSelectedTime === null) &&
|
22470
|
+
this.selectedTimeInfoEl) {
|
22471
|
+
this.setValueAndEmitChange(null);
|
22472
|
+
this.selectedTimeInfoEl.textContent = "";
|
22473
|
+
}
|
22474
|
+
this.previousSelectedTime = this.selectedTime;
|
22475
|
+
if (!this.isTimeSetFromKeyboardEvent) {
|
22476
|
+
this.updateInputValues(this.hour, this.minute, this.second);
|
22477
|
+
}
|
22478
|
+
}
|
22479
|
+
};
|
22480
|
+
this.setValueAndEmitChange = (value) => {
|
22481
|
+
if (this.value !== value) {
|
22482
|
+
this.emitIcChange(value);
|
22483
|
+
this.value = value;
|
22484
|
+
}
|
22485
|
+
};
|
22486
|
+
this.emitIcChange = (t) => {
|
22487
|
+
this.selectedTime = t;
|
22488
|
+
this.icChange.emit({
|
22489
|
+
value: t,
|
22490
|
+
timeObject: {
|
22491
|
+
hour: this.hour === "" ? null : this.hour,
|
22492
|
+
minute: this.minute === "" ? null : this.minute,
|
22493
|
+
second: this.second === "" ? null : this.second,
|
22494
|
+
},
|
22495
|
+
});
|
22496
|
+
};
|
22497
|
+
this.setTime = (time) => {
|
22498
|
+
if (time === null || time === "" || time === undefined) {
|
22499
|
+
if (this.hour)
|
22500
|
+
this.hour = "";
|
22501
|
+
if (this.minute)
|
22502
|
+
this.minute = "";
|
22503
|
+
if (this.second)
|
22504
|
+
this.second = "";
|
22505
|
+
this.inputsInOrder.forEach((input) => {
|
22506
|
+
input.classList.remove(this.FIT_TO_VALUE);
|
22507
|
+
this.setPreventInput(input, false);
|
22508
|
+
});
|
22509
|
+
this.handleTimeChange(true);
|
22510
|
+
}
|
22511
|
+
else {
|
22512
|
+
if (typeof time === "string") {
|
22513
|
+
const zuluMatch = time.match(/^(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,3}))?Z?$/);
|
22514
|
+
if (zuluMatch) {
|
22515
|
+
this.hour = zuluMatch[1];
|
22516
|
+
this.minute = zuluMatch[2];
|
22517
|
+
this.second = zuluMatch[3];
|
22518
|
+
}
|
22519
|
+
else {
|
22520
|
+
const parts = time.split(":");
|
22521
|
+
this.hour = parts[0] || "";
|
22522
|
+
this.minute = parts[1] || "";
|
22523
|
+
this.second = parts[2] || "";
|
22524
|
+
}
|
22525
|
+
}
|
22526
|
+
else if (time instanceof Date) {
|
22527
|
+
this.hour = time.getHours().toString().padStart(2, "0");
|
22528
|
+
this.minute = time.getMinutes().toString().padStart(2, "0");
|
22529
|
+
this.second = time.getSeconds().toString().padStart(2, "0");
|
22530
|
+
}
|
22531
|
+
}
|
22532
|
+
this.setValidationMessage();
|
22533
|
+
};
|
22534
|
+
this.setAriaInvalid = (validHour, validMinute, validSecond) => {
|
22535
|
+
var _a, _b, _c;
|
22536
|
+
if (this.inputsInOrder.length) {
|
22537
|
+
this.inputsInOrder.forEach((input) => {
|
22538
|
+
input.removeAttribute(this.ARIA_INVALID);
|
22539
|
+
});
|
22540
|
+
if (!validHour) {
|
22541
|
+
(_a = this.hourInputEl) === null || _a === void 0 ? void 0 : _a.setAttribute(this.ARIA_INVALID, "true");
|
22542
|
+
}
|
22543
|
+
if (!validMinute) {
|
22544
|
+
(_b = this.minuteInputEl) === null || _b === void 0 ? void 0 : _b.setAttribute(this.ARIA_INVALID, "true");
|
22545
|
+
}
|
22546
|
+
if (!validSecond) {
|
22547
|
+
(_c = this.secondInputEl) === null || _c === void 0 ? void 0 : _c.setAttribute(this.ARIA_INVALID, "true");
|
22548
|
+
}
|
22549
|
+
if (!(validHour && validMinute && validSecond)) {
|
22550
|
+
this.inputsInOrder.forEach((input) => {
|
22551
|
+
input.setAttribute(this.ARIA_INVALID, "true");
|
22552
|
+
});
|
22553
|
+
}
|
22554
|
+
}
|
22555
|
+
};
|
22556
|
+
this.handleClear = () => {
|
22557
|
+
this.clearInput = true;
|
22558
|
+
if (this.hourInputEl) {
|
22559
|
+
this.hourInputEl.value = "";
|
22560
|
+
}
|
22561
|
+
if (this.minuteInputEl) {
|
22562
|
+
this.minuteInputEl.value = "";
|
22563
|
+
}
|
22564
|
+
if (!this.isHHMMFormat() && this.secondInputEl) {
|
22565
|
+
this.secondInputEl.value = "";
|
22566
|
+
}
|
22567
|
+
this.hour = "";
|
22568
|
+
this.minute = "";
|
22569
|
+
this.second = "";
|
22570
|
+
this.handleTimeChange(true);
|
22571
|
+
this.inputsInOrder.forEach((input) => {
|
22572
|
+
input.classList.remove(this.FIT_TO_VALUE);
|
22573
|
+
this.setPreventInput(input, false);
|
22574
|
+
});
|
22575
|
+
this.clearInput = false;
|
22576
|
+
this.isTimeSetFromKeyboardEvent = false;
|
22577
|
+
this.setValidationMessage();
|
22578
|
+
this.invalidTimeText = "";
|
22579
|
+
if (this.hourInputEl) {
|
22580
|
+
this.hourInputEl.focus();
|
22581
|
+
}
|
22582
|
+
};
|
22583
|
+
this.notifyScreenReaderSelectedTime = () => {
|
22584
|
+
if (this.selectedTime && this.selectedTimeInfoEl) {
|
22585
|
+
if (this.isHHMMFormat()) {
|
22586
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${this.selectedTime
|
22587
|
+
.getHours()
|
22588
|
+
.toString()
|
22589
|
+
.padStart(2, "0")}:${this.selectedTime
|
22590
|
+
.getMinutes()
|
22591
|
+
.toString()
|
22592
|
+
.padStart(2, "0")}`;
|
22593
|
+
}
|
22594
|
+
else {
|
22595
|
+
this.selectedTimeInfoEl.textContent = `Selected time: ${this.selectedTime
|
22596
|
+
.getHours()
|
22597
|
+
.toString()
|
22598
|
+
.padStart(2, "0")}:${this.selectedTime
|
22599
|
+
.getMinutes()
|
22600
|
+
.toString()
|
22601
|
+
.padStart(2, "0")}:${this.selectedTime
|
22602
|
+
.getSeconds()
|
22603
|
+
.toString()
|
22604
|
+
.padStart(2, "0")}`;
|
22605
|
+
}
|
22606
|
+
}
|
22607
|
+
};
|
22608
|
+
this.setFitToValueStyling = (input) => {
|
22609
|
+
if (input.value) {
|
22610
|
+
input.classList.add(this.FIT_TO_VALUE);
|
22611
|
+
}
|
22612
|
+
else {
|
22613
|
+
input.classList.remove(this.FIT_TO_VALUE);
|
22614
|
+
}
|
22615
|
+
};
|
22616
|
+
this.handleHostBlur = () => {
|
22617
|
+
this.removeLabelledBy = false;
|
22618
|
+
this.icBlur.emit({ value: this.selectedTime });
|
22619
|
+
};
|
22620
|
+
this.handleHostFocus = () => {
|
22621
|
+
var _a, _b;
|
22622
|
+
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$/)) {
|
22623
|
+
this.removeLabelledBy = false;
|
22624
|
+
}
|
22625
|
+
else {
|
22626
|
+
this.removeLabelledBy = true;
|
22627
|
+
}
|
22628
|
+
this.icFocus.emit({ value: this.selectedTime });
|
22629
|
+
};
|
22630
|
+
this.handleFormReset = () => {
|
22631
|
+
this.setTime(this.initialValue);
|
22632
|
+
this.setValidationMessage();
|
22633
|
+
this.handleTimeChange(false);
|
22634
|
+
};
|
22635
|
+
this.preventInput = (event, isInputPrevented) => {
|
22636
|
+
const key = event.key;
|
22637
|
+
const input = event.target;
|
22638
|
+
let selectedString;
|
22639
|
+
if (input) {
|
22640
|
+
selectedString = input.value.substring(input.selectionStart || 0, input.selectionEnd || undefined);
|
22641
|
+
}
|
22642
|
+
if (key === "e" ||
|
22643
|
+
key === "." ||
|
22644
|
+
key === "-" ||
|
22645
|
+
(event.key >= "0" &&
|
22646
|
+
event.key <= "9" &&
|
22647
|
+
isInputPrevented &&
|
22648
|
+
!selectedString)) {
|
22649
|
+
event.preventDefault();
|
22650
|
+
}
|
22651
|
+
};
|
22652
|
+
this.moveToNextInput = (currentInput) => {
|
22653
|
+
var _a;
|
22654
|
+
this.preventAutoFormatting = false;
|
22655
|
+
(_a = this.inputsInOrder[this.inputsInOrder.findIndex((input) => input === currentInput) + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
22656
|
+
};
|
22657
|
+
this.moveToPreviousInput = (currentInput) => {
|
22658
|
+
var _a;
|
22659
|
+
this.preventAutoFormatting = false;
|
22660
|
+
(_a = this.inputsInOrder[this.inputsInOrder.findIndex((input) => input === currentInput) - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
22661
|
+
};
|
22662
|
+
this.autocompleteInput = (input) => {
|
22663
|
+
const inputValue = input.value;
|
22664
|
+
if (inputValue.length === 1) {
|
22665
|
+
input.value = `0${inputValue}`;
|
22666
|
+
}
|
22667
|
+
if (input.value) {
|
22668
|
+
this.setInputValue(input);
|
22669
|
+
}
|
22670
|
+
};
|
22671
|
+
this.convertToTime = (hour, minute, second) => {
|
22672
|
+
if (!isEmptyString(hour) &&
|
22673
|
+
!isEmptyString(minute) &&
|
22674
|
+
(this.isHHMMFormat() || !isEmptyString(second))) {
|
22675
|
+
const d = new Date();
|
22676
|
+
d.setHours(+hour, +minute, this.isHHMMFormat() ? 0 : +second, 0);
|
22677
|
+
return d;
|
22678
|
+
}
|
22679
|
+
else {
|
22680
|
+
return null;
|
22681
|
+
}
|
22682
|
+
};
|
22683
|
+
this.setInputsInOrder = () => {
|
22684
|
+
var _a;
|
22685
|
+
this.inputsInOrder = [];
|
22686
|
+
const shadowInputs = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll("input");
|
22687
|
+
if (shadowInputs) {
|
22688
|
+
shadowInputs.forEach((input) => this.inputsInOrder.push(input));
|
22689
|
+
}
|
22690
|
+
};
|
22691
|
+
this.updateInputValues = (hour, minute, second) => {
|
22692
|
+
if (this.hourInputEl && this.minuteInputEl && this.secondInputEl) {
|
22693
|
+
this.hourInputEl.value = hour;
|
22694
|
+
this.minuteInputEl.value = minute;
|
22695
|
+
this.secondInputEl.value = second;
|
22696
|
+
}
|
22697
|
+
};
|
22698
|
+
this.removeAriaLabelledBy = () => {
|
22699
|
+
var _a;
|
22700
|
+
(_a = this.inputCompContainerEl) === null || _a === void 0 ? void 0 : _a.removeAttribute(this.ARIA_LABELLED_BY);
|
22701
|
+
};
|
22702
|
+
this.setAriaLabelledBy = () => {
|
22703
|
+
var _a, _b, _c, _d;
|
22704
|
+
if (this.disabled &&
|
22705
|
+
((_a = this.inputCompContainerEl) === null || _a === void 0 ? void 0 : _a.getAttribute(this.ARIA_LABELLED_BY))) {
|
22706
|
+
this.removeAriaLabelledBy();
|
22707
|
+
return;
|
22708
|
+
}
|
22709
|
+
if (this.disabled) {
|
22710
|
+
return;
|
22711
|
+
}
|
22712
|
+
const labelEl = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("label");
|
22713
|
+
const labelId = `${this.inputId}-label`;
|
22714
|
+
if (labelEl !== null && labelEl !== undefined) {
|
22715
|
+
labelEl.id = labelId;
|
22716
|
+
}
|
22717
|
+
const hasValidation = !isEmptyString(this.validationStatus) ||
|
22718
|
+
!isEmptyString(this.invalidTimeText);
|
22719
|
+
const labelledBy = `${(_c = labelEl === null || labelEl === void 0 ? void 0 : labelEl.id) !== null && _c !== void 0 ? _c : ""} ${this.screenReaderInfoId} ${getInputDescribedByText(this.el, this.inputId, this.helperText !== "" && this.helperText !== this.defaultHelperText, hasValidation)} ${this.selectedTime ? this.selectedTimeInfoId : ""} ${this.assistiveHintId}`;
|
22720
|
+
(_d = this.inputCompContainerEl) === null || _d === void 0 ? void 0 : _d.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
|
22721
|
+
};
|
22722
|
+
this.getInputsInOrder = () => {
|
22723
|
+
const timeParts = this.timeFormat.split(":");
|
22724
|
+
return timeParts.map((part) => {
|
22725
|
+
switch (part.substring(0, 1)) {
|
22726
|
+
case "H":
|
22727
|
+
return (hAsync("input", { class: "hour-input", id: "hour-input", ref: (el) => (this.hourInputEl = el), "aria-label": "hour", placeholder: "HH", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventHourInput) }));
|
22728
|
+
case "M":
|
22729
|
+
return (hAsync("input", { id: "minute-input", class: "minute-input", ref: (el) => (this.minuteInputEl = el), "aria-label": "minute", placeholder: "MM", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventMinuteInput) }));
|
22730
|
+
case "S":
|
22731
|
+
if (!this.isHHMMFormat()) {
|
22732
|
+
return (hAsync("input", { id: "second-input", class: "second-input", ref: (el) => (this.secondInputEl = el), "aria-label": "second", placeholder: "SS", disabled: this.disabled, inputmode: "number", pattern: "[0-9]*", onPaste: this.handlePaste, onKeyDown: (event) => this.handleKeyDown(event, this.preventSecondInput) }));
|
22733
|
+
}
|
22734
|
+
return null;
|
22735
|
+
default:
|
22736
|
+
return null;
|
22737
|
+
}
|
22738
|
+
});
|
22739
|
+
};
|
22740
|
+
this.getDescOfInputsOrder = () => {
|
22741
|
+
return "hour, minute, and second";
|
22742
|
+
};
|
22743
|
+
this.getScreenReaderInfo = (validationStatus) => {
|
22744
|
+
let inputDescriptors = "";
|
22745
|
+
if (this.required) {
|
22746
|
+
inputDescriptors += "required";
|
22747
|
+
}
|
22748
|
+
if (validationStatus === IcInformationStatus.Error) {
|
22749
|
+
inputDescriptors += " invalid data";
|
22750
|
+
}
|
22751
|
+
return inputDescriptors === "" ? "" : inputDescriptors + ", ";
|
22752
|
+
};
|
22753
|
+
this.notifyScreenReader = (input) => {
|
22754
|
+
var _a;
|
22755
|
+
const liveRegion = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("#live-region");
|
22756
|
+
if (liveRegion) {
|
22757
|
+
liveRegion.textContent = `${input.value}, ${input.getAttribute(this.ARIA_LABEL)}`;
|
22758
|
+
}
|
22759
|
+
};
|
22760
|
+
this.handlePaste = (event) => {
|
22761
|
+
var _a;
|
22762
|
+
event.preventDefault();
|
22763
|
+
const pastedValue = ((_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData("Text")) || "";
|
22764
|
+
const isValidTime = this.isPastedStringTimeValid(pastedValue);
|
22765
|
+
this.setPastedValueAndValidation(isValidTime, pastedValue, event);
|
22766
|
+
};
|
22767
|
+
this.handleClearFocus = () => {
|
22768
|
+
this.removeLabelledBy = true;
|
22769
|
+
this.clearButtonFocused = true;
|
22770
|
+
this.isTimeSetFromKeyboardEvent = true;
|
22771
|
+
};
|
22772
|
+
this.handleClearBlur = (ev) => {
|
22773
|
+
this.clearButtonFocused = false;
|
22774
|
+
this.isTimeSetFromKeyboardEvent = true;
|
22775
|
+
const relatedTarget = ev.relatedTarget;
|
22776
|
+
if ((relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id) === "clock-button") {
|
22777
|
+
this.removeLabelledBy = false;
|
22778
|
+
return;
|
22779
|
+
}
|
22780
|
+
if (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.id.match(/(minute|second)-input$/)) {
|
22781
|
+
this.removeLabelledBy = false;
|
22782
|
+
return;
|
22783
|
+
}
|
22784
|
+
this.removeLabelledBy = true;
|
22785
|
+
};
|
22786
|
+
this.handleClockFocus = () => {
|
22787
|
+
this.clockFocused = true;
|
22788
|
+
};
|
22789
|
+
this.handleClockBlur = () => {
|
22790
|
+
this.clockFocused = false;
|
22791
|
+
};
|
22792
|
+
this.isPastedStringTimeValid = (value) => {
|
22793
|
+
if (this.isHHMMFormat()) {
|
22794
|
+
if (/^\d{2}:\d{2}$/.test(value)) {
|
22795
|
+
return value;
|
22796
|
+
}
|
22797
|
+
}
|
22798
|
+
else {
|
22799
|
+
if (/^\d{2}:\d{2}:\d{2}$/.test(value)) {
|
22800
|
+
return value;
|
22801
|
+
}
|
22802
|
+
if (/^\d{2}:\d{2}:\d{2}Z$/.test(value)) {
|
22803
|
+
return value.replace("Z", "");
|
22804
|
+
}
|
22805
|
+
const isoMatch = value.match(/T(\d{2}:\d{2}:\d{2})/);
|
22806
|
+
if (isoMatch) {
|
22807
|
+
return isoMatch[1];
|
22808
|
+
}
|
22809
|
+
}
|
22810
|
+
return false;
|
22811
|
+
};
|
22812
|
+
this.setPastedValueAndValidation = (isValidTime, pastedValue, event) => {
|
22813
|
+
if (isValidTime) {
|
22814
|
+
const timeParts = isValidTime.split(":");
|
22815
|
+
this.inputsInOrder.forEach((input, index) => {
|
22816
|
+
input.classList.add(this.FIT_TO_VALUE);
|
22817
|
+
const timeValue = timeParts[index] || "";
|
22818
|
+
input.value = timeValue.slice(0, 2);
|
22819
|
+
this.setInputValue(input);
|
22820
|
+
this.autocompleteInput(input);
|
22821
|
+
});
|
22822
|
+
if (this.isHHMMFormat() && this.second !== "") {
|
22823
|
+
this.second = "";
|
22824
|
+
}
|
22825
|
+
}
|
22826
|
+
else {
|
22827
|
+
const pasted = pastedValue.trim();
|
22828
|
+
if ((pasted.length === 1 || pasted.length === 2) && isNumeric(pasted)) {
|
22829
|
+
this.setInputPasteValue(event.target, pasted);
|
22830
|
+
this.setInputValue(event.target);
|
22831
|
+
}
|
22832
|
+
else {
|
22833
|
+
this.invalidTimeText = `Please paste a valid ${event.target.getAttribute(this.ARIA_LABEL)}`;
|
22834
|
+
this.validationStatus = IcInformationStatus.Error;
|
22835
|
+
}
|
22836
|
+
}
|
22837
|
+
};
|
22838
|
+
}
|
22839
|
+
watchInputHandler() {
|
22840
|
+
if (this.emitTimePartChange &&
|
22841
|
+
!this.externalSetTime &&
|
22842
|
+
!this.clearInput &&
|
22843
|
+
!(this.hour && this.minute && this.second) &&
|
22844
|
+
this.selectedTime === null) {
|
22845
|
+
this.emitIcChange(this.selectedTime);
|
22846
|
+
}
|
22847
|
+
}
|
22848
|
+
watchDisabledHandler() {
|
22849
|
+
removeDisabledFalse(this.disabled, this.el);
|
22850
|
+
}
|
22851
|
+
watchMaxHandler() {
|
22852
|
+
this.maxTime = this.parseTime(this.max);
|
22853
|
+
}
|
22854
|
+
watchMinHandler() {
|
22855
|
+
this.minTime = this.parseTime(this.min);
|
22856
|
+
}
|
22857
|
+
watchRequiredHandler() {
|
22858
|
+
var _a, _b;
|
22859
|
+
const labelEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("label");
|
22860
|
+
if (this.required) {
|
22861
|
+
const asteriskSpan = document.createElement("span");
|
22862
|
+
asteriskSpan.setAttribute("id", "asterisk-span");
|
22863
|
+
asteriskSpan.setAttribute("aria-hidden", "true");
|
22864
|
+
asteriskSpan.textContent = " *";
|
22865
|
+
labelEl === null || labelEl === void 0 ? void 0 : labelEl.appendChild(asteriskSpan);
|
22866
|
+
}
|
22867
|
+
else {
|
22868
|
+
const asteriskSpan = (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("#asterisk-span");
|
22869
|
+
if (asteriskSpan) {
|
22870
|
+
asteriskSpan.remove();
|
22871
|
+
}
|
22872
|
+
}
|
22873
|
+
}
|
22874
|
+
disconnectedCallback() {
|
22875
|
+
removeFormResetListener(this.el, this.handleFormReset);
|
22876
|
+
}
|
22877
|
+
componentWillLoad() {
|
22878
|
+
this.defaultHelperText = `Use format ${this.timeFormat}`;
|
22879
|
+
if (isEmptyString(this.helperText))
|
22880
|
+
this.helperText = this.defaultHelperText;
|
22881
|
+
if (this.value) {
|
22882
|
+
this.externalSetTime = true;
|
22883
|
+
this.setTime(this.value);
|
22884
|
+
}
|
22885
|
+
this.screenReaderInfoId = `${this.inputId}-screen-reader-info`;
|
22886
|
+
this.assistiveHintId = `${this.inputId}-assistive-hint`;
|
22887
|
+
this.selectedTimeInfoId = `${this.inputId}-selected-time-info`;
|
22888
|
+
addFormResetListener(this.el, this.handleFormReset);
|
22889
|
+
removeDisabledFalse(this.disabled, this.el);
|
22890
|
+
}
|
22891
|
+
componentDidLoad() {
|
22892
|
+
this.setInputsInOrder();
|
22893
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Time Input");
|
22894
|
+
if (this.value) {
|
22895
|
+
this.updateInputValues(this.hour, this.minute, this.second);
|
22896
|
+
this.inputsInOrder.forEach((input) => {
|
22897
|
+
input.classList.add(this.FIT_TO_VALUE);
|
22898
|
+
});
|
22899
|
+
}
|
22900
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
22901
|
+
if (this.value) {
|
22902
|
+
this.notifyScreenReaderSelectedTime();
|
22903
|
+
}
|
22904
|
+
this.inputsInOrder.forEach((input) => {
|
22905
|
+
input.addEventListener("input", this.handleInput);
|
22906
|
+
input.addEventListener("focus", this.handleFocus);
|
22907
|
+
input.addEventListener("blur", this.handleBlur);
|
22908
|
+
});
|
22909
|
+
this.watchRequiredHandler();
|
22910
|
+
}
|
22911
|
+
componentWillUpdate() {
|
22912
|
+
if (isEmptyString(this.helperText))
|
22913
|
+
this.helperText = this.defaultHelperText;
|
22914
|
+
if (!this.isTimeSetFromKeyboardEvent)
|
22915
|
+
this.setTime(this.value);
|
22916
|
+
this.setAriaInvalid(this.isValidHour, this.isValidMinute, this.isValidSecond);
|
22917
|
+
this.handleTimeChange(false);
|
22918
|
+
this.isTimeSetFromKeyboardEvent = false;
|
22919
|
+
}
|
22920
|
+
componentDidRender() {
|
22921
|
+
if (this.removeLabelledBy) {
|
22922
|
+
this.removeAriaLabelledBy();
|
22923
|
+
return;
|
22924
|
+
}
|
22925
|
+
this.setAriaLabelledBy();
|
22926
|
+
}
|
22927
|
+
/**
|
22928
|
+
* Returns the value as a Date object
|
22929
|
+
* @returns Date
|
22930
|
+
*/
|
22931
|
+
async getTime() {
|
22932
|
+
return this.selectedTime;
|
22933
|
+
}
|
22934
|
+
/**
|
22935
|
+
* @internal Used to enable other components to invoke an IcChange event from the input.
|
22936
|
+
*/
|
22937
|
+
async triggerIcChange(t) {
|
22938
|
+
this.externalSetTime = true;
|
22939
|
+
this.setTime(t);
|
22940
|
+
this.emitIcChange(t);
|
22941
|
+
this.externalSetTime = false;
|
22942
|
+
}
|
22943
|
+
render() {
|
22944
|
+
const { inputId, label, disabled, helperText, hideHelperText, hideLabel, showClearButton, showClockButton, size, theme, } = this;
|
22945
|
+
const hasCustomValidation = !isEmptyString(this.validationStatus);
|
22946
|
+
const validationStatus = hasCustomValidation
|
22947
|
+
? this.validationStatus
|
22948
|
+
: !isEmptyString(this.invalidTimeText)
|
22949
|
+
? IcInformationStatus.Error
|
22950
|
+
: "";
|
22951
|
+
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
22952
|
+
renderHiddenInput(true, this.el, this.name, this.convertToTime(this.hour, this.minute, this.second), this.disabled);
|
22953
|
+
const showDivider = !!(showClearButton &&
|
22954
|
+
!(isEmptyString(this.hour) &&
|
22955
|
+
isEmptyString(this.minute) &&
|
22956
|
+
isEmptyString(this.second)));
|
22957
|
+
return (hAsync(Host, { key: 'cf8b05ab0ccc0a0a779296e4dd3ba52375547b13', class: {
|
22958
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
22959
|
+
[`ic-time-input-disabled`]: disabled,
|
22960
|
+
[`ic-time-input-${size}`]: true,
|
22961
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: 'b104968d5b191f040358a7e800f11cb6dd036407', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: 'fa0eaeef4aab6aef24b830e466ba87d68eb84b84', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: 'e4548928534459ff788ff576483b560cf90fed53', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: '6f119c460880a9adb8661309c3a59cfee061ae7c', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: 'bd5ce20dab45d2514cd4219eee0d1645596e5e6e', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'e3d4a1e518f7bcb1b35ee065b5f038f9f6f3ffe7', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '396b05aa89aa0e24a1853cc5de20abb5341c49e5', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '2ac49a3454ce8dbabb546e54af197f0a66840499', class: "input-container" }, hAsync("div", { key: '6917d370b61c997d888c133bb27d5fa8f94a79c0', class: "time-inputs" }, [
|
22962
|
+
this.getInputsInOrder()[0],
|
22963
|
+
":",
|
22964
|
+
this.getInputsInOrder()[1],
|
22965
|
+
!this.isHHMMFormat()
|
22966
|
+
? [":", this.getInputsInOrder()[2]]
|
22967
|
+
: null,
|
22968
|
+
]), hAsync("div", { key: 'f09f3442355e75170fb1916727fdcac001df885d', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: '27173fcbdcd13798c4adc66eda9469bc471693ea', id: "clear-button", "aria-label": "Clear input", class: {
|
22969
|
+
["clear-button"]: true,
|
22970
|
+
["hidden"]: isEmptyString(this.hour) &&
|
22971
|
+
isEmptyString(this.minute) &&
|
22972
|
+
isEmptyString(this.second),
|
22973
|
+
}, disabled: this.disabled, innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearFocus, onBlur: this.handleClearBlur, variant: "icon-tertiary", theme: this.clearButtonFocused ? "light" : "dark", size: size })), showClockButton && (hAsync("div", { key: '606a05c923fc4b95c21d0418be14168982117938', class: "show-clock-button-wrapper" }, hAsync("div", { key: '4b9b2d37ed3a9661615685f3b077ac244295fbd1', class: { divider: showDivider, [size]: true } }), hAsync("ic-button", { key: 'ab6ec2ca4b1442a23834e1a514800cd0f77c92d5', 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" })))))), hAsync("span", { key: '1695846e5d626056f5a0e372c8513fcf0001f0b9', id: this.selectedTimeInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '34f41adff4bc3642d21014b85e525b6f80814bb6', ref: (el) => (this.selectedTimeInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidTimeText)) && (hAsync("ic-input-validation", { key: '4b9326e9e9df98698c2c6643262122658a1434de', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidTimeText, for: inputId })))));
|
22974
|
+
}
|
22975
|
+
static get delegatesFocus() { return true; }
|
22976
|
+
get el() { return getElement(this); }
|
22977
|
+
static get watchers() { return {
|
22978
|
+
"hour": ["watchInputHandler"],
|
22979
|
+
"minute": ["watchInputHandler"],
|
22980
|
+
"second": ["watchInputHandler"],
|
22981
|
+
"disabled": ["watchDisabledHandler"],
|
22982
|
+
"max": ["watchMaxHandler"],
|
22983
|
+
"min": ["watchMinHandler"],
|
22984
|
+
"required": ["watchRequiredHandler"]
|
22985
|
+
}; }
|
22986
|
+
static get style() { return IcTimeInputStyle0; }
|
22987
|
+
static get cmpMeta() { return {
|
22988
|
+
"$flags$": 25,
|
22989
|
+
"$tagName$": "ic-time-input",
|
22990
|
+
"$members$": {
|
22991
|
+
"disabled": [4],
|
22992
|
+
"disableTimes": [16],
|
22993
|
+
"emitTimePartChange": [4, "emit-time-part-change"],
|
22994
|
+
"helperText": [1025, "helper-text"],
|
22995
|
+
"hideHelperText": [4, "hide-helper-text"],
|
22996
|
+
"hideLabel": [4, "hide-label"],
|
22997
|
+
"inputId": [1, "input-id"],
|
22998
|
+
"invalidTimeMessage": [1, "invalid-time-message"],
|
22999
|
+
"label": [1],
|
23000
|
+
"max": [1],
|
23001
|
+
"min": [1],
|
23002
|
+
"name": [1],
|
23003
|
+
"required": [4],
|
23004
|
+
"showClearButton": [4, "show-clear-button"],
|
23005
|
+
"showClockButton": [4, "show-clock-button"],
|
23006
|
+
"size": [1],
|
23007
|
+
"theme": [1],
|
23008
|
+
"timeFormat": [1, "time-format"],
|
23009
|
+
"timePeriod": [1, "time-period"],
|
23010
|
+
"value": [1025],
|
23011
|
+
"validationStatus": [1025, "validation-status"],
|
23012
|
+
"validationText": [1, "validation-text"],
|
23013
|
+
"invalidTimeText": [32],
|
23014
|
+
"clockFocused": [32],
|
23015
|
+
"clearButtonFocused": [32],
|
23016
|
+
"removeLabelledBy": [32],
|
23017
|
+
"hour": [32],
|
23018
|
+
"minute": [32],
|
23019
|
+
"second": [32],
|
23020
|
+
"getTime": [64],
|
23021
|
+
"triggerIcChange": [64]
|
23022
|
+
},
|
23023
|
+
"$listeners$": undefined,
|
23024
|
+
"$lazyBundleId$": "-",
|
23025
|
+
"$attrsToReflect$": []
|
23026
|
+
}; }
|
23027
|
+
}
|
23028
|
+
|
23029
|
+
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-radius:var(--ic-border-radius)}.toast-icon-container{height:100%;display:flex;align-items:center}.divider{height:100%;width:var(--ic-space-xs);position:absolute;border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs)}.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)}.toast-icon,::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}:host([variant=\"neutral\"]) .toast-icon svg,::slotted(svg){fill:var(--ic-toast-icon-neutral)}:host([variant=\"info\"]) .toast-icon svg{fill:var(--ic-toast-icon-info)}:host([variant=\"warning\"]) .toast-icon svg{fill:var(--ic-toast-icon-warning)}:host([variant=\"error\"]) .toast-icon svg{fill:var(--ic-toast-icon-error)}:host([variant=\"success\"]) .toast-icon svg{fill:var(--ic-toast-icon-success)}.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}}";
|
23030
|
+
var IcToastStyle0 = icToastCss;
|
23031
|
+
|
23032
|
+
const AUTO_DISMISS_TIMER_REFRESH_RATE_MS = 1000;
|
23033
|
+
const TOAST_HEADING_CHAR_LIMIT = 70;
|
23034
|
+
const TOAST_MESSAGE_CHAR_LIMIT = 140;
|
23035
|
+
/**
|
23036
|
+
* @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type.
|
23037
|
+
* @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant.
|
23038
|
+
*/
|
23039
|
+
class Toast {
|
23040
|
+
constructor(hostRef) {
|
23041
|
+
registerInstance(this, hostRef);
|
23042
|
+
this.icDismiss = createEvent(this, "icDismiss", 7);
|
23043
|
+
this.interactiveElements = [];
|
23044
|
+
this.timerProgress = 100;
|
23045
|
+
this.visible = false;
|
23046
|
+
/**
|
23047
|
+
* If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS)
|
23048
|
+
* (NOTE: Has a minimum value of `5000ms`)
|
23049
|
+
*/
|
23050
|
+
this.autoDismissTimeout = 5000;
|
23051
|
+
/**
|
23052
|
+
* If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component
|
23053
|
+
*/
|
23054
|
+
this.dismissButtonAriaLabel = "dismiss";
|
23055
|
+
/**
|
23056
|
+
* How the toast will be dismissed. If manual will display a dismiss button.
|
23057
|
+
*/
|
23058
|
+
this.dismissMode = "manual";
|
23059
|
+
this.dismissAction = () => {
|
23060
|
+
this.icDismiss.emit();
|
23061
|
+
};
|
23062
|
+
this.handleProgressChange = () => {
|
23063
|
+
this.timerProgress -=
|
23064
|
+
(AUTO_DISMISS_TIMER_REFRESH_RATE_MS / this.autoDismissTimeout) * 100;
|
23065
|
+
};
|
23066
|
+
this.onFocus = () => {
|
23067
|
+
if (this.focusInteractiveElement) {
|
23068
|
+
this.isManual = true;
|
23069
|
+
}
|
23070
|
+
};
|
23071
|
+
this.onBlur = () => {
|
23072
|
+
this.handleTimer({ type: "mouseleave" });
|
23073
|
+
};
|
23074
|
+
}
|
23075
|
+
dismissModeChangeHandler(newValue) {
|
23076
|
+
this.isManual = newValue === "manual";
|
23077
|
+
}
|
23078
|
+
disconnectedCallback() {
|
23079
|
+
window.clearTimeout(this.dismissTimeout);
|
23080
|
+
window.clearInterval(this.timerRefreshInterval);
|
23081
|
+
}
|
23082
|
+
componentWillLoad() {
|
23083
|
+
var _a, _b;
|
23084
|
+
this.handleLongText(this.heading.length > TOAST_HEADING_CHAR_LIMIT, !!this.message && ((_a = this.message) === null || _a === void 0 ? void 0 : _a.length) > TOAST_MESSAGE_CHAR_LIMIT);
|
23085
|
+
if (this.autoDismissTimeout < 5000)
|
23086
|
+
this.autoDismissTimeout = 5000;
|
23087
|
+
if (isSlotUsed$1(this.el, "action"))
|
23088
|
+
this.dismissMode = "manual";
|
23089
|
+
this.isManual = this.dismissMode === "manual";
|
23090
|
+
if (isSlotUsed$1(this.el, "neutral-icon"))
|
23091
|
+
this.variant = "neutral";
|
23092
|
+
if (this.variant === "neutral") {
|
23093
|
+
this.neutralVariantLabel =
|
23094
|
+
(_b = this.neutralIconAriaLabel) !== null && _b !== void 0 ? _b : VARIANT_ICONS[this.variant].ariaLabel;
|
23095
|
+
}
|
23096
|
+
if (this.isManual) {
|
23097
|
+
const toastMessage = isPropDefined$1(this.message)
|
23098
|
+
? `. ${this.message}`
|
21974
23099
|
: "";
|
21975
23100
|
this.el.setAttribute("aria-label", this.variant
|
21976
23101
|
? this.neutralVariantLabel || VARIANT_ICONS[this.variant].ariaLabel
|
@@ -22106,13 +23231,13 @@ class Toast {
|
|
22106
23231
|
}
|
22107
23232
|
render() {
|
22108
23233
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
22109
|
-
return (hAsync(Host, { key: '
|
23234
|
+
return (hAsync(Host, { key: '72285c4f90a5364563549c3991a56ea15a7f09b0', class: { ["ic-toast-hidden"]: !visible }, tabindex: "0", onFocus: this.onFocus, onBlur: this.onBlur, role: isManual ? "dialog" : "alert", "aria-live": isManual ? null : "polite" }, hAsync("div", { key: '165ac4c4776633f826dfb4da11ec950ab5ee1d74', class: "container" }, variant && visible && (hAsync("div", { key: '646d6326faeb131c256375eaa7a422862e603c87', class: "toast-icon-container" }, hAsync("div", { key: '1a679a2ad07206ce49af54f099aab135db3dc863', class: {
|
22110
23235
|
["divider"]: true,
|
22111
23236
|
[`divider-${variant}`]: true,
|
22112
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
23237
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: 'faec1abb053c98b482f2cbbc3b6cbb097bc7cfca', class: {
|
22113
23238
|
["toast-content"]: true,
|
22114
23239
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
22115
|
-
} }, hAsync("div", { key: '
|
23240
|
+
} }, hAsync("div", { key: '66a53a2d8f2433d55b353b8b19f487007baea78a', class: "toast-text" }, hAsync("ic-typography", { key: 'af86eaaef197aff5faae041b32c3823ffcbb785b', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: '9a04f32939a2739826207d6b3df6796eb0d424ac', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '9ba710ed859c1dd9e8a6ed448207890faad5d706' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '68bf4d05f52322d6d056a583194e21b2dcadc2d1', class: "toast-action-container" }, hAsync("slot", { key: '39524496fb13e55b7828f5c6d70172ffe80ebae8', 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", "aria-label": dismissButtonAriaLabel })))));
|
22116
23241
|
}
|
22117
23242
|
get el() { return getElement(this); }
|
22118
23243
|
static get watchers() { return {
|
@@ -22184,7 +23309,7 @@ class ToastRegion {
|
|
22184
23309
|
}
|
22185
23310
|
}
|
22186
23311
|
render() {
|
22187
|
-
return hAsync("slot", { key: '
|
23312
|
+
return hAsync("slot", { key: '304f72b97b4c6fe1ff998e46f6d2daf80dca9c18' });
|
22188
23313
|
}
|
22189
23314
|
get el() { return getElement(this); }
|
22190
23315
|
static get watchers() { return {
|
@@ -22202,7 +23327,7 @@ class ToastRegion {
|
|
22202
23327
|
}; }
|
22203
23328
|
}
|
22204
23329
|
|
22205
|
-
const icToggleButtonCss = "/*! 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{--toggle-button-border:var(--ic-toggle-button-unselected-border);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text);--toggle-button-border-hover:var(--ic-toggle-button-unselected-border-hover);--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-hover\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-pressed\n )}:host(:not(.expand-toggle-group-child)){display:inline-block;border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--toggle-button-border)}:host(.ic-toggle-button-full-width:not(.expand-toggle-group-child)){width:100%}:host(.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border);--toggle-button-text-colour:var(--ic-toggle-button-selected-text);--toggle-button-border-hover:var(--ic-toggle-button-selected-border-hover);--toggle-button-text-colour-hover:var(--ic-toggle-button-selected-text);--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed\n );--toggle-button-text-colour-active:var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-monochrome){--toggle-button-border:var(--ic-toggle-button-unselected-border-monochrome);--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-hover:var(\n --ic-toggle-button-unselected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-monochrome);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-monochrome);--toggle-button-border-hover:var(\n --ic-toggle-button-selected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-selected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-selected-text-monochrome\n )}:host(.ic-toggle-button-disabled){--toggle-button-border:var(--ic-toggle-button-unselected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-unselected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-disabled-monochrome\n )}:host(.ic-toggle-button-disabled.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-selected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-selected-text-disabled-monochrome\n )}:host(.expand-toggle-group-child) ::part(button){width:100%}:host(.expand-toggle-group-child:not(.ic-toggle-button-loading)) ::part(button){min-height:inherit;height:auto}:host ic-button{--icon-width:var(--ic-space-lg);--icon-height:var(--ic-space-lg)}:host(.expand-toggle-group-child) ic-button{min-width:100%;min-height:100%;height:100%}:host(.expand-toggle-group-child) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-default),\n var(--ic-border-focus)}:host(.expand-toggle-group-child.ic-toggle-button-light) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-dark) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-monochrome-dark),\n var(--ic-border-focus)}:host(:focus){z-index:1}:host ::part(button){border:none;color:var(--toggle-button-text-colour)}:host ::part(button):hover{color:var(--toggle-button-text-colour-hover);background-color:var(--ic-toggle-button-unselected-background-hover)}:host ::part(button):active{color:var(--toggle-button-text-colour-active);background-color:var(--ic-toggle-button-unselected-background-pressed)}:host ::part(button):focus{border:var(--ic-border-width) solid var(--toggle-button-border)}:host ::part(button):hover:focus{border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host ::part(button):active:focus{border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(.ic-toggle-button-disabled) ::part(button){color:var(--toggle-button-text-colour)}:host(:not(.expand-toggle-group-child)):has(ic-button:hover){border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host(:not(.expand-toggle-group-child)):has(ic-button:active){border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(:not(.expand-toggle-group-child).ic-toggle-button-disabled){border:var(--ic-border-width) dashed var(--toggle-button-border)}:host(.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background);box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-border-focus),\n var(--ic-border-focus)}:host(.ic-toggle-button-checked) ::part(button):hover{background-color:var(--ic-toggle-button-selected-background-hover)}:host(.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-checked) ::part(button):active{background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-monochrome) ::part(button):hover{background-color:var(\n --ic-toggle-button-unselected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome) ::part(button):active{background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background-monochrome)}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):hover{background-color:var(\n --ic-toggle-button-selected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active{background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text),\n var(--ic-border-focus)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button){background-color:transparent}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled-monochrome) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-icon) ::part(button){height:calc(var(--ic-space-xl) + var(--ic-space-xs));width:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-toggle-button-icon) ::part(button):active{background-color:var(--ic-action-default-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-dark) ::part(button):active{background-color:var(--ic-action-dark-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-light) ::part(button):active{background-color:var(--ic-action-light-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-small) ::part(button){height:var(--ic-space-xl);width:var(--ic-space-xl)}:host(.ic-toggle-button-icon.ic-toggle-button-large) ::part(button){height:var(--ic-space-xxl);width:var(--ic-space-xxl)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed\n );background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed\n );background-color:var(--ic-toggle-button-unselected-background-pressed)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-loading-bar)}:host(.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-selected-loading-bar)}:host(.ic-toggle-button-checked.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}@media (forced-colors: active){:host(.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-checked) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-disabled) ::part(button){background-color:GrayText}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button):hover{--loading-button-background:Highlight}}";
|
23330
|
+
const icToggleButtonCss = "/*! 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{--toggle-button-border:var(--ic-toggle-button-unselected-border);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text);--toggle-button-border-hover:var(--ic-toggle-button-unselected-border-hover);--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-hover\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-pressed\n )}:host(:not(.expand-toggle-group-child)){display:inline-block;border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--toggle-button-border)}:host(.ic-toggle-button-full-width:not(.expand-toggle-group-child)){width:100%}:host(.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border);--toggle-button-text-colour:var(--ic-toggle-button-selected-text);--toggle-button-border-hover:var(--ic-toggle-button-selected-border-hover);--toggle-button-text-colour-hover:var(--ic-toggle-button-selected-text);--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed\n );--toggle-button-text-colour-active:var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-monochrome){--toggle-button-border:var(--ic-toggle-button-unselected-border-monochrome);--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-hover:var(\n --ic-toggle-button-unselected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-unselected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-unselected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-unselected-text-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-monochrome);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-monochrome);--toggle-button-border-hover:var(\n --ic-toggle-button-selected-border-hover-monochrome\n );--toggle-button-text-colour-hover:var(\n --ic-toggle-button-selected-text-monochrome\n );--toggle-button-border-active:var(\n --ic-toggle-button-selected-border-pressed-monochrome\n );--toggle-button-text-colour-active:var(\n --ic-toggle-button-selected-text-monochrome\n )}:host(.ic-toggle-button-disabled){--toggle-button-border:var(--ic-toggle-button-unselected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-unselected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-unselected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-unselected-text-disabled-monochrome\n )}:host(.ic-toggle-button-disabled.ic-toggle-button-checked){--toggle-button-border:var(--ic-toggle-button-selected-border-disabled);--toggle-button-text-colour:var(--ic-toggle-button-selected-text-disabled)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome){--toggle-button-border:var(\n --ic-toggle-button-selected-border-disabled-monochrome\n );--toggle-button-text-colour:var(\n --ic-toggle-button-selected-text-disabled-monochrome\n )}:host(.expand-toggle-group-child) ::part(button){width:100%}:host(.expand-toggle-group-child:not(.ic-toggle-button-loading)) ::part(button){min-height:inherit;height:auto}:host ic-button{--icon-width:var(--ic-space-lg);--icon-height:var(--ic-space-lg)}:host(.expand-toggle-group-child) ic-button{min-width:100%;min-height:100%;height:100%}:host(.expand-toggle-group-child) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-default),\n var(--ic-border-focus)}:host(.expand-toggle-group-child.ic-toggle-button-light) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-dark) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs) var(--ic-action-monochrome-dark),\n var(--ic-border-focus)}:host(:focus){z-index:1}:host ::part(button){border:none;color:var(--toggle-button-text-colour)}:host ::part(button):hover{color:var(--toggle-button-text-colour-hover);background-color:var(--ic-toggle-button-unselected-background-hover)}:host ::part(button):active{color:var(--toggle-button-text-colour-active);background-color:var(--ic-toggle-button-unselected-background-pressed)}:host ::part(button):focus{border:var(--ic-border-width) solid var(--toggle-button-border)}:host ::part(button):hover:focus{border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host ::part(button):active:focus{border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(.ic-toggle-button-disabled) ::part(button){color:var(--toggle-button-text-colour)}:host(:not(.expand-toggle-group-child)):has(ic-button:hover){border:var(--ic-border-width) solid var(--toggle-button-border-hover)}:host(:not(.expand-toggle-group-child)):has(ic-button:active){border:var(--ic-border-width) solid var(--toggle-button-border-active)}:host(:not(.expand-toggle-group-child).ic-toggle-button-disabled){border:var(--ic-border-width) dashed var(--toggle-button-border)}:host(.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background);box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text)}:host(.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-border-focus),\n var(--ic-border-focus)}:host(.ic-toggle-button-checked) ::part(button):hover{background-color:var(--ic-toggle-button-selected-background-hover)}:host(.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-checked) ::part(button):active{background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-monochrome) ::part(button):hover{background-color:var(\n --ic-toggle-button-unselected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome) ::part(button):active{background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button){background-color:var(--ic-toggle-button-selected-background-monochrome)}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):hover{background-color:var(\n --ic-toggle-button-selected-background-hover-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active,:host(.ic-toggle-button-icon.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):active{background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-monochrome.ic-toggle-button-checked) ::part(button):focus{box-shadow:inset 0 0 0 var(--ic-space-xxxs)\n var(--ic-toggle-button-selected-text),\n var(--ic-border-focus)}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button){background-color:transparent}:host(.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button),:host(.ic-toggle-button-icon.ic-toggle-button-disabled.ic-toggle-button-checked.ic-toggle-button-monochrome) ::part(button)::before{background-image:radial-gradient(\n var(--ic-toggle-button-selected-background-disabled-monochrome) 95%,\n white 20%\n );background-repeat:no-repeat}:host(.ic-toggle-button-icon) ::part(button){height:calc(var(--ic-space-xl) + var(--ic-space-xs));width:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-toggle-button-icon) ::part(button):active{background-color:var(--ic-action-default-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-dark) ::part(button):active{background-color:var(--ic-action-dark-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-light) ::part(button):active{background-color:var(--ic-action-light-bg-pressed)}:host(.ic-toggle-button-icon.ic-toggle-button-small) ::part(button){height:var(--ic-space-xl);width:var(--ic-space-xl)}:host(.ic-toggle-button-icon.ic-toggle-button-large) ::part(button){height:var(--ic-space-xxl);width:var(--ic-space-xxl)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed\n );background-color:var(--ic-toggle-button-selected-background-pressed)}:host(.ic-toggle-button-loading) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed\n );background-color:var(--ic-toggle-button-unselected-background-pressed)}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-loading-bar)}:host(.ic-toggle-button-loading) ::part(ic-loading-container){--inner-color:var(--ic-toggle-button-selected-loading-bar)}:host(.ic-toggle-button-checked.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-selected-background-pressed-monochrome\n )}:host(.ic-toggle-button-loading.ic-toggle-button-monochrome) ::part(button){--loading-button-background:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n );background-color:var(\n --ic-toggle-button-unselected-background-pressed-monochrome\n )}:host(.ic-toggle-button-hide-outline){--toggle-button-border:transparent !important;--toggle-button-border-hover:transparent !important;--toggle-button-border-active:transparent !important}:host(.ic-toggle-button-hide-outline) ::part(button):focus{border:none}:host(.expand-toggle-group-child.ic-toggle-button-hide-outline) ::part(button):focus,:host(.expand-toggle-group-child.ic-toggle-button-hide-outline.ic-toggle-button-checked) ::part(button):focus{box-shadow:var(--ic-border-focus)}@media (forced-colors: active){:host(.ic-toggle-button-checked) ::part(button),:host(.ic-toggle-button-checked) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-light) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-dark) ::part(button):hover{background-color:Highlight}:host(.ic-toggle-button-checked.ic-toggle-button-disabled) ::part(button){background-color:GrayText}:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button),:host(.ic-toggle-button-checked.ic-toggle-button-loading) ::part(button):hover{--loading-button-background:Highlight}}";
|
22206
23331
|
var IcToggleButtonStyle0 = icToggleButtonCss;
|
22207
23332
|
|
22208
23333
|
const TRACKED_ATTRIBUTES = [
|
@@ -22214,6 +23339,7 @@ const TRACKED_ATTRIBUTES = [
|
|
22214
23339
|
"size",
|
22215
23340
|
"theme",
|
22216
23341
|
"monochrome",
|
23342
|
+
"outline",
|
22217
23343
|
];
|
22218
23344
|
/**
|
22219
23345
|
* @slot icon - Content will be displayed alongside the toggle button label.
|
@@ -22247,6 +23373,10 @@ class ToggleButton {
|
|
22247
23373
|
* If `true`, the toggle button will display as black in the light theme, and white in dark theme.
|
22248
23374
|
*/
|
22249
23375
|
this.monochrome = false;
|
23376
|
+
/**
|
23377
|
+
* If `true`, the toggle button will display with an outline.
|
23378
|
+
*/
|
23379
|
+
this.outline = true;
|
22250
23380
|
/**
|
22251
23381
|
* The size of the toggle button to be displayed.
|
22252
23382
|
*/
|
@@ -22314,6 +23444,9 @@ class ToggleButton {
|
|
22314
23444
|
case TRACKED_ATTRIBUTES[7]:
|
22315
23445
|
this.monochrome = attribute.value !== "false";
|
22316
23446
|
break;
|
23447
|
+
case TRACKED_ATTRIBUTES[8]:
|
23448
|
+
this.outline = attribute.value !== "false";
|
23449
|
+
break;
|
22317
23450
|
}
|
22318
23451
|
}
|
22319
23452
|
}
|
@@ -22334,18 +23467,19 @@ class ToggleButton {
|
|
22334
23467
|
}
|
22335
23468
|
}
|
22336
23469
|
render() {
|
22337
|
-
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, size, theme, tooltipPlacement, variant, } = this;
|
23470
|
+
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, outline, size, theme, tooltipPlacement, variant, } = this;
|
22338
23471
|
const iconVariant = variant === "icon";
|
22339
|
-
return (hAsync(Host, { key: '
|
23472
|
+
return (hAsync(Host, { key: 'f8fcf3d711713e186960027c00f605b09350eb1b', class: {
|
22340
23473
|
"ic-toggle-button-checked": checked,
|
22341
23474
|
"ic-toggle-button-disabled": disabled,
|
22342
23475
|
"ic-toggle-button-icon": iconVariant,
|
22343
23476
|
"ic-toggle-button-loading": loading,
|
22344
23477
|
"ic-toggle-button-monochrome": monochrome,
|
22345
23478
|
"ic-toggle-button-full-width": fullWidth,
|
23479
|
+
"ic-toggle-button-hide-outline": !outline,
|
22346
23480
|
[`ic-toggle-button-${size}`]: true,
|
22347
23481
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22348
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
23482
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: 'a0d0f8b473b1731359a735e7249c3b3467e7012d', "aria-pressed": `${checked}`, variant: iconVariant ? "icon" : "secondary", onClick: this.handleClick, title: accessibleLabel, "aria-label": `${accessibleLabel ? accessibleLabel : label}, ${checked ? "ticked" : "unticked"}`, disabled: disabled, size: size, fullWidth: fullWidth, loading: loading, tooltipPlacement: tooltipPlacement }, !iconVariant && label, hAsync("slot", { key: 'a8335c7d4dbd6af3dff53ad5b7f7e0e34440be72' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: 'c8e3337c6c4e2be224a3e15d107f67ece853c89f', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: '1ae2a852eadc170c44fca19bf4993abd206cf4f3', name: "badge", slot: "badge" })))));
|
22349
23483
|
}
|
22350
23484
|
static get delegatesFocus() { return true; }
|
22351
23485
|
get el() { return getElement(this); }
|
@@ -22365,6 +23499,7 @@ class ToggleButton {
|
|
22365
23499
|
"label": [1],
|
22366
23500
|
"loading": [1028],
|
22367
23501
|
"monochrome": [1028],
|
23502
|
+
"outline": [1028],
|
22368
23503
|
"size": [1025],
|
22369
23504
|
"theme": [1025],
|
22370
23505
|
"tooltipPlacement": [1, "tooltip-placement"],
|
@@ -22376,7 +23511,7 @@ class ToggleButton {
|
|
22376
23511
|
}; }
|
22377
23512
|
}
|
22378
23513
|
|
22379
|
-
const icToggleButtonGroupCss = "/*! 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}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-toggle-button-unselected-border);border-radius:var(--ic-border-radius)}:host(.ic-toggle-button-group-full-width){width:100%;max-width:100%}:host(.ic-toggle-button-group-loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;width:-moz-min-content;width:min-content;--toggle-button-border:none !important;--toggle-button-border-hover:none !important;--toggle-button-border-active:none !important}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border)}:host(.ic-toggle-button-group-disabled){border:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled);pointer-events:none}:host(.ic-toggle-button-group-disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled)}:host(.ic-toggle-button-group-monochrome){border:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome){border:var(--ic-border-width) dashed\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}";
|
23514
|
+
const icToggleButtonGroupCss = "/*! 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}:root{display:block}:host{display:flex;flex-direction:row;width:-moz-fit-content;width:fit-content;min-width:-moz-min-content;min-width:min-content;border:var(--ic-border-width) solid var(--ic-toggle-button-unselected-border);border-radius:var(--ic-border-radius)}:host(.ic-toggle-button-group-full-width){width:100%;max-width:100%}:host(.ic-toggle-button-group-loading){min-width:-moz-max-content;min-width:max-content}:host(:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-transition-duration-fast);outline:none}::slotted(ic-toggle-button){flex-grow:1;width:-moz-min-content;width:min-content;--toggle-button-border:none !important;--toggle-button-border-hover:none !important;--toggle-button-border-active:none !important}::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border)}:host(.ic-toggle-button-group-disabled){border:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled);pointer-events:none}:host(.ic-toggle-button-group-disabled) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-space-1px) dashed\n var(--ic-toggle-button-unselected-border-disabled)}:host(.ic-toggle-button-group-monochrome){border:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome){border:var(--ic-border-width) dashed\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-disabled.ic-toggle-button-group-monochrome) ::slotted(ic-toggle-button:not(:last-of-type)){border-right:var(--ic-border-width) solid\n var(--ic-toggle-button-unselected-border-disabled-monochrome)}:host(.ic-toggle-button-group-hide-outline){--ic-toggle-button-unselected-border:transparent;--ic-toggle-button-unselected-border-disabled:transparent;--ic-toggle-button-unselected-border-monochrome:transparent;--ic-toggle-button-unselected-border-disabled-monochrome:transparent}";
|
22380
23515
|
var IcToggleButtonGroupStyle0 = icToggleButtonGroupCss;
|
22381
23516
|
|
22382
23517
|
const TOGGLE_GROUP = "IC-TOGGLE-BUTTON-GROUP";
|
@@ -22408,6 +23543,10 @@ class ToggleButtonGroup {
|
|
22408
23543
|
* If `true`, the toggle button group will display as black in the light theme, and white in dark theme.
|
22409
23544
|
*/
|
22410
23545
|
this.monochrome = false;
|
23546
|
+
/**
|
23547
|
+
* If `true`, the toggle button group will display with an outline.
|
23548
|
+
*/
|
23549
|
+
this.outline = true;
|
22411
23550
|
/**
|
22412
23551
|
* If `auto`, controls are toggled automatically when navigated to. If `manual`, the controls must be actioned to change their toggled state. The value of this prop is ignored if `selectType` is set to`multi`.
|
22413
23552
|
*/
|
@@ -22518,6 +23657,11 @@ class ToggleButtonGroup {
|
|
22518
23657
|
el.monochrome = this.monochrome;
|
22519
23658
|
});
|
22520
23659
|
}
|
23660
|
+
watchOutlineHandler() {
|
23661
|
+
this.getAllToggleButtons().forEach((el) => {
|
23662
|
+
el.outline = this.outline;
|
23663
|
+
});
|
23664
|
+
}
|
22521
23665
|
watchSizeHandler() {
|
22522
23666
|
this.getAllToggleButtons().forEach((el) => {
|
22523
23667
|
el.size = this.size;
|
@@ -22595,14 +23739,15 @@ class ToggleButtonGroup {
|
|
22595
23739
|
document === null || document === void 0 ? void 0 : document.removeEventListener("keydown", this.keyListener);
|
22596
23740
|
}
|
22597
23741
|
render() {
|
22598
|
-
const { accessibleLabel, disabled, fullWidth, loading, monochrome, theme } = this;
|
22599
|
-
return (hAsync(Host, { key: '
|
23742
|
+
const { accessibleLabel, disabled, fullWidth, loading, monochrome, outline, theme, } = this;
|
23743
|
+
return (hAsync(Host, { key: 'bac81c86de7bedb193b11682ba0e845c6fb2e767', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
22600
23744
|
"ic-toggle-button-group-disabled": disabled,
|
22601
23745
|
"ic-toggle-button-group-full-width": fullWidth,
|
22602
23746
|
"ic-toggle-button-group-loading": loading,
|
22603
23747
|
"ic-toggle-button-group-monochrome": monochrome,
|
23748
|
+
"ic-toggle-button-group-hide-outline": !outline,
|
22604
23749
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22605
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
23750
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '66dd0f8c1aff7be57ecc0abf5386cdc43f64eb80' })));
|
22606
23751
|
}
|
22607
23752
|
get el() { return getElement(this); }
|
22608
23753
|
static get watchers() { return {
|
@@ -22610,6 +23755,7 @@ class ToggleButtonGroup {
|
|
22610
23755
|
"fullWidth": ["watchFullWidthHandler"],
|
22611
23756
|
"loading": ["watchLoadingHandler"],
|
22612
23757
|
"monochrome": ["watchMonochromeHandler"],
|
23758
|
+
"outline": ["watchOutlineHandler"],
|
22613
23759
|
"size": ["watchSizeHandler"],
|
22614
23760
|
"theme": ["watchThemeHandler"],
|
22615
23761
|
"tooltipPlacement": ["watchTooltipPlacementHandler"],
|
@@ -22626,6 +23772,7 @@ class ToggleButtonGroup {
|
|
22626
23772
|
"iconPlacement": [1, "icon-placement"],
|
22627
23773
|
"loading": [4],
|
22628
23774
|
"monochrome": [4],
|
23775
|
+
"outline": [4],
|
22629
23776
|
"selectMethod": [1025, "select-method"],
|
22630
23777
|
"selectType": [1, "select-type"],
|
22631
23778
|
"size": [1],
|
@@ -22640,18 +23787,16 @@ class ToggleButtonGroup {
|
|
22640
23787
|
}; }
|
22641
23788
|
}
|
22642
23789
|
|
22643
|
-
const icTooltipCss = "/*! 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-tooltip){width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;--ic-tooltip-background:var(--ic-color-background-primary-dark);--ic-tooltip-text:var(--ic-color-text-primary-dark);--ic-tooltip-border:var(--ic-color-border-neutral-grey-light)}:host(.ic-tooltip) .ic-tooltip-container{background-color:var(--ic-tooltip-background);text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-tooltip-border);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay);width:-moz-max-content;width:max-content}:host(.ic-tooltip) ic-typography{--ic-typography-color:var(--ic-tooltip-text)}:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed)) .ic-tooltip-container,:host(.tooltip-disabled) .ic-tooltip-container{display:none !important}:host(.tooltip-long-label-navigation-item-side-nav-expanded) .ic-tooltip-container[data-show]{display:block !important}:host(.ic-tooltip) .ic-tooltip-arrow,:host(.ic-tooltip) .ic-tooltip-arrow::before{position:absolute;background:inherit}:host(.ic-tooltip) .ic-tooltip-arrow{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-tooltip) .ic-tooltip-arrow::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-tooltip-border);width:100%;height:100%}:host(.ic-tooltip) .ic-tooltip-container[data-show]{display:block}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow{height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}:host(.on-dialog)
|
23790
|
+
const icTooltipCss = "/*! 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-tooltip){width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;--ic-tooltip-background:var(--ic-color-background-primary-dark);--ic-tooltip-text:var(--ic-color-text-primary-dark);--ic-tooltip-border:var(--ic-color-border-neutral-grey-light)}:host(.ic-tooltip) .ic-tooltip-container{background-color:var(--ic-tooltip-background);text-align:center;padding:var(--ic-space-xxxs) var(--ic-space-xs);border-radius:var(--ic-border-radius);border:var(--ic-border-width) solid var(--ic-tooltip-border);position:absolute;max-width:20rem;display:none;z-index:var(--ic-z-index-tooltip);box-shadow:var(--ic-elevation-overlay);width:-moz-max-content;width:max-content}:host(.ic-tooltip) ic-typography{--ic-typography-color:var(--ic-tooltip-text)}:host(.tooltip-navigation-item:not(.tooltip-navigation-item-side-nav-collapsed)) .ic-tooltip-container,:host(.tooltip-disabled) .ic-tooltip-container{display:none !important}:host(.tooltip-long-label-navigation-item-side-nav-expanded) .ic-tooltip-container[data-show]{display:block !important}:host(.ic-tooltip) .ic-tooltip-arrow,:host(.ic-tooltip) .ic-tooltip-arrow::before{position:absolute;background:inherit}:host(.ic-tooltip) .ic-tooltip-arrow{visibility:hidden;width:var(--ic-space-md);height:var(--ic-space-md)}:host(.ic-tooltip) .ic-tooltip-arrow::before{visibility:visible;content:\"\";border:var(--ic-border-width) solid var(--ic-tooltip-border);width:100%;height:100%}:host(.ic-tooltip) .ic-tooltip-container[data-show]{display:block}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow{height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"top\"]>.ic-tooltip-arrow::before{border-radius:0 0 var(--ic-border-radius) var(--ic-border-radius);left:0;top:var(--ic-space-xxxs);border-top:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow{top:calc(-1 * var(--ic-space-xxs));height:var(--ic-space-xxxs)}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"bottom\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) var(--ic-border-radius) 0 0;left:0;top:var(--ic-space-1px);border-bottom:0;transform:translateX(var(--tooltip-arrow-translate))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);right:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"left\"]>.ic-tooltip-arrow::before{border-radius:0 var(--ic-border-radius) var(--ic-border-radius) 0;border-left:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow{width:var(--ic-space-xxxs);left:calc(-1 * var(--ic-space-xxs))}:host(.ic-tooltip) .ic-tooltip-container[data-popper-placement^=\"right\"]>.ic-tooltip-arrow::before{border-radius:var(--ic-border-radius) 0 0 var(--ic-border-radius);border-right:0;top:calc(-1 * var(--ic-space-1px))}:host(.ic-tooltip-on-dialog){display:inline-block}@media screen and (max-width: 576px){:host(.ic-tooltip) .ic-tooltip-container{max-width:18.875rem}}@media (forced-colors: active){:host(.ic-tooltip) .ic-tooltip-container,:host(.ic-tooltip) .ic-tooltip-arrow::before{border:var(--ic-border-hc)}}";
|
22644
23791
|
var IcTooltipStyle0 = icTooltipCss;
|
22645
23792
|
|
22646
23793
|
class Tooltip {
|
22647
23794
|
constructor(hostRef) {
|
22648
23795
|
registerInstance(this, hostRef);
|
22649
23796
|
this.delayedHideEvents = ["mouseleave"];
|
22650
|
-
this.dialogOverflow = false;
|
22651
23797
|
this.instantHideEvents = ["focusout"];
|
22652
23798
|
this.mouseOverTool = false;
|
22653
23799
|
this.persistTooltip = false;
|
22654
|
-
this.onDialog = false;
|
22655
23800
|
this.showEvents = [
|
22656
23801
|
!this.disableHover && "mouseenter",
|
22657
23802
|
!this.disableHover && "focusin",
|
@@ -22678,76 +23823,11 @@ class Tooltip {
|
|
22678
23823
|
*/
|
22679
23824
|
this.theme = "inherit";
|
22680
23825
|
this.popperProps = {};
|
22681
|
-
this.getTooltipTranslate = (dialogEl) => {
|
22682
|
-
const child = this.el.children[0].getBoundingClientRect();
|
22683
|
-
let tooltipX;
|
22684
|
-
let tooltipY;
|
22685
|
-
switch (this.placement) {
|
22686
|
-
case "bottom":
|
22687
|
-
tooltipX = child.left - dialogEl.left - 0.5 * child.width;
|
22688
|
-
tooltipY = child.bottom - dialogEl.top;
|
22689
|
-
break;
|
22690
|
-
case "bottom-start":
|
22691
|
-
tooltipX = child.left - dialogEl.left;
|
22692
|
-
tooltipY = child.bottom - dialogEl.top;
|
22693
|
-
break;
|
22694
|
-
case "bottom-end":
|
22695
|
-
tooltipX = child.right - dialogEl.right;
|
22696
|
-
tooltipY = child.bottom - dialogEl.top;
|
22697
|
-
break;
|
22698
|
-
case "top":
|
22699
|
-
tooltipX = child.left - dialogEl.left - 0.5 * child.width;
|
22700
|
-
tooltipY = child.top - dialogEl.bottom;
|
22701
|
-
break;
|
22702
|
-
case "top-start":
|
22703
|
-
tooltipX = child.left - dialogEl.left;
|
22704
|
-
tooltipY = child.top - dialogEl.bottom;
|
22705
|
-
break;
|
22706
|
-
case "top-end":
|
22707
|
-
tooltipX = child.right - dialogEl.right;
|
22708
|
-
tooltipY = child.top - dialogEl.bottom;
|
22709
|
-
break;
|
22710
|
-
case "left":
|
22711
|
-
case "left-start":
|
22712
|
-
tooltipX = child.right - dialogEl.right - child.width;
|
22713
|
-
tooltipY = child.bottom - dialogEl.top - child.height;
|
22714
|
-
break;
|
22715
|
-
case "left-end":
|
22716
|
-
tooltipX = child.right - dialogEl.right - child.width;
|
22717
|
-
tooltipY = child.top - dialogEl.bottom + child.height;
|
22718
|
-
break;
|
22719
|
-
case "right":
|
22720
|
-
case "right-start":
|
22721
|
-
tooltipX = child.left - dialogEl.left + child.width;
|
22722
|
-
tooltipY = child.bottom - dialogEl.top - child.height;
|
22723
|
-
break;
|
22724
|
-
case "right-end":
|
22725
|
-
tooltipX = child.left - dialogEl.left + child.width;
|
22726
|
-
tooltipY = child.top - dialogEl.bottom + child.height;
|
22727
|
-
break;
|
22728
|
-
}
|
22729
|
-
if (this.dialogOverflow && tooltipX && tooltipX < 0) {
|
22730
|
-
if (this.placement.includes("top") ||
|
22731
|
-
this.placement.includes("bottom")) {
|
22732
|
-
this.toolTip.style.setProperty("--tooltip-arrow-translate", `${tooltipX}px`);
|
22733
|
-
tooltipX = child.left - dialogEl.left;
|
22734
|
-
}
|
22735
|
-
if (this.placement.includes("left")) {
|
22736
|
-
this.placement = "right";
|
22737
|
-
tooltipX = child.left - dialogEl.left + child.width;
|
22738
|
-
}
|
22739
|
-
}
|
22740
|
-
this.toolTip.style.setProperty("--tooltip-translate-x", `${tooltipX}px`);
|
22741
|
-
this.toolTip.style.setProperty("--tooltip-translate-y", `${tooltipY}px`);
|
22742
|
-
};
|
22743
23826
|
this.show = () => {
|
22744
|
-
var _a, _b, _c;
|
22745
23827
|
if (this.label) {
|
22746
23828
|
this.toolTip.setAttribute("data-show", "");
|
22747
|
-
if (this.
|
22748
|
-
this.el.classList.add("on-dialog");
|
22749
|
-
const dialogEl = (_c = (_b = (_a = this.icDialogEl) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("dialog")) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect();
|
22750
|
-
dialogEl && this.getTooltipTranslate(dialogEl);
|
23829
|
+
if (this.dialogContentArea) {
|
23830
|
+
this.el.classList.add("ic-tooltip-on-dialog");
|
22751
23831
|
}
|
22752
23832
|
this.popperInstance = createPopper(this.el, this.toolTip, Object.assign({ placement: this.placement, modifiers: [
|
22753
23833
|
{
|
@@ -22766,6 +23846,23 @@ class Tooltip {
|
|
22766
23846
|
name: "eventListeners",
|
22767
23847
|
options: { scroll: false, resize: false },
|
22768
23848
|
},
|
23849
|
+
...(this.dialogContentArea
|
23850
|
+
? [
|
23851
|
+
{
|
23852
|
+
name: "preventOverflow",
|
23853
|
+
options: {
|
23854
|
+
boundary: this.dialogContentArea,
|
23855
|
+
padding: 8,
|
23856
|
+
},
|
23857
|
+
},
|
23858
|
+
{
|
23859
|
+
name: "flip",
|
23860
|
+
options: {
|
23861
|
+
boundary: this.dialogContentArea,
|
23862
|
+
},
|
23863
|
+
},
|
23864
|
+
]
|
23865
|
+
: []),
|
22769
23866
|
] }, this.popperProps));
|
22770
23867
|
}
|
22771
23868
|
else {
|
@@ -22863,12 +23960,17 @@ class Tooltip {
|
|
22863
23960
|
}
|
22864
23961
|
}
|
22865
23962
|
componentDidLoad() {
|
22866
|
-
var _a;
|
23963
|
+
var _a, _b;
|
22867
23964
|
this.manageEventListeners("add");
|
22868
|
-
|
22869
|
-
this.
|
22870
|
-
|
22871
|
-
|
23965
|
+
let dialog;
|
23966
|
+
if (this.el.getRootNode().host) {
|
23967
|
+
dialog = this.el.getRootNode().host.closest("ic-dialog");
|
23968
|
+
}
|
23969
|
+
else {
|
23970
|
+
dialog = this.el.closest("ic-dialog");
|
23971
|
+
}
|
23972
|
+
this.dialogContentArea =
|
23973
|
+
(_b = (_a = dialog === null || dialog === void 0 ? void 0 : dialog.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".content-area")) !== null && _b !== void 0 ? _b : null;
|
22872
23974
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Tooltip");
|
22873
23975
|
}
|
22874
23976
|
componentDidRender() {
|
@@ -22895,10 +23997,10 @@ class Tooltip {
|
|
22895
23997
|
}
|
22896
23998
|
render() {
|
22897
23999
|
const { label, maxLines, silent, theme } = this;
|
22898
|
-
return (hAsync(Host, { key: '
|
24000
|
+
return (hAsync(Host, { key: '45c8808ecc7904b44e269ec6ae844da6f75710f0', class: {
|
22899
24001
|
"ic-tooltip": true,
|
22900
24002
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22901
|
-
} }, hAsync("div", { key: '
|
24003
|
+
} }, hAsync("div", { key: 'a03ff6ebeb4d0476077838329f7f00cd29c1004d', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: '92b33499dae505e7e09bc92a8c91f1097de03b7b', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: '37523617a917645fe37edb4e6d6e250ffc4d7b67', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: '44217d6c93aa8dab3250ebfde59f17bc51596576' })));
|
22902
24004
|
}
|
22903
24005
|
get el() { return getElement(this); }
|
22904
24006
|
static get watchers() { return {
|
@@ -22914,7 +24016,7 @@ class Tooltip {
|
|
22914
24016
|
"disableClick": [4, "disable-click"],
|
22915
24017
|
"disableHover": [4, "disable-hover"],
|
22916
24018
|
"maxLines": [2, "max-lines"],
|
22917
|
-
"placement": [
|
24019
|
+
"placement": [1],
|
22918
24020
|
"silent": [4],
|
22919
24021
|
"target": [513],
|
22920
24022
|
"theme": [1],
|
@@ -23147,16 +24249,16 @@ class TopNavigation {
|
|
23147
24249
|
const attrs = Component == "a" && {
|
23148
24250
|
href: href,
|
23149
24251
|
};
|
23150
|
-
return (hAsync(Host, { key: '
|
24252
|
+
return (hAsync(Host, { key: 'b0d2e6aebeb66ddb4ca659cfba83e2cdbd6ec3f4', class: {
|
23151
24253
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
23152
24254
|
"mobile-mode": overMobileBreakpoint,
|
23153
24255
|
[IcBrandForegroundEnum$1.Dark]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
23154
24256
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23155
|
-
} }, hAsync("div", { key: '
|
24257
|
+
} }, hAsync("div", { key: '4a4576c41289fc356d5cfd4e0414901bd8d21a88', class: "top-navigation" }, hAsync("ic-section-container", { key: 'ec7aa4c1ce015f80c3850c2eba3b1e6b6d00c475', aligned: contentAligned, "full-height": true }, hAsync("header", { key: 'b388f01d5e3084e0530dcc5b460d773b8f51d1f2', role: "banner" }, hAsync("div", { key: 'a733f85700e1abccdf8aeceb97198359c53f9960', class: "top-panel-container" }, hAsync("div", { key: '948679467aee550281cdec8c5e43c6d5b4e7fd29', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: '4054a371178c53cf2794e7a9a653575b95a9354c', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: '11616acef1f4ff274320f24da803eab7cc52fa1d', class: "app-icon-container" }, hAsync("slot", { key: 'b36a9b7f67c72851dd11fd8f356a6735f4676814', name: "app-icon" }))), isSmallDeviceSize &&
|
23156
24258
|
(!isEmptyString$1(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
23157
|
-
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle)))))), hasStatus && (hAsync("div", { key: '
|
24259
|
+
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle)))))), hasStatus && (hAsync("div", { key: '42f5c01069f02f82abd34b4a540050154bdafec5', class: "app-status" }, hAsync("ic-typography", { key: '6052ad2c828b533ec121ee45d71c0afcdaae0622', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: '173b8c98351d425e843aae093902b91feaa7fd05', class: "app-version" }, hAsync("ic-typography", { key: 'f46ecb51ac2c1f2c01beabf4590ac76681d94733', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '8f85b0505a04f7a3affb88ceaa81fe9eccd72ea1', class: "search-menu-container" }, hAsync("div", { key: 'ff332cfc554fef6856becd5fb87b9f315565bc1e', class: "search-actions-container" }, !overMobileBreakpoint ? (hAsync(Fragment, null, hAsync("slot", { name: "search" }), hasIconButtons && (hAsync("div", { class: "icon-buttons-container" }, hAsync("slot", { name: "buttons" }))))) : (hAsync(Fragment, null, hasSearchSlotContent && (hAsync("ic-button", { id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: searchButtonMouseDownHandler, variant: "icon-tertiary", monochrome: true, size: searchButtonSize, "aria-label": mobileSearchButtonTitle, theme: foregroundColor, onClick: searchButtonClickHandler }, hAsync("slot", { name: "toggle-icon" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))))), hasMenuContent && (hAsync("div", { class: "menu-button-container" }, hAsync("span", { id: "navigation-landmark-button-text", class: "navigation-landmark-button-text", "aria-hidden": "true" }, "Main navigation button"), hAsync("nav", { "aria-labelledby": "navigation-landmark-button-text", "aria-hidden": `${navMenuVisible}` }, hAsync("ic-button", { id: "menu-button", ref: (el) => (this.menuButtonEl = el), theme: foregroundColor, variant: "secondary", monochrome: true, "aria-expanded": "false", "aria-haspopup": "true", "aria-label": `Open ${hasNavigation ? "navigation" : "app"} menu`, size: menuSize, onClick: menuButtonClick }, "Menu", hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "left-icon" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))))), mobileSearchBarVisible && (hAsync("div", { key: 'ef7c477979320e20293484f6594eb89a38973540', class: "search-bar-container" }, hAsync("slot", { key: 'b19e53fc019ff1d16c0da99d7d38bc6428dd7cc8', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: 'bdd8f9b982328135f06fc010828bbf0dc803a788', class: "navigation-tabs" }, hAsync("span", { key: 'e231e5a002a04ff6275aa2d6a39c66d83787367a', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: '201327e158e97d601a8fb93b8174af6091bd0295', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: 'df8f402d0da993079b7378292cba17e85259c53c', monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: '22aa05880499690dcd43572705234bdb6fd386b0', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: 'effb669cef379880d7b45ca4e74ef096c10a1afb', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: 'a0a45fb9db2ea99414cdc2570f6c9697a96f01ad', version: version, status: status, class: {
|
23158
24260
|
inline,
|
23159
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
24261
|
+
} }, hasIconButtons && (hAsync("div", { key: '8c74bfd6c807022ccb315bd4718fa8a521fb08ae', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '1720467597b353122e907f7c83e1f9e0ef62c9ad', name: "buttons" }))), hAsync("ul", { key: 'ccdc85df3febad2d603caeccafbd675be4d3d9a2', slot: "navigation" }, hAsync("slot", { key: '1f465185f8937c81b279e8823127e0e8bc7d6841', name: "navigation" }))))));
|
23160
24262
|
}
|
23161
24263
|
get el() { return getElement(this); }
|
23162
24264
|
static get watchers() { return {
|
@@ -23257,7 +24359,6 @@ class TreeItem {
|
|
23257
24359
|
}
|
23258
24360
|
this.updateAriaLabel();
|
23259
24361
|
this.selected = true;
|
23260
|
-
this.watchSelectedHandler();
|
23261
24362
|
};
|
23262
24363
|
this.setTreeItemPadding = () => {
|
23263
24364
|
var _a;
|
@@ -23353,6 +24454,14 @@ class TreeItem {
|
|
23353
24454
|
const tooltip = typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP);
|
23354
24455
|
tooltip === null || tooltip === void 0 ? void 0 : tooltip.displayTooltip(display);
|
23355
24456
|
};
|
24457
|
+
this.setChildTreeItems = () => {
|
24458
|
+
this.childTreeItems = Array.from(this.el.children).filter((child) => child.tagName === this.treeItemTag);
|
24459
|
+
this.isParent = this.childTreeItems.length > 0;
|
24460
|
+
};
|
24461
|
+
this.hostMutationCallback = (mutationList) => {
|
24462
|
+
this.setChildTreeItems();
|
24463
|
+
renderDynamicChildSlots(mutationList, "icon");
|
24464
|
+
};
|
23356
24465
|
}
|
23357
24466
|
watchDisabledHandler() {
|
23358
24467
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -23372,17 +24481,16 @@ class TreeItem {
|
|
23372
24481
|
}
|
23373
24482
|
componentWillLoad() {
|
23374
24483
|
removeDisabledFalse(this.disabled, this.el);
|
23375
|
-
this.
|
23376
|
-
if (this.childTreeItems.length > 0) {
|
23377
|
-
this.isParent = true;
|
23378
|
-
}
|
24484
|
+
this.setChildTreeItems();
|
23379
24485
|
}
|
23380
24486
|
componentDidLoad() {
|
23381
24487
|
this.setTreeItemPadding();
|
23382
24488
|
this.updateAriaLabel();
|
23383
24489
|
!isSlotUsed(this.el, "label") &&
|
23384
24490
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Tree item");
|
23385
|
-
this.hostMutationObserver = new MutationObserver((mutationList) =>
|
24491
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => {
|
24492
|
+
this.hostMutationCallback(mutationList);
|
24493
|
+
});
|
23386
24494
|
this.hostMutationObserver.observe(this.el, {
|
23387
24495
|
childList: true,
|
23388
24496
|
});
|
@@ -23478,7 +24586,7 @@ class TreeItem {
|
|
23478
24586
|
rel: this.rel,
|
23479
24587
|
target: this.target,
|
23480
24588
|
};
|
23481
|
-
return (hAsync(Host, { key: '
|
24589
|
+
return (hAsync(Host, { key: 'd46ba231b2a4e4b223df95b23064b4657fc59eb9', class: {
|
23482
24590
|
"ic-tree-item-disabled": disabled,
|
23483
24591
|
"ic-tree-item-selected": !disabled && selected,
|
23484
24592
|
[`ic-tree-item-${size}`]: size !== "medium",
|
@@ -23489,7 +24597,7 @@ class TreeItem {
|
|
23489
24597
|
}, 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: {
|
23490
24598
|
["arrow-dropdown"]: true,
|
23491
24599
|
["tree-item-expanded"]: expanded,
|
23492
|
-
}, "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: '
|
24600
|
+
}, "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: 'b6d59306dc68150e6c51fe8d8e9985702837824b', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: 'fe7f782b4b5c4b2d5eeaab7ff511747d37d6068f' })))));
|
23493
24601
|
}
|
23494
24602
|
get el() { return getElement(this); }
|
23495
24603
|
static get watchers() { return {
|
@@ -23586,6 +24694,22 @@ class TreeView {
|
|
23586
24694
|
* When used on small devices, this prop will be overridden and tree-items will be set to text-wrap.
|
23587
24695
|
*/
|
23588
24696
|
this.truncateTreeItems = false;
|
24697
|
+
this.hostMutationCallback = (mutationList) => {
|
24698
|
+
var _a;
|
24699
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
24700
|
+
renderDynamicChildSlots(mutationList, "icon");
|
24701
|
+
this.setTreeItems();
|
24702
|
+
this.createMutationObserver();
|
24703
|
+
};
|
24704
|
+
this.createMutationObserver = () => {
|
24705
|
+
this.hostMutationObserver = new MutationObserver((mutationList) => {
|
24706
|
+
this.hostMutationCallback(mutationList);
|
24707
|
+
});
|
24708
|
+
this.hostMutationObserver.observe(this.el, {
|
24709
|
+
childList: true,
|
24710
|
+
subtree: true,
|
24711
|
+
});
|
24712
|
+
};
|
23589
24713
|
this.runResizeObserver = () => {
|
23590
24714
|
this.resizeObserver = new ResizeObserver(() => {
|
23591
24715
|
const isSmallDevice = getCurrentDeviceSize() <= DEVICE_SIZES.S;
|
@@ -23682,9 +24806,6 @@ class TreeView {
|
|
23682
24806
|
this.treeItems = this.getAllTreeItems(this.el);
|
23683
24807
|
this.linkTreeItems();
|
23684
24808
|
};
|
23685
|
-
this.addSlotChangeListener = () => {
|
23686
|
-
this.el.addEventListener("slotchange", this.setTreeItems);
|
23687
|
-
};
|
23688
24809
|
this.truncateTreeViewHeading = () => {
|
23689
24810
|
var _a, _b;
|
23690
24811
|
const typographyEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".tree-view-header");
|
@@ -23757,10 +24878,9 @@ class TreeView {
|
|
23757
24878
|
});
|
23758
24879
|
}
|
23759
24880
|
disconnectedCallback() {
|
23760
|
-
var _a, _b
|
23761
|
-
(_a = this.
|
23762
|
-
(_b = this.
|
23763
|
-
(_c = this.resizeObserver) === null || _c === void 0 ? void 0 : _c.disconnect();
|
24881
|
+
var _a, _b;
|
24882
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
24883
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
23764
24884
|
}
|
23765
24885
|
componentWillLoad() {
|
23766
24886
|
this.setTreeItems();
|
@@ -23781,11 +24901,7 @@ class TreeView {
|
|
23781
24901
|
: this.removeHeadingTruncation();
|
23782
24902
|
}
|
23783
24903
|
componentDidLoad() {
|
23784
|
-
this.
|
23785
|
-
this.hostMutationObserver = new MutationObserver((mutationList) => renderDynamicChildSlots(mutationList, "icon"));
|
23786
|
-
this.hostMutationObserver.observe(this.el, {
|
23787
|
-
childList: true,
|
23788
|
-
});
|
24904
|
+
this.createMutationObserver();
|
23789
24905
|
this.isLoaded = true;
|
23790
24906
|
}
|
23791
24907
|
handleTreeItemSelected(event) {
|
@@ -23838,14 +24954,14 @@ class TreeView {
|
|
23838
24954
|
}
|
23839
24955
|
render() {
|
23840
24956
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
23841
|
-
return (hAsync(Host, { key: '
|
24957
|
+
return (hAsync(Host, { key: '2b58b217bf98ece972496384d43f498460a9824e', "context-id": this.treeViewId, class: {
|
23842
24958
|
[`ic-tree-view-${size}`]: size !== "medium",
|
23843
24959
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23844
24960
|
"ic-tree-view-truncate": truncateHeading,
|
23845
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
24961
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: 'f1ae0ca6d6572175add0fec3862cc7380f9c8d74', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '1fba05e27d7f39890e4697c93bc41e30261fb6f4', class: "icon-container" }, hAsync("slot", { key: 'ec1b61092f87e3d76681d37f8dfdc284d8e4e1cc', name: "icon" }))), hAsync("ic-typography", { key: '0f67c01f76f91c220e59d90943f3832b6f7fb8c9', variant: "subtitle-large", class: {
|
23846
24962
|
"tree-view-header": true,
|
23847
24963
|
"with-padding": this.truncateHeading && !isLoaded,
|
23848
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
24964
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '8f385af9272ed7ee3847bab9173c0f43aa450de4' })));
|
23849
24965
|
}
|
23850
24966
|
get el() { return getElement(this); }
|
23851
24967
|
static get watchers() { return {
|
@@ -24043,7 +25159,7 @@ class Typography {
|
|
24043
25159
|
render() {
|
24044
25160
|
var _a, _b;
|
24045
25161
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
24046
|
-
return (hAsync(Host, { key: '
|
25162
|
+
return (hAsync(Host, { key: '0f64ad9e02b32790b2bc269df212468b2f9426f7', class: {
|
24047
25163
|
[`ic-typography-${variant}`]: true,
|
24048
25164
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
24049
25165
|
["ic-typography-bold"]: !!bold,
|
@@ -24056,7 +25172,7 @@ class Typography {
|
|
24056
25172
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
24057
25173
|
"IC-TOOLTIP") &&
|
24058
25174
|
maxLines &&
|
24059
|
-
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: '
|
25175
|
+
maxLines > 0 ? (hAsync("div", { class: "trunc-wrapper", ref: (el) => (this.truncWrapperEl = el) }, hAsync("slot", null))) : (hAsync("slot", null)), variant === "body" && maxLines && maxLines > 0 && truncated && (hAsync("button", { key: '3e5f7e8b549122986d1dc67fe35b5e270233eb71', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
24060
25176
|
}
|
24061
25177
|
get el() { return getElement(this); }
|
24062
25178
|
static get watchers() { return {
|
@@ -24091,6 +25207,7 @@ class Typography {
|
|
24091
25207
|
registerComponents([
|
24092
25208
|
Accordion,
|
24093
25209
|
AccordionGroup,
|
25210
|
+
ActionChip,
|
24094
25211
|
Alert,
|
24095
25212
|
BackToTop,
|
24096
25213
|
Badge,
|
@@ -24153,6 +25270,7 @@ registerComponents([
|
|
24153
25270
|
TabPanel,
|
24154
25271
|
TextField,
|
24155
25272
|
Theme,
|
25273
|
+
TimeInput,
|
24156
25274
|
Toast,
|
24157
25275
|
ToastRegion,
|
24158
25276
|
ToggleButton,
|