@ukic/web-components 3.25.0 → 3.27.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/components/OpenInNew.js +5 -0
- package/components/OpenInNew.js.map +1 -0
- package/components/check-icon.js +8 -0
- package/components/check-icon.js.map +1 -0
- package/components/chevron-icon.js +8 -0
- package/components/chevron-icon.js.map +1 -0
- package/components/close-icon.js +10 -0
- package/components/close-icon.js.map +1 -0
- package/components/constants.js +184 -0
- package/components/constants.js.map +1 -0
- package/components/custom-elements.d.ts +2 -0
- package/components/helpers.js +547 -0
- package/components/helpers.js.map +1 -0
- package/components/ic-accordion-group.d.ts +11 -0
- package/components/ic-accordion-group.js +191 -0
- package/components/ic-accordion-group.js.map +1 -0
- package/components/ic-accordion.d.ts +11 -0
- package/components/ic-accordion.js +188 -0
- package/components/ic-accordion.js.map +1 -0
- package/components/ic-action-chip.d.ts +11 -0
- package/components/ic-action-chip.js +164 -0
- package/components/ic-action-chip.js.map +1 -0
- package/components/ic-alert.d.ts +11 -0
- package/components/ic-alert.js +193 -0
- package/components/ic-alert.js.map +1 -0
- package/components/ic-back-to-top.d.ts +11 -0
- package/components/ic-back-to-top.js +216 -0
- package/components/ic-back-to-top.js.map +1 -0
- package/components/ic-badge.d.ts +11 -0
- package/components/ic-badge.js +222 -0
- package/components/ic-badge.js.map +1 -0
- package/components/ic-breadcrumb-group.d.ts +11 -0
- package/components/ic-breadcrumb-group.js +278 -0
- package/components/ic-breadcrumb-group.js.map +1 -0
- package/components/ic-breadcrumb.d.ts +11 -0
- package/components/ic-breadcrumb.js +8 -0
- package/components/ic-breadcrumb.js.map +1 -0
- package/components/ic-breadcrumb2.js +145 -0
- package/components/ic-breadcrumb2.js.map +1 -0
- package/components/ic-button.d.ts +11 -0
- package/components/ic-button.js +8 -0
- package/components/ic-button.js.map +1 -0
- package/components/ic-button2.js +509 -0
- package/components/ic-button2.js.map +1 -0
- package/components/ic-card-horizontal.d.ts +11 -0
- package/components/ic-card-horizontal.js +214 -0
- package/components/ic-card-horizontal.js.map +1 -0
- package/components/ic-card-vertical.d.ts +11 -0
- package/components/ic-card-vertical.js +219 -0
- package/components/ic-card-vertical.js.map +1 -0
- package/components/ic-checkbox-group.d.ts +11 -0
- package/components/ic-checkbox-group.js +198 -0
- package/components/ic-checkbox-group.js.map +1 -0
- package/components/ic-checkbox.d.ts +11 -0
- package/components/ic-checkbox.js +202 -0
- package/components/ic-checkbox.js.map +1 -0
- package/components/ic-chip.d.ts +11 -0
- package/components/ic-chip.js +183 -0
- package/components/ic-chip.js.map +1 -0
- package/components/ic-classification-banner.d.ts +11 -0
- package/components/ic-classification-banner.js +102 -0
- package/components/ic-classification-banner.js.map +1 -0
- package/components/ic-data-list.d.ts +11 -0
- package/components/ic-data-list.js +63 -0
- package/components/ic-data-list.js.map +1 -0
- package/components/ic-data-row.d.ts +11 -0
- package/components/ic-data-row.js +115 -0
- package/components/ic-data-row.js.map +1 -0
- package/components/ic-dialog.d.ts +11 -0
- package/components/ic-dialog.js +366 -0
- package/components/ic-dialog.js.map +1 -0
- package/components/ic-divider.d.ts +11 -0
- package/components/ic-divider.js +8 -0
- package/components/ic-divider.js.map +1 -0
- package/components/ic-divider2.js +148 -0
- package/components/ic-divider2.js.map +1 -0
- package/components/ic-empty-state.d.ts +11 -0
- package/components/ic-empty-state.js +82 -0
- package/components/ic-empty-state.js.map +1 -0
- package/components/ic-footer-link-group.d.ts +11 -0
- package/components/ic-footer-link-group.js +101 -0
- package/components/ic-footer-link-group.js.map +1 -0
- package/components/ic-footer-link.d.ts +11 -0
- package/components/ic-footer-link.js +95 -0
- package/components/ic-footer-link.js.map +1 -0
- package/components/ic-footer.d.ts +11 -0
- package/components/ic-footer.js +156 -0
- package/components/ic-footer.js.map +1 -0
- package/components/ic-hero.d.ts +11 -0
- package/components/ic-hero.js +145 -0
- package/components/ic-hero.js.map +1 -0
- package/components/ic-horizontal-scroll.d.ts +11 -0
- package/components/ic-horizontal-scroll.js +8 -0
- package/components/ic-horizontal-scroll.js.map +1 -0
- package/components/ic-horizontal-scroll2.js +240 -0
- package/components/ic-horizontal-scroll2.js.map +1 -0
- package/components/ic-input-component-container.d.ts +11 -0
- package/components/ic-input-component-container.js +8 -0
- package/components/ic-input-component-container.js.map +1 -0
- package/components/ic-input-component-container2.js +95 -0
- package/components/ic-input-component-container2.js.map +1 -0
- package/components/ic-input-container.d.ts +11 -0
- package/components/ic-input-container.js +8 -0
- package/components/ic-input-container.js.map +1 -0
- package/components/ic-input-container2.js +47 -0
- package/components/ic-input-container2.js.map +1 -0
- package/components/ic-input-label.d.ts +11 -0
- package/components/ic-input-label.js +8 -0
- package/components/ic-input-label.js.map +1 -0
- package/components/ic-input-label2.js +121 -0
- package/components/ic-input-label2.js.map +1 -0
- package/components/ic-input-validation.d.ts +11 -0
- package/components/ic-input-validation.js +8 -0
- package/components/ic-input-validation.js.map +1 -0
- package/components/ic-input-validation2.js +90 -0
- package/components/ic-input-validation2.js.map +1 -0
- package/components/ic-layout-grid-item.d.ts +11 -0
- package/components/ic-layout-grid-item.js +95 -0
- package/components/ic-layout-grid-item.js.map +1 -0
- package/components/ic-layout-grid.d.ts +11 -0
- package/components/ic-layout-grid.js +188 -0
- package/components/ic-layout-grid.js.map +1 -0
- package/components/ic-link.d.ts +11 -0
- package/components/ic-link.js +8 -0
- package/components/ic-link.js.map +1 -0
- package/components/ic-link2.js +135 -0
- package/components/ic-link2.js.map +1 -0
- package/components/ic-loading-indicator.d.ts +11 -0
- package/components/ic-loading-indicator.js +8 -0
- package/components/ic-loading-indicator.js.map +1 -0
- package/components/ic-loading-indicator2.js +278 -0
- package/components/ic-loading-indicator2.js.map +1 -0
- package/components/ic-menu-group.d.ts +11 -0
- package/components/ic-menu-group.js +47 -0
- package/components/ic-menu-group.js.map +1 -0
- package/components/ic-menu-item.d.ts +11 -0
- package/components/ic-menu-item.js +8 -0
- package/components/ic-menu-item.js.map +1 -0
- package/components/ic-menu-item2.js +171 -0
- package/components/ic-menu-item2.js.map +1 -0
- package/components/ic-menu.d.ts +11 -0
- package/components/ic-menu.js +8 -0
- package/components/ic-menu.js.map +1 -0
- package/components/ic-menu2.js +2590 -0
- package/components/ic-menu2.js.map +1 -0
- package/components/ic-navigation-button.d.ts +11 -0
- package/components/ic-navigation-button.js +175 -0
- package/components/ic-navigation-button.js.map +1 -0
- package/components/ic-navigation-group.d.ts +11 -0
- package/components/ic-navigation-group.js +326 -0
- package/components/ic-navigation-group.js.map +1 -0
- package/components/ic-navigation-item.d.ts +11 -0
- package/components/ic-navigation-item.js +294 -0
- package/components/ic-navigation-item.js.map +1 -0
- package/components/ic-navigation-menu.d.ts +11 -0
- package/components/ic-navigation-menu.js +8 -0
- package/components/ic-navigation-menu.js.map +1 -0
- package/components/ic-navigation-menu2.js +188 -0
- package/components/ic-navigation-menu2.js.map +1 -0
- package/components/ic-page-header.d.ts +11 -0
- package/components/ic-page-header.js +196 -0
- package/components/ic-page-header.js.map +1 -0
- package/components/ic-pagination-bar.d.ts +11 -0
- package/components/ic-pagination-bar.js +523 -0
- package/components/ic-pagination-bar.js.map +1 -0
- package/components/ic-pagination-item.d.ts +11 -0
- package/components/ic-pagination-item.js +8 -0
- package/components/ic-pagination-item.js.map +1 -0
- package/components/ic-pagination-item2.js +107 -0
- package/components/ic-pagination-item2.js.map +1 -0
- package/components/ic-pagination.d.ts +11 -0
- package/components/ic-pagination.js +8 -0
- package/components/ic-pagination.js.map +1 -0
- package/components/ic-pagination2.js +379 -0
- package/components/ic-pagination2.js.map +1 -0
- package/components/ic-popover-menu.d.ts +11 -0
- package/components/ic-popover-menu.js +369 -0
- package/components/ic-popover-menu.js.map +1 -0
- package/components/ic-radio-group.d.ts +11 -0
- package/components/ic-radio-group.js +317 -0
- package/components/ic-radio-group.js.map +1 -0
- package/components/ic-radio-option.d.ts +11 -0
- package/components/ic-radio-option.js +211 -0
- package/components/ic-radio-option.js.map +1 -0
- package/components/ic-search-bar.d.ts +11 -0
- package/components/ic-search-bar.js +719 -0
- package/components/ic-search-bar.js.map +1 -0
- package/components/ic-section-container.d.ts +11 -0
- package/components/ic-section-container.js +8 -0
- package/components/ic-section-container.js.map +1 -0
- package/components/ic-section-container2.js +50 -0
- package/components/ic-section-container2.js.map +1 -0
- package/components/ic-select.d.ts +11 -0
- package/components/ic-select.js +8 -0
- package/components/ic-select.js.map +1 -0
- package/components/ic-select2.js +806 -0
- package/components/ic-select2.js.map +1 -0
- package/components/ic-side-navigation.d.ts +11 -0
- package/components/ic-side-navigation.js +568 -0
- package/components/ic-side-navigation.js.map +1 -0
- package/components/ic-skeleton.d.ts +11 -0
- package/components/ic-skeleton.js +81 -0
- package/components/ic-skeleton.js.map +1 -0
- package/components/ic-skip-link.d.ts +11 -0
- package/components/ic-skip-link.js +91 -0
- package/components/ic-skip-link.js.map +1 -0
- package/components/ic-status-tag.d.ts +11 -0
- package/components/ic-status-tag.js +85 -0
- package/components/ic-status-tag.js.map +1 -0
- package/components/ic-step.d.ts +11 -0
- package/components/ic-step.js +200 -0
- package/components/ic-step.js.map +1 -0
- package/components/ic-stepper.d.ts +11 -0
- package/components/ic-stepper.js +340 -0
- package/components/ic-stepper.js.map +1 -0
- package/components/ic-switch.d.ts +11 -0
- package/components/ic-switch.js +164 -0
- package/components/ic-switch.js.map +1 -0
- package/components/ic-tab-context.d.ts +11 -0
- package/components/ic-tab-context.js +275 -0
- package/components/ic-tab-context.js.map +1 -0
- package/components/ic-tab-group.d.ts +11 -0
- package/components/ic-tab-group.js +89 -0
- package/components/ic-tab-group.js.map +1 -0
- package/components/ic-tab-panel.d.ts +11 -0
- package/components/ic-tab-panel.js +63 -0
- package/components/ic-tab-panel.js.map +1 -0
- package/components/ic-tab.d.ts +11 -0
- package/components/ic-tab.js +143 -0
- package/components/ic-tab.js.map +1 -0
- package/components/ic-text-field.d.ts +11 -0
- package/components/ic-text-field.js +8 -0
- package/components/ic-text-field.js.map +1 -0
- package/components/ic-text-field2.js +532 -0
- package/components/ic-text-field2.js.map +1 -0
- package/components/ic-theme.d.ts +11 -0
- package/components/ic-theme.js +105 -0
- package/components/ic-theme.js.map +1 -0
- package/components/ic-toast-region.d.ts +11 -0
- package/components/ic-toast-region.js +76 -0
- package/components/ic-toast-region.js.map +1 -0
- package/components/ic-toast.d.ts +11 -0
- package/components/ic-toast.js +295 -0
- package/components/ic-toast.js.map +1 -0
- package/components/ic-toggle-button-group.d.ts +11 -0
- package/components/ic-toggle-button-group.js +323 -0
- package/components/ic-toggle-button-group.js.map +1 -0
- package/components/ic-toggle-button.d.ts +11 -0
- package/components/ic-toggle-button.js +235 -0
- package/components/ic-toggle-button.js.map +1 -0
- package/components/ic-tooltip.d.ts +11 -0
- package/components/ic-tooltip.js +8 -0
- package/components/ic-tooltip.js.map +1 -0
- package/components/ic-tooltip2.js +2078 -0
- package/components/ic-tooltip2.js.map +1 -0
- package/components/ic-top-navigation.d.ts +11 -0
- package/components/ic-top-navigation.js +320 -0
- package/components/ic-top-navigation.js.map +1 -0
- package/components/ic-typography.d.ts +11 -0
- package/components/ic-typography.js +8 -0
- package/components/ic-typography.js.map +1 -0
- package/components/ic-typography2.js +228 -0
- package/components/ic-typography2.js.map +1 -0
- package/components/index.d.ts +33 -0
- package/components/index.js +4 -0
- package/components/index.js.map +1 -0
- package/components/package.json +9 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +63 -37
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_3.cjs.entry.js +17 -17
- package/dist/cjs/ic-pagination_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +12 -8
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +19 -0
- package/dist/collection/components/ic-menu/ic-menu.js +62 -36
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.js +17 -17
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +54 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +33 -9
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +26 -0
- package/dist/components/ic-menu2.js +63 -37
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-select2.js +17 -17
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +13 -8
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-46e5a58b.entry.js → p-12474095.entry.js} +2 -2
- package/dist/core/p-12474095.entry.js.map +1 -0
- package/dist/core/p-98dee727.entry.js.map +1 -1
- package/dist/core/p-d1220d2a.entry.js.map +1 -1
- package/dist/core/p-e0b66371.entry.js +2 -0
- package/dist/core/p-e0b66371.entry.js.map +1 -0
- package/dist/core/{p-171a19bf.entry.js → p-fdc4376e.entry.js} +2 -2
- package/dist/core/p-fdc4376e.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +63 -37
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-pagination_3.entry.js +17 -17
- package/dist/esm/ic-pagination_3.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +12 -8
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-menu/ic-menu.types.d.ts +1 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +4 -1
- package/dist/types/components.d.ts +10 -2
- package/hydrate/index.js +93 -62
- package/hydrate/index.mjs +93 -62
- package/package.json +4 -2
- package/vscode-data.json +5 -1
- package/dist/core/p-171a19bf.entry.js.map +0 -1
- package/dist/core/p-343670b4.entry.js +0 -2
- package/dist/core/p-343670b4.entry.js.map +0 -1
- package/dist/core/p-46e5a58b.entry.js.map +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -12048,7 +12048,7 @@ const sanitizeHTMLIconString = (html) => {
|
|
|
12048
12048
|
return purifier.sanitize(html, getCustomElementHandling(false));
|
|
12049
12049
|
};
|
|
12050
12050
|
|
|
12051
|
-
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.sc-ic-menu:first-child>.option-group-title.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs)}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}@media (prefers-reduced-motion: reduce){.ic-menu-open.sc-ic-menu-h{transition:none}}";
|
|
12051
|
+
const icMenuCss = "html.sc-ic-menu{line-height:1.15;-webkit-text-size-adjust:100%}body.sc-ic-menu{margin:0}main.sc-ic-menu{display:block}h1.sc-ic-menu{font-size:2em;margin:0.67em 0}hr.sc-ic-menu{box-sizing:content-box;height:0;overflow:visible}pre.sc-ic-menu{font-family:monospace, monospace;font-size:1em}a.sc-ic-menu{background-color:transparent}abbr[title].sc-ic-menu{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b.sc-ic-menu,strong.sc-ic-menu{font-weight:bolder}code.sc-ic-menu,kbd.sc-ic-menu,samp.sc-ic-menu{font-family:monospace, monospace;font-size:1em}small.sc-ic-menu{font-size:80%}sub.sc-ic-menu,sup.sc-ic-menu{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub.sc-ic-menu{bottom:-0.25em}sup.sc-ic-menu{top:-0.5em}img.sc-ic-menu{border-style:none}button.sc-ic-menu,input.sc-ic-menu,optgroup.sc-ic-menu,select.sc-ic-menu,textarea.sc-ic-menu{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button.sc-ic-menu,input.sc-ic-menu{overflow:visible}button.sc-ic-menu,select.sc-ic-menu{text-transform:none}button.sc-ic-menu,[type=\"button\"].sc-ic-menu,[type=\"reset\"].sc-ic-menu,[type=\"submit\"].sc-ic-menu{-webkit-appearance:button}button.sc-ic-menu::-moz-focus-inner,[type=\"button\"].sc-ic-menu::-moz-focus-inner,[type=\"reset\"].sc-ic-menu::-moz-focus-inner,[type=\"submit\"].sc-ic-menu::-moz-focus-inner{border-style:none;padding:0}button.sc-ic-menu:-moz-focusring,[type=\"button\"].sc-ic-menu:-moz-focusring,[type=\"reset\"].sc-ic-menu:-moz-focusring,[type=\"submit\"].sc-ic-menu:-moz-focusring{outline:1px dotted ButtonText}fieldset.sc-ic-menu{padding:0.35em 0.75em 0.625em}legend.sc-ic-menu{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress.sc-ic-menu{vertical-align:baseline}textarea.sc-ic-menu{overflow:auto}[type=\"checkbox\"].sc-ic-menu,[type=\"radio\"].sc-ic-menu{box-sizing:border-box;padding:0}[type=\"number\"].sc-ic-menu::-webkit-inner-spin-button,[type=\"number\"].sc-ic-menu::-webkit-outer-spin-button{height:auto}[type=\"search\"].sc-ic-menu{-webkit-appearance:textfield;outline-offset:-2px}[type=\"search\"].sc-ic-menu::-webkit-search-decoration{-webkit-appearance:none}.sc-ic-menu::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details.sc-ic-menu{display:block}summary.sc-ic-menu{display:list-item}template.sc-ic-menu{display:none}[hidden].sc-ic-menu{display:none}html.sc-ic-menu,body.sc-ic-menu,div.sc-ic-menu,span.sc-ic-menu,applet.sc-ic-menu,object.sc-ic-menu,iframe.sc-ic-menu,h1.sc-ic-menu,h2.sc-ic-menu,h3.sc-ic-menu,h4.sc-ic-menu,h5.sc-ic-menu,h6.sc-ic-menu,p.sc-ic-menu,blockquote.sc-ic-menu,pre.sc-ic-menu,a.sc-ic-menu,abbr.sc-ic-menu,acronym.sc-ic-menu,address.sc-ic-menu,big.sc-ic-menu,cite.sc-ic-menu,code.sc-ic-menu,del.sc-ic-menu,dfn.sc-ic-menu,em.sc-ic-menu,img.sc-ic-menu,ins.sc-ic-menu,kbd.sc-ic-menu,q.sc-ic-menu,s.sc-ic-menu,samp.sc-ic-menu,small.sc-ic-menu,strike.sc-ic-menu,strong.sc-ic-menu,sub.sc-ic-menu,sup.sc-ic-menu,tt.sc-ic-menu,var.sc-ic-menu,b.sc-ic-menu,u.sc-ic-menu,i.sc-ic-menu,center.sc-ic-menu,dl.sc-ic-menu,dt.sc-ic-menu,dd.sc-ic-menu,ol.sc-ic-menu,ul.sc-ic-menu,li.sc-ic-menu,fieldset.sc-ic-menu,form.sc-ic-menu,label.sc-ic-menu,legend.sc-ic-menu,table.sc-ic-menu,caption.sc-ic-menu,tbody.sc-ic-menu,tfoot.sc-ic-menu,thead.sc-ic-menu,tr.sc-ic-menu,th.sc-ic-menu,td.sc-ic-menu,article.sc-ic-menu,aside.sc-ic-menu,canvas.sc-ic-menu,details.sc-ic-menu,embed.sc-ic-menu,figure.sc-ic-menu,figcaption.sc-ic-menu,footer.sc-ic-menu,header.sc-ic-menu,hgroup.sc-ic-menu,menu.sc-ic-menu,nav.sc-ic-menu,output.sc-ic-menu,ruby.sc-ic-menu,section.sc-ic-menu,summary.sc-ic-menu,time.sc-ic-menu,mark.sc-ic-menu,audio.sc-ic-menu,video.sc-ic-menu{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}@media (prefers-reduced-motion: no-preference){.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{transition:max-height var(--ic-transition-duration-slow)}}.sc-ic-menu-h{max-height:0;width:var(--menu-width, var(--input-width, 20rem));color:var(--menu-item-text-color, var(--ic-menu-list-option-text-color));--ic-typography-color:var(\n --menu-item-text-color,\n var(--ic-menu-list-option-text-color)\n );background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );position:relative;z-index:var(--ic-z-index-menu);box-sizing:border-box;box-shadow:var(--ic-elevation-overlay);border-radius:var(--ic-border-radius)}.ic-menu-open.sc-ic-menu-h:not(.ic-menu-no-focus):focus-within{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline)}.ic-select-select-all-focused.sc-ic-menu-h{box-shadow:var(--ic-elevation-overlay) !important}#retry-button.sc-ic-menu::part(button){height:var(--ic-space-lg)}.small.sc-ic-menu #retry-button.sc-ic-menu::part(button){height:var(--ic-space-md)}.on-dialog.sc-ic-menu-h{inset:auto !important}.menu.sc-ic-menu{text-decoration:none;list-style-type:none;border-radius:1px;background-color:var(\n --menu-bg-color,\n var(--ic-menu-list-option-background-color)\n );visibility:hidden;max-height:0;overflow-y:hidden}.menu.sc-ic-menu:has(+.option-bar).sc-ic-menu{border-radius:0 0 1px 1px}.menu-scroll.sc-ic-menu{overflow-y:auto}.menu.sc-ic-menu:focus-visible{outline:none}.ic-menu-open.sc-ic-menu-h{max-height:none;display:flex;flex-direction:column-reverse;border:var(--ic-border-width) solid\n var(--menu-border-color, var(--ic-menu-border-color));transition:box-shadow var(--ic-easing-transition-fast)}.ic-menu-open.sc-ic-menu-h .menu.sc-ic-menu{visibility:visible;max-height:calc(var(--ic-space-xl) * 10 + var(--ic-space-xxxs))}.ic-menu-open.sc-ic-menu-h .option-bar.sc-ic-menu{visibility:visible}.ic-menu-open.sc-ic-menu-h .select-all-button.sc-ic-menu{display:block}.ic-menu-full-width.sc-ic-menu-h{width:100%}.option.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px));cursor:pointer;display:flex;align-items:center;gap:var(--ic-space-xs)}.loading-option.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.option.sc-ic-menu:not(.loading-option){justify-content:space-between}.ic-menu-small.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-xxs) calc(var(--ic-space-xs) - var(--ic-space-1px))}.ic-menu-large.sc-ic-menu-h .option.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))}.option.sc-ic-menu:last-child{border-radius:0 0 1px 1px}.sc-ic-menu:not(.menu:has(+.option-bar)).sc-ic-menu .option.sc-ic-menu:first-child{border-radius:1px 1px 0 0}.option.sc-ic-menu:not(.disabled-option):hover{background-color:var(--ic-menu-list-option-hover-background-color)}.option.sc-ic-menu:not(.disabled-option):active{background-color:var(--ic-menu-list-option-pressed-background-color)}.option.sc-ic-menu:focus-visible{outline:var(--ic-hc-focus-outline)}.option.sc-ic-menu:not(.disabled-option) .option-description.sc-ic-menu{--ic-typography-color:var(\n --menu-item-desc-text-color,\n var(--ic-menu-list-option-description-text-color)\n )}.option.sc-ic-menu .option-label.sc-ic-menu{display:flex;flex-direction:row;align-items:top}.option.sc-ic-menu .option-label.sc-ic-menu ic-typography.sc-ic-menu{max-width:100%;word-wrap:break-word}.option.sc-ic-menu .option-element.sc-ic-menu{margin-top:var(--ic-space-xxs)}.option.sc-ic-menu .option-icon.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);margin-top:var(--ic-space-xxs);margin-right:var(--ic-space-xxs)}.option-text-container.sc-ic-menu{pointer-events:none;width:100%}.option-text-container.show-check-icon.sc-ic-menu{flex-grow:1}.option.loading-option.sc-ic-menu .option-text-container.sc-ic-menu{margin-left:calc(var(--ic-space-xs) + var(--ic-space-xxxs));color:var(--ic-menu-loading-list-option-text-color);--ic-typography-color:var(--ic-menu-loading-list-option-text-color)}.error-icon-svg.sc-ic-menu{height:var(--ic-space-md);width:var(--ic-space-md);fill:var(--ic-atoms-status-icon-error);align-self:center;display:flex;margin-right:calc(var(--ic-space-xxs) * 1.2)}.loading-error-info.sc-ic-menu{display:flex}.check-icon.sc-ic-menu{height:var(--ic-space-lg);min-width:var(--ic-space-lg);width:var(--ic-space-lg);pointer-events:none}.focused-option.sc-ic-menu .check-icon.sc-ic-menu *.sc-ic-menu{fill:currentcolor}.sc-ic-menu:first-child>.option-group-title.sc-ic-menu{padding:var(--ic-space-xs) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs)}.option-group-title.sc-ic-menu{padding:var(--ic-space-lg) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xs);--ic-typography-color:var(--ic-menu-option-group-label-text-color)}.ic-menu-small.sc-ic-menu-h .option-group-title.sc-ic-menu{padding:var(--ic-space-sm) calc(var(--ic-space-xs) - var(--ic-space-1px))\n var(--ic-space-xxs)}.last-recommended-option.sc-ic-menu{border-bottom:var(--ic-menu-last-recommended-option-border)}.disabled-option.sc-ic-menu{color:var(--ic-atoms-list-option-text-disabled-light);--ic-typography-color:var(--ic-atoms-list-option-text-disabled-light);cursor:default;pointer-events:none}.focus-border.sc-ic-menu{border-radius:var(--ic-border-radius);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;border-color:var(--ic-popover-menu-border);background-color:var(--ic-color-focus-inner) !important;--icon-height:auto}.focus-disabled.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;padding:calc(var(--ic-space-xs) - var(--ic-space-xxxs) - var(--ic-space-xxs))\n calc(\n var(--ic-space-xs) - var(--ic-space-1px) - var(--ic-space-xxxs) -\n var(--ic-space-xxs)\n )}.focused-option.sc-ic-menu,.focused-option.sc-ic-menu .option-description.sc-ic-menu{background-color:var(--ic-color-focus-inner) !important;color:var(--ic-atoms-list-option-text-focused-light) !important;--ic-typography-color:var(\n --ic-atoms-list-option-text-focused-light\n ) !important}.no-results.sc-ic-menu-h li.sc-ic-menu{cursor:no-drop}.no-results.sc-ic-menu-h li.sc-ic-menu:hover{background-color:transparent}.option-bar.sc-ic-menu{padding:var(--ic-space-xxs) var(--ic-space-xs);display:flex;align-items:center;justify-content:space-between;background-color:var(--ic-menu-option-bar-background-color);visibility:hidden;border-bottom:var(--ic-border-width) solid\n var(--ic-menu-option-bar-divider-color);border-radius:1px 1px 0 0}.option-bar.sc-ic-menu p.sc-ic-menu{margin-bottom:0 !important}.ic-menu-large.sc-ic-menu-h .option-bar.sc-ic-menu{padding:var(--ic-space-xs)}.select-all-button.sc-ic-menu{display:none}.select-all-button.sc-ic-menu:focus{z-index:calc(var(--ic-z-index-menu) + 1)}@media (forced-colors: active){.focused-option.sc-ic-menu{outline:none;border:0.125rem solid transparent}.disabled-option.sc-ic-menu{color:GrayText;--ic-typography-color:GrayText}}@media screen AND (max-width: 22rem){.sc-ic-menu-h{max-width:var(--menu-width, var(--input-width, 20rem));width:100%}}@media (prefers-reduced-motion: reduce){.ic-menu-open.sc-ic-menu-h{transition:none}}";
|
|
12052
12052
|
var IcMenuStyle0 = icMenuCss;
|
|
12053
12053
|
|
|
12054
12054
|
class Menu {
|
|
@@ -12179,30 +12179,34 @@ class Menu {
|
|
|
12179
12179
|
}
|
|
12180
12180
|
};
|
|
12181
12181
|
this.setNextOptionValue = (selectedOptionIndex) => {
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
|
|
12182
|
+
const nextIndex = selectedOptionIndex % this.ungroupedOptions.length;
|
|
12183
|
+
const nextOption = this.ungroupedOptions[nextIndex];
|
|
12184
|
+
this.setHighlightedOption(nextIndex);
|
|
12185
|
+
if (nextOption.disabled) {
|
|
12186
|
+
this.menuOptionId.emit({
|
|
12187
|
+
optionId: this.getOptionId(nextOption[this.valueField]),
|
|
12186
12188
|
});
|
|
12187
12189
|
}
|
|
12188
12190
|
else {
|
|
12189
12191
|
this.menuOptionSelect.emit({
|
|
12190
|
-
value:
|
|
12191
|
-
optionId: this.getOptionId(
|
|
12192
|
+
value: nextOption[this.valueField],
|
|
12193
|
+
optionId: this.getOptionId(nextOption[this.valueField]),
|
|
12192
12194
|
});
|
|
12193
12195
|
}
|
|
12194
12196
|
};
|
|
12195
12197
|
this.setPreviousOptionValue = (selectedOptionIndex) => {
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12198
|
+
const prevIndex = selectedOptionIndex % this.ungroupedOptions.length;
|
|
12199
|
+
const prevOption = this.ungroupedOptions[prevIndex];
|
|
12200
|
+
this.setHighlightedOption(prevIndex);
|
|
12201
|
+
if (prevOption.disabled) {
|
|
12202
|
+
this.menuOptionId.emit({
|
|
12203
|
+
optionId: this.getOptionId(prevOption[this.valueField]),
|
|
12200
12204
|
});
|
|
12201
12205
|
}
|
|
12202
12206
|
else {
|
|
12203
12207
|
this.menuOptionSelect.emit({
|
|
12204
|
-
value:
|
|
12205
|
-
optionId: this.getOptionId(
|
|
12208
|
+
value: prevOption[this.valueField],
|
|
12209
|
+
optionId: this.getOptionId(prevOption[this.valueField]),
|
|
12206
12210
|
});
|
|
12207
12211
|
}
|
|
12208
12212
|
};
|
|
@@ -12233,7 +12237,7 @@ class Menu {
|
|
|
12233
12237
|
const nextIndex = selectedOptionIndex < this.ungroupedOptions.length - 1
|
|
12234
12238
|
? selectedOptionIndex + 1
|
|
12235
12239
|
: 0;
|
|
12236
|
-
this.setNextOptionValue(
|
|
12240
|
+
this.setNextOptionValue(nextIndex);
|
|
12237
12241
|
this.emitOptionId(nextIndex);
|
|
12238
12242
|
break;
|
|
12239
12243
|
}
|
|
@@ -12243,7 +12247,7 @@ class Menu {
|
|
|
12243
12247
|
const prevIndex = selectedOptionIndex > 0
|
|
12244
12248
|
? selectedOptionIndex - 1
|
|
12245
12249
|
: this.ungroupedOptions.length - 1;
|
|
12246
|
-
this.setPreviousOptionValue(
|
|
12250
|
+
this.setPreviousOptionValue(prevIndex);
|
|
12247
12251
|
this.emitOptionId(prevIndex);
|
|
12248
12252
|
break;
|
|
12249
12253
|
}
|
|
@@ -12282,6 +12286,7 @@ class Menu {
|
|
|
12282
12286
|
if (this.searchBar &&
|
|
12283
12287
|
options[highlightedOptionIndex].disabled === true) {
|
|
12284
12288
|
this.disabledOptionSelected = true;
|
|
12289
|
+
this.optionHighlighted = undefined;
|
|
12285
12290
|
}
|
|
12286
12291
|
else {
|
|
12287
12292
|
this.setInputValue(highlightedOptionIndex);
|
|
@@ -12507,14 +12512,15 @@ class Menu {
|
|
|
12507
12512
|
};
|
|
12508
12513
|
this.setInputValue = (highlightedOptionIndex) => {
|
|
12509
12514
|
const menuOptions = this.getMenuOptions();
|
|
12510
|
-
if (menuOptions[highlightedOptionIndex] !== undefined
|
|
12515
|
+
if (menuOptions[highlightedOptionIndex] !== undefined &&
|
|
12516
|
+
!menuOptions[highlightedOptionIndex].disabled) {
|
|
12511
12517
|
this.menuOptionSelect.emit({
|
|
12512
12518
|
value: menuOptions[highlightedOptionIndex][this.valueField],
|
|
12513
12519
|
});
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
}
|
|
12520
|
+
}
|
|
12521
|
+
if (this.closeOnSelect) {
|
|
12522
|
+
this.optionHighlighted = undefined;
|
|
12523
|
+
this.menuOptionId.emit({ optionId: undefined });
|
|
12518
12524
|
}
|
|
12519
12525
|
if (this.closeOnSelect) {
|
|
12520
12526
|
if (!this.hasTimedOut) {
|
|
@@ -12671,11 +12677,12 @@ class Menu {
|
|
|
12671
12677
|
var _a, _b;
|
|
12672
12678
|
// Select all if there is either no value or not all options are selected
|
|
12673
12679
|
// 'true' means select all, 'false' means clear all
|
|
12680
|
+
const enabledOptionsCount = this.ungroupedOptions.filter((option) => !option.disabled).length;
|
|
12674
12681
|
this.menuOptionSelectAll.emit({
|
|
12675
|
-
select: !this.value || !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) ===
|
|
12682
|
+
select: !this.value || !(((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === enabledOptionsCount),
|
|
12676
12683
|
});
|
|
12677
|
-
// Emit clear event if all options are selected
|
|
12678
|
-
if (((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) ===
|
|
12684
|
+
// Emit clear event if all non-disabled options are selected
|
|
12685
|
+
if (((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) === enabledOptionsCount) {
|
|
12679
12686
|
this.icClear.emit();
|
|
12680
12687
|
}
|
|
12681
12688
|
};
|
|
@@ -12688,7 +12695,10 @@ class Menu {
|
|
|
12688
12695
|
this.autoSetValueOnMenuKeyDown = (event) => {
|
|
12689
12696
|
var _a;
|
|
12690
12697
|
event.cancelBubble = true;
|
|
12691
|
-
const
|
|
12698
|
+
const highlightedOptionIndex = this.getOptionHighlightedIndex();
|
|
12699
|
+
const selectedOptionIndex = highlightedOptionIndex >= 0
|
|
12700
|
+
? highlightedOptionIndex
|
|
12701
|
+
: this.ungroupedOptions.findIndex((option) => option[this.valueField] === this.value);
|
|
12692
12702
|
const isSearchableSelect = !!this.inputEl && this.inputEl.tagName === "INPUT";
|
|
12693
12703
|
this.keyboardNav = false;
|
|
12694
12704
|
switch (event.key) {
|
|
@@ -12698,20 +12708,22 @@ class Menu {
|
|
|
12698
12708
|
case "ArrowUp":
|
|
12699
12709
|
if (!this.hasTimedOut) {
|
|
12700
12710
|
event.preventDefault();
|
|
12701
|
-
|
|
12702
|
-
this.emitOptionId(selectedOptionIndex > 0
|
|
12711
|
+
const prevIndex = selectedOptionIndex > 0
|
|
12703
12712
|
? selectedOptionIndex - 1
|
|
12704
|
-
: this.ungroupedOptions.length - 1
|
|
12713
|
+
: this.ungroupedOptions.length - 1;
|
|
12714
|
+
this.setPreviousOptionValue(prevIndex);
|
|
12715
|
+
this.emitOptionId(prevIndex);
|
|
12705
12716
|
this.keyboardNav = true;
|
|
12706
12717
|
}
|
|
12707
12718
|
break;
|
|
12708
12719
|
case "ArrowDown":
|
|
12709
12720
|
if (!this.hasTimedOut) {
|
|
12710
12721
|
event.preventDefault();
|
|
12711
|
-
this.
|
|
12712
|
-
this.emitOptionId(selectedOptionIndex < this.ungroupedOptions.length - 1
|
|
12722
|
+
const nextIndex = selectedOptionIndex < this.ungroupedOptions.length - 1
|
|
12713
12723
|
? selectedOptionIndex + 1
|
|
12714
|
-
: 0
|
|
12724
|
+
: 0;
|
|
12725
|
+
this.setNextOptionValue(nextIndex);
|
|
12726
|
+
this.emitOptionId(nextIndex);
|
|
12715
12727
|
this.keyboardNav = true;
|
|
12716
12728
|
}
|
|
12717
12729
|
break;
|
|
@@ -12812,7 +12824,7 @@ class Menu {
|
|
|
12812
12824
|
if (option.children) {
|
|
12813
12825
|
option.children.map((option) => !option.disabled && this.ungroupedOptions.push(option));
|
|
12814
12826
|
}
|
|
12815
|
-
else
|
|
12827
|
+
else {
|
|
12816
12828
|
this.ungroupedOptions.push(option);
|
|
12817
12829
|
}
|
|
12818
12830
|
});
|
|
@@ -12842,6 +12854,9 @@ class Menu {
|
|
|
12842
12854
|
return (hAsync(Fragment, null, option.loading && hAsync("ic-loading-indicator", { size: "icon" }), hAsync("div", { class: {
|
|
12843
12855
|
"option-text-container": true,
|
|
12844
12856
|
"show-check-icon": showCheckIcon,
|
|
12857
|
+
"focus-border": (this.keyboardNav || this.initialOptionsListRender) &&
|
|
12858
|
+
option[this.valueField] === this.optionHighlighted &&
|
|
12859
|
+
!!option.disabled,
|
|
12845
12860
|
} }, (option.icon || !option.hideLabel) && (hAsync("div", { class: "option-label" }, option.icon && (hAsync("div", { class: "option-icon", innerHTML: sanitizeHTMLIconString(option.icon), "aria-hidden": "true" })), !option.hideLabel && (hAsync("ic-typography", { variant: "body", "aria-hidden": "true" }, option[this.labelField])))), option.description && (hAsync("ic-typography", { id: `${this.getOptionId(option[this.valueField])}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, hAsync("p", null, option.description))), option.element && (hAsync("div", { class: {
|
|
12846
12861
|
"option-element": option.icon || !option.hideLabel || option.description,
|
|
12847
12862
|
}, innerHTML: sanitizeHTMLString(option.element.component), "aria-hidden": "true" }))), showCheckIcon && (hAsync("span", { class: "check-icon", innerHTML: checkIcon, "aria-hidden": "true" }))));
|
|
@@ -12853,8 +12868,18 @@ class Menu {
|
|
|
12853
12868
|
option: true,
|
|
12854
12869
|
"focused-option": isManualMode
|
|
12855
12870
|
? (keyboardNav || initialOptionsListRender) &&
|
|
12856
|
-
option[this.valueField] === optionHighlighted
|
|
12857
|
-
|
|
12871
|
+
option[this.valueField] === optionHighlighted &&
|
|
12872
|
+
!option.disabled
|
|
12873
|
+
: keyboardNav &&
|
|
12874
|
+
option[this.valueField] === optionHighlighted &&
|
|
12875
|
+
!option.disabled,
|
|
12876
|
+
"focus-disabled": isManualMode
|
|
12877
|
+
? (keyboardNav || initialOptionsListRender) &&
|
|
12878
|
+
option[this.valueField] === optionHighlighted &&
|
|
12879
|
+
!!option.disabled
|
|
12880
|
+
: keyboardNav &&
|
|
12881
|
+
option[this.valueField] === optionHighlighted &&
|
|
12882
|
+
!!option.disabled,
|
|
12858
12883
|
"last-recommended-option": !!(option.recommended &&
|
|
12859
12884
|
options[index + 1] &&
|
|
12860
12885
|
!options[index + 1].recommended),
|
|
@@ -13048,9 +13073,10 @@ class Menu {
|
|
|
13048
13073
|
}
|
|
13049
13074
|
render() {
|
|
13050
13075
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
13051
|
-
const
|
|
13076
|
+
const enabledOptionsCount = this.ungroupedOptions.filter((option) => !option.disabled).length;
|
|
13077
|
+
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === enabledOptionsCount ? "Clear" : "Select"} all`;
|
|
13052
13078
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
13053
|
-
return (hAsync(Host, { key: '
|
|
13079
|
+
return (hAsync(Host, { key: 'f2126f99757d13606827ea1eac7c08b023b97bae', class: {
|
|
13054
13080
|
"ic-menu-full-width": !!fullWidth,
|
|
13055
13081
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
13056
13082
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -13059,7 +13085,7 @@ class Menu {
|
|
|
13059
13085
|
[`ic-menu-${size}`]: true,
|
|
13060
13086
|
"ic-menu-open": open && options.length !== 0,
|
|
13061
13087
|
"ic-menu-multiple": multiSelect,
|
|
13062
|
-
} }, options.length !== 0 && (hAsync("ul", { key: '
|
|
13088
|
+
} }, options.length !== 0 && (hAsync("ul", { key: '9b41a2c0ab9d6b08dca829db341614b248675050', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", "aria-activedescendant": this.optionHighlighted
|
|
13063
13089
|
? this.getOptionId(this.optionHighlighted)
|
|
13064
13090
|
: undefined, tabindex: !this.allowMenuFocus
|
|
13065
13091
|
? "-1"
|
|
@@ -13091,7 +13117,7 @@ class Menu {
|
|
|
13091
13117
|
multiSelect &&
|
|
13092
13118
|
!isLoading &&
|
|
13093
13119
|
!hasTimedOut &&
|
|
13094
|
-
!hasNoResults && (hAsync("div", { key: '
|
|
13120
|
+
!hasNoResults && (hAsync("div", { key: '7440008eccba1fc099d09ae3916e0d186686d59e', class: "option-bar" }, hAsync("ic-typography", { key: '802bd46a5d028a541060eb4cc57c2c4607cb1b86' }, hAsync("p", { key: '17a482e5bbff099b44550f9800980a649a319358' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), hAsync("ic-button", { key: '5aa400fd2be98bc038400b699c33bd2b1814cb5d', 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)))));
|
|
13095
13121
|
}
|
|
13096
13122
|
get host() { return getElement(this); }
|
|
13097
13123
|
static get watchers() { return {
|
|
@@ -16982,11 +17008,11 @@ class Select {
|
|
|
16982
17008
|
if (filteredOptions.length > 0) {
|
|
16983
17009
|
const firstOption = filteredOptions[0];
|
|
16984
17010
|
if ("children" in firstOption) {
|
|
16985
|
-
if (firstOption.children) {
|
|
17011
|
+
if (firstOption.children && !firstOption.children[0].disabled) {
|
|
16986
17012
|
this.value = firstOption.children[0].value;
|
|
16987
17013
|
}
|
|
16988
17014
|
}
|
|
16989
|
-
else {
|
|
17015
|
+
else if (!("disabled" in firstOption) || !firstOption.disabled) {
|
|
16990
17016
|
this.value = firstOption.value;
|
|
16991
17017
|
}
|
|
16992
17018
|
}
|
|
@@ -17244,19 +17270,19 @@ class Select {
|
|
|
17244
17270
|
"loading" in menuOptions[0] ||
|
|
17245
17271
|
"timedOut" in menuOptions[0]));
|
|
17246
17272
|
renderHiddenInput(this.el, value, name || inputId, disabled);
|
|
17247
|
-
const ClearButton = () => (hAsync("ic-button", { key: '
|
|
17248
|
-
const NativeSelect = () => (hAsync("select", Object.assign({ key: '
|
|
17249
|
-
const SelectButton = () => (hAsync("div", { key: '
|
|
17273
|
+
const ClearButton = () => (hAsync("ic-button", { key: 'ccad95540b222ca1564e200453968c8077adb655', ref: (el) => (this.clearButton = el), id: "clear-button", "aria-label": this.searchable ? "Clear input" : "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onBlur: this.handleBlur, size: size, variant: "icon-tertiary" }));
|
|
17274
|
+
const NativeSelect = () => (hAsync("select", Object.assign({ key: '1eba8d0971230dd2ce06fcbb67a619d294ceb108', ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleNativeSelectKeyDown, form: form }, inheritedAttributes), hAsync("option", { key: 'd8063316a6856d82168c4cfa1810136b0314656d', value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => "children" in option && option.children ? (hAsync("optgroup", { label: option.label }, option.children.map((child) => this.renderNativeOption(child)))) : (this.renderNativeOption(option)))));
|
|
17275
|
+
const SelectButton = () => (hAsync("div", { key: 'a8bf449262637487d8ae452e7c105f44e7ca07c1', class: "select-container" }, hAsync("button", { key: '5eb82bb22aad88df86ec5f7c9b86e3fcf164ca0d', class: "select-input", role: "combobox", ref: (el) => (this.selectElement = el), id: inputId, "aria-label": `${label}, ${(multiple && value
|
|
17250
17276
|
? `${value.length} of ${this.flatOptions.length} selected, ${this.getLabelString()}`
|
|
17251
|
-
: this.getLabelString()) || placeholder}`, onClick: this.handleClick, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-activedescendant": ariaActiveDescendant }, hAsync("ic-typography", { key: '
|
|
17277
|
+
: this.getLabelString()) || placeholder}`, onClick: this.handleClick, "aria-describedby": describedBy, "aria-invalid": invalid ? "true" : "false", "aria-haspopup": "listbox", "aria-expanded": `${open}`, "aria-controls": menuId, "aria-required": `${required}`, disabled: disabled, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, "aria-activedescendant": ariaActiveDescendant }, hAsync("ic-typography", { key: '8264f4225215a94635061eb53b07a52eecc21628', variant: "body", class: {
|
|
17252
17278
|
"value-text": true,
|
|
17253
17279
|
"with-clear-button": !!isClearable,
|
|
17254
17280
|
placeholder: !value,
|
|
17255
|
-
} }, this.getLabelString()), hAsync("div", { key: '
|
|
17281
|
+
} }, this.getLabelString()), hAsync("div", { key: 'c731e218d0d7c9c22d77c5965880b1fe3e9ff14a', class: "select-input-end" }, isClearable && hAsync("div", { key: 'f4c4d4ec7ca9be93df55b14e3f0a8f4746f2e121', class: "divider" }), hAsync("span", { key: '248e311d560b9a47356bb70fe099327a1e259a8c', class: {
|
|
17256
17282
|
"expand-icon": true,
|
|
17257
17283
|
"expand-icon-open": open,
|
|
17258
|
-
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && hAsync(ClearButton, { key: '
|
|
17259
|
-
const SelectInput = () => (hAsync("div", { key: '
|
|
17284
|
+
}, innerHTML: Expand, "aria-hidden": "true" }))), isClearable && hAsync(ClearButton, { key: '76b7a404924c3cb50fbc9eedb632368ccf23fa29' }), hAsync("div", { key: 'b2fe5eaa7336f06d8155562ec7b88ca194c3c25f', "aria-live": "polite", "aria-atomic": "true", class: "aria-live-hidden-text" }, selectButtonAriaLiveText)));
|
|
17285
|
+
const SelectInput = () => (hAsync("div", { key: '6f8e044acc9a3bed5f9c1736c98af442c93a4080', class: "searchable-select-container" }, hAsync("input", { key: 'f1b88830e97efae75464871e1fcc210c34688687', class: {
|
|
17260
17286
|
"value-text": true,
|
|
17261
17287
|
"select-input": true,
|
|
17262
17288
|
"with-clear-button": !!searchableSelectInputValue,
|
|
@@ -17264,25 +17290,25 @@ class Select {
|
|
|
17264
17290
|
? ""
|
|
17265
17291
|
: value
|
|
17266
17292
|
? this.getLabelString()
|
|
17267
|
-
: searchableSelectInputValue || undefined, disabled: disabled, placeholder: placeholder, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, form: form }), isClearable && (hAsync("div", { key: '
|
|
17293
|
+
: searchableSelectInputValue || undefined, disabled: disabled, placeholder: placeholder, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, form: form }), isClearable && (hAsync("div", { key: '805b65e817893ea35ceef45df316fd6a8420de14', class: "clear-button-container" }, hAsync(ClearButton, { key: '4a4a3be1f63751d0ac92ee8ade48383c422d72df' }), hAsync("div", { key: 'b1810cb26626c0af8d3b88c05b1aef3b93ae3e85', class: "divider" }))), hAsync("span", { key: '2cc1c159480a01ac0028df8ca8d6fbf2c4b4f3cb', onMouseDown: this.handleExpandIconMouseDown, class: {
|
|
17268
17294
|
"expand-icon": true,
|
|
17269
17295
|
"expand-icon-open": open,
|
|
17270
|
-
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { key: '
|
|
17271
|
-
const ReadOnly = () => (hAsync("ic-typography", { key: '
|
|
17272
|
-
return (hAsync(Host, { key: '
|
|
17296
|
+
}, innerHTML: Expand, "aria-hidden": "true" }), hAsync("div", { key: 'b2cab9164c85d99b1f0f858aa2edba94b9b1bfbc', "aria-live": "polite", role: "status", class: "aria-live-hidden-text" }, selectInputAriaLiveText)));
|
|
17297
|
+
const ReadOnly = () => (hAsync("ic-typography", { key: '31d247dbf2ff3cc91e5a42a25c0dd5970c892349' }, hAsync("p", { key: '096b44388a6777f69721d396ecb6954dbb5bd982' }, this.getLabelString() === placeholder ? "" : this.getLabelString())));
|
|
17298
|
+
return (hAsync(Host, { key: '9fcaf3f3b71f02bca0bafe89ce2ea48ad044b881', class: {
|
|
17273
17299
|
"ic-select-disabled": disabled,
|
|
17274
17300
|
"ic-select-searchable": searchable,
|
|
17275
17301
|
[`ic-select-${size}`]: size !== "medium",
|
|
17276
17302
|
"ic-select-full-width": fullWidth,
|
|
17277
17303
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
17278
|
-
} }, hAsync("ic-input-container", { key: '
|
|
17304
|
+
} }, hAsync("ic-input-container", { key: '7b8b3b791f1314201942a6906bed7fc82de3d16e', readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { key: '193ed16c31d6082cc82a7fe0b7e85794b076313c', for: inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly }, hAsync("slot", { key: 'fcbdd1538668341d40b77fea35eb8260ccaaa40f', name: "helper-text", slot: "helper-text" }))), hAsync("ic-input-component-container", { key: 'b471c6303dba66e3bf55b1dc35c49e56b64c5fce', ref: (el) => (this.anchorEl = el), class: { "menu-open": open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, isSlotUsed(this.el, "icon") &&
|
|
17279
17305
|
!disabled &&
|
|
17280
|
-
(!readonly || !!value) && (hAsync("span", { key: '
|
|
17306
|
+
(!readonly || !!value) && (hAsync("span", { key: 'aab4faffaa8e5984822a11ecf4786e6d428f2d38', slot: "left-icon", class: {
|
|
17281
17307
|
readonly,
|
|
17282
17308
|
"has-value": !!value,
|
|
17283
|
-
} }, hAsync("slot", { key: '
|
|
17309
|
+
} }, hAsync("slot", { key: 'a3052ea357290195b322597e739962d6dd2475d2', name: "icon" }))), isMobileOrTablet() && this.useNativeSelectOnMobile && !multiple ? (hAsync(NativeSelect, null)) : readonly ? (hAsync(ReadOnly, null)) : !searchable ? (hAsync(SelectButton, null)) : (hAsync(SelectInput, null))), !(isMobileOrTablet() &&
|
|
17284
17310
|
this.useNativeSelectOnMobile &&
|
|
17285
|
-
!multiple) && (hAsync("ic-menu", { key: '
|
|
17311
|
+
!multiple) && (hAsync("ic-menu", { key: '442e9be50328f4f98350ed4941d37885c9fb75f2', ref: (el) => (this.menu = el), class: { "no-results": noOptions }, inputEl: searchable ? this.searchableSelectElement : this.selectElement, allowMenuFocus: false, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: open, options: this.getOptions(), value: multiple ? value : value, fullWidth: fullWidth, selectOnEnter: selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleSelectChange, onMenuOptionSelectAll: this.handleSelectAllChange, onTimeoutBlur: this.handleTimeoutBlur, onMenuOptionId: this.updateAriaActiveDescendant, onClick: this.setFocus, parentEl: this.el, activationType: searchable || multiple || selectOnEnter ? "manual" : "automatic", onRetryButtonClicked: this.handleRetry, closeOnSelect: !multiple, multiSelect: multiple, searchableSelect: searchable })), hAsync("ic-input-validation", { key: '93d96e72668c30c53daf8367a9eed5b975f49c05', class: {
|
|
17286
17312
|
"menu-open": open,
|
|
17287
17313
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "", for: inputId }))));
|
|
17288
17314
|
}
|
|
@@ -20863,7 +20889,7 @@ class TopNavigation {
|
|
|
20863
20889
|
*/
|
|
20864
20890
|
this.customMobileBreakpoint = DEVICE_SIZES.L;
|
|
20865
20891
|
/**
|
|
20866
|
-
* The URL to navigate to when the app title is clicked.
|
|
20892
|
+
* The URL to navigate to when the app title or app icon is clicked.
|
|
20867
20893
|
*/
|
|
20868
20894
|
this.href = "/";
|
|
20869
20895
|
/**
|
|
@@ -20886,6 +20912,9 @@ class TopNavigation {
|
|
|
20886
20912
|
* The version info to be displayed.
|
|
20887
20913
|
*/
|
|
20888
20914
|
this.version = "";
|
|
20915
|
+
/** If `true`, the app title will be hidden, but still accessible to screen readers.
|
|
20916
|
+
*/
|
|
20917
|
+
this.hideAppTitle = false;
|
|
20889
20918
|
this.checkSlots = () => {
|
|
20890
20919
|
this.hasAppIcon = isSlotUsed(this.el, "app-icon");
|
|
20891
20920
|
this.hasAppTitleSlot = isSlotUsed(this.el, "app-title");
|
|
@@ -21017,7 +21046,7 @@ class TopNavigation {
|
|
|
21017
21046
|
this.foregroundColor = detail.mode;
|
|
21018
21047
|
}
|
|
21019
21048
|
render() {
|
|
21020
|
-
const { appTitle, contentAligned, customMobileBreakpoint, deviceSize, el, foregroundColor, hasAppIcon, hasAppTitleSlot, hasFullWidthSearchBar, hasIconButtons, hasNavigation, hasSearchSlotContent, href, inline, menuButtonClick, mobileSearchBarVisible, navMenuVisible, searchButtonClickHandler, searchButtonMouseDownHandler, shortAppTitle, status, version, theme, } = this;
|
|
21049
|
+
const { appTitle, hideAppTitle, contentAligned, customMobileBreakpoint, deviceSize, el, foregroundColor, hasAppIcon, hasAppTitleSlot, hasFullWidthSearchBar, hasIconButtons, hasNavigation, hasSearchSlotContent, href, inline, menuButtonClick, mobileSearchBarVisible, navMenuVisible, searchButtonClickHandler, searchButtonMouseDownHandler, shortAppTitle, status, version, theme, } = this;
|
|
21021
21050
|
const hasStatus = status !== "";
|
|
21022
21051
|
const hasVersion = version !== "";
|
|
21023
21052
|
const hasMenuContent = hasNavigation || hasIconButtons || hasStatus || hasVersion;
|
|
@@ -21037,19 +21066,20 @@ class TopNavigation {
|
|
|
21037
21066
|
const attrs = Component == "a" && {
|
|
21038
21067
|
href: href,
|
|
21039
21068
|
};
|
|
21040
|
-
return (hAsync(Host, { key: '
|
|
21069
|
+
return (hAsync(Host, { key: 'dbb0dd3377419a8b10ada09db89524fadafc2af8', class: {
|
|
21041
21070
|
"fullwidth-searchbar": hasFullWidthSearchBar,
|
|
21042
21071
|
"mobile-mode": overMobileBreakpoint,
|
|
21043
21072
|
[IcBrandForegroundEnum.Dark]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
21044
21073
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
21045
|
-
} }, hAsync("div", { key: '
|
|
21046
|
-
(
|
|
21047
|
-
|
|
21074
|
+
} }, hAsync("div", { key: '2c1e4277d92bd9954765b50b3f78669aa1af8390', class: "top-navigation" }, hAsync("ic-section-container", { key: 'f667d16e1693cd8bf3c45cbddee6777a3f50e21f', aligned: contentAligned, "full-height": true }, hAsync("header", { key: '0b4e0c2a117f54395045cd8b36b1be11da00c1c5', role: "banner" }, hAsync("div", { key: '09614426ebe2917000f92339784df56a9470d3d8', class: "top-panel-container" }, hAsync("div", { key: 'bff8f5c059015150a6aed52717ddc454fb050ccb', class: "app-details-container" }, (hasTitle || hasAppTitleSlot) && (hAsync(Component, Object.assign({ key: 'fcd00d5a3dec584f9eb5e3fc89eb66fb1405f1f5', class: "title-link" }, attrs, { "aria-label": hideAppTitle ? `${appTitle}` : undefined }), hasAppIcon && (hAsync("div", { key: '68385821513eca595805f502519f8c11185f1be0', class: "app-icon-container", "aria-hidden": "true" }, hAsync("slot", { key: '9e69b0b4d827ca7b85c39f9a4697a463a51ea6d0', name: "app-icon" }))), !hideAppTitle &&
|
|
21075
|
+
(isSmallDeviceSize &&
|
|
21076
|
+
(!isEmptyString(shortAppTitle) || shortAppTitleSlot) ? (hAsync("ic-typography", { variant: "subtitle-small", "aria-label": (!hasAppTitleSlot || !shortAppTitleSlot) &&
|
|
21077
|
+
`${appTitle} (${shortAppTitle})` }, hAsync("h1", null, shortAppTitleSlot ? (hAsync("slot", { name: "short-app-title" })) : (shortAppTitle)))) : (hAsync("ic-typography", { variant: appTitleVariant }, hAsync("h1", { class: "title-wrap" }, hasAppTitleSlot ? (hAsync("slot", { name: "app-title" })) : (appTitle))))))), hasStatus && (hAsync("div", { key: 'c1f5c9745ff525f8fe55b339592cffed6c94fe59', class: "app-status" }, hAsync("ic-typography", { key: '3eb8bb15698aaca7e4653674238f1f8481f56cd6', "aria-label": "app tag", variant: "label-uppercase", class: "app-status-text" }, status))), hasVersion && (hAsync("div", { key: 'd87b68713d46e53679c98c9dffc31ba4c669472c', class: "app-version" }, hAsync("ic-typography", { key: 'e04e0521c929bb988c227d6c81569e09c47fae45', variant: "label", class: "app-version-text", "aria-label": "app version" }, version)))), (hasSearchSlotContent || hasMenuContent) && (hAsync("div", { key: '3a276b4d6bf6a27d420febf654f48fd5a54365b7', class: "search-menu-container" }, hAsync("div", { key: '34415f5be77023b8e4cfcb54bc04db4aefe62f9a', class: "search-actions-container" }, !overMobileBreakpoint ? (hAsync(Fragment, null, hAsync("slot", { name: "search" }), hasIconButtons && (hAsync("div", { class: "icon-buttons-container" }, hAsync("slot", { name: "buttons" }))))) : (hAsync(Fragment, null, hasSearchSlotContent && (hAsync("ic-button", { id: "search-toggle-button", ref: (el) => (this.mobileSearchButtonEl = el), onMouseDown: searchButtonMouseDownHandler, variant: "icon-tertiary", monochrome: true, size: searchButtonSize, "aria-label": mobileSearchButtonTitle, theme: foregroundColor, onClick: searchButtonClickHandler }, hAsync("slot", { name: "toggle-icon" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "#ffffff" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }))))), hasMenuContent && (hAsync("div", { class: "menu-button-container" }, hAsync("span", { id: "navigation-landmark-button-text", class: "navigation-landmark-button-text", "aria-hidden": "true" }, "Main navigation button"), hAsync("nav", { "aria-labelledby": "navigation-landmark-button-text", "aria-hidden": `${navMenuVisible}` }, hAsync("ic-button", { id: "menu-button", ref: (el) => (this.menuButtonEl = el), theme: foregroundColor, variant: "secondary", monochrome: true, "aria-expanded": "false", "aria-haspopup": "true", "aria-label": `Open ${hasNavigation ? "navigation" : "app"} menu`, size: menuSize, onClick: menuButtonClick }, "Menu", hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#ffffff", slot: "left-icon" }, hAsync("path", { d: "M0 0h24v24H0V0z", fill: "none" }), hAsync("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })))))))))))), mobileSearchBarVisible && (hAsync("div", { key: '8df188fb2b2c5f9ad4b83f775ac003c42c586c28', class: "search-bar-container" }, hAsync("slot", { key: '87c51c5a988a1666fabf77c0c322e24c38da06f7', name: "search" }))), hasNavigation && !overMobileBreakpoint && (hAsync("div", { key: '5e9a297d0d55c7668caef0381acea624c1730766', class: "navigation-tabs" }, hAsync("span", { key: '2711b4990964661e5aaf13217dfb4b59837ec56a', id: "navigation-landmark-text", class: "navigation-landmark-text", "aria-hidden": "true" }, "Main pages"), hAsync("nav", { key: 'f14341830688b0ec95b81f5c0a031d586b6737ea', "aria-labelledby": "navigation-landmark-text", class: "nav-panel-container" }, hAsync("ic-horizontal-scroll", { key: '1a018cab4bae42d13f8fe0e31ec1c94295e2e5bd',
|
|
21048
21078
|
// eslint-disable-next-line
|
|
21049
21079
|
// @ts-ignore
|
|
21050
|
-
monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: '
|
|
21080
|
+
monochrome: true, appearance: foregroundColor }, hAsync("ul", { key: 'c1afc90848573f75bb7091bfdaed21dd463b1964', class: "navigation-item-list", tabindex: "-1" }, hAsync("slot", { key: '7aae45b91ff85d637a13eacd96c4881a8f7d0366', name: "navigation" }))))))))), navMenuVisible && (hAsync("ic-navigation-menu", { key: '4281b4e7974114e4d9c99c977bcce5721426e915', version: version, status: status, class: {
|
|
21051
21081
|
inline,
|
|
21052
|
-
} }, hasIconButtons && (hAsync("div", { key: '
|
|
21082
|
+
} }, hasIconButtons && (hAsync("div", { key: '2895ff0177e5d71c36e1f2370667f8f97ab2a39b', class: "menu-buttons-slot", slot: "buttons" }, hAsync("slot", { key: '4ed99d20ae4afabc99c550d806932c5d6ea6411d', name: "buttons" }))), hAsync("ul", { key: '4446ad338421b13df915faee66bf960e325da631', slot: "navigation" }, hAsync("slot", { key: 'f67ac2fb347130bf0752ab27cd46ffcc14ef78fb', name: "navigation" }))))));
|
|
21053
21083
|
}
|
|
21054
21084
|
get el() { return getElement(this); }
|
|
21055
21085
|
static get watchers() { return {
|
|
@@ -21068,6 +21098,7 @@ class TopNavigation {
|
|
|
21068
21098
|
"status": [1],
|
|
21069
21099
|
"theme": [1],
|
|
21070
21100
|
"version": [1],
|
|
21101
|
+
"hideAppTitle": [4, "hide-app-title"],
|
|
21071
21102
|
"appTitle": [1, "app-title"],
|
|
21072
21103
|
"deviceSize": [32],
|
|
21073
21104
|
"foregroundColor": [32],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukic/web-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.27.0",
|
|
4
4
|
"description": "A web component UI library compiled with StencilJS",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/mi6/ic-ui-kit",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"dist/",
|
|
21
21
|
"loader/",
|
|
22
22
|
"hydrate/",
|
|
23
|
+
"components/",
|
|
23
24
|
"vscode-data.json"
|
|
24
25
|
],
|
|
25
26
|
"scripts": {
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@jest/types": "^29.6.3",
|
|
55
56
|
"@mdx-js/react": "^1.6.22",
|
|
56
57
|
"@open-wc/testing-helpers": "^2.0.2",
|
|
58
|
+
"@stencil/angular-output-target": "^1.1.1",
|
|
57
59
|
"@stencil/postcss": "^2.1.0",
|
|
58
60
|
"@stencil/react-output-target": "^0.5.3",
|
|
59
61
|
"@storybook/addon-a11y": "10.1.11",
|
|
@@ -91,5 +93,5 @@
|
|
|
91
93
|
"collection:main": "dist/collection/index.js",
|
|
92
94
|
"es2015": "dist/esm/index.mjs",
|
|
93
95
|
"es2017": "dist/esm/index.mjs",
|
|
94
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "cafac0f4819c3629fc9998f3e1d7aedb7943ea32"
|
|
95
97
|
}
|
package/vscode-data.json
CHANGED
|
@@ -5091,9 +5091,13 @@
|
|
|
5091
5091
|
"name": "custom-mobile-breakpoint",
|
|
5092
5092
|
"description": "Can set a custom breakpoint for the top navigation to switch to mobile mode.\nMust be one of our specified breakpoints in px: `0`, `576`, `768`, `992`, `1200`."
|
|
5093
5093
|
},
|
|
5094
|
+
{
|
|
5095
|
+
"name": "hide-app-title",
|
|
5096
|
+
"description": "If `true`, the app title will be hidden, but still accessible to screen readers."
|
|
5097
|
+
},
|
|
5094
5098
|
{
|
|
5095
5099
|
"name": "href",
|
|
5096
|
-
"description": "The URL to navigate to when the app title is clicked."
|
|
5100
|
+
"description": "The URL to navigate to when the app title or app icon is clicked."
|
|
5097
5101
|
},
|
|
5098
5102
|
{
|
|
5099
5103
|
"name": "inline",
|