@ukic/canary-web-components 3.0.0-canary.19 → 3.0.0-canary.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-f4e7322b.js → helpers-274ac318.js} +30 -32
- package/dist/cjs/helpers-274ac318.js.map +1 -0
- package/dist/cjs/{helpers-a5405964.js → helpers-da852478.js} +4 -2
- package/dist/cjs/helpers-da852478.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +135 -142
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +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 +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +91 -48
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +5 -5
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +31 -39
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +20 -20
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +28 -12
- 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 +16 -17
- 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 +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- 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 +3 -3
- 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 +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- 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 +4 -4
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +31 -33
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js +4 -15
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +12 -6
- package/dist/collection/components/ic-data-table/ic-data-table.js +119 -46
- 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 +15 -1
- 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 +121 -6
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js +5 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.stories.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.js +7 -4
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js +13 -4
- package/dist/collection/components/ic-date-input/ic-date-input.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +13 -10
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js +9 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.stories.js.map +1 -1
- package/dist/collection/components/ic-date-picker/story-data.js +25 -0
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.css +12 -21
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +50 -56
- 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 +3 -36
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +29 -54
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.types.js.map +1 -1
- package/dist/collection/utils/helpers.js +3 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +29 -32
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +3 -1
- package/dist/components/helpers2.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-checkbox-group.js +4 -4
- package/dist/components/ic-checkbox-group.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 +91 -47
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +4 -4
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +10 -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-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 +33 -10
- 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 +139 -143
- 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 +16 -9
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +32 -41
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +8 -5
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- 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 +5 -5
- 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 +31 -12
- 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 +7 -7
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +16 -17
- 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 +5 -5
- 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-text-field2.js +7 -7
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-theme.js.map +1 -1
- 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 +4 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-top-navigation.js +15 -9
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.js +31 -33
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js +3 -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 +29 -25
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-b7d117e8.entry.js → p-09acf70a.entry.js} +2 -2
- package/dist/core/{p-578a02ff.entry.js → p-0bc8652d.entry.js} +2 -2
- package/dist/core/{p-578a02ff.entry.js.map → p-0bc8652d.entry.js.map} +1 -1
- package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
- package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +1 -1
- package/dist/core/p-13f52d7b.js +2 -0
- package/dist/core/p-13f52d7b.js.map +1 -0
- package/dist/core/{p-e38dd019.entry.js → p-28b10396.entry.js} +2 -2
- package/dist/core/{p-1fd22368.entry.js → p-29601c16.entry.js} +2 -2
- package/dist/core/{p-1673d010.entry.js → p-2c27c85b.entry.js} +2 -2
- package/dist/core/{p-1673d010.entry.js.map → p-2c27c85b.entry.js.map} +1 -1
- package/dist/core/{p-976f4280.entry.js → p-301131d6.entry.js} +2 -2
- package/dist/core/{p-976f4280.entry.js.map → p-301131d6.entry.js.map} +1 -1
- package/dist/core/{p-887b1302.entry.js → p-304c6a01.entry.js} +2 -2
- package/dist/core/p-304c6a01.entry.js.map +1 -0
- package/dist/core/{p-8d2d9e11.entry.js → p-3352cb6c.entry.js} +2 -2
- package/dist/core/{p-8d2d9e11.entry.js.map → p-3352cb6c.entry.js.map} +1 -1
- package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
- package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +1 -1
- package/dist/core/{p-e003ad46.entry.js → p-3b994e61.entry.js} +2 -2
- package/dist/core/{p-e003ad46.entry.js.map → p-3b994e61.entry.js.map} +1 -1
- package/dist/core/{p-1f18bbf6.entry.js → p-3f45c7ce.entry.js} +2 -2
- package/dist/core/{p-1f18bbf6.entry.js.map → p-3f45c7ce.entry.js.map} +1 -1
- package/dist/core/{p-f9e78341.entry.js → p-4150f333.entry.js} +2 -2
- package/dist/core/p-4150f333.entry.js.map +1 -0
- package/dist/core/{p-16e78c1d.entry.js → p-4271e7f4.entry.js} +2 -2
- package/dist/core/{p-16e78c1d.entry.js.map → p-4271e7f4.entry.js.map} +1 -1
- package/dist/core/{p-6e0f4278.entry.js → p-4d5dfb71.entry.js} +2 -2
- package/dist/core/{p-ba5e1b21.entry.js → p-4e2ef907.entry.js} +2 -2
- package/dist/core/p-4f941e4c.entry.js +2 -0
- package/dist/core/p-4f941e4c.entry.js.map +1 -0
- package/dist/core/{p-920f6480.entry.js → p-57e881b4.entry.js} +2 -2
- package/dist/core/{p-920f6480.entry.js.map → p-57e881b4.entry.js.map} +1 -1
- package/dist/core/p-5f8b09e4.entry.js +2 -0
- package/dist/core/p-5f8b09e4.entry.js.map +1 -0
- package/dist/core/{p-8ae0fd6f.entry.js → p-6938e1d9.entry.js} +2 -2
- package/dist/core/{p-671acf27.entry.js → p-693a568b.entry.js} +2 -2
- package/dist/core/{p-29a49ea2.entry.js → p-6c97db37.entry.js} +2 -2
- package/dist/core/{p-29a49ea2.entry.js.map → p-6c97db37.entry.js.map} +1 -1
- package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
- package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +1 -1
- package/dist/core/{p-5926c2b2.entry.js → p-6f7e8b3e.entry.js} +2 -2
- package/dist/core/{p-5926c2b2.entry.js.map → p-6f7e8b3e.entry.js.map} +1 -1
- package/dist/core/p-7001f1c1.entry.js +2 -0
- package/dist/core/p-7001f1c1.entry.js.map +1 -0
- package/dist/core/p-704c5fee.entry.js +2 -0
- package/dist/core/{p-b92727c0.entry.js.map → p-704c5fee.entry.js.map} +1 -1
- package/dist/core/{p-a894ddb6.entry.js → p-7436d8de.entry.js} +2 -2
- package/dist/core/p-795afeb2.entry.js +2 -0
- package/dist/core/p-795afeb2.entry.js.map +1 -0
- package/dist/core/p-7dcdb89b.entry.js +2 -0
- package/dist/core/p-7dcdb89b.entry.js.map +1 -0
- package/dist/core/p-826a4e46.entry.js +2 -0
- package/dist/core/p-826a4e46.entry.js.map +1 -0
- package/dist/core/{p-9989ec00.entry.js → p-82941d0a.entry.js} +2 -2
- package/dist/core/{p-9989ec00.entry.js.map → p-82941d0a.entry.js.map} +1 -1
- package/dist/core/{p-7e4f5717.entry.js → p-856e0cda.entry.js} +2 -2
- package/dist/core/{p-7e4f5717.entry.js.map → p-856e0cda.entry.js.map} +1 -1
- package/dist/core/p-8e70b907.entry.js +2 -0
- package/dist/core/p-8e70b907.entry.js.map +1 -0
- package/dist/core/{p-7eaa223b.entry.js → p-91eacea5.entry.js} +2 -2
- package/dist/core/{p-7eaa223b.entry.js.map → p-91eacea5.entry.js.map} +1 -1
- package/dist/core/{p-8112444e.entry.js → p-95d3ff68.entry.js} +2 -2
- package/dist/core/{p-c3be8a0f.entry.js → p-961d7718.entry.js} +2 -2
- package/dist/core/p-961d7718.entry.js.map +1 -0
- package/dist/core/{p-b92e5fb3.entry.js → p-972f21fa.entry.js} +2 -2
- package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
- package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +1 -1
- package/dist/core/{p-9aecbfe9.entry.js → p-9e19560f.entry.js} +2 -2
- package/dist/core/{p-9aecbfe9.entry.js.map → p-9e19560f.entry.js.map} +1 -1
- package/dist/core/p-a34c894b.entry.js +2 -0
- package/dist/core/p-a34c894b.entry.js.map +1 -0
- package/dist/core/{p-abcaf14d.entry.js → p-a6b573c0.entry.js} +2 -2
- package/dist/core/p-a6b573c0.entry.js.map +1 -0
- package/dist/core/{p-6a63a73a.entry.js → p-acc884bc.entry.js} +2 -2
- package/dist/core/{p-6a63a73a.entry.js.map → p-acc884bc.entry.js.map} +1 -1
- package/dist/core/{p-f6eaec92.entry.js → p-afff5652.entry.js} +2 -2
- package/dist/core/{p-864e337f.entry.js → p-b093cecd.entry.js} +2 -2
- package/dist/core/{p-864e337f.entry.js.map → p-b093cecd.entry.js.map} +1 -1
- package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
- package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +1 -1
- package/dist/core/{p-fedfd000.entry.js → p-b3509380.entry.js} +2 -2
- package/dist/core/{p-e546d477.entry.js → p-b401ff42.entry.js} +2 -2
- package/dist/core/{p-9a78f449.entry.js → p-b522ce0a.entry.js} +2 -2
- package/dist/core/{p-9a78f449.entry.js.map → p-b522ce0a.entry.js.map} +1 -1
- package/dist/core/{p-2667c808.entry.js → p-b9369ce5.entry.js} +2 -2
- package/dist/core/p-b9369ce5.entry.js.map +1 -0
- package/dist/core/{p-eb74cab5.entry.js → p-c21317e5.entry.js} +2 -2
- package/dist/core/{p-28611f52.entry.js → p-c6bd71e5.entry.js} +2 -2
- package/dist/core/p-c6bd71e5.entry.js.map +1 -0
- package/dist/core/p-c73418dc.entry.js +2 -0
- package/dist/core/p-c73418dc.entry.js.map +1 -0
- package/dist/core/p-cd21aee7.entry.js +2 -0
- package/dist/core/p-cd21aee7.entry.js.map +1 -0
- package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
- package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +1 -1
- package/dist/core/{p-9687e929.entry.js → p-da82bbef.entry.js} +2 -2
- package/dist/core/{p-9687e929.entry.js.map → p-da82bbef.entry.js.map} +1 -1
- package/dist/core/{p-ca7e1219.entry.js → p-e04d2e51.entry.js} +2 -2
- package/dist/core/p-e04d2e51.entry.js.map +1 -0
- package/dist/core/p-e253a857.js +2 -0
- package/dist/core/p-e253a857.js.map +1 -0
- package/dist/core/{p-4444e787.entry.js → p-e3059589.entry.js} +2 -2
- package/dist/core/{p-4444e787.entry.js.map → p-e3059589.entry.js.map} +1 -1
- package/dist/core/p-e4bff243.entry.js +2 -0
- package/dist/core/p-e4bff243.entry.js.map +1 -0
- package/dist/core/{p-85a17585.entry.js → p-ead0acc3.entry.js} +2 -2
- package/dist/core/{p-6bfff7ba.entry.js → p-ef444b18.entry.js} +2 -2
- package/dist/core/{p-6bfff7ba.entry.js.map → p-ef444b18.entry.js.map} +1 -1
- package/dist/core/{p-e64e27be.entry.js → p-f35563a0.entry.js} +2 -2
- package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
- package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.entry.js.map} +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-ef2db990.js → helpers-d9387cd3.js} +4 -2
- package/dist/esm/helpers-d9387cd3.js.map +1 -0
- package/dist/esm/{helpers-fc03923c.js → helpers-f094ef64.js} +30 -33
- package/dist/esm/helpers-f094ef64.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +135 -142
- 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 +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +4 -4
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +1 -1
- package/dist/esm/ic-data-list.entry.js +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 +91 -48
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +5 -5
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +11 -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 +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_3.entry.js +19 -14
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +36 -13
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- 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-navigation-button.entry.js +31 -39
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +7 -4
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +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 +20 -20
- 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 +6 -6
- 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 +28 -12
- 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 +16 -17
- 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 +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- 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 +3 -3
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +15 -9
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +31 -33
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js +4 -15
- 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/loader.js +1 -1
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +13 -1
- package/dist/types/components/ic-data-table/ic-data-table.stories.d.ts +44 -32
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +2 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +4 -0
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +3 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +3 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.stories.d.ts +26 -18
- package/dist/types/components/ic-date-picker/story-data.d.ts +3 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +5 -5
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +0 -5
- package/dist/types/components/ic-tree-view/ic-tree-view.stories.d.ts +22 -22
- package/dist/types/components/ic-tree-view/ic-tree-view.types.d.ts +1 -0
- package/dist/types/components.d.ts +26 -11
- package/dist/types/utils/helpers.d.ts +1 -1
- package/hydrate/index.js +592 -506
- package/hydrate/index.mjs +592 -506
- package/package.json +4 -6
- package/dist/cjs/helpers-a5405964.js.map +0 -1
- package/dist/cjs/helpers-f4e7322b.js.map +0 -1
- package/dist/core/p-0c9c6c31.entry.js +0 -2
- package/dist/core/p-0c9c6c31.entry.js.map +0 -1
- package/dist/core/p-0e0e0942.js +0 -2
- package/dist/core/p-0e0e0942.js.map +0 -1
- package/dist/core/p-17926ee3.entry.js +0 -2
- package/dist/core/p-17926ee3.entry.js.map +0 -1
- package/dist/core/p-188ba287.entry.js +0 -2
- package/dist/core/p-188ba287.entry.js.map +0 -1
- package/dist/core/p-2667c808.entry.js.map +0 -1
- package/dist/core/p-28611f52.entry.js.map +0 -1
- package/dist/core/p-4aaf10a5.entry.js +0 -2
- package/dist/core/p-4aaf10a5.entry.js.map +0 -1
- package/dist/core/p-582da938.entry.js +0 -2
- package/dist/core/p-582da938.entry.js.map +0 -1
- package/dist/core/p-61e78ce0.entry.js +0 -2
- package/dist/core/p-61e78ce0.entry.js.map +0 -1
- package/dist/core/p-7c3cd0b8.entry.js +0 -2
- package/dist/core/p-7c3cd0b8.entry.js.map +0 -1
- package/dist/core/p-887b1302.entry.js.map +0 -1
- package/dist/core/p-abcaf14d.entry.js.map +0 -1
- package/dist/core/p-aeeff0e5.entry.js +0 -2
- package/dist/core/p-aeeff0e5.entry.js.map +0 -1
- package/dist/core/p-b92727c0.entry.js +0 -2
- package/dist/core/p-c3be8a0f.entry.js.map +0 -1
- package/dist/core/p-c8d207e1.entry.js +0 -2
- package/dist/core/p-c8d207e1.entry.js.map +0 -1
- package/dist/core/p-ca7e1219.entry.js.map +0 -1
- package/dist/core/p-d0c38d58.entry.js +0 -2
- package/dist/core/p-d0c38d58.entry.js.map +0 -1
- package/dist/core/p-ead9900a.entry.js +0 -2
- package/dist/core/p-ead9900a.entry.js.map +0 -1
- package/dist/core/p-eca2fea1.js +0 -2
- package/dist/core/p-eca2fea1.js.map +0 -1
- package/dist/core/p-f9e78341.entry.js.map +0 -1
- package/dist/esm/helpers-ef2db990.js.map +0 -1
- package/dist/esm/helpers-fc03923c.js.map +0 -1
- /package/dist/core/{p-b7d117e8.entry.js.map → p-09acf70a.entry.js.map} +0 -0
- /package/dist/core/{p-e38dd019.entry.js.map → p-28b10396.entry.js.map} +0 -0
- /package/dist/core/{p-1fd22368.entry.js.map → p-29601c16.entry.js.map} +0 -0
- /package/dist/core/{p-6e0f4278.entry.js.map → p-4d5dfb71.entry.js.map} +0 -0
- /package/dist/core/{p-ba5e1b21.entry.js.map → p-4e2ef907.entry.js.map} +0 -0
- /package/dist/core/{p-8ae0fd6f.entry.js.map → p-6938e1d9.entry.js.map} +0 -0
- /package/dist/core/{p-671acf27.entry.js.map → p-693a568b.entry.js.map} +0 -0
- /package/dist/core/{p-a894ddb6.entry.js.map → p-7436d8de.entry.js.map} +0 -0
- /package/dist/core/{p-8112444e.entry.js.map → p-95d3ff68.entry.js.map} +0 -0
- /package/dist/core/{p-b92e5fb3.entry.js.map → p-972f21fa.entry.js.map} +0 -0
- /package/dist/core/{p-f6eaec92.entry.js.map → p-afff5652.entry.js.map} +0 -0
- /package/dist/core/{p-fedfd000.entry.js.map → p-b3509380.entry.js.map} +0 -0
- /package/dist/core/{p-e546d477.entry.js.map → p-b401ff42.entry.js.map} +0 -0
- /package/dist/core/{p-eb74cab5.entry.js.map → p-c21317e5.entry.js.map} +0 -0
- /package/dist/core/{p-85a17585.entry.js.map → p-ead0acc3.entry.js.map} +0 -0
- /package/dist/core/{p-e64e27be.entry.js.map → p-f35563a0.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
@@ -3208,7 +3208,7 @@ const IC_BLOCK_COLOR_COMPONENTS$1 = [
|
|
3208
3208
|
"ic-footer",
|
3209
3209
|
"ic-side-navigation",
|
3210
3210
|
"ic-alert",
|
3211
|
-
];
|
3211
|
+
].join(",");
|
3212
3212
|
const IC_FIXED_COLOR_COMPONENTS$1 = ["ic-alert"];
|
3213
3213
|
const IC_BLOCK_COLOR_EXCEPTIONS$1 = {
|
3214
3214
|
"ic-alert": ["ic-link", "ic-button"],
|
@@ -3369,7 +3369,9 @@ const removeHiddenInput = (container) => {
|
|
3369
3369
|
const hasShadowDom$1 = (el) => !!el && !!el.shadowRoot && !!el.attachShadow;
|
3370
3370
|
const getInputHelperTextID$1 = (id) => id + "-helper-text";
|
3371
3371
|
const getInputValidationTextID$1 = (id) => id + "-validation-text";
|
3372
|
-
const getInputDescribedByText$1 = (inputId, helperText, validationText) => `${
|
3372
|
+
const getInputDescribedByText$1 = (el, inputId, helperText, validationText) => `${isSlotUsed$1(el, "helper-text") || helperText
|
3373
|
+
? getInputHelperTextID$1(inputId)
|
3374
|
+
: ""} ${validationText ? getInputValidationTextID$1(inputId) : ""}`.trim();
|
3373
3375
|
/**
|
3374
3376
|
* This method helps to understand the context in which a component exists,
|
3375
3377
|
* to assist with choosing appropriate foreground colours to use. For example,
|
@@ -3385,25 +3387,24 @@ const getInputDescribedByText$1 = (inputId, helperText, validationText) => `${he
|
|
3385
3387
|
const getBrandFromContext$1 = (el, brandFromEvent = null) => {
|
3386
3388
|
var _a;
|
3387
3389
|
const parentElement = el.parentElement || el.getRootNode().host.parentElement;
|
3388
|
-
const blockColorParent = parentElement === null || parentElement === void 0 ? void 0 : parentElement.closest(IC_BLOCK_COLOR_COMPONENTS$1
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
|
3401
|
-
|
3402
|
-
|
3403
|
-
|
3390
|
+
const blockColorParent = parentElement === null || parentElement === void 0 ? void 0 : parentElement.closest(IC_BLOCK_COLOR_COMPONENTS$1);
|
3391
|
+
if (!blockColorParent)
|
3392
|
+
return IcBrandForegroundEnum$1.Default;
|
3393
|
+
const parentTag = blockColorParent.tagName.toLowerCase();
|
3394
|
+
if ((_a = IC_BLOCK_COLOR_EXCEPTIONS$1[parentTag]) === null || _a === void 0 ? void 0 : _a.includes(el.tagName.toLowerCase())) {
|
3395
|
+
return IcBrandForegroundEnum$1.Default;
|
3396
|
+
}
|
3397
|
+
else if (brandFromEvent !== null &&
|
3398
|
+
!IC_FIXED_COLOR_COMPONENTS$1.includes(parentTag)) {
|
3399
|
+
return brandFromEvent;
|
3400
|
+
}
|
3401
|
+
else if (blockColorParent.classList.contains(`${parentTag}-${IcBrandForegroundEnum$1.Dark}`) ||
|
3402
|
+
blockColorParent.classList.contains(IcBrandForegroundEnum$1.Dark)) {
|
3403
|
+
return IcBrandForegroundEnum$1.Dark;
|
3404
|
+
}
|
3405
|
+
else {
|
3404
3406
|
return IcBrandForegroundEnum$1.Light;
|
3405
3407
|
}
|
3406
|
-
return IcBrandForegroundEnum$1.Default;
|
3407
3408
|
};
|
3408
3409
|
/**
|
3409
3410
|
* Checks if the current device is a mobile or tablet device.
|
@@ -3421,12 +3422,13 @@ const isMobileOrTablet = () => "maxTouchPoints" in navigator && "userAgent" in n
|
|
3421
3422
|
* @param button - shadowDOM button
|
3422
3423
|
*/
|
3423
3424
|
const handleHiddenFormButtonClick = (form, button) => {
|
3424
|
-
|
3425
|
-
button
|
3425
|
+
var _a, _b;
|
3426
|
+
const hiddenFormButton = (_a = document.querySelector("#hidden-form-button")) !== null && _a !== void 0 ? _a : document.createElement("button");
|
3427
|
+
hiddenFormButton.setAttribute("type", (_b = button.type) !== null && _b !== void 0 ? _b : "button");
|
3428
|
+
hiddenFormButton.id = "hidden-form-button";
|
3426
3429
|
hiddenFormButton.style.display = "none";
|
3427
3430
|
form.appendChild(hiddenFormButton);
|
3428
3431
|
hiddenFormButton.click();
|
3429
|
-
hiddenFormButton.remove();
|
3430
3432
|
};
|
3431
3433
|
const isEmptyString$1 = (value) => !value || value.trim().length === 0;
|
3432
3434
|
// A helper function that checks if a prop has been defined
|
@@ -3522,15 +3524,10 @@ const getCssProperty$1 = (cssVar) => getComputedStyle(document.documentElement).
|
|
3522
3524
|
* This is a similar calculation to its CSS counterpart: "--ic-brand-text-color"
|
3523
3525
|
* @returns number representing the brightness of the theme colour
|
3524
3526
|
*/
|
3525
|
-
const getBrandColorBrightness = () =>
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3529
|
-
return ((parseInt(themeRed) * 299 +
|
3530
|
-
parseInt(themeGreen) * 587 +
|
3531
|
-
parseInt(themeBlue) * 114) /
|
3532
|
-
1000);
|
3533
|
-
};
|
3527
|
+
const getBrandColorBrightness = () => (parseInt(getCssProperty$1("--ic-brand-color-primary-r")) * 299 +
|
3528
|
+
parseInt(getCssProperty$1("--ic-brand-color-primary-g")) * 587 +
|
3529
|
+
parseInt(getCssProperty$1("--ic-brand-color-primary-b")) * 114) /
|
3530
|
+
1000;
|
3534
3531
|
/**
|
3535
3532
|
* Returns if dark or light foreground colors should be used for color contrast reasons
|
3536
3533
|
* @returns "dark" or "light"
|
@@ -5251,14 +5248,14 @@ class Button {
|
|
5251
5248
|
: undefined;
|
5252
5249
|
const hasLeftIcon = !!this.getSlottedIcon("left");
|
5253
5250
|
const hasRightIcon = !!this.getSlottedIcon("right");
|
5254
|
-
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
5251
|
+
const ButtonContent = () => this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(TagType, Object.assign({ class: "button", tabindex: 0, "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (hAsync("div", { class: "loading-container" }, hAsync("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (hAsync(Fragment, null, (hasLeftIcon ||
|
5255
5252
|
(!!this.getSlottedIcon("top") && !hasRightIcon)) && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), hAsync("slot", null), !dropdown
|
5256
5253
|
? hasRightIcon && (hAsync("div", { class: { "icon-container": true, "right-icon": true } }, hAsync("slot", { name: "right-icon" })))
|
5257
5254
|
: variant !== "icon" &&
|
5258
5255
|
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
5259
5256
|
? "dropdown-expanded"
|
5260
5257
|
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
5261
|
-
return (hAsync(Host, { key: '
|
5258
|
+
return (hAsync(Host, { key: '4e8888cdc523c32383945dbf5503a1d9129ed6e9', class: {
|
5262
5259
|
"ic-button-disabled": disabled && !loading,
|
5263
5260
|
"ic-button-full-width": fullWidth,
|
5264
5261
|
"ic-button-loading": loading,
|
@@ -5274,7 +5271,7 @@ class Button {
|
|
5274
5271
|
monochrome,
|
5275
5272
|
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
5276
5273
|
"with-badge": isSlotUsed$1(this.el, "badge"),
|
5277
|
-
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '
|
5274
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: 'ca33053f91d9716b014aa5fcd419e22cbdc553d8', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: 'bdfd844921507888ab65db6e46fd3ec4410a62b3' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '1400c01085f417f357a5523b295b022075a3480f', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: '36e6969ee4b09ac6fb8b93c3a5d5aa932f0621dc' }), describedByContent && (hAsync("span", { key: 'a4a130e848f981b08d2bc953016d836bc0000b62', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
5278
5275
|
}
|
5279
5276
|
static get delegatesFocus() { return true; }
|
5280
5277
|
get el() { return getElement(this); }
|
@@ -5468,7 +5465,9 @@ const getHiddenInputElement = (container) => Array.from(container.querySelectorA
|
|
5468
5465
|
const hasShadowDom = (el) => !!el && !!el.shadowRoot && !!el.attachShadow;
|
5469
5466
|
const getInputHelperTextID = (id) => id + "-helper-text";
|
5470
5467
|
const getInputValidationTextID = (id) => id + "-validation-text";
|
5471
|
-
const getInputDescribedByText = (inputId, helperText, validationText) => `${
|
5468
|
+
const getInputDescribedByText = (el, inputId, helperText, validationText) => `${isSlotUsed(el, "helper-text") || helperText
|
5469
|
+
? getInputHelperTextID(inputId)
|
5470
|
+
: ""} ${validationText ? getInputValidationTextID(inputId) : ""}`.trim();
|
5472
5471
|
/**
|
5473
5472
|
* This method helps to understand the context in which a component exists,
|
5474
5473
|
* to assist with choosing appropriate foreground colours to use. For example,
|
@@ -6138,10 +6137,13 @@ class Checkbox {
|
|
6138
6137
|
}; }
|
6139
6138
|
}
|
6140
6139
|
|
6141
|
-
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label ic-typography{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label ic-typography{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
6140
|
+
const icCheckboxGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-checkbox-group-label);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle);--ic-input-validation-error:var(--ic-checkbox-state-icon-error);--ic-input-validation-status-text-color:var(--ic-checkbox-state-text)}:host(.ic-checkbox-group-disabled){--ic-input-label-text-color:var(--ic-checkbox-group-label-disabled);--ic-input-label-helper-text-color:var(\n --ic-checkbox-group-subtitle-disabled\n )}ic-input-label.error{color:var(--ic-checkbox-group-label-error);--ic-typography-color:var(--ic-checkbox-group-label-error);--ic-input-label-helper-text-color:var(--ic-checkbox-group-subtitle-error)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-checkbox-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-checkbox-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}.checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxs))}:host(.ic-checkbox-group-small) .checkboxes-container{margin-bottom:calc(-1 * var(--ic-space-xxxs))}.screen-reader-only-text{position:absolute;left:-9999px;background-color:#fff;color:#000;text-transform:none}.screen-reader-only-text:dir(rtl){right:-9999px}";
|
6142
6141
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
6143
6142
|
|
6144
6143
|
const CHECKBOX_SELECTOR = "ic-checkbox";
|
6144
|
+
/**
|
6145
|
+
* @slot helper-text - Content is set as the helper text for the checkbox group.
|
6146
|
+
*/
|
6145
6147
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
6146
6148
|
class CheckboxGroup {
|
6147
6149
|
constructor(hostRef) {
|
@@ -6231,13 +6233,13 @@ class CheckboxGroup {
|
|
6231
6233
|
}
|
6232
6234
|
render() {
|
6233
6235
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
6234
|
-
const describedBy = getInputDescribedByText$1(name, helperText !== "", validationStatus !== "");
|
6236
|
+
const describedBy = getInputDescribedByText$1(this.el, name, helperText !== "", validationStatus !== "");
|
6235
6237
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
6236
|
-
return (hAsync(Host, { key: '
|
6238
|
+
return (hAsync(Host, { key: '3eab3a8d0cc27b77ac7daf1f6d3068533ab675bb', class: {
|
6237
6239
|
"ic-checkbox-group-disabled": !!disabled,
|
6238
6240
|
[`ic-checkbox-group-${size}`]: true,
|
6239
6241
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6240
|
-
} }, renderSRText && (hAsync("span", { key: '
|
6242
|
+
} }, renderSRText && (hAsync("span", { key: '3cbf05ef6c6df9737d8f40ecbe6db5944f8a2406', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: 'ce2d74b5e4f88c2cdfc6b730db2b3763c48df206', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '70a1b515ccd08e731837ee10f248163f342536b2' }, hAsync("ic-input-label", { key: '67be3445bb1dee8a2e1ccee88f16ae58fc81c77e', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, hAsync("slot", { key: 'be393bdcf6138057e1e0c65082817f590dbcadf7', name: "helper-text", slot: "helper-text" })))), hAsync("div", { key: 'd43399d04efc5501f5a8b118aedbba213410593b', class: "checkboxes-container" }, hAsync("slot", { key: '96c715128256965fb3acbe3ff5eca7bb5be9897b' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '6b4b02fd8819946472c6a0c60c050ef885168312', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
6241
6243
|
}
|
6242
6244
|
get el() { return getElement(this); }
|
6243
6245
|
static get watchers() { return {
|
@@ -6498,10 +6500,10 @@ class DataList {
|
|
6498
6500
|
if (size === "small") {
|
6499
6501
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
6500
6502
|
}
|
6501
|
-
return (hAsync(Host, { key: '
|
6503
|
+
return (hAsync(Host, { key: 'a10decea9f6872dd3a86cb4e8d989f1628ddd8dd', class: {
|
6502
6504
|
"ic-data-list-small": size === "small",
|
6503
6505
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6504
|
-
} }, hAsync("div", { key: '
|
6506
|
+
} }, hAsync("div", { key: '5e818e459c2dd23b6e021d82012150757b7520e9', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '2d68d50a52c8fc3882aa9138ce427c23ccdbc394', name: "heading" }, hAsync("ic-typography", { key: '275d859a1075fd96294913acf1a3b2b9bb1777c2', variant: "h3" }, heading))), hAsync("div", { key: '06e942c78939bf9526ef3bcebba1c76db3c3f608', class: "divider" }), hAsync("ul", { key: '9e7218ee17444774d184680d27e3e11424953bfc', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: 'a75aec759140988dc2d673385d7eef1fc0e7dba5' }))));
|
6505
6507
|
}
|
6506
6508
|
get el() { return getElement(this); }
|
6507
6509
|
static get style() { return IcDataListStyle0; }
|
@@ -6591,12 +6593,12 @@ class DataRow {
|
|
6591
6593
|
}
|
6592
6594
|
render() {
|
6593
6595
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
6594
|
-
return (hAsync(Host, { key: '
|
6596
|
+
return (hAsync(Host, { key: '2faf353c648f521406dc1318be100192dece1aab', class: {
|
6595
6597
|
["ic-data-row-small"]: size === "small",
|
6596
6598
|
["breakpoint-medium"]: listSize === "m",
|
6597
6599
|
["breakpoint-xs"]: listSize === "xs",
|
6598
6600
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6599
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
6601
|
+
}, role: "listitem" }, hAsync("div", { key: '3d8e82d44292400dc5cf92230967eb3c9cc57cd0', class: "data" }, hAsync("div", { key: '1e1edf0e3cefbe7cf2bb7e6ab973e55eeab1c0e3', class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '0b60b67c17cce484293060ec5ba89619f527e5c9', class: "end-component" }, hAsync("slot", { key: '403f6290fd00ef44fa02baaeed36932caf6f9902', name: "end-component" })))), hAsync("div", { key: '653123df7e4243474aa5254d948b1666c9b50722', class: "divider" })));
|
6600
6602
|
}
|
6601
6603
|
get el() { return getElement(this); }
|
6602
6604
|
static get style() { return IcDataRowStyle0; }
|
@@ -6629,7 +6631,7 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
6629
6631
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
6630
6632
|
</svg>`;
|
6631
6633
|
|
6632
|
-
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-
|
6634
|
+
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-dialog) - 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;-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-dialog) - 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}}";
|
6633
6635
|
var IcDataTableStyle0 = icDataTableCss;
|
6634
6636
|
|
6635
6637
|
/**
|
@@ -6645,6 +6647,8 @@ class DataTable {
|
|
6645
6647
|
this.icRowHeightChange = createEvent(this, "icRowHeightChange", 7);
|
6646
6648
|
this.icSelectAllRows = createEvent(this, "icSelectAllRows", 7);
|
6647
6649
|
this.icSelectedRowChange = createEvent(this, "icSelectedRowChange", 7);
|
6650
|
+
this.icColumnsLoaded = createEvent(this, "icColumnsLoaded", 7);
|
6651
|
+
this.icDataLoaded = createEvent(this, "icDataLoaded", 7);
|
6648
6652
|
this.icSortChange = createEvent(this, "icSortChange", 7);
|
6649
6653
|
this.DENSITY_HEIGHT_MULTIPLIER = {
|
6650
6654
|
dense: 0.8,
|
@@ -6670,6 +6674,7 @@ class DataTable {
|
|
6670
6674
|
this.TEXT_WRAP_STRING = "text-wrap";
|
6671
6675
|
this.TEXT_WRAP_CLASS = `.${this.TEXT_WRAP_STRING}`;
|
6672
6676
|
this.dataUpdated = false;
|
6677
|
+
this.columnsUpdated = false;
|
6673
6678
|
this.rowHeightSet = false;
|
6674
6679
|
this.initialLoad = false;
|
6675
6680
|
this.icPageChangeEvent = false;
|
@@ -6813,6 +6818,10 @@ class DataTable {
|
|
6813
6818
|
}
|
6814
6819
|
}
|
6815
6820
|
};
|
6821
|
+
this.handleResize = () => {
|
6822
|
+
this.updateCellHeightsWithDescriptions();
|
6823
|
+
this.fixCellSelect();
|
6824
|
+
};
|
6816
6825
|
this.getRowHeight = (cellContainer) => parseInt(getComputedStyle(document.documentElement).fontSize) *
|
6817
6826
|
parseFloat(cellContainer.getAttribute(this.DATA_ROW_HEIGHT_STRING) || "");
|
6818
6827
|
this.truncateUpdatedData = () => {
|
@@ -7151,7 +7160,8 @@ class DataTable {
|
|
7151
7160
|
};
|
7152
7161
|
this.createUpdatingIndicator = () => {
|
7153
7162
|
const { description, max, min, progress, monochrome } = this.updatingOptions || {};
|
7154
|
-
|
7163
|
+
const visibleColumnCount = this.columns.filter((col) => col.hidden !== true).length;
|
7164
|
+
return (hAsync("th", { colSpan: visibleColumnCount + (this.rowSelection && this.data ? 1 : 0), class: "updating-state" }, hAsync("ic-loading-indicator", { theme: this.theme, monochrome: monochrome, description: description || "Updating table data", fullWidth: true, max: max, min: min, progress: progress, type: "linear", size: "small" })));
|
7155
7165
|
};
|
7156
7166
|
this.setRowHeight = (height) => pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
7157
7167
|
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
@@ -7247,43 +7257,42 @@ class DataTable {
|
|
7247
7257
|
const currentRowHeight = variableRowHeightVal
|
7248
7258
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
7249
7259
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
7250
|
-
return this.columns.map((
|
7260
|
+
return this.columns.map((column, index) => {
|
7251
7261
|
var _a, _b, _c, _d;
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7271
|
-
|
7272
|
-
|
7273
|
-
|
7274
|
-
|
7275
|
-
|
7276
|
-
|
7277
|
-
|
7278
|
-
|
7279
|
-
|
7280
|
-
|
7281
|
-
|
7282
|
-
: undefined }))) : (CellContent)));
|
7262
|
+
if (column.hidden !== true) {
|
7263
|
+
const cell = this.getObjectValue(row, column["key"]);
|
7264
|
+
const cellValue = (key) => this.getObjectValue(cell, key);
|
7265
|
+
if (rowKeys[index] === "header") {
|
7266
|
+
return (hAsync("th", { scope: "row", colSpan: cellValue("colspan"), class: {
|
7267
|
+
["row-header"]: true,
|
7268
|
+
[`row-header-alignment-${cellValue("cellAlignment")}`]: !!cellValue("cellAlignment"),
|
7269
|
+
["row-header-sticky"]: this.stickyRowHeaders,
|
7270
|
+
} }, cellValue("title")));
|
7271
|
+
}
|
7272
|
+
const CellContent = this.createCellContent(column, cell, `${column === null || column === void 0 ? void 0 : column.key}-${rowIndex}`, rowOptions, this.isObject(cell) && Object.keys(cell).includes("icon"), cellValue, rowEmphasis, currentRowHeight || undefined);
|
7273
|
+
if (rowKeys[index] !== "rowOptions") {
|
7274
|
+
return (hAsync("td", { class: {
|
7275
|
+
["table-cell"]: true,
|
7276
|
+
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
7277
|
+
["with-overflow"]: (column === null || column === void 0 ? void 0 : column.dataType) === "element",
|
7278
|
+
[`cell-vertical-align-${((_a = column === null || column === void 0 ? void 0 : column.columnAlignment) === null || _a === void 0 ? void 0 : _a.vertical) ||
|
7279
|
+
((_b = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _b === void 0 ? void 0 : _b.vertical) ||
|
7280
|
+
rowAlignment ||
|
7281
|
+
this.getCellAlignment(cell, "vertical")}`]: !!((_c = column === null || column === void 0 ? void 0 : column.columnAlignment) === null || _c === void 0 ? void 0 : _c.vertical) ||
|
7282
|
+
!!((_d = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.rowAlignment) === null || _d === void 0 ? void 0 : _d.vertical) ||
|
7283
|
+
!!rowAlignment ||
|
7284
|
+
!!this.getCellAlignment(cell, "vertical"),
|
7285
|
+
}, style: Object.assign({}, this.getColumnWidth(column.columnWidth)) }, this.isObject(cell) &&
|
7286
|
+
Object.keys(cell).includes("actionElement") ? (hAsync("div", { class: "cell-grid-wrapper" }, CellContent, hAsync("span", { class: "action-element", innerHTML: cellValue("actionElement"),
|
7287
|
+
// eslint-disable-next-line react/jsx-no-bind
|
7288
|
+
onClick: cell.actionOnClick
|
7289
|
+
? (event) => this.handleClick(event, cell.actionOnClick)
|
7290
|
+
: undefined }))) : (CellContent)));
|
7291
|
+
}
|
7283
7292
|
}
|
7284
7293
|
});
|
7285
7294
|
};
|
7286
|
-
this.createColumnHeaders = () => (this.columns || []).map(({ cellAlignment, colspan, icon, key, title, columnWidth, excludeColumnFromSort, }, index) => (hAsync("th", { scope: "col", class: {
|
7295
|
+
this.createColumnHeaders = () => (this.columns || []).map(({ cellAlignment, colspan, icon, key, title, columnWidth, excludeColumnFromSort, hidden, }, index) => hidden !== true && (hAsync("th", { scope: "col", class: {
|
7287
7296
|
["column-header"]: true,
|
7288
7297
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
7289
7298
|
["updating-state-headers"]: this.updating && !this.loading,
|
@@ -7298,7 +7307,7 @@ class DataTable {
|
|
7298
7307
|
} }, title))) : (hAsync("ic-typography", { variant: "body", class: {
|
7299
7308
|
["column-header-text"]: true,
|
7300
7309
|
[`text-${this.density}`]: this.notDefaultDensity(),
|
7301
|
-
} }, title)), this.sortable && !excludeColumnFromSort && (hAsync("ic-button", { variant: "icon", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
7310
|
+
} }, title)), this.sortable && !excludeColumnFromSort && (hAsync("ic-button", { variant: "icon-tertiary", id: `sort-button-${key}`, "aria-label": this.getSortButtonLabel(key),
|
7302
7311
|
// eslint-disable-next-line react/jsx-no-bind
|
7303
7312
|
onClick: () => this.sortRows(key), innerHTML: this.SORT_ICONS[this.sortedColumn === key
|
7304
7313
|
? this.sortedColumnOrder
|
@@ -7330,7 +7339,7 @@ class DataTable {
|
|
7330
7339
|
this.icSelectAllRows.emit(this.selectedRows);
|
7331
7340
|
};
|
7332
7341
|
this.createRows = () => {
|
7333
|
-
var _a, _b, _c;
|
7342
|
+
var _a, _b, _c, _d;
|
7334
7343
|
const data = this.showPagination
|
7335
7344
|
? (_a = this.data) === null || _a === void 0 ? void 0 : _a.slice(this.fromRow, this.toRow)
|
7336
7345
|
: (_b = this.data) === null || _b === void 0 ? void 0 : _b.slice();
|
@@ -7354,9 +7363,12 @@ class DataTable {
|
|
7354
7363
|
? addDataToPosition(row, slottedColumns, "")
|
7355
7364
|
: row;
|
7356
7365
|
});
|
7357
|
-
return (_c = this.organisedData) === null || _c === void 0 ? void 0 : _c.sort(
|
7358
|
-
|
7359
|
-
|
7366
|
+
return (_c = this.organisedData) === null || _c === void 0 ? void 0 : _c.sort(this.sortable &&
|
7367
|
+
!this.disableAutoSort &&
|
7368
|
+
this.sortedColumn &&
|
7369
|
+
!((_d = this.columns.find((col) => col.key === this.sortedColumn)) === null || _d === void 0 ? void 0 : _d.disableAutoSort)
|
7370
|
+
? this.getSortFunction()
|
7371
|
+
: undefined).map((row, index) => {
|
7360
7372
|
const isRowSelected = this.rowSelection && this.selectedRows.includes(row);
|
7361
7373
|
const cellIndex = index + paginationOffset;
|
7362
7374
|
return (hAsync("tr", { class: {
|
@@ -7546,6 +7558,22 @@ class DataTable {
|
|
7546
7558
|
strategy: "fixed",
|
7547
7559
|
});
|
7548
7560
|
};
|
7561
|
+
this.fixCellSelect = () => {
|
7562
|
+
var _a, _b;
|
7563
|
+
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".data-type-element")) === null || _b === void 0 ? void 0 : _b.forEach((element) => {
|
7564
|
+
const children = Array.from(element.children);
|
7565
|
+
children === null || children === void 0 ? void 0 : children.forEach((el) => {
|
7566
|
+
var _a;
|
7567
|
+
if (el.tagName === "IC-SELECT") {
|
7568
|
+
const menu = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-menu");
|
7569
|
+
menu === null || menu === void 0 ? void 0 : menu.setExternalPopperProps({
|
7570
|
+
strategy: "fixed",
|
7571
|
+
});
|
7572
|
+
el.style.setProperty("--input-width", `${element.clientWidth}px`);
|
7573
|
+
}
|
7574
|
+
});
|
7575
|
+
});
|
7576
|
+
};
|
7549
7577
|
this.fixCellTooltips = () => {
|
7550
7578
|
var _a, _b, _c, _d;
|
7551
7579
|
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".data-type-element")) === null || _b === void 0 ? void 0 : _b.forEach((element) => {
|
@@ -7616,10 +7644,14 @@ class DataTable {
|
|
7616
7644
|
});
|
7617
7645
|
}
|
7618
7646
|
}
|
7647
|
+
columnsChangeHandler() {
|
7648
|
+
this.columnsUpdated = true;
|
7649
|
+
}
|
7619
7650
|
disconnectedCallback() {
|
7620
7651
|
var _a, _b;
|
7621
7652
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
7622
7653
|
(_b = this.headerResizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
7654
|
+
window.removeEventListener("resize", this.handleResize);
|
7623
7655
|
}
|
7624
7656
|
componentWillLoad() {
|
7625
7657
|
this.rowsPerPage = Number(this.paginationBarOptions.itemsPerPageOptions[0].value);
|
@@ -7671,7 +7703,10 @@ class DataTable {
|
|
7671
7703
|
if (this.globalRowHeight !== "auto") {
|
7672
7704
|
this.updateSetRowHeight();
|
7673
7705
|
}
|
7674
|
-
window.addEventListener("resize", this.
|
7706
|
+
window.addEventListener("resize", this.handleResize);
|
7707
|
+
this.icColumnsLoaded.emit();
|
7708
|
+
if (this.data && !this.loading && !this.updating)
|
7709
|
+
this.icDataLoaded.emit();
|
7675
7710
|
}
|
7676
7711
|
componentDidUpdate() {
|
7677
7712
|
// truncation updates invoked here once new/updated data has
|
@@ -7700,9 +7735,18 @@ class DataTable {
|
|
7700
7735
|
this.truncatePatternUpdated();
|
7701
7736
|
}
|
7702
7737
|
}
|
7738
|
+
if (this.columnsUpdated) {
|
7739
|
+
this.icColumnsLoaded.emit();
|
7740
|
+
this.columnsUpdated = false;
|
7741
|
+
}
|
7742
|
+
if (this.dataUpdated && !this.loading && !this.updating) {
|
7743
|
+
this.icDataLoaded.emit();
|
7744
|
+
this.dataUpdated = false;
|
7745
|
+
}
|
7703
7746
|
}
|
7704
7747
|
componentDidRender() {
|
7705
7748
|
this.fixCellTooltips();
|
7749
|
+
this.fixCellSelect();
|
7706
7750
|
this.updateCellHeightsWithDescriptions();
|
7707
7751
|
this.adjustWidthForActionElement();
|
7708
7752
|
}
|
@@ -7922,22 +7966,22 @@ class DataTable {
|
|
7922
7966
|
? "deselect all"
|
7923
7967
|
: "select all remaining"
|
7924
7968
|
: "select all";
|
7925
|
-
return (hAsync(Host, { key: '
|
7969
|
+
return (hAsync(Host, { key: '3052bc97a810739103b780229d462a9ba1d63ea5', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '4ffa82385024818947871897ce977fe95bce8a9d', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '91985d43c24fd4bbc76ccf96a67a1fa19ce70461', name: "title-bar" }), hAsync("div", { key: '34c7cd54e7e1d91c1fc7a2ce9b4802b9746a82bf', class: {
|
7926
7970
|
["table-row-container"]: true,
|
7927
7971
|
scrollable,
|
7928
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
7972
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '93ef0fbb09a56f3890fa23d5a0dc276af9ad4dda', style: {
|
7929
7973
|
"--table-layout": tableLayout,
|
7930
|
-
} }, hAsync("caption", { key: '
|
7974
|
+
} }, hAsync("caption", { key: '6add0ea2caa1c21a5625a34145d70fc6228e324c', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: 'de60c4fd48671d474244ff05316deedd44f98fb2', class: {
|
7931
7975
|
["column-header-sticky"]: stickyColumnHeaders,
|
7932
7976
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
7933
|
-
} }, hAsync("tr", { key: '
|
7977
|
+
} }, hAsync("tr", { key: 'c7083cfce06a32d81e351b68d2cb722a79f29d7d' }, rowSelection && data && (hAsync("th", { key: '736708f68f9736806fa680c9abba7ff82bdb5798', class: {
|
7934
7978
|
"column-header": true,
|
7935
7979
|
"checkbox-cell": true,
|
7936
7980
|
"updating-state-headers": updating && !loading,
|
7937
7981
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
7938
|
-
} }, hAsync("div", { key: '
|
7982
|
+
} }, hAsync("div", { key: '46f06aa00589a14972aee324293b8d3c6695f232', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: 'a39b7d79439620a8d895837043530a3436837d18', 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 &&
|
7939
7983
|
!loading &&
|
7940
|
-
(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: '
|
7984
|
+
(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: 'ca4c4e8ff912756de23061b17d2dc29511a39a81', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: '43601b607b4a32605f3a946b33746c47152fefa7', 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: '69a5c565f55d1d149bad3d2172008dee7d0e8643', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
7941
7985
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
7942
7986
|
sortedColumn} sorted ${sortedColumnOrder}`
|
7943
7987
|
: "table unsorted")))));
|
@@ -7945,6 +7989,7 @@ class DataTable {
|
|
7945
7989
|
get el() { return getElement(this); }
|
7946
7990
|
static get watchers() { return {
|
7947
7991
|
"columnHeaderTruncation": ["headerTruncationChangeHandler"],
|
7992
|
+
"columns": ["columnsChangeHandler"],
|
7948
7993
|
"loading": ["loadingHandler"],
|
7949
7994
|
"truncationPattern": ["truncationPatternHandler"],
|
7950
7995
|
"data": ["dataHandler"],
|
@@ -8176,6 +8221,9 @@ const icDateInputCss = "/*! normalize.css v8.0.1 | MIT License | github.com/neco
|
|
8176
8221
|
var IcDateInputStyle0 = icDateInputCss;
|
8177
8222
|
|
8178
8223
|
let inputIds$4 = 0;
|
8224
|
+
/**
|
8225
|
+
* @slot helper-text - Content is set as the helper text for the date input.
|
8226
|
+
*/
|
8179
8227
|
class DateInput {
|
8180
8228
|
constructor(hostRef) {
|
8181
8229
|
registerInstance(this, hostRef);
|
@@ -8770,7 +8818,7 @@ class DateInput {
|
|
8770
8818
|
}
|
8771
8819
|
const hasValidation = !isEmptyString(this.validationStatus) ||
|
8772
8820
|
!isEmptyString(this.invalidDateText);
|
8773
|
-
const labelledBy = `${(_c = labelEl === null || labelEl === void 0 ? void 0 : labelEl.id) !== null && _c !== void 0 ? _c : ""} ${this.screenReaderInfoId} ${getInputDescribedByText(this.inputId, this.helperText !== "" && this.helperText !== this.defaultHelperText, hasValidation)} ${this.selectedDate ? this.selectedDateInfoId : ""} ${this.assistiveHintId}`;
|
8821
|
+
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.selectedDate ? this.selectedDateInfoId : ""} ${this.assistiveHintId}`;
|
8774
8822
|
this.inputCompContainerEl.setAttribute(this.ARIA_LABELLED_BY, labelledBy);
|
8775
8823
|
};
|
8776
8824
|
// Sets boolean for each input, used to limit the number of characters within each field (2 for day / month, 4 for year)
|
@@ -9330,15 +9378,15 @@ class DateInput {
|
|
9330
9378
|
: "";
|
9331
9379
|
const assistiveHint = `Type or use the up and down arrow keys to change the values for the ${this.getDescOfInputsOrder()}.`;
|
9332
9380
|
renderHiddenInput(true, this.el, this.name, this.convertToDate(this.year, this.month, this.day), this.disabled);
|
9333
|
-
return (hAsync(Host, { key: '
|
9381
|
+
return (hAsync(Host, { key: '122e391feab061910df84e3d56e68fbc7f156200', class: {
|
9334
9382
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
9335
9383
|
[`ic-date-input-disabled`]: disabled,
|
9336
|
-
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: '
|
9384
|
+
}, onBlur: this.handleHostBlur, onFocus: this.handleHostFocus }, hAsync("ic-input-container", { key: 'dcff982602fe698e1742385e39989ff411e47d32', disabled: disabled }, !(hideLabel && hideHelperText) && (hAsync("ic-input-label", { key: 'a45ed09d0ed10cb8324ee792be68a722979d5b58', for: inputId, label: label, hideLabel: hideLabel, helperText: !hideHelperText ? helperText : "", disabled: disabled }, hAsync("slot", { key: 'd0d6058f9871862bbdf4b2bff96f47ce8a69ca37', name: "helper-text", slot: "helper-text" }))), hAsync("span", { key: 'de33a32a5fac94049cf18bd93d74153251947543', id: this.screenReaderInfoId, class: "sr-only", "aria-hidden": "true" }, this.getScreenReaderInfo(validationStatus), hideLabel && `${label}\n`, hideHelperText && `${helperText}\n`, `${this.defaultHelperText}.`), hAsync("span", { key: '9ab60d6b4abbbb6e7a132445e54e455fd4445de3', id: this.assistiveHintId, class: "sr-only", "aria-hidden": "true" }, assistiveHint), hAsync("span", { key: 'e71fe1384621212178ac42e05d8f21c1c4687c05', id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("ic-input-component-container", { key: '9efc7dff02c1ff4064933d9ef5638e33e59ff0be', id: inputId, ref: (el) => (this.inputCompContainerEl = el), disabled: disabled, validationStatus: validationStatus, size: size, role: "group", class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '56e55cbc0002c8ea6daeb5d6d5084e69ace6993e', class: "input-container" }, hAsync("div", { key: '7afd9c5aee209c9abc19a54c90d5d40693a7af24', class: "date-inputs" }, this.getInputsInOrder()[0], "/", this.getInputsInOrder()[1], "/", this.getInputsInOrder()[2]), hAsync("div", { key: 'ae899b397150f56bd30720d6d6b108093aed8b83', class: "action-buttons" }, showClearButton && (hAsync("ic-button", { key: 'd28dbe1a6aae23cf51bc0312258d54566367e581', id: "clear-button", "aria-label": "Clear input", class: {
|
9337
9385
|
["clear-button"]: true,
|
9338
9386
|
["hidden"]: isEmptyString(this.day) &&
|
9339
9387
|
isEmptyString(this.month) &&
|
9340
9388
|
isEmptyString(this.year),
|
9341
|
-
}, 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: '
|
9389
|
+
}, 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: 'a4c5ddcc71056d5454384a3aa6b9f4edbbcd1a2e', class: "show-calendar-button-wrapper" }, hAsync("div", { key: '442197fbb8aec87289ea252b816f6a80fab68dd2', class: { divider: true, [size]: true } }), hAsync("ic-button", { key: '147f456ff93202de5f345cf2fa23786386cf2533', 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: 'cd12572ae2da8bf31fe6c2671f1aca5456390ff3', id: this.selectedDateInfoId, class: "sr-only", "aria-live": "polite" }, hAsync("span", { key: '0dd0865f5286c64ee26e6f4970c467b3bdec8785', ref: (el) => (this.selectedDateInfoEl = el), role: "status" })), (hasCustomValidation || !isEmptyString(this.invalidDateText)) && (hAsync("ic-input-validation", { key: '5ed738cc050d45d273825ddbe48fa724621cb931', status: validationStatus, message: hasCustomValidation ? this.validationText : this.invalidDateText, for: inputId })))));
|
9342
9390
|
}
|
9343
9391
|
static get delegatesFocus() { return true; }
|
9344
9392
|
get el() { return getElement(this); }
|
@@ -9527,6 +9575,9 @@ const FOCUS_TIMER = 100;
|
|
9527
9575
|
const PICKER_HEIGHT_SMALL = 360;
|
9528
9576
|
const PICKER_HEIGHT_DEFAULT = 400;
|
9529
9577
|
const PICKER_HEIGHT_LARGE = 440;
|
9578
|
+
/**
|
9579
|
+
* @slot helper-text - Content is set as the helper text for the date picker.
|
9580
|
+
*/
|
9530
9581
|
class DatePicker {
|
9531
9582
|
constructor(hostRef) {
|
9532
9583
|
registerInstance(this, hostRef);
|
@@ -10511,33 +10562,33 @@ class DatePicker {
|
|
10511
10562
|
yesterday.setDate(minDate.getDate() - 1);
|
10512
10563
|
minDay = yesterday;
|
10513
10564
|
}
|
10514
|
-
return (hAsync(Host, { key: '
|
10565
|
+
return (hAsync(Host, { key: 'f3e096ad765455113084b5c26571383bda7d3d75', onKeyDown: this.keyDownHandler, class: {
|
10515
10566
|
[`ic-date-picker-${size}`]: true,
|
10516
10567
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
10517
|
-
} }, hAsync("div", { key: '
|
10568
|
+
} }, hAsync("div", { key: 'db290c92bf7a22901f7888693fdd4a501b75da0f', class: "date-input-container" }, hAsync("ic-date-input", Object.assign({ key: '1f2b3537e582d1abb5370e4b73f7d6e4bfb7ff6c', ref: (el) => (this.inputEl = el) }, dateInputProps), hAsync("slot", { key: 'e1bd896a33c3fe7468287e19c3959809d2e12831', name: "helper-text", slot: "helper-text" }))), calendarOpen && (hAsync("div", { key: '3e15ffe8f4e3859197f212c232641e48ed9977fa' }, hAsync("span", { key: '5840a049f8f278395fc09a9ed4d63ac00a1dc00e', id: "dialog-description", class: "sr-only" }, dialogDescription), hAsync("div", { key: '4c0dcd3ba00e077ccc7feee92389cc1b6ab33e7e', role: "dialog", "aria-modal": "true", "aria-label": dialogLabel, "aria-describedBy": "dialog-description", class: {
|
10518
10569
|
"calendar-container": true,
|
10519
10570
|
above: this.showPickerAbove,
|
10520
|
-
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '
|
10571
|
+
}, onMouseDown: this.handleCalendarMouseDown, onClick: this.handleCalendarClick }, hAsync("span", { key: '5b273eb2c9651d28343c6626c1493858c87c35ec', ref: (el) => (this.liveRegionEl = el), id: "live-region", "aria-live": "assertive", class: "sr-only" }), hAsync("div", { key: '1b8699fbe3f8de8b321f9bf2d84b26eee18b949a', class: {
|
10521
10572
|
"month-year-nav-container": true,
|
10522
|
-
} }, hAsync("div", { key: '
|
10573
|
+
} }, hAsync("div", { key: 'f5390a3d685bc75bc220b5e6c25634301b3b3001', class: "month-year-nav" }, this.previousMonthButton(), hAsync("span", { key: '23323f66c1fa8a68019f1c4dc7341d8e6d672adc', id: "select-month-hint", "aria-hidden": "true" }, monthButtonText), hAsync("ic-button", { key: '1f6d75f9f18eee7acbb59359dab51eecb0051415', 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: '42a149729b419b69e976896a097bedd040879a09', class: "month-year-nav" }, this.previousYearButton(), hAsync("span", { key: 'f94101cb4e146f26822856a009f9238109d8f9ce', id: "select-year-hint", "aria-hidden": "true" }, yearButtonText), hAsync("ic-button", { key: 'f1edef2db467cabec041e67c72920ce07ef30738', 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: '30d7102d463465b51cce6087f9a89d4875d121fc', class: {
|
10523
10574
|
calendar: true,
|
10524
10575
|
hidden: monthPickerVisible || yearPickerVisible,
|
10525
|
-
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '
|
10576
|
+
}, onKeyDown: this.handleCalendarKeyDown }, hAsync("div", { key: '4b4bfc6e263a68db7706310b87b0176b67652bbe', class: "weekdays", "aria-hidden": "true" }, orderedDaysOfWeek.map((dayName) => {
|
10526
10577
|
const header = size === "small" ? dayName.charAt(0) : dayName;
|
10527
10578
|
return (hAsync("div", { class: "calendar-day-header" }, hAsync("ic-typography", { variant: "caption" }, header)));
|
10528
|
-
})), hAsync("div", { key: '
|
10579
|
+
})), hAsync("div", { key: '57ceb661dd3a493e49f7eea698c04125d81460d6', class: "calendar-days-container" }, this.currMonthView.map((day) => {
|
10529
10580
|
var _a;
|
10530
10581
|
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 }));
|
10531
|
-
})))), hAsync("div", { key: '
|
10582
|
+
})))), hAsync("div", { key: 'da06f9d055aa5e45a05e56171122ae63be7fc129', class: {
|
10532
10583
|
"month-picker-container": true,
|
10533
10584
|
hidden: !monthPickerVisible,
|
10534
|
-
} }, monthPickerVisible && (hAsync(MonthPicker, { key: '
|
10585
|
+
} }, monthPickerVisible && (hAsync(MonthPicker, { key: 'af37ea4853db314da047c8d8156564897898cf5f', size: size, onSelectMonth: this.handleSelectMonth, monthInView: monthInView, focussedMonth: focussedMonth, onKeyDown: this.monthPickerKeyDownHandler, focussedMonthRef: this.setFocussedMonthEl, minDate: minDate, maxDate: maxDate, yearInView: yearInView }))), hAsync("div", { key: '8d57c717c9e693ea67b41d08a990a898adeec130', class: {
|
10535
10586
|
"year-picker-container": true,
|
10536
10587
|
hidden: !yearPickerVisible,
|
10537
|
-
} }, yearPickerVisible && (hAsync(YearPicker, { key: '
|
10588
|
+
} }, yearPickerVisible && (hAsync(YearPicker, { key: '71b214123bd08a4808f25eae9e3e90ad82d56460', 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: '9d6cd8b19f7adf76c8f5249e985cdcdb8dd1f0ca', class: {
|
10538
10589
|
"bottom-buttons": true,
|
10539
10590
|
"no-today": !showPickerTodayButton,
|
10540
|
-
} }, showPickerTodayButton && (hAsync("ic-button", { key: '
|
10591
|
+
} }, showPickerTodayButton && (hAsync("ic-button", { key: '75ab2fd1ce1d41d805e4082fe5d8e215782b59b4', 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: '5a60dca9237999a2ecbaaad8c254527178bfc94c', 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 === "" ||
|
10541
10592
|
this.value === null ||
|
10542
10593
|
this.value === undefined }, "Clear"))))))));
|
10543
10594
|
}
|
@@ -10958,7 +11009,7 @@ class Dialog {
|
|
10958
11009
|
}
|
10959
11010
|
render() {
|
10960
11011
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
10961
|
-
return (hAsync(Host, { key: '
|
11012
|
+
return (hAsync(Host, { key: 'e8517bd103f365705b664f80c494df70972dd9c4', class: {
|
10962
11013
|
"ic-dialog-hidden": !dialogRendered,
|
10963
11014
|
"ic-dialog-fade-in": fadeIn,
|
10964
11015
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -11158,11 +11209,11 @@ class EmptyState {
|
|
11158
11209
|
}
|
11159
11210
|
render() {
|
11160
11211
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
11161
|
-
return (hAsync(Host, { key: '
|
11212
|
+
return (hAsync(Host, { key: '1742fa428f2c887fd9b0a200fa5f4040c3ceedf3', class: {
|
11162
11213
|
[`ic-empty-state-${aligned}`]: true,
|
11163
11214
|
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
11164
11215
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
11165
|
-
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '
|
11216
|
+
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '781c3afcd34547dba24bdc777fed7b704d2d27ad', name: "image" }), hAsync("div", { key: 'a8eb38fb47f8e03d3654cc3f26d12ff1369a52ff' }, hAsync("slot", { key: '4375bf33214131da721591bfbea44d03514b9836', name: "heading" }, hAsync("ic-typography", { key: 'd83b8868e417e55a574716e380be3e99ea2f3aa3', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: '79d4fe82562ba2d44ffa5a693a3e9d5743984bbd', name: "subheading" }, hAsync("ic-typography", { key: 'ffd4e8d460b03c3b90b477c0d2f420492a337165', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: '166e1b63631dc5f6a5ada15867fae52442c18e14', name: "body" }, hAsync("ic-typography", { key: 'f63a9ec68fe53dadddd3cb26ffe6478164caf3af', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: 'ccf0fe966f7a2c6f5225005d5bd4266523bf5267', class: "action-area" }, hAsync("slot", { key: 'f9f8f74c450aed47b1e8f0467e290714237251b0', name: "actions" })))));
|
11166
11217
|
}
|
11167
11218
|
get el() { return getElement(this); }
|
11168
11219
|
static get style() { return IcEmptyStateStyle0; }
|
@@ -11355,12 +11406,12 @@ class FooterLink {
|
|
11355
11406
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
11356
11407
|
const { small, grouped } = footerConfig;
|
11357
11408
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
11358
|
-
return (hAsync(Host, { key: '
|
11409
|
+
return (hAsync(Host, { key: 'da292a4ecbb670fb85eddac93d4e8743a7f7a5a3', class: {
|
11359
11410
|
"footer-link": true,
|
11360
11411
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
11361
11412
|
[`footer-link-${this.foregroundColor}`]: true,
|
11362
11413
|
"footer-logo-link": isLogoLink,
|
11363
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
11414
|
+
}, role: "listitem" }, hAsync("ic-link", { key: 'ba008bce21d6a1a062d69515578c158908c4f413', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: '45d18d8d1009b438338c2153a2b59c88d6f3c320' }))));
|
11364
11415
|
}
|
11365
11416
|
static get delegatesFocus() { return true; }
|
11366
11417
|
get el() { return getElement(this); }
|
@@ -11535,18 +11586,18 @@ class Hero {
|
|
11535
11586
|
"background-position": scrollFactor,
|
11536
11587
|
};
|
11537
11588
|
}
|
11538
|
-
return (hAsync(Host, { key: '
|
11589
|
+
return (hAsync(Host, { key: '4c88b4471d3485baff1f6c55f859639feb3166d8', class: {
|
11539
11590
|
[`ic-hero-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
11540
11591
|
["has-background-image"]: backgroundImage !== undefined,
|
11541
11592
|
["has-right-content"]: this.rightContent,
|
11542
11593
|
["ic-hero-small"]: size === "small",
|
11543
11594
|
["secondary-heading"]: !!secondaryHeading,
|
11544
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
11595
|
+
}, style: style }, hAsync("ic-section-container", { key: 'b68716e353d9b2767dc16a5f701e3cdcbd32c748', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '6dd6f422c0bd36725be4b41b42633aeebfa1911d', class: {
|
11545
11596
|
["left-container"]: true,
|
11546
11597
|
["left-container-full-width"]: this.leftContentFullWidth,
|
11547
|
-
} }, hAsync("div", { key: '
|
11598
|
+
} }, hAsync("div", { key: '54ffef99b79eef5eedbf1571bff89270982b5671', class: "heading" }, hAsync("slot", { key: '6b7f71caecbaa84d1a39295e100aedef32d1d522', name: "heading" }, hAsync("ic-typography", { key: '841b429a53b8b72dd60017cb2b2404b826f5bbe8', variant: size === "small" ? "h2" : "h1", class: {
|
11548
11599
|
["heading-bottom-spacing"]: size !== "small",
|
11549
|
-
} }, hAsync("h2", { key: '
|
11600
|
+
} }, hAsync("h2", { key: 'ee802d396bb8a5638f2ab8a62fddbf764436e20e' }, heading)))), hAsync("div", { key: '9a051783a24c9a92fc0aeff2db50689befe4834e', class: "subheading" }, hAsync("slot", { key: 'eb894eaeb4b4303be0caf090d85d487aa11284fb', name: "subheading" }, hAsync("ic-typography", { key: '92b4d9af6118e2ff9bf2b9166862067c610fffee', variant: "body" }, subheading))), hAsync("div", { key: 'cacf81a4666eba19211493914e9b1af466e61478', class: "interaction-container" }, hAsync("slot", { key: '982fb4b528bea4c486d9c0df2cf47fb3ace19414', name: "interaction" }))), (isPropDefined$1(secondaryHeading) || this.rightContent) && (hAsync("div", { key: '32cd6196da302dd5d0896c90d53d1b35c060e31c', class: "right-container" }, hAsync("slot", { key: '655f0a9978d8402faab43e7e143987f2934255f6', name: "secondary" }, secondaryHeading && (hAsync("div", { key: '94de7e79fd9122b4084b57bf0b5b0571d77e7adc', class: "secondary-container" }, hAsync("div", { key: 'afd414fd37f9b1c8fb6d9f2d7957314f35a1da40', class: "secondary-heading" }, hAsync("ic-typography", { key: 'd643e471ec716d3e6f33ec7761027323ca31bc8c', variant: "h4" }, hAsync("h3", { key: 'f6296bbd33d2ca70beb5100151cebfa8732206d0' }, secondaryHeading))), hAsync("div", { key: '0575ef33984c79674626d9f114ad90a3f973e63a', class: "secondary-subheading" }, hAsync("ic-typography", { key: '8045e445231e4cbbd07ad9fa21a7b6bbf5015eff', variant: "subtitle-small" }, secondarySubheading))))))))));
|
11550
11601
|
}
|
11551
11602
|
get el() { return getElement(this); }
|
11552
11603
|
static get style() { return IcHeroStyle0; }
|
@@ -11737,22 +11788,22 @@ class HorizontalScroll {
|
|
11737
11788
|
}
|
11738
11789
|
render() {
|
11739
11790
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
11740
|
-
return (hAsync(Host, { key: '
|
11791
|
+
return (hAsync(Host, { key: '3c307f5bddcc7b6c8ab7764d08504585f61e203d', class: {
|
11741
11792
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
11742
11793
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum$1.Dark,
|
11743
11794
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum$1.Light,
|
11744
11795
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
11745
|
-
} }, hAsync("div", { key: '
|
11796
|
+
} }, hAsync("div", { key: 'f4bda7e5c0108e986191cde56ef8e255a80b604f', "aria-hidden": "true", class: {
|
11746
11797
|
["scroll-container-left"]: true,
|
11747
11798
|
["hidden"]: !itemOverflow,
|
11748
11799
|
["disabled"]: firstItemVisible,
|
11749
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
11800
|
+
}, role: "tab" }, hAsync("ic-button", { key: '5eb199e69ca500c8e84e9b79cec4a3448b604c39', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
11750
11801
|
? "dark"
|
11751
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
11802
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: 'c939c5db95cc4b61645045ef498cc9b80c4f3d69', class: "scroll-splitter-left" })), hAsync("slot", { key: '3ded812f11a7bbdc25157d840ee32f23ed58131b' }), hAsync("div", { key: 'e713490eb2995ff19ec70bf0a098193eaa9829a8', "aria-hidden": "true", class: {
|
11752
11803
|
["scroll-container-right"]: true,
|
11753
11804
|
["hidden"]: !itemOverflow,
|
11754
11805
|
["disabled"]: lastItemVisible,
|
11755
|
-
}, role: "tab" }, hAsync("span", { key: '
|
11806
|
+
}, role: "tab" }, hAsync("span", { key: 'a2427e872d8ab79ef0022ccb216238867e49065c', class: "scroll-splitter-right" }), hAsync("ic-button", { key: 'a58d98e7d695fe15e3c085f1bec0079045817b2d', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
11756
11807
|
? "dark"
|
11757
11808
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
11758
11809
|
}
|
@@ -11827,15 +11878,15 @@ class InputComponentContainer {
|
|
11827
11878
|
}
|
11828
11879
|
render() {
|
11829
11880
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
11830
|
-
return (hAsync(Host, { key: '
|
11881
|
+
return (hAsync(Host, { key: 'fc70461ae7d3922f07aa5a85209e376d42bfc451', class: {
|
11831
11882
|
[`ic-input-component-container-${size}`]: true,
|
11832
11883
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
11833
11884
|
"ic-input-component-container-disabled": !!disabled,
|
11834
11885
|
"ic-input-component-container-readonly": !!readonly,
|
11835
11886
|
"ic-input-component-container-multiline": !!multiLine,
|
11836
11887
|
"ic-input-component-container-full-width": !!fullWidth,
|
11837
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
11838
|
-
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '
|
11888
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '20934b81740e6c907bff86cc706d3aafe3a790df', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: '3577416fc719a575372188c43a78ac945b1b1526', class: "icon-container" }, hAsync("slot", { key: '36ee3e5c85ec77c69f88c2b74d272bdb6ee42ca1', name: "left-icon" }))), hAsync("slot", { key: 'e0a79f50c8ba34c0d989e2402df8b00587c5878f' }), validationInline &&
|
11889
|
+
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: 'b156fb5bb6fcfec8c6dec6febdeea6d2adc7e009', class: "inline-success", innerHTML: successIcon })))));
|
11839
11890
|
}
|
11840
11891
|
get el() { return getElement(this); }
|
11841
11892
|
static get watchers() { return {
|
@@ -11876,11 +11927,11 @@ class InputContainer {
|
|
11876
11927
|
this.readonly = false;
|
11877
11928
|
}
|
11878
11929
|
render() {
|
11879
|
-
return (hAsync(Host, { key: '
|
11930
|
+
return (hAsync(Host, { key: '49cd31d8dca09cc4b2f49e0b2e7829bb1771a5d6' }, hAsync("div", { key: 'bb0e3a80161a86b40e0dc424264e71cf6c95c88a', class: {
|
11880
11931
|
["component-container"]: true,
|
11881
11932
|
["disabled"]: !!this.disabled,
|
11882
11933
|
["readonly"]: !!this.readonly,
|
11883
|
-
} }, hAsync("slot", { key: '
|
11934
|
+
} }, hAsync("slot", { key: '4916ff0aebd6632d6e6f5daaa3c318e1e696ff2f' }))));
|
11884
11935
|
}
|
11885
11936
|
static get style() { return IcInputContainerStyle0; }
|
11886
11937
|
static get cmpMeta() { return {
|
@@ -11896,7 +11947,7 @@ class InputContainer {
|
|
11896
11947
|
}; }
|
11897
11948
|
}
|
11898
11949
|
|
11899
|
-
const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n )}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext{margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";
|
11950
|
+
const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n )}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext,ic-input-label .helpertext ::slotted(*){margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";
|
11900
11951
|
var IcInputLabelStyle0 = icInputLabelCss;
|
11901
11952
|
|
11902
11953
|
class InputLabel {
|
@@ -11930,6 +11981,25 @@ class InputLabel {
|
|
11930
11981
|
* @internal If `true`, wraps label text in label tag
|
11931
11982
|
*/
|
11932
11983
|
this.useLabelTag = true;
|
11984
|
+
this.isHelperTextSlotUsed = (slot) => {
|
11985
|
+
const assignedEls = slot === null || slot === void 0 ? void 0 : slot.assignedElements();
|
11986
|
+
if (assignedEls && assignedEls.length) {
|
11987
|
+
for (const el of assignedEls) {
|
11988
|
+
if (el.tagName === "SLOT") {
|
11989
|
+
// Recursion needed for when slot is forwarded multiple times - through child components
|
11990
|
+
// (e.g. in date picker)
|
11991
|
+
if (this.isHelperTextSlotUsed(el)) {
|
11992
|
+
return true;
|
11993
|
+
}
|
11994
|
+
}
|
11995
|
+
else {
|
11996
|
+
// Found an assigned element which is not a nested <slot>
|
11997
|
+
return true;
|
11998
|
+
}
|
11999
|
+
}
|
12000
|
+
}
|
12001
|
+
return false;
|
12002
|
+
};
|
11933
12003
|
}
|
11934
12004
|
componentDidLoad() {
|
11935
12005
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Input Label");
|
@@ -11937,22 +12007,26 @@ class InputLabel {
|
|
11937
12007
|
render() {
|
11938
12008
|
const { disabled, readonly, label, required, helperText, status, hideLabel, useLabelTag, } = this;
|
11939
12009
|
const labelText = required ? label + " *" : label;
|
11940
|
-
|
12010
|
+
const helperTextId = this.for && getInputHelperTextID$1(this.for);
|
12011
|
+
const helperTextClass = {
|
12012
|
+
helpertext: true,
|
12013
|
+
"helpertext-normal": !disabled && !readonly,
|
12014
|
+
"helpertext-readonly": readonly,
|
12015
|
+
};
|
12016
|
+
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
12017
|
+
return (hAsync(Host, { key: 'f03d8032ac769d4ecea37fe7a60e9d5acea54cd9', class: {
|
11941
12018
|
"ic-input-label-disabled": !!disabled,
|
11942
12019
|
"ic-input-label-readonly": readonly,
|
11943
|
-
"with-helper": helperText !== "",
|
11944
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
12020
|
+
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
12021
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: '7af61c1f2a1b9068fb9a9b649f60da1784207aa3', variant: "label", class: {
|
11945
12022
|
"readonly-label": readonly,
|
11946
12023
|
"error-label": status === "error" && !(readonly || disabled),
|
11947
|
-
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (hAsync("ic-typography", {
|
11948
|
-
helpertext: true,
|
11949
|
-
"helpertext-normal": !disabled && !readonly,
|
11950
|
-
"helpertext-readonly": readonly,
|
11951
|
-
} }, hAsync("span", { key: '70cdef7f1ef75572ab4f9455e4b5b3401ce10950', id: this.for && getInputHelperTextID$1(this.for) }, helperText)))));
|
12024
|
+
} }, 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))))));
|
11952
12025
|
}
|
12026
|
+
get el() { return getElement(this); }
|
11953
12027
|
static get style() { return IcInputLabelStyle0; }
|
11954
12028
|
static get cmpMeta() { return {
|
11955
|
-
"$flags$":
|
12029
|
+
"$flags$": 4,
|
11956
12030
|
"$tagName$": "ic-input-label",
|
11957
12031
|
"$members$": {
|
11958
12032
|
"disabled": [4],
|
@@ -12004,13 +12078,13 @@ class InputValidation {
|
|
12004
12078
|
render() {
|
12005
12079
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
12006
12080
|
const displayIcon = status !== "" ? icon[status] : "";
|
12007
|
-
return (hAsync(Host, { key: '
|
12081
|
+
return (hAsync(Host, { key: '2ab746f75a46252bc0755dfd28220dbe555b93b3', class: {
|
12008
12082
|
[`ic-input-validation-${status}`]: status !== "",
|
12009
12083
|
"ic-input-validation-full-width": !!fullWidth,
|
12010
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
12084
|
+
} }, displayIcon !== "" && (hAsync("span", { key: 'fc02067a0c0f1e9672e190f1bd30774cd2cfcfe0', class: {
|
12011
12085
|
"status-icon": true,
|
12012
12086
|
[`icon-${status}`]: true,
|
12013
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
12087
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: 'f8d3c1d9d7f30e232ebbc827033ad318485f7c98', variant: "caption", class: "statustext" }, hAsync("span", { key: '73b35c4a5c4dbe77fe4c71032020a0346e34fcfd', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID$1(this.for) }, message)), hAsync("slot", { key: '629f37113c9354db274019eadc9ae7140adf921a', name: "validation-message-adornment" })));
|
12014
12088
|
}
|
12015
12089
|
get el() { return getElement(this); }
|
12016
12090
|
static get style() { return IcInputValidationStyle0; }
|
@@ -12119,7 +12193,7 @@ class Link {
|
|
12119
12193
|
}
|
12120
12194
|
render() {
|
12121
12195
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
12122
|
-
return (hAsync(Host, { key: '
|
12196
|
+
return (hAsync(Host, { key: '769bea68e79e8b28fb9c0ea007c24dd11968d332', class: {
|
12123
12197
|
["ic-link"]: true,
|
12124
12198
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12125
12199
|
["ic-link-monochrome"]: !!monochrome,
|
@@ -12150,12 +12224,26 @@ class Link {
|
|
12150
12224
|
}; }
|
12151
12225
|
}
|
12152
12226
|
|
12153
|
-
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))}
|
12227
|
+
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}}";
|
12154
12228
|
var IcLoadingIndicatorStyle0 = icLoadingIndicatorCss;
|
12155
12229
|
|
12230
|
+
const LOADING_INDICATOR_WIDTHS = {
|
12231
|
+
large: 120,
|
12232
|
+
medium: 80,
|
12233
|
+
small: 40,
|
12234
|
+
icon: 20,
|
12235
|
+
};
|
12156
12236
|
class LoadingIndicator {
|
12157
12237
|
constructor(hostRef) {
|
12158
12238
|
registerInstance(this, hostRef);
|
12239
|
+
this.labelList = [];
|
12240
|
+
this.circularDiameter = 0;
|
12241
|
+
this.circularLineWidth = 0;
|
12242
|
+
this.circularDimensions = {
|
12243
|
+
x: 0,
|
12244
|
+
y: 0,
|
12245
|
+
r: 0,
|
12246
|
+
};
|
12159
12247
|
this.clipInnerElement = false;
|
12160
12248
|
/**
|
12161
12249
|
* The description that will be set as the aria-label of the loading indicator when not using a visible label.
|
@@ -12187,190 +12275,169 @@ class LoadingIndicator {
|
|
12187
12275
|
* The size of the loading indicator.
|
12188
12276
|
*/
|
12189
12277
|
this.size = "medium";
|
12190
|
-
/**
|
12191
|
-
* The type of indicator, either linear or circular.
|
12192
|
-
*/
|
12193
|
-
this.type = "circular";
|
12194
12278
|
/**
|
12195
12279
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
12196
12280
|
*/
|
12197
12281
|
this.theme = "inherit";
|
12198
|
-
|
12199
|
-
|
12200
|
-
|
12282
|
+
/**
|
12283
|
+
* The type of indicator, either linear or circular.
|
12284
|
+
*/
|
12285
|
+
this.type = "circular";
|
12286
|
+
this.getLabel = (labelIndex) => new Promise(() => {
|
12287
|
+
this.interval = setInterval(() => {
|
12288
|
+
if (labelIndex < this.labelList.length - 1) {
|
12289
|
+
labelIndex++;
|
12290
|
+
}
|
12291
|
+
else {
|
12292
|
+
labelIndex = 0;
|
12293
|
+
}
|
12294
|
+
this.indicatorLabel = this.labelList[labelIndex];
|
12295
|
+
}, this.labelDuration);
|
12296
|
+
});
|
12297
|
+
this.getLabelVariant = () => {
|
12298
|
+
const width = this.type === "circular" ? this.calculateWidth() : 0;
|
12299
|
+
if (this.size === "small" || (width && width < 60)) {
|
12300
|
+
return "label";
|
12201
12301
|
}
|
12302
|
+
else if (this.size === "large" || width >= 120) {
|
12303
|
+
return "h2";
|
12304
|
+
}
|
12305
|
+
return "h4";
|
12202
12306
|
};
|
12203
|
-
this.
|
12204
|
-
|
12205
|
-
|
12206
|
-
|
12207
|
-
labelIndex++;
|
12208
|
-
}
|
12209
|
-
else {
|
12210
|
-
labelIndex = 0;
|
12211
|
-
}
|
12212
|
-
setLabel(this.labelList[labelIndex]);
|
12213
|
-
}, this.labelDuration);
|
12214
|
-
});
|
12215
|
-
};
|
12216
|
-
this.getLabelVariant = () => {
|
12217
|
-
var _a;
|
12218
|
-
let variant = "h4";
|
12219
|
-
const width = (_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
12220
|
-
if (this.size === "small" ||
|
12221
|
-
(width && this.type === "circular" && width < 60)) {
|
12222
|
-
variant = "label";
|
12223
|
-
}
|
12224
|
-
else if (this.size === "large" ||
|
12225
|
-
(width && this.type === "circular" && width >= 120)) {
|
12226
|
-
variant = "h2";
|
12227
|
-
}
|
12228
|
-
return variant;
|
12229
|
-
};
|
12230
|
-
// Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
|
12231
|
-
this.setCircleLineWidth = () => {
|
12232
|
-
const compactStepCircularLineWidth = this.el.classList.contains("compact-step-progress-indicator")
|
12233
|
-
? 40
|
12234
|
-
: 0;
|
12235
|
-
const toastDismissTimerCircularLineWidth = this.el.classList.contains("toast-dismiss-timer")
|
12236
|
-
? 20
|
12237
|
-
: 0;
|
12307
|
+
this.calculateWidth = () => {
|
12308
|
+
var _a, _b, _c;
|
12309
|
+
if ((_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth)
|
12310
|
+
return this.outerElement.offsetWidth;
|
12238
12311
|
if (this.outerElement) {
|
12239
|
-
const {
|
12240
|
-
if (width
|
12241
|
-
|
12242
|
-
|
12243
|
-
|
12244
|
-
|
12245
|
-
|
12246
|
-
|
12247
|
-
this.circularDiameter =
|
12248
|
-
compactStepCircularLineWidth ||
|
12249
|
-
toastDismissTimerCircularLineWidth ||
|
12250
|
-
width;
|
12251
|
-
this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
|
12312
|
+
const { width } = window.getComputedStyle(this.outerElement);
|
12313
|
+
if (width) {
|
12314
|
+
// Regex to check the units of the css string
|
12315
|
+
if (((_b = width.match(/\D+$/)) === null || _b === void 0 ? void 0 : _b[0]) !== "%")
|
12316
|
+
return parseFloat(width);
|
12317
|
+
const parentWidth = (_c = this.outerElement.parentElement) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|
12318
|
+
if (parentWidth)
|
12319
|
+
return parentWidth * (parseFloat(width) / 100);
|
12252
12320
|
}
|
12253
12321
|
}
|
12322
|
+
return LOADING_INDICATOR_WIDTHS[this.size];
|
12254
12323
|
};
|
12255
12324
|
this.setLinearDeterminateWidth = () => {
|
12256
|
-
const max = this.max;
|
12257
|
-
const min = this.min;
|
12258
|
-
if (!this.innerElement)
|
12259
|
-
return;
|
12260
12325
|
// Ensure progress cannot be out of bounds
|
12261
|
-
if (this.progress)
|
12262
|
-
|
12263
|
-
|
12264
|
-
|
12265
|
-
|
12266
|
-
|
12267
|
-
|
12268
|
-
else {
|
12269
|
-
this.innerElement.classList.add("clip");
|
12270
|
-
}
|
12271
|
-
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
12326
|
+
if (!this.innerElement || !this.progress)
|
12327
|
+
return;
|
12328
|
+
const progress = Math.min(this.max, Math.max(this.min, this.progress));
|
12329
|
+
const proportion = (progress - this.min) / (this.max - this.min);
|
12330
|
+
this.clipInnerElement = proportion > 0.5;
|
12331
|
+
if (this.clipInnerElement) {
|
12332
|
+
this.innerElement.classList.remove("clip");
|
12272
12333
|
}
|
12273
|
-
|
12274
|
-
|
12275
|
-
|
12276
|
-
|
12277
|
-
return cls;
|
12334
|
+
else {
|
12335
|
+
this.innerElement.classList.add("clip");
|
12336
|
+
}
|
12337
|
+
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
12278
12338
|
};
|
12279
12339
|
this.updateLabel = () => {
|
12280
|
-
if (this.label
|
12281
|
-
|
12282
|
-
|
12283
|
-
|
12284
|
-
else {
|
12285
|
-
this.labelList = this.label;
|
12286
|
-
const labelIndex = 0;
|
12287
|
-
this.indicatorLabel = this.labelList[labelIndex];
|
12288
|
-
if (this.labelList.length > 1) {
|
12289
|
-
this.getLabel(labelIndex, (label) => {
|
12290
|
-
this.indicatorLabel = label;
|
12291
|
-
});
|
12292
|
-
}
|
12293
|
-
}
|
12340
|
+
if (!this.label)
|
12341
|
+
return;
|
12342
|
+
if (typeof this.label === "string") {
|
12343
|
+
this.indicatorLabel = this.label;
|
12294
12344
|
}
|
12295
|
-
|
12296
|
-
|
12297
|
-
|
12298
|
-
|
12299
|
-
|
12300
|
-
const y = r;
|
12301
|
-
const nextRadius = r - this.circularLineWidth / 2;
|
12302
|
-
this.setDashSteps(nextRadius);
|
12303
|
-
return { x, y, r: nextRadius };
|
12304
|
-
}
|
12305
|
-
return { x: 0, y: 0, r: 0 };
|
12306
|
-
};
|
12307
|
-
this.setDashSteps = (radius) => {
|
12308
|
-
const dashArray = 2 * Math.PI * radius;
|
12309
|
-
if (this.circularMeter) {
|
12310
|
-
this.circularMeter.style.setProperty("--stroke-dasharray", `${dashArray}px`);
|
12311
|
-
if (!this.indeterminate && this.progress) {
|
12312
|
-
const min = this.min;
|
12313
|
-
const max = this.max;
|
12314
|
-
const progress = Math.min(Math.max(this.progress, min), max);
|
12315
|
-
const proportion = -1 - (progress - min) / (max - min);
|
12316
|
-
this.circularMeter.style.setProperty("--circular-steps-max", String(this.max));
|
12317
|
-
this.circularMeter.style.setProperty("--stroke-dashoffset", `${proportion * dashArray}px`);
|
12345
|
+
else {
|
12346
|
+
this.labelList = this.label;
|
12347
|
+
this.indicatorLabel = this.labelList[0];
|
12348
|
+
if (this.labelList.length > 1) {
|
12349
|
+
this.getLabel(0);
|
12318
12350
|
}
|
12319
12351
|
}
|
12320
12352
|
};
|
12353
|
+
this.setCircleDimensions = () => {
|
12354
|
+
let dashOffset = undefined;
|
12355
|
+
if (this.circularDiameter <= 0)
|
12356
|
+
return;
|
12357
|
+
const r = this.circularDiameter / 2;
|
12358
|
+
const nextRadius = r - this.circularLineWidth / 2;
|
12359
|
+
const dashArray = 2 * Math.PI * nextRadius;
|
12360
|
+
if (this.progress) {
|
12361
|
+
const progress = Math.min(Math.max(this.progress, this.min), this.max);
|
12362
|
+
dashOffset = `${(-1 - (progress - this.min) / (this.max - this.min)) * dashArray}px`;
|
12363
|
+
}
|
12364
|
+
this.circularDimensions = {
|
12365
|
+
x: r,
|
12366
|
+
y: r,
|
12367
|
+
r: nextRadius,
|
12368
|
+
dashArray: `${dashArray}px`,
|
12369
|
+
dashOffset,
|
12370
|
+
};
|
12371
|
+
};
|
12321
12372
|
}
|
12322
12373
|
watchPropHandler() {
|
12323
12374
|
this.updateLabel();
|
12324
12375
|
}
|
12376
|
+
minMaxChangeHandler() {
|
12377
|
+
if (this.type === "circular")
|
12378
|
+
this.setCircleDimensions();
|
12379
|
+
}
|
12325
12380
|
watchProgressHandler() {
|
12381
|
+
if (this.type === "linear") {
|
12382
|
+
this.setLinearDeterminateWidth();
|
12383
|
+
}
|
12384
|
+
else {
|
12385
|
+
this.setCircleDimensions();
|
12386
|
+
}
|
12387
|
+
}
|
12388
|
+
setIndicatorDimensions() {
|
12326
12389
|
if (this.type === "circular") {
|
12327
|
-
|
12390
|
+
// Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
|
12391
|
+
const diameter = this.calculateWidth();
|
12392
|
+
if (this.outerElement && diameter !== this.circularDiameter) {
|
12393
|
+
this.circularLineWidth = diameter * 0.1;
|
12394
|
+
this.circularDiameter = diameter;
|
12395
|
+
this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
|
12396
|
+
this.setCircleDimensions();
|
12397
|
+
}
|
12398
|
+
}
|
12399
|
+
else {
|
12400
|
+
this.setLinearDeterminateWidth();
|
12328
12401
|
}
|
12329
12402
|
}
|
12330
12403
|
disconnectedCallback() {
|
12331
12404
|
clearInterval(this.interval);
|
12332
12405
|
}
|
12333
12406
|
componentWillLoad() {
|
12334
|
-
this.indeterminate = this.progress === undefined;
|
12335
12407
|
this.updateLabel();
|
12336
12408
|
this.el.setAttribute("exportparts", "ic-loading-container");
|
12337
12409
|
}
|
12338
12410
|
componentDidLoad() {
|
12339
|
-
|
12340
|
-
if (this.type === "circular") {
|
12341
|
-
this.setCircleLineWidth();
|
12342
|
-
this.circularMeter = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-loading-circular-svg circle:nth-child(2)");
|
12343
|
-
this.updateCircularProgressMeter();
|
12344
|
-
}
|
12345
|
-
if (Number(this.progress) >= 0 && this.type === "linear") {
|
12346
|
-
this.setLinearDeterminateWidth();
|
12347
|
-
}
|
12348
|
-
}
|
12349
|
-
componentWillUpdate() {
|
12350
|
-
this.indeterminate = this.progress === undefined;
|
12351
|
-
}
|
12352
|
-
componentDidUpdate() {
|
12353
|
-
if (Number(this.progress) >= 0 && this.type === "linear") {
|
12354
|
-
this.setLinearDeterminateWidth();
|
12355
|
-
}
|
12411
|
+
this.setIndicatorDimensions();
|
12356
12412
|
}
|
12357
12413
|
render() {
|
12358
|
-
const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
|
12359
|
-
const { x, y, r } =
|
12360
|
-
return (hAsync(Host, { key: '
|
12414
|
+
const { theme, label, description, size, fullWidth, innerLabel, monochrome, type, progress, min, max, circularDiameter, indicatorLabel, circularDimensions, } = this;
|
12415
|
+
const { x, y, r, dashArray, dashOffset } = circularDimensions;
|
12416
|
+
return (hAsync(Host, { key: '7f78047511c580f116c21d00e76a19dee3319d60', class: {
|
12361
12417
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12418
|
+
"ic-loading-indicator-full-width": fullWidth,
|
12362
12419
|
"ic-loading-indicator-label": !!label,
|
12363
|
-
"ic-loading-indicator-
|
12420
|
+
"ic-loading-indicator-monochrome": monochrome,
|
12421
|
+
} }, hAsync("div", { key: 'eec896daa35399c26a11873674ba4bc4fd099ddc', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'b3ab1935e9fe5d50cd6513acd7a8eabb31fadf98', ref: (el) => (this.outerElement = el), class: {
|
12422
|
+
[`ic-loading-${type}-outer`]: true,
|
12423
|
+
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
12424
|
+
}, 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: '2f6e1f2e1a88b752cdda2a6b2834441e8546eb9b', ref: (el) => (this.innerElement = el), class: {
|
12425
|
+
[`ic-loading-${type}-inner`]: true,
|
12364
12426
|
"inner-label": !!innerLabel,
|
12365
|
-
|
12366
|
-
|
12367
|
-
|
12368
|
-
|
12427
|
+
} }, innerLabel && size === "small" && (hAsync("ic-typography", { key: 'c0d18d282c7090aa2bf478c3beee03e6c2b2f61d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (hAsync("svg", { key: 'a5827dba8cff99684667dfa1147186ad0bd3f7a1', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, hAsync("circle", { key: 'c53d2155e9aea468427178f5a41e0a24b02565fa', cx: x, cy: y, r: r }), hAsync("circle", { key: 'c5b6aea5b936b056a8103c0dacb81822348b20d1', style: {
|
12428
|
+
"--circular-steps-max": progress ? `${max}` : undefined,
|
12429
|
+
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
12430
|
+
"--stroke-dasharray": dashArray,
|
12431
|
+
"--stroke-dashoffset": dashOffset,
|
12432
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (hAsync("ic-typography", { key: 'e586d3c31d518a77bf93f90504318e3a5baeeb64', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, hAsync("p", { key: 'd1c0b977ef4441ae45f4122a7a0ee03b33b4421b' }, indicatorLabel))))));
|
12369
12433
|
}
|
12370
12434
|
get el() { return getElement(this); }
|
12371
12435
|
static get watchers() { return {
|
12372
12436
|
"label": ["watchPropHandler"],
|
12373
|
-
"
|
12437
|
+
"max": ["minMaxChangeHandler"],
|
12438
|
+
"min": ["minMaxChangeHandler"],
|
12439
|
+
"progress": ["watchProgressHandler"],
|
12440
|
+
"type": ["setIndicatorDimensions"]
|
12374
12441
|
}; }
|
12375
12442
|
static get style() { return IcLoadingIndicatorStyle0; }
|
12376
12443
|
static get cmpMeta() { return {
|
@@ -12380,18 +12447,18 @@ class LoadingIndicator {
|
|
12380
12447
|
"description": [1],
|
12381
12448
|
"fullWidth": [516, "full-width"],
|
12382
12449
|
"innerLabel": [2, "inner-label"],
|
12450
|
+
"label": [1],
|
12383
12451
|
"labelDuration": [2, "label-duration"],
|
12384
12452
|
"max": [2],
|
12385
12453
|
"min": [2],
|
12386
12454
|
"monochrome": [4],
|
12387
|
-
"size": [513],
|
12388
|
-
"type": [513],
|
12389
|
-
"label": [1],
|
12390
12455
|
"progress": [2],
|
12456
|
+
"size": [513],
|
12391
12457
|
"theme": [1],
|
12458
|
+
"type": [513],
|
12392
12459
|
"circularDiameter": [32],
|
12393
12460
|
"circularLineWidth": [32],
|
12394
|
-
"
|
12461
|
+
"circularDimensions": [32],
|
12395
12462
|
"indicatorLabel": [32],
|
12396
12463
|
"clipInnerElement": [32]
|
12397
12464
|
},
|
@@ -14234,6 +14301,7 @@ class Menu {
|
|
14234
14301
|
this.initialOptionsListRender = false;
|
14235
14302
|
this.keyboardNav = false;
|
14236
14303
|
this.preventIncorrectTabOrder = false;
|
14304
|
+
this.popperProps = {};
|
14237
14305
|
/**
|
14238
14306
|
* Determines whether options manually set as values (by pressing 'Enter') when they receive focus using keyboard navigation.
|
14239
14307
|
*/
|
@@ -15087,9 +15155,7 @@ class Menu {
|
|
15087
15155
|
*/
|
15088
15156
|
async initPopperJs(anchor) {
|
15089
15157
|
// Placements set to "-start" to accommodate for custom menu width - menu should always be aligned to the left
|
15090
|
-
this.popperInstance = createPopper(anchor, this.host, {
|
15091
|
-
placement: "bottom-start",
|
15092
|
-
modifiers: [
|
15158
|
+
this.popperInstance = createPopper(anchor, this.host, Object.assign({ placement: "bottom-start", modifiers: [
|
15093
15159
|
{
|
15094
15160
|
name: "offset",
|
15095
15161
|
options: {
|
@@ -15103,8 +15169,14 @@ class Menu {
|
|
15103
15169
|
rootBoundary: "viewport",
|
15104
15170
|
},
|
15105
15171
|
},
|
15106
|
-
],
|
15107
|
-
|
15172
|
+
] }, this.popperProps));
|
15173
|
+
}
|
15174
|
+
/**
|
15175
|
+
* @internal This method allows props to be added to the PopperJS createPopper instance outside of the menu
|
15176
|
+
* @param props object - createPopper props set externally
|
15177
|
+
*/
|
15178
|
+
async setExternalPopperProps(props) {
|
15179
|
+
this.popperProps = props;
|
15108
15180
|
}
|
15109
15181
|
focusOnSearchOrSelectInput(menuOptions, highlightedOptionIndex) {
|
15110
15182
|
if (!menuOptions[highlightedOptionIndex])
|
@@ -15123,7 +15195,7 @@ class Menu {
|
|
15123
15195
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
15124
15196
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
15125
15197
|
const hasNoResults = this.host.classList.contains("no-results");
|
15126
|
-
return (hAsync(Host, { key: '
|
15198
|
+
return (hAsync(Host, { key: '6c3e0c39d138c8622c3748c16294f0e21e202909', class: {
|
15127
15199
|
"ic-menu-full-width": !!fullWidth,
|
15128
15200
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
15129
15201
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -15132,7 +15204,7 @@ class Menu {
|
|
15132
15204
|
[`ic-menu-${size}`]: true,
|
15133
15205
|
"ic-menu-open": open && options.length !== 0,
|
15134
15206
|
"ic-menu-multiple": this.isMultiSelect,
|
15135
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
15207
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '69ea4424544b03896b65f0b30221872e131a04f6', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": this.isMultiSelect ? "true" : "false", tabindex: open &&
|
15136
15208
|
!keyboardNav &&
|
15137
15209
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
15138
15210
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -15160,7 +15232,7 @@ class Menu {
|
|
15160
15232
|
this.isMultiSelect &&
|
15161
15233
|
!isLoading &&
|
15162
15234
|
!hasTimedOut &&
|
15163
|
-
!hasNoResults && (hAsync("div", { key: '
|
15235
|
+
!hasNoResults && (hAsync("div", { key: '17553f6e5ecd81b892894244b3a3a143b998c23c', class: "option-bar" }, hAsync("ic-typography", { key: '7f4ce460524beb936e4d4ef2bbbcedd03cacec5c' }, hAsync("p", { key: 'aae0e564a9caf83b09d4ee8daa3d9409b7d69501' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '692b840395eafd8c4c5dd0f21bab2082debb44bf', 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)))));
|
15164
15236
|
}
|
15165
15237
|
get host() { return getElement(this); }
|
15166
15238
|
static get watchers() { return {
|
@@ -15195,10 +15267,12 @@ class Menu {
|
|
15195
15267
|
"optionHighlighted": [32],
|
15196
15268
|
"preventIncorrectTabOrder": [32],
|
15197
15269
|
"menuOptions": [32],
|
15270
|
+
"popperProps": [32],
|
15198
15271
|
"handleClickOpen": [64],
|
15199
15272
|
"handleKeyboardOpen": [64],
|
15200
15273
|
"handleSetFirstOption": [64],
|
15201
|
-
"initPopperJs": [64]
|
15274
|
+
"initPopperJs": [64],
|
15275
|
+
"setExternalPopperProps": [64]
|
15202
15276
|
},
|
15203
15277
|
"$listeners$": undefined,
|
15204
15278
|
"$lazyBundleId$": "-",
|
@@ -15215,7 +15289,7 @@ class MenuGroup {
|
|
15215
15289
|
}
|
15216
15290
|
render() {
|
15217
15291
|
const parentMenu = this.el.closest("ic-popover-menu");
|
15218
|
-
return (hAsync(Host, { key: '
|
15292
|
+
return (hAsync(Host, { key: 'ec777b0d41cd1bb5d7751e61e702a45341f3080a', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined$1(this.label) && (hAsync("ic-typography", { key: '31d4b7ba6d46a89c8c843654a2ded8ca993b1803', variant: "subtitle-small" }, this.label)), hAsync("span", { key: '3f1472c581431ea8c80dfc79a98b34d6ad2418f2', class: "menu-items-wrapper" }, hAsync("slot", { key: '68c43747e9948fdec7dff7c5e0d2a69d2bc73b62' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: 'b6540d15632b2d798ec6ead8d55fde5bca1e49f6' }))));
|
15219
15293
|
}
|
15220
15294
|
get el() { return getElement(this); }
|
15221
15295
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -15376,7 +15450,6 @@ class NavigationButton {
|
|
15376
15450
|
registerInstance(this, hostRef);
|
15377
15451
|
this.inheritedAttributes = {};
|
15378
15452
|
this.hostMutationObserver = null;
|
15379
|
-
this.initialAppearance = getBrandForegroundAppearance();
|
15380
15453
|
/**
|
15381
15454
|
* The display mode.
|
15382
15455
|
*/
|
@@ -15389,7 +15462,9 @@ class NavigationButton {
|
|
15389
15462
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
15390
15463
|
*/
|
15391
15464
|
this.theme = "inherit";
|
15392
|
-
|
15465
|
+
/**
|
15466
|
+
* Triggered when attributes of host element change
|
15467
|
+
*/
|
15393
15468
|
this.hostMutationCallback = (mutationList) => {
|
15394
15469
|
mutationList.forEach(({ attributeName }) => {
|
15395
15470
|
if (attributeName) {
|
@@ -15405,6 +15480,7 @@ class NavigationButton {
|
|
15405
15480
|
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES$2);
|
15406
15481
|
}
|
15407
15482
|
componentDidLoad() {
|
15483
|
+
this.updateTheme();
|
15408
15484
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Navigation Button");
|
15409
15485
|
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
15410
15486
|
this.hostMutationObserver.observe(this.el, {
|
@@ -15412,8 +15488,9 @@ class NavigationButton {
|
|
15412
15488
|
});
|
15413
15489
|
}
|
15414
15490
|
componentWillRender() {
|
15415
|
-
|
15416
|
-
|
15491
|
+
var _a;
|
15492
|
+
(_a = this.el
|
15493
|
+
.querySelector(`[slot="icon"]`)) === null || _a === void 0 ? void 0 : _a.setAttribute("viewBox", "0 0 24 24");
|
15417
15494
|
}
|
15418
15495
|
disconnectedCallback() {
|
15419
15496
|
var _a;
|
@@ -15425,51 +15502,40 @@ class NavigationButton {
|
|
15425
15502
|
navBarMenuCloseHandler() {
|
15426
15503
|
this.mode = "navbar";
|
15427
15504
|
}
|
15428
|
-
brandChangeHandler(
|
15429
|
-
this.
|
15505
|
+
brandChangeHandler({ detail: { mode } }) {
|
15506
|
+
this.updateTheme(mode);
|
15430
15507
|
}
|
15431
15508
|
/**
|
15432
15509
|
* Sets focus on the native `button`.
|
15433
15510
|
*/
|
15434
15511
|
async setFocus() {
|
15435
|
-
|
15436
|
-
|
15437
|
-
|
15512
|
+
var _a;
|
15513
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.setFocus();
|
15514
|
+
}
|
15515
|
+
updateTheme(mode = getBrandForegroundAppearance()) {
|
15516
|
+
var _a;
|
15517
|
+
if ((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest(IC_BLOCK_COLOR_COMPONENTS$1))
|
15518
|
+
return;
|
15519
|
+
this.theme =
|
15520
|
+
mode === IcBrandForegroundEnum$1.Light
|
15521
|
+
? IcBrandForegroundEnum$1.Dark
|
15522
|
+
: IcBrandForegroundEnum$1.Light;
|
15438
15523
|
}
|
15439
15524
|
render() {
|
15440
|
-
const { href,
|
15441
|
-
|
15442
|
-
let className = "";
|
15443
|
-
let variant = "icon";
|
15444
|
-
let appearance = this.initialAppearance;
|
15445
|
-
let size = "large";
|
15446
|
-
let fullWidth = false;
|
15447
|
-
let disableTooltip = false;
|
15448
|
-
if (this.mode === "menu") {
|
15449
|
-
label = this.label;
|
15450
|
-
variant = "tertiary";
|
15451
|
-
appearance = IcBrandForegroundEnum$1.Default;
|
15452
|
-
size = "medium";
|
15453
|
-
fullWidth = true;
|
15454
|
-
className = "popout-menu-button";
|
15455
|
-
disableTooltip = true;
|
15456
|
-
}
|
15525
|
+
const { download, href, inheritedAttributes, label, mode, referrerpolicy, rel, target, theme, } = this;
|
15526
|
+
const isMenuMode = mode === "menu";
|
15457
15527
|
const buttonProps = {
|
15458
|
-
variant,
|
15459
|
-
appearance,
|
15460
|
-
size,
|
15461
|
-
href,
|
15462
|
-
target,
|
15463
|
-
rel,
|
15464
15528
|
download,
|
15529
|
+
href,
|
15465
15530
|
referrerpolicy,
|
15466
|
-
|
15467
|
-
|
15531
|
+
rel,
|
15532
|
+
target,
|
15533
|
+
theme,
|
15468
15534
|
};
|
15469
|
-
return (hAsync(Host, { key: '
|
15470
|
-
|
15471
|
-
[`ic-theme-${
|
15472
|
-
} }, hAsync("ic-button", Object.assign({ key: '
|
15535
|
+
return (hAsync(Host, { key: '341c602f37816c5bd021d7d2457a60cc48ec0a4d', class: {
|
15536
|
+
"in-side-menu": isMenuMode,
|
15537
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
15538
|
+
} }, hAsync("ic-button", Object.assign({ key: '7f122b31c8584bc6ccea93220a60f1a7754f7985', 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" }, buttonProps, inheritedAttributes), isMenuMode ? label : "", hAsync("slot", { key: '68d45cf8961f30491f610d5c009da84350611c1b', slot: "left-icon", name: "icon" }), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '43740c1e00ca73197b6d121b6ccf6df550d3b5c7', name: "badge" }))));
|
15473
15539
|
}
|
15474
15540
|
static get delegatesFocus() { return true; }
|
15475
15541
|
get el() { return getElement(this); }
|
@@ -15485,8 +15551,7 @@ class NavigationButton {
|
|
15485
15551
|
"referrerpolicy": [1],
|
15486
15552
|
"rel": [1],
|
15487
15553
|
"target": [1],
|
15488
|
-
"theme": [
|
15489
|
-
"initialAppearance": [32],
|
15554
|
+
"theme": [1025],
|
15490
15555
|
"mode": [32],
|
15491
15556
|
"setFocus": [64]
|
15492
15557
|
},
|
@@ -15513,7 +15578,6 @@ class NavigationGroup {
|
|
15513
15578
|
this.mouseGate = false;
|
15514
15579
|
this.deviceSize = DEVICE_SIZES$1.XL;
|
15515
15580
|
this.dropdownOpen = false;
|
15516
|
-
this.expanded = true;
|
15517
15581
|
this.focusStyle = getBrandForegroundAppearance();
|
15518
15582
|
this.inTopNavSideMenu = false;
|
15519
15583
|
this.isSideNavExpanded = false;
|
@@ -15521,6 +15585,10 @@ class NavigationGroup {
|
|
15521
15585
|
* If `true`, the group will be expandable when in an ic-side-navigation component, or, when in an ic-top-navigation component, in the side menu displayed at small screen sizes.
|
15522
15586
|
*/
|
15523
15587
|
this.expandable = false;
|
15588
|
+
/**
|
15589
|
+
* If `true`, the expandable group will be expanded by default when in an ic-side-navigation component. To enable this prop, `expandable` must also be set to `true`.
|
15590
|
+
*/
|
15591
|
+
this.expanded = true;
|
15524
15592
|
/**
|
15525
15593
|
* Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component.
|
15526
15594
|
*/
|
@@ -15759,7 +15827,7 @@ class NavigationGroup {
|
|
15759
15827
|
const isTopNav = this.navigationType === "top";
|
15760
15828
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
15761
15829
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
15762
|
-
return (hAsync(Host, { key: '
|
15830
|
+
return (hAsync(Host, { key: '1c16958eaa37fb0d37d04178e7bd2d469af832f6', class: {
|
15763
15831
|
"in-side-menu": inTopNavSideMenu,
|
15764
15832
|
"ic-navigation-group-expandable": expandable,
|
15765
15833
|
"ic-navigation-group-side-nav": isSideNav,
|
@@ -15767,7 +15835,7 @@ class NavigationGroup {
|
|
15767
15835
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
15768
15836
|
}, role: "listitem" }, expandable || isTopNavDesktop ? (hAsync("button", { onMouseEnter: isTopNavDesktop ? this.handleMouseEnter : undefined, onMouseLeave: isTopNav ? this.handleMouseLeave : undefined, onBlur: this.handleBlur, onClick: this.handleClick, onKeyDown: this.handleKeydown, class: navGroupTitleClassNames, ref: (el) => (this.groupEl = el), "aria-expanded": `${ariaExpanded}`, "aria-haspopup": `${isTopNavDesktop}` }, this.renderGroupTitleText(), isSideNav && expandable && (hAsync("div", { class: {
|
15769
15837
|
"chevron-toggle-icon-wrapper": true,
|
15770
|
-
"chevron-toggle-icon-closed": expanded,
|
15838
|
+
"chevron-toggle-icon-closed": !!expanded,
|
15771
15839
|
}, innerHTML: chevronIcon })))) : ((!isSideNav || isSideNavExpanded) && (hAsync("div", { class: navGroupTitleClassNames }, this.renderGroupTitleText()))), this.renderNavigationItems()));
|
15772
15840
|
}
|
15773
15841
|
static get delegatesFocus() { return true; }
|
@@ -15778,11 +15846,11 @@ class NavigationGroup {
|
|
15778
15846
|
"$tagName$": "ic-navigation-group",
|
15779
15847
|
"$members$": {
|
15780
15848
|
"expandable": [4],
|
15849
|
+
"expanded": [1028],
|
15781
15850
|
"label": [1],
|
15782
15851
|
"theme": [1],
|
15783
15852
|
"deviceSize": [32],
|
15784
15853
|
"dropdownOpen": [32],
|
15785
|
-
"expanded": [32],
|
15786
15854
|
"focusStyle": [32],
|
15787
15855
|
"inTopNavSideMenu": [32],
|
15788
15856
|
"navigationType": [32],
|
@@ -15796,7 +15864,7 @@ class NavigationGroup {
|
|
15796
15864
|
}; }
|
15797
15865
|
}
|
15798
15866
|
|
15799
|
-
const icNavigationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:-moz-fit-content;width:fit-content;min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
15867
|
+
const icNavigationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--navigation-link-colour:var(--ic-brand-text-color)}:host(:focus-within){z-index:var(--ic-z-index-navigation-item)}svg{width:var(--ic-space-xl);fill:var(--ic-brand-text-color)}.svg{margin-left:auto}.chevron-container svg,.chevron-container .svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chevron-container{flex-grow:1}:host(.expandable.navigation-item) .link,:host(.expandable.navigation-item) ::slotted(a){padding-right:0}:host(.navigation-item) .link,:host(.navigation-item) ::slotted(a){height:calc(100% - var(--ic-space-xxs));width:-moz-fit-content;width:fit-content;color:var(--navigation-link-colour);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md) var(--ic-space-xxs);text-decoration:none;transition:var(--ic-easing-transition-fast);position:relative;white-space:nowrap}:host(.navigation-item) ::slotted(a){height:100%;font:var(--ic-font-label) !important;letter-spacing:var(--ic-font-letter-spacing-0pt025) !important;padding:0 var(--ic-space-md) !important}:host(.navigation-item-selected) .link::after,:host(.navigation-item-selected) ::slotted(a.active)::after,:host(.navigation-item-top-nav) ::slotted(a.active)::after{content:\"\";height:0.25rem;width:100%;position:absolute;bottom:0;background-color:var(--ic-top-navigation-theme)}:host(.navigation-item-selected.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-selected.navigation-item-page-header) .link::after,:host(.navigation-item.navigation-item-page-header) ::slotted(a.active)::after,:host(.navigation-item-top-nav-child) ::slotted(a.active)::after{content:none}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){box-shadow:none}:host(.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover);cursor:pointer}:host(.navigation-item:not(.navigation-item-page-header,.navigation-item-side-menu,.navigation-item-top-nav-child)) ::slotted(a:hover:not(:focus)),:host(.navigation-item-side-nav.navigation-item) .link:hover:not(:focus){background-color:var(--ic-brand-hover) !important}:host(.navigation-item:not(.navigation-item-top-nav-child,.navigation-item-side-menu,.navigation-item-top-nav-child-selected .navigation-item-side-menu-selected)) .focus-indicator:focus-within{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius)}:host(.navigation-item) .link:focus,:host(.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item-selected) .link:focus,:host(.navigation-item) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);outline-offset:calc(-1 * (var(--ic-space-xxxs) + var(--ic-space-1px) / 2))}:host(.navigation-item) .link:active:not(:focus),:host(.navigation-item) ::slotted(a:active:not(:focus)){background-color:var(--ic-brand-active)}:host(.navigation-item-side-menu) .link,:host(.navigation-item-side-menu) ::slotted(a){min-height:2.5rem;height:auto;width:100%;box-sizing:border-box;color:var(--ic-top-navigation-nav-item);--ic-typography-color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;text-decoration:none;text-wrap:wrap;white-space:normal;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(svg),:host(.navigation-item-side-menu) ::slotted(svg),:host(.navigation-item-page-header) ::slotted(svg){fill:var(--ic-color-text-primary)}:host(.navigation-item-side-menu) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast)}:host(.navigation-item-side-menu) .link:hover:not(:focus){background-color:var(--ic-top-navigation-nav-item-hover)}:host(.navigation-item-side-menu) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-side-menu) .focus-indicator:focus-within{box-shadow:none}:host(.navigation-item-side-menu) .link:focus,:host(.navigation-item-side-menu) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset) !important;width:auto;border-radius:var(--ic-border-radius-inset) !important}:host(.navigation-item-side-menu-selected) .link,:host(.navigation-item-side-menu-selected) ::slotted(a){transition:box-shadow var(--ic-easing-transition-slow),\n background-color var(--ic-easing-transition-slow)}:host(.navigation-item-side-menu-selected) .link:focus,:host(.navigation-item-side-menu) ::slotted(a.active:focus),:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){margin-left:var(--ic-space-xs) !important;padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child) .link,:host(.navigation-item-top-nav-child) ::slotted(a){height:2.5rem;width:-moz-fit-content;width:fit-content;min-width:9.063rem;color:var(--ic-top-navigation-nav-item);display:flex;align-items:center;justify-content:flex-start;padding:0 var(--ic-space-md) !important;text-decoration:none;position:relative;transition:box-shadow var(--ic-transition-duration-fast),\n border-radius var(--ic-transition-duration-slow)}:host(.navigation-item-top-nav-child) ::slotted(a){font:var(--ic-font-body) !important;letter-spacing:var(--ic-font-letter-spacing-0pt005) !important}:host(.navigation-item-top-nav-child) .link:hover:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:hover:not(:focus)){background-color:var(--ic-top-navigation-nav-item-hover) !important}:host(.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-top-nav-child) ::slotted(a:focus){z-index:1;outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius-inset);box-shadow:var(--ic-border-focus-inset);transition:border-radius 0s, box-shadow var(--ic-transition-duration-fast)}:host(.navigation-item-top-nav-child) ::slotted(a.active:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}:host(.navigation-item-side-menu) .link:active:not(:focus){background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) .link:active:not(:focus),:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)){outline:var(--ic-hc-focus-outline);background-color:var(--ic-top-navigation-nav-item-pressed)}:host(.navigation-item-top-nav-child) ::slotted(a:active:not(:focus)),:host(.navigation-item-side-menu) ::slotted(a:active:not(:focus)){background-color:var(--ic-top-navigation-nav-item-pressed) !important}:host(.navigation-item-side-menu-selected) *,:host(.navigation-item-top-nav-child-selected) *,:host(.navigation-item-side-menu) ::slotted(a.active),:host(.navigation-item-top-nav-child) ::slotted(a.active){font-weight:700 !important}:host(.navigation-item-top-nav-child) ::slotted(a.active)::before,:host(.navigation-item-top-nav-child-selected) .link::before,:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{content:\"\";position:absolute;left:0;width:var(--ic-space-xs);height:inherit;min-height:2.5rem;background-color:var(--ic-top-navigation-nav-item-banner);transition:left 0s}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu-selected) .link:focus::before{margin-top:var(--ic-space-xxs)}:host(.navigation-item-top-nav-child-selected) .link:focus{margin-left:var(--ic-space-xs);margin-right:calc(-1 * var(--ic-space-xs));padding-left:var(--ic-space-xs) !important}:host(.navigation-item-top-nav-child-selected) .link:focus::before{left:calc(-1 * var(--ic-space-xs));z-index:1}:host(.navigation-item-side-menu-selected) .link::before,:host(.navigation-item-side-menu) ::slotted(a.active)::before,:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before{z-index:1}:host(.navigation-item-side-menu-selected) .link:focus::before,:host(.navigation-item-side-menu) ::slotted(a.active:focus)::before,:host(.navigation-item-top-nav-child) ::slotted(a.active:focus)::before{left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-side-menu-selected) .link::after{display:none}:host(.navigation-item-side-nav-collapsed) .link{height:100%}:host(.navigation-item-side-nav-collapsed) ::slotted(svg),:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(svg){margin:auto;pointer-events:none}:host(.navigation-item-side-nav-collapsed) .icon,:host(.navigation-item-side-nav-collapsed-with-label) .icon,:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{align-items:center;padding:0;margin:auto 0;width:-moz-fit-content;width:fit-content;pointer-events:none}:host(.navigation-item-side-nav-collapsed-with-label) ic-typography{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;text-align:center}:host(.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:flex;flex-direction:column;height:-moz-fit-content;height:fit-content;padding:var(--ic-space-xs) !important;gap:var(--ic-space-xxs)}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){height:auto !important;gap:0;width:auto;padding:var(--ic-space-xs) !important}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block;text-align:center}:host(.navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link ic-typography{opacity:1;min-width:-moz-min-content;min-width:min-content}:host(.navigation-item-side-nav-collapsed) svg,:host(.navigation-item-side-nav-collapsed-with-label) svg{display:none}::slotted(svg){fill:var(--ic-brand-text-color);height:var(--ic-space-lg);width:var(--ic-space-lg);margin-left:var(--ic-space-md)}.icon{height:1.5rem;width:var(--ic-space-xxl);margin-left:calc(-1 * var(--ic-space-md));flex:0 1 0%;position:relative}.icon>::slotted(*){margin-left:var(--ic-space-md) !important;margin-right:var(--ic-space-xs)}.inline-badge{margin-left:var(--ic-space-xs)}.badge{margin-left:0}:host(.navigation-item-side-nav-collapsed) .icon>::slotted(*){margin:auto !important}:host(.navigation-item-side-nav) .icon>::slotted(*){margin-right:0}:host(.navigation-item-side-nav) .link,:host(.navigation-item-side-nav) ::slotted(a){height:var(--navigation-item-height, 4rem);min-height:var(--navigation-item-min-height);width:var(--navigation-item-width, auto);justify-content:var(--navigation-item-justify-content);display:flex;gap:var(--ic-space-xs);box-sizing:border-box;color:var(--navigation-item-child-color) !important;text-decoration:none !important;white-space:nowrap;padding:0 var(--ic-space-md);text-wrap:wrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a){height:var(--navigation-item-child-height);width:var(--navigation-group-width);color:var(--navigation-item-child-color) !important;display:flex;gap:0.625rem;box-sizing:border-box;min-width:0;transition:box-shadow var(--ic-easing-transition-fast);text-decoration:none !important;white-space:nowrap}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:focus,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:focus){box-shadow:var(--ic-border-focus-dark)}:host(.navigation-item-side-nav.navigation-item-side-menu) .link:active{background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav.navigation-item-top-nav-child) .link:active,:host(.navigation-item-side-nav.navigation-item-top-nav-child) ::slotted(a:active){background-color:var(--navigation-item-child-active)}:host(.navigation-item-side-nav) a.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) a.link ic-typography,:host(.navigation-item-side-nav) div.link ic-typography,:host(.navigation-item-side-nav.navigation-item-top-nav-child) div.link ic-typography,.navigation-item-side-nav-slotted-text{opacity:var(--navigation-item-label-opacity);transition:opacity var(--ic-easing-transition-slow);white-space:wrap;text-overflow:ellipsis;overflow:hidden}:host(.navigation-item-side-nav.navigation-item-selected) .link,:host(.navigation-item-side-nav.navigation-item) ::slotted(a.active){box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color)}:host(.navigation-item-side-nav.navigation-item-selected) .link::before,:host(.navigation-item-side-nav) ::slotted(a.active)::before{content:\"\";display:block;position:absolute;inset:0 0 0 0.313rem;border-radius:0.688rem !important;transition:var(--ic-easing-transition-slow)}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus::before,:host(.navigation-item-side-nav) ::slotted(a.active:focus)::before{box-shadow:var(--ic-border-focus-inset)}:host(:not(.navigation-item-side-nav-collapsed).navigation-item-side-nav.navigation-item-side-nav-collapsed-with-label) .link{opacity:var(--navigation-item-label-opacity);height:auto}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) .link,:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){min-width:var(--navigation-group-item-min-width);padding:var(--ic-space-xs) !important;height:auto;gap:0}:host(.navigation-item-top-nav-child.navigation-item-side-nav-collapsed-with-label) ::slotted(a){display:block}:host(.navigation-item-side-nav.navigation-item-selected) .link::after,:host(.navigation-item-side-nav) ::slotted(a.active)::after{display:none}:host(.navigation-item-side-nav.navigation-item) .link:focus,:host(.navigation-item-side-nav.navigation-item) ::slotted(a:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.navigation-item-side-nav.navigation-item-selected) .link:focus,:host(.navigation-item-side-nav) ::slotted(a.active:focus){margin:0 auto;box-shadow:inset 0.313rem 0 0 var(--ic-brand-text-color);border-radius:0}:host(.navigation-item-page-header).link,:host(.navigation-item-page-header) a,:host(.navigation-item-page-header) ::slotted(a){height:2.5rem !important;color:var(--ic-color-text-primary) !important;transition:all var(--ic-easing-transition-fast) !important;box-shadow:rgba(23 89 188 / 0%) !important}:host(.navigation-item-page-header.navigation-item-selected) .link::after,:host(.navigation-item-page-header) ::slotted(a.active)::after{content:\" \" !important;position:absolute;bottom:0;left:0;right:0;height:var(--ic-space-xxs);background-color:var(--ic-action-default) !important}:host(.navigation-item-page-header) .link:hover,:host(.navigation-item-page-header) ::slotted(.link:hover),:host(.navigation-item-page-header) ::slotted(a:hover),:host(.navigation-item-page-header) .link:hover:not(:focus){background-color:var(--ic-action-default-bg-hover) !important;cursor:pointer}:host(.navigation-item-page-header) .link:focus,:host(.navigation-item-page-header) ::slotted(a:focus){box-shadow:var(--ic-border-focus)}:host(.navigation-item-page-header) .link:active,:host(.navigation-item-page-header) ::slotted(a:active){background-color:var(--ic-action-default-bg-pressed) !important}:host(.navigation-item-page-header.navigation-item-selected) .link:focus::after,:host(.navigation-item-page-header) ::slotted(a.active:focus)::after{border-bottom-left-radius:var(--ic-border-radius);border-bottom-right-radius:var(--ic-border-radius)}:host(.navigation-item-page-header.navigation-item-selected.with-transition) .link,:host(.navigation-item-page-header.navigation-item-selected.with-transition) ::slotted(a.active){transition:all var(--ic-easing-transition-fast),\n border-color var(--ic-transition-duration-fast)}:host(.navigation-item-page-header) ::slotted(a.active)::before,:host(.navigation-item-page-header) ::slotted(a.active:focus)::before,:host(.navigation-item-page-header.navigation-item-selected) .link:focus::before{display:none}.open-in-new-icon{flex:1}.open-in-new-icon svg{margin-top:var(--ic-space-xxs);padding-left:var(--ic-space-xs)}:host(.navigation-item-side-nav) .open-in-new-icon{margin-left:calc(-1 * var(--ic-space-xs))}:host(.navigation-item-top-nav) .open-in-new-icon svg,:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-side-nav) .open-in-new-icon svg{height:0.875rem;width:0.875rem}:host(.navigation-item-side-menu) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg{height:var(--ic-space-md);width:var(--ic-space-md)}:host(.navigation-item-page-header) .open-in-new-icon svg,:host(.navigation-item-top-nav-child) .open-in-new-icon svg,:host(.navigation-item-side-menu) .open-in-new-icon svg{fill:var(--ic-color-text-primary)}@media (forced-colors: active){.open-in-new-icon svg{fill:currentcolor}}";
|
15800
15868
|
var IcNavigationItemStyle0 = icNavigationItemCss;
|
15801
15869
|
|
15802
15870
|
/**
|
@@ -16194,16 +16262,16 @@ class NavigationMenu {
|
|
16194
16262
|
}
|
16195
16263
|
}
|
16196
16264
|
render() {
|
16197
|
-
return (hAsync(Host, { key: '
|
16265
|
+
return (hAsync(Host, { key: '238491dcf801f29d30b1da0e65546592557fde24', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: '1f4c1f5653cf725ea520300c56f7769716ed5c2a', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '7b1ff84083af3b3ceb6e309844c99d7e3a0ae350', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '3fbc25efa5a16c9f091ab455379e2c94ae5f35ca', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: '2847e0434b96df094d4d14dc39aaa65d9b504435', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: 'a9543c0611d2c8dd1427500b1cd4cbf2de448b7b', class: {
|
16198
16266
|
["menu-close-button-container"]: true,
|
16199
16267
|
["nav-group-first"]: this.navGroupFirst,
|
16200
|
-
} }, hAsync("ic-button", { key: '
|
16268
|
+
} }, hAsync("ic-button", { key: 'c6116c335e9c6c29bde6485421b3d72456e4c485', 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: 'f224bd0fbc219bb6ae337399e6f08c3187d32fb7', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'a4419dfcec4df358e35bb7c9b623e5a720b89a3e', 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: '29d722a813544e8e82a07e2642a7014b32673dda', name: "navigation" })), this.hasButtons && (hAsync("div", { key: '96ee54e19b08c60e1de050dc06367009bb15484f', class: {
|
16201
16269
|
["menu-buttons-container"]: true,
|
16202
16270
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
16203
|
-
} }, hAsync("slot", { key: '
|
16271
|
+
} }, hAsync("slot", { key: '851897a3d08d4a74078379b16fb66f74392380dd', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: 'faa0f531a4f2232c343b7197a798f7b79bfaaa17', class: {
|
16204
16272
|
["menu-status-version-container"]: true,
|
16205
16273
|
["status-version-no-buttons"]: !this.hasButtons,
|
16206
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
16274
|
+
} }, this.status !== "" && (hAsync("div", { key: '43000a7655c49bdd7c15beaaef8f371f20c59049', class: "menu-status" }, hAsync("ic-typography", { key: 'f92edc3ead11de1eb052835e0fef11ea26f70e91', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: '84b3193b76f979b9dfd967fe549eb996dedf3631', class: "menu-version" }, hAsync("ic-typography", { key: 'f3ea4120a05fc6707ff54ce634aa6798d7dbade3', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
16207
16275
|
}
|
16208
16276
|
get el() { return getElement(this); }
|
16209
16277
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -16336,19 +16404,19 @@ class PageHeader {
|
|
16336
16404
|
const navAriaLabel = `${isSlotUsed$1(this.el, "heading")
|
16337
16405
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
16338
16406
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
16339
|
-
return (hAsync(Host, { key: '
|
16407
|
+
return (hAsync(Host, { key: 'f988d0a582d79cad1f4356f95723c8773bf17190', class: {
|
16340
16408
|
["ic-page-header-sticky"]: !!sticky,
|
16341
16409
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
16342
16410
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16343
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
16411
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: 'e4b8a519550fc032df5155fcff89c73ff81f85ee', class: {
|
16344
16412
|
["border-bottom"]: !!border,
|
16345
16413
|
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
16346
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
16414
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '88196b15dc099dcd58cb05b85b9a658af8a0870f', aligned: aligned, fullHeight: isSlotUsed$1(this.el, "tabs") }, isSlotUsed$1(this.el, "breadcrumbs") && (hAsync("div", { key: '6766660061af3380f50b0c947b36ce82a71256cd', class: "breadcrumb-area" }, hAsync("slot", { key: '489b45909344aa2cfecf01bcc9ebc3d1b8089c45', name: "breadcrumbs" }))), hAsync("div", { key: '47de9346bf042254a6c085fa94e049ba1eb15264', class: "main-content" }, hAsync("div", { key: 'f90a01c812d8abcc73c92c54e00eb3944b8c433d', class: "title-area" }, hAsync("div", { key: '966f731d25f434ce6f83f79175d0341c22a56687', class: "header-content" }, hAsync("slot", { key: '9025f92b304b3e2c67cb63339bdc33699ddb7fde', name: "heading" }, hAsync("ic-typography", { key: 'fe72a4b26d562fa57bbe52289c1a5a949b89f772', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: 'd86917ae13eb27ba68de7755bfdd727d814770e7' }, heading))), hAsync("slot", { key: '8c9fca603f02ffaf1318ce855b6a17bed99ff6f0', name: "heading-adornment" })), hAsync("div", { key: 'aa5559ddfef89fd22fe0994f620b06c7d317f562', class: {
|
16347
16415
|
["subheading-content"]: !!subheading || isSlotUsed$1(this.el, "subheading"),
|
16348
16416
|
["small"]: size === "small",
|
16349
|
-
} }, hAsync("slot", { key: '
|
16350
|
-
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '
|
16351
|
-
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '
|
16417
|
+
} }, hAsync("slot", { key: '8ca2ec4f5e79385004d82721b32aaa4477e5e383', name: "subheading" }, hAsync("ic-typography", { key: 'e3abaf1b025005164883f6aac049425101703a0a', variant: "body" }, subheading)))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '501f5d87bcc67f92a7fc109e1507ecfc82de113d', class: "action-area" }, hAsync("slot", { key: '59b2c28e72936af87fca0d3b5fc78a9292235278', name: "actions" }))), isSlotUsed$1(this.el, "input") && (hAsync("div", { key: '50a7b161cad03ca332d7ba189bbe3e07845b5b3b', class: "input-area" }, hAsync("slot", { key: 'e3dabe11caf744a6b1293fa45bb668b959c330c5', name: "input" })))), (isSlotUsed$1(this.el, "stepper") ||
|
16418
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '7399fec29cf8483d3a0150fb66f8b51fd9bcccf9', class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
16419
|
+
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '60243b69d094b1842c7ba0841170d263c512b83f', name: "stepper" }), isSlotUsed$1(this.el, "tabs") && (hAsync("nav", { key: 'f7b3cfd55bb421b3f9a988c65d66b3206d2ded1b', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: '8344abb3186738bda94429804dcc927b87578c66' }, hAsync("ul", { key: '4c7e5ffe0acf83738cea0b93ef68910cde3a68fb', class: "tabs-slot" }, hAsync("slot", { key: '1634b736035f20da485de5cd90590a2d8e07be3a', name: "tabs" })))))))))));
|
16352
16420
|
}
|
16353
16421
|
get el() { return getElement(this); }
|
16354
16422
|
static get style() { return IcPageHeaderStyle0; }
|
@@ -16626,14 +16694,14 @@ class Pagination {
|
|
16626
16694
|
}
|
16627
16695
|
render() {
|
16628
16696
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
16629
|
-
return (hAsync(Host, { key: '
|
16697
|
+
return (hAsync(Host, { key: 'f0bb93865da97a2978792da0ecec7398d17fd0cd', class: {
|
16630
16698
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16631
16699
|
["ic-pagination-monochrome"]: !!monochrome,
|
16632
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
16700
|
+
} }, type === "simple" && (hAsync("nav", { key: 'd98096aea9467c15560cf5bee82f979a27a6e72b', class: {
|
16633
16701
|
["disabled"]: !!disabled,
|
16634
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
16702
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: 'e578665c5de2260f824cf4ff3c3e29dafabe7037', 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: 'e1172d5a137f47d778f3878155bb747b32303179', class: {
|
16635
16703
|
["disabled"]: !!disabled,
|
16636
|
-
}, 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: '
|
16704
|
+
}, 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: '2094451eaeb1eb5f6f52f4a93f8b30534bd31162', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
16637
16705
|
}
|
16638
16706
|
get el() { return getElement(this); }
|
16639
16707
|
static get watchers() { return {
|
@@ -17111,7 +17179,7 @@ class PaginationItem {
|
|
17111
17179
|
}
|
17112
17180
|
render() {
|
17113
17181
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
17114
|
-
return (hAsync("a", { key: '
|
17182
|
+
return (hAsync("a", { key: '96dd8b411124b3276fdd7b630d6b1d15528398a0', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
17115
17183
|
["item-container"]: true,
|
17116
17184
|
["ellipsis"]: true,
|
17117
17185
|
["disabled"]: !!disabled,
|
@@ -17421,17 +17489,17 @@ class PopoverMenu {
|
|
17421
17489
|
}
|
17422
17490
|
}
|
17423
17491
|
render() {
|
17424
|
-
return (hAsync(Host, { key: '
|
17492
|
+
return (hAsync(Host, { key: '2cf6304cab334813b297e8bf91d25c57ab6b9b91', class: {
|
17425
17493
|
["ic-popover-menu-open"]: !!this.open,
|
17426
17494
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17427
|
-
} }, hAsync("div", { key: '
|
17495
|
+
} }, hAsync("div", { key: 'b7f520998946555e6e5d8ca43d194ec142cf4102', id: this.parentPopover === undefined
|
17428
17496
|
? `ic-popover-submenu-${this.submenuId}`
|
17429
17497
|
: "", class: {
|
17430
17498
|
menu: true,
|
17431
|
-
} }, hAsync("span", { key: '
|
17499
|
+
} }, hAsync("span", { key: '5c43e11463a6fe04356d73c2522eca4c1cb39d68', class: {
|
17432
17500
|
"opening-from-parent": this.openingFromParent,
|
17433
17501
|
"opening-from-child": this.openingFromChild,
|
17434
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
17502
|
+
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '7bb226ae2aa077cff93ea367f136f171020c0718' }, hAsync("span", { key: '0cc54f3ef474f2cbe92c3c04437d83cf35e92de1', role: "menu" }, hAsync("ic-menu-item", { key: 'ae3f4d6162e643ac6245821e392b2b9491215287', 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: 'c3e1211479d31e062b13aba36a025fec0814cfee', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: 'dc399eef7ee50dc37dc57aa1f241292d0827a743', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: 'b1ce83e9b01277953f21fe9c58763915c4a8515a', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: 'fab42dde1d195b5d47dd1c669a7bce81f79f42c6', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: 'fe4f5006cefd63260217c969c06d214f47e0b9bb' }))))));
|
17435
17503
|
}
|
17436
17504
|
static get delegatesFocus() { return true; }
|
17437
17505
|
get el() { return getElement(this); }
|
@@ -17462,9 +17530,12 @@ class PopoverMenu {
|
|
17462
17530
|
}; }
|
17463
17531
|
}
|
17464
17532
|
|
17465
|
-
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label ic-typography{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label ic-typography{margin-bottom:calc(var(--ic-space-sm) / 2)}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
17533
|
+
const icRadioGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--ic-input-label-text-color:var(--ic-radio-button-input-field-label);--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle\n );--ic-input-validation-status-text-color:var(--ic-radio-button-state-text);--ic-input-validation-error:var(--ic-radio-button-state-icon-error)}ic-input-label.error{--ic-input-label-text-color:var(--ic-radio-button-input-field-label-error)}ic-input-label.disabled{--ic-input-label-text-color:var(\n --ic-radio-button-input-field-label-disabled\n );--ic-input-label-helper-text-color:var(\n --ic-radio-button-input-field-subtitle-disabled\n )}ic-input-validation{margin-top:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-validation{margin-top:calc(var(--ic-space-sm) / 2)}ic-input-label:not(.with-helper) .ic-typography-label,ic-input-label .helpertext{margin-bottom:var(--ic-space-sm)}:host(.ic-radio-group-small) ic-input-label:not(.with-helper) .ic-typography-label,:host(.ic-radio-group-small) ic-input-label .helpertext{margin-bottom:calc(var(--ic-space-sm) / 2)}ic-input-label .helpertext{display:block}:host .radio-buttons-container{display:flex;flex-direction:column;gap:var(--ic-space-xxs)}:host(.ic-radio-group-small) .radio-buttons-container{gap:var(--ic-space-xxxs)}:host .radio-buttons-container.horizontal{display:flex;flex-direction:row;gap:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-radio-group-small) .radio-buttons-container.horizontal{gap:var(--ic-space-xl)}";
|
17466
17534
|
var IcRadioGroupStyle0 = icRadioGroupCss;
|
17467
17535
|
|
17536
|
+
/**
|
17537
|
+
* @slot helper-text - Content is set as the helper text for the radio group.
|
17538
|
+
*/
|
17468
17539
|
class RadioGroup {
|
17469
17540
|
constructor(hostRef) {
|
17470
17541
|
registerInstance(this, hostRef);
|
@@ -17689,16 +17760,16 @@ class RadioGroup {
|
|
17689
17760
|
}
|
17690
17761
|
render() {
|
17691
17762
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
17692
|
-
return (hAsync(Host, { key: '
|
17763
|
+
return (hAsync(Host, { key: '04d5db82b3be0bd747a4bbbf540ff38a2344bb18', onKeyDown: handleKeyDown, class: {
|
17693
17764
|
"ic-radio-group-small": size === "small",
|
17694
17765
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17695
|
-
} }, hAsync("div", { key: '
|
17766
|
+
} }, hAsync("div", { key: '7293abe2277d46aa27ffd81ad47982f6f7d63e51', role: "radiogroup", "aria-label": `${label}${required ? ", required" : ""}` }, !hideLabel && (hAsync("ic-input-label", { key: '90c7d78da23c13d04df52dcdf554af8a15de6e05', class: {
|
17696
17767
|
[`${validationStatus}`]: true,
|
17697
17768
|
["disabled"]: !!disabled,
|
17698
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled })), hAsync("div", { key: '
|
17769
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, hAsync("slot", { key: 'fe90706c42c1abebb7bbf757808af7219b577aa8', name: "helper-text", slot: "helper-text" }))), hAsync("div", { key: 'd2e61e45ecdcb0c40229f4d25a2c6c0ed1247f11', class: {
|
17699
17770
|
"radio-buttons-container": true,
|
17700
17771
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
17701
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
17772
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'bac88f9fba9a5a242aced76a20f21933f4de6299' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: 'f7a0dc8e5d1ac3d774644910600153aba9caacd5', ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
17702
17773
|
}
|
17703
17774
|
get el() { return getElement(this); }
|
17704
17775
|
static get watchers() { return {
|
@@ -17878,15 +17949,15 @@ class RadioOption {
|
|
17878
17949
|
render() {
|
17879
17950
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
17880
17951
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
17881
|
-
return (hAsync(Host, { key: '
|
17952
|
+
return (hAsync(Host, { key: '66293449ae3f0f896a661395663aa6c6dba7120b', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
17882
17953
|
["ic-radio-option-disabled"]: !!disabled,
|
17883
17954
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17884
|
-
} }, hAsync("div", { key: '
|
17955
|
+
} }, hAsync("div", { key: 'a2c09f392610f5396c21fb5d5b07844eb8e4db08', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: 'b51d23e434eb9ab8545047f93b60458dcfaac2b1' }, hAsync("input", { key: '7a53942a42b170e7110b1faa688480fab5080a02', 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: 'a307412594b305b08290b7fa488f8600a0f4b527', class: "checkmark" })), hAsync("ic-typography", { key: 'aab05754fdff4e00b3078593d0dd1e2457dcaded', class: "radio-label", variant: "body" }, hAsync("label", { key: '88947c4ea40c1dea292edc9a5aa649ec19ab29b9', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: '06c1920d96ec36c622b258a7d4ff8a02edc0789d', class: {
|
17885
17956
|
"dynamic-container": true,
|
17886
17957
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
17887
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
17958
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '79324c51055d3d6223f79857a72d0eb2b0c22f69', class: "branch-corner" })), hAsync("div", { key: 'df7eb14bf1776611bf956140821b16d025b72bd8' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '0eecaca9a48b8ccef541736e453c58d2f29fd15b', variant: "caption" }, hAsync("p", { key: '45fba47da58602ccc13f1420cba7a7108c9c5615', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: '764e735294d09ea889cc3bc241dee272e7afae31', class: {
|
17888
17959
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
17889
|
-
} }, hAsync("slot", { key: '
|
17960
|
+
} }, hAsync("slot", { key: 'a3e127198c155be9c525e0159506f852f4000b86', name: ADDITIONAL_FIELD })))))));
|
17890
17961
|
}
|
17891
17962
|
get el() { return getElement(this); }
|
17892
17963
|
static get watchers() { return {
|
@@ -17931,6 +18002,9 @@ const icSearchBarCss = "/*! normalize.css v8.0.1 | MIT License | github.com/neco
|
|
17931
18002
|
var IcSearchBarStyle0 = icSearchBarCss;
|
17932
18003
|
|
17933
18004
|
let inputIds$3 = 0;
|
18005
|
+
/**
|
18006
|
+
* @slot helper-text - Content is set as the helper text for the search bar.
|
18007
|
+
*/
|
17934
18008
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
17935
18009
|
class SearchBar {
|
17936
18010
|
constructor(hostRef) {
|
@@ -18044,6 +18118,10 @@ class SearchBar {
|
|
18044
18118
|
* The placeholder value to display.
|
18045
18119
|
*/
|
18046
18120
|
this.placeholder = "Search";
|
18121
|
+
/**
|
18122
|
+
* If `true` the parent form will not submit when the icSubmitSearch event fires.
|
18123
|
+
*/
|
18124
|
+
this.preventFormSubmitOnSearch = false;
|
18047
18125
|
/**
|
18048
18126
|
* If `true`, the readonly state will be set.
|
18049
18127
|
*/
|
@@ -18306,6 +18384,13 @@ class SearchBar {
|
|
18306
18384
|
this.hasTimedOut ||
|
18307
18385
|
this.loading;
|
18308
18386
|
this.showMenuWithNoInput = () => this.charactersUntilSuggestion === 0;
|
18387
|
+
this.updateSearchButtonType = () => {
|
18388
|
+
this.searchButtonType =
|
18389
|
+
!!this.el.closest("FORM") &&
|
18390
|
+
!this.preventFormSubmitOnSearch
|
18391
|
+
? "submit"
|
18392
|
+
: "button";
|
18393
|
+
};
|
18309
18394
|
}
|
18310
18395
|
watchCharactersUntilSuggestionHandler() {
|
18311
18396
|
if (this.showMenuWithNoInput()) {
|
@@ -18324,6 +18409,9 @@ class SearchBar {
|
|
18324
18409
|
this.triggerLoading();
|
18325
18410
|
}
|
18326
18411
|
}
|
18412
|
+
preventFormSubmitOnSearchHandler() {
|
18413
|
+
this.updateSearchButtonType();
|
18414
|
+
}
|
18327
18415
|
filteredOptionsHandler(newOptions) {
|
18328
18416
|
this.hasTimedOut = newOptions.some((opt) => opt.timedOut);
|
18329
18417
|
}
|
@@ -18371,6 +18459,7 @@ class SearchBar {
|
|
18371
18459
|
componentWillLoad() {
|
18372
18460
|
this.setInputValue(this.value);
|
18373
18461
|
removeDisabledFalse$1(this.disabled, this.el);
|
18462
|
+
this.updateSearchButtonType();
|
18374
18463
|
}
|
18375
18464
|
componentDidLoad() {
|
18376
18465
|
if (this.focusOnLoad) {
|
@@ -18432,9 +18521,9 @@ class SearchBar {
|
|
18432
18521
|
}, 500);
|
18433
18522
|
}
|
18434
18523
|
render() {
|
18435
|
-
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, charactersUntilSuggestion, labelField, valueField, loadingLabel, loadingErrorLabel, searchMode, showClearButton, searchSubmitFocused, clearButtonFocused, } = this;
|
18524
|
+
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, charactersUntilSuggestion, labelField, valueField, loadingLabel, loadingErrorLabel, searchMode, showClearButton, searchSubmitFocused, clearButtonFocused, searchButtonType, } = this;
|
18436
18525
|
const disabledMode = readonly || disabled;
|
18437
|
-
const describedBy = getInputDescribedByText$1(inputId, helperText !== "", false).trim();
|
18526
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", false).trim();
|
18438
18527
|
let describedById = undefined;
|
18439
18528
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
18440
18529
|
describedById = `${describedBy} ${inputId}-assistive-hint`;
|
@@ -18451,39 +18540,39 @@ class SearchBar {
|
|
18451
18540
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
18452
18541
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
18453
18542
|
renderHiddenInput$1(this.el, value, name, disabledMode);
|
18454
|
-
return (hAsync(Host, { key: '
|
18543
|
+
return (hAsync(Host, { key: '52cd7f9c675ebb5a73d43d8aba5c564a09975983', class: {
|
18455
18544
|
"ic-search-bar-search": true,
|
18456
18545
|
"ic-search-bar-full-width": fullWidth,
|
18457
18546
|
"ic-search-bar-disabled": disabled,
|
18458
18547
|
"ic-search-bar-small": size === "small",
|
18459
18548
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18460
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
18549
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '93f1f86abb836848f4a77e8bea800402a7c3d792', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '3408fa52e67fbc9420cb7f763198ea950e356b7e', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, hAsync("slot", { key: '24fed7a49fc79140dabb28e1f77c8321bc51729b', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'be1083aceb07c1235666cb3f1f9892f8e1b8538d', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: '4ea2d718f3b6e4e524f534719630c618bb25a4d4', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
18461
18550
|
"no-left-pad": readonly,
|
18462
18551
|
readonly,
|
18463
18552
|
"truncate-value": truncateValue,
|
18464
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": label, "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: '
|
18553
|
+
}, 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: '447b4da477637a70ac3f2b9c180df87aebee044b', class: {
|
18465
18554
|
"clear-button-container": true,
|
18466
18555
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
18467
|
-
} }, hAsync("ic-button", { key: '
|
18556
|
+
} }, hAsync("ic-button", { key: '3a740c60761c034298c1cabf4173a4168a2cbaee', id: "clear-button", class: {
|
18468
18557
|
"clear-button": true,
|
18469
18558
|
"clear-button-unfocused": !clearButtonFocused,
|
18470
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "
|
18559
|
+
}, "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: '7fec0530f8a21476d808203bc79857a0c44538ab', class: "divider" })), hAsync("div", { key: '376a77d494db324f5e469932009692cab51c58fe', class: {
|
18471
18560
|
"search-submit-button-container": true,
|
18472
18561
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18473
|
-
} }, hAsync("ic-button", { key: '
|
18562
|
+
} }, hAsync("ic-button", { key: 'c94e42dc5907d0e7dc412b8a09792090d4359783', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
18474
18563
|
"search-submit-button": true,
|
18475
18564
|
"search-submit-button-small": size === "small",
|
18476
18565
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
18477
18566
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18478
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type:
|
18567
|
+
}, 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: 'd59837a4d8626cb434d74920c3d16ebad1aa38e8', class: {
|
18479
18568
|
"menu-container": true,
|
18480
18569
|
fullwidth: fullWidth,
|
18481
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '
|
18570
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: '05921526c6a5d778689ffaaa00567c155e1d24f9', class: {
|
18482
18571
|
"no-results": this.hadNoOptions() ||
|
18483
18572
|
(filteredOptions.length === 1 &&
|
18484
18573
|
(filteredOptions[0][labelField] === loadingLabel ||
|
18485
18574
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
18486
|
-
}, 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: '
|
18575
|
+
}, 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: 'd7ae3fba62207c2df5ce4b02434e81777666d5c2', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
18487
18576
|
}
|
18488
18577
|
static get delegatesFocus() { return true; }
|
18489
18578
|
get el() { return getElement(this); }
|
@@ -18492,6 +18581,7 @@ class SearchBar {
|
|
18492
18581
|
"disabled": ["watchDisabledHandler"],
|
18493
18582
|
"debounce": ["debounceChanged"],
|
18494
18583
|
"loading": ["loadingHandler"],
|
18584
|
+
"preventFormSubmitOnSearch": ["preventFormSubmitOnSearchHandler"],
|
18495
18585
|
"filteredOptions": ["filteredOptionsHandler"],
|
18496
18586
|
"options": ["watchOptionsHandler"],
|
18497
18587
|
"value": ["watchValueHandler"]
|
@@ -18522,6 +18612,7 @@ class SearchBar {
|
|
18522
18612
|
"loadingLabel": [1, "loading-label"],
|
18523
18613
|
"name": [1],
|
18524
18614
|
"placeholder": [1],
|
18615
|
+
"preventFormSubmitOnSearch": [4, "prevent-form-submit-on-search"],
|
18525
18616
|
"readonly": [4],
|
18526
18617
|
"required": [4],
|
18527
18618
|
"searchMode": [1, "search-mode"],
|
@@ -18538,6 +18629,7 @@ class SearchBar {
|
|
18538
18629
|
"open": [32],
|
18539
18630
|
"searchSubmitFocused": [32],
|
18540
18631
|
"showClearButton": [32],
|
18632
|
+
"searchButtonType": [32],
|
18541
18633
|
"filteredOptions": [32],
|
18542
18634
|
"setFocus": [64]
|
18543
18635
|
},
|
@@ -18564,12 +18656,12 @@ class SectionContainer {
|
|
18564
18656
|
}
|
18565
18657
|
render() {
|
18566
18658
|
const { aligned, fullHeight } = this;
|
18567
|
-
return (hAsync(Host, { key: '
|
18659
|
+
return (hAsync(Host, { key: '9e23a2afe1ae3c15369906d28f55755f69254f8e', class: {
|
18568
18660
|
["aligned-left"]: aligned === "left" || aligned === null,
|
18569
18661
|
["aligned-center"]: aligned === "center",
|
18570
18662
|
["aligned-full-width"]: aligned === "full-width",
|
18571
18663
|
["no-vertical-padding"]: !!fullHeight,
|
18572
|
-
} }, hAsync("slot", { key: '
|
18664
|
+
} }, hAsync("slot", { key: '75e12e8d9f4b61ff68aba436e7206129d143ddba' })));
|
18573
18665
|
}
|
18574
18666
|
static get style() { return IcSectionContainerStyle0; }
|
18575
18667
|
static get cmpMeta() { return {
|
@@ -18601,6 +18693,7 @@ var IcSelectStyle0 = icSelectCss;
|
|
18601
18693
|
let inputIds$2 = 0;
|
18602
18694
|
const MUTABLE_ATTRIBUTES$1 = [...IC_INHERITED_ARIA, "tabindex", "title"];
|
18603
18695
|
/**
|
18696
|
+
* @slot helper-text - Content is set as the helper text for the select.
|
18604
18697
|
* @slot icon - Content will be placed to the left of the select text input.
|
18605
18698
|
*/
|
18606
18699
|
class Select {
|
@@ -19375,7 +19468,7 @@ class Select {
|
|
19375
19468
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
19376
19469
|
renderHiddenInput$1(this.el, searchable ? hiddenInputValue : currValue, name || inputId, disabled);
|
19377
19470
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
19378
|
-
const describedBy = getInputDescribedByText$1(inputId, helperText !== "", hasValidationStatus(validationStatus, !!disabled)).trim();
|
19471
|
+
const describedBy = getInputDescribedByText$1(this.el, inputId, helperText !== "", hasValidationStatus(validationStatus, !!disabled)).trim();
|
19379
19472
|
const valueLabelString = multiple
|
19380
19473
|
? this.getMultipleOptionsString(currValue)
|
19381
19474
|
: this.getLabelFromValue(currValue);
|
@@ -19383,18 +19476,18 @@ class Select {
|
|
19383
19476
|
(searchable
|
19384
19477
|
? !!searchableSelectInputValue
|
19385
19478
|
: !!currValue && !loading && showClearButton);
|
19386
|
-
return (hAsync(Host, { key: '
|
19479
|
+
return (hAsync(Host, { key: '4772c66e1053f7c19cafff3753af54715eab05d9', class: {
|
19387
19480
|
"ic-select-disabled": disabled,
|
19388
19481
|
"ic-select-searchable": searchable,
|
19389
19482
|
[`ic-select-${size}`]: size !== "medium",
|
19390
19483
|
"ic-select-full-width": fullWidth,
|
19391
19484
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
19392
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
19485
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '8d4a5a0b53f01cc6740b9fc1f5fa0805e45c8169', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '37e19194734f052932dd6ac7c56994f67802a1bd', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: '3b27f513ffc78d514c7695b1e5941041837efd55', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'a5bf5d711e23862ec08fb8f8e85ce0beec436ccc', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed$1(this.el, "icon") &&
|
19393
19486
|
!disabled &&
|
19394
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
19487
|
+
(!readonly || !!value) && (hAsync("span", { key: '42fc8c78302cde968d3c96ad72c9aac66652829e', slot: "left-icon", class: {
|
19395
19488
|
readonly,
|
19396
19489
|
"has-value": !!value,
|
19397
|
-
} }, hAsync("slot", { key: '
|
19490
|
+
} }, hAsync("slot", { key: '0cf7160335785716303e4e2e602be1a2d975098e', 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: {
|
19398
19491
|
"select-input": true,
|
19399
19492
|
"with-clear-button": !!searchableSelectInputValue,
|
19400
19493
|
}, 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 &&
|
@@ -19414,13 +19507,13 @@ class Select {
|
|
19414
19507
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
19415
19508
|
"expand-icon": true,
|
19416
19509
|
"expand-icon-open": open,
|
19417
|
-
}, 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: '
|
19510
|
+
}, 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: '3c09e05b72ddab09e9cfe2fb3ba2e403964dcb37', class: {
|
19418
19511
|
"no-results": loading ||
|
19419
19512
|
hasTimedOut ||
|
19420
19513
|
((_a = noOptions === null || noOptions === void 0 ? void 0 : noOptions[0]) === null || _a === void 0 ? void 0 : _a.label) === emptyOptionListText,
|
19421
19514
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
19422
19515
|
? this.searchableSelectElement
|
19423
|
-
: 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: '
|
19516
|
+
: 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: '744fd85d0482cc49928b5d167691a58ff87d22ab', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '034f52ca6c0b23f29d784ec342a83e9434a0e352', class: { "menu-open": open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: inputId })))));
|
19424
19517
|
}
|
19425
19518
|
static get delegatesFocus() { return true; }
|
19426
19519
|
get el() { return getElement(this); }
|
@@ -19606,9 +19699,7 @@ class SideNavigation {
|
|
19606
19699
|
};
|
19607
19700
|
this.toggleMenuExpanded = (expanded) => {
|
19608
19701
|
var _a, _b, _c, _d;
|
19609
|
-
|
19610
|
-
this.menuExpanded = expanded;
|
19611
|
-
}
|
19702
|
+
this.menuExpanded = expanded;
|
19612
19703
|
if (this.menuExpanded) {
|
19613
19704
|
this.setAndRemoveNoWrapAfterMenuExpanded();
|
19614
19705
|
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".app-title-inner-wrapper")) === null || _b === void 0 ? void 0 : _b.classList.add("app-title-show");
|
@@ -19823,32 +19914,32 @@ class SideNavigation {
|
|
19823
19914
|
this.resizeObserverCallback = (currSize) => {
|
19824
19915
|
var _a, _b, _c, _d;
|
19825
19916
|
this.deviceSize = currSize;
|
19826
|
-
const
|
19917
|
+
const isSDeviceEnableTop = currSize === DEVICE_SIZES$1.S && !this.disableTopBarBehaviour;
|
19827
19918
|
if (!this.disableAutoParentStyling) {
|
19828
19919
|
const topBarHeight = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".top-bar")) === null || _b === void 0 ? void 0 : _b.scrollHeight;
|
19829
|
-
this.setParentPaddingTop(
|
19830
|
-
if (
|
19920
|
+
this.setParentPaddingTop(isSDeviceEnableTop ? `${topBarHeight}px` : "0");
|
19921
|
+
if (isSDeviceEnableTop)
|
19831
19922
|
this.setParentPaddingLeft("0");
|
19832
|
-
if (
|
19923
|
+
if (isSDeviceEnableTop && this.inline) {
|
19833
19924
|
(_c = this.el.parentElement) === null || _c === void 0 ? void 0 : _c.style.setProperty("height", `calc(100% - ${topBarHeight}px)`);
|
19834
19925
|
}
|
19835
|
-
else if (!
|
19926
|
+
else if (!isSDeviceEnableTop) {
|
19836
19927
|
(_d = this.el.parentElement) === null || _d === void 0 ? void 0 : _d.style.setProperty("height", "100%");
|
19837
19928
|
}
|
19838
19929
|
}
|
19930
|
+
const notSmallDisableTop = currSize > DEVICE_SIZES$1.S || this.disableTopBarBehaviour;
|
19839
19931
|
if (!this.disableAutoParentStyling) {
|
19840
19932
|
const paddingLeft = `calc(var(--ic-space-xxl) ${this.collapsedIconLabels ? "* 2" : "+ var(--ic-space-xs)"})`;
|
19841
19933
|
if (currSize > DEVICE_SIZES$1.L) {
|
19842
19934
|
this.setParentPaddingTop("0");
|
19843
19935
|
this.setParentPaddingLeft("0");
|
19844
19936
|
}
|
19845
|
-
else if (
|
19937
|
+
else if (notSmallDisableTop &&
|
19846
19938
|
currSize <= DEVICE_SIZES$1.M &&
|
19847
19939
|
this.static) {
|
19848
19940
|
this.setParentPaddingLeft(paddingLeft);
|
19849
19941
|
}
|
19850
|
-
else if (
|
19851
|
-
currSize <= DEVICE_SIZES$1.L) {
|
19942
|
+
else if (notSmallDisableTop && currSize <= DEVICE_SIZES$1.L) {
|
19852
19943
|
this.setParentPaddingLeft(this.static && this.menuExpanded
|
19853
19944
|
? "calc(var(--ic-space-xl) * 10)"
|
19854
19945
|
: paddingLeft);
|
@@ -19937,10 +20028,11 @@ class SideNavigation {
|
|
19937
20028
|
render() {
|
19938
20029
|
const { appTitle, menuOpen, foregroundColor, menuExpanded, href, status, version, collapsedIconLabels, inline, } = this;
|
19939
20030
|
const isSDevice = !this.disableTopBarBehaviour && this.deviceSize === DEVICE_SIZES$1.S;
|
20031
|
+
const isSDeviceDisableTop = this.disableTopBarBehaviour && this.deviceSize === DEVICE_SIZES$1.S;
|
19940
20032
|
const isMdDevice = this.deviceSize === DEVICE_SIZES$1.M;
|
19941
20033
|
const isLgDevice = this.deviceSize >= DEVICE_SIZES$1.L;
|
19942
20034
|
const isAppNameSubtitleVariant = this.deviceSizeAppTitle === DEVICE_SIZES$1.S;
|
19943
|
-
const displayExpandBtn = isMdDevice ||
|
20035
|
+
const displayExpandBtn = isMdDevice || isSDeviceDisableTop || (isLgDevice && !this.static);
|
19944
20036
|
const topBarProps = {
|
19945
20037
|
isSDevice,
|
19946
20038
|
foregroundColor,
|
@@ -19949,7 +20041,7 @@ class SideNavigation {
|
|
19949
20041
|
isAppNameSubtitleVariant,
|
19950
20042
|
appTitle: appTitle || "",
|
19951
20043
|
};
|
19952
|
-
return (hAsync(Host, { key: '
|
20044
|
+
return (hAsync(Host, { key: '3c2b5578401f4cb5aec4443e08d0dd201e3b68a5', class: {
|
19953
20045
|
"xs-menu-open": menuOpen && isSDevice,
|
19954
20046
|
"xs-menu-close": !menuOpen && isSDevice,
|
19955
20047
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
@@ -19958,12 +20050,12 @@ class SideNavigation {
|
|
19958
20050
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
19959
20051
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
19960
20052
|
["ic-side-navigation-inline"]: !!inline,
|
19961
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
20053
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'e23e83b3b8ab5745d3336b9046d73b2093b3ce2b', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '015266a0a9c86247a1304a261a8854f6f09c2cc9', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: 'dd6adfcf6555b8733c3a54e986c376a8173b67f4', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '2496078c272bd4a2330a71a92fe5b6814d57f057', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '9357b0f4413ffb8a27454e76f4ef8f31a0268edd', class: "navigation-list" }, hAsync("slot", { key: 'f16b2e21c42f8bb71090bdf2616821a7f3971bb6', name: "primary-navigation" }))))), hAsync("div", { key: '526a5d6b53d96281d1f94ccba74fff0656bae624', class: {
|
19962
20054
|
["bottom-wrapper"]: true,
|
19963
20055
|
["classification-spacing"]: hasClassificationBanner(),
|
19964
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
20056
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: 'b4ca53bf595e01cca2fa4f6be6c206df17ca9dea', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: '3297c45f0206ad300b91bc72fd3f73833344e0a6', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: '9e26f92a7d9b7a336c030d5d9341e72e8d0c8869', class: "navigation-list" }, hAsync("slot", { key: '7542d4061e0b546499e5b5323c39957c1607435a', name: "secondary-navigation" })))), hAsync("div", { key: '3b7e932d373b189762584a180a13bc06ec702d77', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'fa143397381376b142bef4fc6318ad98f329a358' }), displayExpandBtn && (hAsync("button", { key: '1d92181c969e5fd7c960ff2b28dbc9588b0339cc', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: 'f82c9aec7d5b2175bcf0a71edef6e7dbd4d2914e', class: "app-status-wrapper" }, status !== "" && (hAsync("div", { key: '33caeb2d9c8234d9b526fb9eea4a4a4ff829238d', class: {
|
19965
20057
|
["app-status"]: true,
|
19966
|
-
} }, hAsync("ic-typography", { key: '
|
20058
|
+
} }, hAsync("ic-typography", { key: '565ad1362e02ba1c86a179310f8fa9681402c9f2', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version !== "" && (hAsync("ic-typography", { key: '98c9e55f050ae87c60506b72726d843e3e67eb8e', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
19967
20059
|
}
|
19968
20060
|
get el() { return getElement(this); }
|
19969
20061
|
static get watchers() { return {
|
@@ -20027,11 +20119,11 @@ class Skeleton {
|
|
20027
20119
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
20028
20120
|
}
|
20029
20121
|
: undefined;
|
20030
|
-
return (hAsync(Host, { key: '
|
20122
|
+
return (hAsync(Host, { key: '5818b75264565b11565affe9e6edbd0ebc850b5a', class: {
|
20031
20123
|
skeleton: true,
|
20032
20124
|
"ic-skeleton-circle": variant === "circle",
|
20033
20125
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20034
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
20126
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'dac00f75ef41cba4df058a87ac54a7346e93f747' })));
|
20035
20127
|
}
|
20036
20128
|
get el() { return getElement(this); }
|
20037
20129
|
static get style() { return IcSkeletonStyle0; }
|
@@ -20088,9 +20180,9 @@ class SkipLink {
|
|
20088
20180
|
}
|
20089
20181
|
render() {
|
20090
20182
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
20091
|
-
return (hAsync(Host, { key: '
|
20183
|
+
return (hAsync(Host, { key: '48ebe55664670d4b67c3063a4d0d309b7a7b001a', class: {
|
20092
20184
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20093
|
-
} }, hAsync("ic-link", { key: '
|
20185
|
+
} }, hAsync("ic-link", { key: 'effeead1403ff76b176d5bb7b3863c53e3677dd9', class: {
|
20094
20186
|
"display-top": !inline,
|
20095
20187
|
"full-width": !!fullWidth,
|
20096
20188
|
"show-background": !transparentBackground,
|
@@ -20155,12 +20247,12 @@ class StatusTag {
|
|
20155
20247
|
}
|
20156
20248
|
render() {
|
20157
20249
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
20158
|
-
return (hAsync(Host, { key: '
|
20250
|
+
return (hAsync(Host, { key: '1364b3edcf4a5ebe148cfb8aa777bda105a3282f', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: '96a6e601c3aeef8600835dc1e114c7be5a240164', class: {
|
20159
20251
|
["tag"]: true,
|
20160
20252
|
[`${variant}-${status}`]: true,
|
20161
20253
|
["outlined"]: variant === "outlined",
|
20162
20254
|
[`${size}`]: true,
|
20163
|
-
} }, hAsync("ic-typography", { key: '
|
20255
|
+
} }, hAsync("ic-typography", { key: 'dd831bf604192af5ee4b29676be2eda2d5d12e24', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: 'd7c07a02acbb5db23516389b41a752c75f6c3da6' }, label)))));
|
20164
20256
|
}
|
20165
20257
|
static get style() { return IcStatusTagStyle0; }
|
20166
20258
|
static get cmpMeta() { return {
|
@@ -20244,29 +20336,29 @@ class Step {
|
|
20244
20336
|
// STATUS ICON FOR COMPACT STEP
|
20245
20337
|
let statusIcon;
|
20246
20338
|
if (this.type === "completed" || this.compactStepStyling === "completed") {
|
20247
|
-
statusIcon = (hAsync("span", { key: '
|
20339
|
+
statusIcon = (hAsync("span", { key: 'da8e370996e92dde0f17f6460ecb0c11d8def086', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
20248
20340
|
}
|
20249
20341
|
else if (this.type === "disabled" ||
|
20250
20342
|
this.compactStepStyling === "disabled") {
|
20251
|
-
statusIcon = (hAsync("span", { key: '
|
20343
|
+
statusIcon = (hAsync("span", { key: '581de517797d73b13bab42503a084a579c540d5f', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
20252
20344
|
}
|
20253
20345
|
// COMPACT STEP COMPONENT
|
20254
|
-
const compactStep = (hAsync("div", { key: '
|
20346
|
+
const compactStep = (hAsync("div", { key: '2b0b01b29c81bd1ae351b56f04c18f7eab1ca4f1', class: {
|
20255
20347
|
["step"]: true,
|
20256
20348
|
["current"]: !!this.current,
|
20257
20349
|
[`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
|
20258
20350
|
["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
|
20259
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
20351
|
+
} }, hAsync("ic-loading-indicator", { key: '4f2234e8dc571338c71f63263d2cd45460920717', class: {
|
20260
20352
|
"compact-step-progress-indicator": true,
|
20261
20353
|
"not-required": this.type === "disabled" ||
|
20262
20354
|
this.compactStepStyling === "disabled",
|
20263
|
-
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '
|
20355
|
+
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: 'bb3834decc5d6e971b8da1b225987f41d7542b67', class: "heading-area" }, hAsync("ic-typography", { key: 'c9ac23c26ecb3a002f065583c36b105dd7a80d35', variant: "h4", class: "heading" }, this.heading), hAsync("div", { key: '72a46d0b49c4b09db01fd6a7a4000efb4d4f6da9', class: "info-line" }, hAsync("ic-typography", { key: '0a8f7b16a04431260d1650474ea86faa0248af2d', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, hAsync("span", { key: '497ad4a0febb2b9f5380a0bb28f0effc6368cf1d', class: "visually-hidden" }, " steps")), (this.subheading ||
|
20264
20356
|
this.type === "completed" ||
|
20265
20357
|
this.type === "disabled" ||
|
20266
20358
|
(this.variant === "compact" &&
|
20267
20359
|
!!this.compactStepStyling &&
|
20268
20360
|
this.compactStepStyling !== "active") ||
|
20269
|
-
!!this.status) && (hAsync("div", { key: '
|
20361
|
+
!!this.status) && (hAsync("div", { key: 'ee5da9d5d75229d3bffbc761dfc4c779b22b063d', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (hAsync("ic-typography", { key: 'b249e660a2eff61dc1d537ab14e2bf027c2ffab2', variant: "caption" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20270
20362
|
? this.subheading
|
20271
20363
|
: this.type === "disabled" ||
|
20272
20364
|
(this.variant === "compact" &&
|
@@ -20279,26 +20371,26 @@ class Step {
|
|
20279
20371
|
// ICON FOR DEFAULT STEP
|
20280
20372
|
let icon;
|
20281
20373
|
if (this.type !== "completed") {
|
20282
|
-
icon = (hAsync("ic-typography", { key: '
|
20374
|
+
icon = (hAsync("ic-typography", { key: '8d6b60fe3b7cb9426536ac8afaeb798de0291b1c', variant: "subtitle-small" }, hAsync("span", { key: '464e32e9503075944e90e9e42c72ef3955c948d0', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
20283
20375
|
}
|
20284
20376
|
else {
|
20285
|
-
icon = (hAsync("div", { key: '
|
20377
|
+
icon = (hAsync("div", { key: '620c7f67632c073a4e339427bedc5ffed0a4a320', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '1396290202c009168bf4b7983a2af4f5d8fdeb64', class: "check-icon", innerHTML: checkIcon })));
|
20286
20378
|
}
|
20287
20379
|
// STEP CONNECT FOR DEFAULT STEP
|
20288
|
-
const partialBar = this.type === "current" && (hAsync("div", { key: '
|
20289
|
-
const finalStep = !this.lastStep && (hAsync("div", { key: '
|
20380
|
+
const partialBar = this.type === "current" && (hAsync("div", { key: '7d27dc6a29aca34dcb14c0624c66309614c5378a', class: "step-connect-inner" }));
|
20381
|
+
const finalStep = !this.lastStep && (hAsync("div", { key: '70aeb7052405a7977a12562c329f227c71e35a8b', class: {
|
20290
20382
|
["step-connect"]: true,
|
20291
20383
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
20292
20384
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20293
20385
|
} }, partialBar));
|
20294
20386
|
// DEFAULT STEP COMPONENT
|
20295
|
-
const defaultStep = (hAsync("div", { key: '
|
20387
|
+
const defaultStep = (hAsync("div", { key: '130b7d2d16c416a5e699a20564b475fe0620af18', class: {
|
20296
20388
|
["step"]: true,
|
20297
20389
|
[`${this.type}`]: true,
|
20298
|
-
} }, hAsync("div", { key: '
|
20390
|
+
} }, hAsync("div", { key: '6b71087d2f67a0858fdd819424fed8d36084d98e', class: "step-top" }, hAsync("div", { key: 'a9d0fc4317db6cc4b60c8429909fe30dbae3001e', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (hAsync("div", { key: '13c274e45d81977b4ceeaf98a4e092a2d90fec97', class: "heading-area" }, this.heading && (hAsync("ic-typography", { key: '1c4307d5780fff0c7200631e7b729024e3ca8315', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (hAsync("ic-typography", { key: '4e6b789f77f40ed85e486bb8bf25b2209e042a91', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20299
20391
|
? this.subheading
|
20300
20392
|
: stepStatus))))));
|
20301
|
-
return (hAsync(Host, { key: '
|
20393
|
+
return (hAsync(Host, { key: 'aaeb6b423f4a746831b15ec90ae450a4a4c3fc9e', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
|
20302
20394
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
20303
20395
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20304
20396
|
[`ic-step-${this.variant}`]: true,
|
@@ -20579,11 +20671,11 @@ class Stepper {
|
|
20579
20671
|
checkResizeObserver$1(this.runResizeObserver);
|
20580
20672
|
}
|
20581
20673
|
render() {
|
20582
|
-
return (hAsync(Host, { key: '
|
20674
|
+
return (hAsync(Host, { key: '82128e652194f8c19692211d4170bab0651112c6', class: {
|
20583
20675
|
[`ic-stepper-${this.variant}`]: true,
|
20584
20676
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
20585
20677
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
20586
|
-
} }, hAsync("ul", { key: '
|
20678
|
+
} }, hAsync("ul", { key: '887be84fa976e8aae0bc1fd659781f4650543725', class: "step-item-list" }, hAsync("slot", { key: '09dfecb16ef10d0920e0b781befed025e16af13c' }))));
|
20587
20679
|
}
|
20588
20680
|
get el() { return getElement(this); }
|
20589
20681
|
static get watchers() { return {
|
@@ -20615,11 +20707,12 @@ class Stepper {
|
|
20615
20707
|
}; }
|
20616
20708
|
}
|
20617
20709
|
|
20618
|
-
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)}input{overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ic-switch-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ic-space-xxs);cursor:pointer}.ic-switch-label{margin-left:var(--ic-space-xxs);margin-bottom:var(--ic-space-sm)}.ic-switch-label-small{margin-bottom:0.625rem}.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)}.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{gap:var(--ic-space-xxxs)}.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(
|
20710
|
+
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)}input{overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ic-switch-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ic-space-xxs);cursor:pointer}.ic-switch-label{margin-left:var(--ic-space-xxs);margin-bottom:var(--ic-space-sm)}.ic-switch-label-small{margin-bottom:0.625rem}.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)}.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{gap:var(--ic-space-xxxs)}.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}}";
|
20619
20711
|
var IcSwitchStyle0 = icSwitchCss;
|
20620
20712
|
|
20621
20713
|
let inputIds$1 = 0;
|
20622
20714
|
/**
|
20715
|
+
* @slot helper-text - Content is set as the helper text for the switch.
|
20623
20716
|
* @slot right-adornment - Content is placed to the right of switch.
|
20624
20717
|
*/
|
20625
20718
|
class Switch {
|
@@ -20712,16 +20805,16 @@ class Switch {
|
|
20712
20805
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
20713
20806
|
const isSmall = size === "small";
|
20714
20807
|
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
20715
|
-
return (hAsync(Host, { key: '
|
20808
|
+
return (hAsync(Host, { key: '41b8e3edfe4befcf823ba88af9b476301be738c0', class: {
|
20716
20809
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20717
|
-
} }, hAsync("label", { key: '
|
20810
|
+
} }, hAsync("label", { key: 'b7be9f77c5ff10bd8f4ebcc76588d5b84567f37c', class: {
|
20718
20811
|
"ic-switch-container": true,
|
20719
20812
|
"ic-switch-disabled": !!disabled,
|
20720
20813
|
"ic-switch-small": isSmall,
|
20721
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
20814
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '799058374e555336d45376ddd645afeee32bafcb', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
20722
20815
|
"ic-switch-label": true,
|
20723
20816
|
"ic-switch-label-small": isSmall,
|
20724
|
-
} })), !hideLabel && hAsync("span", { key: '
|
20817
|
+
} }, hAsync("slot", { key: '509cfc15006377cd5cbb7ead4d33d29069e1ae25', name: "helper-text", slot: "helper-text" }))), !hideLabel && hAsync("span", { key: '01ab8db129ac0a1cb0d1eb36c220211102c77696', class: "ic-switch-line-break" }), hAsync("input", { key: '71c1a210fb9323c0d0bf1139f4bbd68e529b1c1f', 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: '835ba78c97c3af1916e4214e781ecd3e4f465828', class: "ic-switch-toggle" }, hAsync("svg", { key: '8bb00a2e5f95ebe996e73be959467df033c44881', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: 'a3d47d6105d552f920ef6143e385515da508500f', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: '2d7a5654aebbb042123a706edb2dec1c605d5f9d', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '6c0645133ac7a2fa747ce1cd81df0d2b528e19a5', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'f7ac187630acff4dabd2c264a6ebdbc717c21221', name: "right-adornment" }))));
|
20725
20818
|
}
|
20726
20819
|
static get delegatesFocus() { return true; }
|
20727
20820
|
get el() { return getElement(this); }
|
@@ -21099,7 +21192,7 @@ class TabContext {
|
|
21099
21192
|
}
|
21100
21193
|
}
|
21101
21194
|
render() {
|
21102
|
-
return hAsync("slot", { key: '
|
21195
|
+
return hAsync("slot", { key: 'b2129a3c599ca4b97df30f14833761780c2c0940' });
|
21103
21196
|
}
|
21104
21197
|
get el() { return getElement(this); }
|
21105
21198
|
static get watchers() { return {
|
@@ -21145,11 +21238,11 @@ class TabGroup {
|
|
21145
21238
|
}
|
21146
21239
|
render() {
|
21147
21240
|
const { inline, theme, label, monochrome } = this;
|
21148
|
-
return (hAsync(Host, { key: '
|
21241
|
+
return (hAsync(Host, { key: '5e2ac19760c3c6f6a5fa4e24e4b65d06bf958734', role: "tablist", "aria-label": label, class: {
|
21149
21242
|
["ic-tab-group-inline"]: !!inline,
|
21150
21243
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21151
21244
|
["ic-tab-group-monochrome"]: !!monochrome,
|
21152
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
21245
|
+
} }, hAsync("ic-horizontal-scroll", { key: 'c1af66d6ccce50093586a87024d2fc2064204e65', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: '5d74a60b33b216eea766a5d15e9d130cda924d2b', class: "tabs-container" }, hAsync("slot", { key: '7d95c9b98a270810c391abc779ca0bda5c7fa24f' })))));
|
21153
21246
|
}
|
21154
21247
|
static get delegatesFocus() { return true; }
|
21155
21248
|
static get style() { return IcTabGroupStyle0; }
|
@@ -21192,10 +21285,10 @@ class TabPanel {
|
|
21192
21285
|
}
|
21193
21286
|
render() {
|
21194
21287
|
const { active, theme } = this;
|
21195
|
-
return (hAsync(Host, { key: '
|
21288
|
+
return (hAsync(Host, { key: '866d13ac3e2c93c8ea20e83d8513a74664aabfcb', class: {
|
21196
21289
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21197
21290
|
"ic-tab-panel-hidden": !active,
|
21198
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
21291
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: 'a44da18c8534659c240dcb84ba9941b61574f546' }, hAsync("slot", { key: '91a267e9b16c4ebdadb1b5facb9f7f50f3944f8e' }))));
|
21199
21292
|
}
|
21200
21293
|
get el() { return getElement(this); }
|
21201
21294
|
static get style() { return IcTabPanelStyle0; }
|
@@ -21222,6 +21315,7 @@ var IcTextFieldStyle0 = icTextFieldCss;
|
|
21222
21315
|
let inputIds = 0;
|
21223
21316
|
const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
|
21224
21317
|
/**
|
21318
|
+
* @slot helper-text - Content is set as the helper text for the text field.
|
21225
21319
|
* @slot icon - Content will be placed to the left of the text input.
|
21226
21320
|
*/
|
21227
21321
|
class TextField {
|
@@ -21578,21 +21672,21 @@ class TextField {
|
|
21578
21672
|
const charsRemaining = maxNumChars - numChars;
|
21579
21673
|
const remainingCharCountDescId = maxCharacters > 0 ? `${inputId}-remaining-char-count-desc` : "";
|
21580
21674
|
const remainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
|
21581
|
-
const describedBy = `${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""} ${getInputDescribedByText$1(inputId, helperText !== "", showStatusText)}`.trim();
|
21675
|
+
const describedBy = `${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""} ${getInputDescribedByText$1(this.el, inputId, helperText !== "", showStatusText)}`.trim();
|
21582
21676
|
const disabledText = disabledMode && !readonly;
|
21583
21677
|
const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
|
21584
21678
|
const invalid = `${currentStatus === IcInformationStatus$1.Error}`;
|
21585
21679
|
hiddenInput
|
21586
21680
|
? renderHiddenInput$1(this.el, value, name, disabledMode)
|
21587
21681
|
: removeHiddenInput(this.el);
|
21588
|
-
return (hAsync(Host, { key: '
|
21682
|
+
return (hAsync(Host, { key: '353a70181ab18c4f636b34e2177bb9d088567885', class: {
|
21589
21683
|
"ic-text-field-full-width": fullWidth,
|
21590
21684
|
"ic-text-field-disabled": disabledMode,
|
21591
21685
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21592
|
-
} }, hAsync("ic-input-container", { key: '
|
21686
|
+
} }, hAsync("ic-input-container", { key: '96d0ef6132ed2a26ee535cfc5055ddc6287446f6', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: 'dfcb7859651f74678636e4cda1ba0706b2e3b1fb', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, hAsync("slot", { key: 'd9ee297f2de674a969486a3d00eef54526eace50', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: '0a178235ced26ef73fd907d41424a8b4942659dc', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: 'c5206e3d1af81d4bf9bf0afcc9277899ca2287be', class: {
|
21593
21687
|
readonly,
|
21594
21688
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
21595
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
21689
|
+
}, slot: "left-icon" }, hAsync("slot", { key: 'f3945929b482d9a0a954dc1afa658fc0c45d90c8', 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: {
|
21596
21690
|
"no-left-pad": !showLeftIcon && readonly,
|
21597
21691
|
readonly,
|
21598
21692
|
"truncate-value": truncateValue,
|
@@ -21600,19 +21694,19 @@ class TextField {
|
|
21600
21694
|
"no-resize": resize === false || !!readonly,
|
21601
21695
|
"no-left-pad": !showLeftIcon && !!readonly,
|
21602
21696
|
readonly: !!readonly,
|
21603
|
-
}, 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: '
|
21697
|
+
}, 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: '6397d66b59b148884cb2fd7f8913063ca24f0de1', name: "clear-button" })), isSlotUsed$1(el, "search-submit-button") && (hAsync("slot", { key: 'c5e7f94345cebe1dc99ba475aa5bde1b45dda0e0', name: "search-submit-button" }))), isSlotUsed$1(el, "menu") && hAsync("slot", { key: '1c7fe7d7654373753295a44a3e126ce2409099cc', name: "menu" }), (!isEmptyString$1(validationStatus) ||
|
21604
21698
|
!isEmptyString$1(validationText) ||
|
21605
21699
|
maxNumChars > 0 ||
|
21606
21700
|
maxValueExceeded ||
|
21607
21701
|
maxCharactersWarning ||
|
21608
21702
|
minCharactersUnattained ||
|
21609
21703
|
minValueUnattained) &&
|
21610
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '
|
21704
|
+
!validationInlineInternal && (hAsync("ic-input-validation", { key: '2ba3ff987910423696b822529b36e59f04b36025', status: this.hasStatus(currentStatus) === false ||
|
21611
21705
|
(currentStatus === IcInformationStatus$1.Success &&
|
21612
21706
|
validationInline) ||
|
21613
21707
|
validationInlineInternal
|
21614
21708
|
? ""
|
21615
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
21709
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '01e443574b72a18ebd0b0646b0c2c30b59cc5726', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: '90d4e1d9325a34444c38a9c75eaaa5e256c23cae', variant: "caption", class: "char-count-text" }, hAsync("span", { key: '901a7db053e3fa59e6db506a53be92ddbf54be5d', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: '83b08ec8e8ba8286cc8024b647552c5b3e0d09e5', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), hAsync("span", { key: '28e0fc0de7a73057a7b00bd7e40e71c7611a980c', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
|
21616
21710
|
}
|
21617
21711
|
get el() { return getElement(this); }
|
21618
21712
|
static get watchers() { return {
|
@@ -21750,7 +21844,7 @@ class Theme {
|
|
21750
21844
|
}
|
21751
21845
|
render() {
|
21752
21846
|
const { themeClass } = this;
|
21753
|
-
return (hAsync(Host, { key: '
|
21847
|
+
return (hAsync(Host, { key: 'b49257f527c4a26eca25d04500d822785cba320b', class: themeClass }, hAsync("slot", { key: '09782aca70372e6897e9032b66a166335778a6fe' })));
|
21754
21848
|
}
|
21755
21849
|
static get watchers() { return {
|
21756
21850
|
"brandColor": ["watchBrandColorPropHandler"],
|
@@ -21975,13 +22069,13 @@ class Toast {
|
|
21975
22069
|
}
|
21976
22070
|
render() {
|
21977
22071
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
21978
|
-
return (hAsync(Host, { key: '
|
22072
|
+
return (hAsync(Host, { key: '77ff93e63eaa0ac86b8afc447c5f2190131dd758', 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: '0fcc1bf6aaf4c42a8ba4828c82777f75426b63bd', class: "container" }, variant && visible && (hAsync("div", { key: '87093bc655aa884d3e815f49a7ed5675e7e26b60', class: "toast-icon-container" }, hAsync("div", { key: 'b169b9bad445f582c0d0019cb646f0648ea589a1', class: {
|
21979
22073
|
["divider"]: true,
|
21980
22074
|
[`divider-${variant}`]: true,
|
21981
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
22075
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '22a0c86247222789d4590a8c2698120c74fe3c59', class: {
|
21982
22076
|
["toast-content"]: true,
|
21983
22077
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
21984
|
-
} }, hAsync("div", { key: '
|
22078
|
+
} }, hAsync("div", { key: 'fba229f896689a7309d2e6e1d566e3e7dbd32932', class: "toast-text" }, hAsync("ic-typography", { key: 'd672976872f8789ed4a51c4af23e64a48ba19bc8', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: 'f51c64d977c09cc5e6502b780dc70de84ebaa035', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: 'f827dbff18b4b0cfd713747f09d62e0040f8f1a3' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '3f5cee133b54735d6d7466ceb37389d27b61c7a0', class: "toast-action-container" }, hAsync("slot", { key: 'b7882de8b13f069887ebd612ab6e260b063c65d1', 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 })))));
|
21985
22079
|
}
|
21986
22080
|
get el() { return getElement(this); }
|
21987
22081
|
static get watchers() { return {
|
@@ -22053,7 +22147,7 @@ class ToastRegion {
|
|
22053
22147
|
}
|
22054
22148
|
}
|
22055
22149
|
render() {
|
22056
|
-
return hAsync("slot", { key: '
|
22150
|
+
return hAsync("slot", { key: '9a80027a3b497771ca83af4172fdccc2bfcc10f0' });
|
22057
22151
|
}
|
22058
22152
|
get el() { return getElement(this); }
|
22059
22153
|
static get watchers() { return {
|
@@ -22205,7 +22299,7 @@ class ToggleButton {
|
|
22205
22299
|
render() {
|
22206
22300
|
const { accessibleLabel, checked, disabled, fullWidth, iconPlacement, monochrome, label, loading, size, theme, tooltipPlacement, variant, } = this;
|
22207
22301
|
const iconVariant = variant === "icon";
|
22208
|
-
return (hAsync(Host, { key: '
|
22302
|
+
return (hAsync(Host, { key: '64acdb10437030311b26805c7a5b4fb4e53a7641', class: {
|
22209
22303
|
"ic-toggle-button-checked": checked,
|
22210
22304
|
"ic-toggle-button-disabled": disabled,
|
22211
22305
|
"ic-toggle-button-icon": iconVariant,
|
@@ -22214,7 +22308,7 @@ class ToggleButton {
|
|
22214
22308
|
"ic-toggle-button-full-width": fullWidth,
|
22215
22309
|
[`ic-toggle-button-${size}`]: true,
|
22216
22310
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22217
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
22311
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '7ec9db00accaa2e67f4797534f4ad2b304da6397', "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: 'e84bac663f0dababe84c49180fbeabaaff23c24d' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: 'ee8b32317edb8d9f0dfcbdb0daa106a53bcf26d4', name: "icon", slot: `${iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: 'baa79552fb587d8f1167874dc55f47bbf9cf711b', name: "badge", slot: "badge" })))));
|
22218
22312
|
}
|
22219
22313
|
static get delegatesFocus() { return true; }
|
22220
22314
|
get el() { return getElement(this); }
|
@@ -22465,13 +22559,13 @@ class ToggleButtonGroup {
|
|
22465
22559
|
}
|
22466
22560
|
render() {
|
22467
22561
|
const { accessibleLabel, disabled, fullWidth, loading, monochrome, theme } = this;
|
22468
|
-
return (hAsync(Host, { key: '
|
22562
|
+
return (hAsync(Host, { key: 'c82ba602f319c2074da44667618cc5d7b7c3499b', role: "group", "aria-label": accessibleLabel, tabindex: 0, class: {
|
22469
22563
|
"ic-toggle-button-group-disabled": disabled,
|
22470
22564
|
"ic-toggle-button-group-full-width": fullWidth,
|
22471
22565
|
"ic-toggle-button-group-loading": loading,
|
22472
22566
|
"ic-toggle-button-group-monochrome": monochrome,
|
22473
22567
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22474
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
22568
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '98defd37fd3f5c87d4d0aceefd1b5ac0c5ad6123' })));
|
22475
22569
|
}
|
22476
22570
|
get el() { return getElement(this); }
|
22477
22571
|
static get watchers() { return {
|
@@ -22792,7 +22886,7 @@ class Tooltip {
|
|
22792
22886
|
}; }
|
22793
22887
|
}
|
22794
22888
|
|
22795
|
-
const icTopNavigationCss = "/*! 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;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);--navigation-link-colour:var(--ic-top-navigation-text)}:host(.dark){color:var(--ic-color-text-primary-light);--ic-typography-color:var(--ic-color-text-primary-light);--ic-top-navigation-logo:var(--ic-color-icon-neutral);--ic-top-navigation-icon:var(--ic-color-icon-neutral);--ic-top-navigation-icon-and-label:var(--ic-color-text-primary-light);--ic-top-navigation-theme:var(--ic-color-icon-neutral);--ic-top-navigation-status-tag:var(--ic-color-background-primary-dark);--ic-top-navigation-status-tag-text:var(--ic-color-brand-text);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-darken-10);--ic-top-navigation-title-hover:var(--ic-action-dark-bg-hover);--ic-top-navigation-title-pressed:var(--ic-action-dark-bg-pressed);--navigation-link-colour:var(--ic-color-text-primary-light)}:host(.dark) ::slotted(ic-navigation-button){--ic-button-icon-monochrome:var(--ic-color-text-primary-light)}::slotted(ic-navigation-button){--ic-button-icon-monochrome:white}:host .top-navigation{background-color:var(--ic-top-navigation-background);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-top-navigation-icon-and-label);text-decoration:none;outline:none}:host .title-link:hover:not(:focus){background-color:var(--ic-top-navigation-title-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-top-navigation-title-pressed)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-space-1px) solid var(--ic-top-navigation-keyline);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-border-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:calc(-1 * var(--ic-space-1px))}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag);color:var(--ic-top-navigation-status-tag-text);--ic-typography-color:var(--ic-top-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}:host .app-version{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag-secondary);color:var(--ic-top-navigation-status-tag);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}slot[name=\"app-icon\"]::slotted(*){fill:var(--ic-top-navigation-logo);width:2em;height:2em}slot[name=\"toggle-icon\"] svg{fill:var(--ic-top-navigation-icon)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.menu-button-container .navigation-landmark-button-text{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.menu-button-container .navigation-landmark-button-text:dir(rtl){right:-9999px}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}:host(.mobile-mode) .app-status,:host(.mobile-mode) .app-version{display:none}:host(.mobile-mode) .title-link{margin-right:var(--ic-space-xs)}:host(.mobile-mode) .search-menu-container{max-width:10rem}:host(.mobile-mode) .search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-border-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(*){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-border-hc)}.app-status,.app-version{border:var(--ic-border-hc)}slot[name=\"app-icon\"]::slotted(*){fill:currentcolor}slot[name=\"toggle-icon\"] svg{fill:currentcolor}}";
|
22889
|
+
const icTopNavigationCss = "/*! 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;color:var(--ic-top-navigation-text);width:100%;position:relative;--ic-typography-color:var(--ic-top-navigation-text);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);--navigation-link-colour:var(--ic-top-navigation-text)}:host(.dark){color:var(--ic-color-text-primary-light);--ic-typography-color:var(--ic-color-text-primary-light);--ic-top-navigation-logo:var(--ic-color-icon-neutral);--ic-top-navigation-icon:var(--ic-color-icon-neutral);--ic-top-navigation-icon-and-label:var(--ic-color-text-primary-light);--ic-top-navigation-theme:var(--ic-color-icon-neutral);--ic-top-navigation-status-tag:var(--ic-color-background-primary-dark);--ic-top-navigation-status-tag-text:var(--ic-color-brand-text);--ic-top-navigation-status-tag-secondary:var(--ic-state-layer-darken-10);--ic-top-navigation-title-hover:var(--ic-action-dark-bg-hover);--ic-top-navigation-title-pressed:var(--ic-action-dark-bg-pressed);--navigation-link-colour:var(--ic-color-text-primary-light)}:host(.dark) ::slotted(ic-navigation-button){--ic-button-icon-monochrome:var(--ic-color-text-primary-light)}::slotted(ic-navigation-button){--ic-button-icon-monochrome:white}:host .top-navigation{background-color:var(--ic-top-navigation-background);height:-moz-max-content;height:max-content}:host(.fullwidth-searchbar) slot[name=\"search\"]::slotted(form){width:100%}:host .title-link{display:inline-flex;align-items:center;text-decoration:none;padding:var(--ic-space-xxs);transition:var(--ic-easing-transition-fast)}:host .title-link,:host .title-link:visited,:host .title-link:active,:host .title-link ::slotted(a),:host .title-link:visited ::slotted(a),:host .title-link:active ::slotted(a){color:var(--ic-top-navigation-icon-and-label);text-decoration:none;outline:none}:host .title-link:hover:not(:focus){background-color:var(--ic-top-navigation-title-hover)}:host .title-link:active:not(:focus){background-color:var(--ic-top-navigation-title-pressed)}:host .title-link:hover{border-radius:var(--ic-border-radius)}:host .title-link:focus,:host .title-link:focus-within{border-radius:var(--ic-border-radius);box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}:host .title-link ic-typography{font-weight:600}:host .nav-panel-container{border-top:var(--ic-space-1px) solid var(--ic-top-navigation-keyline);padding:0 var(--ic-space-lg);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin));display:flex}:host(.dark) .nav-panel-container{border-top:var(--ic-border-keyline-darken)}.top-panel-container{display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.navigation-tabs{margin-top:calc(-1 * var(--ic-space-1px))}.app-details-container{display:flex;align-items:center;flex:1 1 auto;margin-right:var(--ic-space-md)}.app-icon-container{display:flex;padding-right:var(--ic-space-xs)}.icon-buttons-container{display:flex;margin-left:var(--ic-space-md)}.icon-buttons-container ::slotted(nav){display:flex}.title-wrap{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}:host .app-status{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag);color:var(--ic-top-navigation-status-tag-text);--ic-typography-color:var(--ic-top-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);margin-left:var(--ic-space-md);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}:host .app-version{border-radius:var(--ic-space-md);background-color:var(--ic-top-navigation-status-tag-secondary);color:var(--ic-top-navigation-status-tag);padding:var(--ic-space-xxs) var(--ic-space-sm);margin-left:var(--ic-space-xs);flex:1 1 0;max-width:-moz-fit-content;max-width:fit-content}slot[name=\"app-icon\"]::slotted(*){fill:var(--ic-top-navigation-logo);width:2em;height:2em;cursor:pointer}slot[name=\"toggle-icon\"] svg{fill:var(--ic-top-navigation-icon)}.search-menu-container{justify-content:right;display:flex;align-items:center}.menu-button-container{margin-left:var(--ic-space-md)}.menu-button-container .navigation-landmark-button-text{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.menu-button-container .navigation-landmark-button-text:dir(rtl){right:-9999px}.search-actions-container{display:flex}.menu-buttons-slot{display:flex;flex-direction:column}.navigation-landmark-text{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}.navigation-item-list{display:flex;list-style:none;height:2.75rem}.navigation-item-list::-webkit-scrollbar{display:none}:host ic-section-container{padding-bottom:0 !important;padding-top:0 !important}@media screen and (min-width: 993px){.app-details-container{margin-right:var(--ic-space-lg)}}@media screen and (max-width: 1200px){:host .nav-panel-container{padding:0 var(--ic-space-md)}}:host(.mobile-mode) .app-status,:host(.mobile-mode) .app-version{display:none}:host(.mobile-mode) .title-link{margin-right:var(--ic-space-xs)}:host(.mobile-mode) .search-menu-container{max-width:10rem}:host(.mobile-mode) .search-bar-container{display:flex;justify-content:center;align-items:center;border-top:var(--ic-border-keyline-darken);height:4rem;padding-left:var(--ic-space-md);padding-right:var(--ic-space-md);margin-left:calc(-1 * var(--section-container-margin));margin-right:calc(-1 * var(--section-container-margin))}@media screen and (max-width: 576px){:host .title-link{margin-right:var(--ic-space-xxxs);word-break:break-word;-webkit-hyphens:none;hyphens:none}.top-panel-container{min-height:2.5rem}.search-bar-container{margin-top:0;height:3.5rem;padding-left:var(--ic-space-xs);padding-right:var(--ic-space-xs)}.menu-button-container{margin-left:var(--ic-space-sm)}slot[name=\"app-icon\"]::slotted(*){width:1.5em;height:1.5em}slot[name=\"toggle-icon\"] svg{width:1.5em;height:1.5em}}@media (forced-colors: active){:host .top-navigation{border-bottom:var(--ic-border-hc)}.app-status,.app-version{border:var(--ic-border-hc)}slot[name=\"app-icon\"]::slotted(*){fill:currentcolor}slot[name=\"toggle-icon\"] svg{fill:currentcolor}}";
|
22796
22890
|
var IcTopNavigationStyle0 = icTopNavigationCss;
|
22797
22891
|
|
22798
22892
|
/**
|
@@ -22811,6 +22905,7 @@ class TopNavigation {
|
|
22811
22905
|
this.icNavigationMenuOpened = createEvent(this, "icNavigationMenuOpened", 7);
|
22812
22906
|
this.icTopNavResized = createEvent(this, "icTopNavResized", 7);
|
22813
22907
|
this.hasAppIcon = false;
|
22908
|
+
this.hasAppTitleSlot = false;
|
22814
22909
|
this.hasIconButtons = false;
|
22815
22910
|
this.hasNavigation = false;
|
22816
22911
|
this.hasSearchSlotContent = false;
|
@@ -22859,9 +22954,15 @@ class TopNavigation {
|
|
22859
22954
|
this.version = "";
|
22860
22955
|
this.checkSlots = () => {
|
22861
22956
|
this.hasAppIcon = isSlotUsed$1(this.el, "app-icon");
|
22957
|
+
this.hasAppTitleSlot = isSlotUsed$1(this.el, "app-title");
|
22862
22958
|
this.hasNavigation = isSlotUsed$1(this.el, "navigation");
|
22863
22959
|
this.hasIconButtons = isSlotUsed$1(this.el, "buttons");
|
22864
22960
|
this.hasSearchSlotContent = isSlotUsed$1(this.el, "search");
|
22961
|
+
if (this.hasAppIcon) {
|
22962
|
+
const slottedAppIcon = this.el.querySelector('[slot="app-icon"]');
|
22963
|
+
if (slottedAppIcon && slottedAppIcon.tagName === "A")
|
22964
|
+
slottedAppIcon.tabIndex = -1;
|
22965
|
+
}
|
22865
22966
|
};
|
22866
22967
|
this.initialiseSearchBar = () => {
|
22867
22968
|
if (!this.hasSearchSlotContent)
|
@@ -22954,7 +23055,7 @@ class TopNavigation {
|
|
22954
23055
|
}
|
22955
23056
|
componentDidLoad() {
|
22956
23057
|
checkResizeObserver$1(this.runResizeObserver);
|
22957
|
-
if (!
|
23058
|
+
if (!this.hasAppTitleSlot) {
|
22958
23059
|
onComponentRequiredPropUndefined$1([{ prop: this.appTitle, propName: "app-title" }], "Top Navigation");
|
22959
23060
|
}
|
22960
23061
|
}
|
@@ -22982,7 +23083,7 @@ class TopNavigation {
|
|
22982
23083
|
this.foregroundColor = detail.mode;
|
22983
23084
|
}
|
22984
23085
|
render() {
|
22985
|
-
const { appTitle, contentAligned, customMobileBreakpoint, deviceSize, el, foregroundColor, hasAppIcon, hasFullWidthSearchBar, hasIconButtons, hasNavigation, hasSearchSlotContent, href, inline, menuButtonClick, mobileSearchBarVisible, navMenuVisible, searchButtonClickHandler, searchButtonMouseDownHandler, shortAppTitle, status, version, theme, } = this;
|
23086
|
+
const { appTitle, contentAligned, customMobileBreakpoint, deviceSize, el, foregroundColor, hasAppIcon, hasAppTitleSlot, hasFullWidthSearchBar, hasIconButtons, hasNavigation, hasSearchSlotContent, href, inline, menuButtonClick, mobileSearchBarVisible, navMenuVisible, searchButtonClickHandler, searchButtonMouseDownHandler, shortAppTitle, status, version, theme, } = this;
|
22986
23087
|
const hasStatus = status !== "";
|
22987
23088
|
const hasVersion = version !== "";
|
22988
23089
|
const hasMenuContent = hasNavigation || hasIconButtons || hasStatus || hasVersion;
|
@@ -22998,21 +23099,20 @@ class TopNavigation {
|
|
22998
23099
|
const mobileSearchButtonTitle = `${mobileSearchBarVisible ? "Hide" : "Show"} search`;
|
22999
23100
|
const menuSize = isSmallDeviceSize ? "small" : "medium";
|
23000
23101
|
const shortAppTitleSlot = isSlotUsed$1(el, "short-app-title");
|
23001
|
-
const hasAppTitleSlot = isSlotUsed$1(el, "app-title");
|
23002
23102
|
const Component = hasAppTitleSlot ? "div" : "a";
|
23003
23103
|
const attrs = Component == "a" && {
|
23004
23104
|
href: href,
|
23005
23105
|
};
|
23006
|
-
return (hAsync(Host, { key: '
|
23106
|
+
return (hAsync(Host, { key: '04ae428a97e2c58967096b74d112eaff245f8dff', class: {
|
23007
23107
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
23008
23108
|
"mobile-mode": overMobileBreakpoint,
|
23009
23109
|
[IcBrandForegroundEnum$1.Dark]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
23010
23110
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23011
|
-
} }, hAsync("div", { key: '
|
23111
|
+
} }, hAsync("div", { key: '567b43f0ff4239ec947520f1b3cfdca5f248a273', class: "top-navigation" }, hAsync("ic-section-container", { key: 'de93c750d52edcafbf52b45f35adeb6547a68b7b', aligned: contentAligned, "full-height": true }, hAsync("header", { key: '70f3227f015418d9fa82e64786a0b6c9543b3bee', role: "banner" }, hAsync("div", { key: 'cd42a8c33f9baef9566f2fea19d3e9462f4e067a', class: "top-panel-container" }, hAsync("div", { key: '192dbc95a46ffb8d06a7f55258e791a149003bd4', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: '434d3d4de2d251752145200352425032692fc1cd', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: '6f3d2089eb16b717946baa082706beb46f04657d', class: "app-icon-container" }, hAsync("slot", { key: '0daa4b46d9e2d72aa1c68e62279e5a3389ec3ab2', name: "app-icon" }))), isSmallDeviceSize &&
|
23012
23112
|
(!isEmptyString$1(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
23013
|
-
`${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: '
|
23113
|
+
`${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: '83a440ebcedf586a87690b57ea9ecfce1495ceb7', class: "app-status" }, hAsync("ic-typography", { key: '0889ee69e31b3665821b286915a43e253fd66c1a', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: '542d3f22383d5bac8eda47fcd47ef694f054929b', class: "app-version" }, hAsync("ic-typography", { key: '0ed2b7209b4f03da9d462ac1406d3530696b702c', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: 'dbc3439b52e9d9257fc1c98ad50e25e92140ceca', class: "search-menu-container" }, hAsync("div", { key: '3f5b5d05659459daab6d0bcbd69dd0ac70eae0f8', 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: 'b3f55a4e18ef3c55503b56447d5fbeb19e569a4f', class: "search-bar-container" }, hAsync("slot", { key: '99ebca2aa04bf76d949384c517dc2012312dbd92', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: '6113dfcd92cf06c1f9a533ec6c2f0af3d26abca7', class: "navigation-tabs" }, hAsync("span", { key: 'fa638d34955dccbdb7a8f149e0a8e083e3df0f72', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: 'fc6e24c76b720a463e81dbbe00c91a065bb260ea', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: 'da133fd91d91ff172067fc9aad86651a4c3a2f95', monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: 'f48330caa3937f35f2f65a3fbad830bda2b5c342', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: '74eb909d405109d5387f42e00a633e8ed09ff6f6', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: 'c77d988d1af3ac37eebb5d598b5f649f1d47c899', version: version, status: status, class: {
|
23014
23114
|
inline,
|
23015
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
23115
|
+
} }, hasIconButtons && (hAsync("div", { key: '77d9283a5fdffa724e13f667e9d09ae72f72329e', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '020b485ca53e55926b072738ab7dcb465f1efce5', name: "buttons" }))), hAsync("ul", { key: '16101ca81c95d2de0d55c7a051ccffd5a987f5f8', slot: "navigation" }, hAsync("slot", { key: '02bde8c67591e4c2c15d005252f1f7ae87cff61a', name: "navigation" }))))));
|
23016
23116
|
}
|
23017
23117
|
get el() { return getElement(this); }
|
23018
23118
|
static get watchers() { return {
|
@@ -23051,7 +23151,7 @@ var arrowDropdown = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
23051
23151
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
23052
23152
|
</svg>`;
|
23053
23153
|
|
23054
|
-
const icTreeItemCss = ":host{display:block;border:none;position:relative}:host .tree-item-content{display:flex;align-items:center;min-height:
|
23154
|
+
const icTreeItemCss = ":host{display:block;border:none;position:relative}:host .tree-item-content{display:flex;align-items:center;min-height:var(--ic-space-xl);padding:var(--ic-space-xxs) var(--ic-space-xs);text-decoration:none;color:var(--ic-tree-view-text);--ic-typography-color:var(--ic-tree-view-text)}::slotted([slot=\"router-item\"]){display:flex;align-items:center;min-height:var(--ic-space-xl);text-decoration:none;font-family:var(--ic-font-body-family);color:var(--ic-tree-view-text);padding:var(--ic-space-xxs) var(--ic-space-xs) !important}:host(.ic-tree-item-truncate) .tree-item-content,:host(.ic-tree-item-truncate) ::slotted([slot=\"router-item\"]){height:calc(var(--ic-space-xl) + var(--ic-space-xs))}::slotted([slot=\"router-item\"].ic-tree-item-single){padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs)) !important}:host .tree-item-content:focus,::slotted([slot=\"router-item\"]:focus){box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);transition:var(--ic-transition-duration-fast);outline:none}:host .tree-item-content:hover,::slotted([slot=\"router-item\"]:hover){background-color:var(--ic-tree-view-hover) !important;cursor:pointer}:host .tree-item-content:active,::slotted([slot=\"router-item\"]:active){background-color:var(--ic-tree-view-pressed) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot=\"router-item\"]){background-color:var(--ic-tree-view-selected) !important}:host(.ic-tree-item-small) .tree-item-content,:host(.ic-tree-item-small) ::slotted([slot=\"router-item\"]){min-height:var(--ic-space-lg)}:host(.ic-tree-item-large) .tree-item-content,:host(.ic-tree-item-large) ::slotted([slot=\"router-item\"]){min-height:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-tree-item-truncate.ic-tree-item-small) .tree-item-content,:host(.ic-tree-item-truncate.ic-tree-item-small) ::slotted([slot=\"router-item\"]){height:var(--ic-space-lg)}:host(.ic-tree-item-truncate.ic-tree-item-large) .tree-item-content,:host(.ic-tree-item-truncate.ic-tree-item-large) ::slotted([slot=\"router-item\"]){height:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-tree-item-disabled){pointer-events:none}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) ::slotted([slot=\"icon\"]),:host(.ic-tree-item-disabled) ::slotted([slot=\"router-item\"]){color:var(--ic-tree-view-text-disabled) !important;--ic-typography-color:var(--ic-tree-view-text-disabled) !important;fill:var(--ic-tree-view-icon-disabled);pointer-events:none}:host .arrow-dropdown{color:var(--ic-tree-view-dropdown-arrow);margin-right:var(--ic-space-xs);margin-bottom:calc(var(--ic-space-xxs) * -1)}:host(.ic-tree-item-disabled) .arrow-dropdown{color:var(--ic-tree-view-dropdown-arrow-disabled)}:host(.ic-tree-item-small) .arrow-dropdown{margin-right:var(--ic-space-xxs)}:host .tree-item-expanded{transform:rotate(180deg);margin-top:calc(-1 * var(--ic-space-xxs));margin-bottom:0}:host .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xs))}:host(.ic-tree-item-small) .ic-tree-item-single{padding-left:calc(var(--ic-space-xl) + var(--ic-space-xxs))}.icon-container{min-width:var(--ic-space-lg);width:var(--ic-space-lg);height:var(--ic-space-lg);margin:0 var(--ic-space-xs) 0 0}:host(.ic-tree-item-small) .icon-container{margin:0 var(--ic-space-xxs) 0 0}.ic-text-overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ic-tooltip-overflow{overflow:hidden}::slotted([slot=\"icon\"]){fill:var(--ic-tree-view-icon)}@media (forced-colors: active){::slotted([slot=\"icon\"]){fill:currentcolor}:host .tree-item-content:hover,::slotted([slot=\"router-item\"]:hover),:host .tree-item-content:active,::slotted([slot=\"router-item\"]:active),:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot=\"router-item\"]){background-color:none !important}:host(.ic-tree-item-disabled) .tree-item-content,:host(.ic-tree-item-disabled) .arrow-dropdown,:host(.ic-tree-item-disabled) ::slotted([slot=\"icon\"]),:host(.ic-tree-item-disabled) ::slotted([slot=\"router-item\"]){color:GrayText !important;--ic-typography-color:GrayText !important;fill:GrayText !important}:host .tree-item-content:focus,::slotted([slot=\"router-item\"]:focus){border:var(--ic-border-hc) !important}:host(.ic-tree-item-selected) .tree-item-content,:host(.ic-tree-item-selected) ::slotted([slot=\"router-item\"]){color:Highlight !important;--ic-typography-color:Highlight !important}}";
|
23055
23155
|
var IcTreeItemStyle0 = icTreeItemCss;
|
23056
23156
|
|
23057
23157
|
let treeItemIds = 0;
|
@@ -23065,7 +23165,6 @@ class TreeItem {
|
|
23065
23165
|
registerInstance(this, hostRef);
|
23066
23166
|
this.icTreeItemSelected = createEvent(this, "icTreeItemSelected", 7);
|
23067
23167
|
this.icTreeItemExpanded = createEvent(this, "icTreeItemExpanded", 7);
|
23068
|
-
this.treeItemId = `ic-tree-item-${treeItemIds++}`;
|
23069
23168
|
this.treeItemTag = "IC-TREE-ITEM";
|
23070
23169
|
this.hostMutationObserver = null;
|
23071
23170
|
this.TOOLTIP = "ic-tooltip";
|
@@ -23079,10 +23178,6 @@ class TreeItem {
|
|
23079
23178
|
* If `true`, the tree item appears in the expanded state.
|
23080
23179
|
*/
|
23081
23180
|
this.expanded = false;
|
23082
|
-
/**
|
23083
|
-
* @internal If `true`, the tree item will have an inset focus border.
|
23084
|
-
*/
|
23085
|
-
this.focusInset = false;
|
23086
23181
|
/**
|
23087
23182
|
* @internal Determines if the parent tree item has been expanded.
|
23088
23183
|
*/
|
@@ -23168,27 +23263,30 @@ class TreeItem {
|
|
23168
23263
|
}
|
23169
23264
|
const tooltipAlreadyExists = !!(typographyEl === null || typographyEl === void 0 ? void 0 : typographyEl.closest(this.TOOLTIP));
|
23170
23265
|
const treeContent = ((_b = treeItem.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(this.TREE_ITEM_CONTENT_CLASS_SELECTOR)) || slottedContent;
|
23171
|
-
if (
|
23172
|
-
|
23173
|
-
contentHeight
|
23174
|
-
|
23175
|
-
|
23176
|
-
|
23177
|
-
|
23178
|
-
|
23179
|
-
|
23180
|
-
|
23181
|
-
|
23182
|
-
|
23183
|
-
|
23184
|
-
|
23185
|
-
|
23186
|
-
|
23187
|
-
|
23188
|
-
|
23266
|
+
if (treeContent) {
|
23267
|
+
const computedHeight = parseFloat(getComputedStyle(treeContent).height);
|
23268
|
+
if (contentHeight &&
|
23269
|
+
computedHeight &&
|
23270
|
+
contentHeight > computedHeight &&
|
23271
|
+
!tooltipAlreadyExists &&
|
23272
|
+
typographyEl) {
|
23273
|
+
const tooltipEl = document.createElement("ic-tooltip");
|
23274
|
+
tooltipEl.setAttribute("target", this.el.id);
|
23275
|
+
tooltipEl.setAttribute("label", typographyEl.textContent);
|
23276
|
+
tooltipEl.setAttribute("placement", "right");
|
23277
|
+
if (treeContent === slottedContent) {
|
23278
|
+
treeContent.addEventListener("focus", () => this.handleDisplayTooltip(true));
|
23279
|
+
treeContent.addEventListener("blur", () => this.handleDisplayTooltip(false));
|
23280
|
+
tooltipEl.setAttribute("style", "overflow:hidden;");
|
23281
|
+
typographyEl.setAttribute("style", "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;");
|
23282
|
+
}
|
23283
|
+
else {
|
23284
|
+
tooltipEl.classList.add("ic-tooltip-overflow");
|
23285
|
+
typographyEl.classList.add("ic-text-overflow");
|
23286
|
+
}
|
23287
|
+
treeContent.appendChild(tooltipEl);
|
23288
|
+
tooltipEl.appendChild(typographyEl);
|
23189
23289
|
}
|
23190
|
-
treeContent.appendChild(tooltipEl);
|
23191
|
-
tooltipEl.appendChild(typographyEl);
|
23192
23290
|
}
|
23193
23291
|
};
|
23194
23292
|
this.removeTreeItemTruncation = (treeItem) => {
|
@@ -23216,7 +23314,7 @@ class TreeItem {
|
|
23216
23314
|
removeDisabledFalse(this.disabled, this.el);
|
23217
23315
|
}
|
23218
23316
|
watchExpandedHandler() {
|
23219
|
-
this.icTreeItemExpanded.emit({ isExpanded: this.expanded });
|
23317
|
+
this.icTreeItemExpanded.emit({ isExpanded: this.expanded, id: this.el.id });
|
23220
23318
|
}
|
23221
23319
|
watchSelectedHandler() {
|
23222
23320
|
if (this.selected) {
|
@@ -23326,7 +23424,8 @@ class TreeItem {
|
|
23326
23424
|
return !!this.routerSlot;
|
23327
23425
|
}
|
23328
23426
|
render() {
|
23329
|
-
|
23427
|
+
var _a;
|
23428
|
+
const { disabled, label, selected, size, expanded, theme } = this;
|
23330
23429
|
const Component = this.href && !this.disabled ? "a" : "div";
|
23331
23430
|
const attrs = Component == "a" && {
|
23332
23431
|
href: this.href,
|
@@ -23335,19 +23434,18 @@ class TreeItem {
|
|
23335
23434
|
rel: this.rel,
|
23336
23435
|
target: this.target,
|
23337
23436
|
};
|
23338
|
-
return (hAsync(Host, { key: '
|
23437
|
+
return (hAsync(Host, { key: '14eade7c0b23b1c2c2918dda4f011953d6463ec6', class: {
|
23339
23438
|
"ic-tree-item-disabled": disabled,
|
23340
23439
|
"ic-tree-item-selected": !disabled && selected,
|
23341
23440
|
[`ic-tree-item-${size}`]: size !== "medium",
|
23342
|
-
"ic-tree-item-focus-inset": focusInset,
|
23343
23441
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23344
23442
|
"ic-tree-item-truncate": !!this.truncateTreeItem,
|
23345
|
-
}, id: this.treeItemId }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(Component, Object.assign({ class: {
|
23443
|
+
}, id: (_a = this.treeItemId) !== null && _a !== void 0 ? _a : `ic-tree-item-${treeItemIds++}` }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(Component, Object.assign({ class: {
|
23346
23444
|
"tree-item-content": true,
|
23347
23445
|
}, 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: {
|
23348
23446
|
["arrow-dropdown"]: true,
|
23349
23447
|
["tree-item-expanded"]: expanded,
|
23350
|
-
}, "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: '
|
23448
|
+
}, "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: '0a7704d93ccba8640265eacd9c81971d3717a233', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: '27eb9361c885e589eac4a3bd6cfd303efb60e1fb' })))));
|
23351
23449
|
}
|
23352
23450
|
get el() { return getElement(this); }
|
23353
23451
|
static get watchers() { return {
|
@@ -23362,7 +23460,6 @@ class TreeItem {
|
|
23362
23460
|
"$members$": {
|
23363
23461
|
"disabled": [4],
|
23364
23462
|
"expanded": [1028],
|
23365
|
-
"focusInset": [4, "focus-inset"],
|
23366
23463
|
"hasParentExpanded": [1028, "has-parent-expanded"],
|
23367
23464
|
"href": [1],
|
23368
23465
|
"hreflang": [1],
|
@@ -23374,6 +23471,7 @@ class TreeItem {
|
|
23374
23471
|
"selected": [1028],
|
23375
23472
|
"size": [1],
|
23376
23473
|
"target": [1],
|
23474
|
+
"treeItemId": [1, "tree-item-id"],
|
23377
23475
|
"theme": [1],
|
23378
23476
|
"truncateTreeItem": [4, "truncate-tree-item"],
|
23379
23477
|
"childTreeItems": [32],
|
@@ -23418,10 +23516,6 @@ class TreeView {
|
|
23418
23516
|
this.previousTruncateHeading = false;
|
23419
23517
|
this.previousTruncateTreeItems = false;
|
23420
23518
|
this.smallDevice = false;
|
23421
|
-
/**
|
23422
|
-
* If `true`, tree items will have inset focus.
|
23423
|
-
*/
|
23424
|
-
this.focusInset = false;
|
23425
23519
|
/**
|
23426
23520
|
* The heading of the tree view.
|
23427
23521
|
*/
|
@@ -23594,11 +23688,6 @@ class TreeView {
|
|
23594
23688
|
this.truncateTreeItems = this.previousTruncateTreeItems;
|
23595
23689
|
}
|
23596
23690
|
}
|
23597
|
-
watchFocusInsetHandler() {
|
23598
|
-
this.treeItems.forEach((treeItem) => {
|
23599
|
-
treeItem.focusInset = this.focusInset;
|
23600
|
-
});
|
23601
|
-
}
|
23602
23691
|
watchSizeHandler() {
|
23603
23692
|
this.treeItems.forEach((treeItem) => {
|
23604
23693
|
treeItem.size = this.size;
|
@@ -23635,7 +23724,6 @@ class TreeView {
|
|
23635
23724
|
this.previousTruncateTreeItems = this.truncateTreeItems;
|
23636
23725
|
checkResizeObserver(this.runResizeObserver);
|
23637
23726
|
this.watchSizeHandler();
|
23638
|
-
this.watchFocusInsetHandler();
|
23639
23727
|
this.watchThemeHandler();
|
23640
23728
|
this.treeItems.forEach((treeItem) => {
|
23641
23729
|
if (treeItem.truncateTreeItem === undefined) {
|
@@ -23706,19 +23794,18 @@ class TreeView {
|
|
23706
23794
|
}
|
23707
23795
|
render() {
|
23708
23796
|
const { heading, isLoaded, size, theme, truncateHeading } = this;
|
23709
|
-
return (hAsync(Host, { key: '
|
23797
|
+
return (hAsync(Host, { key: '10d73dbe1cf5483e085e42098719cf24546964a7', "context-id": this.treeViewId, class: {
|
23710
23798
|
[`ic-tree-view-${size}`]: size !== "medium",
|
23711
23799
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23712
23800
|
"ic-tree-view-truncate": truncateHeading,
|
23713
|
-
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '
|
23801
|
+
}, onKeyDown: this.handleKeyDown, "aria-label": this.isHeadingDefined() ? heading : null }, this.hasHeadingAreaContent() && (hAsync("div", { key: '037b388be0d0346b060f5f277e20a6c389f5b618', class: "heading-area-container" }, isSlotUsed(this.el, "icon") && (hAsync("div", { key: '5d388bd69d7ced75435399e66a3cd28e6b4d7c8e', class: "icon-container" }, hAsync("slot", { key: '6baa9d4d0ea215d64e5978d4bb3ad1ea96d0b23b', name: "icon" }))), hAsync("ic-typography", { key: '8ed1a2b54949c4333c9647e3eb28cf58d968af61', variant: "subtitle-large", class: {
|
23714
23802
|
"tree-view-header": true,
|
23715
23803
|
"with-padding": this.truncateHeading && !isLoaded,
|
23716
|
-
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: '
|
23804
|
+
} }, isSlotUsed(this.el, "heading") ? (hAsync("slot", { name: "heading" })) : (heading)))), hAsync("slot", { key: 'fa3be8905fce45ae60e2b6634487b9cee208913d' })));
|
23717
23805
|
}
|
23718
23806
|
get el() { return getElement(this); }
|
23719
23807
|
static get watchers() { return {
|
23720
23808
|
"smallDevice": ["watchSmallDeviceHandler"],
|
23721
|
-
"focusInset": ["watchFocusInsetHandler"],
|
23722
23809
|
"size": ["watchSizeHandler"],
|
23723
23810
|
"theme": ["watchThemeHandler"],
|
23724
23811
|
"treeItemData": ["watchTreeItemOptionsHandler"],
|
@@ -23729,7 +23816,6 @@ class TreeView {
|
|
23729
23816
|
"$flags$": 9,
|
23730
23817
|
"$tagName$": "ic-tree-view",
|
23731
23818
|
"$members$": {
|
23732
|
-
"focusInset": [4, "focus-inset"],
|
23733
23819
|
"heading": [1],
|
23734
23820
|
"size": [1],
|
23735
23821
|
"theme": [1],
|
@@ -23913,7 +23999,7 @@ class Typography {
|
|
23913
23999
|
render() {
|
23914
24000
|
var _a, _b;
|
23915
24001
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
23916
|
-
return (hAsync(Host, { key: '
|
24002
|
+
return (hAsync(Host, { key: 'f3ae0024474b949d4cd79a2d626524a08f0a83f9', class: {
|
23917
24003
|
[`ic-typography-${variant}`]: true,
|
23918
24004
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
23919
24005
|
["ic-typography-bold"]: !!bold,
|
@@ -23926,7 +24012,7 @@ class Typography {
|
|
23926
24012
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
23927
24013
|
"IC-TOOLTIP") &&
|
23928
24014
|
maxLines &&
|
23929
|
-
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: '
|
24015
|
+
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: 'ab55fb9e3b5d0ed50a99d8f194fe0e9436de1613', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
23930
24016
|
}
|
23931
24017
|
get el() { return getElement(this); }
|
23932
24018
|
static get watchers() { return {
|