@siemens/ix 5.2.0 → 5.2.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 +1 -1
- 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-avatar.js +1 -1
- package/components/ix-badge.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-list.js +1 -1
- package/components/ix-category-filter.js +1 -1
- package/components/ix-chat-attachment.js +1 -1
- package/components/ix-chat-input.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-content-header.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-datetime-input.js +1 -1
- package/components/ix-datetime-picker.js +1 -1
- package/components/ix-dropdown-button.js +1 -1
- package/components/ix-dropdown-item.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.js +1 -1
- package/components/ix-group-context-menu.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-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.js +1 -1
- package/components/ix-menu.js +1 -1
- package/components/ix-message-bar.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.js +1 -1
- package/components/ix-pill.js +1 -1
- package/components/ix-popover-header.js +1 -1
- package/components/ix-popover.js +1 -1
- 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-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-tabs.js +1 -1
- package/components/ix-textarea.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-upload.js +1 -1
- package/components/ix-workflow-step.js +1 -1
- package/components/{p-Bs5X90wM.js → p-B3ZUi0gM.js} +1 -1
- package/components/p-BE708_H3.js +1 -0
- package/components/p-BF2IsI5j.js +1 -0
- package/components/{p-l9UTiHpM.js → p-BGpGr8Qv.js} +1 -1
- package/components/{p-CEE0wwD3.js → p-BKCLcJ_A.js} +1 -1
- package/components/{p-D7sEY2UQ.js → p-BKVBe7Co.js} +1 -1
- package/components/{p-3U_cSqu_.js → p-BOImZPcG.js} +1 -1
- package/components/{p-CtZAuwv3.js → p-BpE93ty6.js} +1 -1
- package/components/p-BqeSHO6C.js +1 -0
- package/components/{p-BGOtCwtj.js → p-CAd-WgR8.js} +1 -1
- package/components/p-CFH9HkmQ.js +1 -0
- package/components/p-CGGWaScq.js +1 -0
- package/components/{p-WisOWbJ8.js → p-CHJbp28K.js} +1 -1
- package/components/{p-BQ-hS49k.js → p-CRbQNmxe.js} +1 -1
- package/components/{p-DmtgI24u.js → p-CYgC-XN6.js} +1 -1
- package/components/p-CiP3eKpd.js +1 -0
- package/components/{p-OxstEnSC.js → p-CqWfy46u.js} +1 -1
- package/components/p-D5-dW4IM.js +1 -0
- package/components/p-DB-zpRCO.js +1 -0
- package/components/{p-C21npbUc.js → p-DD206pTM.js} +1 -1
- package/components/{p-D_HzQCU-.js → p-DIq_C5Sa.js} +1 -1
- package/components/p-DKU5FVxI.js +1 -0
- package/components/{p-snX1FfdL.js → p-DLgZfUmI.js} +1 -1
- package/components/p-DXmwthlZ.js +1 -0
- package/components/p-D_VBAyPm.js +1 -0
- package/components/p-DcOoa9vE.js +1 -0
- package/components/{p-CatmTvkh.js → p-DyC90hvu.js} +1 -1
- package/components/p-DzDB4UBp.js +1 -0
- package/components/p-QnnFQ3fz.js +1 -0
- package/components/p-WX1HYV2-.js +1 -0
- package/components/{p-BC2PyjjU.js → p-_irxfS9S.js} +1 -1
- package/components/{p-CUpOF7jN.js → p-n2_EOgMr.js} +1 -1
- package/components/p-q_MHsaAK.js +1 -0
- package/components/{p-eGuQ8D3W.js → p-viP8I2_s.js} +1 -1
- package/dist/cjs/{a11y-_XjpTo2w.js → a11y--G19CFwe.js} +1 -0
- package/dist/cjs/{animation-hxDbANsw.js → animation-BIfSQAkX.js} +8 -12
- package/dist/cjs/{base-button-BP6iIMR7.js → base-button-DIhNZecD.js} +1 -1
- package/dist/cjs/{base-icon-button-BmiGQb9v.js → base-icon-button-DASKxRmK.js} +1 -1
- package/dist/cjs/{focus-visible.mixin-1V7Eldn_.js → focus-visible.mixin-GrZAmMez.js} +1 -1
- package/dist/cjs/{helper-text-util-Ci_KFQZ4.js → helper-text-util-EAfzAOH6.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/inherit-aria-attributes.mixin-DZ_vNjkJ.js +306 -0
- package/dist/cjs/{input.fc-xGzM_I6q.js → input.fc-ellguRiE.js} +8 -3
- package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-badge.cjs.entry.js +8 -159
- package/dist/cjs/ix-blind.cjs.entry.js +13 -7
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +4 -157
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +4 -157
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +7 -4
- package/dist/cjs/ix-category-filter.cjs.entry.js +7 -7
- package/dist/cjs/ix-chat-input.cjs.entry.js +8 -8
- package/dist/cjs/ix-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +2 -157
- package/dist/cjs/ix-col_4.cjs.entry.js +5 -5
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/ix-date-input.cjs.entry.js +3 -3
- package/dist/cjs/ix-date-picker.cjs.entry.js +15 -11
- package/dist/cjs/ix-datetime-input.cjs.entry.js +3 -3
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +9 -6
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +13 -7
- package/dist/cjs/ix-event-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list.cjs.entry.js +6 -2
- package/dist/cjs/ix-field-label_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +9 -9
- package/dist/cjs/ix-helper-text.cjs.entry.js +2 -2
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -160
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +5 -160
- package/dist/cjs/ix-input.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +24 -166
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-item.cjs.entry.js +11 -160
- package/dist/cjs/ix-menu.cjs.entry.js +40 -18
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +15 -8
- package/dist/cjs/ix-number-input.cjs.entry.js +16 -13
- package/dist/cjs/ix-pagination.cjs.entry.js +3 -3
- package/dist/cjs/ix-pane.cjs.entry.js +2 -2
- package/dist/cjs/ix-pill_4.cjs.entry.js +12 -160
- package/dist/cjs/ix-popover-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-popover.cjs.entry.js +5 -156
- package/dist/cjs/ix-radio.cjs.entry.js +1 -1
- package/dist/cjs/ix-select.cjs.entry.js +10 -10
- package/dist/cjs/ix-slider.cjs.entry.js +1 -1
- package/dist/cjs/ix-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ix-time-input.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -159
- package/dist/cjs/ix-toggle.cjs.entry.js +2 -155
- package/dist/cjs/ix-tooltip.cjs.entry.js +6 -2
- package/dist/cjs/ix-tree.cjs.entry.js +1 -0
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-workflow-step.cjs.entry.js +11 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/collection/components/badge/badge.js +7 -5
- package/dist/collection/components/badge/test/badge.page.js +6 -2
- package/dist/collection/components/blind/blind.js +11 -5
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +108 -0
- package/dist/collection/components/button/button.css +54 -0
- package/dist/collection/components/card-accordion/card-accordion.js +7 -4
- package/dist/collection/components/category-filter/category-filter.css +54 -0
- package/dist/collection/components/category-filter/category-filter.js +4 -4
- package/dist/collection/components/chat-input/chat-input.js +8 -8
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +4 -4
- package/dist/collection/components/date-picker/date-picker.js +15 -11
- package/dist/collection/components/dropdown/dropdown.js +11 -5
- package/dist/collection/components/dropdown-button/dropdown-button.css +9 -180
- package/dist/collection/components/dropdown-button/dropdown-button.js +7 -4
- package/dist/collection/components/event-list/event-list.js +6 -2
- package/dist/collection/components/group/group.js +9 -9
- package/dist/collection/components/icon-button/icon-button.css +54 -0
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +54 -0
- package/dist/collection/components/input/input.util.js +6 -1
- package/dist/collection/components/input/number-input.js +13 -10
- package/dist/collection/components/menu/menu-expand-icon.css +6 -0
- package/dist/collection/components/menu/menu.js +39 -17
- package/dist/collection/components/menu-category/menu-category.js +22 -11
- package/dist/collection/components/menu-item/menu-item.js +9 -5
- package/dist/collection/components/modal/modal.js +13 -6
- package/dist/collection/components/modal-header/modal-header.js +2 -2
- package/dist/collection/components/pagination/pagination.css +54 -0
- package/dist/collection/components/popover/popover.js +3 -1
- package/dist/collection/components/popover/test/popover.page.js +3 -2
- package/dist/collection/components/select/select.js +9 -9
- package/dist/collection/components/tabs/tabs.js +10 -5
- package/dist/collection/components/time-picker/test/expect-defined.js +13 -0
- package/dist/collection/components/time-picker/time-picker.js +5 -5
- package/dist/collection/components/toggle-button/toggle-button.css +54 -0
- package/dist/collection/components/tooltip/tooltip.js +6 -2
- package/dist/collection/components/utils/a11y.js +1 -1
- package/dist/collection/components/utils/animation.js +8 -12
- package/dist/collection/components/utils/internal/mixins/accessibility/aria-attribute-observer.js +106 -0
- package/dist/collection/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.js +175 -166
- package/dist/collection/components/utils/lazy-list/lazy.js +1 -0
- package/dist/collection/components/workflow-step/workflow-step.css +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +10 -4
- package/dist/collection/tests/utils/test/page.js +3 -0
- package/dist/esm/{a11y-C21npbUc.js → a11y-DD206pTM.js} +1 -1
- package/dist/esm/{animation-DNIQ2C1K.js → animation-BqeSHO6C.js} +8 -12
- package/dist/esm/{base-button-DZdtpLxn.js → base-button-Oanl-VqF.js} +1 -1
- package/dist/esm/{base-icon-button-DufFLJC-.js → base-icon-button-CxmfMOOd.js} +1 -1
- package/dist/esm/{focus-visible.mixin-CaRK3Ex_.js → focus-visible.mixin-DNYMa4dY.js} +1 -1
- package/dist/esm/{helper-text-util-sQKO6RPJ.js → helper-text-util-BJ-ZMW2J.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/inherit-aria-attributes.mixin-BmTKblYV.js +304 -0
- package/dist/esm/{input.fc-DliqEtCM.js → input.fc-Cwmx0lGN.js} +8 -3
- package/dist/esm/ix-action-card.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +1 -1
- package/dist/esm/ix-avatar_2.entry.js +2 -2
- package/dist/esm/ix-badge.entry.js +8 -159
- package/dist/esm/ix-blind.entry.js +13 -7
- package/dist/esm/ix-breadcrumb-item.entry.js +4 -157
- package/dist/esm/ix-breadcrumb.entry.js +1 -1
- package/dist/esm/ix-button.entry.js +4 -157
- package/dist/esm/ix-card-accordion_2.entry.js +7 -4
- package/dist/esm/ix-category-filter.entry.js +7 -7
- package/dist/esm/ix-chat-input.entry.js +8 -8
- package/dist/esm/ix-checkbox-group.entry.js +1 -1
- package/dist/esm/ix-checkbox.entry.js +1 -1
- package/dist/esm/ix-chip.entry.js +2 -157
- package/dist/esm/ix-col_4.entry.js +5 -5
- package/dist/esm/ix-date-dropdown.entry.js +6 -6
- package/dist/esm/ix-date-input.entry.js +3 -3
- package/dist/esm/ix-date-picker.entry.js +15 -11
- package/dist/esm/ix-datetime-input.entry.js +3 -3
- package/dist/esm/ix-dropdown-button.entry.js +9 -6
- package/dist/esm/ix-dropdown_2.entry.js +13 -7
- package/dist/esm/ix-event-list-item.entry.js +1 -1
- package/dist/esm/ix-event-list.entry.js +6 -2
- package/dist/esm/ix-field-label_2.entry.js +2 -2
- package/dist/esm/ix-filter-chip_2.entry.js +2 -2
- package/dist/esm/ix-flip-tile.entry.js +1 -1
- package/dist/esm/ix-group.entry.js +9 -9
- package/dist/esm/ix-helper-text.entry.js +2 -2
- package/dist/esm/ix-icon-button_2.entry.js +5 -160
- package/dist/esm/ix-icon-toggle-button.entry.js +5 -160
- package/dist/esm/ix-input.entry.js +3 -3
- package/dist/esm/ix-menu-avatar.entry.js +1 -1
- package/dist/esm/ix-menu-category.entry.js +24 -166
- package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
- package/dist/esm/ix-menu-item.entry.js +11 -160
- package/dist/esm/ix-menu.entry.js +40 -18
- package/dist/esm/ix-modal-content_2.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +15 -8
- package/dist/esm/ix-number-input.entry.js +16 -13
- package/dist/esm/ix-pagination.entry.js +3 -3
- package/dist/esm/ix-pane.entry.js +2 -2
- package/dist/esm/ix-pill_4.entry.js +12 -160
- package/dist/esm/ix-popover-header.entry.js +1 -1
- package/dist/esm/ix-popover.entry.js +5 -156
- package/dist/esm/ix-radio.entry.js +1 -1
- package/dist/esm/ix-select.entry.js +10 -10
- package/dist/esm/ix-slider.entry.js +1 -1
- package/dist/esm/ix-textarea.entry.js +3 -3
- package/dist/esm/ix-time-input.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js +4 -159
- package/dist/esm/ix-toggle.entry.js +2 -155
- package/dist/esm/ix-tooltip.entry.js +6 -2
- package/dist/esm/ix-tree.entry.js +1 -0
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-workflow-step.entry.js +11 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-0409f281.entry.js +1 -0
- package/dist/siemens-ix/{p-2e780c86.entry.js → p-0819923e.entry.js} +1 -1
- package/dist/siemens-ix/p-0b875bbd.entry.js +1 -0
- package/dist/siemens-ix/p-1a7b51d8.entry.js +1 -0
- package/dist/siemens-ix/{p-2b0ffba0.entry.js → p-1aef893c.entry.js} +1 -1
- package/dist/siemens-ix/{p-03745110.entry.js → p-213059a9.entry.js} +1 -1
- package/dist/siemens-ix/p-24138425.entry.js +1 -0
- package/dist/siemens-ix/{p-29e8126a.entry.js → p-32104d25.entry.js} +1 -1
- package/dist/siemens-ix/{p-447d52de.entry.js → p-35042cda.entry.js} +1 -1
- package/dist/siemens-ix/p-351e8732.entry.js +1 -0
- package/dist/siemens-ix/{p-884fd236.entry.js → p-38eef16a.entry.js} +1 -1
- package/dist/siemens-ix/p-3a60004f.entry.js +1 -0
- package/dist/siemens-ix/p-3ad11c04.entry.js +1 -0
- package/dist/siemens-ix/p-3c92d126.entry.js +1 -0
- package/dist/siemens-ix/{p-d0649c07.entry.js → p-3fe85552.entry.js} +1 -1
- package/dist/siemens-ix/{p-f4575603.entry.js → p-40239cf6.entry.js} +1 -1
- package/dist/siemens-ix/{p-a92495b8.entry.js → p-403b7d10.entry.js} +1 -1
- package/dist/siemens-ix/p-4739e88e.entry.js +1 -0
- package/dist/siemens-ix/p-4c765c73.entry.js +1 -0
- package/dist/siemens-ix/{p-0b10bb78.entry.js → p-50ece3e2.entry.js} +1 -1
- package/dist/siemens-ix/p-53319a22.entry.js +1 -0
- package/dist/siemens-ix/{p-1fbb010f.entry.js → p-571a1628.entry.js} +1 -1
- package/dist/siemens-ix/{p-4079292f.entry.js → p-60f7be48.entry.js} +1 -1
- package/dist/siemens-ix/p-643ed439.entry.js +1 -0
- package/dist/siemens-ix/p-6505e43d.entry.js +1 -0
- package/dist/siemens-ix/{p-217dc62a.entry.js → p-675e2aa8.entry.js} +1 -1
- package/dist/siemens-ix/{p-99b97922.entry.js → p-79a08a2a.entry.js} +1 -1
- package/dist/siemens-ix/p-83827bb2.entry.js +1 -0
- package/dist/siemens-ix/p-859294b4.entry.js +1 -0
- package/dist/siemens-ix/p-8af23465.entry.js +1 -0
- package/dist/siemens-ix/{p-6ffe8ec7.entry.js → p-8bc225b7.entry.js} +1 -1
- package/dist/siemens-ix/p-9254cb19.entry.js +1 -0
- package/dist/siemens-ix/p-9c6e5dcc.entry.js +1 -0
- package/dist/siemens-ix/{p-bf827cb3.entry.js → p-9df616d3.entry.js} +1 -1
- package/dist/siemens-ix/p-Bemn50Nk.js +1 -0
- package/dist/siemens-ix/p-BqeSHO6C.js +1 -0
- package/dist/siemens-ix/{p-HpQs38Y0.js → p-CDKWxg_L.js} +1 -1
- package/dist/siemens-ix/{p-CXbob2Ew.js → p-CLxF-dX8.js} +1 -1
- package/dist/siemens-ix/p-Cv_omozQ.js +1 -0
- package/dist/siemens-ix/{p-C21npbUc.js → p-DD206pTM.js} +1 -1
- package/dist/siemens-ix/p-a05bf6b5.entry.js +1 -0
- package/dist/siemens-ix/p-a4c3f3d3.entry.js +1 -0
- package/dist/siemens-ix/{p-836df58e.entry.js → p-aa0770ab.entry.js} +1 -1
- package/dist/siemens-ix/{p-89f6329b.entry.js → p-b5bf48cb.entry.js} +1 -1
- package/dist/siemens-ix/p-b9dcbd84.entry.js +1 -0
- package/dist/siemens-ix/{p-f3528209.entry.js → p-c393c20e.entry.js} +1 -1
- package/dist/siemens-ix/{p-b3eaf43d.entry.js → p-caac5984.entry.js} +1 -1
- package/dist/siemens-ix/p-cfd75035.entry.js +1 -0
- package/dist/siemens-ix/{p-47e2c5a1.entry.js → p-d4d99140.entry.js} +1 -1
- package/dist/siemens-ix/p-d94ad8f8.entry.js +1 -0
- package/dist/siemens-ix/p-da700215.entry.js +1 -0
- package/dist/siemens-ix/p-ddb49318.entry.js +1 -0
- package/dist/siemens-ix/{p-1afa8fb3.entry.js → p-de9a4607.entry.js} +1 -1
- package/dist/siemens-ix/{p-4b85292e.entry.js → p-e2e7c16a.entry.js} +1 -1
- package/dist/siemens-ix/p-e5239c6d.entry.js +1 -0
- package/dist/siemens-ix/p-e87e947c.entry.js +1 -0
- package/dist/siemens-ix/p-e8d73d19.entry.js +1 -0
- package/dist/siemens-ix/{p-0329eb6e.entry.js → p-e8f5519f.entry.js} +1 -1
- package/dist/siemens-ix/{p-92804589.entry.js → p-f7f6cf46.entry.js} +1 -1
- package/dist/siemens-ix/{p-bd2f7002.entry.js → p-fcfecc91.entry.js} +1 -1
- package/dist/siemens-ix/{p-kmPsIcs5.js → p-rgh7lt60.js} +1 -1
- package/dist/siemens-ix/p-xptA1Kt1.js +1 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -16
- package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +1 -16
- package/dist/types/components/button/button.d.ts +1 -16
- package/dist/types/components/chip/chip.d.ts +1 -16
- package/dist/types/components/dropdown/dropdown-focus.d.ts +1 -1
- package/dist/types/components/group/group.d.ts +1 -1
- package/dist/types/components/icon-button/icon-button.d.ts +2 -17
- package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +1 -16
- package/dist/types/components/input/input.util.d.ts +2 -3
- package/dist/types/components/input/number-input.d.ts +1 -0
- package/dist/types/components/menu/menu.d.ts +1 -1
- package/dist/types/components/menu-category/menu-category.d.ts +2 -17
- package/dist/types/components/menu-item/menu-item.d.ts +1 -16
- package/dist/types/components/modal/modal.d.ts +1 -0
- package/dist/types/components/modal-header/modal-header.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +1 -16
- package/dist/types/components/tabs/tabs.d.ts +3 -16
- package/dist/types/components/time-picker/test/expect-defined.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +1 -16
- package/dist/types/components/toggle-button/toggle-button.d.ts +1 -16
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/utils/a11y.d.ts +1 -0
- package/dist/types/components/utils/internal/mixins/accessibility/aria-attribute-observer.d.ts +7 -0
- package/dist/types/components/utils/internal/mixins/accessibility/inherit-aria-attributes.mixin.d.ts +7 -18
- package/dist/types/components/utils/shadow-dom.d.ts +1 -1
- package/dist/types/components/workflow-step/workflow-step.d.ts +1 -0
- package/hydrate/index.js +535 -2015
- package/hydrate/index.mjs +535 -2015
- package/package.json +1 -1
- package/components/p-1FBWW6v2.js +0 -1
- package/components/p-BDnx22Gp.js +0 -1
- package/components/p-BHoJOFM-.js +0 -1
- package/components/p-BST8QY5w.js +0 -1
- package/components/p-BcbFeRB0.js +0 -1
- package/components/p-CLDB-pmj.js +0 -1
- package/components/p-CRtj-KBq.js +0 -1
- package/components/p-CTRSoM-z.js +0 -1
- package/components/p-CgPr717U.js +0 -1
- package/components/p-CvAmaEU2.js +0 -1
- package/components/p-DNIQ2C1K.js +0 -1
- package/components/p-DdlGyKd2.js +0 -1
- package/components/p-DtWFUcZO.js +0 -1
- package/components/p-DylHkzl6.js +0 -1
- package/components/p-NXyac9kC.js +0 -1
- package/components/p-hf_zqlB1.js +0 -1
- package/dist/cjs/inherit-aria-attributes.mixin-EyRU0cDO.js +0 -36
- package/dist/esm/inherit-aria-attributes.mixin-nCmPujqf.js +0 -34
- package/dist/siemens-ix/p-0555a6fb.entry.js +0 -1
- package/dist/siemens-ix/p-05c35730.entry.js +0 -1
- package/dist/siemens-ix/p-0f2ac675.entry.js +0 -1
- package/dist/siemens-ix/p-12bce791.entry.js +0 -1
- package/dist/siemens-ix/p-30008054.entry.js +0 -1
- package/dist/siemens-ix/p-488b7074.entry.js +0 -1
- package/dist/siemens-ix/p-49d8b129.entry.js +0 -1
- package/dist/siemens-ix/p-55a57ce6.entry.js +0 -1
- package/dist/siemens-ix/p-55ae6204.entry.js +0 -1
- package/dist/siemens-ix/p-55e8ad3b.entry.js +0 -1
- package/dist/siemens-ix/p-5f48d238.entry.js +0 -1
- package/dist/siemens-ix/p-64432fa0.entry.js +0 -1
- package/dist/siemens-ix/p-6ebf66b8.entry.js +0 -1
- package/dist/siemens-ix/p-7690a56d.entry.js +0 -1
- package/dist/siemens-ix/p-80d7a07a.entry.js +0 -1
- package/dist/siemens-ix/p-816bcf01.entry.js +0 -1
- package/dist/siemens-ix/p-86ad005e.entry.js +0 -1
- package/dist/siemens-ix/p-8c3e7613.entry.js +0 -1
- package/dist/siemens-ix/p-8df1362f.entry.js +0 -1
- package/dist/siemens-ix/p-9094212f.entry.js +0 -1
- package/dist/siemens-ix/p-99df3561.entry.js +0 -1
- package/dist/siemens-ix/p-B4oiZyZC.js +0 -1
- package/dist/siemens-ix/p-DNIQ2C1K.js +0 -1
- package/dist/siemens-ix/p-a1d79970.entry.js +0 -1
- package/dist/siemens-ix/p-a7d695f5.entry.js +0 -1
- package/dist/siemens-ix/p-baf74d39.entry.js +0 -1
- package/dist/siemens-ix/p-bf75d77b.entry.js +0 -1
- package/dist/siemens-ix/p-cddc43e2.entry.js +0 -1
- package/dist/siemens-ix/p-cfd83faa.entry.js +0 -1
- package/dist/siemens-ix/p-fff1f8b1.entry.js +0 -1
- package/dist/siemens-ix/p-vphIrWGB.js +0 -1
- package/dist/siemens-ix/p-yUgQMMln.js +0 -1
- /package/dist/siemens-ix/{p-383e95ad.entry.js → p-f4d8f94b.entry.js} +0 -0
|
@@ -1,190 +1,199 @@
|
|
|
1
|
-
import { a11yHostAttributes, } from "./../../../a11y";
|
|
1
|
+
import { a11yAttributes, a11yHostAttributes, } from "./../../../a11y";
|
|
2
|
+
import { flushAriaAttributeMutations, observeAriaAttributes, runWithoutAriaAttributeObservation, unobserveAriaAttributes, } from "./aria-attribute-observer";
|
|
2
3
|
export const InheritAriaAttributesMixin = (Base) => {
|
|
3
4
|
class InheritAriaAttributesMixinCtor extends Base {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
7
|
+
}
|
|
4
8
|
inheritAriaAttributes = {};
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
#ariaObserverInitialized = false;
|
|
10
|
+
#ariaObservationActive = false;
|
|
11
|
+
#ariaInitializationPending = false;
|
|
12
|
+
#disconnected = false;
|
|
13
|
+
#ariaAttributesBeforeDisconnect;
|
|
14
|
+
#ariaAttributesChangedWhileDisconnected = new Set();
|
|
15
|
+
#ariaAttributeRemovalPatched = false;
|
|
16
|
+
#readingAriaAttributes = false;
|
|
17
|
+
#handleAriaMutations(changedAttributes) {
|
|
18
|
+
const hostElement = this.#getHostElement();
|
|
19
|
+
const ignoredAttributes = this.getIgnoredAriaAttributes();
|
|
20
|
+
let updatedAttributes = this.inheritAriaAttributes;
|
|
21
|
+
changedAttributes.forEach((attributeName) => {
|
|
22
|
+
if (ignoredAttributes.includes(attributeName)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const newValue = hostElement.getAttribute(attributeName);
|
|
26
|
+
const currentValue = updatedAttributes[attributeName] ?? null;
|
|
27
|
+
if (newValue === currentValue) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (updatedAttributes === this.inheritAriaAttributes) {
|
|
31
|
+
updatedAttributes = { ...updatedAttributes };
|
|
32
|
+
}
|
|
33
|
+
if (newValue === null) {
|
|
34
|
+
delete updatedAttributes[attributeName];
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
updatedAttributes[attributeName] = newValue;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
if (updatedAttributes !== this.inheritAriaAttributes) {
|
|
41
|
+
this.inheritAriaAttributes = updatedAttributes;
|
|
42
|
+
}
|
|
7
43
|
}
|
|
8
44
|
getIgnoredAriaAttributes() {
|
|
9
45
|
return [];
|
|
10
46
|
}
|
|
47
|
+
readAriaAttributesFromHost() {
|
|
48
|
+
const hostElement = this.#getHostElement();
|
|
49
|
+
return runWithoutAriaAttributeObservation(hostElement, () => {
|
|
50
|
+
this.#readingAriaAttributes = true;
|
|
51
|
+
try {
|
|
52
|
+
return a11yHostAttributes(hostElement, this.getIgnoredAriaAttributes());
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
this.#readingAriaAttributes = false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
#getHostElement() {
|
|
60
|
+
if (!this.hostElement) {
|
|
61
|
+
throw new Error('Host element is not defined. Make sure to apply the InheritAriaAttributesMixin to a Stencil component.');
|
|
62
|
+
}
|
|
63
|
+
return this.hostElement;
|
|
64
|
+
}
|
|
65
|
+
#getAriaAttributesFromHost() {
|
|
66
|
+
const hostElement = this.#getHostElement();
|
|
67
|
+
const attributes = new Map();
|
|
68
|
+
a11yAttributes.forEach((attributeName) => {
|
|
69
|
+
const value = hostElement.getAttribute(attributeName);
|
|
70
|
+
if (value !== null) {
|
|
71
|
+
attributes.set(attributeName, value);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return attributes;
|
|
75
|
+
}
|
|
76
|
+
#patchAriaAttributeRemoval() {
|
|
77
|
+
if (this.#ariaAttributeRemovalPatched ||
|
|
78
|
+
typeof MutationObserver === 'undefined') {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const hostElement = this.#getHostElement();
|
|
82
|
+
const removeAttribute = hostElement.removeAttribute.bind(hostElement);
|
|
83
|
+
// ARIA attributes are moved from the host to the internal element during
|
|
84
|
+
// initialization. When Angular later calls removeAttribute(), the host
|
|
85
|
+
// attribute is already absent, so no MutationObserver record is created.
|
|
86
|
+
// Intercept the call to also clear the forwarded internal attribute.
|
|
87
|
+
hostElement.removeAttribute = (attributeName) => {
|
|
88
|
+
removeAttribute(attributeName);
|
|
89
|
+
if (a11yAttributes.includes(attributeName)) {
|
|
90
|
+
if (this.#readingAriaAttributes) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (!this.#ariaObservationActive) {
|
|
94
|
+
this.#ariaAttributesChangedWhileDisconnected.add(attributeName);
|
|
95
|
+
}
|
|
96
|
+
this.#updateInheritedAriaAttribute(null, attributeName);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
this.#ariaAttributeRemovalPatched = true;
|
|
100
|
+
}
|
|
101
|
+
#observeAriaAttributes() {
|
|
102
|
+
this.#ariaObservationActive = observeAriaAttributes(this.#getHostElement(), (attributeNames) => this.#handleAriaMutations(attributeNames));
|
|
103
|
+
}
|
|
104
|
+
connectedCallback() {
|
|
105
|
+
if (super.connectedCallback) {
|
|
106
|
+
super.connectedCallback();
|
|
107
|
+
}
|
|
108
|
+
this.#disconnected = false;
|
|
109
|
+
if (this.#ariaInitializationPending && !this.#ariaObserverInitialized) {
|
|
110
|
+
this.#ariaInitializationPending = false;
|
|
111
|
+
this.#initializeAriaAttributes();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (this.#ariaObserverInitialized) {
|
|
115
|
+
const hostElement = this.#getHostElement();
|
|
116
|
+
this.#observeAriaAttributes();
|
|
117
|
+
if (this.#ariaAttributesBeforeDisconnect) {
|
|
118
|
+
const inheritedAttributes = this.readAriaAttributesFromHost();
|
|
119
|
+
a11yAttributes.forEach((attributeName) => {
|
|
120
|
+
const oldValue = this.#ariaAttributesBeforeDisconnect?.get(attributeName) ?? null;
|
|
121
|
+
const newValue = inheritedAttributes[attributeName] ??
|
|
122
|
+
hostElement.getAttribute(attributeName);
|
|
123
|
+
if (newValue !== oldValue ||
|
|
124
|
+
this.#ariaAttributesChangedWhileDisconnected.has(attributeName)) {
|
|
125
|
+
this.#updateInheritedAriaAttribute(newValue ?? null, attributeName);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
this.#ariaAttributesBeforeDisconnect = undefined;
|
|
131
|
+
this.#ariaAttributesChangedWhileDisconnected.clear();
|
|
132
|
+
}
|
|
11
133
|
componentWillLoad() {
|
|
12
|
-
|
|
134
|
+
if (super.componentWillLoad) {
|
|
135
|
+
const baseLoad = super.componentWillLoad();
|
|
136
|
+
if (baseLoad) {
|
|
137
|
+
return baseLoad.then(() => this.#initializeAriaAttributesIfConnected());
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
this.#initializeAriaAttributesIfConnected();
|
|
141
|
+
}
|
|
142
|
+
#initializeAriaAttributesIfConnected() {
|
|
143
|
+
if (this.#disconnected) {
|
|
144
|
+
this.#ariaInitializationPending = true;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
this.#initializeAriaAttributes();
|
|
148
|
+
}
|
|
149
|
+
#initializeAriaAttributes() {
|
|
150
|
+
this.inheritAriaAttributes = this.readAriaAttributesFromHost();
|
|
151
|
+
this.#patchAriaAttributeRemoval();
|
|
152
|
+
this.#ariaObserverInitialized = true;
|
|
153
|
+
this.#observeAriaAttributes();
|
|
13
154
|
}
|
|
14
|
-
|
|
155
|
+
#updateInheritedAriaAttribute(newValue, propName) {
|
|
15
156
|
const ignoredAttributes = this.getIgnoredAriaAttributes();
|
|
16
157
|
if (ignoredAttributes.includes(propName)) {
|
|
17
158
|
return;
|
|
18
159
|
}
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
160
|
+
const currentValue = this.inheritAriaAttributes[propName] ?? null;
|
|
161
|
+
if (newValue === currentValue) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const updatedAttributes = {
|
|
23
165
|
...this.inheritAriaAttributes,
|
|
24
|
-
...updateAttribute,
|
|
25
166
|
};
|
|
167
|
+
if (newValue === null) {
|
|
168
|
+
delete updatedAttributes[propName];
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
updatedAttributes[propName] = newValue;
|
|
172
|
+
}
|
|
173
|
+
this.inheritAriaAttributes = updatedAttributes;
|
|
174
|
+
}
|
|
175
|
+
disconnectedCallback() {
|
|
176
|
+
this.#disconnected = true;
|
|
177
|
+
this.#ariaAttributesChangedWhileDisconnected.clear();
|
|
178
|
+
if (this.#ariaObserverInitialized) {
|
|
179
|
+
flushAriaAttributeMutations();
|
|
180
|
+
this.#ariaAttributesBeforeDisconnect =
|
|
181
|
+
this.#getAriaAttributesFromHost();
|
|
182
|
+
unobserveAriaAttributes(this.#getHostElement());
|
|
183
|
+
this.#ariaObservationActive = false;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.#ariaAttributesBeforeDisconnect = undefined;
|
|
187
|
+
}
|
|
188
|
+
if (super.disconnectedCallback) {
|
|
189
|
+
super.disconnectedCallback();
|
|
190
|
+
}
|
|
26
191
|
}
|
|
27
192
|
static get states() {
|
|
28
193
|
return {
|
|
29
194
|
"inheritAriaAttributes": {}
|
|
30
195
|
};
|
|
31
196
|
}
|
|
32
|
-
static get watchers() {
|
|
33
|
-
return [{
|
|
34
|
-
"propName": "role",
|
|
35
|
-
"methodName": "ariaAttributeChanged"
|
|
36
|
-
}, {
|
|
37
|
-
"propName": "aria-activedescendant",
|
|
38
|
-
"methodName": "ariaAttributeChanged"
|
|
39
|
-
}, {
|
|
40
|
-
"propName": "aria-atomic",
|
|
41
|
-
"methodName": "ariaAttributeChanged"
|
|
42
|
-
}, {
|
|
43
|
-
"propName": "aria-autocomplete",
|
|
44
|
-
"methodName": "ariaAttributeChanged"
|
|
45
|
-
}, {
|
|
46
|
-
"propName": "aria-braillelabel",
|
|
47
|
-
"methodName": "ariaAttributeChanged"
|
|
48
|
-
}, {
|
|
49
|
-
"propName": "aria-brailleroledescription",
|
|
50
|
-
"methodName": "ariaAttributeChanged"
|
|
51
|
-
}, {
|
|
52
|
-
"propName": "aria-busy",
|
|
53
|
-
"methodName": "ariaAttributeChanged"
|
|
54
|
-
}, {
|
|
55
|
-
"propName": "aria-checked",
|
|
56
|
-
"methodName": "ariaAttributeChanged"
|
|
57
|
-
}, {
|
|
58
|
-
"propName": "aria-colcount",
|
|
59
|
-
"methodName": "ariaAttributeChanged"
|
|
60
|
-
}, {
|
|
61
|
-
"propName": "aria-colindex",
|
|
62
|
-
"methodName": "ariaAttributeChanged"
|
|
63
|
-
}, {
|
|
64
|
-
"propName": "aria-colindextext",
|
|
65
|
-
"methodName": "ariaAttributeChanged"
|
|
66
|
-
}, {
|
|
67
|
-
"propName": "aria-colspan",
|
|
68
|
-
"methodName": "ariaAttributeChanged"
|
|
69
|
-
}, {
|
|
70
|
-
"propName": "aria-controls",
|
|
71
|
-
"methodName": "ariaAttributeChanged"
|
|
72
|
-
}, {
|
|
73
|
-
"propName": "aria-current",
|
|
74
|
-
"methodName": "ariaAttributeChanged"
|
|
75
|
-
}, {
|
|
76
|
-
"propName": "aria-describedby",
|
|
77
|
-
"methodName": "ariaAttributeChanged"
|
|
78
|
-
}, {
|
|
79
|
-
"propName": "aria-description",
|
|
80
|
-
"methodName": "ariaAttributeChanged"
|
|
81
|
-
}, {
|
|
82
|
-
"propName": "aria-details",
|
|
83
|
-
"methodName": "ariaAttributeChanged"
|
|
84
|
-
}, {
|
|
85
|
-
"propName": "aria-disabled",
|
|
86
|
-
"methodName": "ariaAttributeChanged"
|
|
87
|
-
}, {
|
|
88
|
-
"propName": "aria-errormessage",
|
|
89
|
-
"methodName": "ariaAttributeChanged"
|
|
90
|
-
}, {
|
|
91
|
-
"propName": "aria-expanded",
|
|
92
|
-
"methodName": "ariaAttributeChanged"
|
|
93
|
-
}, {
|
|
94
|
-
"propName": "aria-flowto",
|
|
95
|
-
"methodName": "ariaAttributeChanged"
|
|
96
|
-
}, {
|
|
97
|
-
"propName": "aria-haspopup",
|
|
98
|
-
"methodName": "ariaAttributeChanged"
|
|
99
|
-
}, {
|
|
100
|
-
"propName": "aria-hidden",
|
|
101
|
-
"methodName": "ariaAttributeChanged"
|
|
102
|
-
}, {
|
|
103
|
-
"propName": "aria-invalid",
|
|
104
|
-
"methodName": "ariaAttributeChanged"
|
|
105
|
-
}, {
|
|
106
|
-
"propName": "aria-keyshortcuts",
|
|
107
|
-
"methodName": "ariaAttributeChanged"
|
|
108
|
-
}, {
|
|
109
|
-
"propName": "aria-label",
|
|
110
|
-
"methodName": "ariaAttributeChanged"
|
|
111
|
-
}, {
|
|
112
|
-
"propName": "aria-labelledby",
|
|
113
|
-
"methodName": "ariaAttributeChanged"
|
|
114
|
-
}, {
|
|
115
|
-
"propName": "aria-level",
|
|
116
|
-
"methodName": "ariaAttributeChanged"
|
|
117
|
-
}, {
|
|
118
|
-
"propName": "aria-live",
|
|
119
|
-
"methodName": "ariaAttributeChanged"
|
|
120
|
-
}, {
|
|
121
|
-
"propName": "aria-multiline",
|
|
122
|
-
"methodName": "ariaAttributeChanged"
|
|
123
|
-
}, {
|
|
124
|
-
"propName": "aria-multiselectable",
|
|
125
|
-
"methodName": "ariaAttributeChanged"
|
|
126
|
-
}, {
|
|
127
|
-
"propName": "aria-orientation",
|
|
128
|
-
"methodName": "ariaAttributeChanged"
|
|
129
|
-
}, {
|
|
130
|
-
"propName": "aria-owns",
|
|
131
|
-
"methodName": "ariaAttributeChanged"
|
|
132
|
-
}, {
|
|
133
|
-
"propName": "aria-placeholder",
|
|
134
|
-
"methodName": "ariaAttributeChanged"
|
|
135
|
-
}, {
|
|
136
|
-
"propName": "aria-posinset",
|
|
137
|
-
"methodName": "ariaAttributeChanged"
|
|
138
|
-
}, {
|
|
139
|
-
"propName": "aria-pressed",
|
|
140
|
-
"methodName": "ariaAttributeChanged"
|
|
141
|
-
}, {
|
|
142
|
-
"propName": "aria-readonly",
|
|
143
|
-
"methodName": "ariaAttributeChanged"
|
|
144
|
-
}, {
|
|
145
|
-
"propName": "aria-relevant",
|
|
146
|
-
"methodName": "ariaAttributeChanged"
|
|
147
|
-
}, {
|
|
148
|
-
"propName": "aria-required",
|
|
149
|
-
"methodName": "ariaAttributeChanged"
|
|
150
|
-
}, {
|
|
151
|
-
"propName": "aria-roledescription",
|
|
152
|
-
"methodName": "ariaAttributeChanged"
|
|
153
|
-
}, {
|
|
154
|
-
"propName": "aria-rowcount",
|
|
155
|
-
"methodName": "ariaAttributeChanged"
|
|
156
|
-
}, {
|
|
157
|
-
"propName": "aria-rowindex",
|
|
158
|
-
"methodName": "ariaAttributeChanged"
|
|
159
|
-
}, {
|
|
160
|
-
"propName": "aria-rowindextext",
|
|
161
|
-
"methodName": "ariaAttributeChanged"
|
|
162
|
-
}, {
|
|
163
|
-
"propName": "aria-rowspan",
|
|
164
|
-
"methodName": "ariaAttributeChanged"
|
|
165
|
-
}, {
|
|
166
|
-
"propName": "aria-selected",
|
|
167
|
-
"methodName": "ariaAttributeChanged"
|
|
168
|
-
}, {
|
|
169
|
-
"propName": "aria-setsize",
|
|
170
|
-
"methodName": "ariaAttributeChanged"
|
|
171
|
-
}, {
|
|
172
|
-
"propName": "aria-sort",
|
|
173
|
-
"methodName": "ariaAttributeChanged"
|
|
174
|
-
}, {
|
|
175
|
-
"propName": "aria-valuemax",
|
|
176
|
-
"methodName": "ariaAttributeChanged"
|
|
177
|
-
}, {
|
|
178
|
-
"propName": "aria-valuemin",
|
|
179
|
-
"methodName": "ariaAttributeChanged"
|
|
180
|
-
}, {
|
|
181
|
-
"propName": "aria-valuenow",
|
|
182
|
-
"methodName": "ariaAttributeChanged"
|
|
183
|
-
}, {
|
|
184
|
-
"propName": "aria-valuetext",
|
|
185
|
-
"methodName": "ariaAttributeChanged"
|
|
186
|
-
}];
|
|
187
|
-
}
|
|
188
197
|
}
|
|
189
198
|
return InheritAriaAttributesMixinCtor;
|
|
190
199
|
};
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
background-color: var(--theme-workflow-step--background--active);
|
|
203
203
|
}
|
|
204
204
|
:host .step:focus-visible {
|
|
205
|
-
outline: 1px solid var(--focus
|
|
206
|
-
|
|
205
|
+
outline: 1px solid var(--theme-color-focus-bdr);
|
|
206
|
+
outline-offset: var(--theme-btn--focus--outline-offset);
|
|
207
207
|
}
|
|
208
208
|
:host .step.selected {
|
|
209
209
|
background-color: var(--theme-workflow-step--background--selected);
|
|
@@ -95,6 +95,12 @@ export class WorkflowStep {
|
|
|
95
95
|
this.selectedChanged.emit(this.hostElement);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
onKeyDown(event) {
|
|
99
|
+
if (event.key === ' ' || event.key === 'Enter') {
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
this.onStepClick();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
98
104
|
getIconAriaLabel() {
|
|
99
105
|
switch (this.iconName) {
|
|
100
106
|
case iconCircle:
|
|
@@ -116,19 +122,19 @@ export class WorkflowStep {
|
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
124
|
render() {
|
|
119
|
-
const icons = !this.customIconSlot ? (h(Fragment, null, h("ix-icon", { color: "color-1", name: this.status === 'warning' ? iconTriangleFilled : iconCircleFilled, class: "absolute", size: "24" }), h("ix-icon", { color: this.iconColor, name: this.iconName, class: "absolute", size: "24", "aria-label": this.getIconAriaLabel() }))) : null;
|
|
120
|
-
return (h(Host, { key: '
|
|
125
|
+
const icons = !this.customIconSlot ? (h(Fragment, null, h("ix-icon", { color: "color-1", name: this.status === 'warning' ? iconTriangleFilled : iconCircleFilled, class: "absolute", size: "24", "aria-hidden": "true" }), h("ix-icon", { color: this.iconColor, name: this.iconName, class: "absolute", size: "24", "aria-label": this.getIconAriaLabel() }))) : null;
|
|
126
|
+
return (h(Host, { key: '0b31b31bfaaff7cdaf2a3b352dff5a4895d6a8f8', class: { 'host-vertical': this.vertical } }, h("div", { key: '60fc771cc2c3025281ae93b582f768ed00e70c1d', tabIndex: this.disabled || !this.clickable ? -1 : 0, role: this.clickable ? 'button' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.selected ? 'step' : undefined, onClick: () => this.onStepClick(), onKeyDown: (e) => this.onKeyDown(e), class: {
|
|
121
127
|
step: true,
|
|
122
128
|
selected: this.selected,
|
|
123
129
|
vertical: this.vertical,
|
|
124
130
|
disabled: this.disabled,
|
|
125
131
|
clickable: this.clickable && !this.disabled,
|
|
126
|
-
} }, h("div", { key: '
|
|
132
|
+
} }, h("div", { key: '6187e161fa1da2b660acdd1ca16f223803b32f51', class: "wrapper" }, h("div", { key: '918d1167813489e8caae3759bb104d91963d96f6', class: {
|
|
127
133
|
line: true,
|
|
128
134
|
selected: this.selected,
|
|
129
135
|
[this.status]: true,
|
|
130
136
|
[this.position]: true,
|
|
131
|
-
} }), h("div", { key: '
|
|
137
|
+
} }), h("div", { key: '11df46fc6530a9959a675d0e66b450b2b3beff23', class: "iconWrapper" }, icons, h("slot", { key: '8e17d1c02e11aa0da20fe2301a4b06394833a89d', name: "custom-icon" }))), h("div", { key: 'a195bbb624575f3c056492f0b3afadbd6f0b028d', class: "text" }, h("slot", { key: 'fb99dccd27941723266a0f4c7ecef584cba91ef2' })))));
|
|
132
138
|
}
|
|
133
139
|
static get is() { return "ix-workflow-step"; }
|
|
134
140
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,6 +121,9 @@ export const expect = baseExpect.extend({
|
|
|
121
121
|
if (activeDescendantElementLocator) {
|
|
122
122
|
try {
|
|
123
123
|
const activeDescendantId = await activeDescendantElementLocator.evaluate((el) => el.getAttribute('aria-activedescendant'));
|
|
124
|
+
if (activeDescendantId === null) {
|
|
125
|
+
throw new Error('Active descendant element does not have an aria-activedescendant attribute.');
|
|
126
|
+
}
|
|
124
127
|
await baseExpect(activeDescendantElementLocator).toHaveAttribute('aria-activedescendant', activeDescendantId);
|
|
125
128
|
}
|
|
126
129
|
catch (e) {
|
|
@@ -150,4 +150,4 @@ const forceTabIndex = (element, tabIndex) => {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
export { a11yBoolean as a, a11yHostAttributes as b, forceTabIndex as f, getFallbackLabelFromIconName as g };
|
|
153
|
+
export { a11yBoolean as a, a11yHostAttributes as b, a11yAttributes as c, forceTabIndex as f, getFallbackLabelFromIconName as g };
|
|
@@ -22,11 +22,11 @@ class Animation {
|
|
|
22
22
|
}
|
|
23
23
|
static ensureCache() {
|
|
24
24
|
if (this.#cache !== null)
|
|
25
|
-
return;
|
|
25
|
+
return this.#cache;
|
|
26
26
|
if (typeof window === 'undefined') {
|
|
27
27
|
// SSR only
|
|
28
28
|
this.#cache = { ...this.#FALLBACKS };
|
|
29
|
-
return;
|
|
29
|
+
return this.#cache;
|
|
30
30
|
}
|
|
31
31
|
const root = document.documentElement || document.body;
|
|
32
32
|
const styles = window.getComputedStyle(root);
|
|
@@ -43,6 +43,7 @@ class Animation {
|
|
|
43
43
|
slow: read('--theme-slow-time', this.#FALLBACKS.slow),
|
|
44
44
|
xslow: read('--theme-x-slow-time', this.#FALLBACKS.xslow),
|
|
45
45
|
};
|
|
46
|
+
return this.#cache;
|
|
46
47
|
}
|
|
47
48
|
static prefersReducedMotion() {
|
|
48
49
|
if (typeof window === 'undefined' || !window.matchMedia)
|
|
@@ -50,28 +51,23 @@ class Animation {
|
|
|
50
51
|
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
51
52
|
}
|
|
52
53
|
static get shortTime() {
|
|
53
|
-
this.ensureCache();
|
|
54
|
-
const t = this.#cache.short;
|
|
54
|
+
const t = this.ensureCache().short;
|
|
55
55
|
return this.prefersReducedMotion() ? 0 : t;
|
|
56
56
|
}
|
|
57
57
|
static get defaultTime() {
|
|
58
|
-
this.ensureCache();
|
|
59
|
-
const t = this.#cache.default;
|
|
58
|
+
const t = this.ensureCache().default;
|
|
60
59
|
return this.prefersReducedMotion() ? 0 : t;
|
|
61
60
|
}
|
|
62
61
|
static get mediumTime() {
|
|
63
|
-
this.ensureCache();
|
|
64
|
-
const t = this.#cache.medium;
|
|
62
|
+
const t = this.ensureCache().medium;
|
|
65
63
|
return this.prefersReducedMotion() ? 0 : t;
|
|
66
64
|
}
|
|
67
65
|
static get slowTime() {
|
|
68
|
-
this.ensureCache();
|
|
69
|
-
const t = this.#cache.slow;
|
|
66
|
+
const t = this.ensureCache().slow;
|
|
70
67
|
return this.prefersReducedMotion() ? 0 : t;
|
|
71
68
|
}
|
|
72
69
|
static get xSlowTime() {
|
|
73
|
-
this.ensureCache();
|
|
74
|
-
const t = this.#cache.xslow;
|
|
70
|
+
const t = this.ensureCache().xslow;
|
|
75
71
|
return this.prefersReducedMotion() ? 0 : t;
|
|
76
72
|
}
|
|
77
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-EBgS4zhE.js';
|
|
2
2
|
import { b as iconError, c as iconWarning, d as iconInfo, a as iconSuccess } from './index-BeX6RWvV.js';
|
|
3
|
-
import { a as a11yBoolean } from './a11y-
|
|
3
|
+
import { a as a11yBoolean } from './a11y-DD206pTM.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* SPDX-FileCopyrightText: 2024 Siemens AG
|
package/dist/esm/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { d as defaultRefreshTreeOptions, r as renderDefaultItem } from './tree.t
|
|
|
5
5
|
export { U as UploadFileState } from './upload-file-state-BGzrnl_l.js';
|
|
6
6
|
import { c as createDependencyFunction, g as getCoreDelegate } from './modal-DaGSr1j4.js';
|
|
7
7
|
export { b as closeModal, d as dismissModal, r as registerFrameworkDelegate, a as resolveDelegate, s as showModal } from './modal-DaGSr1j4.js';
|
|
8
|
-
import { A as Animation } from './animation-
|
|
8
|
+
import { A as Animation } from './animation-BqeSHO6C.js';
|
|
9
9
|
import { i as iconQuestion, a as iconSuccess, b as iconError, c as iconWarning, d as iconInfo } from './index-BeX6RWvV.js';
|
|
10
10
|
import { T as TypedEvent } from './typed-event-CWshStHZ.js';
|
|
11
11
|
export { g as getCurrentSystemAppearance, t as themeSwitcher } from './theme-switcher-CRVG13AN.js';
|