@siemens/ix 5.0.0 → 5.1.1
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/READMEOSS.html +10 -10
- package/components/index.js +1 -1
- package/components/ix-action-card.js +1 -1
- package/components/ix-application-header.js +1 -1
- package/components/ix-application-switch-modal.js +1 -1
- package/components/ix-application.js +1 -1
- package/components/ix-avatar.js +1 -1
- package/components/ix-blind.js +1 -1
- package/components/ix-breadcrumb-item.js +1 -1
- package/components/ix-breadcrumb.js +1 -1
- package/components/ix-button.js +1 -1
- package/components/ix-card-accordion.js +1 -1
- package/components/ix-card-content.js +1 -1
- package/components/ix-card-list.js +1 -1
- package/components/ix-card-title.js +1 -1
- package/components/ix-card.js +1 -1
- package/components/ix-category-filter.js +1 -1
- package/components/ix-checkbox-group.js +1 -1
- package/components/ix-checkbox.js +1 -1
- package/components/ix-chip.js +1 -1
- package/components/ix-col.js +1 -1
- package/components/ix-content-header.js +1 -1
- package/components/ix-content.js +1 -1
- package/components/ix-css-grid-item.js +1 -1
- package/components/ix-css-grid.js +1 -1
- package/components/ix-custom-field.js +1 -1
- package/components/ix-date-dropdown.js +1 -1
- package/components/ix-date-input.js +1 -1
- package/components/ix-date-picker.js +1 -1
- package/components/ix-date-time-card.js +1 -1
- package/components/ix-datetime-input.js +1 -1
- package/components/ix-datetime-picker.js +1 -1
- package/components/ix-divider.js +1 -1
- package/components/ix-dropdown-button.js +1 -1
- package/components/ix-dropdown-header.js +1 -1
- package/components/ix-dropdown-item.js +1 -1
- package/components/ix-dropdown-quick-actions.js +1 -1
- package/components/ix-dropdown.js +1 -1
- package/components/ix-empty-state.js +1 -1
- package/components/ix-event-list-item.js +1 -1
- package/components/ix-event-list.js +1 -1
- package/components/ix-expanding-search.js +1 -1
- package/components/ix-field-label.js +1 -1
- package/components/ix-field-wrapper.js +1 -1
- package/components/ix-filter-chip.js +1 -1
- package/components/ix-flip-tile-content.js +1 -1
- package/components/ix-flip-tile.js +1 -1
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group-item.js +1 -1
- package/components/ix-group.js +1 -1
- package/components/ix-helper-text.js +1 -1
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +1 -1
- package/components/ix-input.js +1 -1
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +1 -1
- package/components/ix-layout-auto.js +1 -1
- package/components/ix-layout-grid.js +1 -1
- package/components/ix-link-button.js +1 -1
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +1 -1
- package/components/ix-menu-about.js +1 -1
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +1 -1
- package/components/ix-menu-category.js +1 -1
- package/components/ix-menu-expand-icon.js +1 -1
- package/components/ix-menu-item.js +1 -1
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu-settings.js +1 -1
- package/components/ix-menu.js +1 -1
- package/components/ix-message-bar.js +1 -1
- package/components/ix-modal-content.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-header.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +1 -1
- package/components/ix-number-input.js +1 -1
- package/components/ix-pagination.js +1 -1
- package/components/ix-pane-layout.js +1 -1
- package/components/ix-pane.js +1 -1
- package/components/ix-pill.js +1 -1
- package/components/ix-popover-content.d.ts +11 -0
- package/components/ix-popover-content.js +1 -0
- package/components/ix-popover-footer.d.ts +11 -0
- package/components/ix-popover-footer.js +1 -0
- package/components/ix-popover-header.d.ts +11 -0
- package/components/ix-popover-header.js +1 -0
- package/components/ix-popover-image.d.ts +11 -0
- package/components/ix-popover-image.js +1 -0
- package/components/ix-popover.d.ts +11 -0
- package/components/ix-popover.js +1 -0
- package/components/ix-progress-indicator.js +1 -1
- package/components/ix-push-card.js +1 -1
- package/components/ix-radio-group.js +1 -1
- package/components/ix-radio.js +1 -1
- package/components/ix-range-field.js +1 -1
- package/components/ix-row.js +1 -1
- package/components/ix-select-item.js +1 -1
- package/components/ix-select.js +1 -1
- package/components/ix-slider.js +1 -1
- package/components/ix-spinner.js +1 -1
- package/components/ix-split-button.js +1 -1
- package/components/ix-tab-item.js +1 -1
- package/components/ix-tab-panel.js +1 -1
- package/components/ix-tab-set.js +1 -1
- package/components/ix-tabs.js +1 -1
- package/components/ix-textarea.js +1 -1
- package/components/ix-tile.js +1 -1
- package/components/ix-time-input.js +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +1 -1
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle-button.js +1 -1
- package/components/ix-toggle.js +1 -1
- package/components/ix-tooltip.js +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +1 -1
- package/components/ix-typography.js +1 -1
- package/components/ix-upload.js +1 -1
- package/components/ix-workflow-step.js +1 -1
- package/components/ix-workflow-steps.js +1 -1
- package/components/{p-MZOpritx.js → p-1KOHyx-1.js} +1 -1
- package/{dist/siemens-ix/p-c350c5d0.entry.js → components/p-3VG6z9c3.js} +1 -1
- package/components/p-7HGOhDMX.js +1 -0
- package/components/p-BBCsPlPH.js +1 -0
- package/components/{p-_Uc7YwjU.js → p-BH2Yhp3V.js} +1 -1
- package/components/{p-uIG84RqI.js → p-BIcWFids.js} +1 -1
- package/components/p-BRoFUwzJ.js +1 -0
- package/components/{p-BE4QI9tD.js → p-BST8QY5w.js} +1 -1
- package/components/{p-B4Yxzuow.js → p-BWH03B1n.js} +1 -1
- package/components/{p-C-wf4kbs.js → p-BWknDysp.js} +1 -1
- package/components/{p-BcxPyyrm.js → p-BZgc6bzH.js} +1 -1
- package/components/p-B_MBGj0b.js +1 -0
- package/components/p-BbwShqw_.js +1 -0
- package/components/p-Bj_6nynP.js +1 -0
- package/components/p-BtSt9tC5.js +1 -0
- package/components/{p-DQql_9wo.js → p-BzFLbXmT.js} +1 -1
- package/components/{p-B5k8YVR0.js → p-C21npbUc.js} +1 -1
- package/components/p-C5UTTqsv.js +1 -0
- package/components/{p-VEcjhpT4.js → p-C7MRPZvZ.js} +1 -1
- package/components/{p-BwC_Hmai.js → p-CAH3dF6j.js} +1 -1
- package/{dist/siemens-ix/p-Dl_bUxb7.js → components/p-CApDAYIa.js} +1 -1
- package/components/{p-DTcUamMt.js → p-CHV-_J6i.js} +1 -1
- package/components/p-CNLoALIl.js +1 -0
- package/components/{p-DN2Mr91y.js → p-CTbTAb9U.js} +1 -1
- package/components/{p-JevOq-9X.js → p-CUvmGsh_.js} +1 -1
- package/components/{p-DUkuP1OH.js → p-Ca8JFa1v.js} +1 -1
- package/components/{p-wEbi9beJ.js → p-CbbabcAR.js} +1 -1
- package/components/p-CgHioxG-.js +1 -0
- package/components/{p-CuswfnZ5.js → p-CkIELF-1.js} +1 -1
- package/components/{p-CsP_r-y6.js → p-CuFZ7CXu.js} +1 -1
- package/components/p-Cvpz1Ji5.js +1 -0
- package/components/{p-DSpVcflZ.js → p-Czy7a3I4.js} +1 -1
- package/components/{p-DdMuwGlF.js → p-D1sONqtj.js} +1 -1
- package/components/p-D69Mojvn.js +1 -0
- package/components/{p-546lBshK.js → p-DKH7tPDu.js} +1 -1
- package/components/p-DLe8Pp58.js +1 -0
- package/components/{p-qsIASuyM.js → p-DM7ma3Eh.js} +1 -1
- package/components/{p-CVmLf9WY.js → p-DO3HtUke.js} +1 -1
- package/components/p-DT02jDB7.js +1 -0
- package/components/{p-CJ3dR7zd.js → p-DfdjJL6W.js} +1 -1
- package/components/{p-CcllZcv2.js → p-DjIyhGBC.js} +1 -1
- package/components/p-DkAUNod9.js +1 -0
- package/components/p-Dl_YKIKl.js +1 -0
- package/components/p-DtmgZu-S.js +1 -0
- package/components/p-DuMiVxY1.js +1 -0
- package/components/p-Dw_A3HUC.js +1 -0
- package/components/{p-By6x--zJ.js → p-Dwe6tWhq.js} +1 -1
- package/components/{p-W0q0WVKl.js → p-DwmHytZi.js} +1 -1
- package/components/p-DziPiOL3.js +1 -0
- package/components/{p-DfnCSsMy.js → p-GGleop6j.js} +1 -1
- package/components/p-GmOVROeD.js +1 -0
- package/components/p-LbnItC1h.js +1 -0
- package/components/p-R1AQtGdV.js +1 -0
- package/components/{p-zs7a2E3b.js → p-_f_q2Etu.js} +1 -1
- package/components/{p-Cf71L4Ol.js → p-baqpOH0g.js} +1 -1
- package/components/{p-C95SE6lT.js → p-f1jZqaUz.js} +1 -1
- package/components/p-olkZUb1j.js +1 -0
- package/components/{p-B1q6Xh9M.js → p-z19mjzlp.js} +1 -1
- package/dist/cjs/{a11y-C_6YiIMa.js → a11y-_XjpTo2w.js} +10 -0
- package/dist/cjs/{base-button-C-1izOSS.js → base-button-BP6iIMR7.js} +3 -3
- package/dist/cjs/{base-icon-button-BeXf6v9s.js → base-icon-button-BmiGQb9v.js} +2 -2
- package/dist/cjs/{component-CYtonfpw.js → component-DgA9FH-W.js} +2 -2
- package/dist/cjs/dropdown-controller-kBwdbfGD.js +99 -0
- package/dist/cjs/{focus-proxy-BCuVbpDb.js → focus-proxy-CjxFZupW.js} +6 -5
- package/dist/cjs/focus-trap-Be3N4ytz.js +310 -0
- package/dist/cjs/{focus-utilities-yx7wWjEO.js → focus-utilities-5SZMxJg4.js} +65 -23
- package/dist/cjs/{focus-visible.mixin-BU5Ql7d1.js → focus-visible.mixin-1V7Eldn_.js} +2 -2
- package/dist/cjs/{helper-text-util-CvfY1JxE.js → helper-text-util-BkHm7ofh.js} +3 -3
- package/dist/cjs/{index-Dw-NwUuT.js → index-CwJ-mkQd.js} +2 -2
- package/dist/cjs/{index-BKQkUbyE.js → index-DnclGKUw.js} +21 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{inherit-aria-attributes.mixin-Sl7J-OlO.js → inherit-aria-attributes.mixin-EyRU0cDO.js} +2 -2
- package/dist/cjs/{input-picker.mixin-EoIayQV9.js → input-picker.mixin-Cf82jV-C.js} +2 -2
- package/dist/cjs/{input.fc-CsACCdp7.js → input.fc-DM-hX3xb.js} +3 -3
- package/dist/cjs/ix-action-card.cjs.entry.js +5 -4
- package/dist/cjs/ix-application-header.cjs.entry.js +14 -14
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +5 -5
- package/dist/cjs/ix-application.cjs.entry.js +28 -13
- package/dist/cjs/ix-avatar_2.cjs.entry.js +9 -9
- package/dist/cjs/ix-blind.cjs.entry.js +9 -9
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +10 -10
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +8 -8
- package/dist/cjs/ix-button.cjs.entry.js +10 -10
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/ix-card-list.cjs.entry.js +8 -8
- package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-category-filter.cjs.entry.js +8 -8
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-checkbox.cjs.entry.js +20 -7
- package/dist/cjs/ix-chip.cjs.entry.js +11 -11
- package/dist/cjs/ix-col_4.cjs.entry.js +21 -23
- package/dist/cjs/ix-content-header.cjs.entry.js +5 -5
- package/dist/cjs/ix-content.cjs.entry.js +6 -6
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-css-grid.cjs.entry.js +2 -2
- package/dist/cjs/ix-custom-field.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +14 -14
- package/dist/cjs/ix-date-input.cjs.entry.js +16 -15
- package/dist/cjs/ix-date-picker.cjs.entry.js +13 -13
- package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
- package/dist/cjs/ix-datetime-input.cjs.entry.js +15 -14
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +6 -6
- package/dist/cjs/ix-divider.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +11 -11
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +14 -13
- package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ix-event-list-item.cjs.entry.js +7 -7
- package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
- package/dist/cjs/ix-expanding-search.cjs.entry.js +6 -6
- package/dist/cjs/ix-field-label_2.cjs.entry.js +12 -12
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +30 -13
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -6
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-group.cjs.entry.js +11 -11
- package/dist/cjs/ix-helper-text.cjs.entry.js +6 -6
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +12 -12
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +11 -11
- package/dist/cjs/ix-input.cjs.entry.js +11 -13
- package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
- package/dist/cjs/ix-kpi.cjs.entry.js +5 -5
- package/dist/cjs/ix-layout-auto.cjs.entry.js +2 -2
- package/dist/cjs/ix-link-button.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +9 -9
- package/dist/cjs/ix-menu-about.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +6 -6
- package/dist/cjs/ix-menu-category.cjs.entry.js +255 -38
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +8 -8
- package/dist/cjs/ix-menu-item.cjs.entry.js +221 -32
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-settings.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu.cjs.entry.js +195 -18
- package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +6 -6
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +6 -6
- package/dist/cjs/ix-number-input.cjs.entry.js +11 -11
- package/dist/cjs/ix-pagination.cjs.entry.js +7 -7
- package/dist/cjs/ix-pane-layout.cjs.entry.js +2 -2
- package/dist/cjs/ix-pane.cjs.entry.js +102 -25
- package/dist/cjs/ix-pill_4.cjs.entry.js +23 -23
- package/dist/cjs/ix-popover-content.cjs.entry.js +26 -0
- package/dist/cjs/ix-popover-footer.cjs.entry.js +26 -0
- package/dist/cjs/ix-popover-header.cjs.entry.js +70 -0
- package/dist/cjs/ix-popover-image.cjs.entry.js +33 -0
- package/dist/cjs/ix-popover.cjs.entry.js +996 -0
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +5 -5
- package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
- package/dist/cjs/ix-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ix-radio.cjs.entry.js +6 -6
- package/dist/cjs/ix-range-field.cjs.entry.js +7 -7
- package/dist/cjs/ix-select.cjs.entry.js +399 -26
- package/dist/cjs/ix-slider.cjs.entry.js +10 -10
- package/dist/cjs/ix-split-button.cjs.entry.js +7 -7
- package/dist/cjs/ix-tab-panel.cjs.entry.js +5 -5
- package/dist/cjs/ix-textarea.cjs.entry.js +7 -7
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-input.cjs.entry.js +16 -15
- package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/ix-toast.cjs.entry.js +4 -4
- package/dist/cjs/ix-toggle-button.cjs.entry.js +10 -10
- package/dist/cjs/ix-toggle.cjs.entry.js +10 -10
- package/dist/cjs/ix-tooltip.cjs.entry.js +12 -3
- package/dist/cjs/ix-tree-item.cjs.entry.js +6 -6
- package/dist/cjs/ix-tree.cjs.entry.js +4 -3
- package/dist/cjs/ix-typography.cjs.entry.js +2 -2
- package/dist/cjs/ix-upload.cjs.entry.js +6 -6
- package/dist/cjs/ix-workflow-step.cjs.entry.js +5 -5
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
- package/dist/cjs/{listener-BafrcTaM.js → listener-ClEsCfX0.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{menu-service-D_QsHUgR.js → menu-service-DBg-0e5W.js} +13 -2
- package/dist/cjs/path-utils-CQKWhbQW.js +169 -0
- package/dist/cjs/{shadow-dom-BG8VqeIu.js → shadow-dom-BL5F7RFW.js} +13 -0
- package/dist/cjs/siemens-ix.cjs.js +3 -3
- package/dist/cjs/{tab.mixin-DObUK6A4.js → tab.mixin-C1KwKb64.js} +1 -1
- package/dist/cjs/uuid-Bo2QzEg9.js +15 -0
- package/dist/cjs/{validation-Dier-uPA.js → validation-DJaUH-UR.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -1
- package/dist/collection/components/action-card/action-card.css +18 -0
- package/dist/collection/components/action-card/action-card.js +5 -1
- package/dist/collection/components/application/application.js +32 -10
- package/dist/collection/components/application-header/application-header.js +10 -9
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.css +2 -2
- package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +2 -2
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +3 -0
- package/dist/collection/components/blind/blind.css +27 -0
- package/dist/collection/components/blind/blind.js +10 -5
- package/dist/collection/components/breadcrumb/breadcrumb.js +5 -2
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +3 -3
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +4 -1
- package/dist/collection/components/button/base-button.js +1 -1
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/button/button.js +5 -2
- package/dist/collection/components/card/card.js +6 -2
- package/dist/collection/components/card-accordion/card-accordion.js +7 -4
- package/dist/collection/components/card-content/card-content.js +4 -1
- package/dist/collection/components/card-list/card-list.css +1 -1
- package/dist/collection/components/card-list/card-list.js +9 -6
- package/dist/collection/components/card-title/card-title.js +2 -1
- package/dist/collection/components/category-filter/category-filter.css +2 -2
- package/dist/collection/components/category-filter/category-filter.js +3 -3
- package/dist/collection/components/checkbox/checkbox.css +13 -4
- package/dist/collection/components/checkbox/checkbox.js +22 -3
- package/dist/collection/components/checkbox-group/checkbox-group.js +3 -2
- package/dist/collection/components/chip/chip.js +7 -4
- package/dist/collection/components/col/col.js +5 -2
- package/dist/collection/components/content/content.css +2 -2
- package/dist/collection/components/content/content.js +4 -3
- package/dist/collection/components/content-header/content-header.js +4 -4
- package/dist/collection/components/css-grid/css-grid-item.js +2 -1
- package/dist/collection/components/css-grid/css-grid.js +2 -1
- package/dist/collection/components/custom-field/custom-field.js +4 -1
- package/dist/collection/components/date-dropdown/date-dropdown.css +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +5 -5
- package/dist/collection/components/date-input/date-input.css +1 -0
- package/dist/collection/components/date-input/date-input.js +5 -4
- package/dist/collection/components/date-picker/date-picker.css +4 -0
- package/dist/collection/components/date-picker/date-picker.js +7 -7
- package/dist/collection/components/date-time-card/date-time-card.js +2 -2
- package/dist/collection/components/datetime-input/datetime-input.css +1 -0
- package/dist/collection/components/datetime-input/datetime-input.js +3 -3
- package/dist/collection/components/datetime-picker/datetime-picker.js +3 -3
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-controller.js +20 -82
- package/dist/collection/components/dropdown/dropdown.js +5 -2
- package/dist/collection/components/dropdown-button/dropdown-button.js +10 -6
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +6 -3
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +4 -1
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/event-list/event-list.js +5 -2
- package/dist/collection/components/event-list-item/event-list-item.js +7 -4
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/field-label/field-label.js +5 -2
- package/dist/collection/components/field-wrapper/field-wrapper.js +2 -2
- package/dist/collection/components/filter-chip/filter-chip.css +3 -1
- package/dist/collection/components/filter-chip/filter-chip.js +34 -1
- package/dist/collection/components/flip-tile/flip-tile.js +8 -3
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +4 -1
- package/dist/collection/components/group/group-context-menu.js +4 -1
- package/dist/collection/components/group/group.js +14 -8
- package/dist/collection/components/group-item/group-item.js +3 -0
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +2 -2
- package/dist/collection/components/icon-button/icon-button.js +2 -2
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +2 -2
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +2 -2
- package/dist/collection/components/input/input.css +3 -2
- package/dist/collection/components/input/input.js +5 -7
- package/dist/collection/components/input/number-input.css +1 -0
- package/dist/collection/components/input/number-input.js +5 -5
- package/dist/collection/components/input/textarea.css +1 -0
- package/dist/collection/components/input/textarea.js +2 -2
- package/dist/collection/components/ix-playground/ix-playground.js +1 -1
- package/dist/collection/components/key-value/key-value.js +1 -1
- package/dist/collection/components/key-value-list/key-value-list.js +4 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/layout-auto/layout-auto.js +4 -1
- package/dist/collection/components/layout-grid/layout-grid.js +5 -2
- package/dist/collection/components/link-button/link-button.js +6 -3
- package/dist/collection/components/menu/menu-expand-icon.css +1 -1
- package/dist/collection/components/menu/menu-expand-icon.js +3 -3
- package/dist/collection/components/menu/menu.css +21 -3
- package/dist/collection/components/menu/menu.js +246 -14
- package/dist/collection/components/menu-about/menu-about.js +5 -2
- package/dist/collection/components/menu-about-item/menu-about-item.js +2 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +7 -4
- package/dist/collection/components/menu-avatar/menu-avatar.js +5 -2
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +125 -32
- package/dist/collection/components/menu-item/menu-item.js +118 -20
- package/dist/collection/components/menu-settings/menu-settings.js +5 -2
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +2 -1
- package/dist/collection/components/message-bar/message-bar.js +4 -1
- package/dist/collection/components/modal/modal.js +6 -3
- package/dist/collection/components/modal-content/modal-content.js +4 -1
- package/dist/collection/components/modal-footer/modal-footer.js +4 -1
- package/dist/collection/components/modal-header/modal-header.css +1 -0
- package/dist/collection/components/modal-header/modal-header.js +4 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/pagination/pagination.js +2 -2
- package/dist/collection/components/pane/pane.css +4 -0
- package/dist/collection/components/pane/pane.js +120 -21
- package/dist/collection/components/pane-layout/pane-layout.js +9 -1
- package/dist/collection/components/pill/pill.js +7 -4
- package/dist/collection/components/popover/popover-controller.js +161 -0
- package/dist/collection/components/popover/popover.css +75 -0
- package/dist/collection/components/popover/popover.js +940 -0
- package/dist/collection/components/popover/test/popover.constants.js +19 -0
- package/dist/collection/components/popover/test/popover.fixtures.js +111 -0
- package/dist/collection/components/popover/test/popover.page.js +318 -0
- package/dist/collection/components/popover-content/popover-content.css +81 -0
- package/dist/collection/components/popover-content/popover-content.js +67 -0
- package/dist/collection/components/popover-footer/popover-footer.css +91 -0
- package/dist/collection/components/popover-footer/popover-footer.js +68 -0
- package/dist/collection/components/popover-header/popover-header.css +105 -0
- package/dist/collection/components/popover-header/popover-header.js +205 -0
- package/dist/collection/components/popover-image/popover-image.css +80 -0
- package/dist/collection/components/popover-image/popover-image.js +96 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +5 -3
- package/dist/collection/components/push-card/push-card.js +5 -1
- package/dist/collection/components/radio/radio.js +4 -3
- package/dist/collection/components/radio-group/radio-group.js +3 -2
- package/dist/collection/components/range-field/range-field.js +5 -2
- package/dist/collection/components/row/row.js +4 -1
- package/dist/collection/components/select/select.css +25 -3
- package/dist/collection/components/select/select.js +426 -18
- package/dist/collection/components/select-item/select-item.css +5 -0
- package/dist/collection/components/select-item/select-item.js +33 -3
- package/dist/collection/components/slider/slider.js +6 -6
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +4 -1
- package/dist/collection/components/tab-item/tab-item.js +8 -5
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tab-set/tab-set.js +1 -1
- package/dist/collection/components/tabs/tabs.js +8 -5
- package/dist/collection/components/tile/tile.js +10 -4
- package/dist/collection/components/time-input/time-input.css +1 -0
- package/dist/collection/components/time-input/time-input.js +5 -4
- package/dist/collection/components/time-picker/time-picker.js +17 -19
- package/dist/collection/components/toast/toast-container.js +5 -2
- package/dist/collection/components/toast/toast.js +6 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +5 -2
- package/dist/collection/components/tooltip/tooltip.js +12 -2
- package/dist/collection/components/tree/tree.js +4 -1
- package/dist/collection/components/tree-item/tree-item.js +7 -4
- package/dist/collection/components/typography/typography.js +4 -1
- package/dist/collection/components/upload/upload.js +3 -3
- package/dist/collection/components/utils/a11y.js +9 -0
- package/dist/collection/components/utils/focus/focus-proxy.js +5 -4
- package/dist/collection/components/utils/focus/focus-trap.js +286 -69
- package/dist/collection/components/utils/focus/focus-utilities.js +65 -23
- package/dist/collection/components/utils/menu-service/menu-service.js +13 -2
- package/dist/collection/components/utils/nested-overlay/hierarchy.js +44 -0
- package/dist/collection/components/utils/nested-overlay/index.js +11 -0
- package/dist/collection/components/utils/nested-overlay/nested-overlay-stack.js +101 -0
- package/dist/collection/components/utils/nested-overlay/path-utils.js +17 -0
- package/dist/collection/components/utils/nested-overlay/types.js +1 -0
- package/dist/collection/components/utils/shadow-dom.js +12 -0
- package/dist/collection/components/workflow-step/workflow-step.js +7 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +4 -1
- package/dist/esm/{a11y-B5k8YVR0.js → a11y-C21npbUc.js} +10 -1
- package/dist/esm/{base-button-hppF0uUM.js → base-button-DZdtpLxn.js} +3 -3
- package/dist/esm/{base-icon-button-_xVULsPr.js → base-icon-button-DufFLJC-.js} +2 -2
- package/dist/esm/{component-Chfbghog.js → component-DqJSHc3A.js} +2 -2
- package/dist/esm/dropdown-controller-Jfg3ZWk6.js +96 -0
- package/dist/esm/{focus-proxy-BgLEsVE2.js → focus-proxy-BQyoX-Kl.js} +6 -5
- package/dist/esm/focus-trap-IK9ialav.js +304 -0
- package/dist/esm/{focus-utilities-DnaItyVQ.js → focus-utilities-6ZxKp7Jn.js} +66 -24
- package/dist/esm/{focus-visible.mixin-CoMZ6z5Z.js → focus-visible.mixin-CaRK3Ex_.js} +2 -2
- package/dist/esm/{helper-text-util-AEl-1QU6.js → helper-text-util-D0LEFZuB.js} +3 -3
- package/dist/esm/{index-Cl7fhG1I.js → index-DgUGsIlh.js} +2 -2
- package/dist/esm/{index-Ca5WUunf.js → index-EBgS4zhE.js} +21 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{inherit-aria-attributes.mixin-CBuZQFB-.js → inherit-aria-attributes.mixin-nCmPujqf.js} +2 -2
- package/dist/esm/{input-picker.mixin-Bo_sZpC4.js → input-picker.mixin-DudWFH-e.js} +2 -2
- package/dist/esm/{input.fc-DjE-oOZc.js → input.fc-CE3kP-L_.js} +3 -3
- package/dist/esm/ix-action-card.entry.js +5 -4
- package/dist/esm/ix-application-header.entry.js +14 -14
- package/dist/esm/ix-application-switch-modal.entry.js +5 -5
- package/dist/esm/ix-application.entry.js +28 -13
- package/dist/esm/ix-avatar_2.entry.js +9 -9
- package/dist/esm/ix-blind.entry.js +9 -9
- package/dist/esm/ix-breadcrumb-item.entry.js +10 -10
- package/dist/esm/ix-breadcrumb.entry.js +8 -8
- package/dist/esm/ix-button.entry.js +10 -10
- package/dist/esm/ix-card-accordion_2.entry.js +7 -7
- package/dist/esm/ix-card-list.entry.js +8 -8
- package/dist/esm/ix-card_2.entry.js +4 -4
- package/dist/esm/ix-category-filter.entry.js +8 -8
- package/dist/esm/ix-checkbox-group.entry.js +4 -4
- package/dist/esm/ix-checkbox.entry.js +20 -7
- package/dist/esm/ix-chip.entry.js +11 -11
- package/dist/esm/ix-col_4.entry.js +21 -23
- package/dist/esm/ix-content-header.entry.js +5 -5
- package/dist/esm/ix-content.entry.js +6 -6
- package/dist/esm/ix-css-grid-item.entry.js +2 -2
- package/dist/esm/ix-css-grid.entry.js +2 -2
- package/dist/esm/ix-custom-field.entry.js +3 -3
- package/dist/esm/ix-date-dropdown.entry.js +14 -14
- package/dist/esm/ix-date-input.entry.js +16 -15
- package/dist/esm/ix-date-picker.entry.js +13 -13
- package/dist/esm/ix-date-time-card.entry.js +3 -3
- package/dist/esm/ix-datetime-input.entry.js +15 -14
- package/dist/esm/ix-datetime-picker.entry.js +6 -6
- package/dist/esm/ix-divider.entry.js +2 -2
- package/dist/esm/ix-dropdown-button.entry.js +11 -11
- package/dist/esm/ix-dropdown-header.entry.js +2 -2
- package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
- package/dist/esm/ix-dropdown_2.entry.js +14 -13
- package/dist/esm/ix-empty-state.entry.js +2 -2
- package/dist/esm/ix-event-list-item.entry.js +7 -7
- package/dist/esm/ix-event-list.entry.js +3 -3
- package/dist/esm/ix-expanding-search.entry.js +6 -6
- package/dist/esm/ix-field-label_2.entry.js +12 -12
- package/dist/esm/ix-filter-chip_2.entry.js +30 -13
- package/dist/esm/ix-flip-tile-content.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +6 -6
- package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
- package/dist/esm/ix-group.entry.js +11 -11
- package/dist/esm/ix-helper-text.entry.js +6 -6
- package/dist/esm/ix-icon-button_2.entry.js +12 -12
- package/dist/esm/ix-icon-toggle-button.entry.js +11 -11
- package/dist/esm/ix-input.entry.js +11 -13
- package/dist/esm/ix-key-value-list.entry.js +2 -2
- package/dist/esm/ix-key-value.entry.js +2 -2
- package/dist/esm/ix-kpi.entry.js +5 -5
- package/dist/esm/ix-layout-auto.entry.js +2 -2
- package/dist/esm/ix-link-button.entry.js +5 -5
- package/dist/esm/ix-menu-about-item.entry.js +3 -3
- package/dist/esm/ix-menu-about-news.entry.js +9 -9
- package/dist/esm/ix-menu-about.entry.js +4 -4
- package/dist/esm/ix-menu-avatar.entry.js +6 -6
- package/dist/esm/ix-menu-category.entry.js +255 -38
- package/dist/esm/ix-menu-expand-icon.entry.js +8 -8
- package/dist/esm/ix-menu-item.entry.js +220 -31
- package/dist/esm/ix-menu-settings-item.entry.js +3 -3
- package/dist/esm/ix-menu-settings.entry.js +4 -4
- package/dist/esm/ix-menu.entry.js +195 -18
- package/dist/esm/ix-message-bar.entry.js +3 -3
- package/dist/esm/ix-modal-content_2.entry.js +6 -6
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +6 -6
- package/dist/esm/ix-number-input.entry.js +11 -11
- package/dist/esm/ix-pagination.entry.js +7 -7
- package/dist/esm/ix-pane-layout.entry.js +2 -2
- package/dist/esm/ix-pane.entry.js +102 -25
- package/dist/esm/ix-pill_4.entry.js +23 -23
- package/dist/esm/ix-popover-content.entry.js +24 -0
- package/dist/esm/ix-popover-footer.entry.js +24 -0
- package/dist/esm/ix-popover-header.entry.js +68 -0
- package/dist/esm/ix-popover-image.entry.js +31 -0
- package/dist/esm/ix-popover.entry.js +994 -0
- package/dist/esm/ix-progress-indicator.entry.js +5 -5
- package/dist/esm/ix-push-card.entry.js +2 -2
- package/dist/esm/ix-radio-group.entry.js +4 -4
- package/dist/esm/ix-radio.entry.js +6 -6
- package/dist/esm/ix-range-field.entry.js +7 -7
- package/dist/esm/ix-select.entry.js +399 -26
- package/dist/esm/ix-slider.entry.js +10 -10
- package/dist/esm/ix-split-button.entry.js +7 -7
- package/dist/esm/ix-tab-panel.entry.js +5 -5
- package/dist/esm/ix-textarea.entry.js +7 -7
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-time-input.entry.js +16 -15
- package/dist/esm/ix-toast-container.entry.js +3 -3
- package/dist/esm/ix-toast.entry.js +4 -4
- package/dist/esm/ix-toggle-button.entry.js +10 -10
- package/dist/esm/ix-toggle.entry.js +10 -10
- package/dist/esm/ix-tooltip.entry.js +12 -3
- package/dist/esm/ix-tree-item.entry.js +6 -6
- package/dist/esm/ix-tree.entry.js +4 -3
- package/dist/esm/ix-typography.entry.js +2 -2
- package/dist/esm/ix-upload.entry.js +6 -6
- package/dist/esm/ix-workflow-step.entry.js +5 -5
- package/dist/esm/ix-workflow-steps.entry.js +2 -2
- package/dist/esm/{listener-Dk6XGheN.js → listener-BjluJgvO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{menu-service-DTIYRV47.js → menu-service-DYOa8RGJ.js} +13 -2
- package/dist/esm/path-utils-CNLoALIl.js +165 -0
- package/dist/esm/{shadow-dom-BIe8Nw9M.js → shadow-dom-BClJdFQP.js} +13 -1
- package/dist/esm/siemens-ix.js +4 -4
- package/dist/esm/{tab.mixin-2hU1i4Yk.js → tab.mixin-BjAM99yM.js} +1 -1
- package/dist/esm/uuid-D3T7Lr4G.js +13 -0
- package/dist/esm/{validation-BT5aAuSO.js → validation-VVt5EFy0.js} +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-03215d55.entry.js +1 -0
- package/dist/siemens-ix/{p-3f752a9c.entry.js → p-04a42013.entry.js} +1 -1
- package/dist/siemens-ix/p-0b24f8d0.entry.js +1 -0
- package/dist/siemens-ix/{p-222881a1.entry.js → p-0e74e65c.entry.js} +1 -1
- package/dist/siemens-ix/{p-dedd5fc0.entry.js → p-0fd5baf1.entry.js} +1 -1
- package/dist/siemens-ix/p-18cae4df.entry.js +1 -0
- package/dist/siemens-ix/p-1a6b7e92.entry.js +1 -0
- package/dist/siemens-ix/p-1cd9a45a.entry.js +1 -0
- package/dist/siemens-ix/{p-f847a799.entry.js → p-1ea183fb.entry.js} +1 -1
- package/dist/siemens-ix/{p-65b8ad90.entry.js → p-21b09017.entry.js} +1 -1
- package/dist/siemens-ix/{p-782fb465.entry.js → p-227ba1b8.entry.js} +1 -1
- package/dist/siemens-ix/{p-d440cd94.entry.js → p-2753ed4e.entry.js} +1 -1
- package/dist/siemens-ix/{p-04bbcd53.entry.js → p-2eb094c0.entry.js} +1 -1
- package/dist/siemens-ix/{p-21c0d22c.entry.js → p-34eaf010.entry.js} +1 -1
- package/dist/siemens-ix/p-39fb1c9e.entry.js +1 -0
- package/dist/siemens-ix/p-3bb5600a.entry.js +1 -0
- package/dist/siemens-ix/p-3bfa4bbc.entry.js +1 -0
- package/dist/siemens-ix/p-3f5ac9f7.entry.js +1 -0
- package/dist/siemens-ix/p-3pidUFd-.js +1 -0
- package/dist/siemens-ix/{p-7a83e693.entry.js → p-4154d18a.entry.js} +1 -1
- package/dist/siemens-ix/{p-232da11d.entry.js → p-427f85c3.entry.js} +1 -1
- package/dist/siemens-ix/{p-8493e35e.entry.js → p-45106215.entry.js} +1 -1
- package/dist/siemens-ix/{p-c56497da.entry.js → p-4ceb3543.entry.js} +1 -1
- package/dist/siemens-ix/p-4d179abe.entry.js +1 -0
- package/dist/siemens-ix/p-4faa3c03.entry.js +1 -0
- package/dist/siemens-ix/{p-85ce0a9f.entry.js → p-50a44cb9.entry.js} +1 -1
- package/dist/siemens-ix/{p-986142f0.entry.js → p-52096875.entry.js} +1 -1
- package/dist/siemens-ix/p-54a22a58.entry.js +1 -0
- package/dist/siemens-ix/p-57678563.entry.js +1 -0
- package/dist/siemens-ix/p-5d7ede96.entry.js +1 -0
- package/dist/siemens-ix/p-5ff289c7.entry.js +1 -0
- package/dist/siemens-ix/p-601224bd.entry.js +1 -0
- package/dist/siemens-ix/p-6ZxKp7Jn.js +1 -0
- package/dist/siemens-ix/p-6aa5adb4.entry.js +1 -0
- package/dist/siemens-ix/p-703c7e7c.entry.js +1 -0
- package/dist/siemens-ix/{p-756c8779.entry.js → p-71a31d92.entry.js} +1 -1
- package/dist/siemens-ix/{p-0de68f63.entry.js → p-71a5fae5.entry.js} +1 -1
- package/dist/siemens-ix/{p-edb738d9.entry.js → p-71feb871.entry.js} +1 -1
- package/dist/siemens-ix/p-747d14a2.entry.js +1 -0
- package/dist/siemens-ix/{p-2bef3c58.entry.js → p-7655c4c2.entry.js} +1 -1
- package/dist/siemens-ix/p-7899597f.entry.js +1 -0
- package/dist/siemens-ix/p-7c120d09.entry.js +1 -0
- package/dist/siemens-ix/p-8164a98b.entry.js +1 -0
- package/dist/siemens-ix/p-83f4cd88.entry.js +1 -0
- package/dist/siemens-ix/p-8658717f.entry.js +1 -0
- package/dist/siemens-ix/{p-38cb18b4.entry.js → p-8900e229.entry.js} +1 -1
- package/dist/siemens-ix/{p-d798773f.entry.js → p-8b839f30.entry.js} +1 -1
- package/dist/siemens-ix/p-8cea823b.entry.js +1 -0
- package/dist/siemens-ix/{p-f107a580.entry.js → p-8d535dc9.entry.js} +1 -1
- package/dist/siemens-ix/p-8f72a218.entry.js +1 -0
- package/dist/siemens-ix/{p-68eb9150.entry.js → p-95e8951f.entry.js} +1 -1
- package/dist/siemens-ix/p-96a3b3df.entry.js +1 -0
- package/dist/siemens-ix/p-9f2905df.entry.js +1 -0
- package/dist/siemens-ix/p-B0y5hnj5.js +1 -0
- package/dist/siemens-ix/p-B4oiZyZC.js +1 -0
- package/dist/siemens-ix/p-BClJdFQP.js +1 -0
- package/dist/siemens-ix/p-BKuq0po2.js +1 -0
- package/{components/p-Dx8kFukG.js → dist/siemens-ix/p-BWgttsqY.js} +1 -1
- package/dist/siemens-ix/p-BbwShqw_.js +1 -0
- package/dist/siemens-ix/{p-B5k8YVR0.js → p-C21npbUc.js} +1 -1
- package/dist/siemens-ix/{p-DnCbHs-d.js → p-C518yBiI.js} +1 -1
- package/dist/siemens-ix/p-CNLoALIl.js +1 -0
- package/dist/siemens-ix/{p-BgL7Z4IG.js → p-CXbob2Ew.js} +1 -1
- package/dist/siemens-ix/p-D3T7Lr4G.js +1 -0
- package/dist/siemens-ix/p-DT02jDB7.js +1 -0
- package/dist/siemens-ix/p-DVJeDueL.js +1 -0
- package/dist/siemens-ix/p-DgUGsIlh.js +1 -0
- package/dist/siemens-ix/p-HpQs38Y0.js +1 -0
- package/dist/siemens-ix/p-a25f267b.entry.js +1 -0
- package/dist/siemens-ix/p-a2aa806e.entry.js +1 -0
- package/dist/siemens-ix/{p-6fb379fb.entry.js → p-a44b1452.entry.js} +1 -1
- package/dist/siemens-ix/p-a7f5e11e.entry.js +1 -0
- package/dist/siemens-ix/{p-40a26154.entry.js → p-a8911648.entry.js} +1 -1
- package/dist/siemens-ix/p-aa904521.entry.js +1 -0
- package/dist/siemens-ix/p-ab202c45.entry.js +1 -0
- package/dist/siemens-ix/p-ac804eb2.entry.js +1 -0
- package/dist/siemens-ix/p-af808244.entry.js +1 -0
- package/dist/siemens-ix/{p-a5d60068.entry.js → p-b004e845.entry.js} +1 -1
- package/dist/siemens-ix/p-b2fe56c7.entry.js +1 -0
- package/dist/siemens-ix/p-b534dadd.entry.js +1 -0
- package/dist/siemens-ix/{p-5b3f7baa.entry.js → p-b63d7f36.entry.js} +1 -1
- package/dist/siemens-ix/{p-ed2aea43.entry.js → p-b7570885.entry.js} +1 -1
- package/dist/siemens-ix/{p-fcac86a5.entry.js → p-bc0f5cbe.entry.js} +1 -1
- package/dist/siemens-ix/{p-12750b7b.entry.js → p-bddd1cca.entry.js} +1 -1
- package/dist/siemens-ix/{p-2d7e415f.entry.js → p-bfb758cb.entry.js} +1 -1
- package/dist/siemens-ix/p-c0c6d772.entry.js +1 -0
- package/dist/siemens-ix/p-c0d56b86.entry.js +1 -0
- package/dist/siemens-ix/{p-bd60b9fe.entry.js → p-c1c209f6.entry.js} +1 -1
- package/dist/siemens-ix/p-c69036b1.entry.js +1 -0
- package/dist/siemens-ix/{p-84fbdef9.entry.js → p-c9718f0d.entry.js} +1 -1
- package/dist/siemens-ix/p-cYKY6sUE.js +1 -0
- package/dist/siemens-ix/p-cd42c4e6.entry.js +1 -0
- package/dist/siemens-ix/{p-da8840cc.entry.js → p-d02d2e49.entry.js} +1 -1
- package/dist/siemens-ix/{p-44a3f1f0.entry.js → p-d13c0b78.entry.js} +1 -1
- package/dist/siemens-ix/{p-b17053bc.entry.js → p-d16ee3bd.entry.js} +1 -1
- package/dist/siemens-ix/p-d1cd3cb9.entry.js +1 -0
- package/dist/siemens-ix/{p-5024bd91.entry.js → p-d45ff0a0.entry.js} +1 -1
- package/dist/siemens-ix/{p-280d8b68.entry.js → p-d5761950.entry.js} +1 -1
- package/dist/siemens-ix/{p-a44e8a8f.entry.js → p-d699bb26.entry.js} +1 -1
- package/dist/siemens-ix/{p-d8c99656.entry.js → p-d770d8ba.entry.js} +1 -1
- package/dist/siemens-ix/{p-ae5569aa.entry.js → p-da2e0f0e.entry.js} +1 -1
- package/dist/siemens-ix/p-daf43138.entry.js +1 -0
- package/dist/siemens-ix/{p-1fa6a663.entry.js → p-dc16a32d.entry.js} +1 -1
- package/dist/siemens-ix/{p-48386b43.entry.js → p-ddcc8627.entry.js} +1 -1
- package/dist/siemens-ix/p-e3da7c67.entry.js +1 -0
- package/dist/siemens-ix/p-e58ae892.entry.js +1 -0
- package/dist/siemens-ix/p-e5e220c7.entry.js +1 -0
- package/dist/siemens-ix/p-e6046255.entry.js +1 -0
- package/dist/siemens-ix/{p-c921c01b.entry.js → p-e9b37020.entry.js} +1 -1
- package/dist/siemens-ix/{p-df13643b.entry.js → p-ea9691c1.entry.js} +1 -1
- package/dist/siemens-ix/{p-6e63af65.entry.js → p-eac237a1.entry.js} +1 -1
- package/dist/siemens-ix/p-eff190ad.entry.js +1 -0
- package/dist/siemens-ix/p-f1cd82bd.entry.js +1 -0
- package/dist/siemens-ix/{p-5ae844d7.entry.js → p-f43c97cf.entry.js} +1 -1
- package/dist/siemens-ix/{p-ba0eaaf5.entry.js → p-f507157f.entry.js} +1 -1
- package/dist/siemens-ix/{p-2afcdc78.entry.js → p-fa5c236f.entry.js} +1 -1
- package/dist/siemens-ix/p-fbd006be.entry.js +1 -0
- package/dist/siemens-ix/p-fdec73d4.entry.js +1 -0
- package/dist/siemens-ix/{p-yAf8WIcn.js → p-vphIrWGB.js} +1 -1
- package/dist/siemens-ix/p-wfVRhTWc.js +1 -0
- package/dist/siemens-ix/{p-D148LCh1.js → p-yZFaEeBW.js} +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/action-card/action-card.d.ts +3 -0
- package/dist/types/components/application/application.d.ts +9 -0
- package/dist/types/components/application-header/application-header.d.ts +1 -0
- package/dist/types/components/avatar/avatar.d.ts +3 -0
- package/dist/types/components/blind/blind.d.ts +5 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +3 -0
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +3 -0
- package/dist/types/components/button/button.d.ts +3 -0
- package/dist/types/components/card/card.d.ts +4 -0
- package/dist/types/components/card-accordion/card-accordion.d.ts +3 -0
- package/dist/types/components/card-content/card-content.d.ts +3 -0
- package/dist/types/components/card-list/card-list.d.ts +3 -0
- package/dist/types/components/card-title/card-title.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +6 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +1 -0
- package/dist/types/components/chip/chip.d.ts +3 -0
- package/dist/types/components/col/col.d.ts +3 -0
- package/dist/types/components/content/content.d.ts +1 -0
- package/dist/types/components/content-header/content-header.d.ts +1 -1
- package/dist/types/components/css-grid/css-grid-item.d.ts +1 -0
- package/dist/types/components/css-grid/css-grid.d.ts +1 -0
- package/dist/types/components/custom-field/custom-field.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown-controller.d.ts +1 -3
- package/dist/types/components/dropdown/dropdown.d.ts +3 -0
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +4 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +3 -0
- package/dist/types/components/dropdown-quick-actions/dropdown-quick-actions.d.ts +3 -0
- package/dist/types/components/event-list/event-list.d.ts +3 -0
- package/dist/types/components/event-list-item/event-list-item.d.ts +3 -0
- package/dist/types/components/field-label/field-label.d.ts +3 -0
- package/dist/types/components/filter-chip/filter-chip.d.ts +9 -0
- package/dist/types/components/flip-tile/flip-tile.d.ts +5 -0
- package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +3 -0
- package/dist/types/components/group/group-context-menu.d.ts +3 -0
- package/dist/types/components/group/group.d.ts +6 -0
- package/dist/types/components/group-item/group-item.d.ts +3 -0
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/key-value-list/key-value-list.d.ts +3 -0
- package/dist/types/components/layout-auto/layout-auto.d.ts +3 -0
- package/dist/types/components/layout-grid/layout-grid.d.ts +3 -0
- package/dist/types/components/link-button/link-button.d.ts +3 -0
- package/dist/types/components/menu/menu.d.ts +39 -1
- package/dist/types/components/menu-about/menu-about.d.ts +3 -0
- package/dist/types/components/menu-about-item/menu-about-item.d.ts +1 -0
- package/dist/types/components/menu-about-news/menu-about-news.d.ts +3 -0
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +3 -0
- package/dist/types/components/menu-category/menu-category.d.ts +31 -2
- package/dist/types/components/menu-item/menu-item.d.ts +40 -3
- package/dist/types/components/menu-settings/menu-settings.d.ts +3 -0
- package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +1 -0
- package/dist/types/components/message-bar/message-bar.d.ts +3 -0
- package/dist/types/components/modal/modal.d.ts +3 -0
- package/dist/types/components/modal-content/modal-content.d.ts +3 -0
- package/dist/types/components/modal-footer/modal-footer.d.ts +3 -0
- package/dist/types/components/modal-header/modal-header.d.ts +3 -0
- package/dist/types/components/pane/pane.d.ts +15 -1
- package/dist/types/components/pane-layout/pane-layout.d.ts +8 -0
- package/dist/types/components/pill/pill.d.ts +3 -0
- package/dist/types/components/popover/popover-controller.d.ts +52 -0
- package/dist/types/components/popover/popover.d.ts +190 -0
- package/dist/types/components/popover/test/popover.constants.d.ts +11 -0
- package/dist/types/components/popover/test/popover.fixtures.d.ts +29 -0
- package/dist/types/components/popover/test/popover.page.d.ts +118 -0
- package/dist/types/components/popover-content/popover-content.d.ts +16 -0
- package/dist/types/components/popover-footer/popover-footer.d.ts +17 -0
- package/dist/types/components/popover-header/popover-header.d.ts +49 -0
- package/dist/types/components/popover-image/popover-image.d.ts +21 -0
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +2 -0
- package/dist/types/components/push-card/push-card.d.ts +4 -0
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +1 -0
- package/dist/types/components/range-field/range-field.d.ts +3 -0
- package/dist/types/components/row/row.d.ts +3 -0
- package/dist/types/components/select/select.d.ts +50 -0
- package/dist/types/components/select-item/select-item.d.ts +7 -0
- package/dist/types/components/split-button/split-button.d.ts +3 -0
- package/dist/types/components/tab-item/tab-item.d.ts +3 -0
- package/dist/types/components/tabs/tabs.d.ts +3 -0
- package/dist/types/components/tile/tile.d.ts +6 -0
- package/dist/types/components/toast/toast-container.d.ts +3 -0
- package/dist/types/components/toast/toast.d.ts +4 -0
- package/dist/types/components/toggle-button/toggle-button.d.ts +3 -0
- package/dist/types/components/tooltip/tooltip.d.ts +3 -0
- package/dist/types/components/tree/tree.d.ts +3 -0
- package/dist/types/components/tree-item/tree-item.d.ts +3 -0
- package/dist/types/components/typography/typography.d.ts +3 -0
- package/dist/types/components/utils/a11y.d.ts +5 -0
- package/dist/types/components/utils/focus/focus-proxy.d.ts +6 -4
- package/dist/types/components/utils/focus/focus-trap.d.ts +16 -1
- package/dist/types/components/utils/focus/focus-utilities.d.ts +2 -2
- package/dist/types/components/utils/menu-service/menu-service.d.ts +1 -0
- package/dist/types/components/utils/nested-overlay/hierarchy.d.ts +6 -0
- package/dist/types/components/utils/nested-overlay/index.d.ts +6 -0
- package/dist/types/components/utils/nested-overlay/nested-overlay-stack.d.ts +28 -0
- package/dist/types/components/utils/nested-overlay/path-utils.d.ts +1 -0
- package/dist/types/components/utils/nested-overlay/types.d.ts +13 -0
- package/dist/types/components/utils/shadow-dom.d.ts +1 -0
- package/dist/types/components/workflow-step/workflow-step.d.ts +4 -0
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +3 -0
- package/dist/types/components.d.ts +486 -12
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/hydrate/index.js +3595 -697
- package/hydrate/index.mjs +3595 -697
- package/package.json +4 -4
- package/components/p-5jph302v.js +0 -1
- package/components/p-B1ZcjHve.js +0 -1
- package/components/p-B8RlWbEh.js +0 -1
- package/components/p-BP8g-yqY.js +0 -1
- package/components/p-B_czElDE.js +0 -1
- package/components/p-BooU9e46.js +0 -1
- package/components/p-Btv5ReUJ.js +0 -1
- package/components/p-BtvsjuLo.js +0 -1
- package/components/p-CDKHgTB8.js +0 -1
- package/components/p-CKYjdhXo.js +0 -1
- package/components/p-CQj_gEvY.js +0 -1
- package/components/p-CYgb41KQ.js +0 -1
- package/components/p-C_95k0nq.js +0 -1
- package/components/p-CgOv_MV_.js +0 -1
- package/components/p-D4RWuUBi.js +0 -1
- package/components/p-D4T7_gkf.js +0 -1
- package/components/p-D5gbubPJ.js +0 -1
- package/components/p-D6Wm2E-0.js +0 -1
- package/components/p-D8Wb4thH.js +0 -1
- package/components/p-DOCAISxs.js +0 -1
- package/components/p-JXbYOM9q.js +0 -1
- package/components/p-NLlCSNeG.js +0 -1
- package/components/p-XBJqkmoc.js +0 -1
- package/dist/cjs/dropdown-controller-DeBeUVhj.js +0 -160
- package/dist/cjs/focus-trap-_cyPFvFq.js +0 -106
- package/dist/esm/dropdown-controller-D6Wm2E-0.js +0 -157
- package/dist/esm/focus-trap-DDLHqzV2.js +0 -102
- package/dist/siemens-ix/p-077cb0a7.entry.js +0 -1
- package/dist/siemens-ix/p-12647d5d.entry.js +0 -1
- package/dist/siemens-ix/p-15aefb52.entry.js +0 -1
- package/dist/siemens-ix/p-1629de03.entry.js +0 -1
- package/dist/siemens-ix/p-1ce32501.entry.js +0 -1
- package/dist/siemens-ix/p-2142fab0.entry.js +0 -1
- package/dist/siemens-ix/p-23aaf08e.entry.js +0 -1
- package/dist/siemens-ix/p-25c784e4.entry.js +0 -1
- package/dist/siemens-ix/p-2a735134.entry.js +0 -1
- package/dist/siemens-ix/p-2d8f3ea3.entry.js +0 -1
- package/dist/siemens-ix/p-2e5e7ccf.entry.js +0 -1
- package/dist/siemens-ix/p-45552c4c.entry.js +0 -1
- package/dist/siemens-ix/p-50b75fdf.entry.js +0 -1
- package/dist/siemens-ix/p-58d349a2.entry.js +0 -1
- package/dist/siemens-ix/p-5a44cb29.entry.js +0 -1
- package/dist/siemens-ix/p-5c478e3e.entry.js +0 -1
- package/dist/siemens-ix/p-61a481f3.entry.js +0 -1
- package/dist/siemens-ix/p-65bc8a0d.entry.js +0 -1
- package/dist/siemens-ix/p-69459b73.entry.js +0 -1
- package/dist/siemens-ix/p-6df3d9e4.entry.js +0 -1
- package/dist/siemens-ix/p-82f44b05.entry.js +0 -1
- package/dist/siemens-ix/p-834330b3.entry.js +0 -1
- package/dist/siemens-ix/p-8937e9b1.entry.js +0 -1
- package/dist/siemens-ix/p-8cfddec2.entry.js +0 -1
- package/dist/siemens-ix/p-8d76c0b0.entry.js +0 -1
- package/dist/siemens-ix/p-9015a4c5.entry.js +0 -1
- package/dist/siemens-ix/p-91b02cb7.entry.js +0 -1
- package/dist/siemens-ix/p-9362c304.entry.js +0 -1
- package/dist/siemens-ix/p-9586a886.entry.js +0 -1
- package/dist/siemens-ix/p-9907d408.entry.js +0 -1
- package/dist/siemens-ix/p-9b8f1bc7.entry.js +0 -1
- package/dist/siemens-ix/p-BIe8Nw9M.js +0 -1
- package/dist/siemens-ix/p-BZApVtkF.js +0 -1
- package/dist/siemens-ix/p-CgOv_MV_.js +0 -1
- package/dist/siemens-ix/p-Cl7fhG1I.js +0 -1
- package/dist/siemens-ix/p-CxGywkh5.js +0 -1
- package/dist/siemens-ix/p-D6Wm2E-0.js +0 -1
- package/dist/siemens-ix/p-DIWED8Ls.js +0 -1
- package/dist/siemens-ix/p-DnaItyVQ.js +0 -1
- package/dist/siemens-ix/p-DzWThpzp.js +0 -1
- package/dist/siemens-ix/p-GLcPX9PU.js +0 -1
- package/dist/siemens-ix/p-Z4IKO1Dx.js +0 -1
- package/dist/siemens-ix/p-afa900f7.entry.js +0 -1
- package/dist/siemens-ix/p-b1930204.entry.js +0 -1
- package/dist/siemens-ix/p-b517c2e1.entry.js +0 -1
- package/dist/siemens-ix/p-b96eabf7.entry.js +0 -1
- package/dist/siemens-ix/p-bef76eac.entry.js +0 -1
- package/dist/siemens-ix/p-c78a5414.entry.js +0 -1
- package/dist/siemens-ix/p-cb9f8b47.entry.js +0 -1
- package/dist/siemens-ix/p-d34c0c51.entry.js +0 -1
- package/dist/siemens-ix/p-dd2b271e.entry.js +0 -1
- package/dist/siemens-ix/p-de79c9cf.entry.js +0 -1
- package/dist/siemens-ix/p-df32a25c.entry.js +0 -1
- package/dist/siemens-ix/p-e09fcd95.entry.js +0 -1
- package/dist/siemens-ix/p-e316d8a5.entry.js +0 -1
- package/dist/siemens-ix/p-ea440d84.entry.js +0 -1
- package/dist/siemens-ix/p-fpBGwEVT.js +0 -1
- package/dist/siemens-ix/p-jBB3q9qq.js +0 -1
- /package/components/{p-Bxdy-8CE.js → p-CtDOTMOT.js} +0 -0
- /package/dist/siemens-ix/{p-Ca5WUunf.js → p-EBgS4zhE.js} +0 -0
|
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
18
|
};
|
|
19
19
|
import { iconChevronDownSmall, iconChevronUpSmall, iconClear, iconPlus, } from "@siemens/ix-icons/icons";
|
|
20
|
-
import { h, Host, Mixin, } from "@stencil/core";
|
|
20
|
+
import { forceUpdate, h, Host, Mixin, } from "@stencil/core";
|
|
21
21
|
import { a11yBoolean } from "../utils/a11y";
|
|
22
22
|
import { FocusProxy, PROXY_LIST_ID_SUFFIX, PROXY_LISTITEM_ID_SUFFIX, updateFocusProxyList, } from "../utils/focus/focus-proxy";
|
|
23
23
|
import { IX_FOCUS_VISIBLE_ACTIVE, queryElements, } from "../utils/focus/focus-utilities";
|
|
@@ -30,6 +30,7 @@ import { requestAnimationFrameNoNgZone } from "../utils/requestAnimationFrame";
|
|
|
30
30
|
let selectId = 0;
|
|
31
31
|
/**
|
|
32
32
|
* @form-ready
|
|
33
|
+
* @slot default - Select items.
|
|
33
34
|
*/
|
|
34
35
|
export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActiveDescendantMixin) {
|
|
35
36
|
constructor() {
|
|
@@ -63,6 +64,14 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
63
64
|
* @since TODO: Define
|
|
64
65
|
*/
|
|
65
66
|
ariaLabelAddItem = 'Add item';
|
|
67
|
+
/**
|
|
68
|
+
* Accessible label template for the overflow indicator chip shown in multiple
|
|
69
|
+
* mode when not all selected chips fit on a single row. The `{count}`
|
|
70
|
+
* placeholder is replaced with the number of hidden items (e.g. "3 more").
|
|
71
|
+
*
|
|
72
|
+
* @since 5.1.0
|
|
73
|
+
*/
|
|
74
|
+
i18nMoreItems = '{count} more';
|
|
66
75
|
/**
|
|
67
76
|
* Warning text for the select component
|
|
68
77
|
**/
|
|
@@ -184,6 +193,9 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
184
193
|
isDropdownEmpty = false;
|
|
185
194
|
inputFilterText = '';
|
|
186
195
|
inputValue = '';
|
|
196
|
+
visibleChipValues = null;
|
|
197
|
+
hiddenChipValues = [];
|
|
198
|
+
overflowDropdownShow = false;
|
|
187
199
|
hasInputFocus = false;
|
|
188
200
|
dropdownItemsVisualFocused = false;
|
|
189
201
|
isInvalid = false;
|
|
@@ -195,6 +207,17 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
195
207
|
dropdownAnchorRef = makeRef();
|
|
196
208
|
inputRef = makeRef();
|
|
197
209
|
dropdownRef = makeRef();
|
|
210
|
+
chipElementRefs = new Map();
|
|
211
|
+
chipWidths = new Map();
|
|
212
|
+
overflowChipRef = makeRef();
|
|
213
|
+
chipsContainerRef = makeRef();
|
|
214
|
+
clearButtonRef = makeRef();
|
|
215
|
+
chipHorizontalMargin = 4;
|
|
216
|
+
triggerMinWidth = 78;
|
|
217
|
+
overflowChipFallbackWidth = 52;
|
|
218
|
+
overflowChipWidth = 0;
|
|
219
|
+
chipsResizeObserver;
|
|
220
|
+
overflowDropdownOpenedByKeyboard = false;
|
|
198
221
|
proxyListObserver = null;
|
|
199
222
|
inputElement;
|
|
200
223
|
touched = false;
|
|
@@ -232,6 +255,12 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
232
255
|
this.value = value;
|
|
233
256
|
this.updateSelection();
|
|
234
257
|
}
|
|
258
|
+
watchDisabledReadonly() {
|
|
259
|
+
// Disabled/readonly hides the chip close button, changing chip widths, so
|
|
260
|
+
// invalidate the measurement cache to force a re-measure on next render.
|
|
261
|
+
this.chipWidths.clear();
|
|
262
|
+
this.overflowChipWidth = 0;
|
|
263
|
+
}
|
|
235
264
|
updateFormInternalValue(value) {
|
|
236
265
|
if (Array.isArray(value)) {
|
|
237
266
|
this.formInternals.setFormValue(value.join(','));
|
|
@@ -317,6 +346,7 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
317
346
|
});
|
|
318
347
|
});
|
|
319
348
|
this.selectedLabels = this.selectedItems.map((item) => item.label ?? item.value);
|
|
349
|
+
this.pruneChipWidthCache();
|
|
320
350
|
if (this.dropdownShow && this.inputFilterText) {
|
|
321
351
|
return;
|
|
322
352
|
}
|
|
@@ -372,6 +402,13 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
372
402
|
subtree: true,
|
|
373
403
|
childList: true,
|
|
374
404
|
});
|
|
405
|
+
const chipsContainer = this.chipsContainerRef.current;
|
|
406
|
+
if (chipsContainer) {
|
|
407
|
+
this.chipsResizeObserver = new ResizeObserver(() => {
|
|
408
|
+
this.handleChipsContainerResize();
|
|
409
|
+
});
|
|
410
|
+
this.chipsResizeObserver.observe(chipsContainer);
|
|
411
|
+
}
|
|
375
412
|
}
|
|
376
413
|
componentWillLoad() {
|
|
377
414
|
this.updateSelection();
|
|
@@ -380,10 +417,14 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
380
417
|
disconnectedCallback() {
|
|
381
418
|
super.disconnectedCallback();
|
|
382
419
|
this.proxyListObserver?.disconnect();
|
|
420
|
+
this.chipsResizeObserver?.disconnect();
|
|
383
421
|
}
|
|
384
422
|
onLabelChange(event) {
|
|
385
423
|
event.preventDefault();
|
|
386
424
|
event.stopImmediatePropagation();
|
|
425
|
+
// A changed label/value alters the chip width, so drop the cache and let
|
|
426
|
+
// the next render re-measure the affected chips.
|
|
427
|
+
this.chipWidths.clear();
|
|
387
428
|
this.updateSelection();
|
|
388
429
|
}
|
|
389
430
|
itemExists(item) {
|
|
@@ -527,12 +568,331 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
527
568
|
this.clear();
|
|
528
569
|
} }, `${this.i18nAllSelected} (${this.selectedItems.length})`));
|
|
529
570
|
}
|
|
530
|
-
renderChip(item) {
|
|
531
|
-
|
|
571
|
+
renderChip(item, measuring) {
|
|
572
|
+
const value = item.value.toString();
|
|
573
|
+
return (h("ix-filter-chip", { class: {
|
|
574
|
+
'chip-measuring': measuring,
|
|
575
|
+
}, disabled: this.disabled || this.readonly, key: value, ariaLabelCloseIconButton: this.getRemoveChipAriaLabel(item), ref: (ref) => {
|
|
576
|
+
if (ref) {
|
|
577
|
+
this.chipElementRefs.set(value, ref);
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
this.chipElementRefs.delete(value);
|
|
581
|
+
}, onCloseClick: () => {
|
|
532
582
|
this.itemClick(item.value);
|
|
533
583
|
this.inputElement?.focus();
|
|
534
584
|
} }, item.label));
|
|
535
585
|
}
|
|
586
|
+
renderHiddenChip(item) {
|
|
587
|
+
return (h("ix-filter-chip", { class: "chip-hidden-item", disabled: this.disabled || this.readonly, key: `hidden-${item.value}`, ariaLabelCloseIconButton: this.getRemoveChipAriaLabel(item), onCloseClick: () => {
|
|
588
|
+
this.overflowDropdownShow = false;
|
|
589
|
+
this.itemClick(item.value);
|
|
590
|
+
this.inputElement?.focus();
|
|
591
|
+
} }, item.label));
|
|
592
|
+
}
|
|
593
|
+
renderOverflowChip() {
|
|
594
|
+
const count = this.hiddenChipValues.length;
|
|
595
|
+
const ariaLabel = this.i18nMoreItems.replace('{count}', count.toString());
|
|
596
|
+
return (h("ix-filter-chip", { key: "overflow-chip", class: "chip-overflow", hideCloseButton: true, disabled: this.disabled || this.readonly, tabindex: this.disabled || this.readonly ? -1 : 0, role: "button", "aria-haspopup": "listbox", "aria-expanded": a11yBoolean(this.overflowDropdownShow), "aria-label": ariaLabel, ref: this.overflowChipRef, onClick: (event) => {
|
|
597
|
+
event.preventDefault();
|
|
598
|
+
event.stopPropagation();
|
|
599
|
+
this.toggleOverflowDropdown();
|
|
600
|
+
}, onKeyDown: (event) => {
|
|
601
|
+
if (event.key === 'Enter' ||
|
|
602
|
+
event.key === ' ' ||
|
|
603
|
+
event.key === 'ArrowDown') {
|
|
604
|
+
event.preventDefault();
|
|
605
|
+
event.stopImmediatePropagation();
|
|
606
|
+
this.overflowDropdownOpenedByKeyboard = true;
|
|
607
|
+
this.overflowDropdownShow = true;
|
|
608
|
+
}
|
|
609
|
+
} }, `+${count}`));
|
|
610
|
+
}
|
|
611
|
+
renderMultipleModeChips() {
|
|
612
|
+
if (this.items.length === 0) {
|
|
613
|
+
return null;
|
|
614
|
+
}
|
|
615
|
+
if (this.shouldDisplayAllChip()) {
|
|
616
|
+
return this.renderAllChip();
|
|
617
|
+
}
|
|
618
|
+
const selected = this.selectedItems;
|
|
619
|
+
if (selected.length === 0) {
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
const visibleItems = selected.filter((item) => {
|
|
623
|
+
const value = item.value.toString();
|
|
624
|
+
if (!this.chipWidths.has(value)) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
return (this.visibleChipValues === null ||
|
|
628
|
+
this.visibleChipValues.includes(value));
|
|
629
|
+
});
|
|
630
|
+
const unmeasuredItems = selected.filter((item) => !this.chipWidths.has(item.value.toString()));
|
|
631
|
+
return [
|
|
632
|
+
...visibleItems.map((item) => this.renderChip(item, false)),
|
|
633
|
+
this.hiddenChipValues.length > 0 ? this.renderOverflowChip() : null,
|
|
634
|
+
...unmeasuredItems.map((item) => this.renderChip(item, true)),
|
|
635
|
+
];
|
|
636
|
+
}
|
|
637
|
+
renderOverflowDropdown() {
|
|
638
|
+
return (h("ix-dropdown", { class: "overflow-dropdown", show: this.overflowDropdownShow, anchor: this.overflowChipRef.waitForCurrent(), closeBehavior: "outside", placement: "bottom-start", onShowChanged: (event) => {
|
|
639
|
+
this.overflowDropdownShow = event.detail;
|
|
640
|
+
if (event.detail && this.overflowDropdownOpenedByKeyboard) {
|
|
641
|
+
this.overflowDropdownOpenedByKeyboard = false;
|
|
642
|
+
this.focusOverflowRemoveButton(0);
|
|
643
|
+
}
|
|
644
|
+
} }, h("div", { class: "overflow-dropdown-content" }, this.hiddenChipValues.map((value) => {
|
|
645
|
+
const item = this.selectedItems.find((selectedItem) => selectedItem.value.toString() === value);
|
|
646
|
+
return item ? this.renderHiddenChip(item) : null;
|
|
647
|
+
}))));
|
|
648
|
+
}
|
|
649
|
+
toggleOverflowDropdown() {
|
|
650
|
+
if (this.disabled || this.readonly) {
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
this.overflowDropdownShow = !this.overflowDropdownShow;
|
|
654
|
+
}
|
|
655
|
+
getOverflowRemoveButtons() {
|
|
656
|
+
const dropdown = this.hostElement.shadowRoot?.querySelector('ix-dropdown.overflow-dropdown');
|
|
657
|
+
if (!dropdown) {
|
|
658
|
+
return [];
|
|
659
|
+
}
|
|
660
|
+
return Array.from(dropdown.querySelectorAll('ix-filter-chip.chip-hidden-item')).flatMap((chip) => {
|
|
661
|
+
const iconButton = chip.shadowRoot?.querySelector('ix-icon-button');
|
|
662
|
+
const button = iconButton?.shadowRoot?.querySelector('button');
|
|
663
|
+
return button ? [button] : [];
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
focusOverflowRemoveButton(index) {
|
|
667
|
+
requestAnimationFrameNoNgZone(() => {
|
|
668
|
+
const buttons = this.getOverflowRemoveButtons();
|
|
669
|
+
const button = buttons[index];
|
|
670
|
+
if (!button) {
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
button.focus({ preventScroll: true });
|
|
674
|
+
button.scrollIntoView({ block: 'nearest' });
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
onOverflowRemoveButtonKeyDown(event) {
|
|
678
|
+
if (!this.overflowDropdownShow) {
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
const buttons = this.getOverflowRemoveButtons();
|
|
682
|
+
const currentIndex = buttons.findIndex((button) => event.composedPath().includes(button));
|
|
683
|
+
if (currentIndex === -1) {
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
686
|
+
switch (event.key) {
|
|
687
|
+
case 'ArrowDown': {
|
|
688
|
+
event.preventDefault();
|
|
689
|
+
event.stopImmediatePropagation();
|
|
690
|
+
this.focusOverflowRemoveButton((currentIndex + 1) % buttons.length);
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
case 'ArrowUp': {
|
|
694
|
+
event.preventDefault();
|
|
695
|
+
event.stopImmediatePropagation();
|
|
696
|
+
this.focusOverflowRemoveButton((currentIndex - 1 + buttons.length) % buttons.length);
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
case 'Tab': {
|
|
700
|
+
event.preventDefault();
|
|
701
|
+
event.stopImmediatePropagation();
|
|
702
|
+
this.focusOverflowRemoveButton(event.shiftKey
|
|
703
|
+
? (currentIndex - 1 + buttons.length) % buttons.length
|
|
704
|
+
: (currentIndex + 1) % buttons.length);
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
case 'Escape': {
|
|
708
|
+
event.preventDefault();
|
|
709
|
+
event.stopImmediatePropagation();
|
|
710
|
+
this.overflowDropdownShow = false;
|
|
711
|
+
this.focusOverflowChip();
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
default:
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
focusOverflowChip() {
|
|
719
|
+
requestAnimationFrameNoNgZone(() => {
|
|
720
|
+
this.overflowChipRef.current?.focus({ preventScroll: true });
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
pruneChipWidthCache() {
|
|
724
|
+
const validValues = new Set(this.selectedItems.map((item) => item.value.toString()));
|
|
725
|
+
for (const value of this.chipWidths.keys()) {
|
|
726
|
+
if (!validValues.has(value)) {
|
|
727
|
+
this.chipWidths.delete(value);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
sameChipValues(a, b) {
|
|
732
|
+
if (a === b) {
|
|
733
|
+
return true;
|
|
734
|
+
}
|
|
735
|
+
if (a === null || b === null) {
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
if (a.length !== b.length) {
|
|
739
|
+
return false;
|
|
740
|
+
}
|
|
741
|
+
return a.every((value, index) => value === b[index]);
|
|
742
|
+
}
|
|
743
|
+
applyOverflowState(visible, hidden) {
|
|
744
|
+
if (!this.sameChipValues(this.visibleChipValues, visible)) {
|
|
745
|
+
this.visibleChipValues = visible;
|
|
746
|
+
}
|
|
747
|
+
if (!this.sameChipValues(this.hiddenChipValues, hidden)) {
|
|
748
|
+
this.hiddenChipValues = hidden;
|
|
749
|
+
}
|
|
750
|
+
if (hidden.length === 0 && this.overflowDropdownShow) {
|
|
751
|
+
this.overflowDropdownShow = false;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
getChipWidthWithMargin(value) {
|
|
755
|
+
return (this.chipWidths.get(value) ?? 0) + this.chipHorizontalMargin;
|
|
756
|
+
}
|
|
757
|
+
getOverflowChipWidthWithMargin() {
|
|
758
|
+
return ((this.overflowChipWidth || this.overflowChipFallbackWidth) +
|
|
759
|
+
this.chipHorizontalMargin);
|
|
760
|
+
}
|
|
761
|
+
canShowAllChips(values, available) {
|
|
762
|
+
const totalWidth = values.reduce((width, value) => width + this.getChipWidthWithMargin(value), 0);
|
|
763
|
+
return totalWidth <= available;
|
|
764
|
+
}
|
|
765
|
+
getOverflowChipValues(values, available) {
|
|
766
|
+
const [firstValue, ...remainingValues] = values;
|
|
767
|
+
if (firstValue === undefined) {
|
|
768
|
+
return { visible: [], hidden: [] };
|
|
769
|
+
}
|
|
770
|
+
const visible = [firstValue];
|
|
771
|
+
const hidden = [];
|
|
772
|
+
let usedWidth = this.getChipWidthWithMargin(firstValue);
|
|
773
|
+
const overflowChipWidth = this.getOverflowChipWidthWithMargin();
|
|
774
|
+
for (const [index, value] of remainingValues.entries()) {
|
|
775
|
+
const width = this.getChipWidthWithMargin(value);
|
|
776
|
+
if (usedWidth + width + overflowChipWidth <= available) {
|
|
777
|
+
visible.push(value);
|
|
778
|
+
usedWidth += width;
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
hidden.push(...remainingValues.slice(index));
|
|
782
|
+
break;
|
|
783
|
+
}
|
|
784
|
+
return { visible, hidden };
|
|
785
|
+
}
|
|
786
|
+
hasUnmeasuredSelectedChips(values) {
|
|
787
|
+
return values.some((value) => !this.chipWidths.has(value));
|
|
788
|
+
}
|
|
789
|
+
getChipOverflowContext() {
|
|
790
|
+
if (!this.isMultipleMode || this.shouldDisplayAllChip()) {
|
|
791
|
+
this.applyOverflowState(null, []);
|
|
792
|
+
return null;
|
|
793
|
+
}
|
|
794
|
+
const container = this.chipsContainerRef.current;
|
|
795
|
+
if (!container) {
|
|
796
|
+
return null;
|
|
797
|
+
}
|
|
798
|
+
const values = this.selectedItems.map((item) => item.value.toString());
|
|
799
|
+
if (values.length === 0) {
|
|
800
|
+
this.applyOverflowState(null, []);
|
|
801
|
+
return null;
|
|
802
|
+
}
|
|
803
|
+
return { container, values };
|
|
804
|
+
}
|
|
805
|
+
handleChipsContainerResize() {
|
|
806
|
+
const context = this.getChipOverflowContext();
|
|
807
|
+
if (!context) {
|
|
808
|
+
return;
|
|
809
|
+
}
|
|
810
|
+
if (this.hasUnmeasuredSelectedChips(context.values)) {
|
|
811
|
+
// If the select was initially hidden, widths can be 0 on first render.
|
|
812
|
+
// A resize after becoming visible should trigger a re-measure pass.
|
|
813
|
+
forceUpdate(this);
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
this.calculateChipOverflow(context);
|
|
817
|
+
}
|
|
818
|
+
calculateChipOverflow(context = this.getChipOverflowContext()) {
|
|
819
|
+
if (!context) {
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
const { container, values } = context;
|
|
823
|
+
if (!values.every((value) => this.chipWidths.has(value))) {
|
|
824
|
+
return;
|
|
825
|
+
}
|
|
826
|
+
const clearButtonWidth = this.allowClear && this.clearButtonRef.current
|
|
827
|
+
? this.clearButtonRef.current.offsetWidth
|
|
828
|
+
: 0;
|
|
829
|
+
const available = container.clientWidth - this.triggerMinWidth - clearButtonWidth;
|
|
830
|
+
if (this.canShowAllChips(values, available)) {
|
|
831
|
+
this.applyOverflowState(null, []);
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
const { visible, hidden } = this.getOverflowChipValues(values, available);
|
|
835
|
+
this.applyOverflowState(visible, hidden);
|
|
836
|
+
}
|
|
837
|
+
async waitForComponentReady(element) {
|
|
838
|
+
const stencilComponent = element;
|
|
839
|
+
if (typeof stencilComponent?.componentOnReady === 'function') {
|
|
840
|
+
await stencilComponent.componentOnReady();
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
waitForNextFrame() {
|
|
844
|
+
return new Promise((resolve) => requestAnimationFrameNoNgZone(() => resolve()));
|
|
845
|
+
}
|
|
846
|
+
async waitForChipLayout(elements) {
|
|
847
|
+
await Promise.all(elements.map((element) => this.waitForComponentReady(element)));
|
|
848
|
+
await this.waitForNextFrame();
|
|
849
|
+
}
|
|
850
|
+
async measureSelectedChipWidths(items) {
|
|
851
|
+
const elements = items.map((item) => this.chipElementRefs.get(item.value.toString()));
|
|
852
|
+
await this.waitForChipLayout(elements);
|
|
853
|
+
let measuredAny = false;
|
|
854
|
+
for (const item of items) {
|
|
855
|
+
const value = item.value.toString();
|
|
856
|
+
const element = this.chipElementRefs.get(value);
|
|
857
|
+
if (element && element.offsetWidth > 0) {
|
|
858
|
+
this.chipWidths.set(value, element.offsetWidth);
|
|
859
|
+
measuredAny = true;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
return measuredAny;
|
|
863
|
+
}
|
|
864
|
+
async measureOverflowChipWidth() {
|
|
865
|
+
if (this.hiddenChipValues.length === 0 || this.overflowChipWidth > 0) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
const overflowElement = await this.overflowChipRef.waitForCurrent();
|
|
869
|
+
await this.waitForChipLayout([overflowElement]);
|
|
870
|
+
if (overflowElement.offsetWidth > 0) {
|
|
871
|
+
this.overflowChipWidth = overflowElement.offsetWidth;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
async componentDidRender() {
|
|
875
|
+
if (!this.isMultipleMode || this.shouldDisplayAllChip()) {
|
|
876
|
+
this.applyOverflowState(null, []);
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
const selected = this.selectedItems;
|
|
880
|
+
if (selected.length === 0) {
|
|
881
|
+
this.applyOverflowState(null, []);
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
const unmeasured = selected.filter((item) => !this.chipWidths.has(item.value.toString()));
|
|
885
|
+
if (unmeasured.length > 0) {
|
|
886
|
+
const measuredAny = await this.measureSelectedChipWidths(unmeasured);
|
|
887
|
+
if (measuredAny) {
|
|
888
|
+
this.calculateChipOverflow();
|
|
889
|
+
forceUpdate(this);
|
|
890
|
+
}
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
await this.measureOverflowChipWidth();
|
|
894
|
+
this.calculateChipOverflow();
|
|
895
|
+
}
|
|
536
896
|
onValidationChange({ isInvalid, isInvalidByRequired, isValid, isInfo, isWarning, }) {
|
|
537
897
|
this.isInvalid = isInvalid || isInvalidByRequired;
|
|
538
898
|
this.isValid = isValid;
|
|
@@ -585,6 +945,14 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
585
945
|
this.addItemElement.label = this.inputFilterText;
|
|
586
946
|
}
|
|
587
947
|
this.updateAriaProxyListbox();
|
|
948
|
+
if (this.isMultipleMode && !this.shouldDisplayAllChip()) {
|
|
949
|
+
const selected = this.selectedItems;
|
|
950
|
+
const allMeasured = selected.length > 0 &&
|
|
951
|
+
selected.every((item) => this.chipWidths.has(item.value.toString()));
|
|
952
|
+
if (allMeasured) {
|
|
953
|
+
this.calculateChipOverflow();
|
|
954
|
+
}
|
|
955
|
+
}
|
|
588
956
|
}
|
|
589
957
|
updateAriaProxyListbox() {
|
|
590
958
|
const ariaActiveDescendantHelper = this.hostElement.shadowRoot?.getElementById(`${this.hostId}-proxy-listbox`);
|
|
@@ -619,22 +987,18 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
619
987
|
});
|
|
620
988
|
}
|
|
621
989
|
render() {
|
|
622
|
-
return (h(Host, { key: '
|
|
990
|
+
return (h(Host, { key: '9415e1e8af83d128ad9214824c182a9c03a70180', id: this.getHostElementId(), class: {
|
|
623
991
|
readonly: this.readonly,
|
|
624
992
|
disabled: this.disabled,
|
|
625
993
|
'show-focus-outline': this.hasInputFocus && !this.dropdownItemsVisualFocused,
|
|
626
|
-
}, tabIndex: this.disabled ? -1 : 0 }, h("ix-field-wrapper", { key: '
|
|
994
|
+
}, tabIndex: this.disabled ? -1 : 0 }, h("ix-field-wrapper", { key: '36b59b412aab4e527f2e09c7b800344d4831436e', required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '353d3300511ab5311f1359d8591d58ffa862c8d1', class: {
|
|
627
995
|
select: true,
|
|
628
996
|
disabled: this.disabled,
|
|
629
997
|
readonly: this.readonly,
|
|
630
998
|
}, ref: (ref) => {
|
|
631
999
|
this.dropdownAnchorRef(ref);
|
|
632
1000
|
this.dropdownWrapperRef(ref);
|
|
633
|
-
} }, h("div", { key: '
|
|
634
|
-
this.items.length !== 0 &&
|
|
635
|
-
(this.shouldDisplayAllChip()
|
|
636
|
-
? this.renderAllChip()
|
|
637
|
-
: this.selectedItems?.map((item) => this.renderChip(item))), h("div", { key: '9a8a9b3e4c57776d737e66fc836addaba9950cd3', class: "trigger" }, h("input", { key: '5f50f19cb0c6ab190535b2952d5e757548355124', id: `${this.hostId}-input`, role: "combobox", "aria-controls": `${this.hostId}-proxy-listbox`, "aria-expanded": a11yBoolean(this.dropdownShow), "aria-autocomplete": "list", "aria-disabled": a11yBoolean(this.disabled), autocomplete: "off", "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, required: this.required, type: "text", class: {
|
|
1001
|
+
} }, h("div", { key: '66708c6629d362e2187de9620b6a1386863c0fdf', class: "input-container" }, h("div", { key: 'b5c607cd3766f624d8c608a4eaeb31bea7d3d387', class: "chips", ref: this.chipsContainerRef }, this.isMultipleMode && this.renderMultipleModeChips(), h("div", { key: '84084dbaa7e87c16acd3ca2b487a60eb130f6cc7', class: "trigger" }, h("input", { key: 'f1f7203f87901eca257935c2a4729fd6e2e3db00', id: `${this.hostId}-input`, role: "combobox", "aria-controls": `${this.hostId}-proxy-listbox`, "aria-expanded": a11yBoolean(this.dropdownShow), "aria-autocomplete": "list", "aria-disabled": a11yBoolean(this.disabled), autocomplete: "off", "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, required: this.required, type: "text", class: {
|
|
638
1002
|
'allow-clear': this.allowClear && !!this.selectedLabels?.length,
|
|
639
1003
|
}, placeholder: this.placeholderValue(), value: this.inputValue ?? '', ref: (ref) => {
|
|
640
1004
|
this.inputElement = ref;
|
|
@@ -642,21 +1006,24 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
642
1006
|
}, onFocus: () => this.onInputFocus(), onBlur: (e) => this.onInputBlur(e), onInput: () => this.setItemFilter() }), this.allowClear &&
|
|
643
1007
|
!this.disabled &&
|
|
644
1008
|
!this.readonly &&
|
|
645
|
-
(this.selectedLabels?.length || this.inputFilterText) ? (h("ix-icon-button", { key: "clear", class: "clear", icon: iconClear, variant: "subtle-tertiary", oval: true, size: "16", onClick: (e) => {
|
|
1009
|
+
(this.selectedLabels?.length || this.inputFilterText) ? (h("ix-icon-button", { key: "clear", class: "clear", icon: iconClear, variant: "subtle-tertiary", oval: true, size: "16", ref: this.clearButtonRef, onClick: (e) => {
|
|
646
1010
|
e.preventDefault();
|
|
647
1011
|
e.stopPropagation();
|
|
648
1012
|
this.clear();
|
|
649
1013
|
}, "aria-label": this.ariaLabelClearIconButton })) : null, this.disabled || this.readonly ? null : (h("ix-icon-button", { "aria-label": this.dropdownShow
|
|
650
1014
|
? 'Close select dropdown'
|
|
651
|
-
: 'Open select dropdown', "aria-hidden": "true", ref: (ref) => {
|
|
1015
|
+
: 'Open select dropdown', "aria-hidden": "true", tabindex: -1, ref: (ref) => {
|
|
1016
|
+
if (!ref) {
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
652
1019
|
const element = ref;
|
|
653
|
-
// VDOM issue if tabIndex is provided via property <ix-icon-button tabIndex={-1}>
|
|
1020
|
+
// VDOM issue if tabIndex is provided only via property <ix-icon-button tabIndex={-1}>
|
|
654
1021
|
// the tabindex will be '0' after expanding the dropdown
|
|
655
1022
|
element.tabIndex = -1;
|
|
656
1023
|
element.ariaHidden = 'true';
|
|
657
1024
|
}, "data-select-dropdown": true, key: "dropdown", class: { 'dropdown-visible': this.dropdownShow }, icon: this.dropdownShow
|
|
658
1025
|
? iconChevronUpSmall
|
|
659
|
-
: iconChevronDownSmall, variant: "subtle-tertiary" }))))))), h("ix-dropdown", { key: '
|
|
1026
|
+
: iconChevronDownSmall, variant: "subtle-tertiary" }))))))), h("ix-dropdown", { key: '1339c822f5fe72b80e0080f9bdc0a157f74fe7ad', id: `${this.hostId}-listbox`, keyboardActivationKeys: ['ArrowUp', 'ArrowDown'], keyboardItemTriggerKeys: ['Enter'], disableFocusTrap: true, focusHost: this.hostElement, ref: this.dropdownRef, show: this.dropdownShow, closeBehavior: this.isMultipleMode ? 'outside' : 'both', hidden: this.disabled || this.readonly, anchor: this.dropdownAnchorRef.waitForCurrent(), trigger: this.dropdownWrapperRef.waitForCurrent(), onShowChange: (event) => {
|
|
660
1027
|
if ((this.disabled || this.readonly) && event.detail) {
|
|
661
1028
|
event.preventDefault();
|
|
662
1029
|
}
|
|
@@ -695,16 +1062,19 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
695
1062
|
if (this.isSingleMode) {
|
|
696
1063
|
this.dropdownShow = false;
|
|
697
1064
|
}
|
|
698
|
-
} }, h("div", { key: '
|
|
1065
|
+
} }, h("div", { key: 'df5024089e37d2a0416dd42d3e5c8c5c07ac5f4c', "aria-hidden": "true", class: {
|
|
699
1066
|
'select-list-header': true,
|
|
700
1067
|
hidden: this.hideListHeader || this.isDropdownEmpty,
|
|
701
|
-
}, title: this.i18nSelectListHeader, onClick: (e) => e.preventDefault() }, this.i18nSelectListHeader), h("slot", { key: '
|
|
1068
|
+
}, title: this.i18nSelectListHeader, onClick: (e) => e.preventDefault() }, this.i18nSelectListHeader), h("slot", { key: 'b9d758bf0a6c7452ab9e626f37c9fbb5b0a74dfc', onSlotchange: () => {
|
|
702
1069
|
this.updateSelection();
|
|
703
|
-
} }), h(FocusProxy, { key: '
|
|
1070
|
+
} }), h(FocusProxy, { key: 'a4bb5eed7ee4ab735ecf0141fc32c69df8c8d57c', hostId: this.hostId, otherProps: {
|
|
704
1071
|
'aria-hidden': a11yBoolean(!this.dropdownShow),
|
|
705
1072
|
'aria-multiselectable': a11yBoolean(this.isMultipleMode),
|
|
706
1073
|
hidden: this.disabled || this.readonly,
|
|
707
|
-
} }), this.isDropdownEmpty && !this.editable && (h("div", { key: '
|
|
1074
|
+
} }), this.isDropdownEmpty && !this.editable && (h("div", { key: '926fa88d0788351f0f2e865fe4ced2bb8422a43d', class: "select-list-header" }, this.i18nNoMatches))), this.isMultipleMode &&
|
|
1075
|
+
!this.shouldDisplayAllChip() &&
|
|
1076
|
+
this.hiddenChipValues.length > 0 &&
|
|
1077
|
+
this.renderOverflowDropdown()));
|
|
708
1078
|
}
|
|
709
1079
|
static get is() { return "ix-select"; }
|
|
710
1080
|
static get encapsulation() { return "shadow"; }
|
|
@@ -826,6 +1196,29 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
826
1196
|
"attribute": "aria-label-add-item",
|
|
827
1197
|
"defaultValue": "'Add item'"
|
|
828
1198
|
},
|
|
1199
|
+
"i18nMoreItems": {
|
|
1200
|
+
"type": "string",
|
|
1201
|
+
"mutable": false,
|
|
1202
|
+
"complexType": {
|
|
1203
|
+
"original": "string",
|
|
1204
|
+
"resolved": "string",
|
|
1205
|
+
"references": {}
|
|
1206
|
+
},
|
|
1207
|
+
"required": false,
|
|
1208
|
+
"optional": false,
|
|
1209
|
+
"docs": {
|
|
1210
|
+
"tags": [{
|
|
1211
|
+
"name": "since",
|
|
1212
|
+
"text": "5.1.0"
|
|
1213
|
+
}],
|
|
1214
|
+
"text": "Accessible label template for the overflow indicator chip shown in multiple\nmode when not all selected chips fit on a single row. The `{count}`\nplaceholder is replaced with the number of hidden items (e.g. \"3 more\")."
|
|
1215
|
+
},
|
|
1216
|
+
"getter": false,
|
|
1217
|
+
"setter": false,
|
|
1218
|
+
"reflect": false,
|
|
1219
|
+
"attribute": "i18n-more-items",
|
|
1220
|
+
"defaultValue": "'{count} more'"
|
|
1221
|
+
},
|
|
829
1222
|
"warningText": {
|
|
830
1223
|
"type": "string",
|
|
831
1224
|
"mutable": false,
|
|
@@ -1296,6 +1689,9 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
1296
1689
|
"isDropdownEmpty": {},
|
|
1297
1690
|
"inputFilterText": {},
|
|
1298
1691
|
"inputValue": {},
|
|
1692
|
+
"visibleChipValues": {},
|
|
1693
|
+
"hiddenChipValues": {},
|
|
1694
|
+
"overflowDropdownShow": {},
|
|
1299
1695
|
"hasInputFocus": {},
|
|
1300
1696
|
"dropdownItemsVisualFocused": {},
|
|
1301
1697
|
"isInvalid": {},
|
|
@@ -1478,6 +1874,12 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
1478
1874
|
return [{
|
|
1479
1875
|
"propName": "value",
|
|
1480
1876
|
"methodName": "watchValue"
|
|
1877
|
+
}, {
|
|
1878
|
+
"propName": "disabled",
|
|
1879
|
+
"methodName": "watchDisabledReadonly"
|
|
1880
|
+
}, {
|
|
1881
|
+
"propName": "readonly",
|
|
1882
|
+
"methodName": "watchDisabledReadonly"
|
|
1481
1883
|
}];
|
|
1482
1884
|
}
|
|
1483
1885
|
static get listeners() {
|
|
@@ -1493,6 +1895,12 @@ export class Select extends Mixin(...DefaultMixins, ComponentIdMixin, AriaActive
|
|
|
1493
1895
|
"target": undefined,
|
|
1494
1896
|
"capture": false,
|
|
1495
1897
|
"passive": false
|
|
1898
|
+
}, {
|
|
1899
|
+
"name": "keydown",
|
|
1900
|
+
"method": "onOverflowRemoveButtonKeyDown",
|
|
1901
|
+
"target": undefined,
|
|
1902
|
+
"capture": true,
|
|
1903
|
+
"passive": false
|
|
1496
1904
|
}];
|
|
1497
1905
|
}
|
|
1498
1906
|
static get attachInternalsMemberName() { return "formInternals"; }
|
|
@@ -33,6 +33,13 @@ export class SelectItem extends Mixin(...DefaultMixins, FocusVisibleMixin, Compo
|
|
|
33
33
|
* Flag indicating whether the item is selected
|
|
34
34
|
*/
|
|
35
35
|
selected = false;
|
|
36
|
+
/**
|
|
37
|
+
* Disable the item. A disabled item cannot be selected via mouse or keyboard
|
|
38
|
+
* and is excluded from the focusable items of the parent ix-select.
|
|
39
|
+
*
|
|
40
|
+
* @since 5.1.0
|
|
41
|
+
*/
|
|
42
|
+
disabled = false;
|
|
36
43
|
/**
|
|
37
44
|
* @internal
|
|
38
45
|
*/
|
|
@@ -78,12 +85,12 @@ export class SelectItem extends Mixin(...DefaultMixins, FocusVisibleMixin, Compo
|
|
|
78
85
|
...this.inheritAriaAttributes,
|
|
79
86
|
'aria-label': this.inheritAriaAttributes['aria-label'] ?? this.label,
|
|
80
87
|
};
|
|
81
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'adb8da016414dafc839fff44acbe5dd7d254c188', ...ariaAttributes, id: this.getHostElementId(), disableAriaSelectHandling: true, class: {
|
|
82
89
|
[IX_FOCUS_VISIBLE]: true,
|
|
83
|
-
}, "aria-hidden": "true", role: "presentation" }, h("ix-dropdown-item", { key: '
|
|
90
|
+
}, "aria-hidden": "true", role: "presentation" }, h("ix-dropdown-item", { key: '156824791385b920b04cb389553e020cf3f3183b', "aria-hidden": "true", itemRole: "option", class: {
|
|
84
91
|
'select-item-checked': this.selected,
|
|
85
92
|
[IX_FOCUS_VISIBLE_ACTIVE]: this.ixFocusVisible,
|
|
86
|
-
}, checked: this.selected, label: this.label ? this.label : this.value, ref: this.dropdownItemRef })));
|
|
93
|
+
}, checked: this.selected, disabled: this.disabled, label: this.label ? this.label : this.value, ref: this.dropdownItemRef })));
|
|
87
94
|
}
|
|
88
95
|
static get is() { return "ix-select-item"; }
|
|
89
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -157,6 +164,29 @@ export class SelectItem extends Mixin(...DefaultMixins, FocusVisibleMixin, Compo
|
|
|
157
164
|
"attribute": "selected",
|
|
158
165
|
"defaultValue": "false"
|
|
159
166
|
},
|
|
167
|
+
"disabled": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"mutable": false,
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "boolean",
|
|
172
|
+
"resolved": "boolean",
|
|
173
|
+
"references": {}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [{
|
|
179
|
+
"name": "since",
|
|
180
|
+
"text": "5.1.0"
|
|
181
|
+
}],
|
|
182
|
+
"text": "Disable the item. A disabled item cannot be selected via mouse or keyboard\nand is excluded from the focusable items of the parent ix-select."
|
|
183
|
+
},
|
|
184
|
+
"getter": false,
|
|
185
|
+
"setter": false,
|
|
186
|
+
"reflect": true,
|
|
187
|
+
"attribute": "disabled",
|
|
188
|
+
"defaultValue": "false"
|
|
189
|
+
},
|
|
160
190
|
"hover": {
|
|
161
191
|
"type": "boolean",
|
|
162
192
|
"mutable": false,
|