@ukic/web-components 3.2.0 → 3.3.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-789082d4.js → helpers-fc4016d2.js} +21 -37
- package/dist/cjs/helpers-fc4016d2.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-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +34 -33
- package/dist/cjs/ic-checkbox.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-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 +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- 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-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-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
- 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 +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-option.cjs.entry.js +5 -5
- 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-select.cjs.entry.js +7 -7
- package/dist/cjs/ic-select.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-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 +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +32 -29
- 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 +5 -5
- 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/components/ic-badge/ic-badge.css +1 -1
- package/dist/collection/components/ic-badge/ic-badge.js +2 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +40 -59
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +65 -86
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +105 -54
- package/dist/collection/components/ic-button/ic-button.js +141 -162
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +10 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +71 -73
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +24 -25
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +9 -0
- package/dist/collection/components/ic-chip/ic-chip.js +66 -72
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +2 -1
- 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.js +4 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +23 -2
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +28 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
- package/dist/collection/components/ic-menu/ic-menu.js +3 -3
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +0 -5
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +3 -3
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +2 -2
- 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.css +0 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +6 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +169 -192
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- 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.js +5 -5
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +2 -2
- 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 +112 -95
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -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-tooltip/ic-tooltip.js +2 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- 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/helpers.js +20 -36
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +21 -37
- 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-checkbox-group.js +8 -9
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +36 -35
- package/dist/components/ic-checkbox.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-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 +4 -4
- package/dist/components/ic-input-validation2.js +3 -3
- 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-menu-group.js +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-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination.js +4 -4
- 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-option.js +4 -4
- 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-select.js +7 -7
- package/dist/components/ic-select.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-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-tab.js +2 -2
- package/dist/components/ic-text-field.js +32 -29
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-tooltip2.js +2 -2
- package/dist/components/ic-top-navigation.js +4 -4
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- 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-4245a976.entry.js → p-00bc353b.entry.js} +2 -2
- package/dist/core/{p-ef09b450.entry.js → p-0a436c47.entry.js} +2 -2
- package/dist/core/{p-fbde763c.entry.js → p-10e1e227.entry.js} +2 -2
- package/dist/core/{p-88924aef.entry.js → p-1440847f.entry.js} +2 -2
- package/dist/core/{p-bbe5596b.entry.js → p-15b7adaf.entry.js} +2 -2
- package/dist/core/p-16f55230.entry.js +2 -0
- package/dist/core/p-16f55230.entry.js.map +1 -0
- package/dist/core/{p-45432bf5.entry.js → p-1838d1e9.entry.js} +2 -2
- package/dist/core/{p-3eb7ef1d.entry.js → p-18714198.entry.js} +2 -2
- package/dist/core/{p-3b5d3e24.entry.js → p-1b2690b4.entry.js} +2 -2
- package/dist/core/p-1b2690b4.entry.js.map +1 -0
- package/dist/core/{p-b3ac38c5.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/p-206c2a26.entry.js +2 -0
- package/dist/core/p-206c2a26.entry.js.map +1 -0
- package/dist/core/{p-b3d6d5be.entry.js → p-267a19d4.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js → p-26dfc4db.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js.map → p-26dfc4db.entry.js.map} +1 -1
- package/dist/core/p-2c17cc67.entry.js +2 -0
- package/dist/core/p-2c17cc67.entry.js.map +1 -0
- package/dist/core/{p-f3c72ffb.entry.js → p-2c371198.entry.js} +2 -2
- package/dist/core/{p-63fe83ad.entry.js → p-2e44cf53.entry.js} +2 -2
- package/dist/core/{p-63fe83ad.entry.js.map → p-2e44cf53.entry.js.map} +1 -1
- package/dist/core/{p-70700c7a.entry.js → p-42a7d0b6.entry.js} +2 -2
- package/dist/core/p-513628ef.entry.js +2 -0
- package/dist/core/p-513628ef.entry.js.map +1 -0
- package/dist/core/{p-33c86ba6.entry.js → p-628c32b8.entry.js} +2 -2
- package/dist/core/{p-0631c3ab.entry.js → p-70a6cff1.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/p-730d2f6e.entry.js +2 -0
- package/dist/core/p-730d2f6e.entry.js.map +1 -0
- package/dist/core/{p-7dfe0284.entry.js → p-788c96ac.entry.js} +2 -2
- package/dist/core/{p-fe833509.entry.js → p-7fb79e87.entry.js} +2 -2
- package/dist/core/p-8242c24f.js +2 -0
- package/dist/core/p-8242c24f.js.map +1 -0
- package/dist/core/{p-6de6b6b7.entry.js → p-83764268.entry.js} +2 -2
- package/dist/core/{p-4b601e06.entry.js → p-8b5022bc.entry.js} +2 -2
- package/dist/core/{p-1e4cdd2d.entry.js → p-8c4f7c63.entry.js} +2 -2
- package/dist/core/{p-5e18b899.entry.js → p-910f5f14.entry.js} +2 -2
- package/dist/core/{p-7afc71d0.entry.js → p-9479f272.entry.js} +2 -2
- package/dist/core/{p-acebb05c.entry.js → p-9c47521d.entry.js} +2 -2
- package/dist/core/{p-40f2f58e.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-e56d0db2.entry.js → p-9cfc2bac.entry.js} +2 -2
- package/dist/core/{p-abaea607.entry.js → p-a0161990.entry.js} +2 -2
- package/dist/core/p-a17499ff.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js.map +1 -0
- package/dist/core/{p-c2ca6274.entry.js → p-a4f9b5bf.entry.js} +2 -2
- package/dist/core/{p-005cd8a8.entry.js → p-aad10013.entry.js} +2 -2
- package/dist/core/{p-959a9cdf.entry.js → p-b371a498.entry.js} +2 -2
- package/dist/core/{p-959a9cdf.entry.js.map → p-b371a498.entry.js.map} +1 -1
- package/dist/core/p-b7568944.entry.js +2 -0
- package/dist/core/p-b7568944.entry.js.map +1 -0
- package/dist/core/{p-3675c4b4.entry.js → p-b8da5c07.entry.js} +2 -2
- package/dist/core/{p-de43d375.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/p-ba600947.entry.js +2 -0
- package/dist/core/p-ba600947.entry.js.map +1 -0
- package/dist/core/{p-f34eee68.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-7c0914e7.entry.js → p-bdc72446.entry.js} +2 -2
- package/dist/core/{p-a9c96e3e.entry.js → p-c45023b7.entry.js} +2 -2
- package/dist/core/p-c4663e1a.entry.js +2 -0
- package/dist/core/p-c4663e1a.entry.js.map +1 -0
- package/dist/core/{p-5206a978.entry.js → p-c8cf1ad5.entry.js} +2 -2
- package/dist/core/p-c9a4fe37.entry.js +2 -0
- package/dist/core/p-c9a4fe37.entry.js.map +1 -0
- package/dist/core/p-cdf56a5d.entry.js +2 -0
- package/dist/core/p-cdf56a5d.entry.js.map +1 -0
- package/dist/core/{p-23d059ff.entry.js → p-d45d66c0.entry.js} +2 -2
- package/dist/core/{p-9ea9a4ce.entry.js → p-d6c50565.entry.js} +2 -2
- package/dist/core/{p-950db960.entry.js → p-d975bf2f.entry.js} +2 -2
- package/dist/core/{p-950db960.entry.js.map → p-d975bf2f.entry.js.map} +1 -1
- package/dist/core/{p-3132270d.entry.js → p-dede4974.entry.js} +2 -2
- package/dist/core/{p-23ed8b99.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/{p-c04f36c5.entry.js → p-e86a6d2d.entry.js} +2 -2
- package/dist/core/{p-7a0d238b.entry.js → p-ebab7a9e.entry.js} +2 -2
- package/dist/core/{p-517d7afb.entry.js → p-eeab3a2e.entry.js} +2 -2
- package/dist/core/{p-44e4e8c1.entry.js → p-ef36181d.entry.js} +2 -2
- package/dist/core/{p-fc50d582.entry.js → p-f0388d68.entry.js} +2 -2
- package/dist/core/{p-e2f893f0.entry.js → p-fbf57f0a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-46a2d1fd.js → helpers-f2ffaa7c.js} +22 -38
- package/dist/esm/helpers-f2ffaa7c.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-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +34 -33
- package/dist/esm/ic-checkbox.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-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 +9 -9
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- 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-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-group.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js +3 -3
- 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 +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-option.entry.js +5 -5
- 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-select.entry.js +7 -7
- package/dist/esm/ic-select.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-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 +3 -3
- package/dist/esm/ic-text-field.entry.js +32 -29
- 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 +5 -5
- 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-breadcrumb/ic-breadcrumb.d.ts +4 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +9 -15
- package/dist/types/components/ic-button/ic-button.d.ts +29 -22
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +14 -13
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -15
- package/dist/types/components/ic-link/ic-link.d.ts +2 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +38 -40
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +37 -32
- package/dist/types/components.d.ts +127 -122
- package/dist/types/utils/helpers.d.ts +8 -8
- package/hydrate/index.js +590 -680
- package/hydrate/index.mjs +590 -680
- package/package.json +2 -2
- package/vscode-data.json +167 -3
- package/dist/cjs/helpers-789082d4.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
- package/dist/core/p-0a8b3967.entry.js +0 -2
- package/dist/core/p-0a8b3967.entry.js.map +0 -1
- package/dist/core/p-0b4350df.entry.js +0 -2
- package/dist/core/p-0b4350df.entry.js.map +0 -1
- package/dist/core/p-0e618fc5.entry.js +0 -2
- package/dist/core/p-0e618fc5.entry.js.map +0 -1
- package/dist/core/p-18ecba80.entry.js +0 -2
- package/dist/core/p-18ecba80.entry.js.map +0 -1
- package/dist/core/p-281ce313.js +0 -2
- package/dist/core/p-281ce313.js.map +0 -1
- package/dist/core/p-30abe545.entry.js +0 -2
- package/dist/core/p-30abe545.entry.js.map +0 -1
- package/dist/core/p-3b5d3e24.entry.js.map +0 -1
- package/dist/core/p-5d4b0480.entry.js +0 -2
- package/dist/core/p-5d4b0480.entry.js.map +0 -1
- package/dist/core/p-6337fe1f.entry.js +0 -2
- package/dist/core/p-6337fe1f.entry.js.map +0 -1
- package/dist/core/p-8ba129fc.entry.js +0 -2
- package/dist/core/p-8ba129fc.entry.js.map +0 -1
- package/dist/core/p-ac7db165.entry.js +0 -2
- package/dist/core/p-ac7db165.entry.js.map +0 -1
- package/dist/core/p-c62318a8.entry.js +0 -2
- package/dist/core/p-c62318a8.entry.js.map +0 -1
- package/dist/core/p-e586ae7b.entry.js +0 -2
- package/dist/core/p-e586ae7b.entry.js.map +0 -1
- package/dist/esm/helpers-46a2d1fd.js.map +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- /package/dist/core/{p-4245a976.entry.js.map → p-00bc353b.entry.js.map} +0 -0
- /package/dist/core/{p-ef09b450.entry.js.map → p-0a436c47.entry.js.map} +0 -0
- /package/dist/core/{p-fbde763c.entry.js.map → p-10e1e227.entry.js.map} +0 -0
- /package/dist/core/{p-88924aef.entry.js.map → p-1440847f.entry.js.map} +0 -0
- /package/dist/core/{p-bbe5596b.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
- /package/dist/core/{p-45432bf5.entry.js.map → p-1838d1e9.entry.js.map} +0 -0
- /package/dist/core/{p-3eb7ef1d.entry.js.map → p-18714198.entry.js.map} +0 -0
- /package/dist/core/{p-b3ac38c5.entry.js.map → p-1be17f22.entry.js.map} +0 -0
- /package/dist/core/{p-b3d6d5be.entry.js.map → p-267a19d4.entry.js.map} +0 -0
- /package/dist/core/{p-f3c72ffb.entry.js.map → p-2c371198.entry.js.map} +0 -0
- /package/dist/core/{p-70700c7a.entry.js.map → p-42a7d0b6.entry.js.map} +0 -0
- /package/dist/core/{p-33c86ba6.entry.js.map → p-628c32b8.entry.js.map} +0 -0
- /package/dist/core/{p-0631c3ab.entry.js.map → p-70a6cff1.entry.js.map} +0 -0
- /package/dist/core/{p-f815f8c9.entry.js.map → p-72c117b6.entry.js.map} +0 -0
- /package/dist/core/{p-7dfe0284.entry.js.map → p-788c96ac.entry.js.map} +0 -0
- /package/dist/core/{p-fe833509.entry.js.map → p-7fb79e87.entry.js.map} +0 -0
- /package/dist/core/{p-6de6b6b7.entry.js.map → p-83764268.entry.js.map} +0 -0
- /package/dist/core/{p-4b601e06.entry.js.map → p-8b5022bc.entry.js.map} +0 -0
- /package/dist/core/{p-1e4cdd2d.entry.js.map → p-8c4f7c63.entry.js.map} +0 -0
- /package/dist/core/{p-5e18b899.entry.js.map → p-910f5f14.entry.js.map} +0 -0
- /package/dist/core/{p-7afc71d0.entry.js.map → p-9479f272.entry.js.map} +0 -0
- /package/dist/core/{p-acebb05c.entry.js.map → p-9c47521d.entry.js.map} +0 -0
- /package/dist/core/{p-40f2f58e.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-e56d0db2.entry.js.map → p-9cfc2bac.entry.js.map} +0 -0
- /package/dist/core/{p-abaea607.entry.js.map → p-a0161990.entry.js.map} +0 -0
- /package/dist/core/{p-c2ca6274.entry.js.map → p-a4f9b5bf.entry.js.map} +0 -0
- /package/dist/core/{p-005cd8a8.entry.js.map → p-aad10013.entry.js.map} +0 -0
- /package/dist/core/{p-3675c4b4.entry.js.map → p-b8da5c07.entry.js.map} +0 -0
- /package/dist/core/{p-de43d375.entry.js.map → p-b9459ba2.entry.js.map} +0 -0
- /package/dist/core/{p-f34eee68.entry.js.map → p-bc2ca778.entry.js.map} +0 -0
- /package/dist/core/{p-7c0914e7.entry.js.map → p-bdc72446.entry.js.map} +0 -0
- /package/dist/core/{p-a9c96e3e.entry.js.map → p-c45023b7.entry.js.map} +0 -0
- /package/dist/core/{p-5206a978.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
- /package/dist/core/{p-23d059ff.entry.js.map → p-d45d66c0.entry.js.map} +0 -0
- /package/dist/core/{p-9ea9a4ce.entry.js.map → p-d6c50565.entry.js.map} +0 -0
- /package/dist/core/{p-3132270d.entry.js.map → p-dede4974.entry.js.map} +0 -0
- /package/dist/core/{p-23ed8b99.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
- /package/dist/core/{p-c04f36c5.entry.js.map → p-e86a6d2d.entry.js.map} +0 -0
- /package/dist/core/{p-7a0d238b.entry.js.map → p-ebab7a9e.entry.js.map} +0 -0
- /package/dist/core/{p-517d7afb.entry.js.map → p-eeab3a2e.entry.js.map} +0 -0
- /package/dist/core/{p-44e4e8c1.entry.js.map → p-ef36181d.entry.js.map} +0 -0
- /package/dist/core/{p-fc50d582.entry.js.map → p-f0388d68.entry.js.map} +0 -0
- /package/dist/core/{p-e2f893f0.entry.js.map → p-fbf57f0a.entry.js.map} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAQU,aAAQ,GAAY,KAAK,CAAC;QAIzB,qBAAgB,GAAW,EAAE,CAAC;QAC9B,YAAO,GAAY,KAAK,CAAC;QACzB,YAAO,GAAY,IAAI,CAAC;QAajC;;WAEG;QACK,aAAQ,GAAa,KAAK,CAAC;QAMnC;;WAEG;QACK,gBAAW,GAAa,KAAK,CAAC;QAOtC;;WAEG;QACK,SAAI,GAAa,QAAQ,CAAC;QAClC;;;WAGG;QACK,UAAK,GAAkC,SAAS,CAAC;QAEzD;;WAEG;QACK,0BAAqB,GAAa,IAAI,CAAC;QAE/C;;WAEG;QACK,YAAO,GAAoB,QAAQ,CAAC;QAE5C;;WAEG;QACK,iBAAY,GAAY,SAAS,CAAC;QAsClC,kBAAa,GAAG,GAAS,EAAE;Y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n} from \"../../utils/helpers\";\nimport { IcColor, IcEmphasisType, IcSizes } from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private inAGGrid: boolean = false;\n\n @Element() el: HTMLIcChipElement;\n\n @State() customColorClass: string = \"\";\n @State() hovered: boolean = false;\n @State() visible: boolean = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n\n @Watch(\"customColor\")\n customColorHandler(): void {\n this.setChipColour();\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible?: boolean = false;\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size?: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme?: \"dark\" | \"light\" | \"inherit\" = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground?: boolean = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant?: IcEmphasisType = \"filled\";\n\n /**\n * The text in the dismiss button tooltip and aria label.\n */\n @Prop() dismissLabel?: string = \"Dismiss\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentWillRender(): void {\n if (isElInAGGrid(this.el)) {\n this.inAGGrid = true;\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"button\")?.focus();\n }\n\n private dismissAction = (): void => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = (): void => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = (): void => {\n this.hovered = false;\n };\n\n private setChipColour = () => {\n const colorRGBA = this.customColor ? convertToRGBA(this.customColor) : null;\n\n if (colorRGBA) {\n const { r, g, b, a } = colorRGBA;\n this.customColorClass =\n (r * 299 + g * 587 + b * 114) / 1000 > 133.3505\n ? \"ic-chip-dark-text\"\n : \"ic-chip-light-text\";\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n } else {\n this.customColorClass = \"\";\n }\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n customColorClass,\n dismissLabel,\n } = this;\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`${customColorClass}`]:\n variant === \"filled\" && customColorClass !== \"\",\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled: !!disabled,\n dismissible: !!dismissible,\n hovered,\n \"non-transparent\":\n this.variant === \"outlined\" && !this.transparentBackground,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": this.inAGGrid }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel!}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": !!disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n aria-label={`${dismissLabel} ${label} chip`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAYW,oBAAe,GAAsC,IAAI,CAAC;QAC1D,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC;QAyBxB;;WAEG;QACK,aAAQ,GAAG,KAAK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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n getBrandForegroundAppearance,\n} from \"../../utils/helpers\";\nimport {\n IcBrandForegroundNoDefault,\n IcColor,\n IcEmphasisType,\n IcSizes,\n IcThemeMode,\n} from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private buttonEl?: HTMLButtonElement;\n\n @Element() el: HTMLIcChipElement;\n\n @State() foregroundColor: IcBrandForegroundNoDefault | null = null;\n @State() hovered = false;\n @State() visible = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n @Watch(\"customColor\")\n customColorHandler(): void {\n const colorRGBA = this.customColor && convertToRGBA(this.customColor);\n if (!colorRGBA) {\n this.foregroundColor = null;\n return;\n }\n\n const { r, g, b, a } = colorRGBA;\n this.foregroundColor = getBrandForegroundAppearance(\n (r * 299 + g * 587 + b * 114) / 1000\n );\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible = false;\n\n /**\n * The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.\n */\n @Prop() dismissLabel = \"Dismiss\";\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant: IcEmphasisType = \"filled\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private dismissAction = () => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = () => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = () => {\n this.hovered = false;\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n foregroundColor,\n dismissLabel,\n transparentBackground,\n } = this;\n\n const ariaLabel = `${label} chip`;\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`ic-chip-${foregroundColor}-text`]:\n variant === \"filled\" && !!foregroundColor,\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled,\n dismissible,\n hovered,\n \"non-transparent\":\n variant === \"outlined\" && !transparentBackground,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": isElInAGGrid(this.el) }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n ref={(el) => (this.buttonEl = el)}\n aria-label={`${dismissLabel} ${ariaLabel}`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n {dismissible && (\n <div class=\"sr-only\" aria-live=\"polite\">\n {!visible ? `Dismissed ${ariaLabel}` : \"\"}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -18,10 +18,10 @@ export class DataList {
|
|
18
18
|
if (size === "small") {
|
19
19
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
20
20
|
}
|
21
|
-
return (h(Host, { key: '
|
21
|
+
return (h(Host, { key: '6f83752c95bc937a1fcc825cfaefa57f3103b71d', class: {
|
22
22
|
"ic-data-list-small": size === "small",
|
23
23
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
24
|
-
} }, h("div", { key: '
|
24
|
+
} }, h("div", { key: '1d2299d6bf8a13cba28b18d33ec8e1387c624cc5', class: "heading", id: "data-list-heading" }, h("slot", { key: '2f8b5c7bbb30d4c11bc08947737c7c9d7f0e91ed', name: "heading" }, h("ic-typography", { key: '7665e122d1da3e292abf459f0456e64c966eb65d', variant: "h3" }, heading))), h("div", { key: '44be7746fb08b772fc9bb38cd673811026fe4092', class: "divider" }), h("ul", { key: '8aa11aeada0518d6d9db18f3c962863e1414b02b', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: '18635edff92562810f11056cb750615884e28efe' }))));
|
25
25
|
}
|
26
26
|
static get is() { return "ic-data-list"; }
|
27
27
|
static get encapsulation() { return "shadow"; }
|
@@ -68,12 +68,12 @@ export class DataRow {
|
|
68
68
|
}
|
69
69
|
render() {
|
70
70
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
71
|
-
return (h(Host, { key: '
|
71
|
+
return (h(Host, { key: '572e916da4b05c25ef2d30d186e80b08f3dfb5b5', class: {
|
72
72
|
["ic-data-row-small"]: size === "small",
|
73
73
|
["breakpoint-medium"]: listSize === "m",
|
74
74
|
["breakpoint-xs"]: listSize === "xs",
|
75
75
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
76
|
-
}, role: "listitem" }, h("div", { key: '
|
76
|
+
}, role: "listitem" }, h("div", { key: '3fd5751be8c21404dfbe1c37d121103d7bc32ec5', class: "data" }, h("div", { key: '9dfd49f76340e059ad39cda8f7a28d7d51edeb5a', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: '0b64f2937db81ddb2aa12ea4a3d6a19ba69c925b', class: "end-component" }, h("slot", { key: 'fe70b486ca8ccc5f409fe805a772bd0110752a75', name: "end-component" })))), h("div", { key: '286f657395d2d77dd8d2783a395d02f897fd361b', class: "divider" })));
|
77
77
|
}
|
78
78
|
static get is() { return "ic-data-row"; }
|
79
79
|
static get encapsulation() { return "shadow"; }
|
@@ -334,7 +334,7 @@ export class Dialog {
|
|
334
334
|
}
|
335
335
|
render() {
|
336
336
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
337
|
-
return (h(Host, { key: '
|
337
|
+
return (h(Host, { key: '11ce388b78e337682fcd54494a076789d488b86b', class: {
|
338
338
|
"ic-dialog-hidden": !dialogRendered,
|
339
339
|
"ic-dialog-fade-in": fadeIn,
|
340
340
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -37,11 +37,11 @@ export class EmptyState {
|
|
37
37
|
}
|
38
38
|
render() {
|
39
39
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
40
|
-
return (h(Host, { key: '
|
40
|
+
return (h(Host, { key: '16659f35d2b14d9a5e32fe6c61619fbafdf58f53', class: {
|
41
41
|
[`ic-empty-state-${aligned}`]: true,
|
42
42
|
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
43
43
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
44
|
-
} }, isSlotUsed(this.el, "image") && h("slot", { key: '
|
44
|
+
} }, isSlotUsed(this.el, "image") && h("slot", { key: 'ccc8a2daf0041d9dd5e611d3b60c96820271745b', name: "image" }), h("div", { key: 'ab68dff198b63394d890399ec53b9befbb70f222' }, h("slot", { key: 'fe99ebbfe6b9c899d4b1fb5737df268e0bc38bb4', name: "heading" }, h("ic-typography", { key: 'eea6eb657e09159b27935e16864961b95387a3d6', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: 'ca04ac75d72fc5864ed7821bf9d16c8999eac3aa', name: "subheading" }, h("ic-typography", { key: '257a4f73c4fb3577e4c1653607a492b4f4d18470', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: 'f0efda6128d1b5a5f2b280faf23940b0832e3121', name: "body" }, h("ic-typography", { key: '128849e7a458b1ff7b51079eeb9f6967df88cef1', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: '22cf30fd1f3636fb3344689c4435b59d4148bb5f', class: "action-area" }, h("slot", { key: 'c4e187603beb9b2291c9e038202ff651d4decfff', name: "actions" })))));
|
45
45
|
}
|
46
46
|
static get is() { return "ic-empty-state"; }
|
47
47
|
static get encapsulation() { return "shadow"; }
|
@@ -39,12 +39,12 @@ export class FooterLink {
|
|
39
39
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
40
40
|
const { small, grouped } = footerConfig;
|
41
41
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
42
|
-
return (h(Host, { key: '
|
42
|
+
return (h(Host, { key: 'b093247260ef7378ef3aa666029e463641eb20c0', class: {
|
43
43
|
"footer-link": true,
|
44
44
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
45
45
|
[`footer-link-${this.foregroundColor}`]: true,
|
46
46
|
"footer-logo-link": isLogoLink,
|
47
|
-
}, role: "listitem" }, h("ic-link", { key: '
|
47
|
+
}, role: "listitem" }, h("ic-link", { key: '79ac221357a96ca920f68609bb390a30f53be256', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: '06182bca4f4268ca01466a411a8de43671fbea24' }))));
|
48
48
|
}
|
49
49
|
static get is() { return "ic-footer-link"; }
|
50
50
|
static get encapsulation() { return "shadow"; }
|
@@ -74,17 +74,17 @@ export class Hero {
|
|
74
74
|
"background-position": scrollFactor,
|
75
75
|
};
|
76
76
|
}
|
77
|
-
return (h(Host, { key: '
|
77
|
+
return (h(Host, { key: 'e03ade9bdd2567cd7ab8c1072bbdd90b3d75e3d8', class: {
|
78
78
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
79
79
|
["has-background-image"]: backgroundImage !== undefined,
|
80
80
|
["ic-hero-small"]: size === "small",
|
81
81
|
["secondary-heading"]: !!secondaryHeading,
|
82
|
-
}, style: style }, h("ic-section-container", { key: '
|
82
|
+
}, style: style }, h("ic-section-container", { key: 'af3bd63ec96401bf7db7238c8ceb5f2c867f4a0b', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '8a37d137f390c9203973349f4fc3c2d2616045a9', class: {
|
83
83
|
["left-container"]: true,
|
84
84
|
["left-container-full-width"]: this.leftContentFullWidth,
|
85
|
-
} }, h("div", { key: '
|
85
|
+
} }, h("div", { key: 'a5796632e455cafaa95e2d03a7a653c04362aad6', class: "heading" }, h("slot", { key: '48c41d241497410ecd63ceccd3de26e350b1261d', name: "heading" }, h("ic-typography", { key: '6a6a601125d672f0ccd9c83dc51a016dd15e3e8d', variant: size === "small" ? "h2" : "h1", class: {
|
86
86
|
["heading-bottom-spacing"]: size !== "small",
|
87
|
-
} }, h("h2", { key: '
|
87
|
+
} }, h("h2", { key: 'c467063d6438bb2cc0ce9c04dd73408c184193c2' }, heading)))), h("div", { key: '677298e8979a2220a3c6f468476c1f2b1777a3af', class: "subheading" }, h("slot", { key: 'e2a55ff9eb1373c7b2c598909bee840a9224d606', name: "subheading" }, h("ic-typography", { key: '6fbfaad27a0439f6e0bf469757a1238e307683ac', variant: "body" }, subheading))), h("div", { key: '423aafd1dc41ca03887a59730e5880e23e2964b6', class: "interaction-container" }, h("slot", { key: '186057e873764afda68fad740fb8cb2826071b11', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '93910106562c1fc044d4a2a8126ff272905a34bf', class: "right-container" }, h("slot", { key: 'e801d684ed24de1e7138b6edb525e288c0461d60', name: "secondary" }, secondaryHeading && (h("div", { key: 'b602ea433de5de2d04522ac0f448c0422e886faa', class: "secondary-container" }, h("div", { key: 'd538d984f09bc748dc7c23599439bf7eba85f830', class: "secondary-heading" }, h("ic-typography", { key: '68d89508c9660f675ed35c0fa18f6cfde2cb5288', variant: "h4" }, h("h3", { key: '07285a037d0bfb1b397d9b0b96511804c7afc464' }, secondaryHeading))), h("div", { key: '6187e9026f1526f5c5d5c5e62bc1360fb869ef12', class: "secondary-subheading" }, h("ic-typography", { key: '6172800b84a3628d472b0cf7a1c3b52ff41a0aec', variant: "subtitle-small" }, secondarySubheading))))))))));
|
88
88
|
}
|
89
89
|
static get is() { return "ic-hero"; }
|
90
90
|
static get encapsulation() { return "shadow"; }
|
@@ -155,22 +155,22 @@ export class HorizontalScroll {
|
|
155
155
|
}
|
156
156
|
render() {
|
157
157
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
158
|
-
return (h(Host, { key: '
|
158
|
+
return (h(Host, { key: '329d00bc4e7ebfab434cb41dd32e919820c5adb5', class: {
|
159
159
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
160
160
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
161
161
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
162
162
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
163
|
-
} }, h("div", { key: '
|
163
|
+
} }, h("div", { key: 'ed231bf1fcd68399e29e790026b377bf8f96a14e', "aria-hidden": "true", class: {
|
164
164
|
["scroll-container-left"]: true,
|
165
165
|
["hidden"]: !itemOverflow,
|
166
166
|
["disabled"]: firstItemVisible,
|
167
|
-
}, role: "tab" }, h("ic-button", { key: '
|
167
|
+
}, role: "tab" }, h("ic-button", { key: 'c34f45cb44e242939985f792a21e482a11078fba', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
168
168
|
? "dark"
|
169
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: '
|
169
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: 'c5b52e4cfa655f8dc499e69da531870f4e4fe216', class: "scroll-splitter-left" })), h("slot", { key: '8478dc63668ed2e842182c47e9a3b27b77ac642f' }), h("div", { key: 'b9b0e21e69a40f7afda403db3db8b983257240c0', "aria-hidden": "true", class: {
|
170
170
|
["scroll-container-right"]: true,
|
171
171
|
["hidden"]: !itemOverflow,
|
172
172
|
["disabled"]: lastItemVisible,
|
173
|
-
}, role: "tab" }, h("span", { key: '
|
173
|
+
}, role: "tab" }, h("span", { key: '909936dddf54502bb1bdc3fdfdf36d59b5582238', class: "scroll-splitter-right" }), h("ic-button", { key: '4e9093a9da1b3e387933dfc2495f1279bb7ad180', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
174
174
|
? "dark"
|
175
175
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
176
176
|
}
|
package/dist/collection/components/ic-input-component-container/ic-input-component-container.js
CHANGED
@@ -48,15 +48,15 @@ export class InputComponentContainer {
|
|
48
48
|
}
|
49
49
|
render() {
|
50
50
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
51
|
-
return (h(Host, { key: '
|
51
|
+
return (h(Host, { key: '86271007106caa930e823cd2a9b9242670a1d2c1', class: {
|
52
52
|
[`ic-input-component-container-${size}`]: true,
|
53
53
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
54
54
|
"ic-input-component-container-disabled": !!disabled,
|
55
55
|
"ic-input-component-container-readonly": !!readonly,
|
56
56
|
"ic-input-component-container-multiline": !!multiLine,
|
57
57
|
"ic-input-component-container-full-width": !!fullWidth,
|
58
|
-
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '
|
59
|
-
validationStatus === IcInformationStatus.Success && (h("span", { key: '
|
58
|
+
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '2b8e64e7cc2d78b34b816b080f7e5856b4aef254', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: '738e1d776664a7971bd97f36a68b8193849178ae', class: "icon-container" }, h("slot", { key: 'c6d5fa181367e1988b3e454b06c01345afa393ff', name: "left-icon" }))), h("slot", { key: '970ccdc08abd4dbf84248cc5708ab09ecbcbc0ae' }), validationInline &&
|
59
|
+
validationStatus === IcInformationStatus.Success && (h("span", { key: '6c7cbd9c69c11a8688972039ba519829805d3ab7', class: "inline-success", innerHTML: successIcon })))));
|
60
60
|
}
|
61
61
|
static get is() { return "ic-input-component-container"; }
|
62
62
|
static get originalStyleUrls() {
|
@@ -11,11 +11,11 @@ export class InputContainer {
|
|
11
11
|
this.readonly = false;
|
12
12
|
}
|
13
13
|
render() {
|
14
|
-
return (h(Host, { key: '
|
14
|
+
return (h(Host, { key: 'ffa7ae6f683f172205085d3ade5af4ed2b665f5e' }, h("div", { key: 'e010e17e975c12a26c9ae66cb604ca561882901b', class: {
|
15
15
|
["component-container"]: true,
|
16
16
|
["disabled"]: !!this.disabled,
|
17
17
|
["readonly"]: !!this.readonly,
|
18
|
-
} }, h("slot", { key: '
|
18
|
+
} }, h("slot", { key: '202931f1bc8d2ab341753c23464e266fd899a15d' }))));
|
19
19
|
}
|
20
20
|
static get is() { return "ic-input-container"; }
|
21
21
|
static get originalStyleUrls() {
|
@@ -37,18 +37,18 @@ export class InputLabel {
|
|
37
37
|
render() {
|
38
38
|
const { disabled, readonly, label, required, helperText, status, hideLabel, useLabelTag, } = this;
|
39
39
|
const labelText = required ? label + " *" : label;
|
40
|
-
return (h(Host, { key: '
|
40
|
+
return (h(Host, { key: '324edfe4443673e3c50afaf6abe1507dddf8c5a1', class: {
|
41
41
|
"ic-input-label-disabled": !!disabled,
|
42
42
|
"ic-input-label-readonly": readonly,
|
43
43
|
"with-helper": helperText !== "",
|
44
|
-
} }, !hideLabel && (h("ic-typography", { key: '
|
44
|
+
} }, !hideLabel && (h("ic-typography", { key: 'cc4776d1421cf7b93ff5bb5c0b148c82d9c42ef4', variant: "label", class: {
|
45
45
|
"readonly-label": readonly,
|
46
46
|
"error-label": status === "error" && !(readonly || disabled),
|
47
|
-
} }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (h("ic-typography", { key: '
|
47
|
+
} }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), helperText !== "" && (h("ic-typography", { key: '8ccf12c8a4430108018f4ce1097359dbd23baefe', variant: "caption", class: {
|
48
48
|
helpertext: true,
|
49
49
|
"helpertext-normal": !disabled && !readonly,
|
50
50
|
"helpertext-readonly": readonly,
|
51
|
-
} }, h("span", { key: '
|
51
|
+
} }, h("span", { key: 'e6a63927e7da03f64b50f5b65be1eb63410f8dab', id: this.for && getInputHelperTextID(this.for) }, helperText)))));
|
52
52
|
}
|
53
53
|
static get is() { return "ic-input-label"; }
|
54
54
|
static get originalStyleUrls() {
|
@@ -33,13 +33,13 @@ export class InputValidation {
|
|
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: 'f61832a182b954a8b114547acd18ce38576daf06', 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: '2d0766ad790827b8757354c2dc3d29e3aa9a5f71', 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: 'b1a98a5b7fd18ab96cde1ff555410f35f76a66e2', variant: "caption", class: "statustext" }, h("span", { key: '5306d723ea7527eb997d778e82fbe10e00af7852', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID(this.for) }, message)), h("slot", { key: 'a7e3c126ac89a1c616a327da99b8324df7c4464e', name: "validation-message-adornment" })));
|
43
43
|
}
|
44
44
|
static get is() { return "ic-input-validation"; }
|
45
45
|
static get originalStyleUrls() {
|
@@ -39,6 +39,9 @@ export class Link {
|
|
39
39
|
}
|
40
40
|
};
|
41
41
|
}
|
42
|
+
watchDownloadHandler() {
|
43
|
+
this.updateDownload();
|
44
|
+
}
|
42
45
|
componentWillLoad() {
|
43
46
|
this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);
|
44
47
|
this.updateTheme();
|
@@ -74,6 +77,18 @@ export class Link {
|
|
74
77
|
: IcBrandForegroundEnum.Light;
|
75
78
|
}
|
76
79
|
}
|
80
|
+
updateDownload() {
|
81
|
+
var _a;
|
82
|
+
const element = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("a");
|
83
|
+
if (element) {
|
84
|
+
if (this.download) {
|
85
|
+
element.setAttribute("download", this.download === true ? "" : this.download);
|
86
|
+
}
|
87
|
+
else {
|
88
|
+
element.removeAttribute("download");
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
77
92
|
hasRouterSlot() {
|
78
93
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
79
94
|
if (this.routerSlot) {
|
@@ -83,13 +98,13 @@ export class Link {
|
|
83
98
|
}
|
84
99
|
render() {
|
85
100
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
86
|
-
return (h(Host, { key: '
|
101
|
+
return (h(Host, { key: 'b554bf4f2fc16dd66f7d393ae4813fe10c9a16f8', class: {
|
87
102
|
["ic-link"]: true,
|
88
103
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
89
104
|
["ic-link-monochrome"]: !!monochrome,
|
90
105
|
} }, this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h("a", Object.assign({ class: {
|
91
106
|
["link"]: !!href,
|
92
|
-
}, download: download !==
|
107
|
+
}, download: download !== true ? download : "", href: href, hrefLang: hreflang, referrerPolicy: referrerpolicy, rel: rel, target: target, tabindex: href ? "0" : "-1" }, this.inheritedAttributes, { part: "link" }), h("slot", null), target === "_blank" && (h("span", { class: "ic-link-open-in-new-icon", innerHTML: OpenInNew }))))));
|
93
108
|
}
|
94
109
|
static get is() { return "ic-link"; }
|
95
110
|
static get encapsulation() { return "shadow"; }
|
@@ -296,6 +311,12 @@ export class Link {
|
|
296
311
|
};
|
297
312
|
}
|
298
313
|
static get elementRef() { return "el"; }
|
314
|
+
static get watchers() {
|
315
|
+
return [{
|
316
|
+
"propName": "download",
|
317
|
+
"methodName": "watchDownloadHandler"
|
318
|
+
}];
|
319
|
+
}
|
299
320
|
static get listeners() {
|
300
321
|
return [{
|
301
322
|
"name": "brandChange",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-link.js","sourceRoot":"","sources":["../../../src/components/ic-link/ic-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,MAAM,EACN,MAAM,EACN,WAAW,
|
1
|
+
{"version":3,"file":"ic-link.js","sourceRoot":"","sources":["../../../src/components/ic-link/ic-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,MAAM,EACN,MAAM,EACN,WAAW,EACX,KAAK,GACN,MAAM,eAAe,CAAC;AAEvB,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAGL,qBAAqB,GAEtB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AASH,MAAM,OAAO,IAAI;IAPjB;QAQU,wBAAmB,GAA4B,EAAE,CAAC;QAElD,yBAAoB,GAA4B,IAAI,CAAC;QAI7D;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ACC,CACL,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Prop,\n h,\n Host,\n Listen,\n Method,\n forceUpdate,\n Watch,\n} from \"@stencil/core\";\n\nimport OpenInNew from \"../../assets/OpenInNew.svg\";\nimport { getBrandFromContext, inheritAttributes } from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcBrand,\n IcBrandForeground,\n IcBrandForegroundEnum,\n IcThemeMode,\n} from \"../../utils/types\";\n\n/**\n * @slot router-item - Handle routing by nesting your routes in this slot.\n */\n\n@Component({\n tag: \"ic-link\",\n styleUrl: \"ic-link.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Link {\n private inheritedAttributes: { [k: string]: string } = {};\n private routerSlot: HTMLElement | null;\n private hostMutationObserver: MutationObserver | null = null;\n\n @Element() el: HTMLIcLinkElement;\n\n /**\n * If `true`, the user can save the linked URL instead of navigating to it.\n */\n @Prop() download?: string | boolean = false;\n @Watch(\"download\")\n watchDownloadHandler(): void {\n this.updateDownload();\n }\n\n /**\n * The URL that the link points to.\n */\n @Prop() href?: string;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * If `true`, the link will display as black in the light theme, and white in the dark theme.\n */\n @Prop({ mutable: true }) monochrome?: boolean = false;\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n /**\n * 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.\n */\n @Prop({ mutable: true }) theme?: IcThemeMode = \"inherit\";\n\n componentWillLoad(): void {\n this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);\n this.updateTheme();\n this.el.setAttribute(\"exportparts\", \"link\");\n }\n\n componentDidLoad(): void {\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n });\n }\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n @Listen(\"brandChange\", { target: \"document\" })\n brandChangeHandler({ detail }: CustomEvent<IcBrand>): void {\n this.updateTheme(detail.mode);\n }\n\n /**\n * Sets focus on the link.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"a\")?.focus();\n }\n\n private updateTheme(mode: IcBrandForeground | null = null): void {\n const theme = getBrandFromContext(this.el, mode);\n\n if (theme !== IcBrandForegroundEnum.Default) {\n this.monochrome = true;\n this.theme =\n theme === IcBrandForegroundEnum.Light\n ? IcBrandForegroundEnum.Dark\n : IcBrandForegroundEnum.Light;\n }\n }\n\n private updateDownload(): void {\n const element = this.el.shadowRoot?.querySelector(\"a\");\n if (element) {\n if (this.download) {\n element.setAttribute(\n \"download\",\n this.download === true ? \"\" : this.download\n );\n } else {\n element.removeAttribute(\"download\");\n }\n }\n }\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n if (this.routerSlot) {\n this.routerSlot.ariaLabel = this.routerSlot.textContent;\n }\n return !!this.routerSlot;\n }\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(({ attributeName }) => {\n if (attributeName) {\n const attribute = this.el.getAttribute(attributeName);\n if (attribute && IC_INHERITED_ARIA.includes(attributeName)) {\n this.inheritedAttributes[attributeName] = attribute;\n forceComponentUpdate = true;\n }\n }\n });\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n render() {\n const {\n download,\n href,\n hreflang,\n referrerpolicy,\n rel,\n target,\n monochrome,\n theme,\n } = this;\n\n return (\n <Host\n class={{\n [\"ic-link\"]: true,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [\"ic-link-monochrome\"]: !!monochrome,\n }}\n >\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <a\n class={{\n [\"link\"]: !!href,\n }}\n download={download !== true ? download : \"\"}\n href={href}\n hrefLang={hreflang}\n referrerPolicy={referrerpolicy}\n rel={rel}\n target={target}\n tabindex={href ? \"0\" : \"-1\"}\n {...this.inheritedAttributes}\n part=\"link\"\n >\n <slot />\n {target === \"_blank\" && (\n <span class=\"ic-link-open-in-new-icon\" innerHTML={OpenInNew} />\n )}\n </a>\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -43,12 +43,35 @@ export const WithIcon = {
|
|
43
43
|
};
|
44
44
|
|
45
45
|
export const DownloadLink = {
|
46
|
-
render: () =>
|
47
|
-
|
46
|
+
render: () =>
|
47
|
+
html`<div>
|
48
|
+
<ic-link href="/" download="downloaded-file">Download File</ic-link>
|
49
|
+
<br />
|
50
|
+
<br />
|
51
|
+
<ic-button variant="primary" onclick="handleTrue()"
|
52
|
+
>Set to true</ic-button
|
53
|
+
>
|
54
|
+
<ic-button variant="primary" onclick="handleFalse()"
|
55
|
+
>Set to false</ic-button
|
56
|
+
>
|
57
|
+
<ic-button variant="primary" onclick="handleReset()"
|
58
|
+
>Set to normal</ic-button
|
59
|
+
>
|
60
|
+
</div>
|
61
|
+
<script>
|
62
|
+
var link = document.querySelector("ic-link");
|
63
|
+
function handleTrue() {
|
64
|
+
link.download = true;
|
65
|
+
}
|
66
|
+
function handleFalse() {
|
67
|
+
link.download = false;
|
68
|
+
}
|
69
|
+
function handleReset() {
|
70
|
+
link.download = "downloaded-file";
|
71
|
+
}
|
72
|
+
</script>`,
|
48
73
|
|
49
|
-
|
50
|
-
layout: "fullscreen",
|
51
|
-
},
|
74
|
+
name: "Download link",
|
52
75
|
};
|
53
76
|
|
54
77
|
export const Playground = {
|
@@ -202,15 +202,15 @@ export class LoadingIndicator {
|
|
202
202
|
render() {
|
203
203
|
const { theme, label, description, size, fullWidth, innerLabel, monochrome, } = this;
|
204
204
|
const { x, y, r } = this.setCircleXY();
|
205
|
-
return (h(Host, { key: '
|
205
|
+
return (h(Host, { key: 'af8aecb7e2feb45574ce1dbce238e24ece0a7c14', class: {
|
206
206
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
207
207
|
"ic-loading-indicator-label": !!label,
|
208
208
|
"ic-loading-indicator-full-width": !!fullWidth,
|
209
209
|
"inner-label": !!innerLabel,
|
210
210
|
"ic-loading-indicator-monochrome": !!monochrome,
|
211
|
-
} }, h("div", { key: '
|
211
|
+
} }, h("div", { key: '46a3bbc13400779a3aa92324f84b2a0515a34a64', class: "ic-loading-container", part: "ic-loading-container" }, h("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 }, h("div", { key: '4c0937928bd38982462ad36d6df98ecd5729b64e', ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.innerLabel &&
|
212
212
|
this.innerLabel !== undefined &&
|
213
|
-
this.size === "small" && (h("ic-typography", { key: '
|
213
|
+
this.size === "small" && (h("ic-typography", { key: '13c9dbbead841cf7995caefc63bb86d8c0e40d2d', variant: "subtitle-small", class: "inner-text" }, this.innerLabel)), this.type === "circular" && (h("svg", { key: '12decbb0441c22e9c0f7f82b8c7737b24c44bf01', class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, h("circle", { key: '96ba0e0a054be9be9f707903ae8d8075ab92b360', cx: `${x}`, cy: `${y}`, r: `${r}` }), h("circle", { key: 'b986b1626971075e86063a898948df490856cd3d', cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (h("ic-typography", { key: '5d3ceea4f339006c6389a99ea52befaea885988a', id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, h("p", { key: '5dfc851559b8ef4fb2b4fca4a002d87ad1b52d43' }, this.indicatorLabel))))));
|
214
214
|
}
|
215
215
|
static get is() { return "ic-loading-indicator"; }
|
216
216
|
static get encapsulation() { return "shadow"; }
|
@@ -914,7 +914,7 @@ export class Menu {
|
|
914
914
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, } = this;
|
915
915
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
916
916
|
const hasNoResults = this.host.classList.contains("no-results");
|
917
|
-
return (h(Host, { key: '
|
917
|
+
return (h(Host, { key: 'd0c5f5c23b4f20260852cefb5fedea21302e9d96', class: {
|
918
918
|
"ic-menu-full-width": !!fullWidth,
|
919
919
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
920
920
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -923,7 +923,7 @@ export class Menu {
|
|
923
923
|
[`ic-menu-${size}`]: true,
|
924
924
|
"ic-menu-open": open && options.length !== 0,
|
925
925
|
"ic-menu-multiple": this.isMultiSelect,
|
926
|
-
} }, options.length !== 0 && (h("ul", { key: '
|
926
|
+
} }, options.length !== 0 && (h("ul", { key: '83a3eb54200af022e6868732e5a7b36d81be36a2', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": this.isMultiSelect ? "true" : "false", tabindex: open &&
|
927
927
|
!keyboardNav &&
|
928
928
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
929
929
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -951,7 +951,7 @@ export class Menu {
|
|
951
951
|
this.isMultiSelect &&
|
952
952
|
!isLoading &&
|
953
953
|
!hasTimedOut &&
|
954
|
-
!hasNoResults && (h("div", { key: '
|
954
|
+
!hasNoResults && (h("div", { key: '0273a92b2489cf7c2e78c19925016f9fa1c7f8ce', class: "option-bar" }, h("ic-typography", { key: '12fb3d62eff3d6d2545004d73f2de8726c4ee9e8' }, h("p", { key: '661d0a4ca79cda7f6fa5d1e229baa0ed301599b9' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), h("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)))));
|
955
955
|
}
|
956
956
|
static get is() { return "ic-menu"; }
|
957
957
|
static get encapsulation() { return "scoped"; }
|
@@ -3,7 +3,7 @@ import { isPropDefined } from "../../utils/helpers";
|
|
3
3
|
export class MenuGroup {
|
4
4
|
render() {
|
5
5
|
const parentMenu = this.el.closest("ic-popover-menu");
|
6
|
-
return (h(Host, { key: '
|
6
|
+
return (h(Host, { key: '384be493b4b4148e4a09f0395bb1db6b651bfc2f', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (h("ic-typography", { key: '46982951ac8573a5ee8c5733043e109f268859f8', variant: "subtitle-small" }, this.label)), h("span", { key: 'd5a5fe976b9f88e61df589c1ddc105c31b8639e2', class: "menu-items-wrapper" }, h("slot", { key: '3b6cab53fde94c5a9cbc0a6a323c0aff28975a1c' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (h("hr", { key: '60412dd9914569ad72a6160787b48d8b3239cebb' }))));
|
7
7
|
}
|
8
8
|
static get is() { return "ic-menu-group"; }
|
9
9
|
static get encapsulation() { return "shadow"; }
|
@@ -85,17 +85,17 @@ export class MenuItem {
|
|
85
85
|
};
|
86
86
|
return (h(Host, { class: {
|
87
87
|
["ic-menu-item-disabled"]: !!this.disabled,
|
88
|
-
} }, h("
|
88
|
+
} }, h("ic-button", { fullWidth: true, variant: "tertiary", onClick: this.handleClick, href: isPropDefined(this.href), hreflang: isPropDefined(this.hreflang), target: isPropDefined(this.target), rel: isPropDefined(this.rel), referrerpolicy: this.referrerpolicy, role: this.variant === "toggle" ? "menuitemcheckbox" : "menuitem", "aria-disabled": `${this.disabled}`, "aria-checked": this.variant === "toggle"
|
89
89
|
? this.checked
|
90
90
|
? "true"
|
91
91
|
: "false"
|
92
|
-
: undefined
|
92
|
+
: undefined, "aria-label": this.getMenuItemAriaLabel(), "aria-haspopup": isPropDefined(this.submenuTriggerFor) ||
|
93
93
|
this.el.classList.contains("ic-popover-submenu-back-button")
|
94
94
|
? "menu"
|
95
95
|
: false }, h("div", { class: "focus-border" }, isSlotUsed(this.el, "icon") && (h("span", { class: "icon" }, h("slot", { name: "icon" }))), h(MenuItemInformation, null), this.variant === "toggle" && (h("span", { class: {
|
96
96
|
["check-icon"]: true,
|
97
97
|
["hide"]: !this.checked,
|
98
|
-
}, "aria-hidden": "true", innerHTML: Check })), isPropDefined(this.submenuTriggerFor) && (h("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: Chevron }))))))
|
98
|
+
}, "aria-hidden": "true", innerHTML: Check })), isPropDefined(this.submenuTriggerFor) && (h("span", { class: { ["submenu-icon"]: true }, "aria-hidden": "true", innerHTML: Chevron }))))));
|
99
99
|
}
|
100
100
|
static get is() { return "ic-menu-item"; }
|
101
101
|
static get encapsulation() { return "shadow"; }
|