@ukic/web-components 3.14.0 → 3.15.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/ic-button_3.cjs.entry.js +5 -5
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox.cjs.entry.js +31 -8
- package/dist/cjs/ic-checkbox.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 +2 -2
- package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-hero.cjs.entry.js +11 -6
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +8 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -5
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
- package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
- package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
- 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 +4 -4
- 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 +2 -2
- package/dist/cjs/ic-step.cjs.entry.js +13 -13
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js +6 -6
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +9 -2
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +31 -7
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +52 -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.css +21 -0
- package/dist/collection/components/ic-hero/ic-hero.js +36 -5
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.stories.js +15 -0
- 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 +2 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +5 -5
- 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-navigation-group/ic-navigation-group.js +1 -1
- 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.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 +9 -9
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.css +1 -1
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +21 -5
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- 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-stepper/ic-stepper.stories.js +16 -6
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- 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 +6 -6
- 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 +14 -0
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +4 -4
- 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/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox.js +31 -8
- package/dist/components/ic-checkbox.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 +12 -6
- package/dist/components/ic-hero.js.map +1 -1
- 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 +2 -2
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-layout-grid-item.js +2 -2
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +3 -3
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-item.js.map +1 -1
- 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 +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-search-bar.js +9 -9
- 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 +4 -4
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-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 +4 -4
- 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-text-field.js +6 -6
- 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 +4 -4
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/core/core.css +21 -9
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-889bb8db.entry.js → p-04cb17d7.entry.js} +2 -2
- package/dist/core/{p-d20a61a7.entry.js → p-06c950a3.entry.js} +2 -2
- package/dist/core/{p-6e61c48a.entry.js → p-0c4ceed9.entry.js} +2 -2
- package/dist/core/{p-6f60262e.entry.js → p-11d8a504.entry.js} +3 -3
- package/dist/core/{p-f4e2e41f.entry.js → p-12c30491.entry.js} +2 -2
- package/dist/core/{p-109e7fce.entry.js → p-14d43f64.entry.js} +2 -2
- package/dist/core/p-1ca4a5ed.entry.js +2 -0
- package/dist/core/p-1ca4a5ed.entry.js.map +1 -0
- package/dist/core/{p-efc97f21.entry.js → p-1f41818b.entry.js} +2 -2
- package/dist/core/{p-5cf704e3.entry.js → p-319e3d5b.entry.js} +2 -2
- package/dist/core/{p-d1cce122.entry.js → p-33e35173.entry.js} +2 -2
- package/dist/core/{p-eb1823b3.entry.js → p-34407b13.entry.js} +2 -2
- package/dist/core/p-34407b13.entry.js.map +1 -0
- package/dist/core/{p-4a358f09.entry.js → p-3680f22c.entry.js} +2 -2
- package/dist/core/{p-ab26beed.entry.js → p-3d23ce54.entry.js} +2 -2
- package/dist/core/{p-ef397b6f.entry.js → p-42d35fc4.entry.js} +2 -2
- package/dist/core/{p-0b1ea961.entry.js → p-4d3b219c.entry.js} +2 -2
- package/dist/core/{p-93e1ba0a.entry.js → p-5254a078.entry.js} +2 -2
- package/dist/core/{p-9c2e9189.entry.js → p-53740194.entry.js} +2 -2
- package/dist/core/{p-614953c5.entry.js → p-601d4e3f.entry.js} +2 -2
- package/dist/core/{p-0257d59e.entry.js → p-6329ddcb.entry.js} +2 -2
- package/dist/core/{p-d8200098.entry.js → p-67c3985d.entry.js} +2 -2
- package/dist/core/{p-a8dc3162.entry.js → p-703f3de1.entry.js} +2 -2
- package/dist/core/{p-f7706ff7.entry.js → p-762ea31a.entry.js} +2 -2
- package/dist/core/{p-2969b5c9.entry.js → p-7d0d85c4.entry.js} +2 -2
- package/dist/core/p-8abcc114.entry.js +2 -0
- package/dist/core/p-8abcc114.entry.js.map +1 -0
- package/dist/core/{p-b00efb15.entry.js → p-9674b63f.entry.js} +2 -2
- package/dist/core/{p-fb43abd6.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-8c7d6a85.entry.js → p-a5415f6c.entry.js} +2 -2
- package/dist/core/{p-4637c326.entry.js → p-a7583faf.entry.js} +2 -2
- package/dist/core/{p-6996e94f.entry.js → p-a8e4258f.entry.js} +2 -2
- package/dist/core/{p-6996e94f.entry.js.map → p-a8e4258f.entry.js.map} +1 -1
- package/dist/core/{p-09c31ac6.entry.js → p-adde6c66.entry.js} +2 -2
- package/dist/core/{p-6fb29846.entry.js → p-ae11583f.entry.js} +2 -2
- package/dist/core/{p-053ed367.entry.js → p-b3cb1e35.entry.js} +2 -2
- package/dist/core/{p-f098e531.entry.js → p-b4a2f6fa.entry.js} +2 -2
- package/dist/core/{p-0cbd0967.entry.js → p-cce398e1.entry.js} +2 -2
- package/dist/core/{p-06b3ae40.entry.js → p-d3223b89.entry.js} +2 -2
- package/dist/core/{p-bba25812.entry.js → p-e7af1e2d.entry.js} +2 -2
- package/dist/core/{p-3b13d191.entry.js → p-eca43f7d.entry.js} +2 -2
- package/dist/core/{p-44fbe8c2.entry.js → p-f4e3bb5b.entry.js} +2 -2
- package/dist/core/p-f51c609d.entry.js +2 -0
- package/dist/core/{p-296a41ce.entry.js → p-f57729b8.entry.js} +2 -2
- package/dist/core/{p-091a7fbf.entry.js → p-f6bb691a.entry.js} +2 -2
- package/dist/core/{p-ad6632a9.entry.js → p-f7105cf9.entry.js} +2 -2
- package/dist/core/p-ffd0d9d1.entry.js +2 -0
- package/dist/core/p-ffd0d9d1.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-button_3.entry.js +5 -5
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +2 -2
- package/dist/esm/ic-checkbox.entry.js +31 -8
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +2 -2
- package/dist/esm/ic-dialog.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-hero.entry.js +11 -6
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
- package/dist/esm/ic-input-component-container_3.entry.js +8 -8
- package/dist/esm/ic-input-label_2.entry.js +5 -5
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +4 -4
- package/dist/esm/ic-page-header.entry.js +6 -6
- package/dist/esm/ic-pagination-item.entry.js +1 -1
- package/dist/esm/ic-pagination.entry.js +4 -4
- package/dist/esm/ic-popover-menu.entry.js +4 -4
- package/dist/esm/ic-radio-group.entry.js +4 -4
- package/dist/esm/ic-radio-option.entry.js +4 -4
- package/dist/esm/ic-search-bar.entry.js +9 -9
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/ic-step.entry.js +13 -13
- package/dist/esm/ic-stepper.entry.js +2 -2
- package/dist/esm/ic-switch.entry.js +4 -4
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-text-field.entry.js +6 -6
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +5 -0
- package/dist/types/components/ic-hero/ic-hero.d.ts +5 -1
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +180 -150
- package/hydrate/index.mjs +180 -150
- package/package.json +2 -2
- package/vscode-data.json +15 -0
- package/dist/core/p-24d46cab.entry.js +0 -2
- package/dist/core/p-24d46cab.entry.js.map +0 -1
- package/dist/core/p-48eb7299.entry.js +0 -2
- package/dist/core/p-48eb7299.entry.js.map +0 -1
- package/dist/core/p-7970cbed.entry.js +0 -2
- package/dist/core/p-7970cbed.entry.js.map +0 -1
- package/dist/core/p-b29e325f.entry.js +0 -2
- package/dist/core/p-eb1823b3.entry.js.map +0 -1
- /package/dist/core/{p-889bb8db.entry.js.map → p-04cb17d7.entry.js.map} +0 -0
- /package/dist/core/{p-d20a61a7.entry.js.map → p-06c950a3.entry.js.map} +0 -0
- /package/dist/core/{p-6e61c48a.entry.js.map → p-0c4ceed9.entry.js.map} +0 -0
- /package/dist/core/{p-6f60262e.entry.js.map → p-11d8a504.entry.js.map} +0 -0
- /package/dist/core/{p-f4e2e41f.entry.js.map → p-12c30491.entry.js.map} +0 -0
- /package/dist/core/{p-109e7fce.entry.js.map → p-14d43f64.entry.js.map} +0 -0
- /package/dist/core/{p-efc97f21.entry.js.map → p-1f41818b.entry.js.map} +0 -0
- /package/dist/core/{p-5cf704e3.entry.js.map → p-319e3d5b.entry.js.map} +0 -0
- /package/dist/core/{p-d1cce122.entry.js.map → p-33e35173.entry.js.map} +0 -0
- /package/dist/core/{p-4a358f09.entry.js.map → p-3680f22c.entry.js.map} +0 -0
- /package/dist/core/{p-ab26beed.entry.js.map → p-3d23ce54.entry.js.map} +0 -0
- /package/dist/core/{p-ef397b6f.entry.js.map → p-42d35fc4.entry.js.map} +0 -0
- /package/dist/core/{p-0b1ea961.entry.js.map → p-4d3b219c.entry.js.map} +0 -0
- /package/dist/core/{p-93e1ba0a.entry.js.map → p-5254a078.entry.js.map} +0 -0
- /package/dist/core/{p-9c2e9189.entry.js.map → p-53740194.entry.js.map} +0 -0
- /package/dist/core/{p-614953c5.entry.js.map → p-601d4e3f.entry.js.map} +0 -0
- /package/dist/core/{p-0257d59e.entry.js.map → p-6329ddcb.entry.js.map} +0 -0
- /package/dist/core/{p-d8200098.entry.js.map → p-67c3985d.entry.js.map} +0 -0
- /package/dist/core/{p-a8dc3162.entry.js.map → p-703f3de1.entry.js.map} +0 -0
- /package/dist/core/{p-f7706ff7.entry.js.map → p-762ea31a.entry.js.map} +0 -0
- /package/dist/core/{p-2969b5c9.entry.js.map → p-7d0d85c4.entry.js.map} +0 -0
- /package/dist/core/{p-b00efb15.entry.js.map → p-9674b63f.entry.js.map} +0 -0
- /package/dist/core/{p-fb43abd6.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-8c7d6a85.entry.js.map → p-a5415f6c.entry.js.map} +0 -0
- /package/dist/core/{p-4637c326.entry.js.map → p-a7583faf.entry.js.map} +0 -0
- /package/dist/core/{p-09c31ac6.entry.js.map → p-adde6c66.entry.js.map} +0 -0
- /package/dist/core/{p-6fb29846.entry.js.map → p-ae11583f.entry.js.map} +0 -0
- /package/dist/core/{p-053ed367.entry.js.map → p-b3cb1e35.entry.js.map} +0 -0
- /package/dist/core/{p-f098e531.entry.js.map → p-b4a2f6fa.entry.js.map} +0 -0
- /package/dist/core/{p-0cbd0967.entry.js.map → p-cce398e1.entry.js.map} +0 -0
- /package/dist/core/{p-06b3ae40.entry.js.map → p-d3223b89.entry.js.map} +0 -0
- /package/dist/core/{p-bba25812.entry.js.map → p-e7af1e2d.entry.js.map} +0 -0
- /package/dist/core/{p-3b13d191.entry.js.map → p-eca43f7d.entry.js.map} +0 -0
- /package/dist/core/{p-44fbe8c2.entry.js.map → p-f4e3bb5b.entry.js.map} +0 -0
- /package/dist/core/{p-b29e325f.entry.js.map → p-f51c609d.entry.js.map} +0 -0
- /package/dist/core/{p-296a41ce.entry.js.map → p-f57729b8.entry.js.map} +0 -0
- /package/dist/core/{p-091a7fbf.entry.js.map → p-f6bb691a.entry.js.map} +0 -0
- /package/dist/core/{p-ad6632a9.entry.js.map → p-f7105cf9.entry.js.map} +0 -0
|
@@ -139,15 +139,15 @@ export class RadioOption {
|
|
|
139
139
|
render() {
|
|
140
140
|
const { additionalFieldDisplay, disabled, dynamicText, form, groupLabel, handleClick, handleKeyDown, hasAdditionalField, label, name, selected, value, theme, } = this;
|
|
141
141
|
const id = `ic-radio-option-${isPropDefined(label) || value}-${groupLabel}`;
|
|
142
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '3d233946c372788a34128912099c47d6858d7ea9', onClick: handleClick, onKeyDown: handleKeyDown, class: {
|
|
143
143
|
["ic-radio-option-disabled"]: !!disabled,
|
|
144
144
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
145
|
-
} }, h("div", { key: '
|
|
145
|
+
} }, h("div", { key: 'e932a0827c6b0620522f9f3df3f5a06316098949', class: { container: true, disabled: !!disabled } }, h("div", { key: '64eeea95469af9831655f56701e2332255bf6669' }, h("input", { key: '32f7a8840d8a14a89f1a79b9c61890e0e2fe23a0', tabindex: selected ? "0" : "-1", type: "radio", name: name, id: id, value: value, disabled: disabled, checked: selected, ref: (el) => (this.radioElement = el), form: form }), h("span", { key: '6cbea9714c51eb75b7be07a509049f0c330ffca5', class: "checkmark" })), h("ic-typography", { key: '55164cf8d231d449267b74389f9d7cd8193ab6db', class: "radio-label", variant: "body" }, h("label", { key: '54014827aa5c16641bc3fa864974382bf0715335', htmlFor: id }, label))), hasAdditionalField && (h("div", { key: '5f3e1054494365c3fafdfd421bed64523307406b', class: {
|
|
146
146
|
"dynamic-container": true,
|
|
147
147
|
hidden: additionalFieldDisplay === "dynamic" && !selected,
|
|
148
|
-
} }, additionalFieldDisplay === "dynamic" && (h("div", { key: '
|
|
148
|
+
} }, additionalFieldDisplay === "dynamic" && (h("div", { key: 'd9c292dd502569650dcf327a3e48716cde723593', class: "branch-corner" })), h("div", { key: '3994230df8af7e9c5215646a1c5c3d5687961637' }, additionalFieldDisplay === "dynamic" && (h("ic-typography", { key: '0b92403d743c4517ca099586a2845e71d528c329', variant: "caption", role: "alert" }, h("p", { key: '0b689ea686ff2cb08b27858920a2f0548c197aa7', class: "dynamic-text" }, dynamicText))), h("div", { key: '7e023eb75b14dd0a75acbe5321ecd676de0a67d4', class: {
|
|
149
149
|
"additional-field-wrapper": additionalFieldDisplay === "static",
|
|
150
|
-
} }, h("slot", { key: '
|
|
150
|
+
} }, h("slot", { key: 'b3f82b1650ef67a732b35a32c5088745f31d1f31', name: ADDITIONAL_FIELD })))))));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "ic-radio-option"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -528,39 +528,39 @@ export class SearchBar {
|
|
|
528
528
|
const menuRendered = menuOpen && value.length >= charactersUntilSuggestion;
|
|
529
529
|
const labelValue = getLabelFromValue(value, options, valueField, labelField);
|
|
530
530
|
renderHiddenInput(this.el, value, name, disabledMode);
|
|
531
|
-
return (h(Host, { key: '
|
|
531
|
+
return (h(Host, { key: '71d9a6e7a555373e98a3ee7ea114fc1f69f06570', class: {
|
|
532
532
|
"ic-search-bar-search": true,
|
|
533
533
|
"ic-search-bar-full-width": fullWidth,
|
|
534
534
|
"ic-search-bar-disabled": disabled,
|
|
535
535
|
"ic-search-bar-small": size === "small",
|
|
536
536
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
537
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '
|
|
537
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, h("ic-input-container", { key: '23dfe2a04d5c039174366f85fa42df074fd30c98', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '1c222b2269cbab7436dc225b75e09568d323a1f0', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly }, h("slot", { key: 'e38a00e300ddc76daaf3c52332adab4ac16038c4', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '17dff32cab5a5b34673c1255f0a1d696b9df84b4', ref: (el) => (this.anchorEl = el), size: size, disabled: disabledMode, readonly: readonly, fullWidth: fullWidth }, h("input", { key: 'e5d666c8a1609a1683b735940afd707e67b7eaa6', id: inputId, name: name, ref: (el) => (this.inputEl = el), value: options && !!labelValue ? labelValue : value, class: {
|
|
538
538
|
"no-left-pad": readonly,
|
|
539
539
|
readonly,
|
|
540
540
|
"truncate-value": truncateValue,
|
|
541
|
-
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '
|
|
541
|
+
}, placeholder: placeholder, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : undefined, "aria-activedescendant": ariaActiveDescendant, "aria-expanded": options.length > 0 && menuRendered ? `${menuOpen}` : undefined, "aria-owns": menuRendered ? menuId : undefined, "aria-describedby": describedById, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 && menuRendered ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search" }), h("div", { key: '98887c2626a05e3ddc15c7ddad3a756262c197e8', class: {
|
|
542
542
|
"clear-button-container": true,
|
|
543
543
|
"clear-button-visible": !!value && !disabledMode && showClearButton,
|
|
544
|
-
} }, h("ic-button", { key: '
|
|
544
|
+
} }, h("ic-button", { key: '119b7ae17e8c7cbd8a56e6bd8136340c269958e3', id: "clear-button", class: {
|
|
545
545
|
"clear-button": true,
|
|
546
546
|
"clear-button-unfocused": !clearButtonFocused,
|
|
547
|
-
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), h("div", { key: '
|
|
547
|
+
}, "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "button", variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }), h("div", { key: 'bf3e848c1e275217c686f3aab3b10a09396d6b4e', class: "divider" })), h("div", { key: '4075cd96e0274043b8da4e25d32a5cee5d4bb0e5', class: {
|
|
548
548
|
"search-submit-button-container": true,
|
|
549
549
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
550
|
-
} }, h("ic-button", { key: '
|
|
550
|
+
} }, h("ic-button", { key: '77e1e8bfef4ce5304dbf877b5ecfc440d37d864c', id: "search-submit-button", "aria-label": "Search", ref: (el) => (this.searchSubmitButton = el), class: {
|
|
551
551
|
"search-submit-button": true,
|
|
552
552
|
"search-submit-button-small": size === "small",
|
|
553
553
|
"search-submit-button-unfocused": !searchSubmitFocused,
|
|
554
554
|
"search-submit-button-disabled": this.isSubmitDisabled(),
|
|
555
|
-
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), h("div", { key: '
|
|
555
|
+
}, disabled: this.isSubmitDisabled(), innerHTML: searchIcon, size: size, onClick: this.handleSubmitSearch, onMouseDown: this.handleMouseDown, onBlur: this.handleSubmitSearchBlur, onFocus: this.handleSubmitSearchFocus, onKeyDown: this.handleSubmitSearchKeyDown, type: searchButtonType, variant: "icon-tertiary", theme: searchSubmitFocused ? "light" : "dark" }))), h("div", { key: '20e98815de9ec0c35fa247026de3d9e273161ea6', class: {
|
|
556
556
|
"menu-container": true,
|
|
557
557
|
fullwidth: fullWidth,
|
|
558
|
-
} }, menuRendered && this.anchorEl && this.inputEl && (h("ic-menu", { key: '
|
|
558
|
+
} }, menuRendered && this.anchorEl && this.inputEl && (h("ic-menu", { key: 'b2f7d74335c27d93e9f5dc5b63bab80daeb3eeae', class: {
|
|
559
559
|
"no-results": this.hadNoOptions() ||
|
|
560
560
|
(filteredOptions.length === 1 &&
|
|
561
561
|
(filteredOptions[0][labelField] === loadingLabel ||
|
|
562
562
|
filteredOptions[0][labelField] === loadingErrorLabel)),
|
|
563
|
-
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), h("div", { key: '
|
|
563
|
+
}, activationType: "manual", anchorEl: this.anchorEl, autofocusOnSelected: false, searchMode: searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), fullWidth: fullWidth, menuId: menuId, open: true, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: labelField, valueField: valueField, searchBar: true })))), h("div", { key: 'f76306ff99a2c103fdea197759f6036d479dc51f', "aria-live": "polite", role: "status", class: "search-results-status" })));
|
|
564
564
|
}
|
|
565
565
|
static get is() { return "ic-search-bar"; }
|
|
566
566
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,12 +12,12 @@ export class SectionContainer {
|
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
14
|
const { aligned, fullHeight } = this;
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '67c1b4b2afe62fc53812421ee49c01bf689e05b4', class: {
|
|
16
16
|
["aligned-left"]: aligned === "left" || aligned === null,
|
|
17
17
|
["aligned-center"]: aligned === "center",
|
|
18
18
|
["aligned-full-width"]: aligned === "full-width",
|
|
19
19
|
["no-vertical-padding"]: !!fullHeight,
|
|
20
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: 'cb21cb372b6131cfb990ac0a016f6c64641749f9' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ic-section-container"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -466,7 +466,7 @@ video {
|
|
|
466
466
|
--border-color-warning: var(--ic-select-field-border-warning);
|
|
467
467
|
--border-color-warning-hover: var(--ic-select-field-border-warning-hover);
|
|
468
468
|
--border-color-warning-pressed: var(--ic-select-field-border-warning-pressed);
|
|
469
|
-
--ic-input-label-text-color: var(--ic-select-field-
|
|
469
|
+
--ic-input-label-text-color: var(--ic-select-field-label);
|
|
470
470
|
--ic-input-label-helper-text-color: var(
|
|
471
471
|
--ic-select-input-field-label-subtitle
|
|
472
472
|
);
|
|
@@ -794,18 +794,18 @@ export class Select {
|
|
|
794
794
|
(searchable
|
|
795
795
|
? !!searchableSelectInputValue
|
|
796
796
|
: !!currValue && !loading && showClearButton);
|
|
797
|
-
return (h(Host, { key: '
|
|
797
|
+
return (h(Host, { key: 'beb04e2fdc2db5765b24622f4d31bfdf36c61ba6', class: {
|
|
798
798
|
"ic-select-disabled": disabled,
|
|
799
799
|
"ic-select-searchable": searchable,
|
|
800
800
|
[`ic-select-${size}`]: size !== "medium",
|
|
801
801
|
"ic-select-full-width": fullWidth,
|
|
802
802
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
803
|
-
}, onBlur: this.onBlur }, h("ic-input-container", { key: '
|
|
803
|
+
}, onBlur: this.onBlur }, h("ic-input-container", { key: 'e85323a8778251dca9d78ccc76906c7523a8f02a', readonly: readonly }, !hideLabel && (h("ic-input-label", { key: '9bd3a6662c29157c323beee7355ec0983a0a83e9', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, h("slot", { key: 'ba0fc93028a2ff25112730a950381a25bee23b54', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: 'c7d54f4d61bcb41cfbb3c4af1600a783e696121f', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
|
|
804
804
|
!disabled &&
|
|
805
|
-
(!readonly || !!value) && (h("span", { key: '
|
|
805
|
+
(!readonly || !!value) && (h("span", { key: '891b11b3008d52ac3db2197c372b21a12a9f431e', slot: "left-icon", class: {
|
|
806
806
|
readonly,
|
|
807
807
|
"has-value": !!value,
|
|
808
|
-
} }, h("slot", { key: '
|
|
808
|
+
} }, h("slot", { key: '9fc291a9f0b756bf31331260ea3c313cdecf8fa2', name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, valueLabelString))) : isMobileOrTablet() && !multiple ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => option.children ? (h("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option))))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: {
|
|
809
809
|
"value-text": true,
|
|
810
810
|
"select-input": true,
|
|
811
811
|
"with-clear-button": !!searchableSelectInputValue,
|
|
@@ -826,7 +826,7 @@ export class Select {
|
|
|
826
826
|
} }, valueLabelString || placeholder), h("div", { class: "select-input-end" }, isClearable && h("div", { class: "divider" }), h("span", { class: {
|
|
827
827
|
"expand-icon": true,
|
|
828
828
|
"expand-icon-open": open,
|
|
829
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: '
|
|
829
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && (h("ic-button", { id: "clear-button", "aria-label": "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon-tertiary", theme: clearButtonFocused ? "light" : "dark" }))))), (!isMobileOrTablet() || multiple) && (h("ic-menu", { key: 'b56cf5adc26838ad0f873aa16df8da7fd7b83d22', class: {
|
|
830
830
|
"no-results": loading ||
|
|
831
831
|
hasTimedOut ||
|
|
832
832
|
(searchable &&
|
|
@@ -835,7 +835,7 @@ export class Select {
|
|
|
835
835
|
((_d = (_c = this.uniqueOptions) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.label) === emptyOptionListText),
|
|
836
836
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
|
837
837
|
? this.searchableSelectElement
|
|
838
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (h("div", { key: '
|
|
838
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: searchable ? filteredOptions : uniqueOptions, value: multiple ? currValue : currValue, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onMenuKeyPress: this.handleMenuKeyPress, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", closeOnSelect: !multiple, multiSelect: multiple ? true : false, searchableSelect: searchable ? true : false })), multiple && (h("div", { key: 'c4e7606e119c8658e590716ff02dcaf45f30ae89', "aria-live": "polite", role: "status", class: "multi-select-selected-count" })), h("ic-input-validation", { key: 'b74ff136f8b758c400d9c0262a227f2286b301d5', class: {
|
|
839
839
|
"menu-open": open,
|
|
840
840
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
841
841
|
}
|
|
@@ -821,9 +821,18 @@ export const EmittingIcOptionSelectOnEnter = {
|
|
|
821
821
|
name: "Emitting icOptionSelect on enter",
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
export const
|
|
824
|
+
export const Internationalisation = {
|
|
825
825
|
render: () =>
|
|
826
|
-
html
|
|
826
|
+
html` <p>
|
|
827
|
+
The first select is wrapped in a <code><span lang="fr"></code> to
|
|
828
|
+
change the language. All options will read in french, which can be
|
|
829
|
+
tested using a screen reader.
|
|
830
|
+
</p>
|
|
831
|
+
<span lang="fr">
|
|
832
|
+
<ic-select id="select-lang" label="Boisson Préférée"></ic-select>
|
|
833
|
+
</span>
|
|
834
|
+
<hr />
|
|
835
|
+
<ic-select
|
|
827
836
|
id="select-custom-li-props"
|
|
828
837
|
label="What is your favourite coffee?"
|
|
829
838
|
></ic-select>
|
|
@@ -834,8 +843,15 @@ export const CustomPropsOnLiElements = {
|
|
|
834
843
|
reader.
|
|
835
844
|
</p>
|
|
836
845
|
<script>
|
|
837
|
-
var
|
|
838
|
-
|
|
846
|
+
var select1 = document.querySelector("#select-lang");
|
|
847
|
+
select1.options = [
|
|
848
|
+
{ label: "Chocolat Chaud", value: "choc" },
|
|
849
|
+
{ label: "Jus", value: "jus" },
|
|
850
|
+
{ label: "Limonade", value: "lim" },
|
|
851
|
+
];
|
|
852
|
+
var select2 = document.querySelector("#select-custom-li-props");
|
|
853
|
+
select2.options = [
|
|
854
|
+
{ label: "Flat White", value: "Fla", htmlProps: { lang: "en-GB" } },
|
|
839
855
|
{ label: "Cappuccino", value: "Cap", htmlProps: { lang: "it" } },
|
|
840
856
|
{ label: "Latte", value: "Lat", htmlProps: { lang: "it" } },
|
|
841
857
|
{ label: "Americano", value: "Ame", htmlProps: { lang: "it" } },
|
|
@@ -845,7 +861,7 @@ export const CustomPropsOnLiElements = {
|
|
|
845
861
|
});
|
|
846
862
|
</script>`,
|
|
847
863
|
|
|
848
|
-
name: "
|
|
864
|
+
name: "Internationalisation (+ options with htmlProps)",
|
|
849
865
|
};
|
|
850
866
|
|
|
851
867
|
const inlineRadioSelector = "inline-radio";
|
|
@@ -451,7 +451,7 @@ export class SideNavigation {
|
|
|
451
451
|
isAppNameSubtitleVariant,
|
|
452
452
|
appTitle: appTitle || "",
|
|
453
453
|
};
|
|
454
|
-
return (h(Host, { key: '
|
|
454
|
+
return (h(Host, { key: '2742b166ab7c1b3dadd63ca46597082f57b4a93c', class: {
|
|
455
455
|
"xs-menu-open": menuOpen && isSDevice,
|
|
456
456
|
"xs-menu-close": !menuOpen && isSDevice,
|
|
457
457
|
"sm-collapsed": !isSDevice && !menuExpanded,
|
|
@@ -460,12 +460,12 @@ export class SideNavigation {
|
|
|
460
460
|
[`ic-side-navigation-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
461
461
|
["collapsed-labels"]: !isSDevice && !menuExpanded && !!collapsedIconLabels,
|
|
462
462
|
["ic-side-navigation-inline"]: !!inline,
|
|
463
|
-
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), h("div", { key: '
|
|
463
|
+
} }, isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), h("div", { key: '9c893c2c7dea96389a45a16f527070d6e3de5368', class: "side-navigation", id: "side-navigation" }, !isSDevice && this.renderTopBar(Object.assign({}, topBarProps)), h("div", { key: 'dbd2108ad31efee6d38a03c3dc6eb09648d19f11', class: "side-navigation-inner" }, isSlotUsed(this.el, "primary-navigation") && (h("nav", { key: 'ecd7bb4e1e16ddc4eb7602cdf307e6a28f16e853', class: "primary-navigation", "aria-labelledby": "primary-navigation-landmark" }, h("span", { key: '4dcc53007366eddf432ab265e5a246fd94ca5911', "aria-hidden": "true", class: "navigation-landmark-title", id: "primary-navigation-landmark" }, "Primary"), h("ul", { key: '88796e6410e8359878b43c1f517fbd4cb4513e3f', class: "navigation-list" }, h("slot", { key: '8e83a35ead924765f96919d274b65ed09d5e929f', name: "primary-navigation" }))))), h("div", { key: '5574dd7d0b1f5269fd9db2be0e82eab01189f484', class: {
|
|
464
464
|
["bottom-wrapper"]: true,
|
|
465
465
|
["classification-spacing"]: hasClassificationBanner(),
|
|
466
|
-
} }, isSlotUsed(this.el, "secondary-navigation") && (h("nav", { key: '
|
|
466
|
+
} }, isSlotUsed(this.el, "secondary-navigation") && (h("nav", { key: '2f53e21f14b1b2bac7984a39a372004eae05532d', class: "secondary-navigation", "aria-labelledby": "secondary-navigation-landmark" }, h("span", { key: '892d0c1292c15c558ade91896d610ed75714d3f4', "aria-hidden": "true", class: "navigation-landmark-title", id: "secondary-navigation-landmark" }, "Secondary"), h("ul", { key: '795f0ba505bb550fe9b61a39e2f7020d03d9dbba', class: "navigation-list" }, h("slot", { key: 'ebdd3da64163638ddf46509f56627de51ac17825', name: "secondary-navigation" })))), h("div", { key: '50ea370bfce079ca1073f8ef676879141a4dc00c', class: "bottom-side-nav" }, this.hasSecondaryNavigation && h("ic-divider", { key: '3897e3e6deac28eb1656a753b438def9e3d6ee75' }), displayExpandBtn && (h("button", { key: '8ccbcb422d4c753b5490d6ef83798540626936da', class: "menu-expand-button", innerHTML: chevronIcon, onClick: () => this.toggleMenuExpanded(!this.menuExpanded), "aria-label": `${menuExpanded ? "Collapse" : "Expand"} side navigation` })), h("div", { key: '200fc21381180858eab9e3d7ead4b426c9ae4b6d', class: "app-status-wrapper" }, status && (h("div", { key: '2642ffbf3a021736cacfb9653a265e003a6cc7f9', class: {
|
|
467
467
|
["app-status"]: true,
|
|
468
|
-
} }, h("ic-typography", { key: '
|
|
468
|
+
} }, h("ic-typography", { key: 'aaa321854c75f56d1d606d4d43f320fa6f9569a4', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), version && (h("ic-typography", { key: '1b53325edb44a3d0466f6fe74d76720b47af6ad6', variant: "label", class: "app-version", "aria-label": "app version" }, version))))))));
|
|
469
469
|
}
|
|
470
470
|
static get is() { return "ic-side-navigation"; }
|
|
471
471
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,11 +23,11 @@ export class Skeleton {
|
|
|
23
23
|
width: el.style.width || (variant === "circle" ? "25px" : "260px"),
|
|
24
24
|
}
|
|
25
25
|
: undefined;
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '2f2a4aaef02912dae3994346722c17a7bb7862c4', class: {
|
|
27
27
|
skeleton: true,
|
|
28
28
|
"ic-skeleton-circle": variant === "circle",
|
|
29
29
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
30
|
-
}, style: style, "aria-disabled": "true" }, h("slot", { key: '
|
|
30
|
+
}, style: style, "aria-disabled": "true" }, h("slot", { key: 'f483005261989c75b36bd880d09f855aa4152ca3' })));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "ic-skeleton"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,9 +35,9 @@ export class SkipLink {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '354579354254bfa9b0a1c314dd57226f2e1e4208', class: {
|
|
39
39
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
40
|
-
} }, h("ic-link", { key: '
|
|
40
|
+
} }, h("ic-link", { key: '22276d114cc1d15a68eb675f6680b7388a76974a', class: {
|
|
41
41
|
"display-top": !inline,
|
|
42
42
|
"full-width": !!fullWidth,
|
|
43
43
|
"show-background": !transparentBackground,
|
|
@@ -33,12 +33,12 @@ export class StatusTag {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '2bbbf4341010538d3ce41795e2fdd7db95c6f403', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: 'd603275aeec1bbe93bf1273b460ee655f45263d0', class: {
|
|
37
37
|
["tag"]: true,
|
|
38
38
|
[`${variant}-${status}`]: true,
|
|
39
39
|
["outlined"]: variant === "outlined",
|
|
40
40
|
[`${size}`]: true,
|
|
41
|
-
} }, h("ic-typography", { key: '
|
|
41
|
+
} }, h("ic-typography", { key: 'b7e19ed18a1cced7c36e380df711599a17048736', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: '5dd5bf12423220d8c453fa32413e5910b578d4c9' }, label)))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "ic-status-tag"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,27 +72,27 @@ export class Step {
|
|
|
72
72
|
// STATUS ICON FOR COMPACT STEP
|
|
73
73
|
let statusIcon;
|
|
74
74
|
if (type === "completed" || compactStepStyling === "completed") {
|
|
75
|
-
statusIcon = (h("span", { key: '
|
|
75
|
+
statusIcon = (h("span", { key: '864d4561a571389ff3128b00ffb529010930b4b5', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
76
76
|
}
|
|
77
77
|
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
78
|
-
statusIcon = (h("span", { key: '
|
|
78
|
+
statusIcon = (h("span", { key: '7bf14abf049e8e5d3fc870c574393adb49e68b8c', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
79
79
|
}
|
|
80
80
|
// COMPACT STEP COMPONENT
|
|
81
|
-
const compactStep = (h("div", { key: '
|
|
81
|
+
const compactStep = (h("div", { key: '4f3ac82fbcc83d16b72393415b08bb383b3844e1', class: {
|
|
82
82
|
["step"]: true,
|
|
83
83
|
["current"]: !!current,
|
|
84
84
|
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
85
85
|
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
86
|
-
} }, h("ic-loading-indicator", { key: '
|
|
86
|
+
} }, h("ic-loading-indicator", { key: '53ebcdba2a35459adeb1ac198e7a48620eb5ed8f', class: {
|
|
87
87
|
"compact-step-progress-indicator": true,
|
|
88
88
|
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
89
|
-
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: '
|
|
89
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: '1206ec1c72eafac85fa94f936db215fd6d66a9da', class: "heading-area" }, h("ic-typography", { key: 'ecd033d92e805fc2538f92253f43a667594d30da', variant: "h4", class: "heading" }, heading), h("div", { key: '98f5a4369ed8e41271c9e5121d6ef4e68191e766', class: "info-line" }, h("ic-typography", { key: '5b58bcbe7124d039d41e6cddd1c737a82e689f46', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, h("span", { key: '86b332b0596baaa8f14e6232ca4742fca349b401', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
90
90
|
type === "completed" ||
|
|
91
91
|
type === "disabled" ||
|
|
92
92
|
(this.variant === "compact" &&
|
|
93
93
|
!!compactStepStyling &&
|
|
94
94
|
compactStepStyling !== "active") ||
|
|
95
|
-
!!status) && (h("div", { key: '
|
|
95
|
+
!!status) && (h("div", { key: 'e7348cf5cb486de2bd35047429b8baedb64e7945', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (h("ic-typography", { key: '1e636d26071c9274b29b3e9fbd5edcff666bf650', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
|
96
96
|
? subheading
|
|
97
97
|
: type === "disabled" ||
|
|
98
98
|
(variant === "compact" &&
|
|
@@ -105,26 +105,26 @@ export class Step {
|
|
|
105
105
|
// ICON FOR DEFAULT STEP
|
|
106
106
|
let icon;
|
|
107
107
|
if (type !== "completed") {
|
|
108
|
-
icon = (h("ic-typography", { key: '
|
|
108
|
+
icon = (h("ic-typography", { key: '11944edb6340175b2619cd7bf1a92a077c2581e7', variant: "subtitle-small" }, h("span", { key: '5636bdbab2cbae08c7122adae7376b380d2c0e6b', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
|
-
icon = (h("div", { key: '
|
|
111
|
+
icon = (h("div", { key: 'b479680a69976f4a1fecff4944fe49d6ad7a1803', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: 'f147fc626a8a1ee01f7a00e642353f0393f2a9bf', class: "check-icon", innerHTML: checkIcon })));
|
|
112
112
|
}
|
|
113
113
|
// STEP CONNECT FOR DEFAULT STEP
|
|
114
|
-
const partialBar = type === "current" && (h("div", { key: '
|
|
115
|
-
const finalStep = !lastStep && (h("div", { key: '
|
|
114
|
+
const partialBar = type === "current" && (h("div", { key: '38562e1d3953a8e3fad8a666be017c6eb8b023d8', class: "step-connect-inner" }));
|
|
115
|
+
const finalStep = !lastStep && (h("div", { key: '92355de2de8a20e3efd244e90181ed4728908396', class: {
|
|
116
116
|
["step-connect"]: true,
|
|
117
117
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
118
118
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
119
119
|
} }, partialBar));
|
|
120
120
|
// DEFAULT STEP COMPONENT
|
|
121
|
-
const defaultStep = (h("div", { key: '
|
|
121
|
+
const defaultStep = (h("div", { key: '26938dd799f54d8440d45c9d9615a4831f7cab98', class: {
|
|
122
122
|
["step"]: true,
|
|
123
123
|
[`${type}`]: true,
|
|
124
|
-
} }, h("div", { key: '
|
|
124
|
+
} }, h("div", { key: '34aca5fbe4025940b5226476d1da17725831a7db', class: "step-top" }, h("div", { key: 'e59c7c95a9b32b9e897a6dc6d37000cd45294caf', class: "step-icon" }, icon), finalStep), (heading || subheading || status) && (h("div", { key: '568405e10345dfe382fd78d096391cc870914f6a', class: "heading-area" }, heading && (h("ic-typography", { key: '6dcac8ec5550fe94c80e75c65ecec33dee7b4157', variant: "subtitle-large", class: "heading" }, heading)), heading && (subheading || status) && (h("ic-typography", { key: 'efe9c1f647e25a84eded6c390ff1b487e0ea5a0d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
|
|
125
125
|
? subheading
|
|
126
126
|
: stepStatus))))));
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: '359b602ab02607c5ec02673283f99172c3b4a924', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
128
128
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
129
129
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
130
130
|
[`ic-step-${variant}`]: true,
|
|
@@ -259,11 +259,11 @@ export class Stepper {
|
|
|
259
259
|
checkResizeObserver(this.runResizeObserver);
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
|
-
return (h(Host, { key: '
|
|
262
|
+
return (h(Host, { key: '8905befe9177785369ef0d277f7f21d823cd727b', class: {
|
|
263
263
|
[`ic-stepper-${this.variant}`]: true,
|
|
264
264
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
265
265
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
266
|
-
} }, h("ul", { key: '
|
|
266
|
+
} }, h("ul", { key: '19d67dcea521d17802c2d98946ce24254ef4969a', class: "step-item-list" }, h("slot", { key: 'fe75a601beeed1e3dbfc9df495909af26ad11523' }))));
|
|
267
267
|
}
|
|
268
268
|
static get is() { return "ic-stepper"; }
|
|
269
269
|
static get encapsulation() { return "shadow"; }
|
|
@@ -254,12 +254,22 @@ export const CustomCompactStepper = {
|
|
|
254
254
|
|
|
255
255
|
export const Internationalisation = {
|
|
256
256
|
render: () =>
|
|
257
|
-
html`<
|
|
258
|
-
<ic-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
257
|
+
html`<span lang="de">
|
|
258
|
+
<ic-stepper variant="compact" id="standard-compact-stepper">
|
|
259
|
+
<ic-step heading="Aktualisierung"></ic-step>
|
|
260
|
+
<ic-step id="read-step" heading="Lesen" type="current"></ic-step>
|
|
261
|
+
<ic-step heading="Aktualisierung" status="optional"></ic-step>
|
|
262
|
+
<ic-step heading="Löschen" status="required"></ic-step>
|
|
263
|
+
</ic-stepper>
|
|
264
|
+
</span>
|
|
265
|
+
<p>
|
|
266
|
+
This stepper uses the icI18n prop to customise text elements within the
|
|
267
|
+
stepper.
|
|
268
|
+
</p>
|
|
269
|
+
<p>
|
|
270
|
+
It is also wrapped in a <code><span lang="de"></code> to change
|
|
271
|
+
the language for assistive technology
|
|
272
|
+
</p>
|
|
263
273
|
<ic-button
|
|
264
274
|
class="back-btn-compact-stepper"
|
|
265
275
|
style="margin-right: var(--ic-space-lg)"
|
|
@@ -91,16 +91,16 @@ export class Switch {
|
|
|
91
91
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
92
92
|
const isSmall = size === "small";
|
|
93
93
|
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '83cfaa808706cfbd930349b19264611eeb9eb7a1', class: {
|
|
95
95
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
96
|
-
} }, h("label", { key: '
|
|
96
|
+
} }, h("label", { key: '3952a6e8d7bd6778f6e72bd714f3413fb32ce43c', class: {
|
|
97
97
|
"ic-switch-container": true,
|
|
98
98
|
"ic-switch-disabled": !!disabled,
|
|
99
99
|
"ic-switch-small": isSmall,
|
|
100
|
-
}, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '
|
|
100
|
+
}, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: 'da48a174f9dd1a8ec052f102424cecfe39b629f1', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
101
101
|
"ic-switch-label": true,
|
|
102
102
|
"ic-switch-label-small": isSmall,
|
|
103
|
-
} }, h("slot", { key: '
|
|
103
|
+
} }, h("slot", { key: 'f80f2d947f1ef1c448152a54878e00ca8ad93733', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: '3c56f4c0fb5e15be23d11931b95d9abfe6dc56f0', class: "ic-switch-line-break" }), h("input", { key: '2f23a8d5ef4aed9348bae49cf1d65d27d6af7f50', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: '1799cf9b15ba7f41ecdd5846c874313270b005d7', class: "ic-switch-toggle" }, h("svg", { key: 'dfdd27f600056edb4f0c21dc52c9c5b316a58749', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("line", { key: 'e1fc26ba3d5ffe9901f5ded149c6783e5e897951', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), h("svg", { key: 'dbe0ba812d70c2ced199a5fbdfd2637a67477f3c', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '41fab06f91865db47d4c82b44eb913cb566a965c', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), h("slot", { key: '26b7e9ad4067d5571b676872dd506371c03766b2', name: "right-adornment" }))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "ic-switch"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -228,7 +228,7 @@ export class TabContext {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
render() {
|
|
231
|
-
return h("slot", { key: '
|
|
231
|
+
return h("slot", { key: '10bbbe55408243a3a5665b6f079a2b88912abb61' });
|
|
232
232
|
}
|
|
233
233
|
static get is() { return "ic-tab-context"; }
|
|
234
234
|
static get properties() {
|
|
@@ -16,11 +16,11 @@ export class TabGroup {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const { inline, theme, label, monochrome } = this;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '6d47bc467418bb3448bc201c2903c1729d0b218c', role: "tablist", "aria-label": label, class: {
|
|
20
20
|
["ic-tab-group-inline"]: !!inline,
|
|
21
21
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22
22
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
23
|
-
} }, h("ic-horizontal-scroll", { key: '
|
|
23
|
+
} }, h("ic-horizontal-scroll", { key: '4cd7ad023ed041945dd0ea53ea30ef471c4dc87a', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: '7b755ee071f940a648289a38cf792a86b19ee0f5', class: "tabs-container" }, h("slot", { key: 'c28ac4504330b33bc6809e8cc4bb8646eb0545e9' })))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ic-tab-group"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,10 +17,10 @@ export class TabPanel {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const { active, theme } = this;
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'aa17ab5e82e7692328cfa063e5666edfd65b1c9c', class: {
|
|
21
21
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22
22
|
"ic-tab-panel-hidden": !active,
|
|
23
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: '
|
|
23
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: '719d420b5a75b8fcc722c7e510f86411e18afade' }, h("slot", { key: 'bec1ba48c3e0ced13c339f31f9af1663c068144d' }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ic-tab-panel"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -379,21 +379,21 @@ export class TextField {
|
|
|
379
379
|
const charsRemaining = maxNumChars - numChars;
|
|
380
380
|
const remainingCharCountDescId = maxCharacters > 0 ? `${inputId}-remaining-char-count-desc` : "";
|
|
381
381
|
const remainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
|
|
382
|
-
const describedBy = `${
|
|
382
|
+
const describedBy = `${getInputDescribedByText(this.el, inputId, helperText !== "", showStatusText)} ${hiddenCharCountDescId} ${numChars > 0 ? remainingCharCountDescId : ""}`.trim();
|
|
383
383
|
const disabledText = disabledMode && !readonly;
|
|
384
384
|
const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
|
|
385
385
|
const invalid = `${currentStatus === IcInformationStatus.Error}`;
|
|
386
386
|
hiddenInput
|
|
387
387
|
? renderHiddenInput(this.el, value, name, disabledMode)
|
|
388
388
|
: removeHiddenInput(this.el);
|
|
389
|
-
return (h(Host, { key: '
|
|
389
|
+
return (h(Host, { key: '4a38a5d8bd42f37b2ab1e9f3af485695b6185a8a', class: {
|
|
390
390
|
"ic-text-field-full-width": fullWidth,
|
|
391
391
|
"ic-text-field-disabled": disabledMode,
|
|
392
392
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
393
|
-
} }, h("ic-input-container", { key: '
|
|
393
|
+
} }, h("ic-input-container", { key: 'a7da6f94bac334322b00b223cfb3462d026fbba1', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: '97a5cc41a79cfc56c3e8e309154cbcc015bbadad', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, h("slot", { key: 'd9994cb1bb7218712bbed976057a3ca8d9ad3c2b', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '0d3a988b563b2f9f2033b52a75f4fd5e27056ba8', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: '319fa22903ab0b2c2315377abb9f9e7bad15f221', class: {
|
|
394
394
|
readonly,
|
|
395
395
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
|
396
|
-
}, slot: "left-icon" }, h("slot", { key: '
|
|
396
|
+
}, slot: "left-icon" }, h("slot", { key: '1224a807133d300df0a6070c998260ece29e8c80', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
|
|
397
397
|
"no-left-pad": !showLeftIcon && readonly,
|
|
398
398
|
readonly,
|
|
399
399
|
"truncate-value": truncateValue,
|
|
@@ -401,12 +401,12 @@ export class TextField {
|
|
|
401
401
|
"no-resize": resize === false || !!readonly,
|
|
402
402
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
403
403
|
readonly: !!readonly,
|
|
404
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '
|
|
404
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: 'e50c8194546e08898e7ef0ed4dd940a881ffd5c4', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: 'e2ba7a0f555593f767ff1c93c4c58b71967da1a7', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: '7b22fe423951f0f38c5419ff3c35e9f32a72735d', name: "menu" }), h("ic-input-validation", { key: '85aec8ebd4633fa36585e3253e1cc8107c374495', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
|
405
405
|
(currentStatus === IcInformationStatus.Success &&
|
|
406
406
|
validationInline) ||
|
|
407
407
|
validationInlineInternal
|
|
408
408
|
? ""
|
|
409
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { key: '
|
|
409
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { key: 'f857927758c96f735592e7af679dba91c333fbf1', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: 'eed01e87433155c8311c5ef958145d484c65264a', variant: "caption", class: "char-count-text" }, h("span", { key: '1752a0a453ed7dd28b909029f847330ffbff406c', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: 'cd708a611a6133a7cf3b892d8f83cbf592791907', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: 'ebe5600dece8662d9966667308e79872793b098c', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
|
|
410
410
|
}
|
|
411
411
|
static get is() { return "ic-text-field"; }
|
|
412
412
|
static get encapsulation() { return "shadow"; }
|