@ukic/web-components 3.4.0 → 3.5.0
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-fc4016d2.js → helpers-931fd72e.js} +30 -32
- package/dist/cjs/helpers-931fd72e.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +135 -142
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- 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.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +19 -14
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +36 -13
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +31 -39
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -4
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
- package/dist/cjs/ic-search-bar.cjs.entry.js +28 -12
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +8 -8
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -17
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- 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-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +8 -8
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -9
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/ag-theme-icds.css +24 -4
- package/dist/collection/components/ic-button/ic-button.js +3 -3
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +10 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +6 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +22 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.css +2 -1
- package/dist/collection/components/ic-input-label/ic-input-label.js +31 -8
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +3 -3
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +210 -211
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.js +56 -10
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +38 -47
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +26 -4
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +6 -4
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +10 -2
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +7 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +22 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +53 -11
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +20 -10
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +8 -7
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +21 -13
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -13
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +17 -9
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +15 -16
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +143 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-switch/ic-switch.css +1 -4
- package/dist/collection/components/ic-switch/ic-switch.js +5 -4
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +8 -7
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +13 -7
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/constants.js +1 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +27 -30
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +29 -32
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-button2.js +3 -3
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +4 -4
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-hero.js +4 -4
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +33 -10
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +139 -143
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +16 -9
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +32 -41
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +8 -5
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +4 -4
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +31 -12
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +8 -8
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +16 -17
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-stepper.js +2 -2
- 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-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-text-field.js +8 -8
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-top-navigation.js +15 -9
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/ag-theme-icds.css +24 -4
- package/dist/core/core.css +29 -25
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-7deaf128.entry.js → p-0f3a56bb.entry.js} +2 -2
- package/dist/core/p-0f3a56bb.entry.js.map +1 -0
- package/dist/core/{p-c5ffe2cf.entry.js → p-0f86ea09.entry.js} +2 -2
- package/dist/core/p-1228fd8c.entry.js +2 -0
- package/dist/core/{p-887e00bb.entry.js.map → p-1228fd8c.entry.js.map} +1 -1
- package/dist/core/{p-aad2abbf.entry.js → p-1286b234.entry.js} +2 -2
- package/dist/core/p-1286b234.entry.js.map +1 -0
- package/dist/core/{p-d82b27df.entry.js → p-13e65198.entry.js} +2 -2
- package/dist/core/{p-9a6dc8b1.entry.js → p-20a6dc40.entry.js} +2 -2
- package/dist/core/{p-4e48a671.entry.js → p-21ed856c.entry.js} +2 -2
- package/dist/core/{p-a140bcaa.entry.js → p-226406d6.entry.js} +2 -2
- package/dist/core/{p-7d2c07e2.entry.js → p-24bb2265.entry.js} +2 -2
- package/dist/core/{p-5eb2ac90.entry.js → p-2b342b23.entry.js} +2 -2
- package/dist/core/{p-8958c60f.entry.js → p-334672c1.entry.js} +2 -2
- package/dist/core/{p-dee21f6d.entry.js → p-3448c713.entry.js} +2 -2
- package/dist/core/{p-6cd0b010.entry.js → p-37900547.entry.js} +2 -2
- package/dist/core/{p-7d352865.entry.js → p-3abaa877.entry.js} +2 -2
- package/dist/core/p-3abaa877.entry.js.map +1 -0
- package/dist/core/{p-ef36181d.entry.js → p-3afc2870.entry.js} +2 -2
- package/dist/core/{p-aad10013.entry.js → p-3d7d2ff4.entry.js} +2 -2
- package/dist/core/p-41bb4db1.entry.js +2 -0
- package/dist/core/p-41bb4db1.entry.js.map +1 -0
- package/dist/core/{p-6eea869b.entry.js → p-44902a33.entry.js} +2 -2
- package/dist/core/{p-628c32b8.entry.js → p-476eac8c.entry.js} +2 -2
- package/dist/core/{p-56e0de32.entry.js → p-49ca3f54.entry.js} +2 -2
- package/dist/core/{p-56fb0298.entry.js → p-4dfc41e7.entry.js} +2 -2
- package/dist/core/{p-23536595.entry.js → p-5026eeaf.entry.js} +2 -2
- package/dist/core/{p-4a2acb2e.entry.js → p-54ea7120.entry.js} +2 -2
- package/dist/core/{p-a17499ff.entry.js → p-5b2bf9bb.entry.js} +2 -2
- package/dist/core/{p-ef4b752c.entry.js → p-5d9b23ce.entry.js} +2 -2
- package/dist/core/{p-4dc97b03.entry.js → p-5f9d1977.entry.js} +2 -2
- package/dist/core/p-5f9d1977.entry.js.map +1 -0
- package/dist/core/{p-e38fddbb.entry.js → p-6c10e1a2.entry.js} +2 -2
- package/dist/core/{p-51b49429.entry.js → p-6cb81f35.entry.js} +2 -2
- package/dist/core/{p-d4903dcd.entry.js → p-6dd73165.entry.js} +2 -2
- package/dist/core/{p-fc4f7180.entry.js → p-7ead8535.entry.js} +2 -2
- package/dist/core/{p-c8cf1ad5.entry.js → p-831e884c.entry.js} +2 -2
- package/dist/core/{p-fa38ad2e.entry.js → p-85f735ed.entry.js} +2 -2
- package/dist/core/p-89f493f3.entry.js +2 -0
- package/dist/core/p-89f493f3.entry.js.map +1 -0
- package/dist/core/{p-dfc8cba6.entry.js → p-8da025b5.entry.js} +2 -2
- package/dist/core/p-990c37aa.entry.js +2 -0
- package/dist/core/p-990c37aa.entry.js.map +1 -0
- package/dist/core/{p-803f2eb8.entry.js → p-9e039aba.entry.js} +2 -2
- package/dist/core/{p-3cb4ecef.entry.js → p-9e051db4.entry.js} +2 -2
- package/dist/core/{p-1d172032.entry.js → p-9edc5973.entry.js} +2 -2
- package/dist/core/{p-2c371198.entry.js → p-a14025cc.entry.js} +2 -2
- package/dist/core/p-a7286727.entry.js +2 -0
- package/dist/core/p-a7286727.entry.js.map +1 -0
- package/dist/core/{p-cfa9ed7d.entry.js → p-ab4e8b4a.entry.js} +2 -2
- package/dist/core/{p-dcce0dfd.entry.js → p-ab7a5536.entry.js} +2 -2
- package/dist/core/{p-26dfc4db.entry.js → p-ac73cfb8.entry.js} +2 -2
- package/dist/core/{p-1d254b71.entry.js → p-ad374f0b.entry.js} +2 -2
- package/dist/core/{p-513628ef.entry.js → p-b08bb522.entry.js} +2 -2
- package/dist/core/{p-e2629bfe.entry.js → p-b1b27b7e.entry.js} +2 -2
- package/dist/core/p-b40ecf16.js +2 -0
- package/dist/core/p-b40ecf16.js.map +1 -0
- package/dist/core/{p-5aec3757.entry.js → p-b59007a3.entry.js} +2 -2
- package/dist/core/{p-87fa5add.entry.js → p-b811c7a1.entry.js} +2 -2
- package/dist/core/p-b811c7a1.entry.js.map +1 -0
- package/dist/core/p-bae2df5e.entry.js +2 -0
- package/dist/core/p-bae2df5e.entry.js.map +1 -0
- package/dist/core/{p-d8ce39ac.entry.js → p-c8555360.entry.js} +2 -2
- package/dist/core/{p-60aad45d.entry.js → p-ced2e6ca.entry.js} +2 -2
- package/dist/core/{p-de1e04ac.entry.js → p-d281c3cf.entry.js} +2 -2
- package/dist/core/p-d32c377d.entry.js +2 -0
- package/dist/core/p-d32c377d.entry.js.map +1 -0
- package/dist/core/p-d4a77f80.entry.js +2 -0
- package/dist/core/p-d4a77f80.entry.js.map +1 -0
- package/dist/core/{p-9c47521d.entry.js → p-d7476f6d.entry.js} +2 -2
- package/dist/core/{p-8c77dd65.entry.js → p-e107d1dd.entry.js} +2 -2
- package/dist/core/p-e506ec91.entry.js +2 -0
- package/dist/core/p-e506ec91.entry.js.map +1 -0
- package/dist/core/{p-bf3b853e.entry.js → p-fc5661ac.entry.js} +2 -2
- package/dist/core/p-fca45edb.entry.js +2 -0
- package/dist/core/p-fca45edb.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f2ffaa7c.js → helpers-91abc444.js} +30 -33
- package/dist/esm/helpers-91abc444.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +1 -1
- package/dist/esm/ic-button_3.entry.js +135 -142
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +1 -1
- package/dist/esm/ic-chip.entry.js +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- 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.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +19 -14
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +36 -13
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-navigation-button.entry.js +31 -39
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +7 -4
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js +6 -6
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-search-bar.entry.js +28 -12
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +8 -8
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +16 -17
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js +3 -3
- 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-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +1 -1
- package/dist/esm/ic-text-field.entry.js +8 -8
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js +15 -9
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +2 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +28 -32
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +2 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +7 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +8 -5
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -1
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +3 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +11 -0
- package/dist/types/components/ic-select/ic-select.d.ts +1 -0
- package/dist/types/components/ic-switch/ic-switch.d.ts +1 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -0
- package/dist/types/components.d.ts +33 -13
- package/dist/types/utils/constants.d.ts +1 -1
- package/dist/types/utils/helpers.d.ts +1 -1
- package/hydrate/index.js +445 -396
- package/hydrate/index.mjs +445 -396
- package/package.json +3 -5
- package/vscode-data.json +8 -0
- package/dist/cjs/helpers-fc4016d2.js.map +0 -1
- package/dist/core/p-0fb68b4f.entry.js +0 -2
- package/dist/core/p-0fb68b4f.entry.js.map +0 -1
- package/dist/core/p-15b7adaf.entry.js +0 -2
- package/dist/core/p-15b7adaf.entry.js.map +0 -1
- package/dist/core/p-3676ac4e.entry.js +0 -2
- package/dist/core/p-3676ac4e.entry.js.map +0 -1
- package/dist/core/p-432aeae0.entry.js +0 -2
- package/dist/core/p-432aeae0.entry.js.map +0 -1
- package/dist/core/p-4dc97b03.entry.js.map +0 -1
- package/dist/core/p-554845c4.entry.js +0 -2
- package/dist/core/p-554845c4.entry.js.map +0 -1
- package/dist/core/p-59b48450.entry.js +0 -2
- package/dist/core/p-59b48450.entry.js.map +0 -1
- package/dist/core/p-7d352865.entry.js.map +0 -1
- package/dist/core/p-7deaf128.entry.js.map +0 -1
- package/dist/core/p-8242c24f.js +0 -2
- package/dist/core/p-8242c24f.js.map +0 -1
- package/dist/core/p-87fa5add.entry.js.map +0 -1
- package/dist/core/p-887e00bb.entry.js +0 -2
- package/dist/core/p-aad2abbf.entry.js.map +0 -1
- package/dist/core/p-bdcc79dd.entry.js +0 -2
- package/dist/core/p-bdcc79dd.entry.js.map +0 -1
- package/dist/core/p-c59fd23e.entry.js +0 -2
- package/dist/core/p-c59fd23e.entry.js.map +0 -1
- package/dist/core/p-eca6e215.entry.js +0 -2
- package/dist/core/p-eca6e215.entry.js.map +0 -1
- package/dist/esm/helpers-f2ffaa7c.js.map +0 -1
- /package/dist/core/{p-c5ffe2cf.entry.js.map → p-0f86ea09.entry.js.map} +0 -0
- /package/dist/core/{p-d82b27df.entry.js.map → p-13e65198.entry.js.map} +0 -0
- /package/dist/core/{p-9a6dc8b1.entry.js.map → p-20a6dc40.entry.js.map} +0 -0
- /package/dist/core/{p-4e48a671.entry.js.map → p-21ed856c.entry.js.map} +0 -0
- /package/dist/core/{p-a140bcaa.entry.js.map → p-226406d6.entry.js.map} +0 -0
- /package/dist/core/{p-7d2c07e2.entry.js.map → p-24bb2265.entry.js.map} +0 -0
- /package/dist/core/{p-5eb2ac90.entry.js.map → p-2b342b23.entry.js.map} +0 -0
- /package/dist/core/{p-8958c60f.entry.js.map → p-334672c1.entry.js.map} +0 -0
- /package/dist/core/{p-dee21f6d.entry.js.map → p-3448c713.entry.js.map} +0 -0
- /package/dist/core/{p-6cd0b010.entry.js.map → p-37900547.entry.js.map} +0 -0
- /package/dist/core/{p-ef36181d.entry.js.map → p-3afc2870.entry.js.map} +0 -0
- /package/dist/core/{p-aad10013.entry.js.map → p-3d7d2ff4.entry.js.map} +0 -0
- /package/dist/core/{p-6eea869b.entry.js.map → p-44902a33.entry.js.map} +0 -0
- /package/dist/core/{p-628c32b8.entry.js.map → p-476eac8c.entry.js.map} +0 -0
- /package/dist/core/{p-56e0de32.entry.js.map → p-49ca3f54.entry.js.map} +0 -0
- /package/dist/core/{p-56fb0298.entry.js.map → p-4dfc41e7.entry.js.map} +0 -0
- /package/dist/core/{p-23536595.entry.js.map → p-5026eeaf.entry.js.map} +0 -0
- /package/dist/core/{p-4a2acb2e.entry.js.map → p-54ea7120.entry.js.map} +0 -0
- /package/dist/core/{p-a17499ff.entry.js.map → p-5b2bf9bb.entry.js.map} +0 -0
- /package/dist/core/{p-ef4b752c.entry.js.map → p-5d9b23ce.entry.js.map} +0 -0
- /package/dist/core/{p-e38fddbb.entry.js.map → p-6c10e1a2.entry.js.map} +0 -0
- /package/dist/core/{p-51b49429.entry.js.map → p-6cb81f35.entry.js.map} +0 -0
- /package/dist/core/{p-d4903dcd.entry.js.map → p-6dd73165.entry.js.map} +0 -0
- /package/dist/core/{p-fc4f7180.entry.js.map → p-7ead8535.entry.js.map} +0 -0
- /package/dist/core/{p-c8cf1ad5.entry.js.map → p-831e884c.entry.js.map} +0 -0
- /package/dist/core/{p-fa38ad2e.entry.js.map → p-85f735ed.entry.js.map} +0 -0
- /package/dist/core/{p-dfc8cba6.entry.js.map → p-8da025b5.entry.js.map} +0 -0
- /package/dist/core/{p-803f2eb8.entry.js.map → p-9e039aba.entry.js.map} +0 -0
- /package/dist/core/{p-3cb4ecef.entry.js.map → p-9e051db4.entry.js.map} +0 -0
- /package/dist/core/{p-1d172032.entry.js.map → p-9edc5973.entry.js.map} +0 -0
- /package/dist/core/{p-2c371198.entry.js.map → p-a14025cc.entry.js.map} +0 -0
- /package/dist/core/{p-cfa9ed7d.entry.js.map → p-ab4e8b4a.entry.js.map} +0 -0
- /package/dist/core/{p-dcce0dfd.entry.js.map → p-ab7a5536.entry.js.map} +0 -0
- /package/dist/core/{p-26dfc4db.entry.js.map → p-ac73cfb8.entry.js.map} +0 -0
- /package/dist/core/{p-1d254b71.entry.js.map → p-ad374f0b.entry.js.map} +0 -0
- /package/dist/core/{p-513628ef.entry.js.map → p-b08bb522.entry.js.map} +0 -0
- /package/dist/core/{p-e2629bfe.entry.js.map → p-b1b27b7e.entry.js.map} +0 -0
- /package/dist/core/{p-5aec3757.entry.js.map → p-b59007a3.entry.js.map} +0 -0
- /package/dist/core/{p-d8ce39ac.entry.js.map → p-c8555360.entry.js.map} +0 -0
- /package/dist/core/{p-60aad45d.entry.js.map → p-ced2e6ca.entry.js.map} +0 -0
- /package/dist/core/{p-de1e04ac.entry.js.map → p-d281c3cf.entry.js.map} +0 -0
- /package/dist/core/{p-9c47521d.entry.js.map → p-d7476f6d.entry.js.map} +0 -0
- /package/dist/core/{p-8c77dd65.entry.js.map → p-e107d1dd.entry.js.map} +0 -0
- /package/dist/core/{p-bf3b853e.entry.js.map → p-fc5661ac.entry.js.map} +0 -0
@@ -170,22 +170,22 @@ const HorizontalScroll = /*@__PURE__*/ proxyCustomElement(class HorizontalScroll
|
|
170
170
|
}
|
171
171
|
render() {
|
172
172
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
173
|
-
return (h(Host, { key: '
|
173
|
+
return (h(Host, { key: '3c307f5bddcc7b6c8ab7764d08504585f61e203d', class: {
|
174
174
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
175
175
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
176
176
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
177
177
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
178
|
-
} }, h("div", { key: '
|
178
|
+
} }, h("div", { key: 'f4bda7e5c0108e986191cde56ef8e255a80b604f', "aria-hidden": "true", class: {
|
179
179
|
["scroll-container-left"]: true,
|
180
180
|
["hidden"]: !itemOverflow,
|
181
181
|
["disabled"]: firstItemVisible,
|
182
|
-
}, role: "tab" }, h("ic-button", { key: '
|
182
|
+
}, role: "tab" }, h("ic-button", { key: '5eb199e69ca500c8e84e9b79cec4a3448b604c39', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
183
183
|
? "dark"
|
184
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: '
|
184
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: 'c939c5db95cc4b61645045ef498cc9b80c4f3d69', class: "scroll-splitter-left" })), h("slot", { key: '3ded812f11a7bbdc25157d840ee32f23ed58131b' }), h("div", { key: 'e713490eb2995ff19ec70bf0a098193eaa9829a8', "aria-hidden": "true", class: {
|
185
185
|
["scroll-container-right"]: true,
|
186
186
|
["hidden"]: !itemOverflow,
|
187
187
|
["disabled"]: lastItemVisible,
|
188
|
-
}, role: "tab" }, h("span", { key: '
|
188
|
+
}, role: "tab" }, h("span", { key: 'a2427e872d8ab79ef0022ccb216238867e49065c', class: "scroll-splitter-right" }), h("ic-button", { key: 'a58d98e7d695fe15e3c085f1bec0079045817b2d', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
189
189
|
? "dark"
|
190
190
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
191
191
|
}
|
@@ -49,15 +49,15 @@ const InputComponentContainer = /*@__PURE__*/ proxyCustomElement(class InputComp
|
|
49
49
|
}
|
50
50
|
render() {
|
51
51
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
52
|
-
return (h(Host, { key: '
|
52
|
+
return (h(Host, { key: 'fc70461ae7d3922f07aa5a85209e376d42bfc451', class: {
|
53
53
|
[`ic-input-component-container-${size}`]: true,
|
54
54
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
55
55
|
"ic-input-component-container-disabled": !!disabled,
|
56
56
|
"ic-input-component-container-readonly": !!readonly,
|
57
57
|
"ic-input-component-container-multiline": !!multiLine,
|
58
58
|
"ic-input-component-container-full-width": !!fullWidth,
|
59
|
-
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '
|
60
|
-
validationStatus === IcInformationStatus.Success && (h("span", { key: '
|
59
|
+
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '20934b81740e6c907bff86cc706d3aafe3a790df', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: '3577416fc719a575372188c43a78ac945b1b1526', class: "icon-container" }, h("slot", { key: '36ee3e5c85ec77c69f88c2b74d272bdb6ee42ca1', name: "left-icon" }))), h("slot", { key: 'e0a79f50c8ba34c0d989e2402df8b00587c5878f' }), validationInline &&
|
60
|
+
validationStatus === IcInformationStatus.Success && (h("span", { key: 'b156fb5bb6fcfec8c6dec6febdeea6d2adc7e009', class: "inline-success", innerHTML: successIcon })))));
|
61
61
|
}
|
62
62
|
get el() { return this; }
|
63
63
|
static get watchers() { return {
|
@@ -17,11 +17,11 @@ const InputContainer = /*@__PURE__*/ proxyCustomElement(class InputContainer ext
|
|
17
17
|
this.readonly = false;
|
18
18
|
}
|
19
19
|
render() {
|
20
|
-
return (h(Host, { key: '
|
20
|
+
return (h(Host, { key: '49cd31d8dca09cc4b2f49e0b2e7829bb1771a5d6' }, h("div", { key: 'bb0e3a80161a86b40e0dc424264e71cf6c95c88a', class: {
|
21
21
|
["component-container"]: true,
|
22
22
|
["disabled"]: !!this.disabled,
|
23
23
|
["readonly"]: !!this.readonly,
|
24
|
-
} }, h("slot", { key: '
|
24
|
+
} }, h("slot", { key: '4916ff0aebd6632d6e6f5daaa3c318e1e696ff2f' }))));
|
25
25
|
}
|
26
26
|
static get style() { return IcInputContainerStyle0; }
|
27
27
|
}, [4, "ic-input-container", {
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
2
2
|
import { o as onComponentRequiredPropUndefined, x as getInputHelperTextID } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$1 } from './ic-typography2.js';
|
4
4
|
|
5
|
-
const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n )}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext{margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";
|
5
|
+
const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n )}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext,ic-input-label .helpertext ::slotted(*){margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";
|
6
6
|
const IcInputLabelStyle0 = icInputLabelCss;
|
7
7
|
|
8
8
|
const InputLabel = /*@__PURE__*/ proxyCustomElement(class InputLabel extends HTMLElement {
|
@@ -37,6 +37,25 @@ const InputLabel = /*@__PURE__*/ proxyCustomElement(class InputLabel extends HTM
|
|
37
37
|
* @internal If `true`, wraps label text in label tag
|
38
38
|
*/
|
39
39
|
this.useLabelTag = true;
|
40
|
+
this.isHelperTextSlotUsed = (slot) => {
|
41
|
+
const assignedEls = slot === null || slot === void 0 ? void 0 : slot.assignedElements();
|
42
|
+
if (assignedEls && assignedEls.length) {
|
43
|
+
for (const el of assignedEls) {
|
44
|
+
if (el.tagName === "SLOT") {
|
45
|
+
// Recursion needed for when slot is forwarded multiple times - through child components
|
46
|
+
// (e.g. in date picker)
|
47
|
+
if (this.isHelperTextSlotUsed(el)) {
|
48
|
+
return true;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
else {
|
52
|
+
// Found an assigned element which is not a nested <slot>
|
53
|
+
return true;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
return false;
|
58
|
+
};
|
40
59
|
}
|
41
60
|
componentDidLoad() {
|
42
61
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Input Label");
|
@@ -44,21 +63,25 @@ const InputLabel = /*@__PURE__*/ proxyCustomElement(class InputLabel extends HTM
|
|
44
63
|
render() {
|
45
64
|
const { disabled, readonly, label, required, helperText, status, hideLabel, useLabelTag, } = this;
|
46
65
|
const labelText = required ? label + " *" : label;
|
47
|
-
|
66
|
+
const helperTextId = this.for && getInputHelperTextID(this.for);
|
67
|
+
const helperTextClass = {
|
68
|
+
helpertext: true,
|
69
|
+
"helpertext-normal": !disabled && !readonly,
|
70
|
+
"helpertext-readonly": readonly,
|
71
|
+
};
|
72
|
+
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
73
|
+
return (h(Host, { key: 'f03d8032ac769d4ecea37fe7a60e9d5acea54cd9', class: {
|
48
74
|
"ic-input-label-disabled": !!disabled,
|
49
75
|
"ic-input-label-readonly": readonly,
|
50
|
-
"with-helper": helperText !== "",
|
51
|
-
} }, !hideLabel && (h("ic-typography", { key: '
|
76
|
+
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
77
|
+
} }, !hideLabel && (h("ic-typography", { key: '7af61c1f2a1b9068fb9a9b649f60da1784207aa3', variant: "label", class: {
|
52
78
|
"readonly-label": readonly,
|
53
79
|
"error-label": status === "error" && !(readonly || disabled),
|
54
|
-
} }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (h("ic-typography", {
|
55
|
-
helpertext: true,
|
56
|
-
"helpertext-normal": !disabled && !readonly,
|
57
|
-
"helpertext-readonly": readonly,
|
58
|
-
} }, h("span", { key: '70cdef7f1ef75572ab4f9455e4b5b3401ce10950', id: this.for && getInputHelperTextID(this.for) }, helperText)))));
|
80
|
+
} }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (h("span", { id: helperTextId, class: helperTextClass }, h("slot", { name: "helper-text" }))) : (helperText !== "" && (h("ic-typography", { variant: "caption", class: helperTextClass }, h("span", { id: helperTextId }, helperText))))));
|
59
81
|
}
|
82
|
+
get el() { return this; }
|
60
83
|
static get style() { return IcInputLabelStyle0; }
|
61
|
-
}, [
|
84
|
+
}, [4, "ic-input-label", {
|
62
85
|
"disabled": [4],
|
63
86
|
"for": [1],
|
64
87
|
"helperText": [1, "helper-text"],
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"ic-input-label2.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,
|
1
|
+
{"file":"ic-input-label2.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,+/BAA+/B,CAAC;AACxhC,2BAAe,eAAe;;MCUjB,UAAU;IAJvB;;;;;;QAUU,aAAQ,GAAa,KAAK,CAAC;;;;QAU3B,eAAU,GAAW,EAAE,CAAC;;;;QAKxB,cAAS,GAAY,KAAK,CAAC;;;;QAU3B,aAAQ,GAAY,KAAK,CAAC;;;;QAK1B,aAAQ,GAAY,KAAK,CAAC;;;;QAK1B,WAAM,GAAiB,EAAE,CAAC;;;;QAK1B,gBAAW,GAAY,IAAI,CAAC;QAS5B,yBAAoB,GAAG,CAAC,IAAoB;YAClD,MAAM,WAAW,GAAI,IAAwB,aAAxB,IAAI,uBAAJ,IAAI,CAAsB,gBAAgB,EAAE,CAAC;YAClE,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,EAAE;gBACrC,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE;oBAC5B,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,EAAE;;;wBAGzB,IAAI,IAAI,CAAC,oBAAoB,CAAC,EAAqB,CAAC,EAAE;4BACpD,OAAO,IAAI,CAAC;yBACb;qBACF;yBAAM;;wBAEL,OAAO,IAAI,CAAC;qBACb;iBACF;aACF;YACD,OAAO,KAAK,CAAC;SACd,CAAC;KA6DH;IArFC,gBAAgB;QACd,gCAAgC,CAC9B,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EACzC,aAAa,CACd,CAAC;KACH;IAqBD,MAAM;QACJ,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,GACZ,GAAG,IAAI,CAAC;QACT,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChE,MAAM,eAAe,GAAG;YACtB,UAAU,EAAE,IAAI;YAChB,mBAAmB,EAAE,CAAC,QAAQ,IAAI,CAAC,QAAQ;YAC3C,qBAAqB,EAAE,QAAQ;SAChC,CAAC;QAEF,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;QAEzE,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,yBAAyB,EAAE,CAAC,CAAC,QAAQ;gBACrC,yBAAyB,EAAE,QAAQ;gBACnC,aAAa,EACX,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,UAAU,KAAK,EAAE;aACjE,IAEA,CAAC,SAAS,KACT,sEACE,OAAO,EAAC,OAAO,EACf,KAAK,EAAE;gBACL,gBAAgB,EAAE,QAAQ;gBAC1B,aAAa,EAAE,MAAM,KAAK,OAAO,IAAI,EAAE,QAAQ,IAAI,QAAQ,CAAC;aAC7D,IAEA,QAAQ,IAAI,CAAC,WAAW,IACvB,GAAG,SAAS,EAAE,KAEd,aAAO,OAAO,EAAE,IAAI,CAAC,GAAG,IAAG,SAAS,CAAS,CAC9C,CACa,CACjB,EACA,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IACxC,YAAM,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,IAC5C,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC3B,KAEP,UAAU,KAAK,EAAE,KACf,qBAAe,OAAO,EAAC,SAAS,EAAC,KAAK,EAAE,eAAe,IACrD,YAAM,EAAE,EAAE,YAAY,IAAG,UAAU,CAAQ,CAC7B,CACjB,CACF,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-input-label/ic-input-label.css?tag=ic-input-label","src/components/ic-input-label/ic-input-label.tsx"],"sourcesContent":["ic-input-label {\n margin-bottom: var(--ic-space-xs);\n\n --ic-typography-color: var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n );\n}\n\nic-input-label.with-helper {\n margin-bottom: var(--ic-space-xxxs);\n}\n\nic-input-label.ic-input-label-readonly {\n --ic-typography-color: var(--ic-input-label-readonly-typography-color);\n}\n\nic-input-label .helpertext,\nic-input-label .helpertext ::slotted(*) {\n margin-top: var(--ic-space-xxxs);\n padding-bottom: var(--ic-input-label-helpertext-padding, 0);\n\n --ic-typography-color: var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n );\n}\n\nic-input-label .helpertext-normal {\n --ic-typography-color: var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n );\n}\n\nic-input-label .helpertext-readonly {\n --ic-typography-color: var(--ic-input-label-readonly-helpertext-color);\n}\n\nic-input-label .readonly-label {\n --ic-typography-color: var(--ic-input-label-readonly-label-color);\n}\n\nic-input-label .error-label {\n --ic-typography-color: var(--ic-input-label-error-label-color);\n}\n","import { Component, Element, Host, Prop, h } from \"@stencil/core\";\n\nimport {\n getInputHelperTextID,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-input-label\",\n styleUrl: \"./ic-input-label.css\",\n})\nexport class InputLabel {\n @Element() el: HTMLIcInputLabelElement;\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * The ID of the form element the label is bound to.\n */\n @Prop() for?: string;\n\n /**\n * The helper text that will be displayed.\n */\n @Prop() helperText: string = \"\";\n\n /**\n * The label will be visually hidden.\n */\n @Prop() hideLabel: boolean = false;\n\n /**\n * The text content of the label.\n */\n @Prop() label!: string;\n\n /**\n * If `true`, the readonly state will be set.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * If `true`, the input label will require a value.\n */\n @Prop() required: boolean = false;\n\n /**\n * The status of the label - e.g. 'error'.\n */\n @Prop() status: \"error\" | \"\" = \"\";\n\n /**\n * @internal If `true`, wraps label text in label tag\n */\n @Prop() useLabelTag: boolean = true;\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Input Label\"\n );\n }\n\n private isHelperTextSlotUsed = (slot: Element | null): boolean => {\n const assignedEls = (slot as HTMLSlotElement)?.assignedElements();\n if (assignedEls && assignedEls.length) {\n for (const el of assignedEls) {\n if (el.tagName === \"SLOT\") {\n // Recursion needed for when slot is forwarded multiple times - through child components\n // (e.g. in date picker)\n if (this.isHelperTextSlotUsed(el as HTMLSlotElement)) {\n return true;\n }\n } else {\n // Found an assigned element which is not a nested <slot>\n return true;\n }\n }\n }\n return false;\n };\n\n render() {\n const {\n disabled,\n readonly,\n label,\n required,\n helperText,\n status,\n hideLabel,\n useLabelTag,\n } = this;\n const labelText = required ? label + \" *\" : label;\n const helperTextId = this.for && getInputHelperTextID(this.for);\n const helperTextClass = {\n helpertext: true,\n \"helpertext-normal\": !disabled && !readonly,\n \"helpertext-readonly\": readonly,\n };\n\n const helperTextSlot = this.el.querySelector(\"slot[name='helper-text']\");\n\n return (\n <Host\n class={{\n \"ic-input-label-disabled\": !!disabled,\n \"ic-input-label-readonly\": readonly,\n \"with-helper\":\n this.isHelperTextSlotUsed(helperTextSlot) || helperText !== \"\",\n }}\n >\n {!hideLabel && (\n <ic-typography\n variant=\"label\"\n class={{\n \"readonly-label\": readonly,\n \"error-label\": status === \"error\" && !(readonly || disabled),\n }}\n >\n {readonly || !useLabelTag ? (\n `${labelText}`\n ) : (\n <label htmlFor={this.for}>{labelText}</label>\n )}\n </ic-typography>\n )}\n {this.isHelperTextSlotUsed(helperTextSlot) ? (\n <span id={helperTextId} class={helperTextClass}>\n <slot name=\"helper-text\"></slot>\n </span>\n ) : (\n helperText !== \"\" && (\n <ic-typography variant=\"caption\" class={helperTextClass}>\n <span id={helperTextId}>{helperText}</span>\n </ic-typography>\n )\n )}\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -33,13 +33,13 @@ const InputValidation = /*@__PURE__*/ proxyCustomElement(class InputValidation e
|
|
33
33
|
render() {
|
34
34
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
35
35
|
const displayIcon = status !== "" ? icon[status] : "";
|
36
|
-
return (h(Host, { key: '
|
36
|
+
return (h(Host, { key: '2ab746f75a46252bc0755dfd28220dbe555b93b3', class: {
|
37
37
|
[`ic-input-validation-${status}`]: status !== "",
|
38
38
|
"ic-input-validation-full-width": !!fullWidth,
|
39
|
-
} }, displayIcon !== "" && (h("span", { key: '
|
39
|
+
} }, displayIcon !== "" && (h("span", { key: 'fc02067a0c0f1e9672e190f1bd30774cd2cfcfe0', class: {
|
40
40
|
"status-icon": true,
|
41
41
|
[`icon-${status}`]: true,
|
42
|
-
}, innerHTML: displayIcon })), h("ic-typography", { key: '
|
42
|
+
}, innerHTML: displayIcon })), h("ic-typography", { key: 'f8d3c1d9d7f30e232ebbc827033ad318485f7c98', variant: "caption", class: "statustext" }, h("span", { key: '73b35c4a5c4dbe77fe4c71032020a0346e34fcfd', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID(this.for) }, message)), h("slot", { key: '629f37113c9354db274019eadc9ae7140adf921a', name: "validation-message-adornment" })));
|
43
43
|
}
|
44
44
|
get el() { return this; }
|
45
45
|
static get style() { return IcInputValidationStyle0; }
|
@@ -93,7 +93,7 @@ const Link = /*@__PURE__*/ proxyCustomElement(class Link extends HTMLElement {
|
|
93
93
|
}
|
94
94
|
render() {
|
95
95
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
96
|
-
return (h(Host, { key: '
|
96
|
+
return (h(Host, { key: '769bea68e79e8b28fb9c0ea007c24dd11968d332', class: {
|
97
97
|
["ic-link"]: true,
|
98
98
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
99
99
|
["ic-link-monochrome"]: !!monochrome,
|
@@ -1,14 +1,28 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { d as defineCustomElement$1 } from './ic-typography2.js';
|
3
3
|
|
4
|
-
const icLoadingIndicatorCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}
|
4
|
+
const icLoadingIndicatorCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;--linear-border-radius:0.25rem;--inner-color:var(--ic-loading-indicator-inner-color);--outer-color:var(--ic-loading-indicator-outer-color);--label-color:var(--ic-loading-indicator-label-color);--margin:none;--linear-line-height:var(--ic-space-xs)}:host(.ic-loading-indicator-monochrome){--inner-color:var(--ic-loading-indicator-inner-color-monochrome);--outer-color:var(--ic-loading-indicator-outer-color-monochrome);--label-color:var(--ic-loading-indicator-label-color-monochrome)}.ic-loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center}:host([size=\"small\"]){--circular-diameter:2.5rem;--linear-line-height:var(--ic-space-xxs)}:host([size=\"medium\"]){--circular-diameter:5rem}:host([size=\"large\"]){--circular-diameter:7.5rem}:host([size=\"icon\"]){display:inline-block;--margin:var(--ic-space-xxxs);--circular-diameter:1.25rem}:host(.ic-loading-indicator-label){--margin:0 0 var(--ic-space-xs) 0}.ic-loading-label{--ic-typography-color:var(--label-color);margin-left:var(--label-margin-left)}.ic-loading-circular-outer{height:var(--circular-diameter);width:var(--circular-diameter)}.ic-loading-circular-outer.indeterminate{animation:circular-animation 1s linear;animation-iteration-count:infinite}@keyframes circular-animation{100%{transform:rotate(360deg)}}.ic-loading-circular-outer,.ic-loading-linear-outer{margin:var(--margin)}.ic-loading-linear-outer{background-color:var(--outer-color);height:var(--linear-line-height);width:100%;border-radius:var(--linear-border-radius);overflow:hidden}.ic-loading-linear-inner{position:relative;height:100%;background-color:var(--inner-color);border-radius:var(--linear-border-radius)}.indeterminate>.ic-loading-linear-inner{animation:linear-animation 2s infinite}.determinate>.ic-loading-linear-inner{transition:width 0.5s;width:var(--linear-width)}:host(.ic-loading-indicator-full-width){--linear-border-radius:none}@keyframes linear-animation{0%{width:0%;left:-1%}25%{width:0%;left:-1%}50%{width:101%;left:-1%}75%{width:0%;left:101%}100%{width:0%;left:101%}}.ic-loading-circular-svg{position:relative;width:100%;height:100%;transform:rotate(-90deg)}.ic-loading-circular-svg circle{width:100%;height:100%;fill:none;stroke:var(--compact-step-outer-color, var(--outer-color));stroke-width:var(--circular-line-width);stroke-linecap:round}.ic-loading-circular-svg circle:nth-child(2){--circular-indeterminate:calc(\n (0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)\n );stroke-dasharray:var(--stroke-dasharray), var(--stroke-dasharray);stroke-dashoffset:var(--stroke-dashoffset, var(--circular-indeterminate));stroke:var(--compact-step-inner-color, var(--inner-color))}.inner-label{height:100%;display:grid}.inner-label .ic-loading-circular-svg,.inner-text{grid-column:1;grid-row:1}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:var(--ic-architectural-300)}.inner-text{display:flex;align-items:center;justify-content:center;width:var(--ic-space-lg);height:inherit;overflow:hidden;margin:auto;--ic-typography-color:var(\n --ic-step-indicator-text-current,\n var(--ic-status-info-default)\n )}:host(.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-step-indicator-text-disabled)}:host(.ic-loading-indicator-light.not-required.compact-step-progress-indicator) .inner-text{--ic-typography-color:var(--ic-architectural-400)}@media (forced-colors: active){.indeterminate>.ic-loading-circular-inner{forced-color-adjust:none}.ic-loading-linear-outer{border:var(--ic-border-hc)}.ic-loading-linear-inner{background-color:canvastext}.ic-loading-circular-svg circle{stroke:Background}.ic-loading-circular-svg circle:nth-child(2){stroke:canvastext}:host(.not-required.compact-step-progress-indicator) .ic-loading-circular-svg circle:nth-child(2){stroke:GrayText}}";
|
5
5
|
const IcLoadingIndicatorStyle0 = icLoadingIndicatorCss;
|
6
6
|
|
7
|
+
const LOADING_INDICATOR_WIDTHS = {
|
8
|
+
large: 120,
|
9
|
+
medium: 80,
|
10
|
+
small: 40,
|
11
|
+
icon: 20,
|
12
|
+
};
|
7
13
|
const LoadingIndicator = /*@__PURE__*/ proxyCustomElement(class LoadingIndicator extends HTMLElement {
|
8
14
|
constructor() {
|
9
15
|
super();
|
10
16
|
this.__registerHost();
|
11
17
|
this.__attachShadow();
|
18
|
+
this.labelList = [];
|
19
|
+
this.circularDiameter = 0;
|
20
|
+
this.circularLineWidth = 0;
|
21
|
+
this.circularDimensions = {
|
22
|
+
x: 0,
|
23
|
+
y: 0,
|
24
|
+
r: 0,
|
25
|
+
};
|
12
26
|
this.clipInnerElement = false;
|
13
27
|
/**
|
14
28
|
* The description that will be set as the aria-label of the loading indicator when not using a visible label.
|
@@ -40,213 +54,195 @@ const LoadingIndicator = /*@__PURE__*/ proxyCustomElement(class LoadingIndicator
|
|
40
54
|
* The size of the loading indicator.
|
41
55
|
*/
|
42
56
|
this.size = "medium";
|
43
|
-
/**
|
44
|
-
* The type of indicator, either linear or circular.
|
45
|
-
*/
|
46
|
-
this.type = "circular";
|
47
57
|
/**
|
48
58
|
* 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.
|
49
59
|
*/
|
50
60
|
this.theme = "inherit";
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}, this.labelDuration);
|
67
|
-
});
|
68
|
-
};
|
61
|
+
/**
|
62
|
+
* The type of indicator, either linear or circular.
|
63
|
+
*/
|
64
|
+
this.type = "circular";
|
65
|
+
this.getLabel = (labelIndex) => new Promise(() => {
|
66
|
+
this.interval = setInterval(() => {
|
67
|
+
if (labelIndex < this.labelList.length - 1) {
|
68
|
+
labelIndex++;
|
69
|
+
}
|
70
|
+
else {
|
71
|
+
labelIndex = 0;
|
72
|
+
}
|
73
|
+
this.indicatorLabel = this.labelList[labelIndex];
|
74
|
+
}, this.labelDuration);
|
75
|
+
});
|
69
76
|
this.getLabelVariant = () => {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
if (this.size === "small" ||
|
74
|
-
(width && this.type === "circular" && width < 60)) {
|
75
|
-
variant = "label";
|
77
|
+
const width = this.type === "circular" ? this.calculateWidth() : 0;
|
78
|
+
if (this.size === "small" || (width && width < 60)) {
|
79
|
+
return "label";
|
76
80
|
}
|
77
|
-
else if (this.size === "large" ||
|
78
|
-
|
79
|
-
variant = "h2";
|
81
|
+
else if (this.size === "large" || width >= 120) {
|
82
|
+
return "h2";
|
80
83
|
}
|
81
|
-
return
|
84
|
+
return "h4";
|
82
85
|
};
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
: 0;
|
88
|
-
const toastDismissTimerCircularLineWidth = this.el.classList.contains("toast-dismiss-timer")
|
89
|
-
? 20
|
90
|
-
: 0;
|
86
|
+
this.calculateWidth = () => {
|
87
|
+
var _a, _b, _c;
|
88
|
+
if ((_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth)
|
89
|
+
return this.outerElement.offsetWidth;
|
91
90
|
if (this.outerElement) {
|
92
|
-
const {
|
93
|
-
if (width
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
this.circularDiameter =
|
101
|
-
compactStepCircularLineWidth ||
|
102
|
-
toastDismissTimerCircularLineWidth ||
|
103
|
-
width;
|
104
|
-
this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
|
91
|
+
const { width } = window.getComputedStyle(this.outerElement);
|
92
|
+
if (width) {
|
93
|
+
// Regex to check the units of the css string
|
94
|
+
if (((_b = width.match(/\D+$/)) === null || _b === void 0 ? void 0 : _b[0]) !== "%")
|
95
|
+
return parseFloat(width);
|
96
|
+
const parentWidth = (_c = this.outerElement.parentElement) === null || _c === void 0 ? void 0 : _c.offsetWidth;
|
97
|
+
if (parentWidth)
|
98
|
+
return parentWidth * (parseFloat(width) / 100);
|
105
99
|
}
|
106
100
|
}
|
101
|
+
return LOADING_INDICATOR_WIDTHS[this.size];
|
107
102
|
};
|
108
103
|
this.setLinearDeterminateWidth = () => {
|
109
|
-
const max = this.max;
|
110
|
-
const min = this.min;
|
111
|
-
if (!this.innerElement)
|
112
|
-
return;
|
113
104
|
// Ensure progress cannot be out of bounds
|
114
|
-
if (this.progress)
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
else {
|
122
|
-
this.innerElement.classList.add("clip");
|
123
|
-
}
|
124
|
-
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
105
|
+
if (!this.innerElement || !this.progress)
|
106
|
+
return;
|
107
|
+
const progress = Math.min(this.max, Math.max(this.min, this.progress));
|
108
|
+
const proportion = (progress - this.min) / (this.max - this.min);
|
109
|
+
this.clipInnerElement = proportion > 0.5;
|
110
|
+
if (this.clipInnerElement) {
|
111
|
+
this.innerElement.classList.remove("clip");
|
125
112
|
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
return cls;
|
113
|
+
else {
|
114
|
+
this.innerElement.classList.add("clip");
|
115
|
+
}
|
116
|
+
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
131
117
|
};
|
132
118
|
this.updateLabel = () => {
|
133
|
-
if (this.label
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
else {
|
138
|
-
this.labelList = this.label;
|
139
|
-
const labelIndex = 0;
|
140
|
-
this.indicatorLabel = this.labelList[labelIndex];
|
141
|
-
if (this.labelList.length > 1) {
|
142
|
-
this.getLabel(labelIndex, (label) => {
|
143
|
-
this.indicatorLabel = label;
|
144
|
-
});
|
145
|
-
}
|
146
|
-
}
|
119
|
+
if (!this.label)
|
120
|
+
return;
|
121
|
+
if (typeof this.label === "string") {
|
122
|
+
this.indicatorLabel = this.label;
|
147
123
|
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
const nextRadius = r - this.circularLineWidth / 2;
|
155
|
-
this.setDashSteps(nextRadius);
|
156
|
-
return { x, y, r: nextRadius };
|
124
|
+
else {
|
125
|
+
this.labelList = this.label;
|
126
|
+
this.indicatorLabel = this.labelList[0];
|
127
|
+
if (this.labelList.length > 1) {
|
128
|
+
this.getLabel(0);
|
129
|
+
}
|
157
130
|
}
|
158
|
-
return { x: 0, y: 0, r: 0 };
|
159
131
|
};
|
160
|
-
this.
|
161
|
-
|
162
|
-
if (this.
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
this.circularMeter.style.setProperty("--stroke-dashoffset", `${proportion * dashArray}px`);
|
171
|
-
}
|
132
|
+
this.setCircleDimensions = () => {
|
133
|
+
let dashOffset = undefined;
|
134
|
+
if (this.circularDiameter <= 0)
|
135
|
+
return;
|
136
|
+
const r = this.circularDiameter / 2;
|
137
|
+
const nextRadius = r - this.circularLineWidth / 2;
|
138
|
+
const dashArray = 2 * Math.PI * nextRadius;
|
139
|
+
if (this.progress) {
|
140
|
+
const progress = Math.min(Math.max(this.progress, this.min), this.max);
|
141
|
+
dashOffset = `${(-1 - (progress - this.min) / (this.max - this.min)) * dashArray}px`;
|
172
142
|
}
|
143
|
+
this.circularDimensions = {
|
144
|
+
x: r,
|
145
|
+
y: r,
|
146
|
+
r: nextRadius,
|
147
|
+
dashArray: `${dashArray}px`,
|
148
|
+
dashOffset,
|
149
|
+
};
|
173
150
|
};
|
174
151
|
}
|
175
152
|
watchPropHandler() {
|
176
153
|
this.updateLabel();
|
177
154
|
}
|
155
|
+
minMaxChangeHandler() {
|
156
|
+
if (this.type === "circular")
|
157
|
+
this.setCircleDimensions();
|
158
|
+
}
|
178
159
|
watchProgressHandler() {
|
160
|
+
if (this.type === "linear") {
|
161
|
+
this.setLinearDeterminateWidth();
|
162
|
+
}
|
163
|
+
else {
|
164
|
+
this.setCircleDimensions();
|
165
|
+
}
|
166
|
+
}
|
167
|
+
setIndicatorDimensions() {
|
179
168
|
if (this.type === "circular") {
|
180
|
-
|
169
|
+
// Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
|
170
|
+
const diameter = this.calculateWidth();
|
171
|
+
if (this.outerElement && diameter !== this.circularDiameter) {
|
172
|
+
this.circularLineWidth = diameter * 0.1;
|
173
|
+
this.circularDiameter = diameter;
|
174
|
+
this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
|
175
|
+
this.setCircleDimensions();
|
176
|
+
}
|
177
|
+
}
|
178
|
+
else {
|
179
|
+
this.setLinearDeterminateWidth();
|
181
180
|
}
|
182
181
|
}
|
183
182
|
disconnectedCallback() {
|
184
183
|
clearInterval(this.interval);
|
185
184
|
}
|
186
185
|
componentWillLoad() {
|
187
|
-
this.indeterminate = this.progress === undefined;
|
188
186
|
this.updateLabel();
|
189
187
|
this.el.setAttribute("exportparts", "ic-loading-container");
|
190
188
|
}
|
191
189
|
componentDidLoad() {
|
192
|
-
|
193
|
-
if (this.type === "circular") {
|
194
|
-
this.setCircleLineWidth();
|
195
|
-
this.circularMeter = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".ic-loading-circular-svg circle:nth-child(2)");
|
196
|
-
this.updateCircularProgressMeter();
|
197
|
-
}
|
198
|
-
if (Number(this.progress) >= 0 && this.type === "linear") {
|
199
|
-
this.setLinearDeterminateWidth();
|
200
|
-
}
|
201
|
-
}
|
202
|
-
componentWillUpdate() {
|
203
|
-
this.indeterminate = this.progress === undefined;
|
204
|
-
}
|
205
|
-
componentDidUpdate() {
|
206
|
-
if (Number(this.progress) >= 0 && this.type === "linear") {
|
207
|
-
this.setLinearDeterminateWidth();
|
208
|
-
}
|
190
|
+
this.setIndicatorDimensions();
|
209
191
|
}
|
210
192
|
render() {
|
211
|
-
const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
|
212
|
-
const { x, y, r } =
|
213
|
-
return (h(Host, { key: '
|
193
|
+
const { theme, label, description, size, fullWidth, innerLabel, monochrome, type, progress, min, max, circularDiameter, indicatorLabel, circularDimensions, } = this;
|
194
|
+
const { x, y, r, dashArray, dashOffset } = circularDimensions;
|
195
|
+
return (h(Host, { key: '7f78047511c580f116c21d00e76a19dee3319d60', class: {
|
214
196
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
197
|
+
"ic-loading-indicator-full-width": fullWidth,
|
215
198
|
"ic-loading-indicator-label": !!label,
|
216
|
-
"ic-loading-indicator-
|
199
|
+
"ic-loading-indicator-monochrome": monochrome,
|
200
|
+
} }, h("div", { key: 'eec896daa35399c26a11873674ba4bc4fd099ddc', class: "ic-loading-container", part: "ic-loading-container" }, h("div", { key: 'b3ab1935e9fe5d50cd6513acd7a8eabb31fadf98', ref: (el) => (this.outerElement = el), class: {
|
201
|
+
[`ic-loading-${type}-outer`]: true,
|
202
|
+
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
203
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: '2f6e1f2e1a88b752cdda2a6b2834441e8546eb9b', ref: (el) => (this.innerElement = el), class: {
|
204
|
+
[`ic-loading-${type}-inner`]: true,
|
217
205
|
"inner-label": !!innerLabel,
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
206
|
+
} }, innerLabel && size === "small" && (h("ic-typography", { key: 'c0d18d282c7090aa2bf478c3beee03e6c2b2f61d', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (h("svg", { key: 'a5827dba8cff99684667dfa1147186ad0bd3f7a1', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, h("circle", { key: 'c53d2155e9aea468427178f5a41e0a24b02565fa', cx: x, cy: y, r: r }), h("circle", { key: 'c5b6aea5b936b056a8103c0dacb81822348b20d1', style: {
|
207
|
+
"--circular-steps-max": progress ? `${max}` : undefined,
|
208
|
+
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
209
|
+
"--stroke-dasharray": dashArray,
|
210
|
+
"--stroke-dashoffset": dashOffset,
|
211
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: 'e586d3c31d518a77bf93f90504318e3a5baeeb64', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, h("p", { key: 'd1c0b977ef4441ae45f4122a7a0ee03b33b4421b' }, indicatorLabel))))));
|
222
212
|
}
|
223
213
|
get el() { return this; }
|
224
214
|
static get watchers() { return {
|
225
215
|
"label": ["watchPropHandler"],
|
226
|
-
"
|
216
|
+
"max": ["minMaxChangeHandler"],
|
217
|
+
"min": ["minMaxChangeHandler"],
|
218
|
+
"progress": ["watchProgressHandler"],
|
219
|
+
"type": ["setIndicatorDimensions"]
|
227
220
|
}; }
|
228
221
|
static get style() { return IcLoadingIndicatorStyle0; }
|
229
222
|
}, [1, "ic-loading-indicator", {
|
230
223
|
"description": [1],
|
231
224
|
"fullWidth": [516, "full-width"],
|
232
225
|
"innerLabel": [2, "inner-label"],
|
226
|
+
"label": [1],
|
233
227
|
"labelDuration": [2, "label-duration"],
|
234
228
|
"max": [2],
|
235
229
|
"min": [2],
|
236
230
|
"monochrome": [4],
|
237
|
-
"size": [513],
|
238
|
-
"type": [513],
|
239
|
-
"label": [1],
|
240
231
|
"progress": [2],
|
232
|
+
"size": [513],
|
241
233
|
"theme": [1],
|
234
|
+
"type": [513],
|
242
235
|
"circularDiameter": [32],
|
243
236
|
"circularLineWidth": [32],
|
244
|
-
"
|
237
|
+
"circularDimensions": [32],
|
245
238
|
"indicatorLabel": [32],
|
246
239
|
"clipInnerElement": [32]
|
247
240
|
}, undefined, {
|
248
241
|
"label": ["watchPropHandler"],
|
249
|
-
"
|
242
|
+
"max": ["minMaxChangeHandler"],
|
243
|
+
"min": ["minMaxChangeHandler"],
|
244
|
+
"progress": ["watchProgressHandler"],
|
245
|
+
"type": ["setIndicatorDimensions"]
|
250
246
|
}]);
|
251
247
|
function defineCustomElement() {
|
252
248
|
if (typeof customElements === "undefined") {
|