@siemens/ix 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/READMEOSS.html +1 -1
- package/components/index.js +26 -2
- package/components/index.js.map +1 -1
- package/components/ix-action-card.js +9 -4
- package/components/ix-action-card.js.map +1 -1
- package/components/ix-application-header.js +24 -16
- package/components/ix-application-header.js.map +1 -1
- package/components/ix-application-switch-modal.js +6 -6
- 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 +16 -8
- package/components/ix-breadcrumb.js.map +1 -1
- package/components/ix-button.js +1 -1
- package/components/ix-card-list.js +5 -5
- package/components/ix-card.js +1 -1
- package/components/ix-category-filter.js +20 -12
- package/components/ix-category-filter.js.map +1 -1
- package/components/ix-checkbox-group.js +4 -4
- package/components/ix-checkbox.js +1 -1
- package/components/ix-chip.js +4 -4
- package/components/ix-content-header.js +3 -3
- package/components/ix-custom-field.js +4 -4
- package/components/ix-date-dropdown.js +21 -13
- package/components/ix-date-dropdown.js.map +1 -1
- package/components/ix-date-input.js +21 -13
- package/components/ix-date-input.js.map +1 -1
- package/components/ix-date-picker.js +1 -1
- package/components/ix-datetime-picker.js +9 -9
- package/components/ix-drawer.js +8 -8
- package/components/ix-drawer.js.map +1 -1
- package/components/ix-dropdown-button.js +20 -8
- package/components/ix-dropdown-button.js.map +1 -1
- package/components/ix-dropdown-header.js +2 -2
- 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 +4 -4
- package/components/ix-event-list-item.js +4 -4
- package/components/ix-event-list.js +2 -2
- package/components/ix-expanding-search.js +6 -6
- 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 +5 -5
- package/components/ix-group-context-menu.js +1 -1
- package/components/ix-group.js +11 -11
- package/components/ix-helper-text.js +2 -2
- package/components/ix-icon-button.js +1 -1
- package/components/ix-icon-toggle-button.js +3 -3
- package/components/ix-input-group.js +1 -1
- package/components/ix-input.js +10 -10
- package/components/ix-key-value-list.js +1 -1
- package/components/ix-key-value.js +1 -1
- package/components/ix-kpi.js +3 -3
- package/components/ix-layout-auto.js +1 -1
- package/components/ix-layout-grid.js +1 -1
- package/components/ix-link-button.js +3 -3
- package/components/ix-menu-about-item.js +1 -1
- package/components/ix-menu-about-news.js +8 -8
- package/components/ix-menu-about.js +11 -6
- package/components/ix-menu-about.js.map +1 -1
- package/components/ix-menu-avatar-item.js +1 -1
- package/components/ix-menu-avatar.js +30 -10
- package/components/ix-menu-avatar.js.map +1 -1
- package/components/ix-menu-category.js +11 -11
- package/components/ix-menu-category.js.map +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 +51 -21
- package/components/ix-menu.js.map +1 -1
- package/components/ix-message-bar.js +4 -4
- package/components/ix-message-bar.js.map +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 +2 -2
- package/components/ix-modal.js +5 -7
- package/components/ix-modal.js.map +1 -1
- package/components/ix-number-input.js +11 -11
- package/components/ix-pagination.js +15 -15
- package/components/ix-pane-layout.js +2 -1
- package/components/ix-pane-layout.js.map +1 -1
- package/components/ix-pane.js +9 -9
- package/components/ix-pill.js +6 -6
- package/components/ix-progress-indicator.js +5 -5
- package/components/ix-push-card.js +9 -4
- package/components/ix-push-card.js.map +1 -1
- package/components/ix-radio-group.js +6 -6
- package/components/ix-radio.js +4 -4
- 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 +111 -30
- package/components/ix-slider.js.map +1 -1
- package/components/ix-spinner.js +1 -1
- package/components/ix-split-button.js +13 -5
- package/components/ix-split-button.js.map +1 -1
- package/components/ix-tab-item.js +1 -1
- package/components/ix-tabs.js +1 -1
- package/components/ix-textarea.js +6 -6
- package/components/ix-tile.js +4 -4
- package/components/ix-time-input.js +21 -13
- package/components/ix-time-input.js.map +1 -1
- package/components/ix-time-picker.js +1 -1
- package/components/ix-toast-container.js +8 -7
- package/components/ix-toast-container.js.map +1 -1
- package/components/ix-toast.js +1 -1
- package/components/ix-toggle-button.js +4 -4
- package/components/ix-toggle-button.js.map +1 -1
- package/components/ix-toggle.js +4 -4
- package/components/ix-tooltip.js +1 -1
- package/components/ix-tree-item.js +1 -1
- package/components/ix-tree.js +34 -5
- package/components/ix-tree.js.map +1 -1
- package/components/ix-typography.js +1 -1
- package/components/ix-upload.js +5 -5
- package/components/ix-validation-tooltip.js +2 -2
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-steps.js +1 -1
- package/components/{p-BLeWaHpy.js → p-0gGE-dfR.js} +12 -6
- package/components/p-0gGE-dfR.js.map +1 -0
- package/components/{p-Dy6xvLn4.js → p-B-O8iFhq.js} +4 -4
- package/components/{p-Dy6xvLn4.js.map → p-B-O8iFhq.js.map} +1 -1
- package/components/{p-10zMtvCF.js → p-B09CzVld.js} +133 -52
- package/components/p-B09CzVld.js.map +1 -0
- package/components/{p-DSTHZygb.js → p-BB98pUYU.js} +14 -16
- package/components/p-BB98pUYU.js.map +1 -0
- package/components/{p-BOQ00Fbs.js → p-BElY9X3b.js} +35 -25
- package/components/p-BElY9X3b.js.map +1 -0
- package/components/p-BEuV0Xpe.js +28 -0
- package/components/p-BEuV0Xpe.js.map +1 -0
- package/components/{p-B1p0kpQJ.js → p-BHD2m8UF.js} +16 -8
- package/components/p-BHD2m8UF.js.map +1 -0
- package/components/{p-ColBHyXN.js → p-BJ5sreCN.js} +5 -5
- package/components/{p-ColBHyXN.js.map → p-BJ5sreCN.js.map} +1 -1
- package/components/{p-Bk0vKwmt.js → p-BRg281yQ.js} +4 -4
- package/components/{p-Bk0vKwmt.js.map → p-BRg281yQ.js.map} +1 -1
- package/components/{p-DlVaL0Yi.js → p-BUS4kPN3.js} +13 -8
- package/components/p-BUS4kPN3.js.map +1 -0
- package/components/{p-C4KxNeD2.js → p-Bq5oov4A.js} +3 -3
- package/components/{p-C4KxNeD2.js.map → p-Bq5oov4A.js.map} +1 -1
- package/components/{p-C6_1qmP4.js → p-C5dktNss.js} +4 -4
- package/components/{p-C6_1qmP4.js.map → p-C5dktNss.js.map} +1 -1
- package/components/{p-DC9anobw.js → p-CGqmQsSj.js} +6 -6
- package/components/{p-DC9anobw.js.map → p-CGqmQsSj.js.map} +1 -1
- package/components/{p-7E7AMiQV.js → p-CPnxCsJH.js} +5 -5
- package/components/{p-7E7AMiQV.js.map → p-CPnxCsJH.js.map} +1 -1
- package/components/{p-PpLLlogo.js → p-CUdJN6-t.js} +16 -14
- package/components/p-CUdJN6-t.js.map +1 -0
- package/components/{p-CjDPpSJX.js → p-CtnJ26Ng.js} +19 -11
- package/components/p-CtnJ26Ng.js.map +1 -0
- package/components/{p-B006bhbX.js → p-CwfaZReW.js} +3 -3
- package/components/{p-B006bhbX.js.map → p-CwfaZReW.js.map} +1 -1
- package/components/{p-BIg1TSrD.js → p-D-nChuuk.js} +7 -7
- package/components/{p-BIg1TSrD.js.map → p-D-nChuuk.js.map} +1 -1
- package/components/{p-MuPiaYr1.js → p-D0T_1WDk.js} +32 -2
- package/components/p-D0T_1WDk.js.map +1 -0
- package/components/{p-Bye33cYU.js → p-D2BfqYng.js} +7 -7
- package/components/{p-Bye33cYU.js.map → p-D2BfqYng.js.map} +1 -1
- package/components/{p-DXFN8JXp.js → p-D8qc3Tjo.js} +4 -4
- package/components/{p-DXFN8JXp.js.map → p-D8qc3Tjo.js.map} +1 -1
- package/components/{p-BBwXlKhE.js → p-DBeR3Qpr.js} +3 -3
- package/components/{p-BBwXlKhE.js.map → p-DBeR3Qpr.js.map} +1 -1
- package/components/{p-CvD2yWeJ.js → p-DFkWFa-O.js} +4 -4
- package/components/{p-CvD2yWeJ.js.map → p-DFkWFa-O.js.map} +1 -1
- package/components/{p-BGdI6-nv.js → p-DTobrL4g.js} +3 -3
- package/components/{p-BGdI6-nv.js.map → p-DTobrL4g.js.map} +1 -1
- package/components/{p-BmMUyJRQ.js → p-DV7UGci6.js} +10 -10
- package/components/{p-BmMUyJRQ.js.map → p-DV7UGci6.js.map} +1 -1
- package/components/{p-CV_EVAOW.js → p-DZkGd7CV.js} +10 -4
- package/components/p-DZkGd7CV.js.map +1 -0
- package/components/{p-BI7B-PUA.js → p-Djmkeupf.js} +105 -38
- package/components/p-Djmkeupf.js.map +1 -0
- package/components/{p-1pd_0dhF.js → p-Ds0M0G_e.js} +3 -3
- package/components/{p-1pd_0dhF.js.map → p-Ds0M0G_e.js.map} +1 -1
- package/components/{p-BR5ayBuu.js → p-DtGtkvRX.js} +4 -4
- package/components/{p-BR5ayBuu.js.map → p-DtGtkvRX.js.map} +1 -1
- package/components/{p-Dp03DeD0.js → p-Dwnv8fgy.js} +5 -5
- package/components/{p-Dp03DeD0.js.map → p-Dwnv8fgy.js.map} +1 -1
- package/components/{p-BQk7HpA-.js → p-U0nRzcrj.js} +3 -3
- package/components/{p-BQk7HpA-.js.map → p-U0nRzcrj.js.map} +1 -1
- package/components/{p-BiqdnsgA.js → p-jwHZJhcU.js} +63 -58
- package/components/p-jwHZJhcU.js.map +1 -0
- package/components/{p-hwPzPVf8.js → p-rFxiFp44.js} +12 -6
- package/components/p-rFxiFp44.js.map +1 -0
- package/components/{p-ClQxnZ3d.js → p-u9QR9x88.js} +6 -6
- package/components/{p-ClQxnZ3d.js.map → p-u9QR9x88.js.map} +1 -1
- package/components/{p-BEDohapR.js → p-uIFuspHx.js} +8 -5
- package/components/p-uIFuspHx.js.map +1 -0
- package/dist/cjs/{base-button-CjsUotrL.js → base-button-DVckB2S-.js} +10 -4
- package/dist/cjs/base-button-DVckB2S-.js.map +1 -0
- package/dist/cjs/{base-icon-button-D3kZg-im.js → base-icon-button-BMxa9fiN.js} +3 -3
- package/dist/cjs/{base-icon-button-D3kZg-im.js.map → base-icon-button-BMxa9fiN.js.map} +1 -1
- package/dist/cjs/index-C8Xo8L1k.js +4 -4
- package/dist/cjs/{index-B7AMgiIZ.js → index-CgfiBgkm.js} +3 -3
- package/dist/cjs/{index-B7AMgiIZ.js.map → index-CgfiBgkm.js.map} +1 -1
- package/dist/cjs/index.cjs.js +25 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-action-card.cjs.entry.js +5 -1
- package/dist/cjs/ix-action-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +19 -12
- package/dist/cjs/ix-application-header.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +1 -1
- package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +11 -4
- package/dist/cjs/ix-breadcrumb.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-card.ix-card-content.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +8 -3
- package/dist/cjs/ix-category-filter.cjs.entry.js +15 -8
- package/dist/cjs/ix-category-filter.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +15 -8
- package/dist/cjs/ix-date-dropdown.cjs.entry.js +12 -5
- package/dist/cjs/ix-date-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-date-input.cjs.entry.js +11 -4
- package/dist/cjs/ix-date-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +6 -6
- package/dist/cjs/ix-drawer.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +14 -3
- package/dist/cjs/ix-dropdown-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +9 -3
- package/dist/cjs/ix-dropdown-item.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js +103 -37
- package/dist/cjs/ix-dropdown.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
- package/dist/cjs/ix-expanding-search.cjs.entry.js +4 -4
- package/dist/cjs/ix-field-label.ix-field-wrapper.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-field-label_2.cjs.entry.js +14 -7
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile.cjs.entry.js +3 -3
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +8 -8
- package/dist/cjs/ix-helper-text.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button.ix-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +7 -4
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-input.cjs.entry.js +4 -4
- package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
- package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
- package/dist/cjs/ix-layout-auto.cjs.entry.js +1 -1
- package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
- package/dist/cjs/ix-menu-about.cjs.entry.js +6 -2
- package/dist/cjs/ix-menu-about.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +20 -3
- package/dist/cjs/ix-menu-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
- package/dist/cjs/ix-menu-category.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +10 -8
- package/dist/cjs/ix-menu-expand-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-menu-item.cjs.entry.js +10 -12
- package/dist/cjs/ix-menu-item.entry.cjs.js.map +1 -1
- package/dist/cjs/{ix-menu-settings-CtWl0bME.js → ix-menu-settings-BYr52N4C.js} +42 -38
- package/dist/cjs/ix-menu-settings-BYr52N4C.js.map +1 -0
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-settings.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu.cjs.entry.js +44 -16
- package/dist/cjs/ix-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
- package/dist/cjs/ix-message-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal.cjs.entry.js +5 -7
- package/dist/cjs/ix-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-number-input.cjs.entry.js +5 -5
- package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ix-pane-layout.cjs.entry.js +2 -1
- package/dist/cjs/ix-pane-layout.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +6 -6
- package/dist/cjs/ix-pill.cjs.entry.js +4 -4
- package/dist/cjs/ix-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/ix-push-card.cjs.entry.js +5 -1
- package/dist/cjs/ix-push-card.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-radio.cjs.entry.js +3 -3
- package/dist/cjs/ix-select.cjs.entry.js +22 -13
- package/dist/cjs/ix-select.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-slider.cjs.entry.js +87 -25
- package/dist/cjs/ix-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-split-button.cjs.entry.js +8 -1
- package/dist/cjs/ix-split-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item.ix-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +135 -54
- package/dist/cjs/ix-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ix-tile.cjs.entry.js +4 -4
- package/dist/cjs/ix-time-input.cjs.entry.js +11 -4
- package/dist/cjs/ix-time-input.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/ix-toast-container.cjs.entry.js +4 -3
- package/dist/cjs/ix-toast-container.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toast.cjs.entry.js +7 -3
- package/dist/cjs/ix-toast.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ix-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ix-tree-item.cjs.entry.js +4 -4
- package/dist/cjs/ix-tree.cjs.entry.js +33 -4
- package/dist/cjs/ix-tree.entry.cjs.js.map +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +3 -3
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ix-workflow-step.cjs.entry.js +3 -3
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{modal-CsEGB0kd.js → modal-CUsbxNFf.js} +32 -2
- package/dist/cjs/modal-CUsbxNFf.js.map +1 -0
- package/dist/cjs/requestAnimationFrame-B0rWQ3G-.js +30 -0
- package/dist/cjs/requestAnimationFrame-B0rWQ3G-.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/collection/components/action-card/action-card.js +25 -1
- package/dist/collection/components/action-card/action-card.js.map +1 -1
- package/dist/collection/components/application-header/application-header.js +46 -10
- package/dist/collection/components/application-header/application-header.js.map +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +37 -4
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/button/base-button.js +8 -2
- package/dist/collection/components/button/base-button.js.map +1 -1
- package/dist/collection/components/card/card.css +49 -0
- package/dist/collection/components/card/card.js +27 -2
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/category-filter/category-filter.js +41 -8
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/date-dropdown/date-dropdown.js +38 -5
- package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +37 -4
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.js +38 -5
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +6 -6
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.css +42 -0
- package/dist/collection/components/dropdown/dropdown.js +125 -36
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.js +42 -5
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +10 -4
- package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/event-list/event-list.js +2 -2
- package/dist/collection/components/event-list-item/event-list-item.js +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +4 -4
- package/dist/collection/components/field-label/field-label.js +14 -5
- package/dist/collection/components/field-label/field-label.js.map +1 -1
- package/dist/collection/components/field-wrapper/field-wrapper.js +2 -2
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +3 -3
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/group/group-context-menu.js +1 -1
- package/dist/collection/components/group/group.js +8 -8
- package/dist/collection/components/helper-text/helper-text.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +5 -2
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
- package/dist/collection/components/input/input.js +4 -4
- package/dist/collection/components/input/number-input.js +5 -5
- package/dist/collection/components/input/textarea.js +2 -2
- package/dist/collection/components/input-group/input-group.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 +1 -1
- package/dist/collection/components/kpi/kpi.js +3 -3
- package/dist/collection/components/layout-auto/layout-auto.js +1 -1
- package/dist/collection/components/layout-grid/layout-grid.js +2 -2
- package/dist/collection/components/link-button/link-button.js +3 -3
- package/dist/collection/components/menu/menu-expand-icon.js +33 -36
- package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
- package/dist/collection/components/menu/menu.js +50 -16
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu-about/menu-about.js +25 -1
- package/dist/collection/components/menu-about/menu-about.js.map +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
- package/dist/collection/components/menu-avatar/menu-avatar.js +90 -3
- package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-category/menu-category.js +6 -6
- package/dist/collection/components/menu-category/menu-category.js.map +1 -1
- package/dist/collection/components/menu-item/menu-item.js +10 -12
- package/dist/collection/components/menu-item/menu-item.js.map +1 -1
- package/dist/collection/components/menu-settings/menu-settings.js +25 -1
- package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.css +0 -11
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.css +1 -4
- package/dist/collection/components/modal/modal.js +4 -6
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.js +3 -3
- package/dist/collection/components/pane/pane.js +6 -6
- package/dist/collection/components/pane-layout/pane-layout.js +2 -1
- package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/progress-indicator/progress-indicator.js +3 -3
- package/dist/collection/components/push-card/push-card.js +25 -1
- package/dist/collection/components/push-card/push-card.js.map +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.js +49 -14
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/slider/slider.css +86 -44
- package/dist/collection/components/slider/slider.js +290 -27
- package/dist/collection/components/slider/slider.js.map +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +35 -2
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.js +3 -3
- package/dist/collection/components/tabs/tabs.js +130 -26
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tile/tile.js +4 -4
- package/dist/collection/components/time-input/time-input.js +37 -4
- package/dist/collection/components/time-input/time-input.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.js +5 -5
- package/dist/collection/components/toast/toast-container.js +4 -3
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast-utils.js +21 -0
- package/dist/collection/components/toast/toast-utils.js.map +1 -1
- package/dist/collection/components/toast/toast.css +8 -6
- package/dist/collection/components/toast/toast.js +26 -2
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-button/toggle-button.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/typography/typography.js +1 -1
- package/dist/collection/components/upload/upload.js +3 -3
- package/dist/collection/components/utils/lazy-list/lazy.js +32 -3
- package/dist/collection/components/utils/lazy-list/lazy.js.map +1 -1
- package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +3 -3
- package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
- package/dist/collection/components/utils/modal/loading.js +3 -0
- package/dist/collection/components/utils/modal/loading.js.map +1 -1
- package/dist/collection/components/utils/modal/message.js +18 -0
- package/dist/collection/components/utils/modal/message.js.map +1 -1
- package/dist/collection/components/utils/modal/modal.js +12 -0
- package/dist/collection/components/utils/modal/modal.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +3 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/esm/{base-button-TVpiK7pg.js → base-button-D4FlHdn0.js} +10 -4
- package/dist/esm/base-button-D4FlHdn0.js.map +1 -0
- package/dist/esm/{base-icon-button-B3ULQ24g.js → base-icon-button-rBR4ri6c.js} +3 -3
- package/dist/esm/{base-icon-button-B3ULQ24g.js.map → base-icon-button-rBR4ri6c.js.map} +1 -1
- package/dist/esm/{index-Kp5Wf9wr.js → index-75AAQH08.js} +3 -3
- package/dist/esm/{index-Kp5Wf9wr.js.map → index-75AAQH08.js.map} +1 -1
- package/dist/esm/index-CtoreFVF.js +4 -4
- package/dist/esm/index.js +26 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-action-card.entry.js +5 -1
- package/dist/esm/ix-action-card.entry.js.map +1 -1
- package/dist/esm/ix-application-header.entry.js +19 -12
- package/dist/esm/ix-application-header.entry.js.map +1 -1
- package/dist/esm/ix-application-switch-modal.entry.js +1 -1
- package/dist/esm/ix-avatar_2.entry.js +2 -2
- package/dist/esm/ix-breadcrumb-item.entry.js +1 -1
- package/dist/esm/ix-breadcrumb.entry.js +11 -4
- package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +1 -1
- package/dist/esm/ix-card.ix-card-content.entry.js.map +1 -1
- package/dist/esm/ix-card_2.entry.js +8 -3
- package/dist/esm/ix-category-filter.entry.js +15 -8
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.js.map +1 -1
- package/dist/esm/ix-col_4.entry.js +15 -8
- package/dist/esm/ix-date-dropdown.entry.js +12 -5
- package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-date-input.entry.js +11 -4
- package/dist/esm/ix-date-input.entry.js.map +1 -1
- package/dist/esm/ix-drawer.entry.js +6 -6
- package/dist/esm/ix-drawer.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +14 -3
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +1 -1
- package/dist/esm/ix-dropdown-item.entry.js +9 -3
- package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown.entry.js +103 -37
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-empty-state.entry.js +1 -1
- package/dist/esm/ix-event-list-item.entry.js +4 -4
- package/dist/esm/ix-event-list.entry.js +2 -2
- package/dist/esm/ix-expanding-search.entry.js +4 -4
- package/dist/esm/ix-field-label.ix-field-wrapper.entry.js.map +1 -1
- package/dist/esm/ix-field-label_2.entry.js +14 -7
- package/dist/esm/ix-filter-chip_2.entry.js +2 -2
- package/dist/esm/ix-flip-tile-content.entry.js +1 -1
- package/dist/esm/ix-flip-tile.entry.js +3 -3
- package/dist/esm/ix-group-context-menu_2.entry.js +1 -1
- package/dist/esm/ix-group.entry.js +8 -8
- package/dist/esm/ix-helper-text.entry.js +1 -1
- package/dist/esm/ix-icon-button.ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-icon-button_2.entry.js +7 -4
- package/dist/esm/ix-icon-toggle-button.entry.js +3 -3
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-input.entry.js +4 -4
- package/dist/esm/ix-key-value-list.entry.js +1 -1
- package/dist/esm/ix-key-value.entry.js +1 -1
- package/dist/esm/ix-kpi.entry.js +3 -3
- package/dist/esm/ix-layout-auto.entry.js +1 -1
- package/dist/esm/ix-link-button.entry.js +3 -3
- package/dist/esm/ix-menu-about-item.entry.js +1 -1
- package/dist/esm/ix-menu-about-news.entry.js +4 -4
- package/dist/esm/ix-menu-about.entry.js +6 -2
- package/dist/esm/ix-menu-about.entry.js.map +1 -1
- package/dist/esm/ix-menu-avatar.entry.js +20 -3
- package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
- package/dist/esm/ix-menu-category.entry.js +6 -6
- package/dist/esm/ix-menu-category.entry.js.map +1 -1
- package/dist/esm/ix-menu-expand-icon.entry.js +10 -8
- package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
- package/dist/esm/ix-menu-item.entry.js +10 -12
- package/dist/esm/ix-menu-item.entry.js.map +1 -1
- package/dist/esm/{ix-menu-settings-f9o5GGw5.js → ix-menu-settings-CG60xQKd.js} +42 -38
- package/dist/esm/ix-menu-settings-CG60xQKd.js.map +1 -0
- package/dist/esm/ix-menu-settings-item.entry.js +1 -1
- package/dist/esm/ix-menu-settings.entry.js +1 -1
- package/dist/esm/ix-menu.entry.js +44 -16
- package/dist/esm/ix-menu.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +2 -2
- package/dist/esm/ix-message-bar.entry.js.map +1 -1
- package/dist/esm/ix-modal-content_2.entry.js +2 -2
- package/dist/esm/ix-modal-footer.entry.js +1 -1
- package/dist/esm/ix-modal-loading.entry.js +1 -1
- package/dist/esm/ix-modal.entry.js +5 -7
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-number-input.entry.js +5 -5
- package/dist/esm/ix-pagination.entry.js +4 -4
- package/dist/esm/ix-pane-layout.entry.js +2 -1
- package/dist/esm/ix-pane-layout.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +6 -6
- package/dist/esm/ix-pill.entry.js +4 -4
- package/dist/esm/ix-progress-indicator.entry.js +3 -3
- package/dist/esm/ix-push-card.entry.js +5 -1
- package/dist/esm/ix-push-card.entry.js.map +1 -1
- package/dist/esm/ix-radio-group.entry.js +2 -2
- package/dist/esm/ix-radio.entry.js +3 -3
- package/dist/esm/ix-select.entry.js +22 -13
- package/dist/esm/ix-select.entry.js.map +1 -1
- package/dist/esm/ix-slider.entry.js +87 -25
- package/dist/esm/ix-slider.entry.js.map +1 -1
- package/dist/esm/ix-split-button.entry.js +8 -1
- package/dist/esm/ix-split-button.entry.js.map +1 -1
- package/dist/esm/ix-tab-item.ix-tabs.entry.js.map +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +134 -53
- package/dist/esm/ix-textarea.entry.js +2 -2
- package/dist/esm/ix-tile.entry.js +4 -4
- package/dist/esm/ix-time-input.entry.js +11 -4
- package/dist/esm/ix-time-input.entry.js.map +1 -1
- package/dist/esm/ix-time-picker.entry.js +5 -5
- package/dist/esm/ix-toast-container.entry.js +4 -3
- package/dist/esm/ix-toast-container.entry.js.map +1 -1
- package/dist/esm/ix-toast.entry.js +7 -3
- package/dist/esm/ix-toast.entry.js.map +1 -1
- package/dist/esm/ix-toggle-button.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js.map +1 -1
- package/dist/esm/ix-toggle.entry.js +3 -3
- package/dist/esm/ix-tooltip.entry.js +1 -1
- package/dist/esm/ix-tree-item.entry.js +4 -4
- package/dist/esm/ix-tree.entry.js +33 -4
- package/dist/esm/ix-tree.entry.js.map +1 -1
- package/dist/esm/ix-typography.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +3 -3
- package/dist/esm/ix-validation-tooltip.entry.js +2 -2
- package/dist/esm/ix-workflow-step.entry.js +3 -3
- package/dist/esm/ix-workflow-steps.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{modal-BTxff2hq.js → modal-DCXtePY2.js} +32 -2
- package/dist/esm/modal-DCXtePY2.js.map +1 -0
- package/dist/esm/requestAnimationFrame-BEuV0Xpe.js +28 -0
- package/dist/esm/requestAnimationFrame-BEuV0Xpe.js.map +1 -0
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/ix-action-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-application-header.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-breadcrumb.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-card.ix-card-content.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-category-filter.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-col.ix-date-picker.ix-layout-grid.ix-row.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-date-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-drawer.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-dropdown.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-field-label.ix-field-wrapper.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-icon-button.ix-spinner.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-about.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-avatar.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-category.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-expand-icon.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu-item.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-menu.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-message-bar.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-modal.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-pane-layout.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-push-card.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-select.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-slider.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-split-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-tab-item.ix-tabs.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-time-input.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast-container.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toast.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-toggle-button.entry.esm.js.map +1 -1
- package/dist/siemens-ix/ix-tree.entry.esm.js.map +1 -1
- package/dist/siemens-ix/p-00d9e974.entry.js +2 -0
- package/dist/siemens-ix/{p-26c629c3.entry.js.map → p-00d9e974.entry.js.map} +1 -1
- package/dist/siemens-ix/p-00f783c2.entry.js +2 -0
- package/dist/siemens-ix/p-00f783c2.entry.js.map +1 -0
- package/dist/siemens-ix/{p-eba7f62c.entry.js → p-012e0b64.entry.js} +2 -2
- package/dist/siemens-ix/p-01f33c21.entry.js +2 -0
- package/dist/siemens-ix/p-01f33c21.entry.js.map +1 -0
- package/dist/siemens-ix/{p-c94739d0.entry.js → p-0693e4bf.entry.js} +2 -2
- package/dist/siemens-ix/p-07ab03fe.entry.js +2 -0
- package/dist/siemens-ix/p-07ab03fe.entry.js.map +1 -0
- package/dist/siemens-ix/{p-dc8de6cb.entry.js → p-0c5021bc.entry.js} +2 -2
- package/dist/siemens-ix/{p-b9880608.entry.js → p-0f80678c.entry.js} +2 -2
- package/dist/siemens-ix/p-13dc936a.entry.js +2 -0
- package/dist/siemens-ix/p-13dc936a.entry.js.map +1 -0
- package/dist/siemens-ix/{p-d3a60c52.entry.js → p-163090c1.entry.js} +2 -2
- package/dist/siemens-ix/{p-d3a60c52.entry.js.map → p-163090c1.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-ea15fc79.entry.js → p-18d39c8a.entry.js} +2 -2
- package/dist/siemens-ix/{p-b3453edf.entry.js → p-1b4cfce2.entry.js} +2 -2
- package/dist/siemens-ix/{p-de12078d.entry.js → p-22735495.entry.js} +2 -2
- package/dist/siemens-ix/p-24af7715.entry.js +2 -0
- package/dist/siemens-ix/p-24af7715.entry.js.map +1 -0
- package/dist/siemens-ix/p-29d397e7.entry.js +2 -0
- package/dist/siemens-ix/p-29d397e7.entry.js.map +1 -0
- package/dist/siemens-ix/p-2e1bb4bf.entry.js +2 -0
- package/dist/siemens-ix/p-2e1bb4bf.entry.js.map +1 -0
- package/dist/siemens-ix/{p-1de1a2bf.entry.js → p-2eda608a.entry.js} +2 -2
- package/dist/siemens-ix/{p-6a4bc78a.entry.js → p-2f83d5de.entry.js} +2 -2
- package/dist/siemens-ix/p-332b3d09.entry.js +2 -0
- package/dist/siemens-ix/{p-c15e64a8.entry.js → p-346c5039.entry.js} +2 -2
- package/dist/siemens-ix/p-38ba4776.entry.js +2 -0
- package/dist/siemens-ix/p-38ba4776.entry.js.map +1 -0
- package/dist/siemens-ix/{p-b7ef70d4.entry.js → p-3ff8cf24.entry.js} +2 -2
- package/dist/siemens-ix/p-3ff8cf24.entry.js.map +1 -0
- package/dist/siemens-ix/{p-4431f891.entry.js → p-4a6f8ce8.entry.js} +2 -2
- package/dist/siemens-ix/p-4a9cceff.entry.js +2 -0
- package/dist/siemens-ix/{p-0ce03ad3.entry.js.map → p-4a9cceff.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-396e1f3d.entry.js → p-4d004e44.entry.js} +2 -2
- package/dist/siemens-ix/{p-b76df1c7.entry.js → p-4d540a34.entry.js} +2 -2
- package/dist/siemens-ix/p-4d540a34.entry.js.map +1 -0
- package/dist/siemens-ix/p-4e985847.entry.js +2 -0
- package/dist/siemens-ix/p-4e985847.entry.js.map +1 -0
- package/dist/siemens-ix/p-5306efc0.entry.js +2 -0
- package/dist/siemens-ix/p-5306efc0.entry.js.map +1 -0
- package/dist/siemens-ix/p-568e5673.entry.js +2 -0
- package/dist/siemens-ix/p-568e5673.entry.js.map +1 -0
- package/dist/siemens-ix/{p-38e45020.entry.js → p-591664be.entry.js} +2 -2
- package/dist/siemens-ix/{p-c5c863e1.entry.js → p-6794955e.entry.js} +2 -2
- package/dist/siemens-ix/{p-79537728.entry.js → p-69526242.entry.js} +2 -2
- package/dist/siemens-ix/p-7752df0f.entry.js +2 -0
- package/dist/siemens-ix/p-78ac2dbc.entry.js +2 -0
- package/dist/siemens-ix/{p-8f9368b8.entry.js → p-7ab95193.entry.js} +2 -2
- package/dist/siemens-ix/p-7c3ed8dc.entry.js +2 -0
- package/dist/siemens-ix/p-7c3ed8dc.entry.js.map +1 -0
- package/dist/siemens-ix/{p-fb8877bc.entry.js → p-7df00cac.entry.js} +2 -2
- package/dist/siemens-ix/p-7df00cac.entry.js.map +1 -0
- package/dist/siemens-ix/{p-e7bdc0a0.entry.js → p-7fa55c16.entry.js} +2 -2
- package/dist/siemens-ix/p-7fa55c16.entry.js.map +1 -0
- package/dist/siemens-ix/{p-ff83eafd.entry.js → p-7fbcc15c.entry.js} +2 -2
- package/dist/siemens-ix/p-828db41e.entry.js +2 -0
- package/dist/siemens-ix/{p-6dc6eb63.entry.js.map → p-828db41e.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-496e98ac.entry.js → p-82c3a8a2.entry.js} +2 -2
- package/dist/siemens-ix/p-899b445d.entry.js +2 -0
- package/dist/siemens-ix/p-899b445d.entry.js.map +1 -0
- package/dist/siemens-ix/{p-5779f16e.entry.js → p-8b6f2e0e.entry.js} +2 -2
- package/dist/siemens-ix/p-8c8bad0a.entry.js +2 -0
- package/dist/siemens-ix/{p-b8f4b001.entry.js → p-8e26b723.entry.js} +2 -2
- package/dist/siemens-ix/p-8e26b723.entry.js.map +1 -0
- package/dist/siemens-ix/{p-7bc90e7e.entry.js → p-8e7f7343.entry.js} +2 -2
- package/dist/siemens-ix/{p-484bddf4.entry.js → p-922a49d7.entry.js} +2 -2
- package/dist/siemens-ix/{p-196cffb5.entry.js → p-9362445d.entry.js} +2 -2
- package/dist/siemens-ix/p-9492ebc4.entry.js +2 -0
- package/dist/siemens-ix/p-9492ebc4.entry.js.map +1 -0
- package/dist/siemens-ix/{p-d2c18c15.entry.js → p-96c371c8.entry.js} +2 -2
- package/dist/siemens-ix/{p-2ffde2d5.entry.js → p-97c3d27e.entry.js} +2 -2
- package/dist/siemens-ix/{p-f119c105.entry.js → p-98cf2c22.entry.js} +2 -2
- package/dist/siemens-ix/{p-ca3b24b1.entry.js → p-99dda4c4.entry.js} +2 -2
- package/dist/siemens-ix/{p-e48977ed.entry.js → p-9b917ecd.entry.js} +2 -2
- package/dist/siemens-ix/p-9ea48663.entry.js +2 -0
- package/dist/siemens-ix/p-9ea48663.entry.js.map +1 -0
- package/dist/siemens-ix/{p-CObJ-t0Z.js → p-B3-0mRq1.js} +2 -2
- package/dist/siemens-ix/{p-CObJ-t0Z.js.map → p-B3-0mRq1.js.map} +1 -1
- package/dist/siemens-ix/p-BEuV0Xpe.js +2 -0
- package/dist/siemens-ix/p-BEuV0Xpe.js.map +1 -0
- package/dist/siemens-ix/p-BYhznbns.js +2 -0
- package/dist/siemens-ix/p-BYhznbns.js.map +1 -0
- package/dist/siemens-ix/p-BvohuWNe.js +2 -0
- package/dist/siemens-ix/p-BvohuWNe.js.map +1 -0
- package/dist/siemens-ix/p-CSUx_zC3.js +2 -0
- package/dist/siemens-ix/{p-DpM4lbAX.js.map → p-CSUx_zC3.js.map} +1 -1
- package/dist/siemens-ix/{p-BC0Exw_O.js → p-IHkSWEwz.js} +1 -1
- package/dist/siemens-ix/p-IHkSWEwz.js.map +1 -0
- package/dist/siemens-ix/p-a9c3bb03.entry.js +2 -0
- package/dist/siemens-ix/p-a9c3bb03.entry.js.map +1 -0
- package/dist/siemens-ix/{p-4c18f123.entry.js → p-ad911b63.entry.js} +2 -2
- package/dist/siemens-ix/{p-74e7b03f.entry.js → p-b1eac110.entry.js} +2 -2
- package/dist/siemens-ix/p-b7438aeb.entry.js +2 -0
- package/dist/siemens-ix/p-b7438aeb.entry.js.map +1 -0
- package/dist/siemens-ix/{p-d10b9798.entry.js → p-b7734b9d.entry.js} +2 -2
- package/dist/siemens-ix/{p-df6bb698.entry.js → p-bc85feef.entry.js} +2 -2
- package/dist/siemens-ix/{p-a4225101.entry.js → p-c6ee37e4.entry.js} +2 -2
- package/dist/siemens-ix/{p-a8308559.entry.js → p-ca2533b1.entry.js} +2 -2
- package/dist/siemens-ix/p-cb5e0db6.entry.js +2 -0
- package/dist/siemens-ix/{p-3f62166e.entry.js.map → p-cb5e0db6.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-667e3184.entry.js → p-ceb7b1da.entry.js} +2 -2
- package/dist/siemens-ix/{p-e0b9cf68.entry.js → p-d2ce70ac.entry.js} +2 -2
- package/dist/siemens-ix/{p-8fc2bea6.entry.js → p-d384611d.entry.js} +2 -2
- package/dist/siemens-ix/p-d63ac3e3.entry.js +2 -0
- package/dist/siemens-ix/p-d63ac3e3.entry.js.map +1 -0
- package/dist/siemens-ix/p-d73d0805.entry.js +2 -0
- package/dist/siemens-ix/p-d73d0805.entry.js.map +1 -0
- package/dist/siemens-ix/{p-b41a7abb.entry.js → p-d82ac1e1.entry.js} +2 -2
- package/dist/siemens-ix/{p-7beba4ad.entry.js → p-d9776ef8.entry.js} +2 -2
- package/dist/siemens-ix/p-db913bc4.entry.js +2 -0
- package/dist/siemens-ix/p-db913bc4.entry.js.map +1 -0
- package/dist/siemens-ix/{p-367df024.entry.js → p-dc0be9bf.entry.js} +2 -2
- package/dist/siemens-ix/p-dc0be9bf.entry.js.map +1 -0
- package/dist/siemens-ix/{p-33b3ed5b.entry.js → p-de59209e.entry.js} +2 -2
- package/dist/siemens-ix/{p-cf041cfd.entry.js → p-e29533a3.entry.js} +2 -2
- package/dist/siemens-ix/{p-3ce5fd87.entry.js → p-e4dabf5b.entry.js} +2 -2
- package/dist/siemens-ix/p-e4dabf5b.entry.js.map +1 -0
- package/dist/siemens-ix/{p-cd1afcc9.entry.js → p-e69d8217.entry.js} +2 -2
- package/dist/siemens-ix/{p-7827c263.entry.js → p-e7ef43ed.entry.js} +2 -2
- package/dist/siemens-ix/{p-8f17f6ec.entry.js → p-ec9dc8d8.entry.js} +2 -2
- package/dist/siemens-ix/p-ec9dc8d8.entry.js.map +1 -0
- package/dist/siemens-ix/{p-77fd2138.entry.js → p-f4264893.entry.js} +2 -2
- package/dist/siemens-ix/p-f42f74c2.entry.js +2 -0
- package/dist/siemens-ix/p-f7cb5560.entry.js +2 -0
- package/dist/siemens-ix/p-f7cb5560.entry.js.map +1 -0
- package/dist/siemens-ix/siemens-ix-core.css +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/action-card/action-card.d.ts +4 -0
- package/dist/types/components/application-header/application-header.d.ts +8 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +7 -0
- package/dist/types/components/card/card.d.ts +4 -0
- package/dist/types/components/category-filter/category-filter.d.ts +7 -0
- package/dist/types/components/date-dropdown/date-dropdown.d.ts +8 -1
- package/dist/types/components/date-input/date-input.d.ts +7 -0
- package/dist/types/components/date-picker/date-picker.d.ts +7 -0
- package/dist/types/components/dropdown/dropdown.d.ts +11 -1
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +7 -0
- package/dist/types/components/field-label/field-label.d.ts +2 -0
- package/dist/types/components/menu/menu-expand-icon.d.ts +5 -2
- package/dist/types/components/menu/menu.d.ts +6 -0
- package/dist/types/components/menu-about/menu-about.d.ts +4 -0
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +20 -0
- package/dist/types/components/menu-item/menu-item.d.ts +1 -1
- package/dist/types/components/menu-settings/menu-settings.d.ts +4 -0
- package/dist/types/components/modal/modal.d.ts +0 -1
- package/dist/types/components/push-card/push-card.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +7 -0
- package/dist/types/components/slider/slider.d.ts +57 -2
- package/dist/types/components/split-button/split-button.d.ts +8 -1
- package/dist/types/components/tabs/tabs.d.ts +12 -0
- package/dist/types/components/time-input/time-input.d.ts +7 -0
- package/dist/types/components/toast/toast-utils.d.ts +13 -0
- package/dist/types/components/toast/toast.d.ts +4 -0
- package/dist/types/components/toggle-button/toggle-button.d.ts +1 -3
- package/dist/types/components/utils/lazy-list/lazy.d.ts +2 -0
- package/dist/types/components/utils/modal/loading.d.ts +3 -0
- package/dist/types/components/utils/modal/message.d.ts +3 -0
- package/dist/types/components/utils/modal/modal.d.ts +63 -0
- package/dist/types/components.d.ts +326 -7
- package/hydrate/index.js +1144 -678
- package/hydrate/index.mjs +1144 -678
- package/package.json +1 -1
- package/components/p-10zMtvCF.js.map +0 -1
- package/components/p-B1p0kpQJ.js.map +0 -1
- package/components/p-BEDohapR.js.map +0 -1
- package/components/p-BI7B-PUA.js.map +0 -1
- package/components/p-BLeWaHpy.js.map +0 -1
- package/components/p-BOQ00Fbs.js.map +0 -1
- package/components/p-BiqdnsgA.js.map +0 -1
- package/components/p-CV_EVAOW.js.map +0 -1
- package/components/p-CjDPpSJX.js.map +0 -1
- package/components/p-DSTHZygb.js.map +0 -1
- package/components/p-DlVaL0Yi.js.map +0 -1
- package/components/p-MuPiaYr1.js.map +0 -1
- package/components/p-PpLLlogo.js.map +0 -1
- package/components/p-hwPzPVf8.js.map +0 -1
- package/dist/cjs/base-button-CjsUotrL.js.map +0 -1
- package/dist/cjs/ix-menu-settings-CtWl0bME.js.map +0 -1
- package/dist/cjs/modal-CsEGB0kd.js.map +0 -1
- package/dist/esm/base-button-TVpiK7pg.js.map +0 -1
- package/dist/esm/ix-menu-settings-f9o5GGw5.js.map +0 -1
- package/dist/esm/modal-BTxff2hq.js.map +0 -1
- package/dist/siemens-ix/p-0411df39.entry.js +0 -2
- package/dist/siemens-ix/p-0c325f08.entry.js +0 -2
- package/dist/siemens-ix/p-0c325f08.entry.js.map +0 -1
- package/dist/siemens-ix/p-0ce03ad3.entry.js +0 -2
- package/dist/siemens-ix/p-0d621531.entry.js +0 -2
- package/dist/siemens-ix/p-0d621531.entry.js.map +0 -1
- package/dist/siemens-ix/p-0eca5a77.entry.js +0 -2
- package/dist/siemens-ix/p-0eca5a77.entry.js.map +0 -1
- package/dist/siemens-ix/p-2597a988.entry.js +0 -2
- package/dist/siemens-ix/p-2597a988.entry.js.map +0 -1
- package/dist/siemens-ix/p-26c629c3.entry.js +0 -2
- package/dist/siemens-ix/p-31a8eaf9.entry.js +0 -2
- package/dist/siemens-ix/p-33fcea65.entry.js +0 -2
- package/dist/siemens-ix/p-33fcea65.entry.js.map +0 -1
- package/dist/siemens-ix/p-367df024.entry.js.map +0 -1
- package/dist/siemens-ix/p-37bd983a.entry.js +0 -2
- package/dist/siemens-ix/p-37bd983a.entry.js.map +0 -1
- package/dist/siemens-ix/p-3ce5fd87.entry.js.map +0 -1
- package/dist/siemens-ix/p-3f62166e.entry.js +0 -2
- package/dist/siemens-ix/p-4c1f90cb.entry.js +0 -2
- package/dist/siemens-ix/p-4c1f90cb.entry.js.map +0 -1
- package/dist/siemens-ix/p-4e4d792d.entry.js +0 -2
- package/dist/siemens-ix/p-4e4d792d.entry.js.map +0 -1
- package/dist/siemens-ix/p-5b57bde1.entry.js +0 -2
- package/dist/siemens-ix/p-5b57bde1.entry.js.map +0 -1
- package/dist/siemens-ix/p-68aaf0fe.entry.js +0 -2
- package/dist/siemens-ix/p-68aaf0fe.entry.js.map +0 -1
- package/dist/siemens-ix/p-6dc6eb63.entry.js +0 -2
- package/dist/siemens-ix/p-7bad0544.entry.js +0 -2
- package/dist/siemens-ix/p-7bad0544.entry.js.map +0 -1
- package/dist/siemens-ix/p-8418f756.entry.js +0 -2
- package/dist/siemens-ix/p-8418f756.entry.js.map +0 -1
- package/dist/siemens-ix/p-8b42ad35.entry.js +0 -2
- package/dist/siemens-ix/p-8b42ad35.entry.js.map +0 -1
- package/dist/siemens-ix/p-8f17f6ec.entry.js.map +0 -1
- package/dist/siemens-ix/p-8fa8d0e3.entry.js +0 -2
- package/dist/siemens-ix/p-92ec7f27.entry.js +0 -2
- package/dist/siemens-ix/p-BC0Exw_O.js.map +0 -1
- package/dist/siemens-ix/p-BcCDexod.js +0 -2
- package/dist/siemens-ix/p-BcCDexod.js.map +0 -1
- package/dist/siemens-ix/p-DiMfcbUU.js +0 -2
- package/dist/siemens-ix/p-DiMfcbUU.js.map +0 -1
- package/dist/siemens-ix/p-DpM4lbAX.js +0 -2
- package/dist/siemens-ix/p-a3baca2f.entry.js +0 -2
- package/dist/siemens-ix/p-a61972c5.entry.js +0 -2
- package/dist/siemens-ix/p-a61972c5.entry.js.map +0 -1
- package/dist/siemens-ix/p-b76df1c7.entry.js.map +0 -1
- package/dist/siemens-ix/p-b7ef70d4.entry.js.map +0 -1
- package/dist/siemens-ix/p-b8f4b001.entry.js.map +0 -1
- package/dist/siemens-ix/p-ba9ed3d1.entry.js +0 -2
- package/dist/siemens-ix/p-ba9ed3d1.entry.js.map +0 -1
- package/dist/siemens-ix/p-c1160cf8.entry.js +0 -2
- package/dist/siemens-ix/p-c1160cf8.entry.js.map +0 -1
- package/dist/siemens-ix/p-d193381f.entry.js +0 -2
- package/dist/siemens-ix/p-d193381f.entry.js.map +0 -1
- package/dist/siemens-ix/p-e42f62a1.entry.js +0 -2
- package/dist/siemens-ix/p-e42f62a1.entry.js.map +0 -1
- package/dist/siemens-ix/p-e7bdc0a0.entry.js.map +0 -1
- package/dist/siemens-ix/p-ea37abf6.entry.js +0 -2
- package/dist/siemens-ix/p-ea37abf6.entry.js.map +0 -1
- package/dist/siemens-ix/p-ea410634.entry.js +0 -2
- package/dist/siemens-ix/p-ea410634.entry.js.map +0 -1
- package/dist/siemens-ix/p-fb8877bc.entry.js.map +0 -1
- package/dist/siemens-ix/p-fc73c8cc.entry.js +0 -2
- package/dist/siemens-ix/p-fc73c8cc.entry.js.map +0 -1
- /package/dist/siemens-ix/{p-eba7f62c.entry.js.map → p-012e0b64.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c94739d0.entry.js.map → p-0693e4bf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-dc8de6cb.entry.js.map → p-0c5021bc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b9880608.entry.js.map → p-0f80678c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ea15fc79.entry.js.map → p-18d39c8a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b3453edf.entry.js.map → p-1b4cfce2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-de12078d.entry.js.map → p-22735495.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1de1a2bf.entry.js.map → p-2eda608a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6a4bc78a.entry.js.map → p-2f83d5de.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a3baca2f.entry.js.map → p-332b3d09.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c15e64a8.entry.js.map → p-346c5039.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4431f891.entry.js.map → p-4a6f8ce8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-396e1f3d.entry.js.map → p-4d004e44.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-38e45020.entry.js.map → p-591664be.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c5c863e1.entry.js.map → p-6794955e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-79537728.entry.js.map → p-69526242.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8fa8d0e3.entry.js.map → p-7752df0f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0411df39.entry.js.map → p-78ac2dbc.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8f9368b8.entry.js.map → p-7ab95193.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ff83eafd.entry.js.map → p-7fbcc15c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-496e98ac.entry.js.map → p-82c3a8a2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5779f16e.entry.js.map → p-8b6f2e0e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-31a8eaf9.entry.js.map → p-8c8bad0a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7bc90e7e.entry.js.map → p-8e7f7343.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-484bddf4.entry.js.map → p-922a49d7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-196cffb5.entry.js.map → p-9362445d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2c18c15.entry.js.map → p-96c371c8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2ffde2d5.entry.js.map → p-97c3d27e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f119c105.entry.js.map → p-98cf2c22.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ca3b24b1.entry.js.map → p-99dda4c4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e48977ed.entry.js.map → p-9b917ecd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-4c18f123.entry.js.map → p-ad911b63.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-74e7b03f.entry.js.map → p-b1eac110.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d10b9798.entry.js.map → p-b7734b9d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-df6bb698.entry.js.map → p-bc85feef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a4225101.entry.js.map → p-c6ee37e4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a8308559.entry.js.map → p-ca2533b1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-667e3184.entry.js.map → p-ceb7b1da.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e0b9cf68.entry.js.map → p-d2ce70ac.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8fc2bea6.entry.js.map → p-d384611d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b41a7abb.entry.js.map → p-d82ac1e1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7beba4ad.entry.js.map → p-d9776ef8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-33b3ed5b.entry.js.map → p-de59209e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf041cfd.entry.js.map → p-e29533a3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cd1afcc9.entry.js.map → p-e69d8217.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7827c263.entry.js.map → p-e7ef43ed.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-77fd2138.entry.js.map → p-f4264893.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-92ec7f27.entry.js.map → p-f42f74c2.entry.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, e as createEvent, i as forceUpdate, h } from './p-D-__gyet.js';
|
|
2
|
-
import { s as syncTabDisplay, i as initialize, M as MenuTabs } from './p-
|
|
3
|
-
import { d as defineCustomElement$5 } from './p-
|
|
4
|
-
import { d as defineCustomElement$4 } from './p-
|
|
5
|
-
import { d as defineCustomElement$3 } from './p-
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { s as syncTabDisplay, i as initialize, M as MenuTabs } from './p-jwHZJhcU.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './p-uIFuspHx.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './p-Ds0M0G_e.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './p-CPnxCsJH.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-B09CzVld.js';
|
|
7
7
|
|
|
8
8
|
const menuAboutCss = ".text-xs{font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-s{font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-caption{font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-caption-single{font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-default{font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-default-single{font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-default-title{font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-default-title-single{font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-l{font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-l-single{font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-l-title{font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-l-title-single{font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-h2{font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}.text-xl{font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}:host .about-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .about-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host ix-menu-about-item{display:none}";
|
|
9
9
|
|
|
@@ -20,6 +20,10 @@ const MenuAbout = /*@__PURE__*/ proxyCustomElement(class MenuAbout extends H {
|
|
|
20
20
|
* Content of the header
|
|
21
21
|
*/
|
|
22
22
|
this.label = 'About & legal information';
|
|
23
|
+
/**
|
|
24
|
+
* Aria label for close button
|
|
25
|
+
*/
|
|
26
|
+
this.ariaLabelCloseButton = 'Close About';
|
|
23
27
|
/** @internal */
|
|
24
28
|
this.show = false;
|
|
25
29
|
}
|
|
@@ -35,7 +39,7 @@ const MenuAbout = /*@__PURE__*/ proxyCustomElement(class MenuAbout extends H {
|
|
|
35
39
|
forceUpdate(this.el);
|
|
36
40
|
}
|
|
37
41
|
render() {
|
|
38
|
-
return h(MenuTabs, { key: '
|
|
42
|
+
return h(MenuTabs, { key: 'ca696d609e81a77afbb7210a699c89e52cf2b59f', context: this });
|
|
39
43
|
}
|
|
40
44
|
get el() { return this; }
|
|
41
45
|
static get watchers() { return {
|
|
@@ -45,6 +49,7 @@ const MenuAbout = /*@__PURE__*/ proxyCustomElement(class MenuAbout extends H {
|
|
|
45
49
|
}, [257, "ix-menu-about", {
|
|
46
50
|
"activeTabLabel": [1025, "active-tab-label"],
|
|
47
51
|
"label": [1],
|
|
52
|
+
"ariaLabelCloseButton": [1, "aria-label-close-button"],
|
|
48
53
|
"show": [4],
|
|
49
54
|
"items": [32]
|
|
50
55
|
}, undefined, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-menu-about.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,ozGAAozG;;MCgC5zG,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;AAcE;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,2BAA2B;;
|
|
1
|
+
{"file":"ix-menu-about.js","mappings":";;;;;;;AAAA,MAAM,YAAY,GAAG,ozGAAozG;;MCgC5zG,SAAS,iBAAAA,kBAAA,CAAA,MAAA,SAAA,SAAAC,CAAA,CAAA;AALtB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;AAcE;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,2BAA2B;AAE3C;;AAEG;AACK,QAAA,IAAoB,CAAA,oBAAA,GAAG,aAAa;;AAGpC,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK;AAiCrB;IAjBC,SAAS,CAAC,QAAgB,EAAE,QAAgB,EAAA;AAC1C,QAAA,IAAI,QAAQ,KAAK,QAAQ,EAAE;AACzB,YAAA,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC;;;IAIlC,iBAAiB,GAAA;QACf,UAAU,CAAC,IAAI,CAAC;;IAGlB,gBAAgB,GAAA;AACd,QAAA,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;;IAGtB,MAAM,GAAA;AACJ,QAAA,OAAO,EAAC,QAAQ,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,OAAO,EAAE,IAAI,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-about/menu-about.scss?tag=ix-menu-about&encapsulation=shadow","src/components/menu-about/menu-about.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@use './common-variables' as vars;\n@use 'legacy/fonts';\n\n:host {\n display: block;\n background-color: var(--theme-nav-overlay--background);\n padding: vars.$medium-space vars.$default-space vars.$default-space\n vars.$x-large-space;\n flex-grow: 1;\n position: absolute;\n width: 100%;\n height: 100%;\n\n .about-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n height: vars.$x-large-space;\n margin-bottom: vars.$small-space;\n\n h2 {\n color: var(--theme-nav-overlay-header--color);\n margin-bottom: 1rem;\n }\n }\n\n ix-tabs {\n margin-bottom: 1.5rem;\n }\n\n ix-menu-about-item {\n display: none;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { MenuTabs } from '../utils/menu-tabs/menu-tabs-fc';\nimport {\n CustomCloseEvent,\n initialize,\n syncTabDisplay,\n} from '../utils/menu-tabs/menu-tabs-utils';\n\n@Component({\n tag: 'ix-menu-about',\n styleUrl: 'menu-about.scss',\n shadow: true,\n})\nexport class MenuAbout {\n @Element() el!: HTMLIxMenuAboutElement;\n\n /**\n * Active tab\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) activeTabLabel?: string;\n\n /**\n * Content of the header\n */\n @Prop() label = 'About & legal information';\n\n /**\n * Aria label for close button\n */\n @Prop() ariaLabelCloseButton = 'Close About';\n\n /** @internal */\n @Prop() show = false;\n\n /**\n * Active tab changed\n * @since 3.0.0\n */\n @Event() tabChange!: EventEmitter<string>;\n\n /**\n * About and Legal closed\n */\n @Event() close!: EventEmitter<CustomCloseEvent>;\n\n @State() items!: HTMLIxMenuAboutItemElement[];\n\n @Watch('activeTabLabel')\n updateTab(newLabel: string, oldLabel: string) {\n if (newLabel !== oldLabel) {\n syncTabDisplay(this, newLabel);\n }\n }\n\n componentWillLoad() {\n initialize(this);\n }\n\n componentDidLoad() {\n forceUpdate(this.el);\n }\n\n render() {\n return <MenuTabs context={this} />;\n }\n}\n"],"version":3}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D-__gyet.js';
|
|
2
|
-
import { g as getSlottedElements } from './p-Bi1VyG64.js';
|
|
3
2
|
import { I as iconLogOut } from './p-BvsadYCu.js';
|
|
4
|
-
import {
|
|
3
|
+
import { a as a11yBoolean } from './p-Bb7pDeaQ.js';
|
|
4
|
+
import { m as makeRef } from './p-bcj7UEIC.js';
|
|
5
|
+
import { g as getSlottedElements } from './p-Bi1VyG64.js';
|
|
6
|
+
import { d as defineCustomElement$9 } from './p-D2BfqYng.js';
|
|
5
7
|
import { d as defineCustomElement$8 } from './p-Db0RazS2.js';
|
|
6
|
-
import { d as defineCustomElement$7 } from './p-
|
|
7
|
-
import { d as defineCustomElement$6 } from './p-
|
|
8
|
-
import { d as defineCustomElement$5 } from './p-
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
8
|
+
import { d as defineCustomElement$7 } from './p-Djmkeupf.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './p-0gGE-dfR.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './p-BRg281yQ.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './p-Ds0M0G_e.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './p-D8qc3Tjo.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './p-DBeR3Qpr.js';
|
|
12
14
|
|
|
13
15
|
const menuAvatarCss = ":host{display:block;position:relative;margin-bottom:0.5rem;margin-right:0.75rem}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host{}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host{}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host{}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host{}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .avatar{all:unset;box-sizing:border-box;display:flex;align-items:center;height:2.5rem;width:100%;max-height:2.5rem;padding-left:0.25rem;margin-left:0.41rem;margin-right:0.35rem;transition:var(--theme-default-time)}:host .avatar .avatar-name{display:flex;flex-direction:column;overflow:hidden;white-space:nowrap;margin-left:1rem;line-height:1.14}:host .avatar .avatar-name .text-default-single{color:var(--theme-nav-item-primary--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .avatar{border-radius:1.25rem}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):hover,:host .avatar:not(.disabled):not(:disabled).hover{background-color:var(--theme-avatar-btn--background--hover);color:var(--theme-avatar-btn--color--hover)}:host .avatar:not(.disabled):not(:disabled){cursor:pointer}:host .avatar:not(.disabled):not(:disabled):active,:host .avatar:not(.disabled):not(:disabled).active{background-color:var(--theme-avatar-btn--background--active);color:var(--theme-avatar-btn--color--active)}:host .avatar:focus-visible{outline:1px solid var(--theme-color-focus-bdr)}";
|
|
14
16
|
|
|
@@ -28,11 +30,19 @@ const MenuAvatar = /*@__PURE__*/ proxyCustomElement(class MenuAvatar extends H {
|
|
|
28
30
|
* Control the visibility of the logout button
|
|
29
31
|
*/
|
|
30
32
|
this.hideLogoutButton = false;
|
|
33
|
+
/**
|
|
34
|
+
* Enable Popover API rendering for dropdown.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
* @since 4.3.0
|
|
38
|
+
*/
|
|
39
|
+
this.enableTopLayer = false;
|
|
31
40
|
/**
|
|
32
41
|
* Control the visibility of the dropdown menu
|
|
33
42
|
*/
|
|
34
43
|
this.showContextMenu = false;
|
|
35
44
|
this.avatarElementId = 'ix-menu-avatar-id';
|
|
45
|
+
this.tooltipRef = makeRef();
|
|
36
46
|
}
|
|
37
47
|
onSlotChange() {
|
|
38
48
|
const slot = this.hostElement.shadowRoot.querySelector('slot');
|
|
@@ -43,9 +53,16 @@ const MenuAvatar = /*@__PURE__*/ proxyCustomElement(class MenuAvatar extends H {
|
|
|
43
53
|
this.showContextMenu = elements.length !== 0;
|
|
44
54
|
}
|
|
45
55
|
render() {
|
|
46
|
-
|
|
56
|
+
var _a;
|
|
57
|
+
const tooltipText = (_a = this.tooltipText) !== null && _a !== void 0 ? _a : this.top;
|
|
58
|
+
const ariaHidden = tooltipText === this.top;
|
|
59
|
+
return (h(Host, { key: '63251d35fc15b945de3bae097702c3e0e7377568', slot: "ix-menu-avatar" }, h("button", { key: 'f50dd772c58b7b20e966d0a992f6e2537ebbe5bc', class: "nav-item top-item avatar no-hover", id: this.avatarElementId, tabIndex: 0 }, h("ix-avatar", { key: '1b3ea2ab31cc248e021306b9399b5b2bbad1122f', image: this.image, initials: this.initials }), h("div", { key: '1e8aee8c464ebc41e99d00b6933f6682d1c98019', class: "avatar-name" }, h("span", { key: '3bc559472005be3d21b406fd9ea85fcb9737dcb6', class: "text-default-single" }, this.top), h("span", { key: '023fb55cd5229df9aadec9daf86834e16944a66f', class: "text-default-single" }, this.bottom))), !!tooltipText && (h("ix-tooltip", { key: '8e13fc36570e1152049b636ecabb042e7288c3e8', ref: this.tooltipRef, for: `#${this.avatarElementId}`, placement: 'right', "aria-hidden": a11yBoolean(ariaHidden), "aria-label": this.ariaLabelTooltip }, tooltipText)), h("ix-dropdown", { key: '6a7e04c67894981100c3b81eb6ac9c5d9a16194a', trigger: this.hostElement, placement: 'right-start', hidden: !this.showContextMenu && this.hideLogoutButton, offset: {
|
|
47
60
|
mainAxis: 16,
|
|
48
|
-
}
|
|
61
|
+
}, onShowChanged: (event) => {
|
|
62
|
+
if (event.detail && this.tooltipRef.current) {
|
|
63
|
+
this.tooltipRef.current.hideTooltip(0);
|
|
64
|
+
}
|
|
65
|
+
}, enableTopLayer: this.enableTopLayer }, h("slot", { key: 'd7444d53d15826d0999476c55bc428a89a6b73fa', onSlotchange: () => this.onSlotChange() }), !this.hideLogoutButton && (h("ix-menu-avatar-item", { key: 'f6c1fc16b2b39ef2277ae01485f1b7014e72e568', label: this.i18nLogout, icon: iconLogOut, onClick: (e) => {
|
|
49
66
|
this.logoutClick.emit(e);
|
|
50
67
|
} })))));
|
|
51
68
|
}
|
|
@@ -56,8 +73,11 @@ const MenuAvatar = /*@__PURE__*/ proxyCustomElement(class MenuAvatar extends H {
|
|
|
56
73
|
"bottom": [1],
|
|
57
74
|
"image": [1],
|
|
58
75
|
"initials": [1],
|
|
76
|
+
"tooltipText": [1, "tooltip-text"],
|
|
77
|
+
"ariaLabelTooltip": [1, "aria-label-tooltip"],
|
|
59
78
|
"i18nLogout": [1, "i18n-logout"],
|
|
60
79
|
"hideLogoutButton": [4, "hide-logout-button"],
|
|
80
|
+
"enableTopLayer": [4, "enable-top-layer"],
|
|
61
81
|
"showContextMenu": [32]
|
|
62
82
|
}]);
|
|
63
83
|
function defineCustomElement$1() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-menu-avatar.js","mappings":"
|
|
1
|
+
{"file":"ix-menu-avatar.js","mappings":";;;;;;;;;;;;;;AAAA,MAAM,aAAa,GAAG,29DAA29D;;MC4Bp+D,UAAU,iBAAAA,kBAAA,CAAA,MAAA,UAAA,SAAAC,CAAA,CAAA;AALvB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AA0CE;;AAEG;AACiC,QAAA,IAAU,CAAA,UAAA,GAAW,QAAQ;AAEjE;;AAEG;AACK,QAAA,IAAgB,CAAA,gBAAA,GAAY,KAAK;AAE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,IAAI,CAAC,CAAC,CAAC;AAC1B,aAAC,EACoB,CAAA,CACxB,CACW,CACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-avatar/menu-avatar.scss?tag=ix-menu-avatar&encapsulation=shadow","src/components/menu-avatar/menu-avatar.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@use './common-variables' as vars;\n@use 'mixins/text-truncation';\n@use 'mixins/hover';\n@use 'mixins/shadow-dom/component';\n\n:host {\n display: block;\n position: relative;\n margin-bottom: 0.5rem;\n margin-right: 0.75rem;\n\n @include component.ix-component;\n\n .avatar {\n all: unset;\n box-sizing: border-box;\n\n display: flex;\n align-items: center;\n height: 2.5rem;\n width: 100%;\n max-height: 2.5rem;\n padding-left: 0.25rem;\n margin-left: 0.41rem;\n margin-right: 0.35rem;\n transition: var(--theme-default-time);\n\n .avatar-name {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n margin-left: vars.$default-space;\n line-height: 1.14;\n\n .text-default-single {\n color: var(--theme-nav-item-primary--color);\n @include text-truncation.ellipsis;\n }\n }\n\n border-radius: 1.25rem;\n\n @include hover.hover {\n background-color: var(--theme-avatar-btn--background--hover);\n color: var(--theme-avatar-btn--color--hover);\n }\n\n @include hover.active {\n background-color: var(--theme-avatar-btn--background--active);\n color: var(--theme-avatar-btn--color--active);\n }\n }\n\n .avatar:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { iconLogOut } from '@siemens/ix-icons/icons';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\nimport { makeRef } from '../utils/make-ref';\nimport { getSlottedElements } from '../utils/shadow-dom';\n\n@Component({\n tag: 'ix-menu-avatar',\n styleUrl: 'menu-avatar.scss',\n shadow: true,\n})\nexport class MenuAvatar {\n @Element() hostElement!: HTMLIxMenuAvatarElement;\n\n /**\n * First line of text\n */\n @Prop() top?: string;\n\n /**\n * Second line of text\n */\n @Prop() bottom?: string;\n\n /**\n * Display a avatar image\n */\n @Prop() image?: string;\n\n /**\n * Display the initials of the user. Will be overwritten by image\n */\n @Prop() initials?: string;\n\n /**\n * Tooltip text to display on hover. If not set, the 'top' property (user name) will be used as the default tooltip text.\n *\n * @since 4.3.0.\n */\n @Prop() tooltipText?: string;\n\n /**\n * aria-label for the tooltip\n *\n * @since 4.3.0.\n */\n @Prop() ariaLabelTooltip?: string;\n\n /**\n * i18n label for 'Logout' button\n */\n @Prop({ attribute: 'i18n-logout' }) i18nLogout: string = 'Logout';\n\n /**\n * Control the visibility of the logout button\n */\n @Prop() hideLogoutButton: boolean = false;\n\n /**\n * Enable Popover API rendering for dropdown.\n *\n * @default false\n * @since 4.3.0\n */\n @Prop() enableTopLayer: boolean = false;\n\n /**\n * Control the visibility of the dropdown menu\n */\n @State() showContextMenu: boolean = false;\n\n /**\n * Logout click\n */\n @Event() logoutClick!: EventEmitter;\n\n private avatarElementId = 'ix-menu-avatar-id';\n private readonly tooltipRef = makeRef<HTMLIxTooltipElement>();\n\n onSlotChange() {\n const slot = this.hostElement.shadowRoot!.querySelector('slot');\n if (!slot) {\n return;\n }\n const elements = getSlottedElements(slot);\n this.showContextMenu = elements.length !== 0;\n }\n\n render() {\n const tooltipText = this.tooltipText ?? this.top;\n const ariaHidden = tooltipText === this.top;\n\n return (\n <Host slot=\"ix-menu-avatar\">\n <button\n class=\"nav-item top-item avatar no-hover\"\n id={this.avatarElementId}\n tabIndex={0}\n >\n <ix-avatar image={this.image} initials={this.initials}></ix-avatar>\n\n <div class=\"avatar-name\">\n <span class=\"text-default-single\">{this.top}</span>\n <span class=\"text-default-single\">{this.bottom}</span>\n </div>\n </button>\n {!!tooltipText && (\n <ix-tooltip\n ref={this.tooltipRef}\n for={`#${this.avatarElementId}`}\n placement={'right'}\n aria-hidden={a11yBoolean(ariaHidden)}\n aria-label={this.ariaLabelTooltip}\n >\n {tooltipText}\n </ix-tooltip>\n )}\n <ix-dropdown\n trigger={this.hostElement}\n placement={'right-start'}\n hidden={!this.showContextMenu && this.hideLogoutButton}\n offset={{\n mainAxis: 16,\n }}\n onShowChanged={(event) => {\n if (event.detail && this.tooltipRef.current) {\n this.tooltipRef.current.hideTooltip(0);\n }\n }}\n enableTopLayer={this.enableTopLayer}\n >\n <slot onSlotchange={() => this.onSlotChange()}></slot>\n {!this.hideLogoutButton && (\n <ix-menu-avatar-item\n label={this.i18nLogout}\n icon={iconLogOut}\n onClick={(e) => {\n this.logoutClick.emit(e);\n }}\n ></ix-menu-avatar-item>\n )}\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D-__gyet.js';
|
|
2
|
+
import { c as iconChevronDownSmall } from './p-BvsadYCu.js';
|
|
2
3
|
import { a as animate } from './p-DhE1t8Qh.js';
|
|
3
4
|
import { c as closestIxMenu } from './p-BhgW5qDm.js';
|
|
4
5
|
import { c as createMutationObserver } from './p-CX81WQtk.js';
|
|
5
|
-
import { c as iconChevronDownSmall } from './p-BvsadYCu.js';
|
|
6
6
|
import { d as defineCustomElement$7 } from './p-Db0RazS2.js';
|
|
7
|
-
import { d as defineCustomElement$6 } from './p-
|
|
8
|
-
import { d as defineCustomElement$5 } from './p-
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$6 } from './p-Djmkeupf.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './p-0gGE-dfR.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-BB98pUYU.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-D8qc3Tjo.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-DBeR3Qpr.js';
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
* SPDX-FileCopyrightText: 2024 Siemens AG
|
|
@@ -189,7 +189,7 @@ const MenuCategory = /*@__PURE__*/ proxyCustomElement(class MenuCategory extends
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (h(Host, { key: '
|
|
192
|
+
return (h(Host, { key: 'edd1e65e5cd1cc96d1da1decfa666654d3926f6d', class: {
|
|
193
193
|
expanded: this.showItems,
|
|
194
194
|
}, onPointerEnter: () => {
|
|
195
195
|
this.enterLeaveDebounce.onEnter();
|
|
@@ -198,14 +198,14 @@ const MenuCategory = /*@__PURE__*/ proxyCustomElement(class MenuCategory extends
|
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
this.enterLeaveDebounce.onLeave();
|
|
201
|
-
} }, h("ix-menu-item", { key: '
|
|
201
|
+
} }, h("ix-menu-item", { key: 'bd7b6f2c2bef925249db2b73ad14e1454a291939', class: 'category-parent', active: this.isNestedItemActive(), notifications: this.notifications, icon: this.icon, onClick: (e) => this.onCategoryClick(e), onFocus: () => this.onPointerEnter(), tooltipText: this.tooltipText, isCategory: true }, h("div", { key: '1bdd93be15ca3e24d491ce54aed4e441617bdbaf', class: "category" }, h("div", { key: '37444ebec527ba83b30675b3c01411770989f77b', class: "category-text" }, this.label), h("ix-icon", { key: '3e3967c7973058113c32f4f90a9343079bfc4d52', name: iconChevronDownSmall, class: {
|
|
202
202
|
'category-chevron': true,
|
|
203
203
|
'category-chevron--open': this.showItems,
|
|
204
|
-
} }))), h("div", { key: '
|
|
204
|
+
}, "aria-hidden": "true" }))), h("div", { key: '270aa92509cdf90771863199a9483d5039289d94', ref: (ref) => (this.menuItemsContainer = ref), class: {
|
|
205
205
|
'menu-items': true,
|
|
206
206
|
'menu-items--expanded': this.showItems,
|
|
207
207
|
'menu-items--collapsed': !this.showItems,
|
|
208
|
-
} }, this.showItems ? h("slot", null) : null), h("ix-dropdown", { key: '
|
|
208
|
+
} }, this.showItems ? h("slot", null) : null), h("ix-dropdown", { key: 'f81b8c80a0bef8cec723260df27c01ed0299a4d4', closeBehavior: 'both', show: this.showDropdown, onShowChanged: ({ detail: dropdownShown }) => {
|
|
209
209
|
this.showDropdown = dropdownShown;
|
|
210
210
|
}, class: 'category-dropdown', anchor: this.hostElement, placement: "right-start", offset: {
|
|
211
211
|
mainAxis: 3,
|
|
@@ -218,7 +218,7 @@ const MenuCategory = /*@__PURE__*/ proxyCustomElement(class MenuCategory extends
|
|
|
218
218
|
e.preventDefault();
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
} }, h("ix-dropdown-item", { key: '
|
|
221
|
+
} }, h("ix-dropdown-item", { key: '88b93b5ac540e470b659e0fa0e2a788cf9da0b3d', class: 'category-dropdown-header' }, h("ix-typography", { key: '2664b30d7a7aa21de7dd6874a8f8471bcb5f0dee', format: "label", bold: true, textColor: "std" }, this.label)), h("ix-divider", { key: 'af94566fdd4ad843ce75332b8e511201bfad790c' }), h("slot", { key: '735e220778d5ac78309c4133d11a1b8fad67431e' }))));
|
|
222
222
|
}
|
|
223
223
|
get hostElement() { return this; }
|
|
224
224
|
static get style() { return menuCategoryCss; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-menu-category.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AACa,SAAA,wBAAwB,CACtC,aAAuB,EACvB,aAAuB,EACvB,EACE,iBAAiB,EACjB,iBAAiB,GAIf,GAAA;AACF,IAAA,iBAAiB,E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CAAC;AACZ,aAAA,EACD,OAAO,EAAE,CAAC,CAAC,KAAI;AACb,gBAAA,IAAI,CAAC,CAAC,MAAM,YAAYA,CAAW,EAAE;oBACnC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,KAAK,cAAc,EAAE;AACvC,wBAAA,IAAI,CAAC,YAAY,GAAG,KAAK;;yBACpB;wBACL,CAAC,CAAC,cAAc,EAAE;;;AAGxB,aAAC,EAAA,EAED,CAAkB,CAAA,kBAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,0BAA0B,EAAA,EACjD,CAAA,CAAA,eAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAe,MAAM,EAAC,OAAO,EAAC,IAAI,EAAC,IAAA,EAAA,SAAS,EAAC,KAAK,EAC/C,EAAA,IAAI,CAAC,KAAK,CACG,CACC,EACnB,CAAyB,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EACzB,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACD,CACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-category/enter-leave.ts","src/components/menu-category/menu-category.scss?tag=ix-menu-category&encapsulation=shadow","src/components/menu-category/menu-category.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nexport function createEnterLeaveDebounce(\n enterCallback: Function,\n leaveCallback: Function,\n {\n debounceTimeEnter,\n debounceTimeLeave,\n }: {\n debounceTimeEnter: number;\n debounceTimeLeave: number;\n } = {\n debounceTimeEnter: 0,\n debounceTimeLeave: 500,\n }\n) {\n let enterTimeout: NodeJS.Timeout;\n let leaveTimeout: NodeJS.Timeout;\n\n return {\n onEnter: () => {\n clearTimeout(leaveTimeout);\n enterTimeout = setTimeout(() => {\n enterCallback();\n }, debounceTimeEnter);\n },\n onLeave: () => {\n clearTimeout(enterTimeout);\n leaveTimeout = setTimeout(() => {\n leaveCallback();\n }, debounceTimeLeave);\n },\n };\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@use 'mixins/shadow-dom/component';\n@use 'mixins/text-truncation';\n\n:host {\n display: flex;\n flex-direction: column;\n position: relative;\n\n @include component.ix-component;\n\n .category {\n display: flex;\n position: relative;\n align-items: center;\n width: 100%;\n height: 100%;\n }\n\n .category-text {\n width: 100%;\n padding-right: 0.25rem;\n\n @include text-truncation.ellipsis;\n }\n\n .category-chevron {\n margin-left: auto;\n margin-right: 0;\n transition: var(--theme-default-time) transform ease-in-out;\n }\n\n .category-chevron--open {\n transform: rotate(-180deg);\n }\n\n .menu-items {\n overflow: hidden;\n max-height: 0;\n transition: var(--theme-default-time) max-height ease-in-out;\n }\n\n .menu-items--expanded {\n max-height: 999999999px;\n padding: 0.25rem 0 0.25rem 1.625rem;\n }\n\n .menu-items--collapsed {\n display: none;\n }\n\n .category-dropdown {\n ::slotted(ix-menu-item) {\n --ix-menu-item-height: 2.5rem;\n }\n }\n\n .category-dropdown-header {\n pointer-events: none;\n padding-left: 0.125rem;\n min-width: 256px;\n }\n\n ::slotted(ix-menu-item) {\n --ix-menu-item-height: 2.5rem;\n }\n}\n\n:host(.expanded) {\n background-color: var(--theme-color-ghost--active);\n}\n\n:host {\n ::slotted(a[href]) {\n text-decoration: none !important;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport {\n Component,\n Element,\n h,\n Host,\n Prop,\n State,\n Event,\n EventEmitter,\n Listen,\n} from '@stencil/core';\nimport { animate } from 'animejs';\nimport { closestIxMenu } from '../utils/application-layout/context';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport { createEnterLeaveDebounce } from './enter-leave';\nimport { iconChevronDownSmall } from '@siemens/ix-icons/icons';\nimport type { IxMenuItemBase } from './../menu-item/menu-item.interface';\nconst DefaultIxMenuItemHeight = 40;\nconst DefaultAnimationTimeout = 150;\n\n@Component({\n tag: 'ix-menu-category',\n styleUrl: 'menu-category.scss',\n shadow: true,\n})\nexport class MenuCategory implements IxMenuItemBase {\n @Element() hostElement!: HTMLIxMenuCategoryElement;\n\n /**\n * Display name of the category\n */\n @Prop() label?: string;\n\n /**\n * Icon of the category\n */\n @Prop() icon?: string;\n\n /**\n * Show notification count on the category\n */\n @Prop() notifications?: number;\n\n /**\n * Will be shown as tooltip text, if not provided menu text content will be used.\n *\n * @since 4.0.0\n */\n @Prop() tooltipText?: string;\n\n /** @internal */\n // eslint-disable-next-line @stencil-community/decorators-style\n @Event({ bubbles: true, cancelable: true })\n closeOtherCategories!: EventEmitter;\n\n @State() menuExpand = false;\n @State() showItems = false;\n @State() showDropdown = false;\n @State() nestedItems: HTMLIxMenuItemElement[] = [];\n\n private observer?: MutationObserver;\n private menuItemsContainer?: HTMLDivElement;\n private ixMenu?: HTMLIxMenuElement;\n\n private enterLeaveDebounce = createEnterLeaveDebounce(\n () => {\n this.onPointerEnter();\n },\n () => {\n this.onPointerLeave();\n }\n );\n\n private isNestedItemActive() {\n return this.getNestedItems().some((item) => item.active);\n }\n\n private getNestedItems() {\n return Array.from(\n this.hostElement.querySelectorAll(':scope ix-menu-item')\n ) as HTMLIxMenuItemElement[];\n }\n\n private getNestedItemsHeight() {\n const items = this.getNestedItems();\n\n return items.length * DefaultIxMenuItemHeight;\n }\n\n private onExpandCategory(showItems: boolean) {\n if (showItems) {\n this.animateFadeIn();\n } else {\n this.animateFadeOut();\n }\n }\n\n private animateFadeOut() {\n const slotHideThresholdMs = 25;\n animate(this.menuItemsContainer!, {\n duration: DefaultAnimationTimeout,\n easing: 'easeInSine',\n opacity: [1, 0],\n maxHeight: [this.getNestedItemsHeight() + DefaultIxMenuItemHeight, 0],\n onComplete: () => {\n setTimeout(() => {\n this.showItems = false;\n this.showDropdown = false;\n }, DefaultAnimationTimeout + slotHideThresholdMs);\n },\n });\n }\n\n private animateFadeIn() {\n animate(this.menuItemsContainer!, {\n duration: DefaultAnimationTimeout,\n easing: 'easeInSine',\n opacity: [0, 1],\n maxHeight: [0, this.getNestedItemsHeight() + DefaultIxMenuItemHeight],\n onBegin: () => {\n this.showItems = true;\n this.showDropdown = false;\n },\n });\n }\n\n private onPointerEnter() {\n if (this.ixMenu?.expand) {\n return;\n }\n this.closeOtherCategories.emit();\n this.showDropdown = true;\n }\n\n @Listen('closeOtherCategories', { target: 'window' })\n private onPointerLeave() {\n this.showDropdown = false;\n }\n\n private onCategoryClick(e: MouseEvent) {\n e.stopPropagation();\n if (this.ixMenu?.expand) {\n this.onExpandCategory(!this.showItems);\n return;\n }\n }\n\n private onNestedItemsChanged(mutations?: MutationRecord[]) {\n const oldNestedItemsLength = this.nestedItems.length;\n this.nestedItems = this.getNestedItems();\n\n if (\n this.showItems &&\n this.menuItemsContainer &&\n oldNestedItemsLength !== this.nestedItems.length\n ) {\n this.menuItemsContainer.style.maxHeight = `${\n this.getNestedItemsHeight() + DefaultIxMenuItemHeight\n }px`;\n }\n\n if (!this.menuExpand || this.showItems || !mutations) {\n return;\n }\n\n for (const mutation of mutations ?? []) {\n if (\n mutation.attributeName === 'class' &&\n mutation.target instanceof HTMLElement &&\n mutation.target.classList.contains('active')\n ) {\n this.showItems = true;\n this.onExpandCategory(true);\n return;\n }\n }\n }\n\n private isCategoryItemListVisible() {\n return this.menuExpand && (this.showItems || this.isNestedItemActive());\n }\n\n componentWillLoad() {\n const closestMenu = closestIxMenu(this.hostElement);\n if (!closestMenu) {\n throw Error('ix-menu-category can only be used as a child of ix-menu');\n }\n this.ixMenu = closestMenu;\n\n this.menuExpand = this.ixMenu.expand;\n this.showItems = this.isCategoryItemListVisible();\n }\n\n componentDidLoad() {\n this.observer = createMutationObserver((mutations: MutationRecord[]) =>\n this.onNestedItemsChanged(mutations)\n );\n\n this.observer.observe(this.hostElement, {\n attributes: true,\n childList: true,\n subtree: true,\n });\n\n requestAnimationFrame(() => {\n this.onNestedItemsChanged();\n });\n\n this.ixMenu?.addEventListener(\n 'expandChange',\n ({ detail: menuExpand }: CustomEvent<boolean>) => {\n this.menuExpand = menuExpand;\n if (!menuExpand) {\n this.clearMenuItemStyles();\n }\n this.showItems = this.isCategoryItemListVisible();\n }\n );\n }\n\n clearMenuItemStyles() {\n this.menuItemsContainer?.style.removeProperty('max-height');\n this.menuItemsContainer?.style.removeProperty('opacity');\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n return (\n <Host\n class={{\n expanded: this.showItems,\n }}\n onPointerEnter={() => {\n this.enterLeaveDebounce.onEnter();\n }}\n onPointerLeave={(event: PointerEvent) => {\n if (event.pointerType === 'touch') {\n return;\n }\n this.enterLeaveDebounce.onLeave();\n }}\n >\n <ix-menu-item\n class={'category-parent'}\n active={this.isNestedItemActive()}\n notifications={this.notifications}\n icon={this.icon}\n onClick={(e) => this.onCategoryClick(e)}\n onFocus={() => this.onPointerEnter()}\n tooltipText={this.tooltipText}\n isCategory\n >\n <div class=\"category\">\n <div class=\"category-text\">{this.label}</div>\n <ix-icon\n name={iconChevronDownSmall}\n class={{\n 'category-chevron': true,\n 'category-chevron--open': this.showItems,\n }}\n ></ix-icon>\n </div>\n </ix-menu-item>\n <div\n ref={(ref) => (this.menuItemsContainer = ref!)}\n class={{\n 'menu-items': true,\n 'menu-items--expanded': this.showItems,\n 'menu-items--collapsed': !this.showItems,\n }}\n >\n {this.showItems ? <slot></slot> : null}\n </div>\n <ix-dropdown\n closeBehavior={'both'}\n show={this.showDropdown}\n onShowChanged={({ detail: dropdownShown }: CustomEvent<boolean>) => {\n this.showDropdown = dropdownShown;\n }}\n class={'category-dropdown'}\n anchor={this.hostElement}\n placement=\"right-start\"\n offset={{\n mainAxis: 3,\n }}\n onClick={(e) => {\n if (e.target instanceof HTMLElement) {\n if (e.target.tagName === 'IX-MENU-ITEM') {\n this.showDropdown = false;\n } else {\n e.preventDefault();\n }\n }\n }}\n >\n <ix-dropdown-item class={'category-dropdown-header'}>\n <ix-typography format=\"label\" bold textColor=\"std\">\n {this.label}\n </ix-typography>\n </ix-dropdown-item>\n <ix-divider></ix-divider>\n <slot></slot>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"ix-menu-category.js","mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AACa,SAAA,wBAAwB,CACtC,aAAuB,EACvB,aAAuB,EACvB,EACE,iBAAiB,EACjB,iBAAiB,GAIf,GAAA;AACF,IAAA,iBAAiB,EAAE,CAAC;AACpB,IAAA,iBAAiB,EAAE,GAAG;AACvB,CAAA,EAAA;AAED,IAAA,IAAI,YAA4B;AAChC,IAAA,IAAI,YAA4B;IAEhC,OAAO;QACL,OAAO,EAAE,MAAK;YACZ,YAAY,CAAC,YAAY,CAAC;AAC1B,YAAA,YAAY,GAAG,UAAU,CAAC,MAAK;AAC7B,gBAAA,aAAa,EAAE;aAChB,EAAE,iBAAiB,CAAC;SACtB;QACD,OAAO,EAAE,MAAK;YACZ,YAAY,CAAC,YAAY,CAAC;AAC1B,YAAA,YAAY,GAAG,UAAU,CAAC,MAAK;AAC7B,gBAAA,aAAa,EAAE;aAChB,EAAE,iBAAiB,CAAC;SACtB;KACF;AACH;;ACvCA,MAAM,eAAe,GAAG,+wDAA+wD;;ACyBvyD,MAAM,uBAAuB,GAAG,EAAE;AAClC,MAAM,uBAAuB,GAAG,GAAG;MAOtB,YAAY,iBAAAA,kBAAA,CAAA,MAAA,YAAA,SAAAC,CAAA,CAAA;AALzB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;A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,EAAA,0CAAA,EAAA,CAAA,CACD,CACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/menu-category/enter-leave.ts","src/components/menu-category/menu-category.scss?tag=ix-menu-category&encapsulation=shadow","src/components/menu-category/menu-category.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nexport function createEnterLeaveDebounce(\n enterCallback: Function,\n leaveCallback: Function,\n {\n debounceTimeEnter,\n debounceTimeLeave,\n }: {\n debounceTimeEnter: number;\n debounceTimeLeave: number;\n } = {\n debounceTimeEnter: 0,\n debounceTimeLeave: 500,\n }\n) {\n let enterTimeout: NodeJS.Timeout;\n let leaveTimeout: NodeJS.Timeout;\n\n return {\n onEnter: () => {\n clearTimeout(leaveTimeout);\n enterTimeout = setTimeout(() => {\n enterCallback();\n }, debounceTimeEnter);\n },\n onLeave: () => {\n clearTimeout(enterTimeout);\n leaveTimeout = setTimeout(() => {\n leaveCallback();\n }, debounceTimeLeave);\n },\n };\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@use 'mixins/shadow-dom/component';\n@use 'mixins/text-truncation';\n\n:host {\n display: flex;\n flex-direction: column;\n position: relative;\n\n @include component.ix-component;\n\n .category {\n display: flex;\n position: relative;\n align-items: center;\n width: 100%;\n height: 100%;\n }\n\n .category-text {\n width: 100%;\n padding-right: 0.25rem;\n\n @include text-truncation.ellipsis;\n }\n\n .category-chevron {\n margin-left: auto;\n margin-right: 0;\n transition: var(--theme-default-time) transform ease-in-out;\n }\n\n .category-chevron--open {\n transform: rotate(-180deg);\n }\n\n .menu-items {\n overflow: hidden;\n max-height: 0;\n transition: var(--theme-default-time) max-height ease-in-out;\n }\n\n .menu-items--expanded {\n max-height: 999999999px;\n padding: 0.25rem 0 0.25rem 1.625rem;\n }\n\n .menu-items--collapsed {\n display: none;\n }\n\n .category-dropdown {\n ::slotted(ix-menu-item) {\n --ix-menu-item-height: 2.5rem;\n }\n }\n\n .category-dropdown-header {\n pointer-events: none;\n padding-left: 0.125rem;\n min-width: 256px;\n }\n\n ::slotted(ix-menu-item) {\n --ix-menu-item-height: 2.5rem;\n }\n}\n\n:host(.expanded) {\n background-color: var(--theme-color-ghost--active);\n}\n\n:host {\n ::slotted(a[href]) {\n text-decoration: none !important;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { iconChevronDownSmall } from '@siemens/ix-icons/icons';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from '@stencil/core';\nimport { animate } from 'animejs';\nimport { closestIxMenu } from '../utils/application-layout/context';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport type { IxMenuItemBase } from './../menu-item/menu-item.interface';\nimport { createEnterLeaveDebounce } from './enter-leave';\nconst DefaultIxMenuItemHeight = 40;\nconst DefaultAnimationTimeout = 150;\n\n@Component({\n tag: 'ix-menu-category',\n styleUrl: 'menu-category.scss',\n shadow: true,\n})\nexport class MenuCategory implements IxMenuItemBase {\n @Element() hostElement!: HTMLIxMenuCategoryElement;\n\n /**\n * Display name of the category\n */\n @Prop() label?: string;\n\n /**\n * Icon of the category\n */\n @Prop() icon?: string;\n\n /**\n * Show notification count on the category\n */\n @Prop() notifications?: number;\n\n /**\n * Will be shown as tooltip text, if not provided menu text content will be used.\n *\n * @since 4.0.0\n */\n @Prop() tooltipText?: string;\n\n /** @internal */\n // eslint-disable-next-line @stencil-community/decorators-style\n @Event({ bubbles: true, cancelable: true })\n closeOtherCategories!: EventEmitter;\n\n @State() menuExpand = false;\n @State() showItems = false;\n @State() showDropdown = false;\n @State() nestedItems: HTMLIxMenuItemElement[] = [];\n\n private observer?: MutationObserver;\n private menuItemsContainer?: HTMLDivElement;\n private ixMenu?: HTMLIxMenuElement;\n\n private enterLeaveDebounce = createEnterLeaveDebounce(\n () => {\n this.onPointerEnter();\n },\n () => {\n this.onPointerLeave();\n }\n );\n\n private isNestedItemActive() {\n return this.getNestedItems().some((item) => item.active);\n }\n\n private getNestedItems() {\n return Array.from(\n this.hostElement.querySelectorAll(':scope ix-menu-item')\n ) as HTMLIxMenuItemElement[];\n }\n\n private getNestedItemsHeight() {\n const items = this.getNestedItems();\n\n return items.length * DefaultIxMenuItemHeight;\n }\n\n private onExpandCategory(showItems: boolean) {\n if (showItems) {\n this.animateFadeIn();\n } else {\n this.animateFadeOut();\n }\n }\n\n private animateFadeOut() {\n const slotHideThresholdMs = 25;\n animate(this.menuItemsContainer!, {\n duration: DefaultAnimationTimeout,\n easing: 'easeInSine',\n opacity: [1, 0],\n maxHeight: [this.getNestedItemsHeight() + DefaultIxMenuItemHeight, 0],\n onComplete: () => {\n setTimeout(() => {\n this.showItems = false;\n this.showDropdown = false;\n }, DefaultAnimationTimeout + slotHideThresholdMs);\n },\n });\n }\n\n private animateFadeIn() {\n animate(this.menuItemsContainer!, {\n duration: DefaultAnimationTimeout,\n easing: 'easeInSine',\n opacity: [0, 1],\n maxHeight: [0, this.getNestedItemsHeight() + DefaultIxMenuItemHeight],\n onBegin: () => {\n this.showItems = true;\n this.showDropdown = false;\n },\n });\n }\n\n private onPointerEnter() {\n if (this.ixMenu?.expand) {\n return;\n }\n this.closeOtherCategories.emit();\n this.showDropdown = true;\n }\n\n @Listen('closeOtherCategories', { target: 'window' })\n private onPointerLeave() {\n this.showDropdown = false;\n }\n\n private onCategoryClick(e: MouseEvent) {\n e.stopPropagation();\n if (this.ixMenu?.expand) {\n this.onExpandCategory(!this.showItems);\n return;\n }\n }\n\n private onNestedItemsChanged(mutations?: MutationRecord[]) {\n const oldNestedItemsLength = this.nestedItems.length;\n this.nestedItems = this.getNestedItems();\n\n if (\n this.showItems &&\n this.menuItemsContainer &&\n oldNestedItemsLength !== this.nestedItems.length\n ) {\n this.menuItemsContainer.style.maxHeight = `${\n this.getNestedItemsHeight() + DefaultIxMenuItemHeight\n }px`;\n }\n\n if (!this.menuExpand || this.showItems || !mutations) {\n return;\n }\n\n for (const mutation of mutations ?? []) {\n if (\n mutation.attributeName === 'class' &&\n mutation.target instanceof HTMLElement &&\n mutation.target.classList.contains('active')\n ) {\n this.showItems = true;\n this.onExpandCategory(true);\n return;\n }\n }\n }\n\n private isCategoryItemListVisible() {\n return this.menuExpand && (this.showItems || this.isNestedItemActive());\n }\n\n componentWillLoad() {\n const closestMenu = closestIxMenu(this.hostElement);\n if (!closestMenu) {\n throw Error('ix-menu-category can only be used as a child of ix-menu');\n }\n this.ixMenu = closestMenu;\n\n this.menuExpand = this.ixMenu.expand;\n this.showItems = this.isCategoryItemListVisible();\n }\n\n componentDidLoad() {\n this.observer = createMutationObserver((mutations: MutationRecord[]) =>\n this.onNestedItemsChanged(mutations)\n );\n\n this.observer.observe(this.hostElement, {\n attributes: true,\n childList: true,\n subtree: true,\n });\n\n requestAnimationFrame(() => {\n this.onNestedItemsChanged();\n });\n\n this.ixMenu?.addEventListener(\n 'expandChange',\n ({ detail: menuExpand }: CustomEvent<boolean>) => {\n this.menuExpand = menuExpand;\n if (!menuExpand) {\n this.clearMenuItemStyles();\n }\n this.showItems = this.isCategoryItemListVisible();\n }\n );\n }\n\n clearMenuItemStyles() {\n this.menuItemsContainer?.style.removeProperty('max-height');\n this.menuItemsContainer?.style.removeProperty('opacity');\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n return (\n <Host\n class={{\n expanded: this.showItems,\n }}\n onPointerEnter={() => {\n this.enterLeaveDebounce.onEnter();\n }}\n onPointerLeave={(event: PointerEvent) => {\n if (event.pointerType === 'touch') {\n return;\n }\n this.enterLeaveDebounce.onLeave();\n }}\n >\n <ix-menu-item\n class={'category-parent'}\n active={this.isNestedItemActive()}\n notifications={this.notifications}\n icon={this.icon}\n onClick={(e) => this.onCategoryClick(e)}\n onFocus={() => this.onPointerEnter()}\n tooltipText={this.tooltipText}\n isCategory\n >\n <div class=\"category\">\n <div class=\"category-text\">{this.label}</div>\n <ix-icon\n name={iconChevronDownSmall}\n class={{\n 'category-chevron': true,\n 'category-chevron--open': this.showItems,\n }}\n aria-hidden=\"true\"\n ></ix-icon>\n </div>\n </ix-menu-item>\n <div\n ref={(ref) => (this.menuItemsContainer = ref!)}\n class={{\n 'menu-items': true,\n 'menu-items--expanded': this.showItems,\n 'menu-items--collapsed': !this.showItems,\n }}\n >\n {this.showItems ? <slot></slot> : null}\n </div>\n <ix-dropdown\n closeBehavior={'both'}\n show={this.showDropdown}\n onShowChanged={({ detail: dropdownShown }: CustomEvent<boolean>) => {\n this.showDropdown = dropdownShown;\n }}\n class={'category-dropdown'}\n anchor={this.hostElement}\n placement=\"right-start\"\n offset={{\n mainAxis: 3,\n }}\n onClick={(e) => {\n if (e.target instanceof HTMLElement) {\n if (e.target.tagName === 'IX-MENU-ITEM') {\n this.showDropdown = false;\n } else {\n e.preventDefault();\n }\n }\n }}\n >\n <ix-dropdown-item class={'category-dropdown-header'}>\n <ix-typography format=\"label\" bold textColor=\"std\">\n {this.label}\n </ix-typography>\n </ix-dropdown-item>\n <ix-divider></ix-divider>\n <slot></slot>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -19,7 +19,7 @@ const MenuSettingsItem = /*@__PURE__*/ proxyCustomElement(class MenuSettingsItem
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '93bcd49368f3bcb45ca4405eb1f75d5a0699b784' }, h("slot", { key: '3d2fd58e28f27f3f8355dc915fc78e15fb64bf61' })));
|
|
23
23
|
}
|
|
24
24
|
static get watchers() { return {
|
|
25
25
|
"label": ["watchLabel"]
|
package/components/ix-menu.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-D-__gyet.js';
|
|
2
|
+
import { C as iconNavigationLeft, D as iconNavigationRight, a as iconApps, E as iconCogwheel, F as iconLightDark, o as iconInfo } from './p-BvsadYCu.js';
|
|
2
3
|
import { a as animate } from './p-DhE1t8Qh.js';
|
|
3
|
-
import {
|
|
4
|
+
import { A as Animation } from './p-C5MWUgDN.js';
|
|
5
|
+
import { s as showAppSwitch } from './p-U0nRzcrj.js';
|
|
4
6
|
import { a as useContextConsumer, A as ApplicationLayoutContext } from './p-BhgW5qDm.js';
|
|
5
7
|
import { a as applicationLayoutService } from './p-gkooEHol.js';
|
|
6
8
|
import { m as menuController } from './p-BncjKdXL.js';
|
|
7
9
|
import { a as convertToRemString } from './p-JJddxCCh.js';
|
|
8
10
|
import { t as themeSwitcher } from './p-CsHYWHE6.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$3 } from './p-DXFN8JXp.js';
|
|
16
|
-
import { d as defineCustomElement$2 } from './p-BBwXlKhE.js';
|
|
11
|
+
import { d as defineCustomElement$7 } from './p-uIFuspHx.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './p-CUdJN6-t.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './p-BB98pUYU.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './p-Ds0M0G_e.js';
|
|
15
|
+
import { d as defineCustomElement$3 } from './p-D8qc3Tjo.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './p-DBeR3Qpr.js';
|
|
17
17
|
|
|
18
18
|
/*
|
|
19
19
|
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
@@ -64,6 +64,7 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
64
64
|
this.applicationDescription = '';
|
|
65
65
|
/**
|
|
66
66
|
* Accessibility i18n label for the burger menu of the sidebar
|
|
67
|
+
* @deprecated Since 4.2.0. Will be removed in 5.0.0. The expand button is now hidden from screen readers with aria-hidden="true".
|
|
67
68
|
*/
|
|
68
69
|
this.i18nExpandSidebar = 'Expand sidebar';
|
|
69
70
|
/**
|
|
@@ -103,6 +104,7 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
103
104
|
this.breakpoint = 'lg';
|
|
104
105
|
this.itemsScrollShadowTop = false;
|
|
105
106
|
this.itemsScrollShadowBottom = false;
|
|
107
|
+
this.isDarkMode = false;
|
|
106
108
|
this.isTransitionDisabled = false;
|
|
107
109
|
// FBC IAM workaround #488
|
|
108
110
|
this.isVisible = (elm) => {
|
|
@@ -111,6 +113,12 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
111
113
|
((_b = (_a = elm.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.style.display) !== 'none');
|
|
112
114
|
};
|
|
113
115
|
}
|
|
116
|
+
expandChanged(newExpand, oldExpand) {
|
|
117
|
+
if (newExpand === oldExpand) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this.toggleMenu(newExpand);
|
|
121
|
+
}
|
|
114
122
|
pinnedChange(newPinned) {
|
|
115
123
|
this.setPinned(this.pinned);
|
|
116
124
|
if (newPinned) {
|
|
@@ -198,6 +206,10 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
198
206
|
menuController.register(this.hostElement);
|
|
199
207
|
applicationLayoutService.onChange.on((breakpoint) => this.onBreakpointChange(breakpoint));
|
|
200
208
|
this.onBreakpointChange(applicationLayoutService.breakpoint, true);
|
|
209
|
+
this.updateThemeState();
|
|
210
|
+
this.themeDisposer = themeSwitcher.schemaChanged.on(() => {
|
|
211
|
+
this.updateThemeState();
|
|
212
|
+
});
|
|
201
213
|
}
|
|
202
214
|
componentDidRender() {
|
|
203
215
|
if (!this.about && this.aboutNewsPopover) {
|
|
@@ -205,6 +217,14 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
205
217
|
}
|
|
206
218
|
this.appendFragments();
|
|
207
219
|
}
|
|
220
|
+
disconnectedCallback() {
|
|
221
|
+
var _a;
|
|
222
|
+
(_a = this.themeDisposer) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
223
|
+
}
|
|
224
|
+
updateThemeState() {
|
|
225
|
+
const currentTheme = themeSwitcher.getCurrentTheme();
|
|
226
|
+
this.isDarkMode = currentTheme.includes(themeSwitcher.suffixDark);
|
|
227
|
+
}
|
|
208
228
|
setPinned(pinned) {
|
|
209
229
|
this.showPinned = pinned;
|
|
210
230
|
menuController.setIsPinned(pinned);
|
|
@@ -455,47 +475,55 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
455
475
|
}
|
|
456
476
|
render() {
|
|
457
477
|
var _a, _b;
|
|
458
|
-
|
|
478
|
+
let overlayLabel;
|
|
479
|
+
if (this.showSettings) {
|
|
480
|
+
overlayLabel = this.i18nSettings;
|
|
481
|
+
}
|
|
482
|
+
else if (this.showAbout) {
|
|
483
|
+
overlayLabel = this.i18nLegal;
|
|
484
|
+
}
|
|
485
|
+
return (h(Host, { key: '7908b3049bc1a6888ec28b1adf487c445a29bd70', class: {
|
|
459
486
|
expanded: this.expand,
|
|
460
487
|
[`breakpoint-${this.breakpoint}`]: true,
|
|
461
|
-
}, slot: "menu" }, h("nav", { key: '
|
|
488
|
+
}, slot: "menu" }, h("nav", { key: 'f4cf27af13639bcf878b735a9e6b736fb64191ee', "aria-label": this.applicationName, class: {
|
|
462
489
|
menu: true,
|
|
463
490
|
expanded: this.expand,
|
|
464
|
-
} }, h("div", { key: '
|
|
465
|
-
((_a = this.applicationLayoutContext) === null || _a === void 0 ? void 0 : _a.appSwitchConfig) && (h("ix-icon-button", { key: '
|
|
491
|
+
} }, h("div", { key: '0f62e241cf573b88b434be91c74aca94433f4193', class: "menu-buttons" }, this.breakpoint !== 'sm' && (h("ix-menu-expand-icon", { key: '035c270e6409bac89219b3e8d13f285f280dea82', breakpoint: this.breakpoint, expanded: this.expand, pinned: this.pinned, class: "menu-expand-icon", onClick: async () => this.toggleMenu(), "data-testid": "expand-collapse-menu" })), this.breakpoint === 'sm' &&
|
|
492
|
+
((_a = this.applicationLayoutContext) === null || _a === void 0 ? void 0 : _a.appSwitchConfig) && (h("ix-icon-button", { key: '15afec8a3ae367edf2a15aa17204c204fca4e557', onClick: () => {
|
|
466
493
|
this.showAppSwitch();
|
|
467
|
-
}, icon: iconApps, variant: "subtle-tertiary" }))), h("div", { key: '
|
|
494
|
+
}, icon: iconApps, variant: "subtle-tertiary" }))), h("div", { key: '78f667ac88c651abe7a0c035b23e01c77a5b3597', id: "menu-tabs", style: {
|
|
468
495
|
display: 'contents',
|
|
469
|
-
}, onClick: (e) => this.onMenuItemsClick(e) }, h("div", { key: '
|
|
496
|
+
}, onClick: (e) => this.onMenuItemsClick(e) }, h("div", { key: 'bb0ce756d9b06f762425afaa7d4fb117afc14cdc', class: "tabs-shadow-container" }, h("div", { key: 'c587ef53745dc5bd34898f1ea448f1822e3e5d61', class: {
|
|
470
497
|
'tabs--shadow': true,
|
|
471
498
|
'tabs--shadow-top': true,
|
|
472
499
|
'tabs--shadow--show': this.itemsScrollShadowTop,
|
|
473
|
-
} }), h("div", { key: '
|
|
500
|
+
} }), h("div", { key: 'bd01c9f1d6d55df8d2a99adc8265bcb2123394ae', class: {
|
|
474
501
|
tabs: true,
|
|
475
502
|
'show-scrollbar': this.expand,
|
|
476
|
-
}, onScroll: () => this.handleOverflowIndicator() }, h("div", { key: '
|
|
503
|
+
}, onScroll: () => this.handleOverflowIndicator() }, h("div", { key: '1eb6c9ff52ad626d4e662f1f94edfcc98e949044', class: "menu-avatar" }, h("slot", { key: '012eb4520d780e653b3b96d1d0278c839ce039b6', name: "ix-menu-avatar" })), h("slot", { key: '96b4d1055376c0a1cd462d1c2d8de82bc2d4b7bd', name: "home" }), this.breakpoint !== 'sm' || !this.isHiddenFromViewport() ? (h("slot", null)) : null), h("div", { key: '35f65a80ee3324ddac4d7c44e7d341aee870bfa1', class: {
|
|
477
504
|
'tabs--shadow': true,
|
|
478
505
|
'tabs--shadow-bottom': true,
|
|
479
506
|
'tabs--shadow--show': this.itemsScrollShadowBottom,
|
|
480
|
-
} }))), h("div", { key: '
|
|
507
|
+
} }))), h("div", { key: '8efbab0c1961bc53e850d5a1da667866f8716462', class: "bottom-tab-divider" }), this.settings ? (h("ix-menu-item", { disabled: this.isHiddenFromViewport(), id: "settings", class: {
|
|
481
508
|
'internal-tab': true,
|
|
482
509
|
'bottom-tab': true,
|
|
483
510
|
active: this.showSettings,
|
|
484
|
-
}, icon: iconCogwheel, onClick: async () => this.toggleSettings(!this.showSettings), label: this.i18nSettings })) : null, this.enableToggleTheme ? (h("ix-menu-item", { disabled: this.isHiddenFromViewport(), id: "toggleTheme", onClick: () => themeSwitcher.toggleMode(), class: "internal-tab bottom-tab", icon: iconLightDark, label: this.i18nToggleTheme })) : null, h("div", { key: '
|
|
511
|
+
}, icon: iconCogwheel, onClick: async () => this.toggleSettings(!this.showSettings), label: this.i18nSettings, "aria-expanded": this.showSettings.toString(), "aria-controls": "menu-overlay" })) : null, this.enableToggleTheme ? (h("ix-menu-item", { disabled: this.isHiddenFromViewport(), id: "toggleTheme", onClick: () => themeSwitcher.toggleMode(), class: "internal-tab bottom-tab", icon: iconLightDark, label: this.i18nToggleTheme, role: "switch", "aria-checked": this.isDarkMode.toString() })) : null, h("div", { key: '0380616a60db7d5984af88c5a3edb1199184a27d', onClick: (e) => this.onMenuItemsClick(e) }, h("slot", { key: 'ee7506da4bdf9296e8477dea89d2e8f3dbc5d6b9', name: "bottom" })), h("div", { key: '5113ea04bed4ecc0a6a4a6bd1552d5ca8a1c5302', id: "popover-area" }), this.enableMapExpand || ((_b = this.applicationLayoutContext) === null || _b === void 0 ? void 0 : _b.sidebar) ? (h("ix-menu-item", { disabled: this.isHiddenFromViewport(), id: "menu-collapse", onClick: () => this.sidebarToggle(), class: "internal-tab bottom-tab", icon: `${this.getCollapseIcon()}`, label: this.getCollapseText() })) : null, this.about ? (h("ix-menu-item", { disabled: this.isHiddenFromViewport(), id: "aboutAndLegal", class: {
|
|
485
512
|
'internal-tab': true,
|
|
486
513
|
'bottom-tab': true,
|
|
487
514
|
active: this.showAbout,
|
|
488
|
-
}, icon: iconInfo, onClick: async () => this.toggleAbout(!this.showAbout), label: this.i18nLegal })) : null), h("
|
|
515
|
+
}, icon: iconInfo, onClick: async () => this.toggleAbout(!this.showAbout), label: this.i18nLegal, "aria-expanded": this.showAbout.toString(), "aria-controls": "menu-overlay" })) : null), h("section", { key: 'fa56100500bd7cbd4c6889c5541803ce9561f7d2', id: "menu-overlay", "aria-label": overlayLabel, class: {
|
|
489
516
|
'menu-overlay': true,
|
|
490
517
|
visible: this.isOverlayVisible(),
|
|
491
518
|
expanded: this.expand,
|
|
492
519
|
}, onTransitionEnd: () => {
|
|
493
520
|
this.isTransitionDisabled = true;
|
|
494
521
|
this.checkTransition();
|
|
495
|
-
} }, h("div", { key: '
|
|
522
|
+
} }, h("div", { key: 'c716d09e64b870e38b171e9d7ab731409b14689a', class: 'menu-overlay-container' }, this.showSettings ? h("slot", { name: "ix-menu-settings" }) : null), h("div", { key: '08d767b2045d549520f75babeaaba23146cc9463', class: 'menu-overlay-container' }, this.showAbout ? h("slot", { name: "ix-menu-about" }) : null))));
|
|
496
523
|
}
|
|
497
524
|
get hostElement() { return this; }
|
|
498
525
|
static get watchers() { return {
|
|
526
|
+
"expand": ["expandChanged"],
|
|
499
527
|
"pinned": ["pinnedChange"]
|
|
500
528
|
}; }
|
|
501
529
|
static get style() { return menuCss; }
|
|
@@ -521,11 +549,13 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends H {
|
|
|
521
549
|
"itemsScrollShadowTop": [32],
|
|
522
550
|
"itemsScrollShadowBottom": [32],
|
|
523
551
|
"applicationLayoutContext": [32],
|
|
552
|
+
"isDarkMode": [32],
|
|
524
553
|
"toggleMapExpand": [64],
|
|
525
554
|
"toggleMenu": [64],
|
|
526
555
|
"toggleSettings": [64],
|
|
527
556
|
"toggleAbout": [64]
|
|
528
557
|
}, [[9, "resize", "handleOverflowIndicator"], [0, "close", "onOverlayClose"]], {
|
|
558
|
+
"expand": ["expandChanged"],
|
|
529
559
|
"pinned": ["pinnedChange"]
|
|
530
560
|
}]);
|
|
531
561
|
function defineCustomElement$1() {
|