@ukic/canary-web-components 3.0.0-canary.17 → 3.0.0-canary.18
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-e2bbcec9.js → helpers-f4e7322b.js} +21 -37
- package/dist/cjs/helpers-f4e7322b.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 +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +110 -131
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox_3.cjs.entry.js +36 -35
- package/dist/cjs/ic-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +26 -38
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +7 -7
- package/dist/cjs/ic-data-table.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 +9 -9
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +21 -3
- 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 +5 -5
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
- 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 +43 -40
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- 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 +112 -135
- 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 +6 -6
- 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 +3 -3
- package/dist/cjs/ic-tab.cjs.entry.js.map +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 +5 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +7 -2
- package/dist/cjs/ic-tree-item.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.js +7 -7
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +23 -2
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js +13 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.stories.js.map +1 -1
- package/dist/components/helpers.js +20 -36
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-badge.js +3 -3
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +57 -78
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +32 -51
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +105 -126
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +8 -9
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox2.js +36 -35
- package/dist/components/ic-checkbox2.js.map +1 -1
- package/dist/components/ic-chip.js +28 -40
- package/dist/components/ic-chip.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 +7 -7
- package/dist/components/ic-data-table.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 +4 -4
- 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 +23 -3
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- 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-menu-item2.js +4 -4
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +3 -3
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +4 -4
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +7 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +112 -135
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select2.js +6 -6
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +5 -5
- 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-tab.js +2 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +31 -28
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +2 -2
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.js +8 -2
- package/dist/components/ic-tree-item.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 +159 -109
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-09f54ca3.entry.js +2 -0
- package/dist/core/p-09f54ca3.entry.js.map +1 -0
- package/dist/core/{p-7d9ab461.entry.js → p-10703715.entry.js} +2 -2
- package/dist/core/{p-7d9ab461.entry.js.map → p-10703715.entry.js.map} +1 -1
- package/dist/core/{p-3a9d2c5c.entry.js → p-1aed572a.entry.js} +2 -2
- package/dist/core/{p-3a9d2c5c.entry.js.map → p-1aed572a.entry.js.map} +1 -1
- package/dist/core/{p-b3ac38c5.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/{p-b3ac38c5.entry.js.map → p-1be17f22.entry.js.map} +1 -1
- package/dist/core/{p-fa08e75c.entry.js → p-1fd22368.entry.js} +2 -2
- package/dist/core/{p-c3ba79d7.entry.js → p-266686d0.entry.js} +2 -2
- package/dist/core/p-266686d0.entry.js.map +1 -0
- package/dist/core/{p-7656c88f.entry.js → p-33f4abc9.entry.js} +2 -2
- package/dist/core/{p-7656c88f.entry.js.map → p-33f4abc9.entry.js.map} +1 -1
- package/dist/core/p-3800cda8.entry.js +2 -0
- package/dist/core/p-3800cda8.entry.js.map +1 -0
- package/dist/core/{p-45dbbdcb.entry.js → p-45f32fea.entry.js} +2 -2
- package/dist/core/{p-e6d3cd31.entry.js → p-5744b8b3.entry.js} +2 -2
- package/dist/core/{p-e6d3cd31.entry.js.map → p-5744b8b3.entry.js.map} +1 -1
- package/dist/core/{p-e185bfa7.entry.js → p-59bc9fe7.entry.js} +2 -2
- package/dist/core/{p-e185bfa7.entry.js.map → p-59bc9fe7.entry.js.map} +1 -1
- package/dist/core/p-671acf27.entry.js +2 -0
- package/dist/core/p-671acf27.entry.js.map +1 -0
- package/dist/core/{p-78709ece.entry.js → p-6724039c.entry.js} +2 -2
- package/dist/core/{p-78709ece.entry.js.map → p-6724039c.entry.js.map} +1 -1
- package/dist/core/{p-9689784b.entry.js → p-6e0f4278.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js.map → p-72c117b6.entry.js.map} +1 -1
- package/dist/core/{p-74e0aa60.entry.js → p-7c096c5e.entry.js} +2 -2
- package/dist/core/{p-74e0aa60.entry.js.map → p-7c096c5e.entry.js.map} +1 -1
- package/dist/core/{p-1a76b6b4.entry.js → p-824cbf95.entry.js} +2 -2
- package/dist/core/{p-1a76b6b4.entry.js.map → p-824cbf95.entry.js.map} +1 -1
- package/dist/core/{p-29f472ab.entry.js → p-84daed4d.entry.js} +2 -2
- package/dist/core/p-8ae0fd6f.entry.js +2 -0
- package/dist/core/p-8ae0fd6f.entry.js.map +1 -0
- package/dist/core/{p-4b601e06.entry.js → p-8b5022bc.entry.js} +2 -2
- package/dist/core/{p-4b601e06.entry.js.map → p-8b5022bc.entry.js.map} +1 -1
- package/dist/core/p-92a969b3.entry.js +2 -0
- package/dist/core/p-92a969b3.entry.js.map +1 -0
- package/dist/core/{p-7c819f45.entry.js → p-93e154e0.entry.js} +2 -2
- package/dist/core/{p-7c819f45.entry.js.map → p-93e154e0.entry.js.map} +1 -1
- package/dist/core/{p-6634052e.entry.js → p-954959d4.entry.js} +2 -2
- package/dist/core/{p-6634052e.entry.js.map → p-954959d4.entry.js.map} +1 -1
- package/dist/core/{p-3ddf2dc7.entry.js → p-95868542.entry.js} +2 -2
- package/dist/core/{p-3ddf2dc7.entry.js.map → p-95868542.entry.js.map} +1 -1
- package/dist/core/p-9882c572.entry.js +2 -0
- package/dist/core/p-9882c572.entry.js.map +1 -0
- package/dist/core/p-9918c411.entry.js +2 -0
- package/dist/core/p-9918c411.entry.js.map +1 -0
- package/dist/core/{p-40f2f58e.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-40f2f58e.entry.js.map → p-9ca147f3.entry.js.map} +1 -1
- package/dist/core/{p-513619d5.entry.js → p-a054bb1b.entry.js} +2 -2
- package/dist/core/{p-513619d5.entry.js.map → p-a054bb1b.entry.js.map} +1 -1
- package/dist/core/{p-112d96ce.entry.js → p-ad390076.entry.js} +2 -2
- package/dist/core/{p-112d96ce.entry.js.map → p-ad390076.entry.js.map} +1 -1
- package/dist/core/p-ad45f8f8.entry.js +2 -0
- package/dist/core/p-ad45f8f8.entry.js.map +1 -0
- package/dist/core/{p-02cee2a0.entry.js → p-b7d117e8.entry.js} +2 -2
- package/dist/core/{p-27780b85.entry.js → p-b92e5fb3.entry.js} +2 -2
- package/dist/core/{p-de43d375.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/{p-de43d375.entry.js.map → p-b9459ba2.entry.js.map} +1 -1
- package/dist/core/p-b947e4ff.entry.js +2 -0
- package/dist/core/p-b947e4ff.entry.js.map +1 -0
- package/dist/core/{p-f34eee68.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-f34eee68.entry.js.map → p-bc2ca778.entry.js.map} +1 -1
- package/dist/core/{p-4f2391ec.entry.js → p-bff6fef6.entry.js} +2 -2
- package/dist/core/{p-4f2391ec.entry.js.map → p-bff6fef6.entry.js.map} +1 -1
- package/dist/core/{p-789f423c.entry.js → p-c472cb32.entry.js} +2 -2
- package/dist/core/{p-789f423c.entry.js.map → p-c472cb32.entry.js.map} +1 -1
- package/dist/core/{p-30bcc30c.entry.js → p-cd770df5.entry.js} +2 -2
- package/dist/core/{p-30bcc30c.entry.js.map → p-cd770df5.entry.js.map} +1 -1
- package/dist/core/{p-f35d81cb.entry.js → p-d328f6fc.entry.js} +2 -2
- package/dist/core/{p-f35d81cb.entry.js.map → p-d328f6fc.entry.js.map} +1 -1
- package/dist/core/p-d3d48548.entry.js +2 -0
- package/dist/core/p-d3d48548.entry.js.map +1 -0
- package/dist/core/{p-23ed8b99.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/{p-23ed8b99.entry.js.map → p-df88ff5b.entry.js.map} +1 -1
- package/dist/core/{p-e01ffbb8.entry.js → p-e38b20bf.entry.js} +2 -2
- package/dist/core/{p-e01ffbb8.entry.js.map → p-e38b20bf.entry.js.map} +1 -1
- package/dist/core/{p-b4168d61.entry.js → p-e64e27be.entry.js} +2 -2
- package/dist/core/{p-b4168d61.entry.js.map → p-e64e27be.entry.js.map} +1 -1
- package/dist/core/{p-23665b88.entry.js → p-e7c00131.entry.js} +2 -2
- package/dist/core/{p-23665b88.entry.js.map → p-e7c00131.entry.js.map} +1 -1
- package/dist/core/{p-0725255c.entry.js → p-e9683f52.entry.js} +2 -2
- package/dist/core/{p-0725255c.entry.js.map → p-e9683f52.entry.js.map} +1 -1
- package/dist/core/{p-eb4add0d.entry.js → p-ead9900a.entry.js} +2 -2
- package/dist/core/{p-eb4add0d.entry.js.map → p-ead9900a.entry.js.map} +1 -1
- package/dist/core/{p-c7080f8d.entry.js → p-eb74cab5.entry.js} +2 -2
- package/dist/core/{p-c7080f8d.entry.js.map → p-eb74cab5.entry.js.map} +1 -1
- package/dist/core/{p-5aab7bb1.entry.js → p-eb88b348.entry.js} +2 -2
- package/dist/core/{p-5aab7bb1.entry.js.map → p-eb88b348.entry.js.map} +1 -1
- package/dist/core/p-eca2fea1.js +2 -0
- package/dist/core/p-eca2fea1.js.map +1 -0
- package/dist/core/{p-00df60bd.entry.js → p-edeb3823.entry.js} +2 -2
- package/dist/core/p-edeb3823.entry.js.map +1 -0
- package/dist/core/{p-bcf8c3d9.entry.js → p-ef07630d.entry.js} +2 -2
- package/dist/core/{p-bcf8c3d9.entry.js.map → p-ef07630d.entry.js.map} +1 -1
- package/dist/core/p-f6141c29.entry.js +2 -0
- package/dist/core/p-f6141c29.entry.js.map +1 -0
- package/dist/core/{p-f39cf9b1.entry.js → p-f6eaec92.entry.js} +2 -2
- package/dist/core/{p-09472c5e.entry.js → p-f9a16fa8.entry.js} +2 -2
- package/dist/core/{p-09472c5e.entry.js.map → p-f9a16fa8.entry.js.map} +1 -1
- package/dist/core/{p-ba444517.entry.js → p-fb1fce87.entry.js} +2 -2
- package/dist/core/{p-ba444517.entry.js.map → p-fb1fce87.entry.js.map} +1 -1
- package/dist/core/{p-9e4a0c01.entry.js → p-fb8214a9.entry.js} +2 -2
- package/dist/core/{p-9e4a0c01.entry.js.map → p-fb8214a9.entry.js.map} +1 -1
- package/dist/core/{p-bf903faa.entry.js → p-fb8d27fa.entry.js} +2 -2
- package/dist/core/{p-bf903faa.entry.js.map → p-fb8d27fa.entry.js.map} +1 -1
- package/dist/core/{p-75061bd0.entry.js → p-fbcc2a11.entry.js} +2 -2
- package/dist/core/p-fbcc2a11.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-fb59efa8.js → helpers-fc03923c.js} +22 -38
- package/dist/esm/helpers-fc03923c.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 +4 -4
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +32 -51
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +111 -132
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +5 -5
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox_3.entry.js +36 -35
- package/dist/esm/ic-checkbox_3.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +26 -38
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +7 -7
- package/dist/esm/ic-data-table.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 +9 -9
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +21 -3
- 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 +5 -5
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +3 -3
- 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 +43 -40
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +112 -135
- 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 +6 -6
- 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 +3 -3
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-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 +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +7 -2
- package/dist/esm/ic-tree-item.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-tree-item/ic-tree-item.d.ts +7 -0
- package/dist/types/components.d.ts +5 -0
- package/hydrate/index.js +607 -692
- package/hydrate/index.mjs +607 -692
- package/package.json +3 -3
- package/dist/cjs/helpers-e2bbcec9.js.map +0 -1
- package/dist/core/p-00df60bd.entry.js.map +0 -1
- package/dist/core/p-1024726b.entry.js +0 -2
- package/dist/core/p-1024726b.entry.js.map +0 -1
- package/dist/core/p-315ac907.entry.js +0 -2
- package/dist/core/p-315ac907.entry.js.map +0 -1
- package/dist/core/p-3ec9c8c2.entry.js +0 -2
- package/dist/core/p-3ec9c8c2.entry.js.map +0 -1
- package/dist/core/p-423c721c.entry.js +0 -2
- package/dist/core/p-423c721c.entry.js.map +0 -1
- package/dist/core/p-4933549f.entry.js +0 -2
- package/dist/core/p-4933549f.entry.js.map +0 -1
- package/dist/core/p-4c77e828.entry.js +0 -2
- package/dist/core/p-4c77e828.entry.js.map +0 -1
- package/dist/core/p-657321ee.entry.js +0 -2
- package/dist/core/p-657321ee.entry.js.map +0 -1
- package/dist/core/p-661f22bd.entry.js +0 -2
- package/dist/core/p-661f22bd.entry.js.map +0 -1
- package/dist/core/p-71166167.entry.js +0 -2
- package/dist/core/p-71166167.entry.js.map +0 -1
- package/dist/core/p-75061bd0.entry.js.map +0 -1
- package/dist/core/p-bdbd185c.js +0 -2
- package/dist/core/p-bdbd185c.js.map +0 -1
- package/dist/core/p-c3ba79d7.entry.js.map +0 -1
- package/dist/core/p-fc852e9b.entry.js +0 -2
- package/dist/core/p-fc852e9b.entry.js.map +0 -1
- package/dist/core/p-fe85b5b2.entry.js +0 -2
- package/dist/core/p-fe85b5b2.entry.js.map +0 -1
- package/dist/esm/helpers-fb59efa8.js.map +0 -1
- /package/dist/core/{p-fa08e75c.entry.js.map → p-1fd22368.entry.js.map} +0 -0
- /package/dist/core/{p-45dbbdcb.entry.js.map → p-45f32fea.entry.js.map} +0 -0
- /package/dist/core/{p-9689784b.entry.js.map → p-6e0f4278.entry.js.map} +0 -0
- /package/dist/core/{p-29f472ab.entry.js.map → p-84daed4d.entry.js.map} +0 -0
- /package/dist/core/{p-02cee2a0.entry.js.map → p-b7d117e8.entry.js.map} +0 -0
- /package/dist/core/{p-27780b85.entry.js.map → p-b92e5fb3.entry.js.map} +0 -0
- /package/dist/core/{p-f39cf9b1.entry.js.map → p-f6eaec92.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
@@ -3265,7 +3265,6 @@ const IGNORED_KEYBOARD_CHARACTERS = [
|
|
3265
3265
|
const DARK_MODE_THRESHOLD = 133.3505;
|
3266
3266
|
const ANYWHERE_SEARCH_POSITION = "anywhere";
|
3267
3267
|
const icInput$1 = "ic-input";
|
3268
|
-
const linkIcInput$1 = "input.ic-input";
|
3269
3268
|
/**
|
3270
3269
|
* Used to inherit global attributes set on the host. Called in componentWillLoad and assigned
|
3271
3270
|
* to a variable that is later used in the render function.
|
@@ -3276,11 +3275,9 @@ const linkIcInput$1 = "input.ic-input";
|
|
3276
3275
|
const inheritAttributes = (element, attributes = []) => {
|
3277
3276
|
const attributeObject = {};
|
3278
3277
|
attributes.forEach((attr) => {
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
attributeObject[attr] = value;
|
3283
|
-
}
|
3278
|
+
const value = element.getAttribute(attr);
|
3279
|
+
if (value !== null) {
|
3280
|
+
attributeObject[attr] = value;
|
3284
3281
|
element.removeAttribute(attr);
|
3285
3282
|
}
|
3286
3283
|
});
|
@@ -3307,34 +3304,27 @@ const debounce$1 = (func, wait = 0) => {
|
|
3307
3304
|
* allows it to be picked up inside of forms. It should contain the same
|
3308
3305
|
* values as the host element.
|
3309
3306
|
*
|
3310
|
-
* @param always Add a hidden input even if the container does not use Shadow
|
3311
3307
|
* @param container The element where the input will be added
|
3312
|
-
* @param name The name of the input
|
3313
3308
|
* @param value The value of the input
|
3309
|
+
* @param name The name of the input
|
3314
3310
|
* @param disabled If true, the input is disabled
|
3311
|
+
* @param always Add a hidden input even if the container does not use Shadow
|
3315
3312
|
*/
|
3316
|
-
const renderHiddenInput$1 = (
|
3317
|
-
if (name
|
3318
|
-
|
3319
|
-
|
3320
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3321
|
-
let input = filtered[0];
|
3322
|
-
if (input === null || input === undefined) {
|
3313
|
+
const renderHiddenInput$1 = (container, value, name, disabled = false, always = true) => {
|
3314
|
+
if (name && (always || hasShadowDom$1(container))) {
|
3315
|
+
let input = getHiddenInputElement(container);
|
3316
|
+
if (!input) {
|
3323
3317
|
input = container.ownerDocument.createElement("input");
|
3324
3318
|
input.type = "hidden";
|
3325
3319
|
input.classList.add(icInput$1);
|
3326
3320
|
container.appendChild(input);
|
3327
3321
|
}
|
3328
|
-
input.disabled =
|
3322
|
+
input.disabled = disabled;
|
3329
3323
|
input.name = name;
|
3330
|
-
|
3331
|
-
input.value = value ? value.toISOString() : "";
|
3332
|
-
}
|
3333
|
-
else {
|
3334
|
-
input.value = value || "";
|
3335
|
-
}
|
3324
|
+
input.value = value instanceof Date ? value.toISOString() : value || "";
|
3336
3325
|
}
|
3337
3326
|
};
|
3327
|
+
const getHiddenInputElement = (container) => Array.from(container.querySelectorAll(`input.${icInput$1}`)).filter((el) => container === el.parentElement)[0];
|
3338
3328
|
/**
|
3339
3329
|
* This method is used to add a hidden file input to a host element that contains
|
3340
3330
|
* a Shadow DOM. It does not add the input inside of the Shadow root which
|
@@ -3344,17 +3334,14 @@ const renderHiddenInput$1 = (always, container, name, value, disabled) => {
|
|
3344
3334
|
* @param event: The event that is emitted once a file is selected.
|
3345
3335
|
* @param container The element where the input will be added
|
3346
3336
|
* @param multiple If true, multiple files can be selected
|
3347
|
-
* @param name The name of the input
|
3348
|
-
* @param value The value of the input
|
3349
3337
|
* @param disabled If true, the input is disabled
|
3350
3338
|
* @param accept A string of the accepted files
|
3339
|
+
* @param name The name of the input
|
3340
|
+
* @param value The value of the input
|
3351
3341
|
*/
|
3352
|
-
const renderFileHiddenInput = (event, container, multiple,
|
3342
|
+
const renderFileHiddenInput = (event, container, multiple, disabled, accept, name, value) => {
|
3353
3343
|
if (name !== undefined && hasShadowDom$1(container)) {
|
3354
|
-
|
3355
|
-
const inputEls = Array.from(inputs);
|
3356
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3357
|
-
let input = filtered[0];
|
3344
|
+
let input = getHiddenInputElement(container);
|
3358
3345
|
if (input === null || input === undefined) {
|
3359
3346
|
input = container.ownerDocument.createElement("input");
|
3360
3347
|
input.classList.add(icInput$1);
|
@@ -3376,13 +3363,10 @@ const renderFileHiddenInput = (event, container, multiple, name, value, disabled
|
|
3376
3363
|
}
|
3377
3364
|
};
|
3378
3365
|
const removeHiddenInput = (container) => {
|
3379
|
-
|
3380
|
-
|
3381
|
-
const filtered = inputEls.filter((el) => container === el.parentElement);
|
3382
|
-
const input = filtered[0];
|
3383
|
-
input === null || input === void 0 ? void 0 : input.remove();
|
3366
|
+
var _a;
|
3367
|
+
(_a = getHiddenInputElement(container)) === null || _a === void 0 ? void 0 : _a.remove();
|
3384
3368
|
};
|
3385
|
-
const hasShadowDom$1 = (el) => el
|
3369
|
+
const hasShadowDom$1 = (el) => !!el && !!el.shadowRoot && !!el.attachShadow;
|
3386
3370
|
const getInputHelperTextID$1 = (id) => id + "-helper-text";
|
3387
3371
|
const getInputValidationTextID$1 = (id) => id + "-validation-text";
|
3388
3372
|
const getInputDescribedByText$1 = (inputId, helperText, validationText) => `${helperText ? getInputHelperTextID$1(inputId) : ""} ${validationText ? getInputValidationTextID$1(inputId) : ""}`.trim();
|
@@ -3444,7 +3428,7 @@ const handleHiddenFormButtonClick = (form, button) => {
|
|
3444
3428
|
hiddenFormButton.click();
|
3445
3429
|
hiddenFormButton.remove();
|
3446
3430
|
};
|
3447
|
-
const isEmptyString$1 = (value) => value
|
3431
|
+
const isEmptyString$1 = (value) => !value || value.trim().length === 0;
|
3448
3432
|
// A helper function that checks if a prop has been defined
|
3449
3433
|
const isPropDefined$1 = (prop) => prop !== undefined ? prop : undefined;
|
3450
3434
|
/**
|
@@ -4337,7 +4321,7 @@ class BackToTop {
|
|
4337
4321
|
}; }
|
4338
4322
|
}
|
4339
4323
|
|
4340
|
-
const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.ic-badge-show){animation:expand var(--ic-transition-duration-slow)}:host(.ic-badge-hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host ic-typography{--ic-typography-color:var(--ic-badge-text)}:host(.ic-badge-neutral){background-color:var(--ic-badge-dark) !important}:host(.ic-badge-light) ic-typography{--ic-typography-color:var(--ic-badge-text-monochrome)}:host(.ic-badge-light) ::slotted(*){fill:var(--ic-badge-icon-monochrome)}:host(.ic-badge-info){background-color:var(--ic-badge-info) !important}:host(.ic-badge-light){background-color:var(--ic-badge-light) !important}:host(.ic-badge-warning){background-color:var(--ic-badge-warning) !important}:host(.ic-badge-warning) ic-typography{--ic-typography-color:var(--ic-badge-warning-text)}:host(.ic-badge-warning) ::slotted(*){fill:var(--ic-badge-warning-icon)}:host(.ic-badge-error){background-color:var(--ic-badge-error) !important}:host(.ic-badge-success){background-color:var(--ic-badge-success) !important}:host(.ic-badge-small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.ic-badge-large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-medium){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.ic-badge-dot.ic-badge-small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.ic-badge-dot.ic-badge-large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host ::slotted(*){fill:var(--ic-badge-icon)}:host(.ic-badge-foreground-dark) ::slotted(*){fill:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ::slotted(*){fill:white}:host(.ic-badge-foreground-dark) ic-typography{--ic-typography-color:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ic-typography{--ic-typography-color:var(--ic-color-primary-
|
4324
|
+
const icBadgeCss = "@media (prefers-reduced-motion: no-preference){:host(.ic-badge-show){animation:expand var(--ic-transition-duration-slow)}:host(.ic-badge-hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host ic-typography{--ic-typography-color:var(--ic-badge-text)}:host(.ic-badge-neutral){background-color:var(--ic-badge-dark) !important}:host(.ic-badge-light) ic-typography{--ic-typography-color:var(--ic-badge-text-monochrome)}:host(.ic-badge-light) ::slotted(*){fill:var(--ic-badge-icon-monochrome)}:host(.ic-badge-info){background-color:var(--ic-badge-info) !important}:host(.ic-badge-light){background-color:var(--ic-badge-light) !important}:host(.ic-badge-warning){background-color:var(--ic-badge-warning) !important}:host(.ic-badge-warning) ic-typography{--ic-typography-color:var(--ic-badge-warning-text)}:host(.ic-badge-warning) ::slotted(*){fill:var(--ic-badge-warning-icon)}:host(.ic-badge-error){background-color:var(--ic-badge-error) !important}:host(.ic-badge-success){background-color:var(--ic-badge-success) !important}:host(.ic-badge-small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.ic-badge-large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-medium){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.ic-badge-dot.ic-badge-small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.ic-badge-dot.ic-badge-large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host ::slotted(*){fill:var(--ic-badge-icon)}:host(.ic-badge-foreground-dark) ::slotted(*){fill:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ::slotted(*){fill:white}:host(.ic-badge-foreground-dark) ic-typography{--ic-typography-color:var(--ic-color-text-primary-light)}:host(.ic-badge-foreground-light) ic-typography{--ic-typography-color:var(--ic-color-text-primary-dark)}:host(.ic-badge-text) ic-typography{align-self:center;padding:0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.ic-badge-text.ic-badge-small) ic-typography{padding:0 0.2132rem}:host(.ic-badge-text.ic-badge-large) ic-typography{padding:0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.ic-badge-icon) ::slotted(svg){width:var(--ic-space-sm);height:var(--ic-space-sm);padding:var(--ic-space-xxxs)}:host(.ic-badge-icon.ic-badge-small) ::slotted(svg){width:var(--ic-space-xs);height:var(--ic-space-xs)}:host(.ic-badge-icon.ic-badge-large) ::slotted(svg){width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));height:calc(var(--ic-space-sm) + var(--ic-space-xxxs));padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}:host(.ic-badge-far){top:calc(-1 * var(--ic-space-xs));right:calc(-1 * var(--ic-space-xs))}:host(.ic-badge-far.ic-badge-small),:host(.ic-badge-dot.ic-badge-far.ic-badge-large){top:calc(-1 * var(--ic-space-xxs));right:calc(-1 * var(--ic-space-xxs))}:host(.ic-badge-dot.ic-badge-far),:host(.ic-badge-dot.ic-badge-far.ic-badge-small){top:calc(-1 * var(--ic-space-xxxs));right:calc(-1 * var(--ic-space-xxxs))}:host(.ic-badge-near){top:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));right:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)))}:host(.ic-badge-dot.ic-badge-near){top:calc(-1 * var(--ic-space-1px));right:calc(-1 * var(--ic-space-1px))}:host(.ic-badge-inline){position:static}:host(.ic-badge-hide){visibility:hidden !important;transition:visibility var(--ic-transition-duration-slow)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@keyframes expand{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes shrink{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";
|
4341
4325
|
var IcBadgeStyle0 = icBadgeCss;
|
4342
4326
|
|
4343
4327
|
const TOP_NAVIGATION = "IC-TOP-NAVIGATION";
|
@@ -4486,7 +4470,7 @@ class Badge {
|
|
4486
4470
|
}
|
4487
4471
|
render() {
|
4488
4472
|
const { ariaLabel, el, foregroundColour, getLabel, position, size, label, type, variant, visible, theme, } = this;
|
4489
|
-
return (hAsync(Host, { key: '
|
4473
|
+
return (hAsync(Host, { key: '720f5c35c4d16cc484ea53a0f277befdbb087883', class: {
|
4490
4474
|
[`ic-badge-${position}`]: true,
|
4491
4475
|
[`ic-badge-${size}`]: true,
|
4492
4476
|
[`ic-badge-${variant}`]: true,
|
@@ -4494,7 +4478,7 @@ class Badge {
|
|
4494
4478
|
[`ic-badge-foreground-${foregroundColour}`]: foregroundColour !== null && variant === "custom",
|
4495
4479
|
[`${visible ? "ic-badge-show" : "ic-badge-hide"}`]: true,
|
4496
4480
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
4497
|
-
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '
|
4481
|
+
}, id: el.id || null, "aria-label": ariaLabel, role: "status" }, type === "icon" && hAsync("slot", { key: '611a931cbdbfd72a7031adaec19d9cd5f83b097a', name: "badge-icon" }), type === "text" && label && (hAsync("ic-typography", { key: '57620b02829df5547546474ad337f3cc23bb19c4', variant: size === "small" ? "badge-small" : "badge" }, getLabel())), type === "dot" && hAsync("span", { key: '6f583cc04572a1818afc11e43cb5b41f95afe630', class: "sr-only" }, "badge")));
|
4498
4482
|
}
|
4499
4483
|
static get delegatesFocus() { return true; }
|
4500
4484
|
get el() { return getElement(this); }
|
@@ -4541,6 +4525,9 @@ class Breadcrumb {
|
|
4541
4525
|
constructor(hostRef) {
|
4542
4526
|
registerInstance(this, hostRef);
|
4543
4527
|
this.HREF_ATTR = "href";
|
4528
|
+
this.linkSlotContent = null;
|
4529
|
+
this.slottedLinkEl = null;
|
4530
|
+
this.slottedLinkHref = null;
|
4544
4531
|
/**
|
4545
4532
|
* If `true`, aria-current will be set on the breadcrumb.
|
4546
4533
|
*/
|
@@ -4559,54 +4546,27 @@ class Breadcrumb {
|
|
4559
4546
|
this.theme = "inherit";
|
4560
4547
|
// Prevent focus on breadcrumb if current page and contains slotted link
|
4561
4548
|
this.updatedSlottedLinkFocus = () => {
|
4549
|
+
var _a, _b;
|
4562
4550
|
// Sets tabindex on wrong element in unit test snapshots
|
4563
4551
|
// - related to known Jest issue: https://github.com/ionic-team/stencil/issues/2830
|
4564
4552
|
if (this.linkSlotContent) {
|
4565
4553
|
this.linkSlotContent.tabIndex = this.current ? -1 : 0; // Prevent focus
|
4566
4554
|
}
|
4567
|
-
if (this.
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4572
|
-
this.slottedLinkHref &&
|
4573
|
-
this.slottedLinkEl.setAttribute(this.HREF_ATTR, this.slottedLinkHref);
|
4574
|
-
}
|
4555
|
+
if (this.current) {
|
4556
|
+
(_a = this.slottedLinkEl) === null || _a === void 0 ? void 0 : _a.removeAttribute(this.HREF_ATTR); // Prevent screen reader announcing breadcrumb as a link
|
4557
|
+
}
|
4558
|
+
else if (this.slottedLinkHref) {
|
4559
|
+
(_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.setAttribute(this.HREF_ATTR, this.slottedLinkHref);
|
4575
4560
|
}
|
4576
4561
|
};
|
4577
4562
|
this.getSlottedLinkEl = () => {
|
4578
|
-
|
4579
|
-
|
4580
|
-
|
4581
|
-
|
4582
|
-
|
4583
|
-
return elWithHref;
|
4584
|
-
}
|
4585
|
-
return null;
|
4563
|
+
if (!this.linkSlotContent)
|
4564
|
+
return null;
|
4565
|
+
return this.linkSlotContent.hasAttribute(this.HREF_ATTR)
|
4566
|
+
? this.linkSlotContent
|
4567
|
+
: this.linkSlotContent.querySelector("[href]");
|
4586
4568
|
};
|
4587
4569
|
this.renderBackIcon = () => (hAsync("div", { class: "back-icon", innerHTML: backIcon }));
|
4588
|
-
this.renderDefaultBreadcrumb = (current, pageTitle, describedById, href) => {
|
4589
|
-
const hasPageTitle = pageTitle !== null && isPropDefined$1(pageTitle) && pageTitle !== "";
|
4590
|
-
if (current && hasPageTitle) {
|
4591
|
-
return (hAsync("span", { class: {
|
4592
|
-
"current-page-container": current,
|
4593
|
-
} }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
4594
|
-
}
|
4595
|
-
return (hAsync("ic-link", { theme: this.theme, monochrome: this.monochrome, href: href, class: "breadcrumb-link", "aria-describedby": this.showBackIcon && describedById && describedById }, this.showBackIcon && this.renderBackIcon(), isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle));
|
4596
|
-
};
|
4597
|
-
this.setSlottedCurrentPageClass = () => {
|
4598
|
-
const icLink = this.el.querySelector("ic-link");
|
4599
|
-
const currentPage = "current-page";
|
4600
|
-
if (icLink) {
|
4601
|
-
icLink.classList.remove(currentPage);
|
4602
|
-
if (this.current) {
|
4603
|
-
const hasCurrentPageClass = icLink.classList.contains(currentPage);
|
4604
|
-
if (!hasCurrentPageClass) {
|
4605
|
-
icLink.classList.add("breadcrumb-link", currentPage);
|
4606
|
-
}
|
4607
|
-
}
|
4608
|
-
}
|
4609
|
-
};
|
4610
4570
|
}
|
4611
4571
|
watchCurrentHandler() {
|
4612
4572
|
this.updatedSlottedLinkFocus();
|
@@ -4619,14 +4579,21 @@ class Breadcrumb {
|
|
4619
4579
|
const slotEls = getSlotElements$1(slottedLinkWrapper);
|
4620
4580
|
if (slotEls) {
|
4621
4581
|
this.linkSlotContent = slotEls[0];
|
4582
|
+
this.slottedLinkEl = this.getSlottedLinkEl();
|
4583
|
+
this.slottedLinkHref = ((_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.getAttribute("href")) || null;
|
4622
4584
|
}
|
4623
|
-
this.slottedLinkEl = this.getSlottedLinkEl();
|
4624
|
-
this.slottedLinkHref = (_b = this.slottedLinkEl) === null || _b === void 0 ? void 0 : _b.getAttribute("href");
|
4625
4585
|
this.updatedSlottedLinkFocus();
|
4626
4586
|
}
|
4627
4587
|
}
|
4628
4588
|
componentWillRender() {
|
4629
|
-
this.
|
4589
|
+
const icLink = this.el.querySelector("ic-link");
|
4590
|
+
if (icLink) {
|
4591
|
+
const CURRENT_PAGE = "current-page";
|
4592
|
+
icLink.classList.remove(CURRENT_PAGE);
|
4593
|
+
if (this.current && !icLink.classList.contains(CURRENT_PAGE)) {
|
4594
|
+
icLink.classList.add("breadcrumb-link", CURRENT_PAGE);
|
4595
|
+
}
|
4596
|
+
}
|
4630
4597
|
}
|
4631
4598
|
/**
|
4632
4599
|
* Sets focus on the breadcrumb.
|
@@ -4636,15 +4603,13 @@ class Breadcrumb {
|
|
4636
4603
|
(_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-link")) === null || _b === void 0 ? void 0 : _b.focus();
|
4637
4604
|
}
|
4638
4605
|
render() {
|
4639
|
-
const { current, href, pageTitle } = this;
|
4640
|
-
const describedById = `${pageTitle
|
4641
|
-
|
4642
|
-
|
4643
|
-
|
4644
|
-
|
4645
|
-
|
4646
|
-
"ic-breadcrumb-monochrome": !!this.monochrome,
|
4647
|
-
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: '1f8c4f0fca86a3d08df82674e33cabe7419f7616', class: "breadcrumb" }, hAsync("span", { key: '9761c21d30b9e55e8cf5d3517ada73fa4d73710b', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), this.showBackIcon && describedById && (hAsync("span", { key: 'ad6be34d684a28dd063895c73f35ed65a3741dc9', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), hasPageTitle && hasHref ? (this.renderDefaultBreadcrumb(!!current, pageTitle, describedById, href)) : (hAsync("div", { class: "slotted-link-container" }, this.showBackIcon && this.renderBackIcon(), hAsync("span", { class: "link-wrapper" }, hAsync("slot", null)))))));
|
4606
|
+
const { current, href, monochrome, pageTitle, showBackIcon, theme } = this;
|
4607
|
+
const describedById = `${pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.toLowerCase().replace(" ", "-")}-describedby`;
|
4608
|
+
return (hAsync(Host, { key: '0a6d1443010427dbc75347c9c69b7c40680be25f', class: {
|
4609
|
+
"ic-breadcrumb-back": showBackIcon,
|
4610
|
+
"ic-breadcrumb-monochrome": monochrome,
|
4611
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
4612
|
+
}, "aria-current": current && "page", role: "listitem" }, hAsync("div", { key: 'bd351348bd835963705c29c5aa4e857c3752d645', class: "breadcrumb" }, hAsync("span", { key: '9a4e28f31aa1c8cf2e111a0ce64902abba338461', innerHTML: chevronIcon, class: "chevron", "aria-hidden": "true" }), showBackIcon && (hAsync("span", { key: '289414d58963cea6e68b782ba36df782690db04a', id: describedById, class: "hide" }, `Back to ${pageTitle}`)), !href ? (hAsync("div", { class: "slotted-link-container" }, showBackIcon && this.renderBackIcon(), hAsync("span", { class: "link-wrapper" }, hAsync("slot", null)))) : current ? (hAsync("span", { class: "current-page-container" }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)) : (hAsync("ic-link", { theme: theme, monochrome: monochrome, href: href, class: "breadcrumb-link", "aria-describedby": showBackIcon && describedById }, showBackIcon && this.renderBackIcon(), isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), pageTitle)))));
|
4648
4613
|
}
|
4649
4614
|
static get delegatesFocus() { return true; }
|
4650
4615
|
get el() { return getElement(this); }
|
@@ -4679,10 +4644,11 @@ class BreadcrumbGroup {
|
|
4679
4644
|
registerInstance(this, hostRef);
|
4680
4645
|
this.ADD_CLASS_DELAY = 50;
|
4681
4646
|
this.IC_BREADCRUMB = "ic-breadcrumb";
|
4682
|
-
this.resizeObserver = null;
|
4683
4647
|
this.SHOW_BACK_ICON = "show-back-icon";
|
4648
|
+
this.collapsedBreadcrumbs = [];
|
4649
|
+
this.resizeObserver = null;
|
4650
|
+
this.lastParentBreadcrumb = null;
|
4684
4651
|
this.deviceSize = DEVICE_SIZES$1.XL;
|
4685
|
-
this.expandedBreadcrumbs = false;
|
4686
4652
|
/**
|
4687
4653
|
* If `true`, display only a single breadcrumb for the parent page with a back icon.
|
4688
4654
|
*/
|
@@ -4700,14 +4666,12 @@ class BreadcrumbGroup {
|
|
4700
4666
|
*/
|
4701
4667
|
this.theme = "inherit";
|
4702
4668
|
this.setBreadcrumbTheme = () => {
|
4703
|
-
|
4704
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4669
|
+
Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB)).forEach((breadcrumb) => {
|
4705
4670
|
breadcrumb.theme = this.theme;
|
4706
4671
|
});
|
4707
4672
|
};
|
4708
4673
|
this.setBreadcrumbMonochrome = () => {
|
4709
|
-
|
4710
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4674
|
+
Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB)).forEach((breadcrumb) => {
|
4711
4675
|
breadcrumb.monochrome = this.monochrome;
|
4712
4676
|
});
|
4713
4677
|
};
|
@@ -4726,48 +4690,48 @@ class BreadcrumbGroup {
|
|
4726
4690
|
}
|
4727
4691
|
};
|
4728
4692
|
this.getLastParentBreadcrumb = () => {
|
4729
|
-
const allBreadcrumbs =
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
this.breadcrumbs = allBreadcrumbs;
|
4734
|
-
this.breadcrumb = this.breadcrumbs[this.breadcrumbs.length - 2];
|
4735
|
-
return this.breadcrumb;
|
4736
|
-
};
|
4737
|
-
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4738
|
-
this.setDefaultBreadcrumbs = () => {
|
4739
|
-
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4740
|
-
allBreadcrumbs.forEach((breadcrumb) => {
|
4741
|
-
breadcrumb.setAttribute(this.SHOW_BACK_ICON, "false");
|
4742
|
-
});
|
4693
|
+
const allBreadcrumbs = this.el.querySelectorAll(this.IC_BREADCRUMB);
|
4694
|
+
return allBreadcrumbs.length > 1
|
4695
|
+
? allBreadcrumbs[allBreadcrumbs.length - 2]
|
4696
|
+
: null;
|
4743
4697
|
};
|
4744
4698
|
this.setCollapsed = () => {
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
|
4749
|
-
|
4750
|
-
breadcrumb.classList.remove("fade");
|
4751
|
-
});
|
4752
|
-
}
|
4699
|
+
var _a, _b;
|
4700
|
+
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4701
|
+
breadcrumb.classList.remove("visuallyhidden");
|
4702
|
+
breadcrumb.classList.remove("fade");
|
4703
|
+
});
|
4753
4704
|
if (this.collapsed) {
|
4754
4705
|
this.renderCollapsedBreadcrumb();
|
4706
|
+
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4755
4707
|
this.collapsedBreadcrumbs = allBreadcrumbs
|
4756
4708
|
.splice(1, allBreadcrumbs.length - 2)
|
4757
4709
|
.filter((breadcrumb) => !breadcrumb.classList.contains("collapsed-breadcrumb-wrapper"));
|
4758
4710
|
if (!this.backBreadcrumbOnly) {
|
4759
4711
|
this.collapsedBreadcrumbs.forEach((breadcrumb) => breadcrumb.classList.add("hide"));
|
4760
4712
|
}
|
4761
|
-
if (
|
4762
|
-
|
4713
|
+
if (this.collapsedBreadcrumbWrapper) {
|
4714
|
+
(_a = allBreadcrumbs[0]) === null || _a === void 0 ? void 0 : _a.insertAdjacentElement("afterend", this.collapsedBreadcrumbWrapper);
|
4763
4715
|
}
|
4764
4716
|
}
|
4765
4717
|
else {
|
4766
|
-
this.collapsedBreadcrumbWrapper.remove();
|
4718
|
+
(_b = this.collapsedBreadcrumbWrapper) === null || _b === void 0 ? void 0 : _b.remove();
|
4767
4719
|
}
|
4768
4720
|
};
|
4769
4721
|
this.clickHandler = () => {
|
4770
|
-
|
4722
|
+
var _a;
|
4723
|
+
(_a = this.collapsedBreadcrumbWrapper) === null || _a === void 0 ? void 0 : _a.remove();
|
4724
|
+
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4725
|
+
breadcrumb.classList.add("visuallyhidden");
|
4726
|
+
breadcrumb.classList.remove("hide");
|
4727
|
+
setTimeout(() => {
|
4728
|
+
breadcrumb.classList.add("fade");
|
4729
|
+
}, this.ADD_CLASS_DELAY);
|
4730
|
+
breadcrumb.addEventListener("transitionend", this.transitionendHandler);
|
4731
|
+
});
|
4732
|
+
this.collapsed = false;
|
4733
|
+
// Set focus to first unhidden breadcrumb
|
4734
|
+
this.collapsedBreadcrumbs[0].setFocus();
|
4771
4735
|
};
|
4772
4736
|
this.renderCollapsedBreadcrumb = () => {
|
4773
4737
|
if (this.collapsedBreadcrumbEl === undefined) {
|
@@ -4778,12 +4742,12 @@ class BreadcrumbGroup {
|
|
4778
4742
|
ariaLabel.id = "collapsed-button-label";
|
4779
4743
|
ariaLabel.innerText = "Collapsed breadcrumbs";
|
4780
4744
|
ariaLabel.className = "hide";
|
4781
|
-
this.collapsedBreadcrumbEl.setAttribute("aria-labelledby",
|
4745
|
+
this.collapsedBreadcrumbEl.setAttribute("aria-labelledby", ariaLabel.id);
|
4782
4746
|
const ariaDescribed = document.createElement("span");
|
4783
4747
|
ariaDescribed.id = "collapsed-button-described";
|
4784
4748
|
ariaDescribed.innerText = "Select to view collapsed breadcrumbs";
|
4785
4749
|
ariaDescribed.className = "hide";
|
4786
|
-
this.collapsedBreadcrumbEl.setAttribute("aria-describedby",
|
4750
|
+
this.collapsedBreadcrumbEl.setAttribute("aria-describedby", ariaDescribed.id);
|
4787
4751
|
this.collapsedBreadcrumbEl.id = "collapsed-ellipsis";
|
4788
4752
|
this.collapsedBreadcrumbEl.innerText = "...";
|
4789
4753
|
this.collapsedBreadcrumbEl.classList.add("collapsed-breadcrumb");
|
@@ -4793,28 +4757,11 @@ class BreadcrumbGroup {
|
|
4793
4757
|
this.collapsedBreadcrumbWrapper.append(this.collapsedBreadcrumbEl);
|
4794
4758
|
}
|
4795
4759
|
};
|
4796
|
-
this.handleHiddenCollapsedBreadcrumbs = () => {
|
4797
|
-
this.collapsedBreadcrumbWrapper.remove();
|
4798
|
-
this.collapsedBreadcrumbs.forEach((breadcrumb) => {
|
4799
|
-
breadcrumb.classList.add("visuallyhidden");
|
4800
|
-
breadcrumb.classList.remove("hide");
|
4801
|
-
setTimeout(() => {
|
4802
|
-
breadcrumb.classList.add("fade");
|
4803
|
-
}, this.ADD_CLASS_DELAY);
|
4804
|
-
this.removeVisuallyHiddenClass(breadcrumb);
|
4805
|
-
});
|
4806
|
-
this.expandedBreadcrumbs = true;
|
4807
|
-
// Set focus to first unhidden breadcrumb
|
4808
|
-
this.collapsedBreadcrumbs[0].setFocus();
|
4809
|
-
};
|
4810
4760
|
this.transitionendHandler = (event) => {
|
4811
4761
|
if (event.propertyName === "opacity") {
|
4812
4762
|
event.target.classList.remove("visuallyhidden");
|
4813
4763
|
}
|
4814
4764
|
};
|
4815
|
-
this.removeVisuallyHiddenClass = (breadcrumb) => {
|
4816
|
-
breadcrumb.addEventListener("transitionend", this.transitionendHandler);
|
4817
|
-
};
|
4818
4765
|
this.setLastParentCollapsedBackBreadcrumb = () => {
|
4819
4766
|
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4820
4767
|
this.setBackBreadcrumbAttr();
|
@@ -4834,8 +4781,9 @@ class BreadcrumbGroup {
|
|
4834
4781
|
this.resizeObserverCallback = (currSize) => {
|
4835
4782
|
if (currSize !== this.deviceSize) {
|
4836
4783
|
this.deviceSize = currSize;
|
4837
|
-
|
4838
|
-
|
4784
|
+
const isSmallDevice = this.deviceSize <= DEVICE_SIZES$1.S;
|
4785
|
+
this.el.setAttribute("back-breadcrumb-only", `${isSmallDevice}`);
|
4786
|
+
if (isSmallDevice) {
|
4839
4787
|
if (this.collapsed) {
|
4840
4788
|
this.setLastParentCollapsedBackBreadcrumb();
|
4841
4789
|
}
|
@@ -4844,26 +4792,22 @@ class BreadcrumbGroup {
|
|
4844
4792
|
}
|
4845
4793
|
}
|
4846
4794
|
else {
|
4847
|
-
this.el.
|
4848
|
-
if (this.collapsed &&
|
4795
|
+
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4796
|
+
if (this.collapsed && allBreadcrumbs.length > 2) {
|
4849
4797
|
this.revertLastParentCollapsedBreadcrumb();
|
4850
|
-
|
4851
|
-
this.setDefaultBreadcrumbs();
|
4852
|
-
}
|
4853
|
-
else {
|
4854
|
-
this.setCollapsed();
|
4855
|
-
}
|
4798
|
+
this.setCollapsed();
|
4856
4799
|
}
|
4857
4800
|
else {
|
4858
|
-
|
4801
|
+
allBreadcrumbs.forEach((breadcrumb) => {
|
4802
|
+
breadcrumb.setAttribute(this.SHOW_BACK_ICON, "false");
|
4803
|
+
});
|
4859
4804
|
}
|
4860
4805
|
}
|
4861
4806
|
}
|
4862
4807
|
};
|
4863
4808
|
this.runResizeObserver = () => {
|
4864
4809
|
this.resizeObserver = new ResizeObserver(() => {
|
4865
|
-
|
4866
|
-
this.resizeObserverCallback(currSize);
|
4810
|
+
this.resizeObserverCallback(getCurrentDeviceSize$1());
|
4867
4811
|
});
|
4868
4812
|
this.resizeObserver.observe(this.el);
|
4869
4813
|
};
|
@@ -4881,7 +4825,6 @@ class BreadcrumbGroup {
|
|
4881
4825
|
this.setBreadcrumbTheme();
|
4882
4826
|
}
|
4883
4827
|
componentWillLoad() {
|
4884
|
-
const allBreadcrumbs = Array.from(this.el.querySelectorAll(this.IC_BREADCRUMB));
|
4885
4828
|
this.setBreadcrumbTheme();
|
4886
4829
|
this.setBreadcrumbMonochrome();
|
4887
4830
|
if (this.backBreadcrumbOnly) {
|
@@ -4890,7 +4833,8 @@ class BreadcrumbGroup {
|
|
4890
4833
|
else {
|
4891
4834
|
checkResizeObserver$1(this.runResizeObserver);
|
4892
4835
|
}
|
4893
|
-
if (this.collapsed &&
|
4836
|
+
if (this.collapsed &&
|
4837
|
+
this.el.querySelectorAll(this.IC_BREADCRUMB).length > 2) {
|
4894
4838
|
if (getCurrentDeviceSize$1() === DEVICE_SIZES$1.S) {
|
4895
4839
|
this.setLastParentCollapsedBackBreadcrumb();
|
4896
4840
|
}
|
@@ -4898,19 +4842,20 @@ class BreadcrumbGroup {
|
|
4898
4842
|
this.setCollapsed();
|
4899
4843
|
}
|
4900
4844
|
}
|
4845
|
+
this.lastParentBreadcrumb = this.getLastParentBreadcrumb();
|
4901
4846
|
}
|
4902
4847
|
disconnectedCallback() {
|
4903
|
-
|
4904
|
-
|
4905
|
-
this.collapsedBreadcrumbEl
|
4906
|
-
this.collapsedBreadcrumbEl.removeEventListener("click", this.clickHandler);
|
4848
|
+
var _a, _b;
|
4849
|
+
(_a = this.lastParentBreadcrumb) === null || _a === void 0 ? void 0 : _a.removeEventListener("transitionend", this.transitionendHandler);
|
4850
|
+
(_b = this.collapsedBreadcrumbEl) === null || _b === void 0 ? void 0 : _b.removeEventListener("click", this.clickHandler);
|
4907
4851
|
}
|
4908
4852
|
render() {
|
4909
|
-
|
4910
|
-
|
4911
|
-
"ic-breadcrumb-group-
|
4912
|
-
|
4913
|
-
|
4853
|
+
const { backBreadcrumbOnly, collapsed, theme } = this;
|
4854
|
+
return (hAsync(Host, { key: '6007593369d986d18d2c4cad15227da06bdf83b3', class: {
|
4855
|
+
"ic-breadcrumb-group-back": backBreadcrumbOnly,
|
4856
|
+
"ic-breadcrumb-group-collapsed": collapsed,
|
4857
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
4858
|
+
} }, hAsync("nav", { key: 'd20e99632bc38dec96220f3d352782a92370f18c', "aria-label": "breadcrumbs" }, hAsync("ol", { key: '780819660c759cf6b3e468fd50fbc02a723ee94b' }, hAsync("slot", { key: '9ab668b5b936d967dfa6fca4d72be882456b8b4e' })))));
|
4914
4859
|
}
|
4915
4860
|
get el() { return getElement(this); }
|
4916
4861
|
static get watchers() { return {
|
@@ -4925,11 +4870,10 @@ class BreadcrumbGroup {
|
|
4925
4870
|
"$tagName$": "ic-breadcrumb-group",
|
4926
4871
|
"$members$": {
|
4927
4872
|
"backBreadcrumbOnly": [4, "back-breadcrumb-only"],
|
4928
|
-
"collapsed": [
|
4873
|
+
"collapsed": [1028],
|
4929
4874
|
"monochrome": [4],
|
4930
4875
|
"theme": [1],
|
4931
|
-
"deviceSize": [32]
|
4932
|
-
"expandedBreadcrumbs": [32]
|
4876
|
+
"deviceSize": [32]
|
4933
4877
|
},
|
4934
4878
|
"$listeners$": undefined,
|
4935
4879
|
"$lazyBundleId$": "-",
|
@@ -4941,7 +4885,7 @@ var arrowDropdown$1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="non
|
|
4941
4885
|
<path d="M7 9.5L12 14.5L17 9.5H7Z" fill="currentColor"/>
|
4942
4886
|
</svg>`;
|
4943
4887
|
|
4944
|
-
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background-non-transparent)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent\n ) !important}:host(.ic-button-variant-secondary.background.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n )}:host(.ic-button-variant-secondary.background.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-disabled\n ) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-color:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n );color:var(--ic-button-primary-text)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome\n ) !important}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) .button{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n );color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.background.monochrome.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome.ic-button-disabled) ::slotted(a){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-disabled\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4888
|
+
const icButtonCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:inline-block;position:relative;--icon-width:100%;--icon-height:100%}.button,::slotted(a){font-family:var(--ic-font-body-family);text-decoration:none;font-weight:600;font-size:0.875rem;transition:var(--ic-easing-transition-fast);border-radius:var(--ic-border-radius);min-width:var(--min-width, 6.25rem);display:inline-flex;flex-direction:row;justify-content:center;align-items:center;background:none;border:none;box-sizing:border-box;white-space:nowrap;vertical-align:middle}:host(.with-badge) .button{border-radius:0.2188rem}.button:hover,::slotted(a:hover){cursor:pointer}.button:focus,::slotted(a:focus){box-shadow:var(--ic-border-focus)}.button:focus-visible,::slotted(a:focus-visible){outline:var(--ic-hc-focus-outline)}:host(.ic-button-disabled),:host(.ic-button-disabled) .button,:host(.ic-button-disabled) ::slotted(a),:host(.ic-button-loading),:host(.ic-button-loading) .button{pointer-events:none}:host(.top-icon) .button{flex-direction:column;--height:fit-content}:host(.top-icon) .button .icon-container{margin-right:0}:host(.ic-button-variant-primary) .button,:host(.ic-button-variant-icon-primary) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background)}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon)}:host(.ic-button-variant-primary) ::slotted(a),:host(.ic-button-variant-icon-primary) ::slotted(a){--ic-typography-color:var(--ic-button-primary-text);color:var(--ic-button-primary-text);background-color:var(--ic-button-primary-background) !important}:host(.ic-button-variant-primary) .button:hover,:host(.ic-button-variant-icon-primary) .button:hover{background-color:var(--ic-button-primary-background-hover)}:host(.ic-button-variant-primary) ::slotted(a:hover),:host(.ic-button-variant-icon-primary) ::slotted(a:hover){background-color:var(--ic-button-primary-background-hover) !important}:host(.ic-button-variant-primary.ic-button-loading) .button,:host(.ic-button-variant-primary) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading) .button,:host(.ic-button-variant-icon-primary) .button:active{background-color:var(--ic-button-primary-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-primary-background-pressed)}:host(.ic-button-variant-primary) ::slotted(a:active),:host(.ic-button-variant-icon-primary) ::slotted(a:active){background-color:var(--ic-button-primary-background-pressed) !important}:host(.ic-button-variant-primary.ic-button-disabled) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled) .button{background:var(--ic-button-primary-background-disabled);color:var(--ic-button-primary-text-disabled)}:host(.ic-button-variant-primary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled) ::slotted(a){background:var(--ic-button-primary-background-disabled) !important;--ic-typography-color:var(--ic-button-primary-text-disabled) !important;color:var(--ic-button-primary-text-disabled) !important}:host(.ic-button-variant-primary.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button{color:var(--ic-button-primary-text-monochrome);background-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a){background-color:var(--ic-button-primary-background-monochrome) !important}:host(.ic-button-variant-primary.monochrome) .button:hover,:host(.ic-button-variant-icon-primary.monochrome) .button:hover{background-color:var(--ic-button-primary-background-hover-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-primary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-primary.monochrome) .button:active,:host(.ic-button-variant-icon-primary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-primary.monochrome) .button:active{background-color:var(--ic-button-primary-background-pressed-monochrome);--button-loading-inner-color:var(--ic-button-primary-text-monochrome);--button-loading-outer-color:var(--ic-button-primary-background-monochrome)}:host(.ic-button-variant-primary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-primary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-primary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) .button{background-color:var(--ic-button-primary-background-disabled-monochrome);color:var(--ic-button-primary-text-disabled-monochrome)}:host(.ic-button-variant-primary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-primary.ic-button-disabled.monochrome) ::slotted(a){background-color:var(\n --ic-button-primary-background-disabled-monochrome\n ) !important}:host(.ic-button-variant-secondary) .button,:host(.ic-button-variant-icon-secondary) .button{border:var(--ic-border-width) solid var(--ic-button-secondary-border);color:var(--ic-button-secondary-text)}:host(.ic-button-variant-secondary) ::slotted(a),:host(.ic-button-variant-icon-secondary) ::slotted(a){border:var(--ic-border-width) solid var(--ic-button-secondary-border) !important;color:var(--ic-button-secondary-text) !important;--ic-typography-color:var(--ic-button-secondary-text) !important}:host(.ic-button-variant-secondary) .button:hover,:host(.ic-button-variant-icon-secondary) .button:hover{background-color:var(--ic-button-secondary-background-hover-active);border-color:var(--ic-button-secondary-border-hover);color:var(--ic-button-secondary-text-hover-active)}:host(.ic-button-variant-secondary) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-active\n ) !important}:host(.ic-button-variant-secondary) .button:active,:host(.ic-button-variant-icon-secondary) .button:active{border-color:var(--ic-button-secondary-border-pressed);background-color:var(--ic-button-secondary-background-pressed-active);color:var(--ic-button-secondary-text-pressed-active)}:host(.ic-button-variant-secondary) ::slotted(a:active),:host(.ic-button-variant-icon-secondary) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-active\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading) .button{border-color:var(--ic-button-secondary-border-pressed);background-color:var(\n --loading-button-background,\n var(--ic-button-secondary-background-pressed-active)\n ) !important;color:var(--ic-button-secondary-text-pressed-active);--button-loading-inner-color:var(--ic-button-secondary-border-pressed);--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-active\n )}:host(.ic-button-variant-secondary.ic-button-disabled) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled) .button{border-color:var(--ic-button-secondary-border-disabled);color:var(--ic-button-secondary-text-disabled);background:none}:host(.ic-button-variant-secondary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background) .button,:host(.ic-button-variant-icon-secondary.background) .button{background-color:var(--ic-button-secondary-background)}:host(.ic-button-variant-secondary.background) ::slotted(a),:host(.ic-button-variant-icon-secondary.background) ::slotted(a){background-color:var(--ic-button-secondary-background) !important}:host(.ic-button-variant-secondary.background) .button:hover,:host(.ic-button-variant-icon-secondary.background) .button:hover{background-image:var(--ic-button-secondary-background-non-transparent-hover)}:host(.ic-button-variant-secondary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-secondary.background) .button:active,:host(.ic-button-variant-icon-secondary.background) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-active\n )}:host(.ic-button-variant-secondary.background) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button,:host(.ic-button-variant-icon-secondary.monochrome) .button{background-color:none;border:var(--ic-border-width) solid\n var(--ic-button-secondary-border-monochrome);color:var(--ic-button-secondary-text-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a){background-color:none !important}:host(.ic-button-variant-secondary.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.monochrome) .button:hover{background-color:var(--ic-button-secondary-background-hover-monochrome);border-color:var(--ic-button-secondary-border-hover-monochrome);color:var(--ic-button-secondary-text-hover-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-secondary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-secondary.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.monochrome) .button:active{background-color:var(--ic-button-secondary-background-pressed-monochrome);border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome)}:host(.ic-button-variant-secondary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-secondary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-loading.monochrome) .button{background-color:var(\n --ic-button-secondary-background-pressed-monochrome\n ) !important;border-color:var(--ic-button-secondary-border-pressed-monochrome);color:var(--ic-button-secondary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-secondary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-secondary-background-pressed-monochrome\n )}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) .button{background:none;border-color:var(--ic-button-secondary-border-disabled-monochrome);color:var(--ic-button-secondary-text-disabled-monochrome)}:host(.ic-button-variant-secondary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-secondary.background.monochrome) .button,:host(.ic-button-variant-icon-secondary.background.monochrome) .button{background-color:var(--ic-button-secondary-background-monochrome)}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a){background-color:var(--ic-button-secondary-background-monochrome) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:hover{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-secondary.background.monochrome) .button:active,:host(.ic-button-variant-icon-secondary.background.monochrome) .button:active{background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-secondary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-secondary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-secondary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-tertiary) .button,:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-tertiary) ::slotted(a),:host(.ic-button-variant-icon-tertiary) ::slotted(a){color:var(--ic-button-tertiary-text-active);--ic-typography-color:var(--ic-button-tertiary-text-active)}:host(.ic-button-variant-tertiary) .button:hover,:host(.ic-button-variant-icon-tertiary) .button:hover{background-color:var(--ic-button-tertiary-background-hover-active);color:var(--ic-button-tertiary-text-hover-active)}:host(.ic-button-variant-tertiary) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-active\n ) !important}:host(.ic-button-variant-tertiary) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading) .button,:host(.ic-button-variant-icon-tertiary) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading) .button{background-color:var(--ic-button-tertiary-background-pressed-active);color:var(--ic-button-tertiary-text-pressed-active);--button-loading-inner-color:var(--ic-button-tertiary-text-pressed-active);--button-loading-outer-color:var(--ic-button-tertiary-background-pressed)}:host(.ic-button-variant-tertiary) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-active\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled) .button{color:var(--ic-button-tertiary-text-disabled);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background) .button,:host(.ic-button-variant-icon-tertiary.background) .button{background-color:var(--ic-button-tertiary-background)}:host(.ic-button-variant-tertiary.background) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a){background-color:var(--ic-button-tertiary-background) !important}:host(.ic-button-variant-tertiary.background) .button:hover,:host(.ic-button-variant-icon-tertiary.background) .button:hover{background-image:var(--ic-button-tertiary-background-non-transparent-hover)}:host(.ic-button-variant-tertiary.background) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-hover\n ) !important}:host(.ic-button-variant-tertiary.background) .button:active,:host(.ic-button-variant-icon-tertiary.background) .button:active{background-image:var(--ic-button-tertiary-background-non-transparent-active)}:host(.ic-button-variant-tertiary.background) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-active\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button,:host(.ic-button-variant-tertiary.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a){color:var(--ic-button-tertiary-text-monochrome);--ic-typography-color:var(--ic-button-tertiary-text-monochrome)}:host(.ic-button-variant-tertiary.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.monochrome) .button:hover{background-color:var(--ic-button-tertiary-background-hover-monochrome);color:var(--ic-button-tertiary-text-hover-monochrome)}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:hover){background-color:var(\n --ic-button-tertiary-background-hover-monochrome\n ) !important}:host(.ic-button-variant-tertiary.monochrome) .button:active,:host(.ic-button-variant-tertiary.ic-button-loading.monochrome) .button,:host(.ic-button-variant-icon-tertiary.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.ic-button-loading.monochrome) .button{background-color:var(--ic-button-tertiary-background-pressed-monochrome);color:var(--ic-button-tertiary-text-pressed-monochrome);--button-loading-inner-color:var(\n --ic-button-tertiary-text-pressed-monochrome\n );--button-loading-outer-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n )}:host(.ic-button-variant-tertiary.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.monochrome) ::slotted(a:active){background-color:var(\n --ic-button-tertiary-background-pressed-monochrome\n ) !important}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) .button,:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) .button{color:var(--ic-button-tertiary-text-disabled-monochrome);background:none}:host(.ic-button-variant-tertiary.ic-button-disabled.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.ic-button-disabled.monochrome) ::slotted(a){background:none !important}:host(.ic-button-variant-tertiary.background.monochrome) .button,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button{background-color:var(--ic-button-tertiary-background-monochrome)}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a){background-color:var(--ic-button-tertiary-background-monochrome) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:hover,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:hover{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:hover),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:hover){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-hover\n ) !important}:host(.ic-button-variant-tertiary.background.monochrome) .button:active,:host(.ic-button-variant-icon-tertiary.background.monochrome) .button:active{background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n )}:host(.ic-button-variant-tertiary.background.monochrome) ::slotted(a:active),:host(.ic-button-variant-icon-tertiary.background.monochrome) ::slotted(a:active){background-image:var(\n --ic-button-tertiary-background-non-transparent-monochrome-active\n ) !important}:host(.ic-button-variant-destructive) .button,:host(.ic-button-variant-icon-destructive) .button{color:var(--ic-button-destructive-text);background-color:var(--ic-button-destructive-background);text-transform:uppercase}:host(.ic-button-variant-destructive) ::slotted(a),:host(.ic-button-variant-icon-destructive) ::slotted(a){color:var(--ic-button-destructive-text) !important;--ic-typography-color:var(--ic-button-destructive-text) !important;background-color:var(--ic-button-destructive-background) !important;text-transform:uppercase !important}:host(.ic-button-variant-destructive) .button:hover,:host(.ic-button-variant-icon-destructive) .button:hover{background-color:var(--ic-button-destructive-background-hover)}:host(.ic-button-variant-destructive) ::slotted(a:hover),:host(.ic-button-variant-icon-destructive) ::slotted(a:hover){background-color:var(--ic-button-destructive-background-hover) !important}:host(.ic-button-variant-destructive) .button:active,:host(.ic-button-variant-destructive.ic-button-loading) .button,:host(.ic-button-variant-icon-destructive.ic-button-loading) .button{color:var(--ic-button-primary-text);background-color:var(--ic-button-destructive-background-pressed);--button-loading-inner-color:var(--ic-button-primary-text);--button-loading-outer-color:var(--ic-button-destructive-background-pressed)}:host(.ic-button-variant-destructive) ::slotted(a:active),:host(.ic-button-variant-icon-destructive) ::slotted(a:active){background-color:var(--ic-button-destructive-background-pressed) !important}:host(.ic-button-variant-destructive.ic-button-disabled) .button,:host(.ic-button-variant-icon-destructive.ic-button-disabled) .button{background-color:var(--ic-button-destructive-background-disabled);color:var(--ic-button-destructive-text-disabled)}:host(.ic-button-variant-destructive.ic-button-disabled) ::slotted(a),:host(.ic-button-variant-icon-destructive.ic-button-disabled) ::slotted(a){background-color:var(--ic-button-destructive-background-disabled) !important}:host(.ic-button-variant-icon) .button{color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background);min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) ::slotted(a){color:var(--ic-button-icon-color);background-color:var(--ic-button-icon-color-background) !important;min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon) .button:hover{color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover)}:host(.ic-button-variant-icon) ::slotted(a:hover){color:var(--ic-button-icon-color-hover);background-color:var(--ic-button-icon-color-background-hover) !important}:host(.ic-button-variant-icon) .button:active:not(:focus),:host(.ic-button-variant-icon.ic-button-loading) .button{color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active)}:host(.ic-button-variant-icon) ::slotted(a:active:not(:focus)){color:var(--ic-button-icon-color-active);background-color:var(--ic-button-icon-color-background-active) !important}:host(.ic-button-variant-icon.ic-button-disabled) .button{color:var(--ic-color-icon-disabled-mid);background:none}:host(.ic-button-variant-icon.ic-button-disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none !important}:host(.ic-button-variant-icon-primary) .button,:host(.ic-button-variant-icon-primary) ::slotted(a){min-width:0;gap:var(--ic-space-xs);color:var(--ic-button-primary-icon)}:host(.ic-button-variant-icon-primary.monochrome) .button,:host(.ic-button-variant-primary.monochrome:not(.ic-button-disabled)) ::slotted(svg){color:var(--ic-button-primary-icon-monochrome)}:host(.ic-button-variant-icon-primary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:var(--ic-button-icon-monochrome)}:host(.ic-button-variant-icon-secondary) .button,:host(.ic-button-variant-icon-secondary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-secondary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-tertiary) .button,:host(.ic-button-variant-icon-tertiary) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-tertiary) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-variant-icon-destructive) .button,:host(.ic-button-variant-icon-destructive) ::slotted(a){min-width:0;gap:var(--ic-space-xs)}:host(.ic-button-variant-icon-destructive) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.ic-button-size-medium) .button{height:var(--height, 2.5rem);padding:var(--ic-space-xs) var(--ic-space-md)}:host(.ic-button-size-medium) ::slotted(a){height:var(--height, 2.5rem) !important;padding:var(--ic-space-xs) var(--ic-space-md) !important}:host(.ic-button-size-small) .button{height:var(--height, var(--ic-space-xl));padding:var(--ic-space-xxs) var(--ic-space-md)}:host(.ic-button-size-small) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;padding:var(--ic-space-xxs) var(--ic-space-md) !important}:host(.ic-button-size-large) .button{height:var(--height, var(--ic-space-xxl));padding:var(--ic-space-sm) var(--ic-space-md)}:host(.ic-button-size-large) ::slotted(a){height:var(--height, var(--ic-space-xxl)) !important;padding:var(--ic-space-sm) var(--ic-space-md) !important}:host(.ic-button-size-medium.ic-button-variant-icon) .button,:host(.ic-button-size-medium.ic-button-variant-icon-primary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-medium.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-xl));width:var(--ic-space-xl);padding:0.375rem}:host(.ic-button-size-medium.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-medium.ic-button-variant-icon-destructive) ::slotted(a){height:var(--height, var(--ic-space-xl)) !important;width:var(--ic-space-xl) !important;padding:0.375rem !important}:host(.ic-button-size-small.ic-button-variant-icon) .button,:host(.ic-button-size-small.ic-button-variant-icon-primary) .button,:host(.ic-button-size-small.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-small.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-small.ic-button-variant-icon-destructive) .button{height:var(--height, var(--ic-space-lg));width:var(--ic-space-lg);padding:var(--ic-space-xxs)}:host(.ic-button-size-small.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-small.ic-button-variant-icon) ::slotted(a){height:var(--height, var(--ic-space-lg)) !important;width:var(--ic-space-lg) !important;padding:var(--ic-space-xxs) !important}:host(.ic-button-size-large.ic-button-variant-icon) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) .button,:host(.ic-button-size-large.ic-button-variant-icon-secondary) .button,:host(.ic-button-size-large.ic-button-variant-icon-tertiary) .button,:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button{height:var(--height, 2.5rem);width:2.5rem;padding:var(--ic-space-xs)}:host(.ic-button-size-large.ic-button-variant-icon-destructive) .button,:host(.ic-button-size-large.ic-button-variant-icon-primary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-secondary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-tertiary) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon-destructive) ::slotted(a),:host(.ic-button-size-large.ic-button-variant-icon) ::slotted(a){height:var(--height, 2.5rem) !important;width:2.5rem !important;padding:var(--ic-space-xs) !important}:host(.ic-button-full-width),:host(.ic-button-full-width) .button{width:100%}:host(.ic-button-full-width) ::slotted(a){width:100% !important}div.loading-container{position:relative;align-items:center;width:100%}ic-loading-indicator{--inner-color:var(--button-loading-inner-color);--outer-color:var(--button-loading-outer-color), transparent}@keyframes loading-animation{0%{width:0%;left:0%}25%{width:0%;left:0%;opacity:0}50%{width:100%;left:0%;opacity:1}75%{width:0%;left:100%}100%{width:0%;left:100%;opacity:0}}div.icon-container{box-sizing:border-box;width:var(--ic-space-lg);height:var(--ic-space-lg);display:flex;justify-content:center;align-items:center;margin-right:var(--ic-space-xs)}div.right-icon{margin-right:auto;margin-left:var(--ic-space-xs)}:host(.ic-button-full-width) .right-icon{margin-right:var(--ic-space-xs)}::slotted(:not(ic-badge)){width:var(--icon-width) !important;height:var(--icon-height) !important;fill:currentcolor !important;pointer-events:none}:host(.ic-button-variant-icon) .button .icon-container{margin:0;pointer-events:none}:host(.search-submit-button) ::slotted(svg){--icon-height:1.25rem;--icon-width:1.25rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button-small) ::slotted(svg){--icon-height:1rem;--icon-width:1rem;color:var(--ic-atoms-input-search-button)}:host(.search-submit-button) .button:focus{box-shadow:none}:host(.search-submit-button) .button:not(:active):focus{box-shadow:none;background-color:var(--ic-action-default-bg-hover)}:host(.search-submit-button) .button:not(:active):focus ::slotted(svg){color:var(--ic-button-primary-text)}:host(.search-submit-button){display:flex;align-items:center;margin:0 var(--ic-space-xxs)}:host(.ic-button-variant-icon) .button,:host(.ic-button-variant-icon) ::slotted(a){background-color:inherit;min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .button,:host(.button-variant-icon) ::slotted(a){color:var(--button-default);min-width:0;gap:var(--ic-space-xs)}:host(.button-variant-icon) .icon-container{width:var(--ic-space-lg) !important;height:var(--ic-space-lg) !important}:host(.button-variant-icon) .button:hover,:host(.button-variant-icon) ::slotted(a:hover){background-color:var(--button-default-background-hover);color:var(--button-default-hover)}:host(.button-variant-icon) .button:active:not(:focus),:host(.button-variant-icon) ::slotted(a:active:not(:focus)),:host(.button-variant-icon.loading) .button{background-color:var(--button-default-background-active);color:var(--button-default-active)}:host(.button-variant-icon.disabled) .button,:host(.button-variant-icon.disabled) ::slotted(a){color:var(--ic-color-icon-disabled-mid);background:none}:host(.clear-button){margin:0 var(--ic-space-xxs)}:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button,:host(.clear-button) .button,:host(.dismiss-icon) ::slotted(a),:host(.clear-button) ::slotted(a){background-color:inherit;color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon) .button:hover,:host(.clear-button) .button:hover,:host(.dismiss-icon) ::slotted(a:hover),:host(.clear-button) ::slotted(a:hover){color:var(--ic-atoms-input-clear-button)}:host(.dismiss-icon),:host(.clear-button){color:var(--ic-atoms-input-clear-button);margin:0 var(--ic-space-xxs)}:host(.dismiss-icon) .button:focus,:host(.clear-button) .button:focus,:host(.calendar-button) .button:focus{box-shadow:none}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){background-color:var(--ic-atoms-input-clear-button-focus-inner);color:var(--ic-button-primary-text);}:host(.menu-close-button) ::slotted(svg){--icon-height:0.875rem;--icon-width:0.875rem;color:var(--ic-top-navigation-icon-active)}:host(.popout-menu-button) .button{height:var(--height);justify-content:left;border-radius:0;white-space:pre-line;text-align:start}:host(.popout-menu-button) div.icon-container{flex:none}:host(.popout-menu-button) .button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset)}.ic-button-describedby{display:none}:host .ic-tooltip{display:block}:host .arrow-dropdown{margin-top:auto}:host .dropdown-expanded{transform:rotate(180deg);margin-bottom:var(--ic-space-xxxs)}:host(.dropdown-no-icon) .button{padding-right:var(--ic-space-xs)}slot[name=\"router-item\"]::slotted(a){pointer-events:all}::slotted(a){font-size:0.875rem !important;border:none !important;vertical-align:middle !important}:host(#menu-button.ic-theme-dark){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-dark-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-dark-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover-dark\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed-dark\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-dark\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-pressed-dark\n )}:host(#menu-button.ic-theme-light){--ic-button-secondary-background-hover-monochrome:var(\n --ic-action-light-bg-hover\n );--ic-button-secondary-background-pressed-monochrome:var(\n --ic-action-light-bg-pressed\n );--ic-button-secondary-text-hover-monochrome:var(\n --ic-action-monochrome-hover\n );--ic-button-secondary-text-pressed-monochrome:var(\n --ic-action-monochrome-pressed\n );--ic-button-secondary-border-hover-monochrome:var(\n --ic-color-border-neutral-hover-light\n );--ic-button-secondary-border-pressed-monochrome:var(\n --ic-color-border-neutral-default\n )}@media (forced-colors: active){.button,::slotted(a){border:0.125rem solid transparent !important}.search-submit-button ::slotted(a),.ic-button-variant-icon ::slotted(a),.clear-button ::slotted(a),.search-submit-button ::slotted(svg),.ic-button-variant-icon ::slotted(svg),.clear-button ::slotted(svg){color:HighlightText}:host(.ic-button-variant-icon.monochrome) ::slotted(a),:host(.ic-button-variant-icon.monochrome) ::slotted(svg){color:white}:host(.dismiss-icon) .button:not(:active):focus ::slotted(svg),:host(.clear-button) .button:not(:active):focus ::slotted(svg){color:white !important;background-color:inherit}:host(.ic-button-variant-primary:not(.ic-button-disabled)) ::slotted(svg){color:currentcolor !important}}:host(.flip) ::slotted(svg){transform:scaleX(-1)}";
|
4945
4889
|
var IcButtonStyle0 = icButtonCss;
|
4946
4890
|
|
4947
4891
|
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
@@ -4974,7 +4918,6 @@ class Button {
|
|
4974
4918
|
this.hasTooltip = false;
|
4975
4919
|
this.inheritedAttributes = {};
|
4976
4920
|
this.describedbyEl = null;
|
4977
|
-
this.describedById = null;
|
4978
4921
|
this.mutationObserver = null;
|
4979
4922
|
this.hostMutationObserver = null;
|
4980
4923
|
this.ariaLabel = "";
|
@@ -5041,7 +4984,7 @@ class Button {
|
|
5041
4984
|
*/
|
5042
4985
|
this.tooltipPlacement = "bottom";
|
5043
4986
|
/**
|
5044
|
-
* If `true`, the secondary
|
4987
|
+
* If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading.
|
5045
4988
|
*/
|
5046
4989
|
this.transparentBackground = true;
|
5047
4990
|
/**
|
@@ -5052,6 +4995,7 @@ class Button {
|
|
5052
4995
|
* The variant of the button to be displayed.
|
5053
4996
|
*/
|
5054
4997
|
this.variant = "primary";
|
4998
|
+
this.getSlottedIcon = (position) => this.el.querySelector(`[slot="${position}-icon"]`);
|
5055
4999
|
this.handleClick = () => {
|
5056
5000
|
var _a;
|
5057
5001
|
if ((this.el.type === "submit" || this.el.type === "reset") &&
|
@@ -5076,12 +5020,17 @@ class Button {
|
|
5076
5020
|
this.onBlur = () => {
|
5077
5021
|
this.icBlur.emit();
|
5078
5022
|
};
|
5079
|
-
|
5023
|
+
/**
|
5024
|
+
* Triggered when text content of sibling element in light DOM changes
|
5025
|
+
*/
|
5080
5026
|
this.mutationCallback = () => {
|
5081
5027
|
var _a;
|
5082
5028
|
this.describedByContent = (_a = this.describedbyEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
5083
5029
|
};
|
5084
|
-
|
5030
|
+
/**
|
5031
|
+
* Triggered when attributes of host element change
|
5032
|
+
* @param mutationList the list of changes made to the host element
|
5033
|
+
*/
|
5085
5034
|
this.hostMutationCallback = (mutationList) => {
|
5086
5035
|
mutationList.forEach(({ attributeName }) => {
|
5087
5036
|
if (attributeName) {
|
@@ -5102,58 +5051,54 @@ class Button {
|
|
5102
5051
|
this.hasTooltip =
|
5103
5052
|
!this.disableTooltip && (!!this.title || !!this.isIconVariant());
|
5104
5053
|
};
|
5105
|
-
this.isIconVariant = () =>
|
5106
|
-
var _a;
|
5107
|
-
return (_a = this.variant) === null || _a === void 0 ? void 0 : _a.startsWith("icon");
|
5108
|
-
};
|
5054
|
+
this.isIconVariant = () => this.variant.startsWith("icon");
|
5109
5055
|
this.arrangeRouterItem = () => {
|
5110
|
-
var _a
|
5056
|
+
var _a;
|
5111
5057
|
const setStyles = (element, styles) => {
|
5112
5058
|
Object.entries(styles).forEach(([key, value]) => {
|
5113
5059
|
element.style.setProperty(key, value);
|
5114
5060
|
});
|
5115
5061
|
};
|
5116
|
-
|
5117
|
-
|
5118
|
-
|
5119
|
-
|
5120
|
-
|
5121
|
-
|
5122
|
-
"font-family": "var(--ic-font-body-family)",
|
5123
|
-
"font-size": "0.875rem",
|
5124
|
-
"font-weight": "600",
|
5125
|
-
});
|
5126
|
-
setStyles(this.routerSlot, {
|
5127
|
-
gap: "0",
|
5128
|
-
});
|
5129
|
-
if (icon) {
|
5130
|
-
setStyles(icon, {
|
5131
|
-
fill: "currentcolor",
|
5062
|
+
if (this.routerSlot) {
|
5063
|
+
const icTypography = document.createElement("ic-typography");
|
5064
|
+
setStyles(icTypography, {
|
5065
|
+
"font-family": "var(--ic-font-body-family)",
|
5066
|
+
"font-size": "0.875rem",
|
5067
|
+
"font-weight": "600",
|
5132
5068
|
});
|
5133
|
-
|
5134
|
-
|
5135
|
-
|
5136
|
-
|
5137
|
-
icon.getAttribute("slot")
|
5138
|
-
|
5139
|
-
|
5140
|
-
|
5141
|
-
|
5142
|
-
setStyles(this.routerSlot, {
|
5143
|
-
display: "flex",
|
5144
|
-
"flex-direction": "column",
|
5145
|
-
"--height": "fit-content",
|
5069
|
+
setStyles(this.routerSlot, {
|
5070
|
+
gap: "0",
|
5071
|
+
});
|
5072
|
+
const icon = this.routerSlot.querySelector("svg");
|
5073
|
+
const iconSlot = icon === null || icon === void 0 ? void 0 : icon.getAttribute("slot");
|
5074
|
+
const iconWrapper = document.createElement("div");
|
5075
|
+
if (icon) {
|
5076
|
+
setStyles(icon, {
|
5077
|
+
fill: "currentcolor",
|
5146
5078
|
});
|
5147
|
-
|
5148
|
-
|
5149
|
-
|
5150
|
-
|
5151
|
-
|
5152
|
-
|
5153
|
-
|
5154
|
-
|
5079
|
+
if (iconSlot === "top-icon") {
|
5080
|
+
setStyles(this.routerSlot, {
|
5081
|
+
display: "flex",
|
5082
|
+
"flex-direction": "column",
|
5083
|
+
"--height": "fit-content",
|
5084
|
+
});
|
5085
|
+
}
|
5086
|
+
else if (iconSlot) {
|
5087
|
+
const marginPlacement = iconSlot === "left-icon" ? "right" : "left";
|
5088
|
+
setStyles(iconWrapper, {
|
5089
|
+
[`margin-${marginPlacement}`]: "var(--ic-space-xs)",
|
5090
|
+
});
|
5091
|
+
}
|
5092
|
+
iconWrapper.append(icon);
|
5093
|
+
}
|
5094
|
+
const badge = this.routerSlot.querySelector("ic-badge");
|
5095
|
+
const label = (_a = this.routerSlot.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
5096
|
+
if (badge)
|
5097
|
+
iconWrapper.append(badge);
|
5098
|
+
if (label)
|
5099
|
+
icTypography.textContent = label;
|
5155
5100
|
this.routerSlot.textContent = "";
|
5156
|
-
if (
|
5101
|
+
if (iconSlot === "right-icon") {
|
5157
5102
|
this.routerSlot.append(icTypography);
|
5158
5103
|
this.routerSlot.append(iconWrapper);
|
5159
5104
|
}
|
@@ -5168,13 +5113,9 @@ class Button {
|
|
5168
5113
|
removeDisabledFalse$1(this.disabled, this.el);
|
5169
5114
|
}
|
5170
5115
|
disconnectedCallback() {
|
5171
|
-
|
5172
|
-
|
5173
|
-
|
5174
|
-
if (this.hostMutationObserver !== null &&
|
5175
|
-
this.hostMutationObserver !== undefined) {
|
5176
|
-
this.hostMutationObserver.disconnect();
|
5177
|
-
}
|
5116
|
+
var _a, _b;
|
5117
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
5118
|
+
(_b = this.hostMutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
5178
5119
|
}
|
5179
5120
|
componentWillUpdate() {
|
5180
5121
|
if (this.loading) {
|
@@ -5194,7 +5135,7 @@ class Button {
|
|
5194
5135
|
this.setHasTooltip();
|
5195
5136
|
if (!this.hasTooltip) {
|
5196
5137
|
const describedById = this.inheritedAttributes["aria-describedby"];
|
5197
|
-
if (describedById
|
5138
|
+
if (describedById) {
|
5198
5139
|
this.describedById = describedById;
|
5199
5140
|
const el = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(`#${describedById}`);
|
5200
5141
|
if (el) {
|
@@ -5219,21 +5160,18 @@ class Button {
|
|
5219
5160
|
this.hostMutationObserver.observe(this.el, {
|
5220
5161
|
attributes: true,
|
5221
5162
|
});
|
5222
|
-
this.hasRouterSlot()
|
5163
|
+
if (this.hasRouterSlot())
|
5164
|
+
this.arrangeRouterItem();
|
5223
5165
|
}
|
5224
5166
|
}
|
5225
5167
|
componentWillRender() {
|
5226
|
-
const iconEl = this.
|
5227
|
-
? this.el.querySelector(`[slot="left-icon"]`)
|
5228
|
-
: this.hasIconSlot("right")
|
5229
|
-
? this.el.querySelector(`[slot="right-icon"]`)
|
5230
|
-
: null;
|
5168
|
+
const iconEl = this.getSlottedIcon("left") || this.getSlottedIcon("right");
|
5231
5169
|
iconEl === null || iconEl === void 0 ? void 0 : iconEl.setAttribute("viewBox", "0 0 24 24");
|
5232
5170
|
}
|
5233
5171
|
handleHostClick(event) {
|
5234
5172
|
if (!this.hasRouterSlot()) {
|
5235
5173
|
if (this.fileUpload) {
|
5236
|
-
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, this.
|
5174
|
+
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, !!this.disabled, this.accept, this.fileInputName, this.selectedFiles);
|
5237
5175
|
}
|
5238
5176
|
if (this.disabled || this.loading) {
|
5239
5177
|
event.stopImmediatePropagation();
|
@@ -5262,10 +5200,6 @@ class Button {
|
|
5262
5200
|
ev.stopImmediatePropagation();
|
5263
5201
|
}
|
5264
5202
|
}
|
5265
|
-
hasIconSlot(position) {
|
5266
|
-
const selectorPrefix = position ? `${position}-` : "";
|
5267
|
-
return this.el.querySelector(`[slot="${selectorPrefix}icon"]`) !== null;
|
5268
|
-
}
|
5269
5203
|
hasRouterSlot() {
|
5270
5204
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
5271
5205
|
if (this.routerSlot) {
|
@@ -5284,72 +5218,61 @@ class Button {
|
|
5284
5218
|
}
|
5285
5219
|
}
|
5286
5220
|
render() {
|
5287
|
-
const
|
5288
|
-
const
|
5221
|
+
const { ariaControlsId, ariaLabel, ariaOwnsId, buttonIdNum, describedByContent, describedById, disabled, download, dropdown, dropdownExpanded, form, formaction, formenctype, formmethod, formnovalidate, formtarget, fullWidth, handleClick, handleKeyDown, hasTooltip, href, hreflang, id, inheritedAttributes, isIconVariant, loading, monochrome, onBlur, onFocus, referrerpolicy, rel, size, target, theme, title, tooltipPlacement, transparentBackground, type, variant, } = this;
|
5222
|
+
const TagType = href ? "a" : "button";
|
5289
5223
|
const buttonAttrs = TagType === "button"
|
5290
5224
|
? {
|
5291
|
-
type
|
5292
|
-
disabled
|
5293
|
-
form
|
5294
|
-
formaction
|
5295
|
-
formenctype
|
5296
|
-
formmethod
|
5297
|
-
formnovalidate
|
5298
|
-
formtarget
|
5225
|
+
type,
|
5226
|
+
disabled,
|
5227
|
+
form,
|
5228
|
+
formaction,
|
5229
|
+
formenctype,
|
5230
|
+
formmethod,
|
5231
|
+
formnovalidate,
|
5232
|
+
formtarget,
|
5299
5233
|
}
|
5300
5234
|
: {
|
5301
|
-
download:
|
5302
|
-
href
|
5303
|
-
rel
|
5304
|
-
target
|
5305
|
-
referrerpolicy
|
5306
|
-
hreflang
|
5235
|
+
download: download !== false ? download : null,
|
5236
|
+
href,
|
5237
|
+
rel,
|
5238
|
+
target,
|
5239
|
+
referrerpolicy,
|
5240
|
+
hreflang,
|
5307
5241
|
};
|
5308
|
-
|
5309
|
-
|
5310
|
-
|
5311
|
-
|
5312
|
-
|
5313
|
-
|
5314
|
-
|
5315
|
-
|
5316
|
-
|
5317
|
-
|
5318
|
-
|
5319
|
-
|
5320
|
-
|
5321
|
-
|
5322
|
-
|
5323
|
-
|
5324
|
-
|
5325
|
-
|
5326
|
-
|
5327
|
-
|
5328
|
-
|
5329
|
-
|
5330
|
-
|
5331
|
-
|
5332
|
-
|
5333
|
-
|
5334
|
-
|
5335
|
-
|
5336
|
-
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
5337
|
-
[`monochrome`]: !!this.monochrome,
|
5338
|
-
["ic-button-disabled"]: !!this.disabled && !this.loading,
|
5339
|
-
[`ic-button-variant-${this.variant}`]: true,
|
5340
|
-
[`ic-button-size-${this.size}`]: true,
|
5341
|
-
["ic-button-loading"]: !!this.loading,
|
5342
|
-
["ic-button-full-width"]: !!this.fullWidth,
|
5343
|
-
["with-badge"]: isSlotUsed$1(this.el, "badge"),
|
5344
|
-
["dropdown-no-icon"]: !!this.dropdown &&
|
5242
|
+
const buttonId = hasTooltip
|
5243
|
+
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
5244
|
+
: undefined;
|
5245
|
+
const describedby = !hasTooltip
|
5246
|
+
? describedById
|
5247
|
+
: variant !== "icon" || !ariaLabel
|
5248
|
+
? `ic-tooltip-${buttonId}`
|
5249
|
+
: undefined;
|
5250
|
+
const hasLeftIcon = !!this.getSlottedIcon("left");
|
5251
|
+
const hasRightIcon = !!this.getSlottedIcon("right");
|
5252
|
+
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 ||
|
5253
|
+
(!!this.getSlottedIcon("top") && !hasRightIcon)) && (hAsync("div", { class: "icon-container" }, hAsync("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), hAsync("slot", null), !dropdown
|
5254
|
+
? hasRightIcon && (hAsync("div", { class: { "icon-container": true, "right-icon": true } }, hAsync("slot", { name: "right-icon" })))
|
5255
|
+
: variant !== "icon" &&
|
5256
|
+
variant !== "destructive" && (hAsync("span", { class: dropdownExpanded
|
5257
|
+
? "dropdown-expanded"
|
5258
|
+
: "arrow-dropdown", innerHTML: arrowDropdown$1 }))))));
|
5259
|
+
return (hAsync(Host, { key: 'ad9ac0c76988c09eb82376bec11b59a01921e191', class: {
|
5260
|
+
"ic-button-disabled": disabled && !loading,
|
5261
|
+
"ic-button-full-width": fullWidth,
|
5262
|
+
"ic-button-loading": loading,
|
5263
|
+
[`ic-button-size-${size}`]: true,
|
5264
|
+
[`ic-button-variant-${variant}`]: true,
|
5265
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
5266
|
+
background: (variant === "secondary" || variant === "tertiary") &&
|
5267
|
+
!transparentBackground &&
|
5268
|
+
!disabled,
|
5269
|
+
"dropdown-no-icon": dropdown &&
|
5345
5270
|
!isSlotUsed$1(this.el, "icon") &&
|
5346
5271
|
!isSlotUsed$1(this.el, "left-icon"),
|
5347
|
-
|
5348
|
-
|
5349
|
-
|
5350
|
-
|
5351
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (hAsync("ic-tooltip", { id: describedby || undefined, label: title || ariaLabel, target: buttonId || undefined, placement: this.tooltipPlacement, silent: this.isIconVariant() && !!ariaLabel }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null)))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" }), !this.hasTooltip &&
|
5352
|
-
(this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync(ButtonContent, null))), this.describedByContent && (hAsync("span", { id: describedby || undefined, class: "ic-button-describedby" }, this.describedByContent))));
|
5272
|
+
monochrome,
|
5273
|
+
"top-icon": isSlotUsed$1(this.el, "top-icon"),
|
5274
|
+
"with-badge": isSlotUsed$1(this.el, "badge"),
|
5275
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (hAsync("ic-tooltip", { key: '6ea260823e7bf9640a83606682243f300a3841db', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, hAsync(ButtonContent, { key: '4fb9a4f68cd2973fc0cd4bf8710dc284332655e8' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '598752e05b5b7c8af271b6b86752e531ca49839f', name: "badge" }), !hasTooltip && hAsync(ButtonContent, { key: '0931fa5a19abb382782b95c86273b92c6888563b' }), describedByContent && (hAsync("span", { key: 'b90c65b1b89f09467a38f47c104d207327686abb', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
5353
5276
|
}
|
5354
5277
|
static get delegatesFocus() { return true; }
|
5355
5278
|
get el() { return getElement(this); }
|
@@ -6015,19 +5938,19 @@ class CardVertical {
|
|
6015
5938
|
rel: rel,
|
6016
5939
|
target: target,
|
6017
5940
|
};
|
6018
|
-
return (hAsync(Host, { key: '
|
5941
|
+
return (hAsync(Host, { key: 'd62f341e096d81fa917e578aa55c99d6d828c9e3', class: {
|
6019
5942
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6020
|
-
} }, hAsync(Component, Object.assign({ key: '
|
5943
|
+
} }, hAsync(Component, Object.assign({ key: '742b03d9281d850a9052638038980b45ca567c17', class: {
|
6021
5944
|
card: true,
|
6022
5945
|
clickable: !!clickable && !disabled,
|
6023
5946
|
disabled: !!disabled,
|
6024
5947
|
fullwidth: !!fullWidth,
|
6025
5948
|
focussed: isFocussed,
|
6026
5949
|
monochrome: monochrome,
|
6027
|
-
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed$1(this.el, "image-top") && (hAsync("div", { key: '
|
5950
|
+
}, tabindex: clickable && !parentIsAnchorTag ? 0 : undefined, "aria-disabled": disabled ? "true" : null, disabled: disabled }, attrs), isSlotUsed$1(this.el, "image-top") && (hAsync("div", { key: 'd5f584871df498cf11acb97ff3694115d4819a73', class: "image-top" }, hAsync("slot", { key: '88fa5d9566421a5ca724622bb11b0ad593babecb', name: "image-top" }))), hAsync("div", { key: '3211c93ebca0fcddad4ac7ce75999ab8d7939442', class: "card-header" }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: 'c80cf3c24f0cbdf7cac901ee8c945c4d1432fe9f', class: "icon" }, hAsync("slot", { key: '7e087604510f545b891f104f972ee50ac686b9be', name: "icon" }))), hAsync("div", { key: '02bc7be8d85faee7b497c2b2608d80f70b79ec86', class: "card-title" }, hAsync("slot", { key: 'e5285ad53121d899dd27966860b664fe1ecc388f', name: "heading" }, hAsync("ic-typography", { key: '00573eddbbdd537b86a1331bd2b2db4a443a13c0', variant: "h4" }, hAsync("p", { key: 'bccc52bc8feadd3abe0cd8092819258dc2e155c8' }, heading)))), isSlotUsed$1(this.el, "interaction-button") && (hAsync("div", { key: 'f9f2baeee122976ab5ffa8e3dff9027bb78db6b4', class: "interaction-button" }, hAsync("slot", { key: '01b087c7b7ff9fa54dfb1171c5a4899cf090b45c', name: "interaction-button" })))), (subheading || isSlotUsed$1(this.el, "subheading")) && (hAsync("div", { key: '81f19c8c0d726ebbb35f71375a35fac342e4e7cd', class: "subheading" }, hAsync("slot", { key: '17c871d9694857824afb3c9f7593c8498873d810', name: "subheading" }, hAsync("ic-typography", { key: '9ca1068e95a3c69def8ec0bf82135dd36ed57fbc', variant: "subtitle-small" }, subheading)))), isSlotUsed$1(this.el, "adornment") && (hAsync("div", { key: 'e43dadfb629c3a5dd28a6b1c46555dfade8d498f', class: "adornment" }, hAsync("slot", { key: 'b8f63d79ffaff166020d643497ad8b92f4580a0e', name: "adornment" }))), isSlotUsed$1(this.el, "image-mid") && (hAsync("div", { key: '1077bd869310c629a1b154e031dbed14559798b7', class: "image-mid" }, hAsync("slot", { key: 'f598c5ddfb5a591f3988c49b3f7be1e84fb87552', name: "image-mid" }))), (message || isSlotUsed$1(this.el, "message")) && (hAsync("div", { key: '08d46a26aac3972495cc7724ff8fbd55cc90a31c', class: "card-message" }, message && (hAsync("ic-typography", { key: '50c632b1ac9fed137e668ceec4f1fe35f9a2cf99', variant: "body" }, message)), isSlotUsed$1(this.el, "message") && hAsync("slot", { key: '2b971484237d985d4318993477d39b5f6d1e8f0d', name: "message" }))), (isSlotUsed$1(this.el, "interaction-controls") || expandable) && (hAsync("div", { key: '3e7f6bc8df858349187486fb9e9ebec56d42d0a5', class: "interaction-area" }, hAsync("div", { key: '4fd96e05aa6daef84d93d8f1da4dd80b2d349623', class: "interaction-controls" }, hAsync("slot", { key: '2f690307f464bb1f710344723b2f76078334ea30', name: "interaction-controls" })), expandable && (hAsync("ic-tooltip", { key: '9880fae8f9a52bdfe1820df5cbfc92af33080e2a', id: "ic-tooltip-expand-button", label: "Toggle expandable area", silent: true }, hAsync("button", { key: '0d1656a001fa061ebae17757a560ba11dae90339', class: {
|
6028
5951
|
"toggle-button": true,
|
6029
5952
|
[`toggle-button-${this.areaExpanded ? "expanded" : "closed"}`]: true,
|
6030
|
-
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed$1(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: '
|
5953
|
+
}, "aria-label": "Toggle expandable area", "aria-expanded": `${this.areaExpanded}`, "aria-controls": this.areaExpanded ? "expanded-content-area" : null, onClick: this.toggleExpanded, innerHTML: chevronIcon }))))), isSlotUsed$1(this.el, "expanded-content") && this.areaExpanded && (hAsync("div", { key: 'dc55cb4419b35c1f5f6b771cf5dc62c1d77626a7', class: "expanded-content", id: "expanded-content-area" }, hAsync("slot", { key: '3b0d0c87d0467ffde6e62ed49b9116280a6c7108', name: "expanded-content" }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'f51d29f2b88429b0e0024c6f9ba34abaf4e1a6d1', name: "badge" }))));
|
6031
5954
|
}
|
6032
5955
|
get el() { return getElement(this); }
|
6033
5956
|
static get watchers() { return {
|
@@ -6092,6 +6015,10 @@ class Checkbox {
|
|
6092
6015
|
* The text to be displayed when dynamic.
|
6093
6016
|
*/
|
6094
6017
|
this.dynamicText = "This selection requires additional answers";
|
6018
|
+
/**
|
6019
|
+
* If `true`, the label will be hidden and the required label value will be applied as an aria-label.
|
6020
|
+
*/
|
6021
|
+
this.hideLabel = false;
|
6095
6022
|
/**
|
6096
6023
|
* If `true`, the indeterminate state will be displayed when checked.
|
6097
6024
|
*/
|
@@ -6106,14 +6033,13 @@ class Checkbox {
|
|
6106
6033
|
*/
|
6107
6034
|
this.theme = "inherit";
|
6108
6035
|
/**
|
6109
|
-
*
|
6036
|
+
* The value for the checkbox.
|
6110
6037
|
*/
|
6111
|
-
this.
|
6038
|
+
this.value = "";
|
6112
6039
|
this.handleClick = () => {
|
6113
6040
|
this.checked = !this.checked;
|
6114
|
-
this.displayIndeterminate =
|
6115
|
-
|
6116
|
-
: this.indeterminate && this.checked;
|
6041
|
+
this.displayIndeterminate =
|
6042
|
+
!this.nativeIndeterminateBehaviour && this.indeterminate && this.checked;
|
6117
6043
|
this.icCheck.emit();
|
6118
6044
|
};
|
6119
6045
|
this.handleFormReset = () => {
|
@@ -6124,25 +6050,24 @@ class Checkbox {
|
|
6124
6050
|
removeDisabledFalse$1(this.disabled, this.el);
|
6125
6051
|
}
|
6126
6052
|
watchIndeterminateHandler() {
|
6127
|
-
this.displayIndeterminate =
|
6128
|
-
|
6129
|
-
: this.indeterminate && !!this.checked;
|
6053
|
+
this.displayIndeterminate =
|
6054
|
+
this.indeterminate && (this.nativeIndeterminateBehaviour || this.checked);
|
6130
6055
|
}
|
6131
6056
|
componentWillLoad() {
|
6132
6057
|
removeDisabledFalse$1(this.disabled, this.el);
|
6133
6058
|
addFormResetListener$1(this.el, this.handleFormReset);
|
6134
|
-
const
|
6135
|
-
if (
|
6059
|
+
const { parentElement } = this.el;
|
6060
|
+
if ((parentElement === null || parentElement === void 0 ? void 0 : parentElement.tagName) === "IC-CHECKBOX-GROUP") {
|
6061
|
+
const { name, label, size } = parentElement;
|
6136
6062
|
if (!this.name)
|
6137
|
-
this.name =
|
6138
|
-
this.
|
6063
|
+
this.name = name;
|
6064
|
+
if (!this.size)
|
6065
|
+
this.size = size;
|
6066
|
+
this.groupLabel = label;
|
6139
6067
|
}
|
6140
6068
|
}
|
6141
6069
|
componentDidLoad() {
|
6142
|
-
onComponentRequiredPropUndefined$1([
|
6143
|
-
{ prop: this.label, propName: "label" },
|
6144
|
-
{ prop: this.value, propName: "value" },
|
6145
|
-
], "Checkbox");
|
6070
|
+
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Checkbox");
|
6146
6071
|
}
|
6147
6072
|
componentDidRender() {
|
6148
6073
|
if (this.additionalFieldDisplay === "static") {
|
@@ -6167,28 +6092,27 @@ class Checkbox {
|
|
6167
6092
|
* Sets focus on the checkbox.
|
6168
6093
|
*/
|
6169
6094
|
async setFocus() {
|
6170
|
-
var _a
|
6171
|
-
(
|
6095
|
+
var _a;
|
6096
|
+
(_a = this.checkboxEl) === null || _a === void 0 ? void 0 : _a.focus();
|
6172
6097
|
}
|
6173
6098
|
render() {
|
6174
|
-
const { additionalFieldDisplay, checked, disabled, dynamicText, el, form,
|
6175
|
-
const id = `ic-checkbox-${
|
6176
|
-
const
|
6177
|
-
.size;
|
6099
|
+
const { additionalFieldDisplay, checked, disabled, displayIndeterminate, dynamicText, el, form, groupLabel, handleClick, hideLabel, label, name, size, theme, value, } = this;
|
6100
|
+
const id = `ic-checkbox-${label}-${groupLabel}`.replace(/ /g, "-");
|
6101
|
+
const isDynamicAdditionalField = additionalFieldDisplay === "dynamic";
|
6178
6102
|
checked
|
6179
|
-
? renderHiddenInput$1(
|
6103
|
+
? renderHiddenInput$1(el, value, name, disabled)
|
6180
6104
|
: removeHiddenInput(el);
|
6181
|
-
return (hAsync(Host, { key: '
|
6182
|
-
"ic-checkbox-disabled":
|
6183
|
-
[`ic-checkbox-${size
|
6105
|
+
return (hAsync(Host, { key: '0d58d68ec535b1c9e0157aff61052cefa02a21c8', class: {
|
6106
|
+
"ic-checkbox-disabled": disabled,
|
6107
|
+
[`ic-checkbox-${size}`]: !!size,
|
6184
6108
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6185
|
-
} }, hAsync("div", { key: '
|
6109
|
+
} }, hAsync("div", { key: 'b86da60abffa74001b84db5159ff8b0e2afd4aaa', class: "container" }, displayIndeterminate ? (hAsync("div", { class: "indeterminate-symbol" })) : (checked && (hAsync("svg", { class: "checkmark", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "fill-rule": "evenodd", "clip-rule": "evenodd" }, hAsync("title", null, "checkmark icon"), hAsync("path", { d: "M21 6.285l-11.16 12.733-6.84-6.018 1.319-1.49 5.341 4.686 9.865-11.196 1.475 1.285z" })))), hAsync("input", { key: '6d3e3805f3e9dcee22fab04e8a8bace142de8df8', role: "checkbox", class: {
|
6186
6110
|
checkbox: true,
|
6187
|
-
checked
|
6188
|
-
indeterminate:
|
6189
|
-
}, type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick:
|
6190
|
-
"additional-field-wrapper":
|
6191
|
-
} }, hAsync("slot", { key: '
|
6111
|
+
checked,
|
6112
|
+
indeterminate: displayIndeterminate,
|
6113
|
+
}, ref: (el) => (this.checkboxEl = el), type: "checkbox", name: name, id: id, value: value, disabled: disabled, checked: checked, indeterminate: displayIndeterminate, onClick: handleClick, form: form, "aria-label": hideLabel ? label : undefined }), !hideLabel && (hAsync("ic-typography", { key: '5f6303736627c301bcc855dc5376c26f7edfa1af', class: "checkbox-label", variant: "body" }, hAsync("label", { key: 'aaad8092830165c169d26461d523d61fea02c859', htmlFor: id }, label)))), isSlotUsed$1(el, "additional-field") && (hAsync("div", { key: '64a75739762fb8bb082983408eb97fae99ec616a', class: "dynamic-container", ref: (el) => (this.additionalFieldContainer = el) }, isDynamicAdditionalField && hAsync("div", { key: 'ec3d2e0518c07747e33ac3ede567f3246e07852f', class: "branch-corner" }), hAsync("div", { key: '348ef60f64d5ae8cbe208910c30a3c45e9b115d7' }, isDynamicAdditionalField && (hAsync("ic-typography", { key: 'e4942c3cdb030693a90da2b8f38da3fe6f7b5fe4', variant: "caption" }, hAsync("p", { key: '925c10247c2b2532755c1306f69ec5c4cf7537bd', class: "dynamic-text", "aria-live": "polite" }, dynamicText))), hAsync("div", { key: '0cf7e06e8e06aa2830c1040069f00e2dca6844f2', class: {
|
6114
|
+
"additional-field-wrapper": !isDynamicAdditionalField,
|
6115
|
+
} }, hAsync("slot", { key: 'f7b465d8706b73a608e1df76f0119f0ea3d08343', name: "additional-field" })))))));
|
6192
6116
|
}
|
6193
6117
|
static get delegatesFocus() { return true; }
|
6194
6118
|
get el() { return getElement(this); }
|
@@ -6207,14 +6131,14 @@ class Checkbox {
|
|
6207
6131
|
"dynamicText": [1, "dynamic-text"],
|
6208
6132
|
"form": [1],
|
6209
6133
|
"groupLabel": [1025, "group-label"],
|
6134
|
+
"hideLabel": [4, "hide-label"],
|
6210
6135
|
"indeterminate": [4],
|
6211
6136
|
"label": [1],
|
6212
6137
|
"name": [1025],
|
6213
6138
|
"nativeIndeterminateBehaviour": [4, "native-indeterminate-behaviour"],
|
6214
|
-
"size": [
|
6139
|
+
"size": [1025],
|
6215
6140
|
"theme": [1],
|
6216
6141
|
"value": [1],
|
6217
|
-
"hideLabel": [4, "hide-label"],
|
6218
6142
|
"initiallyChecked": [32],
|
6219
6143
|
"displayIndeterminate": [32],
|
6220
6144
|
"setFocus": [64]
|
@@ -6228,12 +6152,12 @@ class Checkbox {
|
|
6228
6152
|
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}";
|
6229
6153
|
var IcCheckboxGroupStyle0 = icCheckboxGroupCss;
|
6230
6154
|
|
6155
|
+
const CHECKBOX_SELECTOR = "ic-checkbox";
|
6231
6156
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
6232
6157
|
class CheckboxGroup {
|
6233
6158
|
constructor(hostRef) {
|
6234
6159
|
registerInstance(this, hostRef);
|
6235
6160
|
this.icChange = createEvent(this, "icChange", 7);
|
6236
|
-
this.checkboxSelector = "ic-checkbox";
|
6237
6161
|
/**
|
6238
6162
|
* If `true`, the checkbox group will be set to the disabled state.
|
6239
6163
|
*/
|
@@ -6271,7 +6195,7 @@ class CheckboxGroup {
|
|
6271
6195
|
removeDisabledFalse$1(this.disabled, this.el);
|
6272
6196
|
}
|
6273
6197
|
labelNameHandler(newValue, oldValue, propName) {
|
6274
|
-
Array.from(this.el.querySelectorAll(
|
6198
|
+
Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).forEach((checkbox) => {
|
6275
6199
|
if (propName === "label")
|
6276
6200
|
checkbox.groupLabel = newValue;
|
6277
6201
|
else if (checkbox.name === oldValue) {
|
@@ -6281,7 +6205,7 @@ class CheckboxGroup {
|
|
6281
6205
|
});
|
6282
6206
|
}
|
6283
6207
|
watchThemeHandler(newValue) {
|
6284
|
-
Array.from(this.el.querySelectorAll(
|
6208
|
+
Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).forEach((checkbox) => {
|
6285
6209
|
checkbox.theme = newValue;
|
6286
6210
|
});
|
6287
6211
|
}
|
@@ -6303,7 +6227,7 @@ class CheckboxGroup {
|
|
6303
6227
|
], "Checkbox Group");
|
6304
6228
|
}
|
6305
6229
|
selectHandler({ target }) {
|
6306
|
-
const checkedOptions = Array.from(this.el.querySelectorAll(
|
6230
|
+
const checkedOptions = Array.from(this.el.querySelectorAll(CHECKBOX_SELECTOR)).filter(({ checked, disabled }) => checked && !disabled);
|
6307
6231
|
this.icChange.emit({
|
6308
6232
|
value: checkedOptions.map(({ value }) => value),
|
6309
6233
|
checkedOptions: checkedOptions.map((opt) => {
|
@@ -6319,13 +6243,12 @@ class CheckboxGroup {
|
|
6319
6243
|
render() {
|
6320
6244
|
const { disabled, helperText, hideLabel, label, name, required, size, theme, validationStatus, validationText, } = this;
|
6321
6245
|
const describedBy = getInputDescribedByText$1(name, helperText !== "", validationStatus !== "");
|
6322
|
-
|
6246
|
+
const renderSRText = validationStatus === "error" || required || hideLabel;
|
6247
|
+
return (hAsync(Host, { key: '14f796e660bc12e04a7deebc288de1987112a5f9', class: {
|
6248
|
+
"ic-checkbox-group-disabled": !!disabled,
|
6323
6249
|
[`ic-checkbox-group-${size}`]: true,
|
6324
|
-
[`ic-checkbox-group-disabled`]: !!disabled,
|
6325
6250
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6326
|
-
} },
|
6327
|
-
? "screenReaderOnlyText"
|
6328
|
-
: ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: '4fb8b826e1bcd293c7952ecce033758f0cd16cc3' }, hAsync("ic-input-label", { key: 'c2e149bd304c9722fa874d489f0ed5141ce216fc', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }))), hAsync("div", { key: 'af7929cc1b1aa0cb68a4c154c2847d0eb1486726', class: "checkboxes-container" }, hAsync("slot", { key: 'da09cbc97224437899f4fd0ed9c9b79149b76963' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '2187e8455d81cfda15f962182f12c17180bba4c8', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
6251
|
+
} }, renderSRText && (hAsync("span", { key: 'ffe548e83ebbdb80220e20c469fb2c81f9dea8f3', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), hAsync("fieldset", { key: '3b6d7864c62969a582875afce0ba9baac6d17a85', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (hAsync("legend", { key: 'f7dd53b9c3a5bda90854e9033c90f9a65732498e' }, hAsync("ic-input-label", { key: '3781f0c225a7ac7a2c905d3d58130f7a53b10357', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }))), hAsync("div", { key: '48064a6c2137e78656c3187765d75123f0fd9ab5', class: "checkboxes-container" }, hAsync("slot", { key: '3322f03cf4dfb88b764da8d37555e89790bfa43c' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '18f9971669d4068210360d4cb49233d8fbb9c70c', for: name, ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
6329
6252
|
}
|
6330
6253
|
get el() { return getElement(this); }
|
6331
6254
|
static get watchers() { return {
|
@@ -6361,7 +6284,7 @@ var dismissIcon = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org
|
|
6361
6284
|
</svg>
|
6362
6285
|
`;
|
6363
6286
|
|
6364
|
-
const icChipCss = "/*! 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;max-width:100%;vertical-align:middle}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{padding:0 var(--ic-space-xs)}.chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}ic-tooltip:focus-within{z-index:1}.filled{--chip-bg-color:var(\n --chip-custom-color,\n var(--ic-chip-background-filled-default)\n );--ic-typography-color:var(\n --chip-custom-foreground-color,\n var(--ic-chip-label)\n );color:var(--chip-custom-foreground-color, var(--ic-chip-label))}.filled.disabled{--chip-bg-color:var(--ic-chip-background-filled-inactive)}:host(.ic-chip-dark-text){--chip-custom-foreground-color:var(--ic-architectural-black)}:host(.ic-chip-light-text){--chip-custom-foreground-color:var(--ic-architectural-white)}:host(.ic-chip-dark-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-dark-bg-hover)}:host(.ic-chip-dark-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-dark-bg-pressed)}:host(.ic-chip-light-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-light-bg-hover)}:host(.ic-chip-light-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-light-bg-pressed)}.outlined{color:var(--ic-chip-outline-label);border-color:var(--chip-custom-color, var(--ic-chip-outline));padding:calc(var(--ic-space-xxs));--ic-typography-color:var(--ic-chip-outline-label)}.outlined.disabled{border:var(--ic-border-disabled);border-color:var(--ic-chip-outline-inactive)}.chip.disabled ic-typography{--ic-typography-color:var(--ic-chip-label-inactive)}.dismiss-icon{border:none;border-radius:50%;padding:0;color:currentcolor;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}.dismiss-icon:focus{outline:var(--ic-hc-focus-outline)}.dismiss-icon[disabled]{pointer-events:none;color:var(--ic-chip-icon-inactive)}.icon{padding:var(--ic-space-xxxs);box-sizing:border-box}.icon,ic-tooltip{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chip.disabled path,.chip.disabled ::slotted(svg){fill:var(--ic-chip-icon-inactive)}.outlined.non-transparent{background-color:var(--ic-chip-outline-background)}:host .chip.hovered:not(:focus-within){background-image:linear-gradient(var(--chip-hover-bg) 0 0)}:host .chip:focus-within{background-image:linear-gradient(var(--chip-pressed-bg) 0 0)}@media (forced-colors: active){.chip{border:var(--ic-border-hc)}.chip.disabled{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.chip.disabled ic-typography{--ic-typography-color:GrayText}.chip.disabled path,.chip.disabled ::slotted(svg){fill:GrayText}.chip:focus-within{outline:none;border-color:Highlight}}";
|
6287
|
+
const icChipCss = "/*! 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;max-width:100%;vertical-align:middle}.chip{--chip-bg-color:transparent;--chip-hover-bg:var(--ic-chip-action-hover);--chip-pressed-bg:var(--ic-chip-action-pressed);display:flex;padding:var(--ic-space-xxs);font-size:0.875rem;border-radius:var(--ic-space-md);text-align:left;text-decoration:none;position:relative;background-color:var(--chip-bg-color);border:var(--ic-border-width) solid transparent;justify-content:space-between}@media (prefers-reduced-motion: no-preference){.chip{transition:var(--ic-easing-transition-fast)}}.chip.small{padding:var(--ic-space-xxxs);border-radius:calc(var(--ic-space-md) - var(--ic-space-xxxs))}.chip.large{padding:var(--ic-space-xs);border-radius:calc(var(--ic-space-md) + var(--ic-space-xxs))}.label{padding:0 var(--ic-space-xs)}.chip:focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);z-index:1}ic-tooltip:focus-within{z-index:1}.filled{--chip-bg-color:var(\n --chip-custom-color,\n var(--ic-chip-background-filled-default)\n );--ic-typography-color:var(\n --chip-custom-foreground-color,\n var(--ic-chip-label)\n );color:var(--chip-custom-foreground-color, var(--ic-chip-label))}.filled.disabled{--chip-bg-color:var(--ic-chip-background-filled-inactive)}:host(.ic-chip-dark-text){--chip-custom-foreground-color:var(--ic-architectural-black)}:host(.ic-chip-light-text){--chip-custom-foreground-color:var(--ic-architectural-white)}:host(.ic-chip-dark-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-dark-bg-hover)}:host(.ic-chip-dark-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-dark-bg-pressed)}:host(.ic-chip-light-text) .chip.filled.hovered:not(:focus-within){--chip-hover-bg:var(--ic-action-light-bg-hover)}:host(.ic-chip-light-text) .chip.filled:focus-within{--chip-pressed-bg:var(--ic-action-light-bg-pressed)}.outlined{color:var(--ic-chip-outline-label);border-color:var(--chip-custom-color, var(--ic-chip-outline));padding:calc(var(--ic-space-xxs));--ic-typography-color:var(--ic-chip-outline-label)}.outlined.disabled{border:var(--ic-border-disabled);border-color:var(--ic-chip-outline-inactive)}.chip.disabled ic-typography{--ic-typography-color:var(--ic-chip-label-inactive)}.dismiss-icon{border:none;border-radius:50%;padding:0;color:currentcolor;background:none;cursor:pointer;margin:var(--ic-space-xxxs);height:calc(var(--ic-space-lg) - var(--ic-space-xxs));width:calc(var(--ic-space-lg) - var(--ic-space-xxs))}.dismiss-icon:focus{outline:var(--ic-hc-focus-outline)}.dismiss-icon[disabled]{pointer-events:none;color:var(--ic-chip-icon-inactive)}.icon{padding:var(--ic-space-xxxs);box-sizing:border-box}.icon,ic-tooltip{width:var(--ic-space-lg);height:var(--ic-space-lg)}.chip.disabled path,.chip.disabled ::slotted(svg){fill:var(--ic-chip-icon-inactive)}.outlined.non-transparent{background-color:var(--ic-chip-outline-background)}:host .chip.hovered:not(:focus-within){background-image:linear-gradient(var(--chip-hover-bg) 0 0)}:host .chip:focus-within{background-image:linear-gradient(var(--chip-pressed-bg) 0 0)}.sr-only{position:absolute;left:-9999px}.sr-only:dir(rtl){right:-9999px}@media (forced-colors: active){.chip{border:var(--ic-border-hc)}.chip.disabled{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-color:GrayText}.chip.disabled ic-typography{--ic-typography-color:GrayText}.chip.disabled path,.chip.disabled ::slotted(svg){fill:GrayText}.chip:focus-within{outline:none;border-color:Highlight}}";
|
6365
6288
|
var IcChipStyle0 = icChipCss;
|
6366
6289
|
|
6367
6290
|
/**
|
@@ -6372,8 +6295,7 @@ class Chip {
|
|
6372
6295
|
constructor(hostRef) {
|
6373
6296
|
registerInstance(this, hostRef);
|
6374
6297
|
this.icDismiss = createEvent(this, "icDismiss", 7);
|
6375
|
-
this.
|
6376
|
-
this.customColorClass = "";
|
6298
|
+
this.foregroundColor = null;
|
6377
6299
|
this.hovered = false;
|
6378
6300
|
this.visible = true;
|
6379
6301
|
/**
|
@@ -6384,6 +6306,10 @@ class Chip {
|
|
6384
6306
|
* If `true`, the chip will have a close button at the end to dismiss it.
|
6385
6307
|
*/
|
6386
6308
|
this.dismissible = false;
|
6309
|
+
/**
|
6310
|
+
* The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.
|
6311
|
+
*/
|
6312
|
+
this.dismissLabel = "Dismiss";
|
6387
6313
|
/**
|
6388
6314
|
* The size of the chip.
|
6389
6315
|
*/
|
@@ -6401,10 +6327,6 @@ class Chip {
|
|
6401
6327
|
* The emphasis of the chip.
|
6402
6328
|
*/
|
6403
6329
|
this.variant = "filled";
|
6404
|
-
/**
|
6405
|
-
* The text in the dismiss button tooltip and aria label.
|
6406
|
-
*/
|
6407
|
-
this.dismissLabel = "Dismiss";
|
6408
6330
|
this.dismissAction = () => {
|
6409
6331
|
this.icDismiss.emit();
|
6410
6332
|
};
|
@@ -6414,23 +6336,16 @@ class Chip {
|
|
6414
6336
|
this.mouseLeaveHandler = () => {
|
6415
6337
|
this.hovered = false;
|
6416
6338
|
};
|
6417
|
-
this.setChipColour = () => {
|
6418
|
-
const colorRGBA = this.customColor ? convertToRGBA(this.customColor) : null;
|
6419
|
-
if (colorRGBA) {
|
6420
|
-
const { r, g, b, a } = colorRGBA;
|
6421
|
-
this.customColorClass =
|
6422
|
-
(r * 299 + g * 587 + b * 114) / 1000 > 133.3505
|
6423
|
-
? "ic-chip-dark-text"
|
6424
|
-
: "ic-chip-light-text";
|
6425
|
-
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
6426
|
-
}
|
6427
|
-
else {
|
6428
|
-
this.customColorClass = "";
|
6429
|
-
}
|
6430
|
-
};
|
6431
6339
|
}
|
6432
6340
|
customColorHandler() {
|
6433
|
-
this.
|
6341
|
+
const colorRGBA = this.customColor && convertToRGBA(this.customColor);
|
6342
|
+
if (!colorRGBA) {
|
6343
|
+
this.foregroundColor = null;
|
6344
|
+
return;
|
6345
|
+
}
|
6346
|
+
const { r, g, b, a } = colorRGBA;
|
6347
|
+
this.foregroundColor = getBrandForegroundAppearance((r * 299 + g * 587 + b * 114) / 1000);
|
6348
|
+
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
6434
6349
|
}
|
6435
6350
|
watchDisabledHandler() {
|
6436
6351
|
removeDisabledFalse$1(this.disabled, this.el);
|
@@ -6439,11 +6354,6 @@ class Chip {
|
|
6439
6354
|
removeDisabledFalse$1(this.disabled, this.el);
|
6440
6355
|
this.customColorHandler();
|
6441
6356
|
}
|
6442
|
-
componentWillRender() {
|
6443
|
-
if (isElInAGGrid(this.el)) {
|
6444
|
-
this.inAGGrid = true;
|
6445
|
-
}
|
6446
|
-
}
|
6447
6357
|
componentDidLoad() {
|
6448
6358
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Chip");
|
6449
6359
|
}
|
@@ -6454,23 +6364,24 @@ class Chip {
|
|
6454
6364
|
* Sets focus on the chip.
|
6455
6365
|
*/
|
6456
6366
|
async setFocus() {
|
6457
|
-
var _a
|
6458
|
-
(
|
6367
|
+
var _a;
|
6368
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
6459
6369
|
}
|
6460
6370
|
render() {
|
6461
|
-
const { label, variant, size, dismissible, visible, disabled, hovered, theme,
|
6462
|
-
|
6371
|
+
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
6372
|
+
const ariaLabel = `${label} chip`;
|
6373
|
+
return (hAsync(Host, { key: '9a61d8ecacb78fcdf17dbbaf32e1cf79de705d78', class: {
|
6463
6374
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6464
|
-
[
|
6465
|
-
} }, visible && (hAsync("div", { key: '
|
6375
|
+
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
6376
|
+
} }, visible && (hAsync("div", { key: '5cfa78f3d8647cf3f6a98649bfe583af89f3458f', class: {
|
6466
6377
|
chip: true,
|
6467
6378
|
[`${variant}`]: true,
|
6468
6379
|
[`${size}`]: true,
|
6469
|
-
disabled
|
6470
|
-
dismissible
|
6380
|
+
disabled,
|
6381
|
+
dismissible,
|
6471
6382
|
hovered,
|
6472
|
-
"non-transparent":
|
6473
|
-
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: '
|
6383
|
+
"non-transparent": variant === "outlined" && !transparentBackground,
|
6384
|
+
} }, isSlotUsed$1(this.el, "icon") && (hAsync("div", { key: 'd7f72306a186b66c4a215a3928655989870e34b3', class: "icon" }, hAsync("slot", { key: '71b8d9a59d43e0580e7f56c1977f2992ee582d95', name: "icon" }))), hAsync("ic-typography", { key: '46ba6cddc7c12f2c246cc2d23e6d403517ad54b3', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, hAsync("span", { key: '7e62d43da1b1d21a3b660839154aaaaedf96f935' }, label)), dismissible && (hAsync("ic-tooltip", { key: 'c82c6387a16c2cf5006710b1623a332a1f5f3122', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, hAsync("button", { key: '0411f0e6d7ce468a6f7a489e652240724dee0213', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: '31e71e22e0d9b8755a8bc483934aabcc4ccb9033', name: "badge" }))), dismissible && (hAsync("div", { key: 'c899f3ba330e9231e461b7869363ce85ff005b31', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
6474
6385
|
}
|
6475
6386
|
static get delegatesFocus() { return true; }
|
6476
6387
|
get el() { return getElement(this); }
|
@@ -6486,13 +6397,13 @@ class Chip {
|
|
6486
6397
|
"customColor": [1, "custom-color"],
|
6487
6398
|
"disabled": [4],
|
6488
6399
|
"dismissible": [4],
|
6400
|
+
"dismissLabel": [1, "dismiss-label"],
|
6489
6401
|
"label": [1],
|
6490
6402
|
"size": [1],
|
6491
6403
|
"theme": [1],
|
6492
6404
|
"transparentBackground": [4, "transparent-background"],
|
6493
6405
|
"variant": [1],
|
6494
|
-
"
|
6495
|
-
"customColorClass": [32],
|
6406
|
+
"foregroundColor": [32],
|
6496
6407
|
"hovered": [32],
|
6497
6408
|
"visible": [32],
|
6498
6409
|
"setFocus": [64]
|
@@ -6598,10 +6509,10 @@ class DataList {
|
|
6598
6509
|
if (size === "small") {
|
6599
6510
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
6600
6511
|
}
|
6601
|
-
return (hAsync(Host, { key: '
|
6512
|
+
return (hAsync(Host, { key: '6f83752c95bc937a1fcc825cfaefa57f3103b71d', class: {
|
6602
6513
|
"ic-data-list-small": size === "small",
|
6603
6514
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6604
|
-
} }, hAsync("div", { key: '
|
6515
|
+
} }, hAsync("div", { key: '1d2299d6bf8a13cba28b18d33ec8e1387c624cc5', class: "heading", id: "data-list-heading" }, hAsync("slot", { key: '2f8b5c7bbb30d4c11bc08947737c7c9d7f0e91ed', name: "heading" }, hAsync("ic-typography", { key: '7665e122d1da3e292abf459f0456e64c966eb65d', variant: "h3" }, heading))), hAsync("div", { key: '44be7746fb08b772fc9bb38cd673811026fe4092', class: "divider" }), hAsync("ul", { key: '8aa11aeada0518d6d9db18f3c962863e1414b02b', "aria-labelledby": "data-list-heading", class: "rows" }, hAsync("slot", { key: '18635edff92562810f11056cb750615884e28efe' }))));
|
6605
6516
|
}
|
6606
6517
|
get el() { return getElement(this); }
|
6607
6518
|
static get style() { return IcDataListStyle0; }
|
@@ -6691,12 +6602,12 @@ class DataRow {
|
|
6691
6602
|
}
|
6692
6603
|
render() {
|
6693
6604
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
6694
|
-
return (hAsync(Host, { key: '
|
6605
|
+
return (hAsync(Host, { key: '572e916da4b05c25ef2d30d186e80b08f3dfb5b5', class: {
|
6695
6606
|
["ic-data-row-small"]: size === "small",
|
6696
6607
|
["breakpoint-medium"]: listSize === "m",
|
6697
6608
|
["breakpoint-xs"]: listSize === "xs",
|
6698
6609
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
6699
|
-
}, role: "listitem" }, hAsync("div", { key: '
|
6610
|
+
}, role: "listitem" }, hAsync("div", { key: '3fd5751be8c21404dfbe1c37d121103d7bc32ec5', class: "data" }, hAsync("div", { key: '9dfd49f76340e059ad39cda8f7a28d7d51edeb5a', class: "text-cells" }, (isSlotUsed$1(el, "label") || label) && renderCellContent("label"), (isSlotUsed$1(el, "value") || value) && renderCellContent("value")), hasEndComponent && (hAsync("div", { key: '0b64f2937db81ddb2aa12ea4a3d6a19ba69c925b', class: "end-component" }, hAsync("slot", { key: 'fe70b486ca8ccc5f409fe805a772bd0110752a75', name: "end-component" })))), hAsync("div", { key: '286f657395d2d77dd8d2783a395d02f897fd361b', class: "divider" })));
|
6700
6611
|
}
|
6701
6612
|
get el() { return getElement(this); }
|
6702
6613
|
static get style() { return IcDataRowStyle0; }
|
@@ -7069,7 +6980,7 @@ class DataTable {
|
|
7069
6980
|
};
|
7070
6981
|
this.createUpdatingIndicator = () => {
|
7071
6982
|
const { description, max, min, progress, monochrome } = this.updatingOptions || {};
|
7072
|
-
return (hAsync("th", { colSpan: this.columns.length, 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" })));
|
6983
|
+
return (hAsync("th", { colSpan: this.columns.length + (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" })));
|
7073
6984
|
};
|
7074
6985
|
this.setRowHeight = (height) => pxToRem(`${height * this.DENSITY_HEIGHT_MULTIPLIER[this.density] -
|
7075
6986
|
this.DENSITY_PADDING_HEIGHT_DIFF[this.density]}px`);
|
@@ -8030,22 +7941,22 @@ class DataTable {
|
|
8030
7941
|
? "deselect all"
|
8031
7942
|
: "select all remaining"
|
8032
7943
|
: "select all";
|
8033
|
-
return (hAsync(Host, { key: '
|
7944
|
+
return (hAsync(Host, { key: 'b1a8a027c223f8ec8a82eaeadc6fcd584bcadaa3', style: Object.assign({}, this.setTableDimensions()), class: { [`ic-theme-${theme}`]: theme !== "inherit" } }, hAsync("div", { key: '7abde36f7f17075a3f25632a14090fe85c6c610d', class: "table-container" }, isSlotUsed(this.el, "title-bar") && hAsync("slot", { key: '8ef1e2c34b7a0aed1558fb393dda3c869b1fed1e', name: "title-bar" }), hAsync("div", { key: '39984060ae40b37df7a84ff46f1d73a355ba491b', class: {
|
8034
7945
|
["table-row-container"]: true,
|
8035
7946
|
scrollable,
|
8036
|
-
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '
|
7947
|
+
}, tabIndex: scrollable ? 0 : undefined, onScroll: updateScrollOffset }, hAsync("table", { key: '7c7fe1ce4ff82644f52325129f392b5d6dfb7635', style: {
|
8037
7948
|
"--table-layout": tableLayout,
|
8038
|
-
} }, hAsync("caption", { key: '
|
7949
|
+
} }, hAsync("caption", { key: 'de772f10cbaa802c0df5be9225312a946b64fdaa', class: "table-caption" }, caption), !hideColumnHeaders && (hAsync("thead", { key: '5e41deeb29ab3a0f4b2daf9a17b6ed0cd2a756e7', class: {
|
8039
7950
|
["column-header-sticky"]: stickyColumnHeaders,
|
8040
7951
|
["column-header-overlay"]: stickyColumnHeaders && scrollOffset !== 0,
|
8041
|
-
} }, hAsync("tr", { key: '
|
7952
|
+
} }, hAsync("tr", { key: '93b3e712a034c666d90329bcd0c9e05d64f2633b' }, rowSelection && data && (hAsync("th", { key: '38be7fab691d5cf1db9c817134dc2fa64b28073e', class: {
|
8042
7953
|
"column-header": true,
|
8043
7954
|
"checkbox-cell": true,
|
8044
7955
|
"updating-state-headers": updating && !loading,
|
8045
7956
|
[`table-density-${density}`]: this.notDefaultDensity(),
|
8046
|
-
} }, hAsync("div", { key: '
|
7957
|
+
} }, hAsync("div", { key: 'ff716f89433450095aad287521f76e5bfc630646', class: "checkbox-wrapper" }, hAsync("ic-checkbox", { key: '88b6dbb7c0320233ef273cc23951e7b347955e79', 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 &&
|
8047
7958
|
!loading &&
|
8048
|
-
(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: '
|
7959
|
+
(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: '6f01be0ef7e54bf99cae567dca5cb75c271d2a6f', "aria-live": "assertive", class: "sr-only" }, this.renderAriaLiveLoading()), this.renderLoadingIndicator(loading, loadingOptions), (showPagination || isSlotUsed(this.el, "pagination-bar")) && (hAsync("div", { key: '0d01727d838b4f4e5cce597bbbebb14721904f25', 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, 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: 'c73c4ffe5a0633bce3ccf116a69e3007342b27af', class: "screen-reader-sort-text", "aria-live": "polite" }, sortedColumnOrder !== "unsorted" && sortedColumn
|
8049
7960
|
? `${((_b = columns.find((col) => col.key === sortedColumn)) === null || _b === void 0 ? void 0 : _b.title) ||
|
8050
7961
|
sortedColumn} sorted ${sortedColumnOrder}`
|
8051
7962
|
: "table unsorted")))));
|
@@ -11066,7 +10977,7 @@ class Dialog {
|
|
11066
10977
|
}
|
11067
10978
|
render() {
|
11068
10979
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
11069
|
-
return (hAsync(Host, { key: '
|
10980
|
+
return (hAsync(Host, { key: '11ce388b78e337682fcd54494a076789d488b86b', class: {
|
11070
10981
|
"ic-dialog-hidden": !dialogRendered,
|
11071
10982
|
"ic-dialog-fade-in": fadeIn,
|
11072
10983
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -11266,11 +11177,11 @@ class EmptyState {
|
|
11266
11177
|
}
|
11267
11178
|
render() {
|
11268
11179
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
11269
|
-
return (hAsync(Host, { key: '
|
11180
|
+
return (hAsync(Host, { key: '16659f35d2b14d9a5e32fe6c61619fbafdf58f53', class: {
|
11270
11181
|
[`ic-empty-state-${aligned}`]: true,
|
11271
11182
|
[`image-${imageSize}`]: isSlotUsed$1(this.el, "image"),
|
11272
11183
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
11273
|
-
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: '
|
11184
|
+
} }, isSlotUsed$1(this.el, "image") && hAsync("slot", { key: 'ccc8a2daf0041d9dd5e611d3b60c96820271745b', name: "image" }), hAsync("div", { key: 'ab68dff198b63394d890399ec53b9befbb70f222' }, hAsync("slot", { key: 'fe99ebbfe6b9c899d4b1fb5737df268e0bc38bb4', name: "heading" }, hAsync("ic-typography", { key: 'eea6eb657e09159b27935e16864961b95387a3d6', variant: "h4", class: "empty-state-heading" }, heading)), hAsync("slot", { key: 'ca04ac75d72fc5864ed7821bf9d16c8999eac3aa', name: "subheading" }, hAsync("ic-typography", { key: '257a4f73c4fb3577e4c1653607a492b4f4d18470', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), hAsync("slot", { key: 'f0efda6128d1b5a5f2b280faf23940b0832e3121', name: "body" }, hAsync("ic-typography", { key: '128849e7a458b1ff7b51079eeb9f6967df88cef1', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '22cf30fd1f3636fb3344689c4435b59d4148bb5f', class: "action-area" }, hAsync("slot", { key: 'c4e187603beb9b2291c9e038202ff651d4decfff', name: "actions" })))));
|
11274
11185
|
}
|
11275
11186
|
get el() { return getElement(this); }
|
11276
11187
|
static get style() { return IcEmptyStateStyle0; }
|
@@ -11463,12 +11374,12 @@ class FooterLink {
|
|
11463
11374
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
11464
11375
|
const { small, grouped } = footerConfig;
|
11465
11376
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
11466
|
-
return (hAsync(Host, { key: '
|
11377
|
+
return (hAsync(Host, { key: 'b093247260ef7378ef3aa666029e463641eb20c0', class: {
|
11467
11378
|
"footer-link": true,
|
11468
11379
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
11469
11380
|
[`footer-link-${this.foregroundColor}`]: true,
|
11470
11381
|
"footer-logo-link": isLogoLink,
|
11471
|
-
}, role: "listitem" }, hAsync("ic-link", { key: '
|
11382
|
+
}, role: "listitem" }, hAsync("ic-link", { key: '79ac221357a96ca920f68609bb390a30f53be256', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, hAsync("slot", { key: '06182bca4f4268ca01466a411a8de43671fbea24' }))));
|
11472
11383
|
}
|
11473
11384
|
static get delegatesFocus() { return true; }
|
11474
11385
|
get el() { return getElement(this); }
|
@@ -11643,17 +11554,17 @@ class Hero {
|
|
11643
11554
|
"background-position": scrollFactor,
|
11644
11555
|
};
|
11645
11556
|
}
|
11646
|
-
return (hAsync(Host, { key: '
|
11557
|
+
return (hAsync(Host, { key: 'e03ade9bdd2567cd7ab8c1072bbdd90b3d75e3d8', class: {
|
11647
11558
|
[`ic-hero-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
11648
11559
|
["has-background-image"]: backgroundImage !== undefined,
|
11649
11560
|
["ic-hero-small"]: size === "small",
|
11650
11561
|
["secondary-heading"]: !!secondaryHeading,
|
11651
|
-
}, style: style }, hAsync("ic-section-container", { key: '
|
11562
|
+
}, style: style }, hAsync("ic-section-container", { key: 'af3bd63ec96401bf7db7238c8ceb5f2c867f4a0b', aligned: aligned, fullHeight: true, class: "section-container" }, hAsync("div", { key: '8a37d137f390c9203973349f4fc3c2d2616045a9', class: {
|
11652
11563
|
["left-container"]: true,
|
11653
11564
|
["left-container-full-width"]: this.leftContentFullWidth,
|
11654
|
-
} }, hAsync("div", { key: '
|
11565
|
+
} }, hAsync("div", { key: 'a5796632e455cafaa95e2d03a7a653c04362aad6', class: "heading" }, hAsync("slot", { key: '48c41d241497410ecd63ceccd3de26e350b1261d', name: "heading" }, hAsync("ic-typography", { key: '6a6a601125d672f0ccd9c83dc51a016dd15e3e8d', variant: size === "small" ? "h2" : "h1", class: {
|
11655
11566
|
["heading-bottom-spacing"]: size !== "small",
|
11656
|
-
} }, hAsync("h2", { key: '
|
11567
|
+
} }, hAsync("h2", { key: 'c467063d6438bb2cc0ce9c04dd73408c184193c2' }, heading)))), hAsync("div", { key: '677298e8979a2220a3c6f468476c1f2b1777a3af', class: "subheading" }, hAsync("slot", { key: 'e2a55ff9eb1373c7b2c598909bee840a9224d606', name: "subheading" }, hAsync("ic-typography", { key: '6fbfaad27a0439f6e0bf469757a1238e307683ac', variant: "body" }, subheading))), hAsync("div", { key: '423aafd1dc41ca03887a59730e5880e23e2964b6', class: "interaction-container" }, hAsync("slot", { key: '186057e873764afda68fad740fb8cb2826071b11', name: "interaction" }))), (isPropDefined$1(secondaryHeading) || this.rightContent) && (hAsync("div", { key: '93910106562c1fc044d4a2a8126ff272905a34bf', class: "right-container" }, hAsync("slot", { key: 'e801d684ed24de1e7138b6edb525e288c0461d60', name: "secondary" }, secondaryHeading && (hAsync("div", { key: 'b602ea433de5de2d04522ac0f448c0422e886faa', class: "secondary-container" }, hAsync("div", { key: 'd538d984f09bc748dc7c23599439bf7eba85f830', class: "secondary-heading" }, hAsync("ic-typography", { key: '68d89508c9660f675ed35c0fa18f6cfde2cb5288', variant: "h4" }, hAsync("h3", { key: '07285a037d0bfb1b397d9b0b96511804c7afc464' }, secondaryHeading))), hAsync("div", { key: '6187e9026f1526f5c5d5c5e62bc1360fb869ef12', class: "secondary-subheading" }, hAsync("ic-typography", { key: '6172800b84a3628d472b0cf7a1c3b52ff41a0aec', variant: "subtitle-small" }, secondarySubheading))))))))));
|
11657
11568
|
}
|
11658
11569
|
get el() { return getElement(this); }
|
11659
11570
|
static get style() { return IcHeroStyle0; }
|
@@ -11844,22 +11755,22 @@ class HorizontalScroll {
|
|
11844
11755
|
}
|
11845
11756
|
render() {
|
11846
11757
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
11847
|
-
return (hAsync(Host, { key: '
|
11758
|
+
return (hAsync(Host, { key: '329d00bc4e7ebfab434cb41dd32e919820c5adb5', class: {
|
11848
11759
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
11849
11760
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum$1.Dark,
|
11850
11761
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum$1.Light,
|
11851
11762
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
11852
|
-
} }, hAsync("div", { key: '
|
11763
|
+
} }, hAsync("div", { key: 'ed231bf1fcd68399e29e790026b377bf8f96a14e', "aria-hidden": "true", class: {
|
11853
11764
|
["scroll-container-left"]: true,
|
11854
11765
|
["hidden"]: !itemOverflow,
|
11855
11766
|
["disabled"]: firstItemVisible,
|
11856
|
-
}, role: "tab" }, hAsync("ic-button", { key: '
|
11767
|
+
}, role: "tab" }, hAsync("ic-button", { key: 'c34f45cb44e242939985f792a21e482a11078fba', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
11857
11768
|
? "dark"
|
11858
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: '
|
11769
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), hAsync("span", { key: 'c5b52e4cfa655f8dc499e69da531870f4e4fe216', class: "scroll-splitter-left" })), hAsync("slot", { key: '8478dc63668ed2e842182c47e9a3b27b77ac642f' }), hAsync("div", { key: 'b9b0e21e69a40f7afda403db3db8b983257240c0', "aria-hidden": "true", class: {
|
11859
11770
|
["scroll-container-right"]: true,
|
11860
11771
|
["hidden"]: !itemOverflow,
|
11861
11772
|
["disabled"]: lastItemVisible,
|
11862
|
-
}, role: "tab" }, hAsync("span", { key: '
|
11773
|
+
}, role: "tab" }, hAsync("span", { key: '909936dddf54502bb1bdc3fdfdf36d59b5582238', class: "scroll-splitter-right" }), hAsync("ic-button", { key: '4e9093a9da1b3e387933dfc2495f1279bb7ad180', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
11863
11774
|
? "dark"
|
11864
11775
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
11865
11776
|
}
|
@@ -11934,15 +11845,15 @@ class InputComponentContainer {
|
|
11934
11845
|
}
|
11935
11846
|
render() {
|
11936
11847
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
11937
|
-
return (hAsync(Host, { key: '
|
11848
|
+
return (hAsync(Host, { key: '86271007106caa930e823cd2a9b9242670a1d2c1', class: {
|
11938
11849
|
[`ic-input-component-container-${size}`]: true,
|
11939
11850
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
11940
11851
|
"ic-input-component-container-disabled": !!disabled,
|
11941
11852
|
"ic-input-component-container-readonly": !!readonly,
|
11942
11853
|
"ic-input-component-container-multiline": !!multiLine,
|
11943
11854
|
"ic-input-component-container-full-width": !!fullWidth,
|
11944
|
-
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '
|
11945
|
-
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '
|
11855
|
+
}, "aria-disabled": disabled ? "true" : null }, hAsync("div", { key: '2b8e64e7cc2d78b34b816b080f7e5856b4aef254', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (hAsync("div", { key: '738e1d776664a7971bd97f36a68b8193849178ae', class: "icon-container" }, hAsync("slot", { key: 'c6d5fa181367e1988b3e454b06c01345afa393ff', name: "left-icon" }))), hAsync("slot", { key: '970ccdc08abd4dbf84248cc5708ab09ecbcbc0ae' }), validationInline &&
|
11856
|
+
validationStatus === IcInformationStatus$1.Success && (hAsync("span", { key: '6c7cbd9c69c11a8688972039ba519829805d3ab7', class: "inline-success", innerHTML: successIcon })))));
|
11946
11857
|
}
|
11947
11858
|
get el() { return getElement(this); }
|
11948
11859
|
static get watchers() { return {
|
@@ -11983,11 +11894,11 @@ class InputContainer {
|
|
11983
11894
|
this.readonly = false;
|
11984
11895
|
}
|
11985
11896
|
render() {
|
11986
|
-
return (hAsync(Host, { key: '
|
11897
|
+
return (hAsync(Host, { key: 'ffa7ae6f683f172205085d3ade5af4ed2b665f5e' }, hAsync("div", { key: 'e010e17e975c12a26c9ae66cb604ca561882901b', class: {
|
11987
11898
|
["component-container"]: true,
|
11988
11899
|
["disabled"]: !!this.disabled,
|
11989
11900
|
["readonly"]: !!this.readonly,
|
11990
|
-
} }, hAsync("slot", { key: '
|
11901
|
+
} }, hAsync("slot", { key: '202931f1bc8d2ab341753c23464e266fd899a15d' }))));
|
11991
11902
|
}
|
11992
11903
|
static get style() { return IcInputContainerStyle0; }
|
11993
11904
|
static get cmpMeta() { return {
|
@@ -12044,18 +11955,18 @@ class InputLabel {
|
|
12044
11955
|
render() {
|
12045
11956
|
const { disabled, readonly, label, required, helperText, status, hideLabel, useLabelTag, } = this;
|
12046
11957
|
const labelText = required ? label + " *" : label;
|
12047
|
-
return (hAsync(Host, { key: '
|
11958
|
+
return (hAsync(Host, { key: '324edfe4443673e3c50afaf6abe1507dddf8c5a1', class: {
|
12048
11959
|
"ic-input-label-disabled": !!disabled,
|
12049
11960
|
"ic-input-label-readonly": readonly,
|
12050
11961
|
"with-helper": helperText !== "",
|
12051
|
-
} }, !hideLabel && (hAsync("ic-typography", { key: '
|
11962
|
+
} }, !hideLabel && (hAsync("ic-typography", { key: 'cc4776d1421cf7b93ff5bb5c0b148c82d9c42ef4', variant: "label", class: {
|
12052
11963
|
"readonly-label": readonly,
|
12053
11964
|
"error-label": status === "error" && !(readonly || disabled),
|
12054
|
-
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (hAsync("ic-typography", { key: '
|
11965
|
+
} }, readonly || !useLabelTag ? (`${labelText}`) : (hAsync("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (hAsync("ic-typography", { key: '8ccf12c8a4430108018f4ce1097359dbd23baefe', variant: "caption", class: {
|
12055
11966
|
helpertext: true,
|
12056
11967
|
"helpertext-normal": !disabled && !readonly,
|
12057
11968
|
"helpertext-readonly": readonly,
|
12058
|
-
} }, hAsync("span", { key: '
|
11969
|
+
} }, hAsync("span", { key: 'e6a63927e7da03f64b50f5b65be1eb63410f8dab', id: this.for && getInputHelperTextID$1(this.for) }, helperText)))));
|
12059
11970
|
}
|
12060
11971
|
static get style() { return IcInputLabelStyle0; }
|
12061
11972
|
static get cmpMeta() { return {
|
@@ -12111,13 +12022,13 @@ class InputValidation {
|
|
12111
12022
|
render() {
|
12112
12023
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
12113
12024
|
const displayIcon = status !== "" ? icon[status] : "";
|
12114
|
-
return (hAsync(Host, { key: '
|
12025
|
+
return (hAsync(Host, { key: 'f61832a182b954a8b114547acd18ce38576daf06', class: {
|
12115
12026
|
[`ic-input-validation-${status}`]: status !== "",
|
12116
12027
|
"ic-input-validation-full-width": !!fullWidth,
|
12117
|
-
} }, displayIcon !== "" && (hAsync("span", { key: '
|
12028
|
+
} }, displayIcon !== "" && (hAsync("span", { key: '2d0766ad790827b8757354c2dc3d29e3aa9a5f71', class: {
|
12118
12029
|
"status-icon": true,
|
12119
12030
|
[`icon-${status}`]: true,
|
12120
|
-
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: '
|
12031
|
+
}, innerHTML: displayIcon })), hAsync("ic-typography", { key: 'b1a98a5b7fd18ab96cde1ff555410f35f76a66e2', variant: "caption", class: "statustext" }, hAsync("span", { key: '5306d723ea7527eb997d778e82fbe10e00af7852', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID$1(this.for) }, message)), hAsync("slot", { key: 'a7e3c126ac89a1c616a327da99b8324df7c4464e', name: "validation-message-adornment" })));
|
12121
12032
|
}
|
12122
12033
|
get el() { return getElement(this); }
|
12123
12034
|
static get style() { return IcInputValidationStyle0; }
|
@@ -12174,6 +12085,9 @@ class Link {
|
|
12174
12085
|
});
|
12175
12086
|
};
|
12176
12087
|
}
|
12088
|
+
watchDownloadHandler() {
|
12089
|
+
this.updateDownload();
|
12090
|
+
}
|
12177
12091
|
componentWillLoad() {
|
12178
12092
|
this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);
|
12179
12093
|
this.updateTheme();
|
@@ -12209,6 +12123,18 @@ class Link {
|
|
12209
12123
|
: IcBrandForegroundEnum$1.Light;
|
12210
12124
|
}
|
12211
12125
|
}
|
12126
|
+
updateDownload() {
|
12127
|
+
var _a;
|
12128
|
+
const element = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("a");
|
12129
|
+
if (element) {
|
12130
|
+
if (this.download) {
|
12131
|
+
element.setAttribute("download", this.download === true ? "" : this.download);
|
12132
|
+
}
|
12133
|
+
else {
|
12134
|
+
element.removeAttribute("download");
|
12135
|
+
}
|
12136
|
+
}
|
12137
|
+
}
|
12212
12138
|
hasRouterSlot() {
|
12213
12139
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
12214
12140
|
if (this.routerSlot) {
|
@@ -12218,16 +12144,19 @@ class Link {
|
|
12218
12144
|
}
|
12219
12145
|
render() {
|
12220
12146
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
12221
|
-
return (hAsync(Host, { key: '
|
12147
|
+
return (hAsync(Host, { key: 'b554bf4f2fc16dd66f7d393ae4813fe10c9a16f8', class: {
|
12222
12148
|
["ic-link"]: true,
|
12223
12149
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12224
12150
|
["ic-link-monochrome"]: !!monochrome,
|
12225
12151
|
} }, this.hasRouterSlot() ? (hAsync("slot", { name: "router-item" })) : (hAsync("a", Object.assign({ class: {
|
12226
12152
|
["link"]: !!href,
|
12227
|
-
}, download: download !==
|
12153
|
+
}, download: download !== true ? download : "", href: href, hrefLang: hreflang, referrerPolicy: referrerpolicy, rel: rel, target: target, tabindex: href ? "0" : "-1" }, this.inheritedAttributes, { part: "link" }), hAsync("slot", null), target === "_blank" && (hAsync("span", { class: "ic-link-open-in-new-icon", innerHTML: OpenInNew }))))));
|
12228
12154
|
}
|
12229
12155
|
static get delegatesFocus() { return true; }
|
12230
12156
|
get el() { return getElement(this); }
|
12157
|
+
static get watchers() { return {
|
12158
|
+
"download": ["watchDownloadHandler"]
|
12159
|
+
}; }
|
12231
12160
|
static get style() { return IcLinkStyle0; }
|
12232
12161
|
static get cmpMeta() { return {
|
12233
12162
|
"$flags$": 25,
|
@@ -12456,15 +12385,15 @@ class LoadingIndicator {
|
|
12456
12385
|
render() {
|
12457
12386
|
const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
|
12458
12387
|
const { x, y, r } = this.setCircleXY();
|
12459
|
-
return (hAsync(Host, { key: '
|
12388
|
+
return (hAsync(Host, { key: 'af8aecb7e2feb45574ce1dbce238e24ece0a7c14', class: {
|
12460
12389
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
12461
12390
|
"ic-loading-indicator-label": !!label,
|
12462
12391
|
"ic-loading-indicator-full-width": !!fullWidth,
|
12463
12392
|
"inner-label": !!innerLabel,
|
12464
12393
|
"ic-loading-indicator-monochrome": !!monochrome,
|
12465
|
-
} }, hAsync("div", { key: '
|
12394
|
+
} }, hAsync("div", { key: '46a3bbc13400779a3aa92324f84b2a0515a34a64', class: "ic-loading-container", part: "ic-loading-container" }, hAsync("div", { key: 'ff16f2f3f71e2338834eb1852f5b362332517a09', ref: (el) => (this.outerElement = el), class: this.calcOuterClass(), role: "progressbar", "aria-labelledby": this.label && this.size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": this.progress, "aria-valuemin": this.min, "aria-valuemax": this.max }, hAsync("div", { key: '4c0937928bd38982462ad36d6df98ecd5729b64e', ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.innerLabel &&
|
12466
12395
|
this.innerLabel !== undefined &&
|
12467
|
-
this.size === "small" && (hAsync("ic-typography", { key: '
|
12396
|
+
this.size === "small" && (hAsync("ic-typography", { key: '13c9dbbead841cf7995caefc63bb86d8c0e40d2d', variant: "subtitle-small", class: "inner-text" }, this.innerLabel)), this.type === "circular" && (hAsync("svg", { key: '12decbb0441c22e9c0f7f82b8c7737b24c44bf01', class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, hAsync("circle", { key: '96ba0e0a054be9be9f707903ae8d8075ab92b360', cx: `${x}`, cy: `${y}`, r: `${r}` }), hAsync("circle", { key: 'b986b1626971075e86063a898948df490856cd3d', cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (hAsync("ic-typography", { key: '5d3ceea4f339006c6389a99ea52befaea885988a', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, hAsync("p", { key: '5dfc851559b8ef4fb2b4fca4a002d87ad1b52d43' }, this.indicatorLabel))))));
|
12468
12397
|
}
|
12469
12398
|
get el() { return getElement(this); }
|
12470
12399
|
static get watchers() { return {
|
@@ -15221,7 +15150,7 @@ class Menu {
|
|
15221
15150
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
15222
15151
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
15223
15152
|
const hasNoResults = this.host.classList.contains("no-results");
|
15224
|
-
return (hAsync(Host, { key: '
|
15153
|
+
return (hAsync(Host, { key: 'd0c5f5c23b4f20260852cefb5fedea21302e9d96', class: {
|
15225
15154
|
"ic-menu-full-width": !!fullWidth,
|
15226
15155
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
15227
15156
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -15230,7 +15159,7 @@ class Menu {
|
|
15230
15159
|
[`ic-menu-${size}`]: true,
|
15231
15160
|
"ic-menu-open": open && options.length !== 0,
|
15232
15161
|
"ic-menu-multiple": this.isMultiSelect,
|
15233
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
15162
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '83a3eb54200af022e6868732e5a7b36d81be36a2', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": this.isMultiSelect ? "true" : "false", tabindex: open &&
|
15234
15163
|
!keyboardNav &&
|
15235
15164
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
15236
15165
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -15258,7 +15187,7 @@ class Menu {
|
|
15258
15187
|
this.isMultiSelect &&
|
15259
15188
|
!isLoading &&
|
15260
15189
|
!hasTimedOut &&
|
15261
|
-
!hasNoResults && (hAsync("div", { key: '
|
15190
|
+
!hasNoResults && (hAsync("div", { key: '0273a92b2489cf7c2e78c19925016f9fa1c7f8ce', class: "option-bar" }, hAsync("ic-typography", { key: '12fb3d62eff3d6d2545004d73f2de8726c4ee9e8' }, hAsync("p", { key: '661d0a4ca79cda7f6fa5d1e229baa0ed301599b9' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '7b28845efcd6e7819d591e5811448db384ab9138', 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)))));
|
15262
15191
|
}
|
15263
15192
|
get host() { return getElement(this); }
|
15264
15193
|
static get watchers() { return {
|
@@ -15313,7 +15242,7 @@ class MenuGroup {
|
|
15313
15242
|
}
|
15314
15243
|
render() {
|
15315
15244
|
const parentMenu = this.el.closest("ic-popover-menu");
|
15316
|
-
return (hAsync(Host, { key: '
|
15245
|
+
return (hAsync(Host, { key: '384be493b4b4148e4a09f0395bb1db6b651bfc2f', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined$1(this.label) && (hAsync("ic-typography", { key: '46982951ac8573a5ee8c5733043e109f268859f8', variant: "subtitle-small" }, this.label)), hAsync("span", { key: 'd5a5fe976b9f88e61df589c1ddc105c31b8639e2', class: "menu-items-wrapper" }, hAsync("slot", { key: '3b6cab53fde94c5a9cbc0a6a323c0aff28975a1c' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (hAsync("hr", { key: '60412dd9914569ad72a6160787b48d8b3239cebb' }))));
|
15317
15246
|
}
|
15318
15247
|
get el() { return getElement(this); }
|
15319
15248
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -15329,7 +15258,7 @@ class MenuGroup {
|
|
15329
15258
|
}; }
|
15330
15259
|
}
|
15331
15260
|
|
15332
|
-
const icMenuItemCss = "/*! 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}
|
15261
|
+
const icMenuItemCss = "/*! 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 ::part(button){color:var(--ic-popover-menu-item-check);--ic-typography-color:var(--ic-popover-menu-item-check);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.ic-menu-item-disabled) ::part(button){color:var(--ic-popover-menu-item-check-disabled) !important;--ic-typography-color:var(--ic-popover-menu-item-check-disabled) !important;pointer-events:none}:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-popover-menu-destructive-item-icon);--ic-typography-color:var(--ic-popover-menu-destructive-item-label)}:host ::part(button):hover{background-color:var(--ic-popover-background-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-popover-menu-item-icon-focused);--ic-typography-color:purple;background-color:var(--ic-popover-background-focus);box-shadow:none}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{color:var(--ic-popover-menu-item-icon-disabled) !important;--ic-typography-color:orange !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-popover-destructive-background-focus)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-focused)}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:var(--ic-popover-menu-border)}:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-label-disabled) !important}:host ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-item-label) !important;--ic-typography-color:var(--ic-popover-menu-item-label) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-popover-background-pressed);color:var(--ic-popover-menu-destructive-item-label) !important;--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}.shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{--ic-typography-color:var(--ic-popover-menu-item-label)}ic-button:active .menu-item-description{--ic-typography-color:var(--ic-popover-menu-item-description)}ic-button:active .shortcut{--ic-typography-color:var(--ic-popover-menu-item-shortcut)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{--ic-typography-color:var(\n --ic-popover-menu-destructive-item-label\n ) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.ic-menu-item-disabled) .menu-item-info,:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{--ic-typography-color:GrayText !important}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{outline-color:GrayText !important}}";
|
15333
15262
|
var IcMenuItemStyle0 = icMenuItemCss;
|
15334
15263
|
|
15335
15264
|
/**
|
@@ -15420,17 +15349,17 @@ class MenuItem {
|
|
15420
15349
|
};
|
15421
15350
|
return (hAsync(Host, { class: {
|
15422
15351
|
["ic-menu-item-disabled"]: !!this.disabled,
|
15423
|
-
} }, hAsync("
|
15352
|
+
} }, hAsync("ic-button", { fullWidth: true, variant: "tertiary", onClick: this.handleClick, href: isPropDefined$1(this.href), hreflang: isPropDefined$1(this.hreflang), target: isPropDefined$1(this.target), rel: isPropDefined$1(this.rel), referrerpolicy: this.referrerpolicy, role: this.variant === "toggle" ? "menuitemcheckbox" : "menuitem", "aria-disabled": `${this.disabled}`, "aria-checked": this.variant === "toggle"
|
15424
15353
|
? this.checked
|
15425
15354
|
? "true"
|
15426
15355
|
: "false"
|
15427
|
-
: undefined
|
15356
|
+
: undefined, "aria-label": this.getMenuItemAriaLabel(), "aria-haspopup": isPropDefined$1(this.submenuTriggerFor) ||
|
15428
15357
|
this.el.classList.contains("ic-popover-submenu-back-button")
|
15429
15358
|
? "menu"
|
15430
15359
|
: false }, hAsync("div", { class: "focus-border" }, isSlotUsed$1(this.el, "icon") && (hAsync("span", { class: "icon" }, hAsync("slot", { name: "icon" }))), hAsync(MenuItemInformation, null), this.variant === "toggle" && (hAsync("span", { class: {
|
15431
15360
|
["check-icon"]: true,
|
15432
15361
|
["hide"]: !this.checked,
|
15433
|
-
}, "aria-hidden": "true", innerHTML: checkIcon })), isPropDefined$1(this.submenuTriggerFor) && (hAsync("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: chevronIcon }))))))
|
15362
|
+
}, "aria-hidden": "true", innerHTML: checkIcon })), isPropDefined$1(this.submenuTriggerFor) && (hAsync("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: chevronIcon }))))));
|
15434
15363
|
}
|
15435
15364
|
static get delegatesFocus() { return true; }
|
15436
15365
|
get el() { return getElement(this); }
|
@@ -15564,10 +15493,10 @@ class NavigationButton {
|
|
15564
15493
|
fullWidth,
|
15565
15494
|
disableTooltip,
|
15566
15495
|
};
|
15567
|
-
return (hAsync(Host, { key: '
|
15496
|
+
return (hAsync(Host, { key: 'a750cb73987d5c9d0c7bcdb6ece9807bcc688c9f', class: {
|
15568
15497
|
["in-side-menu"]: this.mode === "menu",
|
15569
15498
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
15570
|
-
} }, hAsync("ic-button", Object.assign({ key: '
|
15499
|
+
} }, hAsync("ic-button", Object.assign({ key: 'd55eb3e8c54c6bb76e61044af2a5b1a2dddafbf6', class: className, "aria-label": variant == "icon" ? this.label : null, ref: (el) => (this.buttonEl = el) }, buttonProps, this.inheritedAttributes, { monochrome: this.mode !== "menu", theme: getBrandForegroundAppearance() == "light" ? "light" : "dark" }), label, hAsync("slot", { key: '4193d9cd02c05a3b12946233cb86256e2c729abc', slot: "left-icon", name: "icon" }), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'a53d6158424e97fddc62b25006f6060b2cbee4c5', name: "badge" }))));
|
15571
15500
|
}
|
15572
15501
|
static get delegatesFocus() { return true; }
|
15573
15502
|
get el() { return getElement(this); }
|
@@ -15904,7 +15833,7 @@ class NavigationGroup {
|
|
15904
15833
|
const isSideNav = this.navigationType === "side";
|
15905
15834
|
const isTopNav = this.navigationType === "top";
|
15906
15835
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
15907
|
-
return (hAsync(Host, { key: '
|
15836
|
+
return (hAsync(Host, { key: 'd89ce479bb2f5142a2ef6dd2284229a73367c916', class: {
|
15908
15837
|
["in-side-menu"]: inTopNavSideMenu,
|
15909
15838
|
"ic-navigation-group-expanded": expanded,
|
15910
15839
|
"ic-navigation-group-collapsed": !expanded,
|
@@ -16146,7 +16075,7 @@ class NavigationItem {
|
|
16146
16075
|
}
|
16147
16076
|
render() {
|
16148
16077
|
const { inTopNavSideMenu, isTopNavChild, selected } = this;
|
16149
|
-
return (hAsync(Host, { key: '
|
16078
|
+
return (hAsync(Host, { key: 'f20ee76495a75e8794e451e27b92f5545d06212c', class: {
|
16150
16079
|
["navigation-item"]: true,
|
16151
16080
|
["navigation-item-top-nav"]: !inTopNavSideMenu && this.navigationType === "top",
|
16152
16081
|
["navigation-item-top-nav-child-selected"]: isTopNavChild && !inTopNavSideMenu && !!selected,
|
@@ -16167,7 +16096,7 @@ class NavigationItem {
|
|
16167
16096
|
!this.isSideNavMobile,
|
16168
16097
|
["expandable"]: !!this.expandable,
|
16169
16098
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
16170
|
-
}, onBlur: isTopNavChild && !inTopNavSideMenu ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '
|
16099
|
+
}, onBlur: isTopNavChild && !inTopNavSideMenu ? this.handleBlur : null, onClick: this.handleClick, "aria-current": selected ? "page" : null, role: "listitem" }, hAsync("ic-tooltip", { key: '6b1e5e2b20aa01cfea5dde82a27e93bf1c19cd3a', label: this.generateTooltipLabel() || "", target: "navigation-item", placement: "right", class: {
|
16171
16100
|
["tooltip-navigation-item"]: true,
|
16172
16101
|
["tooltip-navigation-item-side-nav-collapsed"]: !!this.displayNavigationTooltip && this.navigationType === "side",
|
16173
16102
|
["tooltip-long-label-navigation-item-side-nav-expanded"]: this.el.hasAttribute("[display-navigation-tooltip = 'true']"),
|
@@ -16337,16 +16266,16 @@ class NavigationMenu {
|
|
16337
16266
|
}
|
16338
16267
|
}
|
16339
16268
|
render() {
|
16340
|
-
return (hAsync(Host, { key: '
|
16269
|
+
return (hAsync(Host, { key: '3e06550714484b8a9d157e0391697e303fbf8259', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, hAsync("div", { key: 'b56300f2817a5a42401570a56f5b29c90e37e336', class: "popout-modal", onClick: this.closeMenu }), hAsync("div", { key: '081658f80afaa6d7f39971cc0f566068166b6688', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, hAsync("span", { key: '67841c0d0cfb29fba7e3c722436c7e87bca1842d', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), hAsync("nav", { key: 'cb5aa473a04868d6af4dcd2ebc2b61ef5d785904', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, hAsync("div", { key: '2551b868b4c932b5fcff041bdae690e748d40430', class: {
|
16341
16270
|
["menu-close-button-container"]: true,
|
16342
16271
|
["nav-group-first"]: this.navGroupFirst,
|
16343
|
-
} }, hAsync("ic-button", { key: '
|
16272
|
+
} }, hAsync("ic-button", { key: '7bd12321078c63fe2ffe62ede9d9db4695b0b510', 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: 'da0aa67b38afb973367472a95c74d2f6e49e9fd8', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'd7d5993d336c40113eb2ae3528c429028c78fcfe', 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: '1957640a14ad85b1ef0b3b9b330ea9f2beeb7391', name: "navigation" })), this.hasButtons && (hAsync("div", { key: '0c92359ed82d16596420c022fa61ff2a106161dd', class: {
|
16344
16273
|
["menu-buttons-container"]: true,
|
16345
16274
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
16346
|
-
} }, hAsync("slot", { key: '
|
16275
|
+
} }, hAsync("slot", { key: '96f46255f4faa638122e1f567003101d42790c55', name: "buttons" }))), (this.status !== "" || this.version !== "") && (hAsync("div", { key: '7ef37a7aa83a5e73a66d9d9c7eb99054f65f3785', class: {
|
16347
16276
|
["menu-status-version-container"]: true,
|
16348
16277
|
["status-version-no-buttons"]: !this.hasButtons,
|
16349
|
-
} }, this.status !== "" && (hAsync("div", { key: '
|
16278
|
+
} }, this.status !== "" && (hAsync("div", { key: '00a4dbcfa3fff6671c0d4a986141f321ac492b1f', class: "menu-status" }, hAsync("ic-typography", { key: 'f176e8fe85d647789146f59f83205c99c47ced63', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (hAsync("div", { key: 'c216559b1da429a6cbf910e58638fcabfeccf95a', class: "menu-version" }, hAsync("ic-typography", { key: '4b72051f226eb2563d41fe0c239d62ed82d33701', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
16350
16279
|
}
|
16351
16280
|
get el() { return getElement(this); }
|
16352
16281
|
static get style() { return IcNavigationMenuStyle0; }
|
@@ -16479,19 +16408,19 @@ class PageHeader {
|
|
16479
16408
|
const navAriaLabel = `${isSlotUsed$1(this.el, "heading")
|
16480
16409
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
16481
16410
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
16482
|
-
return (hAsync(Host, { key: '
|
16411
|
+
return (hAsync(Host, { key: '17bc798fc01d1a70de9fed3da746d8e39a88e96c', class: {
|
16483
16412
|
["ic-page-header-sticky"]: !!sticky,
|
16484
16413
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
16485
16414
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16486
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '
|
16415
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, hAsync("header", { key: '1dadcdce3f21efe0f196171330cb5774be34075e', class: {
|
16487
16416
|
["border-bottom"]: !!border,
|
16488
16417
|
["tabs"]: isSlotUsed$1(this.el, "tabs"),
|
16489
|
-
}, role: "presentation" }, hAsync("ic-section-container", { key: '
|
16418
|
+
}, role: "presentation" }, hAsync("ic-section-container", { key: '9f0855c0310d29f5381c12665aad41ee1656ccdb', aligned: aligned, fullHeight: isSlotUsed$1(this.el, "tabs") }, isSlotUsed$1(this.el, "breadcrumbs") && (hAsync("div", { key: '3b1fe9729e1d62e72a432fd039db40c1c5da22da', class: "breadcrumb-area" }, hAsync("slot", { key: 'e5055a9f7def4018e2046dae4687ae1945235bf7', name: "breadcrumbs" }))), hAsync("div", { key: '70acf27823b39d41d9c2f3dbe3e89d71096e7daf', class: "main-content" }, hAsync("div", { key: 'b924bba3df8954b9f314c1eff6ffe4443d0e53f1', class: "title-area" }, hAsync("div", { key: '5a60bb74557d37b33be8312d177e75ce77210998', class: "header-content" }, hAsync("slot", { key: 'e4c7c70b13eac0944bba1a1f2ddd320f3e1c2659', name: "heading" }, hAsync("ic-typography", { key: 'eb98510ca2b55a81c1b91bbabc4bfe7d5e28bdde', variant: size === "small" ? "h4" : "h2", class: "heading" }, hAsync("h2", { key: '9bc94aa414b9514f0e349faa521804682f22f85b' }, heading))), hAsync("slot", { key: '47b147656f0fe7436d233bb669c4462faab353db', name: "heading-adornment" })), hAsync("div", { key: '1456f12fba38ec4cd05706ccb92d72adf12ae623', class: {
|
16490
16419
|
["subheading-content"]: !!subheading || isSlotUsed$1(this.el, "subheading"),
|
16491
16420
|
["small"]: size === "small",
|
16492
|
-
} }, hAsync("slot", { key: '
|
16493
|
-
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: '
|
16494
|
-
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: '
|
16421
|
+
} }, hAsync("slot", { key: 'a82707ce4abf37e4e8a965a39a5cc6e50d634647', name: "subheading" }, hAsync("ic-typography", { key: '9f77da962becb04b244f3df0dceb7dad9dc122d8', variant: "body" }, subheading)))), isSlotUsed$1(this.el, "actions") && (hAsync("div", { key: '792df65e46b45a50514a1967866dd72f6f72e683', class: "action-area" }, hAsync("slot", { key: '0cd5fd825254df4815fe2d3e788946de88cbaae1', name: "actions" }))), isSlotUsed$1(this.el, "input") && (hAsync("div", { key: 'e030cb3067c544b3d3496146e25d511a30ca97b2', class: "input-area" }, hAsync("slot", { key: '8c9f722a205eded36526a4bc926e7a92c43626af', name: "input" })))), (isSlotUsed$1(this.el, "stepper") ||
|
16422
|
+
isSlotUsed$1(this.el, "tabs")) && (hAsync("div", { key: 'deeb8c5520db91c494215d1adf90bebcc96fbbb5', class: "navigation-area" }, isSlotUsed$1(this.el, "stepper") &&
|
16423
|
+
!isSlotUsed$1(this.el, "tabs") && hAsync("slot", { key: 'd9201c158069b054c3903ea4c0647d96de9d0930', name: "stepper" }), isSlotUsed$1(this.el, "tabs") && (hAsync("nav", { key: 'a0cdbb20f507dd783536b0a60ae7fa2d391be85f', "aria-label": navAriaLabel }, hAsync("ic-horizontal-scroll", { key: 'f3c15e0d61db5990108d86c5540d4f69b9477a9e' }, hAsync("ul", { key: '6e7aded64c14703b5b4f141fa11f0f9eac247bce', class: "tabs-slot" }, hAsync("slot", { key: 'eee6cfc3a09856108574b715163cc645f9eae627', name: "tabs" })))))))))));
|
16495
16424
|
}
|
16496
16425
|
get el() { return getElement(this); }
|
16497
16426
|
static get style() { return IcPageHeaderStyle0; }
|
@@ -16769,14 +16698,14 @@ class Pagination {
|
|
16769
16698
|
}
|
16770
16699
|
render() {
|
16771
16700
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
16772
|
-
return (hAsync(Host, { key: '
|
16701
|
+
return (hAsync(Host, { key: '9f9c0ceb1629ebff96c677d7b4ad9995bbe480cd', class: {
|
16773
16702
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
16774
16703
|
["ic-pagination-monochrome"]: !!monochrome,
|
16775
|
-
} }, type === "simple" && (hAsync("nav", { key: '
|
16704
|
+
} }, type === "simple" && (hAsync("nav", { key: '4d24ed30438c6755a1717454ee83e2a1b58d93c5', class: {
|
16776
16705
|
["disabled"]: !!disabled,
|
16777
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '
|
16706
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), hAsync("ic-pagination-item", { key: '784f99d1fa32d4f48c6de793707825333e45651a', 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: 'ce6061fcee8e202cb895e2919525b64c6a1c1114', class: {
|
16778
16707
|
["disabled"]: !!disabled,
|
16779
|
-
}, 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: '
|
16708
|
+
}, 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: '4980f1fd9ebd31a5b8835876479e12a8a0f5d54d', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
16780
16709
|
}
|
16781
16710
|
get el() { return getElement(this); }
|
16782
16711
|
static get watchers() { return {
|
@@ -17265,7 +17194,7 @@ class PaginationItem {
|
|
17265
17194
|
}
|
17266
17195
|
render() {
|
17267
17196
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
17268
|
-
return (hAsync("a", { key: '
|
17197
|
+
return (hAsync("a", { key: 'c067a0e35e2a92dff8d7f24d135a06a686d74a7d', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (hAsync("div", { class: {
|
17269
17198
|
["item-container"]: true,
|
17270
17199
|
["ellipsis"]: true,
|
17271
17200
|
["disabled"]: !!disabled,
|
@@ -17307,9 +17236,10 @@ class PaginationItem {
|
|
17307
17236
|
}; }
|
17308
17237
|
}
|
17309
17238
|
|
17310
|
-
const icPopoverMenuCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){:host .opening-from-parent{animation:slide-in var(--ic-transition-duration-slow) ease-in-out}:host .opening-from-child{animation:slide-out var(--ic-transition-duration-slow) ease-in-out}}:host{border-radius:var(--ic-border-radius);color:var(--ic-popover-nav-text);--ic-typography-color:var(--ic-popover-nav-text);position:relative;z-index:var(--ic-z-index-popover);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);display:none}:host(.on-dialog){inset:auto !important}:host(.on-dialog-fix-translate){transform:translate(0, var(--ic-space-xs)) !important}:host(.on-dialog-translate-y){transform:translate(0, calc(-1 * var(--translate-y))) !important}.menu{border:var(--ic-border-default);border-color:var(--ic-popover-border);border-radius:var(--ic-border-radius);background-color:var(--ic-popover-background);visibility:hidden;height:0}
|
17239
|
+
const icPopoverMenuCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){:host .opening-from-parent{animation:slide-in var(--ic-transition-duration-slow) ease-in-out}:host .opening-from-child{animation:slide-out var(--ic-transition-duration-slow) ease-in-out}}:host{border-radius:var(--ic-border-radius);color:var(--ic-popover-nav-text);--ic-typography-color:var(--ic-popover-nav-text);position:relative;z-index:var(--ic-z-index-popover);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);display:none}:host(.on-dialog){inset:auto !important}:host(.on-dialog-fix-translate){transform:translate(0, var(--ic-space-xs)) !important}:host(.on-dialog-translate-y){transform:translate(0, calc(-1 * var(--translate-y))) !important}.menu{border:var(--ic-border-default);border-color:var(--ic-popover-border);border-radius:var(--ic-border-radius);background-color:var(--ic-popover-background);visibility:hidden;height:0}:host(:focus-within){box-shadow:var(--ic-border-focus)}.menu:focus-visible{outline:none}:host(.ic-popover-menu-open){display:block;min-width:calc(20rem - var(--ic-space-xl));width:var(--popover-width, 20rem);max-width:calc(100vw - var(--ic-space-xl))}:host(.ic-popover-menu-open) .menu{visibility:visible;height:-moz-fit-content;height:fit-content;max-height:var(--max-height, -moz-fit-content);max-height:var(--max-height, fit-content);overflow-y:auto;overflow-x:hidden}.parent-label{--ic-typography-color:var(--ic-popover-parent-label);margin:var(--ic-space-xs) var(--ic-space-xs) 0}@keyframes slide-in{from{opacity:0;transform:translateX(10rem)}to{opacity:1;transform:translateX(0)}}@keyframes slide-out{from{opacity:0;transform:translateX(-10rem)}to{opacity:1;transform:translateX(0)}}";
|
17311
17240
|
var IcPopoverMenuStyle0 = icPopoverMenuCss;
|
17312
17241
|
|
17242
|
+
const MENU_SELECTOR = "div.menu-body";
|
17313
17243
|
class PopoverMenu {
|
17314
17244
|
constructor(hostRef) {
|
17315
17245
|
registerInstance(this, hostRef);
|
@@ -17463,7 +17393,7 @@ class PopoverMenu {
|
|
17463
17393
|
}
|
17464
17394
|
componentDidLoad() {
|
17465
17395
|
var _a;
|
17466
|
-
const slotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(
|
17396
|
+
const slotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(MENU_SELECTOR);
|
17467
17397
|
if (slotWrapper) {
|
17468
17398
|
const popoverMenuElements = getSlotElements$1(slotWrapper);
|
17469
17399
|
if (popoverMenuElements !== null) {
|
@@ -17574,17 +17504,17 @@ class PopoverMenu {
|
|
17574
17504
|
}
|
17575
17505
|
}
|
17576
17506
|
render() {
|
17577
|
-
return (hAsync(Host, { key: '
|
17507
|
+
return (hAsync(Host, { key: '45ea929f78a71412b65696067f7573be3a6d3ea8', class: {
|
17578
17508
|
["ic-popover-menu-open"]: !!this.open,
|
17579
17509
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
17580
|
-
} }, hAsync("div", { key: '
|
17510
|
+
} }, hAsync("div", { key: '6bdbe7d1dbb09296d6174028e261577fdd4532ee', id: this.parentPopover === undefined
|
17581
17511
|
? `ic-popover-submenu-${this.submenuId}`
|
17582
17512
|
: "", class: {
|
17583
17513
|
menu: true,
|
17584
|
-
} }, hAsync("span", { key: '
|
17514
|
+
} }, hAsync("span", { key: '35fb266531251314aea84b37f812e88c8974e43d', class: {
|
17585
17515
|
"opening-from-parent": this.openingFromParent,
|
17586
17516
|
"opening-from-child": this.openingFromChild,
|
17587
|
-
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '
|
17517
|
+
} }, isPropDefined$1(this.submenuId) && (hAsync("span", { key: '6605d6f2491c980baee3089a1857f931626bb54b' }, hAsync("span", { key: '07e80b42e9b4658b36e567a3adb74a8635c96e4c', role: "menu" }, hAsync("ic-menu-item", { key: '3430014d29bde74c907de86c97aecd16db7ea9fe', 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: 'aff3697d9faab6dbe89ea59f7d217cf04af1549e', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, hAsync("path", { key: '451d430e380b75746a2415985cbd8bd7298f3649', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), hAsync("ic-typography", { key: '5b1da715db279cf8581b3533343472453f6e40e1', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), hAsync("div", { key: '9e488ccbc0dbb2b5e56b335cb35f00f87f4921ca', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, hAsync("slot", { key: '94669f3fc5982fb94ada6f3c3cac1404e5a97e67' }))))));
|
17588
17518
|
}
|
17589
17519
|
static get delegatesFocus() { return true; }
|
17590
17520
|
get el() { return getElement(this); }
|
@@ -17842,16 +17772,16 @@ class RadioGroup {
|
|
17842
17772
|
}
|
17843
17773
|
render() {
|
17844
17774
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationStatus, validationText, theme, } = this;
|
17845
|
-
return (hAsync(Host, { key: '
|
17775
|
+
return (hAsync(Host, { key: '42dc675c60f45659472c07052a2ed88f08710c31', onKeyDown: handleKeyDown, class: {
|
17846
17776
|
"ic-radio-group-small": size === "small",
|
17847
17777
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
17848
|
-
} }, hAsync("div", { key: '
|
17778
|
+
} }, hAsync("div", { key: '6fc67dbbdbaebd8fa8956defa727d0552a2dc4de', role: "radiogroup", "aria-label": `${label}${required ? ", required" : ""}` }, !hideLabel && (hAsync("ic-input-label", { key: '463018c9c855d118d77d59c150c75ae76ec95491', class: {
|
17849
17779
|
[`${validationStatus}`]: true,
|
17850
17780
|
["disabled"]: !!disabled,
|
17851
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled })), hAsync("div", { key: '
|
17781
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled })), hAsync("div", { key: '4567b4ebf1cbc7ad1f87963cf5918937a31c6775', class: {
|
17852
17782
|
"radio-buttons-container": true,
|
17853
17783
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
17854
|
-
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: '
|
17784
|
+
}, ref: (el) => (this.radioContainer = el) }, hAsync("slot", { key: 'd8c63b01cacf74581bc381ebec1c269d9c590ea3' }))), hasValidationStatus(validationStatus, disabled) && (hAsync("ic-input-validation", { key: '55d0dc823c82405a7aa2e8edb03be0d76f5809c8', ariaLiveMode: "polite", status: validationStatus, message: validationText }))));
|
17855
17785
|
}
|
17856
17786
|
get el() { return getElement(this); }
|
17857
17787
|
static get watchers() { return {
|
@@ -18031,15 +17961,15 @@ class RadioOption {
|
|
18031
17961
|
render() {
|
18032
17962
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
18033
17963
|
const id = `ic-radio-option-${isPropDefined$1(label) || value}-${groupLabel}`;
|
18034
|
-
return (hAsync(Host, { key: '
|
17964
|
+
return (hAsync(Host, { key: 'd4254c0a08bd7fe373f7beeb849d732d437c6f5b', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
18035
17965
|
["ic-radio-option-disabled"]: !!disabled,
|
18036
17966
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18037
|
-
} }, hAsync("div", { key: '
|
17967
|
+
} }, hAsync("div", { key: '1b3c7c383278c1d8714f5a7a3a00c8fb780a2931', class: { container: true, disabled: !!disabled } }, hAsync("div", { key: 'ba90a2ce5912981a50d43ebd33086eb227947e5f' }, hAsync("input", { key: '8eb145667ce5b7777ced51480ceebab3f43a7910', 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: '3683fd5eda19dd39f4647a5763705eef4becacb3', class: "checkmark" })), hAsync("ic-typography", { key: 'd662a4e7a5b0ac173a7ea2881d2dac84e94eedc7', class: "radio-label", variant: "body" }, hAsync("label", { key: 'a76e5907c98f2ff18d734167ff69bbe0a1c7ddc4', htmlFor: id }, label))), hasAdditionalField && (hAsync("div", { key: 'ff91776cab766a955e98dee100f73114166fee7a', class: {
|
18038
17968
|
"dynamic-container": true,
|
18039
17969
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
18040
|
-
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: '
|
17970
|
+
} }, additionalFieldDisplay === "dynamic" && (hAsync("div", { key: 'e7eeaf7801fd5aa2014edb3796b8b6acc3149b3b', class: "branch-corner" })), hAsync("div", { key: '5cb0e6fca92276f2d2a3bb0f5edc9e4525d44aa2' }, additionalFieldDisplay === "dynamic" && (hAsync("ic-typography", { key: '318ea54a9055f8dde4de2d9802878584d57e186e', variant: "caption" }, hAsync("p", { key: 'e3f34b9536a0f5b95e796c269c586b7905dab59a', class: "dynamic-text" }, dynamicText))), hAsync("div", { key: 'cec5d0147f6f12510e066fff2c0d4d80fe0ee98f', class: {
|
18041
17971
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
18042
|
-
} }, hAsync("slot", { key: '
|
17972
|
+
} }, hAsync("slot", { key: 'd6279d0506490eceb7d55d6e86609e9e9fb06ea4', name: ADDITIONAL_FIELD })))))));
|
18043
17973
|
}
|
18044
17974
|
get el() { return getElement(this); }
|
18045
17975
|
static get watchers() { return {
|
@@ -18100,7 +18030,6 @@ class SearchBar {
|
|
18100
18030
|
this.icSearchBarBlur = createEvent(this, "icSearchBarBlur", 7);
|
18101
18031
|
this.icSearchBarFocus = createEvent(this, "icSearchBarFocus", 7);
|
18102
18032
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
18103
|
-
this.assistiveHintEl = null;
|
18104
18033
|
this.hasTimedOut = false;
|
18105
18034
|
this.inputId = `ic-search-bar-input-${inputIds$3++}`;
|
18106
18035
|
this.menuCloseFromMenuChangeEvent = false;
|
@@ -18109,6 +18038,7 @@ class SearchBar {
|
|
18109
18038
|
this.preventSubmit = false;
|
18110
18039
|
this.prevNoOption = false;
|
18111
18040
|
this.retryButtonClick = false;
|
18041
|
+
this.retryViaKeyPress = false;
|
18112
18042
|
this.truncateValue = false;
|
18113
18043
|
this.clearButtonFocused = false;
|
18114
18044
|
this.open = false;
|
@@ -18252,46 +18182,57 @@ class SearchBar {
|
|
18252
18182
|
this.preventSubmit = true;
|
18253
18183
|
}
|
18254
18184
|
};
|
18255
|
-
this.onInput = (
|
18256
|
-
this.value =
|
18185
|
+
this.onInput = ({ target }) => {
|
18186
|
+
this.value = target.value;
|
18257
18187
|
this.icInput.emit({ value: this.value });
|
18258
|
-
const noOptions = [
|
18259
|
-
{ [this.labelField]: this.emptyOptionListText, [this.valueField]: "" },
|
18260
|
-
];
|
18261
18188
|
if (this.options.length > 0) {
|
18262
18189
|
this.setMenuChange(true);
|
18263
18190
|
this.preLoad = false;
|
18264
18191
|
if (this.disableAutoFiltering === false) {
|
18265
18192
|
const rawFilteredOptions = getFilteredMenuOptions(this.options, false, this.value, "anywhere", this.labelField);
|
18266
18193
|
this.filteredOptions =
|
18267
|
-
rawFilteredOptions.length > 0
|
18268
|
-
|
18269
|
-
|
18270
|
-
|
18271
|
-
|
18272
|
-
|
18194
|
+
rawFilteredOptions.length > 0
|
18195
|
+
? rawFilteredOptions
|
18196
|
+
: [
|
18197
|
+
{
|
18198
|
+
[this.labelField]: this.emptyOptionListText,
|
18199
|
+
[this.valueField]: "",
|
18200
|
+
},
|
18201
|
+
];
|
18202
|
+
}
|
18203
|
+
}
|
18204
|
+
if (!this.showClearButton)
|
18205
|
+
this.showClearButton = true;
|
18273
18206
|
this.debounceAriaLiveUpdate();
|
18274
18207
|
};
|
18275
|
-
this.onInputBlur = (
|
18276
|
-
|
18277
|
-
|
18278
|
-
|
18208
|
+
this.onInputBlur = ({ target, relatedTarget }) => {
|
18209
|
+
this.icSearchBarBlur.emit({
|
18210
|
+
value: target.value,
|
18211
|
+
relatedTarget,
|
18212
|
+
});
|
18279
18213
|
};
|
18280
|
-
this.onInputFocus = (
|
18281
|
-
|
18282
|
-
this.
|
18283
|
-
this.handleShowClearButton(true);
|
18214
|
+
this.onInputFocus = ({ target }) => {
|
18215
|
+
this.icSearchBarFocus.emit({ value: target.value });
|
18216
|
+
this.showClearButton = true;
|
18284
18217
|
};
|
18285
|
-
this.handleClearBlur = (
|
18286
|
-
|
18287
|
-
this.icClearBlur.emit({ relatedTarget: nextFocus });
|
18218
|
+
this.handleClearBlur = ({ relatedTarget }) => {
|
18219
|
+
this.icClearBlur.emit({ relatedTarget });
|
18288
18220
|
this.clearButtonFocused = false;
|
18289
18221
|
};
|
18290
|
-
this.handleSubmitSearchBlur = (
|
18291
|
-
|
18292
|
-
this.icSubmitSearchBlur.emit({ relatedTarget: nextFocus });
|
18222
|
+
this.handleSubmitSearchBlur = ({ relatedTarget }) => {
|
18223
|
+
this.icSubmitSearchBlur.emit({ relatedTarget });
|
18293
18224
|
this.searchSubmitFocused = false;
|
18294
18225
|
};
|
18226
|
+
this.setInputValue = (newValue) => {
|
18227
|
+
if (this.inputEl) {
|
18228
|
+
const label = getLabelFromValue(newValue, this.options, this.valueField, this.labelField);
|
18229
|
+
if (label)
|
18230
|
+
this.inputEl.value = label;
|
18231
|
+
else if (this.inputEl.value !== newValue) {
|
18232
|
+
this.inputEl.value = newValue;
|
18233
|
+
}
|
18234
|
+
}
|
18235
|
+
};
|
18295
18236
|
this.handleMouseDown = (ev) => {
|
18296
18237
|
ev.preventDefault();
|
18297
18238
|
};
|
@@ -18299,7 +18240,8 @@ class SearchBar {
|
|
18299
18240
|
this.searchSubmitFocused = true;
|
18300
18241
|
};
|
18301
18242
|
this.handleSubmitSearch = () => {
|
18302
|
-
|
18243
|
+
if (this.highlightedValue)
|
18244
|
+
this.value = this.highlightedValue;
|
18303
18245
|
this.highlightedValue = undefined;
|
18304
18246
|
this.icSubmitSearch.emit({ value: this.value });
|
18305
18247
|
const form = this.el.closest("FORM");
|
@@ -18350,15 +18292,10 @@ class SearchBar {
|
|
18350
18292
|
this.icOptionSelect.emit({ value: this.value });
|
18351
18293
|
};
|
18352
18294
|
this.handleMenuOptionHighlight = (ev) => {
|
18353
|
-
|
18354
|
-
|
18355
|
-
|
18356
|
-
|
18357
|
-
this.ariaActiveDescendant = ev.detail.optionId;
|
18358
|
-
}
|
18359
|
-
else {
|
18360
|
-
this.ariaActiveDescendant = "";
|
18361
|
-
}
|
18295
|
+
const { optionId } = ev.detail;
|
18296
|
+
if (optionId)
|
18297
|
+
this.highlightedValue = optionId.replace(`${this.menuId}-`, "");
|
18298
|
+
this.ariaActiveDescendant = optionId || "";
|
18362
18299
|
};
|
18363
18300
|
this.handleMenuChange = (ev) => {
|
18364
18301
|
this.setMenuChange(ev.detail.open);
|
@@ -18376,15 +18313,14 @@ class SearchBar {
|
|
18376
18313
|
if (this.options && this.value && !this.menuCloseFromMenuChangeEvent) {
|
18377
18314
|
this.setMenuChange(true);
|
18378
18315
|
}
|
18379
|
-
this.
|
18316
|
+
this.truncateValue = false;
|
18380
18317
|
this.icSearchBarFocus.emit();
|
18381
18318
|
};
|
18382
|
-
this.handleHostBlur = (
|
18319
|
+
this.handleHostBlur = ({ relatedTarget }) => {
|
18383
18320
|
var _a;
|
18384
|
-
const nextFocus = ev.relatedTarget;
|
18385
18321
|
if (this.open &&
|
18386
18322
|
this.options &&
|
18387
|
-
|
18323
|
+
relatedTarget !== this.menu &&
|
18388
18324
|
!this.retryViaKeyPress &&
|
18389
18325
|
!this.retryButtonClick) {
|
18390
18326
|
this.setMenuChange(false);
|
@@ -18392,35 +18328,30 @@ class SearchBar {
|
|
18392
18328
|
if (this.retryButtonClick || this.retryViaKeyPress) {
|
18393
18329
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
18394
18330
|
}
|
18395
|
-
this.
|
18331
|
+
this.showClearButton = false;
|
18396
18332
|
this.menuCloseFromMenuChangeEvent = false;
|
18397
|
-
this.
|
18398
|
-
this.icSearchBarBlur.emit({
|
18333
|
+
this.truncateValue = true;
|
18334
|
+
this.icSearchBarBlur.emit({
|
18335
|
+
relatedTarget,
|
18336
|
+
value: this.value,
|
18337
|
+
});
|
18399
18338
|
this.retryViaKeyPress = false;
|
18400
18339
|
this.retryButtonClick = false;
|
18401
18340
|
};
|
18402
|
-
this.handleShowClearButton = (visible) => {
|
18403
|
-
this.showClearButton = visible;
|
18404
|
-
};
|
18405
18341
|
this.handleFocusClearButton = () => {
|
18406
18342
|
this.clearButtonFocused = true;
|
18407
18343
|
};
|
18408
|
-
this.handleTruncateValue = (truncate) => {
|
18409
|
-
this.truncateValue = truncate;
|
18410
|
-
};
|
18411
18344
|
this.renderAssistiveHintEl = () => {
|
18412
|
-
var _a;
|
18345
|
+
var _a, _b;
|
18413
18346
|
const input = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`#${this.inputId}`);
|
18414
18347
|
if (input &&
|
18415
18348
|
Object.keys(input).length > 0 &&
|
18416
18349
|
this.hasOptionsOrFilterDisabled()) {
|
18417
18350
|
this.assistiveHintEl = document.createElement("span");
|
18418
|
-
this.assistiveHintEl.innerText = this.assistiveHintText
|
18351
|
+
this.assistiveHintEl.innerText = this.assistiveHintText;
|
18419
18352
|
this.assistiveHintEl.id = `${this.inputId}-assistive-hint`;
|
18420
18353
|
this.assistiveHintEl.style.display = "none";
|
18421
|
-
|
18422
|
-
input.after(this.assistiveHintEl);
|
18423
|
-
}
|
18354
|
+
(_b = input.after) === null || _b === void 0 ? void 0 : _b.call(input, this.assistiveHintEl);
|
18424
18355
|
}
|
18425
18356
|
};
|
18426
18357
|
this.updateSearchResultAriaLive = () => {
|
@@ -18436,41 +18367,22 @@ class SearchBar {
|
|
18436
18367
|
this.filteredOptions.length > 0 &&
|
18437
18368
|
this.open &&
|
18438
18369
|
!this.filteredOptions[0].loading) {
|
18439
|
-
|
18440
|
-
|
18441
|
-
|
18442
|
-
else {
|
18443
|
-
searchResultsStatusEl.innerText = `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
18444
|
-
}
|
18370
|
+
searchResultsStatusEl.innerText = this.hadNoOptions()
|
18371
|
+
? this.emptyOptionListText
|
18372
|
+
: `${this.filteredOptions.length} result${this.filteredOptions.length > 1 ? "s" : ""} available`;
|
18445
18373
|
}
|
18446
18374
|
}
|
18447
18375
|
};
|
18448
|
-
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 ||
|
18376
|
+
this.hasOptionsOrFilterDisabled = () => this.options.length > 0 || this.disableAutoFiltering;
|
18449
18377
|
this.hadNoOptions = () => this.filteredOptions.length === 1 &&
|
18450
18378
|
this.filteredOptions[0][this.labelField] === this.emptyOptionListText &&
|
18451
18379
|
this.searchMode === "navigation";
|
18452
|
-
this.isSubmitDisabled = () =>
|
18453
|
-
|
18454
|
-
|
18455
|
-
|
18456
|
-
|
18457
|
-
|
18458
|
-
this.hadNoOptions() ||
|
18459
|
-
this.hasTimedOut ||
|
18460
|
-
!!this.loading);
|
18461
|
-
};
|
18462
|
-
this.highlightFirstOptionAfterNoResults = () => {
|
18463
|
-
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
18464
|
-
this.menu.handleSetFirstOption();
|
18465
|
-
this.prevNoOption = false;
|
18466
|
-
}
|
18467
|
-
const prevNoOptionsList = this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
18468
|
-
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
18469
|
-
filteredOption[this.labelField] === this.loadingLabel);
|
18470
|
-
if (prevNoOptionsList) {
|
18471
|
-
this.prevNoOption = true;
|
18472
|
-
}
|
18473
|
-
};
|
18380
|
+
this.isSubmitDisabled = () => !this.value ||
|
18381
|
+
this.value.length < this.charactersUntilSuggestion ||
|
18382
|
+
this.disabled ||
|
18383
|
+
this.hadNoOptions() ||
|
18384
|
+
this.hasTimedOut ||
|
18385
|
+
this.loading;
|
18474
18386
|
}
|
18475
18387
|
watchDisabledHandler() {
|
18476
18388
|
removeDisabledFalse$1(this.disabled, this.el);
|
@@ -18499,40 +18411,32 @@ class SearchBar {
|
|
18499
18411
|
return;
|
18500
18412
|
}
|
18501
18413
|
this.setMenuChange(true);
|
18502
|
-
!this.preLoad
|
18503
|
-
|
18414
|
+
if (!this.preLoad) {
|
18415
|
+
this.filteredOptions = [
|
18504
18416
|
{
|
18505
18417
|
[this.labelField]: this.emptyOptionListText,
|
18506
18418
|
[this.valueField]: "",
|
18507
18419
|
},
|
18508
|
-
]
|
18420
|
+
];
|
18421
|
+
}
|
18509
18422
|
this.preLoad = true;
|
18510
18423
|
}
|
18511
18424
|
}
|
18512
18425
|
this.debounceAriaLiveUpdate();
|
18513
18426
|
}
|
18514
18427
|
watchValueHandler(newValue) {
|
18515
|
-
|
18516
|
-
this.options &&
|
18517
|
-
!!getLabelFromValue(newValue, this.options, this.valueField, this.labelField)) {
|
18518
|
-
this.inputEl.value =
|
18519
|
-
getLabelFromValue(newValue, this.options, this.valueField, this.labelField) || "";
|
18520
|
-
}
|
18521
|
-
else if (this.inputEl && this.inputEl.value !== newValue) {
|
18522
|
-
this.inputEl.value = newValue;
|
18523
|
-
}
|
18428
|
+
this.setInputValue(newValue);
|
18524
18429
|
this.icChange.emit({ value: newValue });
|
18525
18430
|
}
|
18526
18431
|
connectedCallback() {
|
18527
18432
|
this.debounceChanged();
|
18528
18433
|
}
|
18529
18434
|
disconnectedCallback() {
|
18530
|
-
|
18531
|
-
|
18532
|
-
}
|
18435
|
+
var _a;
|
18436
|
+
(_a = this.assistiveHintEl) === null || _a === void 0 ? void 0 : _a.remove();
|
18533
18437
|
}
|
18534
18438
|
componentWillLoad() {
|
18535
|
-
this.
|
18439
|
+
this.setInputValue(this.value);
|
18536
18440
|
removeDisabledFalse$1(this.disabled, this.el);
|
18537
18441
|
}
|
18538
18442
|
componentDidLoad() {
|
@@ -18548,7 +18452,15 @@ class SearchBar {
|
|
18548
18452
|
onComponentRequiredPropUndefined$1([{ prop: this.label, propName: "label" }], "Search Bar");
|
18549
18453
|
}
|
18550
18454
|
componentWillRender() {
|
18551
|
-
this.
|
18455
|
+
if (this.prevNoOption && this.menu && !this.hasTimedOut) {
|
18456
|
+
this.menu.handleSetFirstOption();
|
18457
|
+
this.prevNoOption = false;
|
18458
|
+
}
|
18459
|
+
if (this.filteredOptions.find((filteredOption) => filteredOption[this.labelField] === this.emptyOptionListText ||
|
18460
|
+
filteredOption[this.labelField] === this.loadingErrorLabel ||
|
18461
|
+
filteredOption[this.labelField] === this.loadingLabel)) {
|
18462
|
+
this.prevNoOption = true;
|
18463
|
+
}
|
18552
18464
|
}
|
18553
18465
|
handleKeyDown(event) {
|
18554
18466
|
this.icKeydown.emit({ event });
|
@@ -18587,62 +18499,57 @@ class SearchBar {
|
|
18587
18499
|
}, 500);
|
18588
18500
|
}
|
18589
18501
|
render() {
|
18590
|
-
const { inputId, name, label, required, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, theme, } = this;
|
18502
|
+
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;
|
18591
18503
|
const disabledMode = readonly || disabled;
|
18592
18504
|
const describedBy = getInputDescribedByText$1(inputId, helperText !== "", false).trim();
|
18593
|
-
let describedById;
|
18505
|
+
let describedById = undefined;
|
18594
18506
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
18595
|
-
describedById = `${describedBy} ${
|
18507
|
+
describedById = `${describedBy} ${inputId}-assistive-hint`;
|
18596
18508
|
}
|
18597
18509
|
else if (this.hasOptionsOrFilterDisabled()) {
|
18598
|
-
describedById = `${
|
18510
|
+
describedById = `${inputId}-assistive-hint`;
|
18599
18511
|
}
|
18600
18512
|
else if (describedBy !== "") {
|
18601
18513
|
describedById = describedBy;
|
18602
18514
|
}
|
18603
|
-
else {
|
18604
|
-
describedById = undefined;
|
18605
|
-
}
|
18606
18515
|
const hasSuggestedSearch = !!value && this.hasOptionsOrFilterDisabled();
|
18607
18516
|
const menuOpen = hasSuggestedSearch && open && filteredOptions.length > 0;
|
18608
|
-
const menuRendered = menuOpen && value.length >=
|
18609
|
-
const labelValue = getLabelFromValue(value, options,
|
18610
|
-
renderHiddenInput$1(
|
18611
|
-
return (hAsync(Host, { key: '
|
18612
|
-
|
18613
|
-
|
18614
|
-
|
18615
|
-
|
18517
|
+
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
18518
|
+
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
18519
|
+
renderHiddenInput$1(this.el, value, name, disabledMode);
|
18520
|
+
return (hAsync(Host, { key: '5120b79da9d0840d87421287913f49cda06da4f3', class: {
|
18521
|
+
"ic-search-bar-search": true,
|
18522
|
+
"ic-search-bar-full-width": fullWidth,
|
18523
|
+
"ic-search-bar-disabled": disabled,
|
18524
|
+
"ic-search-bar-small": size === "small",
|
18616
18525
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
18617
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '
|
18618
|
-
"no-left-pad":
|
18619
|
-
readonly
|
18526
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-input-container", { key: '246484c51e7169a8f9944b66499126ea3d86921a', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: '043651daee6abf565a44ad6c1c090e8d6dd85f8a', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly })), hAsync("ic-input-component-container", { key: '880ab5440ec935340d56dd69e64e467879f3bbc5', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, hAsync("input", { key: '37ece1e8c9f5ab12f2f3a303544c882192a07107', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
18527
|
+
"no-left-pad": readonly,
|
18528
|
+
readonly,
|
18620
18529
|
"truncate-value": truncateValue,
|
18621
|
-
}, 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: '
|
18530
|
+
}, 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: '4498fbe2293958c1ae6f6ddfeab15b2ff29ca2a8', class: {
|
18622
18531
|
"clear-button-container": true,
|
18623
|
-
"clear-button-visible": !!value && !disabledMode &&
|
18624
|
-
} }, hAsync("ic-button", { key: '
|
18532
|
+
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
18533
|
+
} }, hAsync("ic-button", { key: '561c5cbe830f34bc80967e0899f2dc8526c1c4f7', id: "clear-button", class: {
|
18625
18534
|
"clear-button": true,
|
18626
|
-
"clear-button-unfocused": !
|
18627
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme:
|
18535
|
+
"clear-button-unfocused": !clearButtonFocused,
|
18536
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", theme: clearButtonFocused ? "light" : "dark" }), hAsync("div", { key: '9c783d276ad0a931e538a79ce303ad060db1fa1b', class: "divider" })), hAsync("div", { key: '5babcd978eb8263ca710b32ead6926c95f558838', class: {
|
18628
18537
|
"search-submit-button-container": true,
|
18629
18538
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18630
|
-
} }, hAsync("ic-button", { key: '
|
18631
|
-
|
18632
|
-
|
18633
|
-
|
18634
|
-
|
18635
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme:
|
18539
|
+
} }, hAsync("ic-button", { key: '785dbe4deb7549662d263f74b75c759b932399fb', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
18540
|
+
"search-submit-button": true,
|
18541
|
+
"search-submit-button-small": size === "small",
|
18542
|
+
"search-submit-button-unfocused": !searchSubmitFocused,
|
18543
|
+
"search-submit-button-disabled": this.isSubmitDisabled(),
|
18544
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: "submit", variant: "icon", theme: searchSubmitFocused ? "light" : "dark" }))), hAsync("div", { key: '78297ce56515a4f1f50a8108949a20837c87828f', class: {
|
18636
18545
|
"menu-container": true,
|
18637
|
-
fullwidth:
|
18638
|
-
} }, menuRendered && (hAsync("ic-menu", { key: '
|
18546
|
+
fullwidth: fullWidth,
|
18547
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (hAsync("ic-menu", { key: 'd527adddfc250b1f0fe605cbaec5f08ea1e25c04', class: {
|
18639
18548
|
"no-results": this.hadNoOptions() ||
|
18640
18549
|
(filteredOptions.length === 1 &&
|
18641
|
-
(filteredOptions[0][
|
18642
|
-
|
18643
|
-
|
18644
|
-
this.loadingErrorLabel)),
|
18645
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), hAsync("div", { key: '9844297f2d4ed1dd4e168685da928b44eeeb4698', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
18550
|
+
(filteredOptions[0][labelField] === loadingLabel ||
|
18551
|
+
filteredOptions[0][labelField] === loadingErrorLabel)),
|
18552
|
+
}, 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: '716cd74ed9726cd134772aba2b98e374face0753', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
18646
18553
|
}
|
18647
18554
|
static get delegatesFocus() { return true; }
|
18648
18555
|
get el() { return getElement(this); }
|
@@ -18722,12 +18629,12 @@ class SectionContainer {
|
|
18722
18629
|
}
|
18723
18630
|
render() {
|
18724
18631
|
const { aligned, fullHeight } = this;
|
18725
|
-
return (hAsync(Host, { key: '
|
18632
|
+
return (hAsync(Host, { key: '67c1b4b2afe62fc53812421ee49c01bf689e05b4', class: {
|
18726
18633
|
["aligned-left"]: aligned === "left" || aligned === null,
|
18727
18634
|
["aligned-center"]: aligned === "center",
|
18728
18635
|
["aligned-full-width"]: aligned === "full-width",
|
18729
18636
|
["no-vertical-padding"]: !!fullHeight,
|
18730
|
-
} }, hAsync("slot", { key: '
|
18637
|
+
} }, hAsync("slot", { key: 'cb21cb372b6131cfb990ac0a016f6c64641749f9' })));
|
18731
18638
|
}
|
18732
18639
|
static get style() { return IcSectionContainerStyle0; }
|
18733
18640
|
static get cmpMeta() { return {
|
@@ -19593,7 +19500,7 @@ class Select {
|
|
19593
19500
|
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, multiple, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, theme, } = this;
|
19594
19501
|
// HTML inputs only accept 'string' for their value
|
19595
19502
|
// Does not cause errors when it is a multi-select - sets value correctly, to a comma-separated string
|
19596
|
-
renderHiddenInput$1(
|
19503
|
+
renderHiddenInput$1(this.el, this.searchable ? this.hiddenInputValue : currValue, name || this.inputId, disabled);
|
19597
19504
|
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
19598
19505
|
const describedBy = getInputDescribedByText$1(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, !!this.disabled)).trim();
|
19599
19506
|
let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
|
@@ -19608,16 +19515,16 @@ class Select {
|
|
19608
19515
|
(searchable
|
19609
19516
|
? this.searchableSelectInputValue
|
19610
19517
|
: currValue && !this.loading && showClearButton);
|
19611
|
-
return (hAsync(Host, { key: '
|
19518
|
+
return (hAsync(Host, { key: '456f6fa40aca4f93fba6e0c43c57cc171c358ede', class: {
|
19612
19519
|
"ic-select-disabled": !!disabled,
|
19613
19520
|
"ic-select-searchable": !!searchable,
|
19614
19521
|
[`ic-select-${size}`]: size !== "medium",
|
19615
19522
|
"ic-select-full-width": !!fullWidth,
|
19616
19523
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
19617
|
-
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: '
|
19524
|
+
}, onBlur: this.onBlur }, hAsync("ic-input-container", { key: 'f97234577ffc014d5da69a0ebbf8abac0a97e034', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: 'a6a1bf8152904b7a845de920bd9717c76ea47f2e', for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), hAsync("ic-input-component-container", { key: '6515fb2dca1c45d6388123ea2d75f5de57f1bc36', ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (hAsync("span", { key: '0f70c956b1be70903d518c3dc787fc3980a0c205', slot: "left-icon", class: {
|
19618
19525
|
["readonly"]: !!readonly,
|
19619
19526
|
["has-value"]: !!this.value,
|
19620
|
-
} }, hAsync("slot", { key: '
|
19527
|
+
} }, hAsync("slot", { key: '7e602e257167e4397fc131b118da86b0e3d38583', 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: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), hAsync("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
19621
19528
|
if (option.children) {
|
19622
19529
|
return (hAsync("optgroup", { label: option.label }, option.children.map((option) => (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
19623
19530
|
}
|
@@ -19644,7 +19551,7 @@ class Select {
|
|
19644
19551
|
} }, valueLabelString || placeholder), hAsync("div", { class: "select-input-end" }, isClearable && hAsync("div", { class: "divider" }), hAsync("span", { class: {
|
19645
19552
|
"expand-icon": true,
|
19646
19553
|
"expand-icon-open": this.open,
|
19647
|
-
}, 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: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: '
|
19554
|
+
}, 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: this.clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (hAsync("ic-menu", { key: 'f54e79314035d2c04a47292eb9e8e2ecd4421545', class: {
|
19648
19555
|
"no-results": this.loading ||
|
19649
19556
|
this.hasTimedOut ||
|
19650
19557
|
(this.noOptions !== null &&
|
@@ -19654,7 +19561,7 @@ class Select {
|
|
19654
19561
|
? this.searchableSelectElement
|
19655
19562
|
: this.customSelectElement), inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: this.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: this.searchable || multiple || this.selectOnEnter
|
19656
19563
|
? "manual"
|
19657
|
-
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: '
|
19564
|
+
: "automatic", closeOnSelect: !multiple })), this.multiple && (hAsync("div", { key: 'b1a65d56087d6603846cdd9cfc8c086e49597001', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), hasValidationStatus(this.validationStatus, !!this.disabled) && (hAsync("ic-input-validation", { key: 'e5553be7be57e5ae847bcd1a4d2525b18c4d1429', class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText || "", for: this.inputId })))));
|
19658
19565
|
}
|
19659
19566
|
static get delegatesFocus() { return true; }
|
19660
19567
|
get el() { return getElement(this); }
|
@@ -19730,7 +19637,7 @@ var menuIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill
|
|
19730
19637
|
</svg>
|
19731
19638
|
`;
|
19732
19639
|
|
19733
|
-
const icSideNavigationCss = ":host{display:block;--ic-typography-color:currentcolor;--side-navigation-position:fixed;--side-navigation-position-left:0;--side-navigation-position-top:var(--ic-space-xxl);--side-navigation-height:var(--ic-space-xxl);--sm-side-navigation-top-bar-height:3.5rem;--sm-side-navigation-collapsed-labels-width:6rem;--sm-side-navigation-expand-transition-duration:var(\n --ic-transition-duration-slow\n );--side-navigation-width:20rem;--sm-side-navigation-bottom-bar-height:3.5rem;--keyline-lighten:var(--ic-space-1px) solid var(--ic-side-navigation-keyline);--keyline-darken:var(--ic-space-1px) solid var(--ic-state-layer-darken-20);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);z-index:var(--ic-z-index-side-navigation)}:host>*{box-sizing:border-box}.side-navigation{display:flex;flex-direction:column;width:var(--side-navigation-width);color:var(--ic-side-navigation-text);position:var(--side-navigation-position);top:var(--side-navigation-position-top);left:calc(var(--side-navigation-width) * -1);bottom:0;background-color:var(--ic-side-navigation-background);z-index:var(--ic-z-index-side-navigation)}:host(.ic-side-navigation-inline) .side-navigation{position:absolute;height:100%}:host(.anchor-right) .side-navigation{right:calc(var(--side-navigation-width) * -1)}.classification-spacing{margin-bottom:var(--ic-space-lg)}.navigation-list{padding:0;margin:0;list-style:none}.side-navigation-inner{background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column;flex:1 1 0;overflow:auto}:host(.ic-side-navigation-inline) .side-navigation-inner{flex:1}:host(.xs-menu-open) .side-navigation{transition:left var(--ic-easing-transition-slow);left:0}:host(:has(.xs-menu-open,.xs-menu-close)) ::slotted(ic-navigation-item){--navigation-item-side-nav-right:var(--ic-space-xl)}:host(.xs-menu-close) .side-navigation{left:calc(var(--side-navigation-width) * -1);transition:left var(--ic-easing-transition-slow)}:host(.xs-menu-close) .side-navigation>*{visibility:hidden}:host(.anchor-right.xs-menu-open) .side-navigation{right:0;left:auto}:host(.anchor-right.xs-menu-close) .side-navigation{right:calc(var(--side-navigation-width) * -1);left:auto;transition:right var(--ic-easing-transition-slow)}.bottom-wrapper{border-top:var(--keyline-lighten);bottom:0;left:0;z-index:2;background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column}:host(.ic-side-navigation-inline) .bottom-wrapper{position:sticky}:host(.ic-side-navigation-dark) .bottom-wrapper{border-top:var(--keyline-darken)}.top-bar{display:flex;flex-direction:row;align-items:center;min-height:var(--side-navigation-height);padding:var(--ic-space-xs);box-sizing:border-box;background-color:var(--ic-side-navigation-background);position:fixed;top:0;left:0;right:0;border-bottom:var(--keyline-lighten);box-shadow:var(--ic-elevation-overlay);z-index:2;overflow:hidden;visibility:visible}:host(.ic-side-navigation-inline) .top-bar{position:absolute}:host(.ic-side-navigation-dark) .top-bar{border-bottom:var(--keyline-darken)}.top-bar.dark a:focus{box-shadow:var(--ic-border-focus)}.app-title-wrapper{display:flex;margin-left:var(--ic-space-xs);border-left:var(--keyline-lighten);padding-left:var(--ic-space-xxs);color:var(--ic-side-navigation-text);align-items:center}:host(.ic-side-navigation-dark) .app-title-wrapper{border-left:var(--keyline-darken)}.app-title-wrapper ic-typography h1{margin:0}@media screen and (min-width: 340px){.app-title-wrapper ic-typography{margin-left:var(--ic-space-xs)}}:host .title-link{display:flex;align-items:center;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast);text-decoration:none;padding:var(--ic-space-xxs);color:var(--ic-side-navigation-text)}:host .title-link:visited,:host .title-link:active{color:var(--ic-side-navigation-text)}slot[name=\"app-title\"]::slotted(a),slot[name=\"app-icon\"]::slotted(a){color:var(--ic-side-navigation-text);outline:none;text-decoration:none;display:flex}slot[name=\"app-title\"]::slotted(ic-typography),slot[name=\"app-title\"]::slotted(a){margin-left:var(--ic-space-xs) !important}slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-subtitle-small)}@media screen and (min-width: 577px){:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(a){position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(a){right:-9999px}:host(.sm-expanded) slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-h3) !important;font-weight:var(--ic-font-weight-semibold) !important;margin-left:var(--ic-space-xs) !important}}:host .title-link:hover{border-radius:var(--ic-border-radius);background-color:var(--ic-side-navigation-hover)}:host .title-link:active{background-color:var(--ic-side-navigation-pressed)}: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);background-color:transparent}:host .title-link ic-typography{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.app-title-wrapper ::slotted(svg){fill:var(--ic-side-navigation-text)}.app-icon-container{display:none}.button-label{display:flex;align-items:center}.mobile-top-bar-menu-icon{display:flex}.menu-button{width:6.5rem}.app-status-wrapper{inset:0 var(--ic-space-sm) 0 3.5rem;width:auto;display:flex;gap:var(--ic-space-xs);padding:var(--ic-space-sm) 0;justify-content:flex-end;align-items:flex-end;pointer-events:none;height:-moz-fit-content;height:fit-content;margin:0 var(--ic-space-xs)}.app-status-wrapper .app-version{display:flex;overflow-wrap:break-word;padding-bottom:var(--ic-space-xxs)}.app-status-wrapper .app-status{display:flex;border-radius:1rem;background-color:var(--ic-side-navigation-text);color:var(--ic-side-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);min-width:1rem}.app-status-wrapper .app-status-text{overflow-wrap:break-word}:host(.ic-side-navigation-dark) .app-status-wrapper .app-status{--ic-typography-color:var(--ic-architectural-white)}.navigation-landmark-title{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}::slotted(ic-navigation-group){--navigation-group-height:2.75rem;--navigation-group-justify-content:space-between;--navigation-group-hover:var(--ic-side-navigation-hover);--navigation-group-text-hover:var(--ic-side-navigation-text);--navigation-item-child-height:3.5rem;--navigation-item-child-active:var(--ic-action-dark-bg-pressed);--navigation-item-child-color:var(--ic-side-navigation-text);--navigation-group-expand-toggle-padding:0.25rem}::slotted(ic-navigation-item),::slotted(ic-navigation-group){--navigation-item-justify-content:flex-start;--navigation-item-min-height:56px;--navigation-item-height:auto}.bottom-side-nav{position:relative;align-content:flex-end;min-height:var(--sm-side-navigation-top-bar-height)}.bottom-side-nav ic-divider{position:absolute;top:0}.primary-navigation{flex:1;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none}.primary-navigation::-webkit-scrollbar{display:none}.primary-navigation,.secondary-navigation{overflow-x:hidden}.bottom-side-nav .menu-expand-button{position:absolute;display:none}.menu-visibility-visible{visibility:visible;width:100%}.app-title-show{min-width:15.5rem}:host(.side-display){display:flex;flex-direction:column;height:100vh;position:var(--side-navigation-position);left:0;top:0;bottom:0}:host(.side-display) .app-icon-container{height:40px;display:flex;align-items:center}:host(.side-display) .top-bar{--side-navigation-height:var(--sm-side-navigation-top-bar-height);position:relative;padding:0;box-shadow:none}:host(.ic-side-navigation-inline.side-display) .top-bar{position:sticky}:host(.anchor-right.side-display) .top-bar{box-shadow:0.188rem 0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.anchor-right.side-display) .bottom-wrapper{box-shadow:0.188rem -0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.side-display) .side-navigation,:host(.side-display) .top-bar{width:var(--sm-side-navigation-top-bar-height)}:host(.sm-collapsed.side-display){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.collapsed-labels.side-display){width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-expanded.side-display){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow);box-shadow:var(--ic-elevation-overlay)}:host(.side-display) .side-navigation{--side-navigation-position-top:0;flex:1;position:relative;top:auto;left:auto;bottom:auto}:host(.ic-side-navigation-inline.side-display) .side-navigation{position:relative}:host(.anchor-right.side-display) .side-navigation{left:auto;right:0}:host(.side-display) .app-title-wrapper{margin-left:0;border-left:none;padding:var(--ic-space-xs) var(--ic-space-sm)}:host(.side-display) .app-title-wrapper ::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.side-display) .app-title-wrapper ic-typography{font-weight:var(--ic-font-weight-semibold)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography{position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography:dir(rtl){right:-9999px}:host(.sm-expanded.side-display) ic-typography{position:relative;left:0}:host(.sm-expanded.side-display) :is(.side-navigation,.top-bar){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) :is(.side-navigation,.top-bar){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.anchor-right.sm-expanded.side-display) :is(.side-navigation,.top-bar){left:auto;right:0}:host(.side-display) .app-status-wrapper,:host(.sm-collapsed.side-display) .app-status-wrapper{display:none;margin-left:0}:host(.sm-expanded.side-display) .app-status-wrapper{display:flex;max-width:16rem;margin-right:calc(var(--ic-space-xxxs) + var(--ic-space-xs))}:host(.side-display) .bottom-side-nav{justify-items:flex-end;align-items:flex-end;justify-content:flex-end;display:flex;outline:none}:host(.side-display) .bottom-side-nav .menu-expand-button{padding-left:var(--ic-space-md);height:var(--sm-side-navigation-top-bar-height);width:100%;color:var(--ic-side-navigation-text);background-color:transparent;outline:var(--ic-hc-focus-outline);border:none;cursor:pointer;display:flex;transition:var(--ic-easing-transition-fast)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button{height:100%}:host(.side-display) .bottom-side-nav .menu-expand-button svg{justify-items:flex-start;align-self:center;display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.side-display) .bottom-side-nav .menu-expand-button:hover{background-color:var(--ic-side-navigation-hover)}:host(.side-display) .bottom-side-nav .menu-expand-button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1);transition:transform var(--ic-easing-transition-slow)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1);transition:transform var(--ic-easing-transition-slow);align-self:flex-end;margin-bottom:0.875rem}:host(.anchor-right.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1)}:host(.anchor-right.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1)}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item){--navigation-item-label-opacity:1}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item),:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:0;--navigation-item-min-height:3.5rem;--navigation-item-height:3.5rem}:host(.sm-expanded.side-display) ::slotted(ic-navigation-item),:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:1;--navigation-item-height:auto;--navigation-item-min-height:3.5rem;--navigation-item-width:20rem;--navigation-item-side-nav-right:var(--ic-space-xl);--navigation-group-width:20rem}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:absolute;--navigation-group-title-position-left:-9999px;--navigation-group-title-opacity:none}:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:relative;--navigation-group-title-position-left:0;--navigation-group-expand-toggle-padding:0.25rem;--navigation-group-title-opacity:flex}:host(.sm-collapsed.collapsed-labels.side-display) .side-navigation,:host(.sm-collapsed.collapsed-labels.side-display) .top-bar{width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-collapsed.collapsed-labels.side-display) .menu-expand-button{padding:0}:host(.sm-collapsed.collapsed-labels.side-display) .app-title-wrapper{width:100%;justify-content:center}:host(.sm-collapsed.collapsed-labels.side-display) ::slotted(ic-navigation-group){--navigation-group-justify-content:center;--navigation-item-label-opacity:1;--navigation-group-item-min-width:100%;--navigation-group-expand-toggle-padding:1rem}:host(.collapsed-labels.side-display) .bottom-side-nav .menu-expand-button{justify-content:center}:host(.side-display) .collapsed-icon-labels-start{visibility:hidden;opacity:0}:host(.side-display) .collapsed-icon-labels-end{visibility:visible;opacity:1;transition:visibility 0s, opacity var(--ic-easing-transition-slow)}@media screen and (max-width: 419px){.top-bar{height:var(--side-navigation-height)}.side-navigation{width:100%}}@media screen and (min-width: 340px){.app-icon-container{display:flex}}@media screen and (min-width: 993px){:host(.side-display){position:sticky;left:auto;top:0;bottom:0}:host(.sm-expanded.side-display){box-shadow:none}}@media (forced-colors: active){.side-navigation,.top-bar{border-right:var(--ic-border-hc)}.menu-expand-button{color:Highlight !important}slot[name=\"app-icon\"]::slotted(svg){fill:currentcolor}}";
|
19640
|
+
const icSideNavigationCss = ":host{display:block;--ic-typography-color:currentcolor;--side-navigation-position:fixed;--side-navigation-position-left:0;--side-navigation-position-top:var(--ic-space-xxl);--side-navigation-height:var(--ic-space-xxl);--sm-side-navigation-top-bar-height:3.5rem;--sm-side-navigation-collapsed-labels-width:6rem;--sm-side-navigation-expand-transition-duration:var(\n --ic-transition-duration-slow\n );--side-navigation-width:20rem;--sm-side-navigation-bottom-bar-height:3.5rem;--keyline-lighten:var(--ic-space-1px) solid var(--ic-side-navigation-keyline);--keyline-darken:var(--ic-space-1px) solid var(--ic-state-layer-darken-20);--ic-button-secondary-text-monochrome:var(--ic-brand-text-color);--ic-button-secondary-border-monochrome:var(--ic-brand-text-color);z-index:var(--ic-z-index-side-navigation)}:host>*{box-sizing:border-box}.side-navigation{display:flex;flex-direction:column;width:var(--side-navigation-width);color:var(--ic-side-navigation-text);position:var(--side-navigation-position);top:var(--side-navigation-position-top);left:calc(var(--side-navigation-width) * -1);bottom:0;background-color:var(--ic-side-navigation-background);z-index:var(--ic-z-index-side-navigation)}:host(.ic-side-navigation-inline) .side-navigation{position:absolute;height:100%}:host(.anchor-right) .side-navigation{right:calc(var(--side-navigation-width) * -1)}.classification-spacing{margin-bottom:var(--ic-space-lg)}.navigation-list{padding:0;margin:0;list-style:none}.side-navigation-inner{background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column;flex:1 1 4rem;overflow:auto}:host(.ic-side-navigation-inline) .side-navigation-inner{flex:1}:host(.xs-menu-open) .side-navigation{transition:left var(--ic-easing-transition-slow);left:0}:host(:has(.xs-menu-open,.xs-menu-close)) ::slotted(ic-navigation-item){--navigation-item-side-nav-right:var(--ic-space-xl)}:host(.xs-menu-close) .side-navigation{left:calc(var(--side-navigation-width) * -1);transition:left var(--ic-easing-transition-slow)}:host(.xs-menu-close) .side-navigation>*{visibility:hidden}:host(.anchor-right.xs-menu-open) .side-navigation{right:0;left:auto}:host(.anchor-right.xs-menu-close) .side-navigation{right:calc(var(--side-navigation-width) * -1);left:auto;transition:right var(--ic-easing-transition-slow)}.bottom-wrapper{border-top:var(--keyline-lighten);bottom:0;left:0;z-index:2;background-color:var(--ic-side-navigation-background);display:flex;flex-direction:column}:host(.ic-side-navigation-inline) .bottom-wrapper{position:sticky}:host(.ic-side-navigation-dark) .bottom-wrapper{border-top:var(--keyline-darken)}.top-bar{display:flex;flex-direction:row;align-items:center;min-height:var(--side-navigation-height);padding:var(--ic-space-xs);box-sizing:border-box;background-color:var(--ic-side-navigation-background);position:fixed;top:0;left:0;right:0;border-bottom:var(--keyline-lighten);box-shadow:var(--ic-elevation-overlay);z-index:2;overflow:hidden;visibility:visible}:host(.ic-side-navigation-inline) .top-bar{position:absolute}:host(.ic-side-navigation-dark) .top-bar{border-bottom:var(--keyline-darken)}.top-bar.dark a:focus{box-shadow:var(--ic-border-focus)}.app-title-wrapper{display:flex;margin-left:var(--ic-space-xs);border-left:var(--keyline-lighten);padding-left:var(--ic-space-xxs);color:var(--ic-side-navigation-text);align-items:center}:host(.ic-side-navigation-dark) .app-title-wrapper{border-left:var(--keyline-darken)}.app-title-wrapper ic-typography h1{margin:0}@media screen and (min-width: 340px){.app-title-wrapper ic-typography{margin-left:var(--ic-space-xs)}}:host .title-link{display:flex;align-items:center;transition:box-shadow var(--ic-easing-transition-fast),\n background-color var(--ic-easing-transition-fast);text-decoration:none;padding:var(--ic-space-xxs);color:var(--ic-side-navigation-text)}:host .title-link:visited,:host .title-link:active{color:var(--ic-side-navigation-text)}slot[name=\"app-title\"]::slotted(a),slot[name=\"app-icon\"]::slotted(a){color:var(--ic-side-navigation-text);outline:none;text-decoration:none;display:flex}slot[name=\"app-title\"]::slotted(ic-typography),slot[name=\"app-title\"]::slotted(a){margin-left:var(--ic-space-xs) !important}slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-subtitle-small)}@media screen and (min-width: 577px){:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]::slotted(a){position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(ic-typography),:host(.sm-collapsed) slot[name=\"app-title\"]:dir(rtl)::slotted(a){right:-9999px}:host(.sm-expanded) slot[name=\"app-title\"]::slotted(a){font:var(--ic-font-h3) !important;font-weight:var(--ic-font-weight-semibold) !important;margin-left:var(--ic-space-xs) !important}}:host .title-link:hover{border-radius:var(--ic-border-radius);background-color:var(--ic-side-navigation-hover)}:host .title-link:active{background-color:var(--ic-side-navigation-pressed)}: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);background-color:transparent}:host .title-link ic-typography{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.app-title-wrapper ::slotted(svg){fill:var(--ic-side-navigation-text)}.app-icon-container{display:none}.button-label{display:flex;align-items:center}.mobile-top-bar-menu-icon{display:flex}.menu-button{width:6.5rem}.app-status-wrapper{inset:0 var(--ic-space-sm) 0 3.5rem;width:auto;display:flex;gap:var(--ic-space-xs);padding:var(--ic-space-sm) 0;justify-content:flex-end;align-items:flex-end;pointer-events:none;height:-moz-fit-content;height:fit-content;margin:0 var(--ic-space-xs)}.app-status-wrapper .app-version{display:flex;overflow-wrap:break-word;padding-bottom:var(--ic-space-xxs)}.app-status-wrapper .app-status{display:flex;border-radius:1rem;background-color:var(--ic-side-navigation-text);color:var(--ic-side-navigation-status-tag-text);padding:var(--ic-space-xxs) var(--ic-space-lg);min-width:1rem}.app-status-wrapper .app-status-text{overflow-wrap:break-word}:host(.ic-side-navigation-dark) .app-status-wrapper .app-status{--ic-typography-color:var(--ic-architectural-white)}.navigation-landmark-title{position:absolute;width:var(--ic-space-1px);height:var(--ic-space-1px);padding:0;margin:calc(-1 * var(--ic-space-1px));overflow:hidden}::slotted(ic-navigation-group){--navigation-group-height:2.75rem;--navigation-group-justify-content:space-between;--navigation-group-hover:var(--ic-side-navigation-hover);--navigation-group-text-hover:var(--ic-side-navigation-text);--navigation-item-child-height:3.5rem;--navigation-item-child-active:var(--ic-action-dark-bg-pressed);--navigation-item-child-color:var(--ic-side-navigation-text);--navigation-group-expand-toggle-padding:0.25rem}::slotted(ic-navigation-item),::slotted(ic-navigation-group){--navigation-item-justify-content:flex-start;--navigation-item-min-height:56px;--navigation-item-height:auto}.bottom-side-nav{position:relative;align-content:flex-end;min-height:var(--sm-side-navigation-top-bar-height)}.bottom-side-nav ic-divider{position:absolute;top:0}.primary-navigation{flex:1;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:none}.primary-navigation::-webkit-scrollbar{display:none}.primary-navigation,.secondary-navigation{overflow-x:hidden}.bottom-side-nav .menu-expand-button{position:absolute;display:none}.menu-visibility-visible{visibility:visible;width:100%}.app-title-show{min-width:15.5rem}:host(.side-display){display:flex;flex-direction:column;height:100vh;position:var(--side-navigation-position);left:0;top:0;bottom:0}:host(.side-display) .app-icon-container{height:40px;display:flex;align-items:center}:host(.side-display) .top-bar{--side-navigation-height:var(--sm-side-navigation-top-bar-height);position:relative;padding:0;box-shadow:none}:host(.ic-side-navigation-inline.side-display) .top-bar{position:sticky}:host(.anchor-right.side-display) .top-bar{box-shadow:0.188rem 0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.anchor-right.side-display) .bottom-wrapper{box-shadow:0.188rem -0.188rem 0.5rem rgb(0 0 0 / 20%)}:host(.side-display) .side-navigation,:host(.side-display) .top-bar{width:var(--sm-side-navigation-top-bar-height)}:host(.sm-collapsed.side-display){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.collapsed-labels.side-display){width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-expanded.side-display){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow);box-shadow:var(--ic-elevation-overlay)}:host(.side-display) .side-navigation{--side-navigation-position-top:0;flex:1;position:relative;top:auto;left:auto;bottom:auto}:host(.ic-side-navigation-inline.side-display) .side-navigation{position:relative}:host(.anchor-right.side-display) .side-navigation{left:auto;right:0}:host(.side-display) .app-title-wrapper{margin-left:0;border-left:none;padding:var(--ic-space-xs) var(--ic-space-sm)}:host(.side-display) .app-title-wrapper ::slotted(svg){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.side-display) .app-title-wrapper ic-typography{font-weight:var(--ic-font-weight-semibold)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography{position:absolute;left:-9999px;opacity:0;transition:opacity var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) .app-title-wrapper ic-typography:dir(rtl){right:-9999px}:host(.sm-expanded.side-display) ic-typography{position:relative;left:0}:host(.sm-expanded.side-display) :is(.side-navigation,.top-bar){width:var(--side-navigation-width);transition:width var(--ic-easing-transition-slow)}:host(.sm-collapsed.side-display) :is(.side-navigation,.top-bar){width:var(--sm-side-navigation-top-bar-height);transition:width var(--ic-easing-transition-slow)}:host(.anchor-right.sm-expanded.side-display) :is(.side-navigation,.top-bar){left:auto;right:0}:host(.side-display) .app-status-wrapper,:host(.sm-collapsed.side-display) .app-status-wrapper{display:none;margin-left:0}:host(.sm-expanded.side-display) .app-status-wrapper{display:flex;max-width:16rem;margin-right:calc(var(--ic-space-xxxs) + var(--ic-space-xs))}:host(.side-display) .bottom-side-nav{justify-items:flex-end;align-items:flex-end;justify-content:flex-end;display:flex;outline:none}:host(.side-display) .bottom-side-nav .menu-expand-button{padding-left:var(--ic-space-md);height:var(--sm-side-navigation-top-bar-height);width:100%;color:var(--ic-side-navigation-text);background-color:transparent;outline:var(--ic-hc-focus-outline);border:none;cursor:pointer;display:flex;transition:var(--ic-easing-transition-fast)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button{height:100%}:host(.side-display) .bottom-side-nav .menu-expand-button svg{justify-items:flex-start;align-self:center;display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.side-display) .bottom-side-nav .menu-expand-button:hover{background-color:var(--ic-side-navigation-hover)}:host(.side-display) .bottom-side-nav .menu-expand-button:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background-color:transparent}:host(.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1);transition:transform var(--ic-easing-transition-slow)}:host(.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1);transition:transform var(--ic-easing-transition-slow);align-self:flex-end;margin-bottom:0.875rem}:host(.anchor-right.sm-collapsed.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(-1)}:host(.anchor-right.sm-expanded.side-display) .bottom-side-nav .menu-expand-button svg{transform:scaleX(1)}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item){--navigation-item-label-opacity:1}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-item),:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:0;--navigation-item-min-height:3.5rem;--navigation-item-height:3.5rem}:host(.sm-expanded.side-display) ::slotted(ic-navigation-item),:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-item-label-opacity:1;--navigation-item-height:auto;--navigation-item-min-height:3.5rem;--navigation-item-width:20rem;--navigation-item-side-nav-right:var(--ic-space-xl);--navigation-group-width:20rem}:host(.sm-collapsed.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:absolute;--navigation-group-title-position-left:-9999px;--navigation-group-title-opacity:none}:host(.sm-expanded.side-display) ::slotted(ic-navigation-group){--navigation-group-title-position:relative;--navigation-group-title-position-left:0;--navigation-group-expand-toggle-padding:0.25rem;--navigation-group-title-opacity:flex}:host(.sm-collapsed.collapsed-labels.side-display) .side-navigation,:host(.sm-collapsed.collapsed-labels.side-display) .top-bar{width:var(--sm-side-navigation-collapsed-labels-width)}:host(.sm-collapsed.collapsed-labels.side-display) .menu-expand-button{padding:0}:host(.sm-collapsed.collapsed-labels.side-display) .app-title-wrapper{width:100%;justify-content:center}:host(.sm-collapsed.collapsed-labels.side-display) ::slotted(ic-navigation-group){--navigation-group-justify-content:center;--navigation-item-label-opacity:1;--navigation-group-item-min-width:100%;--navigation-group-expand-toggle-padding:1rem}:host(.collapsed-labels.side-display) .bottom-side-nav .menu-expand-button{justify-content:center}:host(.side-display) .collapsed-icon-labels-start{visibility:hidden;opacity:0}:host(.side-display) .collapsed-icon-labels-end{visibility:visible;opacity:1;transition:visibility 0s, opacity var(--ic-easing-transition-slow)}@media screen and (max-width: 419px){.top-bar{height:var(--side-navigation-height)}.side-navigation{width:100%}}@media screen and (min-width: 340px){.app-icon-container{display:flex}}@media screen and (min-width: 993px){:host(.side-display){position:sticky;left:auto;top:0;bottom:0}:host(.sm-expanded.side-display){box-shadow:none}}@media (forced-colors: active){.side-navigation,.top-bar{border-right:var(--ic-border-hc)}.menu-expand-button{color:Highlight !important}slot[name=\"app-icon\"]::slotted(svg){fill:currentcolor}}";
|
19734
19641
|
var IcSideNavigationStyle0 = icSideNavigationCss;
|
19735
19642
|
|
19736
19643
|
/**
|
@@ -20164,7 +20071,7 @@ class SideNavigation {
|
|
20164
20071
|
isAppNameSubtitleVariant,
|
20165
20072
|
appTitle: appTitle || "",
|
20166
20073
|
};
|
20167
|
-
return (hAsync(Host, { key: '
|
20074
|
+
return (hAsync(Host, { key: '436ddf7e690787edf148eefe828faab20800accf', class: {
|
20168
20075
|
"xs-menu-open": menuOpen && isSDevice,
|
20169
20076
|
"xs-menu-close": !menuOpen && isSDevice,
|
20170
20077
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
@@ -20173,12 +20080,12 @@ class SideNavigation {
|
|
20173
20080
|
[`ic-side-navigation-${IcBrandForegroundEnum$1.Dark}`]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
20174
20081
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
20175
20082
|
["ic-side-navigation-inline"]: !!inline,
|
20176
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '
|
20083
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: '0a1e0bfaabbba9ab87b9ca2683784b8cb8f6e22e', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), hAsync("div", { key: 'ccb38804313b951d4031e749d902fcc969ae5d4c', class: "side-navigation-inner" }, isSlotUsed$1(this.el, "primary-navigation") && (hAsync("nav", { key: '34dd687fdf758aec64d3e26b602f8eff43e50640', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, hAsync("span", { key: '26221987ce6680a1c8907e420c2d7ada899b7df5', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), hAsync("ul", { key: '711b4dd66d08757769e655b1c389cbd6686a64ab', class: "navigation-list" }, hAsync("slot", { key: 'bc2d3e56ea19ae85b4d189a62d15996d273f76a5', name: "primary-navigation" }))))), hAsync("div", { key: '9e238999491c652791e0f0ad1fd78efed7cbdec3', class: {
|
20177
20084
|
["bottom-wrapper"]: true,
|
20178
20085
|
["classification-spacing"]: hasClassificationBanner(),
|
20179
|
-
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '
|
20086
|
+
} }, isSlotUsed$1(this.el, "secondary-navigation") && (hAsync("nav", { key: '4a112b17cbf6007dae1099548b38990463c7ae3e', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, hAsync("span", { key: 'ee312d7d1150ac06d6f83f6fabcf406c09988345', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), hAsync("ul", { key: 'd38968324a5737de02b78d30b063c973f6828635', class: "navigation-list" }, hAsync("slot", { key: '1c0846aa364a9421696127688a126df465bd7529', name: "secondary-navigation" })))), hAsync("div", { key: '997739493b5e2bf1e3c34b5f76c0f63c9eb10bc5', class: "bottom-side-nav" }, this.hasSecondaryNavigation && hAsync("ic-divider", { key: 'fa864a0fc1ef72e18e9dc2c39fcee48d30c020e9' }), displayExpandBtn && (hAsync("button", { key: '204eac793e743c630eb7febbe4d0f748df93ef65', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), hAsync("div", { key: '99fe7d81476680ce9d77e67cfd679dfdcc0a0523', class: "app-status-wrapper" }, status !== "" && (hAsync("div", { key: '164bcb345294ca2d623463347e0b2ba47c055191', class: {
|
20180
20087
|
["app-status"]: true,
|
20181
|
-
} }, hAsync("ic-typography", { key: '
|
20088
|
+
} }, hAsync("ic-typography", { key: '0c5bec1d433278488b3c06c6ddd4a0c1e676e9d8', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version !== "" && (hAsync("ic-typography", { key: '64a0a27816a364a4521fd4504c2d31f4e9ac3ecc', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
20182
20089
|
}
|
20183
20090
|
get el() { return getElement(this); }
|
20184
20091
|
static get watchers() { return {
|
@@ -20241,11 +20148,11 @@ class Skeleton {
|
|
20241
20148
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
20242
20149
|
}
|
20243
20150
|
: undefined;
|
20244
|
-
return (hAsync(Host, { key: '
|
20151
|
+
return (hAsync(Host, { key: 'bc26af3bed291b88d9eba417aba8b1bd20d02071', class: {
|
20245
20152
|
skeleton: true,
|
20246
20153
|
"ic-skeleton-circle": variant === "circle",
|
20247
20154
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20248
|
-
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: '
|
20155
|
+
}, style: style, "aria-disabled": "true" }, hAsync("slot", { key: 'b7e19d9b7fc55069b1a5a3d82698378fb2a4fff4' })));
|
20249
20156
|
}
|
20250
20157
|
get el() { return getElement(this); }
|
20251
20158
|
static get style() { return IcSkeletonStyle0; }
|
@@ -20302,9 +20209,9 @@ class SkipLink {
|
|
20302
20209
|
}
|
20303
20210
|
render() {
|
20304
20211
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
20305
|
-
return (hAsync(Host, { key: '
|
20212
|
+
return (hAsync(Host, { key: 'a6229f2e79e16d35283ae63e617e5dbee39f1a31', class: {
|
20306
20213
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20307
|
-
} }, hAsync("ic-link", { key: '
|
20214
|
+
} }, hAsync("ic-link", { key: 'f54ffd72b46d9124023ef6bfe0cf60f7b1091c25', class: {
|
20308
20215
|
"display-top": !inline,
|
20309
20216
|
"full-width": !!fullWidth,
|
20310
20217
|
"show-background": !transparentBackground,
|
@@ -20369,12 +20276,12 @@ class StatusTag {
|
|
20369
20276
|
}
|
20370
20277
|
render() {
|
20371
20278
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
20372
|
-
return (hAsync(Host, { key: '
|
20279
|
+
return (hAsync(Host, { key: '0ff5d3de133c300d744be1d57a42e5a393735572', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, hAsync("strong", { key: '09e1eeedac25e8128fe42a6fb5435dc06dc7d331', class: {
|
20373
20280
|
["tag"]: true,
|
20374
20281
|
[`${variant}-${status}`]: true,
|
20375
20282
|
["outlined"]: variant === "outlined",
|
20376
20283
|
[`${size}`]: true,
|
20377
|
-
} }, hAsync("ic-typography", { key: '
|
20284
|
+
} }, hAsync("ic-typography", { key: '8543c7387e3337ec720eecaf3dbebbc09edfcb6d', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, hAsync("span", { key: '3673500383906cd09f4f409abff0c2aa12a0c30f' }, label)))));
|
20378
20285
|
}
|
20379
20286
|
static get style() { return IcStatusTagStyle0; }
|
20380
20287
|
static get cmpMeta() { return {
|
@@ -20458,29 +20365,29 @@ class Step {
|
|
20458
20365
|
// STATUS ICON FOR COMPACT STEP
|
20459
20366
|
let statusIcon;
|
20460
20367
|
if (this.type === "completed" || this.compactStepStyling === "completed") {
|
20461
|
-
statusIcon = (hAsync("span", { key: '
|
20368
|
+
statusIcon = (hAsync("span", { key: '8831990f0422a89e28d83c33bf98e6f5e47d09a6', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
20462
20369
|
}
|
20463
20370
|
else if (this.type === "disabled" ||
|
20464
20371
|
this.compactStepStyling === "disabled") {
|
20465
|
-
statusIcon = (hAsync("span", { key: '
|
20372
|
+
statusIcon = (hAsync("span", { key: 'aedd81eacbe9ca6a4e331142d09053926b00dcd4', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
20466
20373
|
}
|
20467
20374
|
// COMPACT STEP COMPONENT
|
20468
|
-
const compactStep = (hAsync("div", { key: '
|
20375
|
+
const compactStep = (hAsync("div", { key: '384c84c08600c48982959a9a19a54e638bdd76a9', class: {
|
20469
20376
|
["step"]: true,
|
20470
20377
|
["current"]: !!this.current,
|
20471
20378
|
[`compact-step-${this.compactStepStyling}`]: !!this.compactStepStyling,
|
20472
20379
|
["disabled"]: this.type === "disabled" || this.compactStepStyling === "disabled",
|
20473
|
-
} }, hAsync("ic-loading-indicator", { key: '
|
20380
|
+
} }, hAsync("ic-loading-indicator", { key: 'fb3373a16a3519a77689395882b77b07f84d00b2', class: {
|
20474
20381
|
"compact-step-progress-indicator": true,
|
20475
20382
|
"not-required": this.type === "disabled" ||
|
20476
20383
|
this.compactStepStyling === "disabled",
|
20477
|
-
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: '
|
20384
|
+
}, "aria-hidden": "true", size: "small", "inner-label": this.stepNum, progress: this.progress }), hAsync("div", { key: 'e404a8d7fd56af5a6c3b38e7dd146ccbf6c0a921', class: "heading-area" }, hAsync("ic-typography", { key: 'e2d2d3a3b2e2d1080a500f06c11fd2b19305e733', variant: "h4", class: "heading" }, this.heading), hAsync("div", { key: 'a04253bd63d0e9cbc2ebd2ccc6c6cf1d684611b4', class: "info-line" }, hAsync("ic-typography", { key: '35699c8fd101642bcedacbb0e636f5f5e72d87d0', variant: "caption", class: "step-num" }, `${this.stepNum} of ${this.lastStepNum}`, hAsync("span", { key: '0bc9e891b17f66419150733982711999983197a1', class: "visually-hidden" }, " steps")), (this.subheading ||
|
20478
20385
|
this.type === "completed" ||
|
20479
20386
|
this.type === "disabled" ||
|
20480
20387
|
(this.variant === "compact" &&
|
20481
20388
|
!!this.compactStepStyling &&
|
20482
20389
|
this.compactStepStyling !== "active") ||
|
20483
|
-
!!this.status) && (hAsync("div", { key: '
|
20390
|
+
!!this.status) && (hAsync("div", { key: 'ce2356ecbc86e3805ddf84d7fa785f2a1495ef60', class: "step-status" }, statusIcon !== undefined && statusIcon, (this.subheading || stepType) && (hAsync("ic-typography", { key: 'f9ada98e6d45ff5dcd8784dbb24c4402b7bd378e', variant: "caption" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20484
20391
|
? this.subheading
|
20485
20392
|
: this.type === "disabled" ||
|
20486
20393
|
(this.variant === "compact" &&
|
@@ -20493,26 +20400,26 @@ class Step {
|
|
20493
20400
|
// ICON FOR DEFAULT STEP
|
20494
20401
|
let icon;
|
20495
20402
|
if (this.type !== "completed") {
|
20496
|
-
icon = (hAsync("ic-typography", { key: '
|
20403
|
+
icon = (hAsync("ic-typography", { key: '5b3734765f9d5e5db8f0b2818ffd471817a96cc5', variant: "subtitle-small" }, hAsync("span", { key: 'd4d3ffd87c95a0b98fce8a437a6afb3f4639993f', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
20497
20404
|
}
|
20498
20405
|
else {
|
20499
|
-
icon = (hAsync("div", { key: '
|
20406
|
+
icon = (hAsync("div", { key: '42447f9ec070e7e284aecfd49983259650d9abd3', class: "step-icon-inner", "aria-hidden": "true" }, hAsync("span", { key: '4c7469fba1cf544d1d48c209c25db0bcaca14309', class: "check-icon", innerHTML: checkIcon })));
|
20500
20407
|
}
|
20501
20408
|
// STEP CONNECT FOR DEFAULT STEP
|
20502
|
-
const partialBar = this.type === "current" && (hAsync("div", { key: '
|
20503
|
-
const finalStep = !this.lastStep && (hAsync("div", { key: '
|
20409
|
+
const partialBar = this.type === "current" && (hAsync("div", { key: '800764f8ca21ac1118c77ed860a163b3103fe62e', class: "step-connect-inner" }));
|
20410
|
+
const finalStep = !this.lastStep && (hAsync("div", { key: 'e5c0f38f7140800d60e5046d77d6cde34c5e7bd5', class: {
|
20504
20411
|
["step-connect"]: true,
|
20505
20412
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
20506
20413
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20507
20414
|
} }, partialBar));
|
20508
20415
|
// DEFAULT STEP COMPONENT
|
20509
|
-
const defaultStep = (hAsync("div", { key: '
|
20416
|
+
const defaultStep = (hAsync("div", { key: 'cdfd23786b75a88fe1630318d8a1369a89090544', class: {
|
20510
20417
|
["step"]: true,
|
20511
20418
|
[`${this.type}`]: true,
|
20512
|
-
} }, hAsync("div", { key: '
|
20419
|
+
} }, hAsync("div", { key: 'c83625070a1ffe89fc53f66d55f06c994f868570', class: "step-top" }, hAsync("div", { key: 'a6758050efffeb98522092fefa9b1261b3d9217b', class: "step-icon" }, icon), finalStep), (this.heading || this.subheading || this.status) && (hAsync("div", { key: '3ecf8d32da66fe336b7c0540c47726d060e8eaf8', class: "heading-area" }, this.heading && (hAsync("ic-typography", { key: '79557ec3d9a26be0fee2253a58c2f09132322017', variant: "subtitle-large", class: "heading" }, this.heading)), this.heading && (this.subheading || this.status) && (hAsync("ic-typography", { key: 'f5a90f68ebc0721fec936541824ab79b415f566d', variant: "caption", class: "subheading" }, this.subheading !== null && isPropDefined$1(this.subheading)
|
20513
20420
|
? this.subheading
|
20514
20421
|
: stepStatus))))));
|
20515
|
-
return (hAsync(Host, { key: '
|
20422
|
+
return (hAsync(Host, { key: '0cb6b6649c9af4565e5f663131b800a79b9b040d', role: "listitem", "aria-label": `Step ${this.stepNum}${ariaLabel}`, "aria-current": (this.current || this.type === "current") && "step", class: {
|
20516
20423
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
20517
20424
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
20518
20425
|
[`ic-step-${this.variant}`]: true,
|
@@ -20793,11 +20700,11 @@ class Stepper {
|
|
20793
20700
|
checkResizeObserver$1(this.runResizeObserver);
|
20794
20701
|
}
|
20795
20702
|
render() {
|
20796
|
-
return (hAsync(Host, { key: '
|
20703
|
+
return (hAsync(Host, { key: 'a4b87028ee91e542fd7d2b66689e8fabe33a9358', class: {
|
20797
20704
|
[`ic-stepper-${this.variant}`]: true,
|
20798
20705
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
20799
20706
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
20800
|
-
} }, hAsync("ul", { key: '
|
20707
|
+
} }, hAsync("ul", { key: '65236609f6b2109bba5bbb88d084f9fd4e88d48a', class: "step-item-list" }, hAsync("slot", { key: '2b542740488d922dca26cabda564db76de1ffd82' }))));
|
20801
20708
|
}
|
20802
20709
|
get el() { return getElement(this); }
|
20803
20710
|
static get watchers() { return {
|
@@ -20925,17 +20832,17 @@ class Switch {
|
|
20925
20832
|
render() {
|
20926
20833
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
20927
20834
|
const isSmall = size === "small";
|
20928
|
-
renderHiddenInput$1(
|
20929
|
-
return (hAsync(Host, { key: '
|
20835
|
+
renderHiddenInput$1(this.el, checkedState ? value : "", name, disabled);
|
20836
|
+
return (hAsync(Host, { key: '78082265a9f3ee1e14ca59acd5765a8b282cfc5e', class: {
|
20930
20837
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
20931
|
-
} }, hAsync("label", { key: '
|
20838
|
+
} }, hAsync("label", { key: 'e3e9c1f766c70c39aa23b56b711d908d9f9f1ac9', class: {
|
20932
20839
|
"ic-switch-container": true,
|
20933
20840
|
"ic-switch-disabled": !!disabled,
|
20934
20841
|
"ic-switch-small": isSmall,
|
20935
|
-
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '
|
20842
|
+
}, htmlFor: inputId }, !hideLabel && (hAsync("ic-input-label", { key: '2f22e10e5bc446aa74144819e4545bb8b83d68f4', for: inputId, label: label, helperText: helperText, readonly: true, disabled: disabled, class: {
|
20936
20843
|
"ic-switch-label": true,
|
20937
20844
|
"ic-switch-label-small": isSmall,
|
20938
|
-
} })), !hideLabel && hAsync("span", { key: '
|
20845
|
+
} })), !hideLabel && hAsync("span", { key: 'a191a1668fea25e3a4200730fc14ba544ca92688', class: "ic-switch-line-break" }), hAsync("input", { key: 'a6f9af971c7552b2a445bbb74ade01c86081d862', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText$1(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: 'd2f404681f8744c8faf160b529eae4190f0b4325', class: "ic-switch-toggle" }, hAsync("svg", { key: '28654e2c158d3271aa200e5a4c74bc61e9982ac7', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("line", { key: '1314ee2e478b690b6a0b00e7c6220bae1e2237df', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), hAsync("svg", { key: 'aaf0e443f71380a1bbbb3a5ece540171e28de0a5', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '6d7a6785953666bb0a9336794e5b1fb33fded30f', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), hAsync("slot", { key: 'd96bdf90a4598454c255d59fe202d60867533032', name: "right-adornment" }))));
|
20939
20846
|
}
|
20940
20847
|
static get delegatesFocus() { return true; }
|
20941
20848
|
get el() { return getElement(this); }
|
@@ -21058,13 +20965,13 @@ class Tab {
|
|
21058
20965
|
}
|
21059
20966
|
render() {
|
21060
20967
|
const { disabled, selected, theme, monochrome, handleClick, handleFocus, handleMouseDown, } = this;
|
21061
|
-
return (hAsync(Host, { key: '
|
20968
|
+
return (hAsync(Host, { key: '52491eaab3f7b7c56d59a13b4c57970642e04465', class: {
|
21062
20969
|
["with-transition"]: !this.isInitialRender,
|
21063
20970
|
["ic-tab-selected"]: !!selected,
|
21064
20971
|
["ic-tab-disabled"]: !!disabled,
|
21065
20972
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21066
20973
|
["ic-tab-monochrome"]: !!monochrome,
|
21067
|
-
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { key: '
|
20974
|
+
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { key: '89b73a37ff1080ae55554ebed5afc5f3146bbfb0', name: "icon" }), hAsync("ic-typography", { key: '61d61ac5b3739403ebc02a61509289e5f49edb31', class: "ic-tab-label", variant: "label" }, hAsync("span", { key: 'a57666e5fa982b54d8d3f2fa4774edcf11d7300e' }, hAsync("slot", { key: '30700a48cbb5226d548ce0944d83bfaf85b9de39' }))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { key: 'ee78c3cc07ddf5609ca26e1b6261c023b068571e', name: "badge" })));
|
21068
20975
|
}
|
21069
20976
|
get el() { return getElement(this); }
|
21070
20977
|
static get watchers() { return {
|
@@ -21313,7 +21220,7 @@ class TabContext {
|
|
21313
21220
|
}
|
21314
21221
|
}
|
21315
21222
|
render() {
|
21316
|
-
return hAsync("slot", { key: '
|
21223
|
+
return hAsync("slot", { key: '62b7b3babe269d227c3225faedd4505935ccecb8' });
|
21317
21224
|
}
|
21318
21225
|
get el() { return getElement(this); }
|
21319
21226
|
static get watchers() { return {
|
@@ -21359,11 +21266,11 @@ class TabGroup {
|
|
21359
21266
|
}
|
21360
21267
|
render() {
|
21361
21268
|
const { inline, theme, label, monochrome } = this;
|
21362
|
-
return (hAsync(Host, { key: '
|
21269
|
+
return (hAsync(Host, { key: 'd4354a73edcfe5ed044e2acf6d04256eddcb7f40', role: "tablist", "aria-label": label, class: {
|
21363
21270
|
["ic-tab-group-inline"]: !!inline,
|
21364
21271
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21365
21272
|
["ic-tab-group-monochrome"]: !!monochrome,
|
21366
|
-
} }, hAsync("ic-horizontal-scroll", { key: '
|
21273
|
+
} }, hAsync("ic-horizontal-scroll", { key: '42cf7391e17b38a3489e77bc3d882aa31902c14a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, hAsync("div", { key: '81270d7ad5567b23ab8098679705c3818b3bfd35', class: "tabs-container" }, hAsync("slot", { key: 'ee7b2ece3edc06146170b759f2c08e22bca9fc7f' })))));
|
21367
21274
|
}
|
21368
21275
|
static get delegatesFocus() { return true; }
|
21369
21276
|
static get style() { return IcTabGroupStyle0; }
|
@@ -21406,10 +21313,10 @@ class TabPanel {
|
|
21406
21313
|
}
|
21407
21314
|
render() {
|
21408
21315
|
const { active, theme } = this;
|
21409
|
-
return (hAsync(Host, { key: '
|
21316
|
+
return (hAsync(Host, { key: '5da4dba2bf404436c8b49173f9056d56912e9049', class: {
|
21410
21317
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21411
21318
|
"ic-tab-panel-hidden": !active,
|
21412
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '
|
21319
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, hAsync("div", { key: '9f7b4cbaa9a2c5a72307ca07097cdb50fd93adb2' }, hAsync("slot", { key: 'f97121f2a2d3092c18bd15c82743ba2a988a1134' }))));
|
21413
21320
|
}
|
21414
21321
|
get el() { return getElement(this); }
|
21415
21322
|
static get style() { return IcTabPanelStyle0; }
|
@@ -21447,6 +21354,7 @@ class TextField {
|
|
21447
21354
|
this.icFocus = createEvent(this, "icFocus", 7);
|
21448
21355
|
this.icInput = createEvent(this, "icInput", 7);
|
21449
21356
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
21357
|
+
this.icScroll = createEvent(this, "icScroll", 7);
|
21450
21358
|
this.inheritedAttributes = {};
|
21451
21359
|
this.hostMutationObserver = null;
|
21452
21360
|
this.numChars = 0;
|
@@ -21455,10 +21363,6 @@ class TextField {
|
|
21455
21363
|
this.minCharactersUnattained = false;
|
21456
21364
|
this.maxValueExceeded = false;
|
21457
21365
|
this.minValueUnattained = false;
|
21458
|
-
/**
|
21459
|
-
* @internal Used to identify whether inputting any text triggers more predictions
|
21460
|
-
*/
|
21461
|
-
this.ariaAutocomplete = undefined;
|
21462
21366
|
/**
|
21463
21367
|
* The automatic capitalisation of the text value as it is entered/edited by the user.
|
21464
21368
|
* Available options: "off", "none", "on", "sentences", "words", "characters".
|
@@ -21573,6 +21477,10 @@ class TextField {
|
|
21573
21477
|
* 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.
|
21574
21478
|
*/
|
21575
21479
|
this.theme = "inherit";
|
21480
|
+
/**
|
21481
|
+
* @internal If `true`, an ellipsis will be displayed at the end of the value if the value is longer than the container.
|
21482
|
+
*/
|
21483
|
+
this.truncateValue = false;
|
21576
21484
|
/**
|
21577
21485
|
* The type of control to display. The default type is text.
|
21578
21486
|
*/
|
@@ -21603,9 +21511,9 @@ class TextField {
|
|
21603
21511
|
this.value = "";
|
21604
21512
|
this.initialValue = this.value;
|
21605
21513
|
this.checkChildHydration = () => {
|
21606
|
-
var _a;
|
21607
|
-
|
21608
|
-
|
21514
|
+
var _a, _b;
|
21515
|
+
if (this.hideLabel ||
|
21516
|
+
((_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("ic-typography")) === null || _b === void 0 ? void 0 : _b.classList.contains("hydrated"))) {
|
21609
21517
|
this.setFocus();
|
21610
21518
|
clearInterval(this.interval);
|
21611
21519
|
}
|
@@ -21621,7 +21529,7 @@ class TextField {
|
|
21621
21529
|
this.getMaxCharactersReached = (value) => {
|
21622
21530
|
this.numChars = this.getNumberOfCharacters(value);
|
21623
21531
|
this.maxCharactersReached =
|
21624
|
-
this.maxCharacters > 0
|
21532
|
+
this.maxCharacters > 0 && this.numChars >= this.maxCharacters;
|
21625
21533
|
if (this.maxCharactersWarning && !this.maxCharactersReached) {
|
21626
21534
|
this.maxCharactersWarning = false;
|
21627
21535
|
}
|
@@ -21633,16 +21541,19 @@ class TextField {
|
|
21633
21541
|
this.onBlur = (ev) => {
|
21634
21542
|
const target = ev.target;
|
21635
21543
|
target.removeEventListener("wheel", this.onWheel);
|
21636
|
-
const value =
|
21544
|
+
const { value } = target;
|
21637
21545
|
this.numChars = value.length;
|
21638
21546
|
this.minCharactersUnattained =
|
21639
|
-
this.minCharacters > 0
|
21640
|
-
this.icBlur.emit({ value
|
21547
|
+
this.minCharacters > 0 && this.numChars < this.minCharacters;
|
21548
|
+
this.icBlur.emit({ value });
|
21641
21549
|
};
|
21642
21550
|
this.onFocus = (ev) => {
|
21643
21551
|
const target = ev.target;
|
21644
21552
|
target.addEventListener("wheel", this.onWheel);
|
21645
|
-
this.icFocus.emit({ value:
|
21553
|
+
this.icFocus.emit({ value: target.value });
|
21554
|
+
};
|
21555
|
+
this.onTextAreaScroll = () => {
|
21556
|
+
this.icScroll.emit();
|
21646
21557
|
};
|
21647
21558
|
this.onWheel = (ev) => {
|
21648
21559
|
const target = ev.target;
|
@@ -21750,7 +21661,7 @@ class TextField {
|
|
21750
21661
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
21751
21662
|
}
|
21752
21663
|
render() {
|
21753
|
-
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, } = this;
|
21664
|
+
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersMessage, maxCharactersWarning, maxCharactersReached, maxMessage, minCharacters, minCharactersMessage, minCharactersUnattained, minMessage, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, theme, hideLabel, type, autocapitalize, ariaActiveDescendant, inheritedAttributes, ariaExpanded, ariaOwns, autocomplete, role, } = this;
|
21754
21665
|
const el = this.el;
|
21755
21666
|
const disabledMode = readonly || disabled;
|
21756
21667
|
const currentStatus = maxValueExceeded ||
|
@@ -21782,43 +21693,42 @@ class TextField {
|
|
21782
21693
|
!validationInlineInternal;
|
21783
21694
|
const multiline = rows > 1;
|
21784
21695
|
const charsRemaining = maxNumChars - numChars;
|
21785
|
-
const hiddenRemainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
|
21786
21696
|
const hiddenCharCountDescId = maxCharacters > 0 ? `${inputId}-char-count-desc` : "";
|
21787
21697
|
const describedBy = `${hiddenCharCountDescId} ${getInputDescribedByText$1(inputId, helperText !== "", showStatusText)}`.trim();
|
21788
21698
|
const disabledText = disabledMode && !readonly;
|
21789
21699
|
const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
|
21790
21700
|
const invalid = `${currentStatus === IcInformationStatus$1.Error}`;
|
21791
21701
|
hiddenInput
|
21792
|
-
? renderHiddenInput$1(
|
21702
|
+
? renderHiddenInput$1(this.el, value, name, disabledMode)
|
21793
21703
|
: removeHiddenInput(this.el);
|
21794
|
-
return (hAsync(Host, { key: '
|
21795
|
-
"ic-text-field-full-width":
|
21704
|
+
return (hAsync(Host, { key: '392b43ac248502539bc00717694c10a24818551e', class: {
|
21705
|
+
"ic-text-field-full-width": fullWidth,
|
21706
|
+
"ic-text-field-disabled": disabledMode,
|
21796
21707
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
21797
|
-
|
21798
|
-
|
21799
|
-
readonly: !!readonly,
|
21708
|
+
} }, hAsync("ic-input-container", { key: '59ec38e8e8e934cf48123303f68a7ca863badd83', readonly: readonly, disabled: disabledMode }, !hideLabel && (hAsync("ic-input-label", { key: 'fa61768dd93e6d7a1ead043792b15b78b8d3fd26', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), hAsync("ic-input-component-container", { key: 'c6ac9c16b6c565671575ec2217e62176d7bc1359', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (hAsync("span", { key: '353b7a992bbce4060dc5fe29b05f96aedd0cf32a', class: {
|
21709
|
+
readonly,
|
21800
21710
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
21801
|
-
}, slot: "left-icon" }, hAsync("slot", { key: '
|
21802
|
-
"no-left-pad": !showLeftIcon &&
|
21803
|
-
readonly
|
21804
|
-
"truncate-value":
|
21805
|
-
}, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant":
|
21711
|
+
}, slot: "left-icon" }, hAsync("slot", { key: '8a5cbec45bedc43908caaae9ff74bc4101f995f8', 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: {
|
21712
|
+
"no-left-pad": !showLeftIcon && readonly,
|
21713
|
+
readonly,
|
21714
|
+
"truncate-value": truncateValue,
|
21715
|
+
}, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": ariaExpanded, "aria-owns": ariaOwns, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, role: role, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))) : (hAsync("textarea", Object.assign({ id: inputId, class: {
|
21806
21716
|
"no-resize": resize === false || !!readonly,
|
21807
21717
|
"no-left-pad": !showLeftIcon && !!readonly,
|
21808
21718
|
readonly: !!readonly,
|
21809
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder
|
21719
|
+
}, 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: '05d080fafd37f3c5e2894968705fe2802cd24f8a', name: "clear-button" })), isSlotUsed$1(el, "search-submit-button") && (hAsync("slot", { key: 'b4ef1fb8db068a9c547d20147e31ac798cb838b5', name: "search-submit-button" }))), isSlotUsed$1(el, "menu") && hAsync("slot", { key: '2f708851077d7cc70c6a90d2dae3f817ffdf469b', name: "menu" }), (!isEmptyString$1(validationStatus) ||
|
21810
21720
|
!isEmptyString$1(validationText) ||
|
21811
21721
|
maxNumChars > 0 ||
|
21812
21722
|
maxValueExceeded ||
|
21813
21723
|
maxCharactersWarning ||
|
21814
21724
|
minCharactersUnattained ||
|
21815
21725
|
minValueUnattained) &&
|
21816
|
-
!validationInlineInternal && (hAsync("ic-input-validation", { key: '
|
21726
|
+
!validationInlineInternal && (hAsync("ic-input-validation", { key: 'd7c7b40ed97ab62e31fe09e78bf55c796948e33a', status: this.hasStatus(currentStatus) === false ||
|
21817
21727
|
(currentStatus === IcInformationStatus$1.Success &&
|
21818
21728
|
validationInline) ||
|
21819
21729
|
validationInlineInternal
|
21820
21730
|
? ""
|
21821
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '
|
21731
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (hAsync("div", { key: '6b6d4c6b40f66756ceafc51c6ba7a336863ce030', slot: "validation-message-adornment" }, !hideCharCount && (hAsync("ic-typography", { key: '5cb893f7e84654a848bd7ec14a0820583ed5d043', variant: "caption", class: "char-count-text" }, hAsync("span", { key: 'b93ac422dbea08cf3d1f139feea1fd5ee37c6755', class: "char-count" }, numChars, "/", maxNumChars))), hAsync("span", { key: 'e3b8a947bf1e4b1dc3bd93e04bb50ffaa55ac6a0', class: "remaining-char-count-desc", "aria-live": "polite" }, `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`), hAsync("span", { key: '41353bf51d4e7264cc054f524b404519a953bec9', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
|
21822
21732
|
}
|
21823
21733
|
get el() { return getElement(this); }
|
21824
21734
|
static get watchers() { return {
|
@@ -21955,7 +21865,7 @@ class Theme {
|
|
21955
21865
|
}
|
21956
21866
|
render() {
|
21957
21867
|
const { themeClass } = this;
|
21958
|
-
return (hAsync(Host, { key: '
|
21868
|
+
return (hAsync(Host, { key: 'd994b33e982d89fdb62837456a5a1c90471d0a6a', class: themeClass }, hAsync("slot", { key: 'cc67f5ec282adfe4695a7ecf9134fba920a71a7e' })));
|
21959
21869
|
}
|
21960
21870
|
static get watchers() { return {
|
21961
21871
|
"brandColor": ["watchBrandColorPropHandler"],
|
@@ -22180,13 +22090,13 @@ class Toast {
|
|
22180
22090
|
}
|
22181
22091
|
render() {
|
22182
22092
|
const { variant, heading, message, visible, isManual, dismissButtonAriaLabel, } = this;
|
22183
|
-
return (hAsync(Host, { key: '
|
22093
|
+
return (hAsync(Host, { key: '0215a0779e769d0b9667f0b9b3899e6f9ab40c54', 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: 'b34a48203f613cbcde37d0c7a75743a1c61ded70', class: "container" }, variant && visible && (hAsync("div", { key: 'f3dea0b812b6ab3ab2528f091139716b2781b8f6', class: "toast-icon-container" }, hAsync("div", { key: '215a58acb589a65efabf3837428e131c77bc1500', class: {
|
22184
22094
|
["divider"]: true,
|
22185
22095
|
[`divider-${variant}`]: true,
|
22186
|
-
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: '
|
22096
|
+
} }), variant === "neutral" ? (hAsync("slot", { name: "neutral-icon" })) : (hAsync("span", { class: "toast-icon", innerHTML: VARIANT_ICONS[variant].icon })))), hAsync("div", { key: 'd19e6c1989aa5370383d6aafb319570fad9dbeba', class: {
|
22187
22097
|
["toast-content"]: true,
|
22188
22098
|
["no-icon"]: variant === "neutral" && !isSlotUsed$1(this.el, "neutral-icon"),
|
22189
|
-
} }, hAsync("div", { key: '
|
22099
|
+
} }, hAsync("div", { key: '3c4b2bcf5563380c57685ddf27e9b9a68c11696c', class: "toast-text" }, hAsync("ic-typography", { key: 'f04cd756f74a338d5e9fbb3db00d91219a018266', variant: "subtitle-large", class: "toast-heading" }, visible && (isManual ? hAsync("h5", null, heading) : hAsync("p", null, heading))), message && (hAsync("ic-typography", { key: 'b414af6a0f49714c133d1420a11ce0cdabc5c886', variant: "body", class: "toast-message" }, visible && hAsync("p", { key: '2d98f3b3ead56cf54a67ebf3afdaa0f46775f293' }, message)))), isSlotUsed$1(this.el, "action") && (hAsync("div", { key: '3eeaf3fe192ef351748ccabe3b51b3e588394c07', class: "toast-action-container" }, hAsync("slot", { key: 'e618b7d9f135c816d7e2a1ce79e20027edb126cb', 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 })))));
|
22190
22100
|
}
|
22191
22101
|
get el() { return getElement(this); }
|
22192
22102
|
static get watchers() { return {
|
@@ -22258,7 +22168,7 @@ class ToastRegion {
|
|
22258
22168
|
}
|
22259
22169
|
}
|
22260
22170
|
render() {
|
22261
|
-
return hAsync("slot", { key: '
|
22171
|
+
return hAsync("slot", { key: '8ba16a1a1aa173043f4a14af432e11a82fffda5a' });
|
22262
22172
|
}
|
22263
22173
|
get el() { return getElement(this); }
|
22264
22174
|
static get watchers() { return {
|
@@ -22412,7 +22322,7 @@ class ToggleButton {
|
|
22412
22322
|
}
|
22413
22323
|
}
|
22414
22324
|
render() {
|
22415
|
-
return (hAsync(Host, { key: '
|
22325
|
+
return (hAsync(Host, { key: 'c2130c0d6effca56347c9f898018b9125caa04e0', class: {
|
22416
22326
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
22417
22327
|
["ic-toggle-button-disabled"]: !!this.disabled,
|
22418
22328
|
["ic-toggle-button-checked"]: !!this.checked,
|
@@ -22421,7 +22331,7 @@ class ToggleButton {
|
|
22421
22331
|
["ic-toggle-button-loading"]: !!this.loading,
|
22422
22332
|
["ic-toggle-button-monochrome"]: !!this.monochrome,
|
22423
22333
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
22424
|
-
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '
|
22334
|
+
}, onFocus: this.handleFocus }, hAsync("ic-button", { key: '99bad5b60f57cbecc96c02beff4ab248592abe5d', "aria-pressed": this.checked.toString(), variant: this.variant === "icon" ? "icon" : "secondary", onClick: this.handleClick, title: this.accessibleLabel, "aria-label": `${this.accessibleLabel ? this.accessibleLabel : this.label}, ${this.checked ? "ticked" : "unticked"}`, disabled: this.disabled, size: this.size, fullWidth: this.fullWidth, loading: this.loading, tooltipPlacement: this.tooltipPlacement }, this.variant !== "icon" && this.label, hAsync("slot", { key: '449862b1dca9d441f3b37f4992d02c9666bc5fce' }), isSlotUsed$1(this.el, "icon") && (hAsync("slot", { key: '7822805ee7c57ddddbab7ae2e1f881ea410a4c7d', name: "icon", slot: `${this.iconPlacement}-icon` })), isSlotUsed$1(this.el, "badge") && (hAsync("slot", { key: 'c41f62db8ed4a6ab62e0af047c27be442c7aacfb', name: "badge", slot: "badge" })))));
|
22425
22335
|
}
|
22426
22336
|
static get delegatesFocus() { return true; }
|
22427
22337
|
get el() { return getElement(this); }
|
@@ -22685,14 +22595,14 @@ class ToggleButtonGroup {
|
|
22685
22595
|
return Array.from(this.el.querySelectorAll("ic-toggle-button"));
|
22686
22596
|
}
|
22687
22597
|
render() {
|
22688
|
-
return (hAsync(Host, { key: '
|
22598
|
+
return (hAsync(Host, { key: '5ff90397f901e294f15f3f560eac22d575b61c62', role: "group", "aria-label": this.accessibleLabel, tabindex: 0, class: {
|
22689
22599
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
22690
22600
|
["ic-toggle-button-group-full-width"]: !!this.fullWidth,
|
22691
22601
|
["ic-toggle-button-group-loading"]: !!this.loading,
|
22692
22602
|
["ic-toggle-button-group-disabled"]: this.disabled,
|
22693
22603
|
[`ic-toggle-button-group-monochrome`]: !!this.monochrome,
|
22694
22604
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
22695
|
-
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: '
|
22605
|
+
}, onFocus: this.handleHostFocus }, hAsync("slot", { key: 'c30679fee25ec96c7d28123d9758173737922e18' })));
|
22696
22606
|
}
|
22697
22607
|
get el() { return getElement(this); }
|
22698
22608
|
static get watchers() { return {
|
@@ -22979,10 +22889,10 @@ class Tooltip {
|
|
22979
22889
|
}
|
22980
22890
|
render() {
|
22981
22891
|
const { label, maxLines, silent, theme } = this;
|
22982
|
-
return (hAsync(Host, { key: '
|
22892
|
+
return (hAsync(Host, { key: '6e9449deb13ab672b4b9c5a637b406e4bbbf01cf', class: {
|
22983
22893
|
"ic-tooltip": true,
|
22984
22894
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
22985
|
-
} }, hAsync("div", { key: '
|
22895
|
+
} }, hAsync("div", { key: '85eced68333b24b831affc67ddd6e19a1142a1da', ref: (el) => (this.toolTip = el), role: "tooltip", class: "ic-tooltip-container", "aria-hidden": `${silent}` }, hAsync("ic-typography", { key: 'c8b2727b200dc1f409332fa1eb362600fdf50334', maxLines: maxLines, variant: "caption" }, label), hAsync("div", { key: '452bc4142b7ef38d95883f93ccc2550228cd1ae8', ref: (el) => (this.arrow = el), class: "ic-tooltip-arrow" })), hAsync("slot", { key: '14ca9939bf600654b87b750ff43c02fd20bafd56' })));
|
22986
22896
|
}
|
22987
22897
|
get el() { return getElement(this); }
|
22988
22898
|
static get watchers() { return {
|
@@ -23222,16 +23132,16 @@ class TopNavigation {
|
|
23222
23132
|
const attrs = Component == "a" && {
|
23223
23133
|
href: href,
|
23224
23134
|
};
|
23225
|
-
return (hAsync(Host, { key: '
|
23135
|
+
return (hAsync(Host, { key: 'c34e31b1c026aa42f639599a271e7a3c2dba0ec0', class: {
|
23226
23136
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
23227
23137
|
"mobile-mode": overMobileBreakpoint,
|
23228
23138
|
[IcBrandForegroundEnum$1.Dark]: foregroundColor === IcBrandForegroundEnum$1.Dark,
|
23229
23139
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
23230
|
-
} }, hAsync("div", { key: '
|
23140
|
+
} }, hAsync("div", { key: 'd266b2df2d3a15532911b76e5372a77355d27b02', class: "top-navigation" }, hAsync("ic-section-container", { key: '444caa24a5e6da0186b98b61bcbce33aebaf0e61', aligned: contentAligned, "full-height": true }, hAsync("header", { key: 'fcc8737fb7c54abd463b716cc09589bb56a5d34c', role: "banner" }, hAsync("div", { key: '84139029b5bd3ca31e6bec51f45126ff72d8110a', class: "top-panel-container" }, hAsync("div", { key: '0d670149118d30f5cf7852a72a79810ad4978d26', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: 'c17c88b16b367927568160d5e11373ff13329ac5', class: "title-link" }, attrs), hasAppIcon && (hAsync("div", { key: '9847777727de0f0da511523d04c72ce980027151', class: "app-icon-container" }, hAsync("slot", { key: '2d44296eb3f6469de56faeb9870b6d096516f23c', name: "app-icon" }))), deviceSize <= DEVICE_SIZES$1.S &&
|
23231
23141
|
(!isEmptyString$1(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
23232
|
-
`${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: '
|
23142
|
+
`${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: '3a25c523a8b2f866979c6b216b8320a0d378ea25', class: "app-status" }, hAsync("ic-typography", { key: '06e42ccfca3a13ca36e39270ffd7380bd8d0a3da', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: 'd876b6c44e8f17aac75467e15e0e644b904f7ee4', class: "app-version" }, hAsync("ic-typography", { key: 'adb1db74b83577008a831898ab4c59814be0b271', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '363c60544cb4581ae9e31a58c63fedc6aee76447', class: "search-menu-container" }, hAsync("div", { key: '6519a88057979775cfc6081a952e85d3b9417c28', class: "search-actions-container" }, !overMobileBreakpoint && hAsync("slot", { key: 'd174b13453134aa9fedff9a95508dbbac96469a1', name: "search" }), hasSearchSlotContent && overMobileBreakpoint && (hAsync("ic-button", { key: '6e102532a61df76174edecf38f8d2dddde722cf5', 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", { key: 'f910700c47c5878c345470ed9294a33007ce7ead', name: "toggle-icon" }, hAsync("svg", { key: '3d3d934259563eadf67075018a41eb653438f1ea', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, hAsync("path", { key: '5fff46e4c3da77500acd290d5728f60097673a05', d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { key: '045e973ca81352d2a1bb48579ced25d19f4a1f2a', 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" }))))), hasIconButtons && !overMobileBreakpoint && (hAsync("div", { key: '5fb7278bd4d60f60d21897f1fb96ec7f3a57c87b', class: "icon-buttons-container" }, hAsync("slot", { key: '190d7b5915c3fbbf6347cb3ddc272f9dfc046ac3', name: "buttons" }))), hasMenuContent && overMobileBreakpoint && (hAsync("div", { key: 'a91b5a189c4146e12e90e740001ad0b77679cc77', class: "menu-button-container" }, hAsync("span", { key: 'd218781625f5e261764968eb84e03a32e905383d', id: "navigation-landmark-button-text", class: "navigation-landmark-button-text", "aria-hidden": "true" }, "Main navigation button"), hAsync("nav", { key: '957a343cc283945aceb2bf4f886dadcb8149d118', "aria-labelledby": "navigation-landmark-button-text", "aria-hidden": `${navMenuVisible}` }, hAsync("ic-button", { key: 'e17765454e8a5102b732cf2b12a45ddb8d2426fc', id: "menu-button", 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", { key: '8595a3640057e8cbc4d6a74fc16bfe11007052bd', xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "left-icon" }, hAsync("path", { key: '0a2dd66668d2b8a99981303024d0a9f409197142', d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { key: '6e4ee39265832993f8756c3208f451936fb78a5b', d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))), mobileSearchBarVisible && (hAsync("div", { key: '7351262fd2c64de0b2572e63011461a17fc9effc', class: "search-bar-container" }, hAsync("slot", { key: '1db63ef6eac0ee7efbf59f8427149c8990182fcf', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: 'c70583f725a90a91bbf09560bddf556ae2dfe9c9', class: "navigation-tabs" }, hAsync("span", { key: 'b87db18c6fbd55a9d56f7caa915c41d9cb7efc81', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: 'f7337c8fd73f1b2c89a35db9ed1f136bbab22c16', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: '017e0ce9c0cd0f931fbe86cbebb0680b473e90c8', monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: 'd8cc0609df1f348acaf9f2cdce3f50e0583416c5', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: '9f63d68cb7b5410e3b43c8ce2d034c1842981701', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: '7db1c7865aae2836052e0911608179e294a98519', version: version, status: status, class: {
|
23233
23143
|
["inline"]: !!inline,
|
23234
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
23144
|
+
} }, hasIconButtons && (hAsync("div", { key: 'b4110d809aa48b74b4802463d85743b6dc892978', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '4d31e22407e559d9435fae39e89a6f6612bee4bd', name: "buttons" }))), hAsync("ul", { key: 'a2ad4a21c9b34e86c242addfb56bb0c31a87a230', slot: "navigation" }, hAsync("slot", { key: 'c9c150aa1431942415593722be13d22291eb2b19', name: "navigation" }))))));
|
23235
23145
|
}
|
23236
23146
|
get el() { return getElement(this); }
|
23237
23147
|
static get watchers() { return {
|
@@ -23283,6 +23193,7 @@ class TreeItem {
|
|
23283
23193
|
constructor(hostRef) {
|
23284
23194
|
registerInstance(this, hostRef);
|
23285
23195
|
this.icTreeItemSelected = createEvent(this, "icTreeItemSelected", 7);
|
23196
|
+
this.icTreeItemExpanded = createEvent(this, "icTreeItemExpanded", 7);
|
23286
23197
|
this.treeItemId = `ic-tree-item-${treeItemIds++}`;
|
23287
23198
|
this.treeItemTag = "IC-TREE-ITEM";
|
23288
23199
|
this.hostMutationObserver = null;
|
@@ -23433,6 +23344,9 @@ class TreeItem {
|
|
23433
23344
|
watchDisabledHandler() {
|
23434
23345
|
removeDisabledFalse(this.disabled, this.el);
|
23435
23346
|
}
|
23347
|
+
watchExpandedHandler() {
|
23348
|
+
this.icTreeItemExpanded.emit({ isExpanded: this.expanded });
|
23349
|
+
}
|
23436
23350
|
watchSelectedHandler() {
|
23437
23351
|
if (this.selected) {
|
23438
23352
|
this.icTreeItemSelected.emit({ id: this.el.id });
|
@@ -23550,7 +23464,7 @@ class TreeItem {
|
|
23550
23464
|
rel: this.rel,
|
23551
23465
|
target: this.target,
|
23552
23466
|
};
|
23553
|
-
return (hAsync(Host, { key: '
|
23467
|
+
return (hAsync(Host, { key: '1421c6963e01047532edb262823d1a43cdb51609', class: {
|
23554
23468
|
"ic-tree-item-disabled": disabled,
|
23555
23469
|
"ic-tree-item-selected": !disabled && selected,
|
23556
23470
|
[`ic-tree-item-${size}`]: size !== "medium",
|
@@ -23562,11 +23476,12 @@ class TreeItem {
|
|
23562
23476
|
}, 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: {
|
23563
23477
|
["arrow-dropdown"]: true,
|
23564
23478
|
["tree-item-expanded"]: expanded,
|
23565
|
-
}, "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: '
|
23479
|
+
}, "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: '4090790d0b574a472c05c29198856a989342e078', "aria-hidden": `${!expanded}` }, hAsync("slot", { key: 'ca48ba749e07761278710f0808c252929ce31497' })))));
|
23566
23480
|
}
|
23567
23481
|
get el() { return getElement(this); }
|
23568
23482
|
static get watchers() { return {
|
23569
23483
|
"disabled": ["watchDisabledHandler"],
|
23484
|
+
"expanded": ["watchExpandedHandler"],
|
23570
23485
|
"selected": ["watchSelectedHandler"]
|
23571
23486
|
}; }
|
23572
23487
|
static get style() { return IcTreeItemStyle0; }
|
@@ -24127,7 +24042,7 @@ class Typography {
|
|
24127
24042
|
render() {
|
24128
24043
|
var _a, _b;
|
24129
24044
|
const { variant, applyVerticalMargins, maxLines, truncated, expanded, strikethrough, underline, italic, bold, theme, } = this;
|
24130
|
-
return (hAsync(Host, { key: '
|
24045
|
+
return (hAsync(Host, { key: 'd386fa51fb7834aad97904a5b757551c388af06b', class: {
|
24131
24046
|
[`ic-typography-${variant}`]: true,
|
24132
24047
|
[`ic-typography-vertical-margins-${variant}`]: !!applyVerticalMargins,
|
24133
24048
|
["ic-typography-bold"]: !!bold,
|
@@ -24140,7 +24055,7 @@ class Typography {
|
|
24140
24055
|
((_b = (_a = this.el.getRootNode()) === null || _a === void 0 ? void 0 : _a.host) === null || _b === void 0 ? void 0 : _b.tagName) ===
|
24141
24056
|
"IC-TOOLTIP") &&
|
24142
24057
|
maxLines &&
|
24143
|
-
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: '
|
24058
|
+
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: '10df0863dfe83f7195a631012461f438fb41a04c', class: { "trunc-btn": true, focus: this.truncButtonFocussed }, onFocus: this.truncButtonFocus, onBlur: this.truncButtonBlur, onMouseDown: this.truncButtonFocusFromMouse, onClick: this.toggleExpanded }, expanded ? "See less" : "See more"))));
|
24144
24059
|
}
|
24145
24060
|
get el() { return getElement(this); }
|
24146
24061
|
static get watchers() { return {
|