@siemens/ix 1.4.0-beta.0 → 1.4.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{animation-dfe01edc.js → animation-d5cc0bec.js} +1 -1
- package/dist/cjs/{base-button-6ef79cb6.js → base-button-497db257.js} +1 -1
- package/dist/cjs/context-a0900b95.js +75 -0
- package/dist/cjs/{default-tree-item-4597cd84.js → default-tree-item-89cd1f3f.js} +1 -1
- package/dist/cjs/{flip-tile-state-c95639e5.js → flip-tile-state-b5ff5ea0.js} +1 -1
- package/dist/cjs/{alignment-24ae2e63.js → floating-ui.dom.esm-01fe5abe.js} +529 -401
- package/dist/cjs/index-f4b8e6ee.js +20 -0
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-application-header.cjs.entry.js +25 -2
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +16 -2
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js +22 -0
- package/dist/cjs/ix-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/ix-divider.cjs.entry.js +19 -0
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +5 -3
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +19 -0
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +92 -20
- package/dist/cjs/ix-event-list_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +0 -3
- package/dist/cjs/ix-group_3.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu_9.cjs.entry.js +47 -16
- package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-select_2.cjs.entry.js +6 -4
- package/dist/cjs/ix-split-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-tabs.cjs.entry.js +11 -4
- package/dist/cjs/ix-toast_2.cjs.entry.js +9 -5
- package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js +127 -0
- package/dist/cjs/ix-tree_2.cjs.entry.js +2 -3
- package/dist/cjs/ix-typography.cjs.entry.js +38 -0
- package/dist/cjs/ix-upload.cjs.entry.js +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +19 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{logical-filter-operator-467e2faf.js → logical-filter-operator-0faf70b8.js} +2 -2
- package/dist/cjs/{modal-2d0f9191.js → modal-a93045dd.js} +3 -3
- package/dist/cjs/{modal-utils-9ee0acda.js → modal-utils-b645989b.js} +1 -1
- package/dist/cjs/{mutation-observer-29bedada.js → mutation-observer-eaaa5399.js} +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/{rwd.util-2326824e.js → rwd.util-9480f0b5.js} +1 -1
- package/dist/cjs/service-18dc5907.js +73 -0
- package/dist/cjs/siemens-ix.cjs.js +1 -1
- package/dist/cjs/{theme-switcher-f91c8d8d.js → theme-switcher-67669a35.js} +1 -1
- package/dist/cjs/{typed-event-5030cc6a.js → typed-event-f0f051da.js} +1 -1
- package/dist/cjs/{upload-file-state-923b2c65.js → upload-file-state-a79acf2b.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/animated-tab/animated-tab.css +1 -1
- package/dist/collection/components/animated-tab/animated-tab.js +1 -1
- package/dist/collection/components/animated-tabs/animated-tabs.css +4 -4
- package/dist/collection/components/animated-tabs/animated-tabs.js +1 -1
- package/dist/collection/components/application-header/application-header.css +8 -1
- package/dist/collection/components/application-header/application-header.js +31 -2
- package/dist/collection/components/basic-navigation/basic-navigation.css +6 -1
- package/dist/collection/components/basic-navigation/basic-navigation.js +21 -3
- package/dist/collection/components/blind/blind.css +5 -5
- package/dist/collection/components/blind/blind.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +4 -4
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +1 -1
- package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +1 -1
- package/dist/collection/components/button/base-button.js +1 -1
- package/dist/collection/components/button/button.css +7 -2
- package/dist/collection/components/button/button.js +3 -3
- package/dist/collection/components/category-filter/category-filter.css +6 -6
- package/dist/collection/components/category-filter/category-filter.js +2 -2
- package/dist/collection/components/category-filter/filter-state.js +1 -1
- package/dist/collection/components/category-filter/input-state.js +1 -1
- package/dist/collection/components/category-filter/logical-filter-operator.js +1 -1
- package/dist/collection/components/chip/chip.css +4 -4
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/counter-pill/counter-pill.css +7 -7
- package/dist/collection/components/counter-pill/counter-pill.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +2 -2
- package/dist/collection/components/date-picker/date-picker.js +2 -2
- package/dist/collection/components/date-time-card/date-time-card.css +2 -2
- package/dist/collection/components/date-time-card/date-time-card.js +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.css +2 -2
- package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/divider/divider.css +16 -0
- package/dist/collection/components/divider/divider.js +29 -0
- package/dist/collection/components/drawer/drawer.css +3 -3
- package/dist/collection/components/drawer/drawer.js +1 -1
- package/dist/collection/components/dropdown/dropdown-trigger-event.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +9 -6
- package/dist/collection/components/dropdown/dropdown.js +142 -16
- package/dist/collection/components/dropdown-button/dropdown-button.css +15 -7
- package/dist/collection/components/dropdown-button/dropdown-button.js +6 -4
- package/dist/collection/components/dropdown-item/dropdown-item.css +16 -4
- package/dist/collection/components/dropdown-item/dropdown-item.js +3 -1
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.css +36 -0
- package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +29 -0
- package/dist/collection/components/event-list/event-list.css +1 -1
- package/dist/collection/components/event-list/event-list.js +1 -1
- package/dist/collection/components/event-list-item/event-list-item.css +21 -24
- package/dist/collection/components/event-list-item/event-list-item.js +1 -1
- package/dist/collection/components/expanding-search/expanding-search.css +4 -4
- package/dist/collection/components/expanding-search/expanding-search.js +1 -1
- package/dist/collection/components/filter-chip/filter-chip.css +4 -4
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile-state.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.css +4 -4
- package/dist/collection/components/flip-tile/flip-tile.js +1 -1
- package/dist/collection/components/flip-tile-content/flip-tile-content.css +1 -1
- package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
- package/dist/collection/components/group/group-context-menu.css +1 -1
- package/dist/collection/components/group/group-context-menu.js +1 -4
- package/dist/collection/components/group/group.css +12 -13
- package/dist/collection/components/group/group.js +1 -1
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.css +1 -1
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +1 -1
- package/dist/collection/components/group-item/group-item.css +5 -5
- package/dist/collection/components/group-item/group-item.js +1 -1
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/input-group/input-group.css +1 -1
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/kpi/kpi.css +5 -5
- package/dist/collection/components/kpi/kpi.js +1 -1
- package/dist/collection/components/map-navigation/map-navigation.css +4 -4
- package/dist/collection/components/map-navigation/map-navigation.js +1 -1
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +5 -5
- package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +1 -1
- package/dist/collection/components/menu/burger-menu.css +72 -0
- package/dist/collection/components/menu/burger-menu.js +64 -0
- package/dist/collection/components/menu/menu.css +20 -37
- package/dist/collection/components/menu/menu.js +27 -11
- package/dist/collection/components/menu-about/menu-about.css +4 -4
- package/dist/collection/components/menu-about/menu-about.js +1 -1
- package/dist/collection/components/menu-about-item/menu-about-item.css +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.css +3 -3
- package/dist/collection/components/menu-about-news/menu-about-news.js +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.css +17 -5
- package/dist/collection/components/menu-avatar/menu-avatar.js +52 -3
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
- package/dist/collection/components/menu-item/menu-item.css +27 -27
- package/dist/collection/components/menu-item/menu-item.js +2 -1
- package/dist/collection/components/menu-settings/menu-settings.css +4 -4
- package/dist/collection/components/menu-settings/menu-settings.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.css +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.css +3 -3
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal-utils.js +1 -1
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal-container/modal-container.css +1 -1
- package/dist/collection/components/modal-container/modal-container.js +1 -1
- package/dist/collection/components/my-component/example-modal.js +1 -1
- package/dist/collection/components/my-component/my-component.css +4 -4
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/pill/pill.css +4 -4
- package/dist/collection/components/pill/pill.js +1 -1
- package/dist/collection/components/select/select.css +5 -5
- package/dist/collection/components/select/select.js +7 -5
- package/dist/collection/components/select-item/select-item.css +1 -1
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/spinner/spinner.css +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.css +10 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/split-button-item/split-button-item.css +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +1 -1
- package/dist/collection/components/tab-item/tab-item.css +5 -7
- package/dist/collection/components/tab-item/tab-item.js +1 -1
- package/dist/collection/components/tabs/tabs.css +4 -3
- package/dist/collection/components/tabs/tabs.js +13 -4
- package/dist/collection/components/tile/tile.css +3 -3
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +2 -2
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/toast/toast-container.js +1 -1
- package/dist/collection/components/toast/toast-utils.js +1 -1
- package/dist/collection/components/toast/toast.css +4 -4
- package/dist/collection/components/toast/toast.js +9 -5
- package/dist/collection/components/toggle/toggle.css +5 -4
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +43 -0
- package/dist/collection/components/tooltip/tooltip.js +203 -0
- package/dist/collection/components/tree/tree.css +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/default-tree-item.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +5 -5
- package/dist/collection/components/tree-item/tree-item.js +2 -3
- package/dist/collection/components/typography/types.js +14 -0
- package/dist/collection/components/typography/typography.css +146 -0
- package/dist/collection/components/typography/typography.js +63 -0
- package/dist/collection/components/upload/upload-file-state.js +1 -1
- package/dist/collection/components/upload/upload.css +3 -3
- package/dist/collection/components/upload/upload.js +1 -1
- package/dist/collection/components/utils/animation.js +1 -1
- package/dist/collection/components/utils/menu-service/menu-service.js +53 -0
- package/dist/collection/components/utils/mutation-observer.js +1 -1
- package/dist/collection/components/utils/rwd.util.js +1 -1
- package/dist/collection/components/utils/screen/context.js +29 -0
- package/dist/collection/components/utils/screen/index.js +9 -0
- package/dist/collection/components/utils/screen/mode.js +36 -0
- package/dist/collection/components/utils/screen/service.js +45 -0
- package/dist/collection/components/utils/typed-event.js +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.css +4 -4
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +1 -1
- package/dist/collection/components/workflow-step/workflow-step.css +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +1 -1
- package/dist/collection/components/workflow-steps/workflow-steps.css +2 -2
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/collection/env.js +1 -1
- package/dist/collection/exports.js +2 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/tests/utils/test/index.js +9 -0
- package/dist/collection/tests/utils/test/matchMedia.mock.js +22 -0
- package/dist/collection/tests/utils/test/page.js +29 -0
- package/dist/collection/utils/test/index.js +1 -1
- package/dist/collection/utils/test/matchMedia.mock.js +22 -0
- package/dist/collection/utils/test/page.js +2 -2
- package/dist/components/animation.js +1 -1
- package/dist/components/application-header.js +33 -4
- package/dist/components/base-button.js +1 -1
- package/dist/components/burger-menu.js +35 -0
- package/dist/components/button.js +2 -2
- package/dist/components/dropdown-item.js +3 -1
- package/dist/components/dropdown.js +86 -14
- package/dist/components/{alignment.js → floating-ui.dom.esm.js} +529 -401
- package/dist/components/group-context-menu.js +0 -3
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +7 -2
- package/dist/components/ix-basic-navigation.js +25 -5
- package/dist/components/ix-burger-menu.d.ts +11 -0
- package/dist/components/ix-burger-menu.js +6 -0
- package/dist/components/ix-category-filter.js +3 -3
- package/dist/components/ix-divider.d.ts +11 -0
- package/dist/components/ix-divider.js +33 -0
- package/dist/components/ix-dropdown-button.js +5 -3
- package/dist/components/ix-dropdown-quick-actions.d.ts +11 -0
- package/dist/components/ix-dropdown-quick-actions.js +33 -0
- package/dist/components/ix-event-list-item.js +1 -1
- package/dist/components/ix-flip-tile.js +1 -1
- package/dist/components/ix-group.js +1 -1
- package/dist/components/ix-map-navigation.js +8 -2
- package/dist/components/ix-menu-avatar.js +21 -2
- package/dist/components/ix-menu.js +31 -11
- package/dist/components/ix-modal-example.js +1 -1
- package/dist/components/ix-select.js +6 -4
- package/dist/components/ix-split-button.js +1 -1
- package/dist/components/ix-toggle.js +1 -1
- package/dist/components/ix-tooltip.d.ts +11 -0
- package/dist/components/ix-tooltip.js +152 -0
- package/dist/components/ix-tree.js +1 -1
- package/dist/components/ix-typography.d.ts +11 -0
- package/dist/components/ix-typography.js +6 -0
- package/dist/components/ix-upload.js +1 -1
- package/dist/components/ix-validation-tooltip.js +11 -1
- package/dist/components/menu-item.js +2 -2
- package/dist/components/modal-container.js +1 -1
- package/dist/components/mutation-observer.js +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/rwd.util.js +1 -1
- package/dist/components/service.js +139 -0
- package/dist/components/tab-item.js +1 -1
- package/dist/components/tabs.js +13 -4
- package/dist/components/toast.js +8 -4
- package/dist/components/tree-item.js +1 -2
- package/dist/components/typed-event.js +1 -1
- package/dist/components/typography.js +51 -0
- package/dist/esm/{animation-b667a4c4.js → animation-268dce50.js} +1 -1
- package/dist/esm/{base-button-0b6635df.js → base-button-5bfeb71c.js} +1 -1
- package/dist/esm/context-f6a2b727.js +71 -0
- package/dist/esm/{default-tree-item-638c435a.js → default-tree-item-91ff2c08.js} +1 -1
- package/dist/esm/{flip-tile-state-28a1f8ce.js → flip-tile-state-051bb2fd.js} +1 -1
- package/dist/esm/{alignment-f63c1b89.js → floating-ui.dom.esm-3130eda0.js} +529 -401
- package/dist/esm/index-6b660a23.js +20 -0
- package/dist/esm/index.js +12 -12
- package/dist/esm/ix-animated-tab_2.entry.js +2 -2
- package/dist/esm/ix-application-header.entry.js +25 -2
- package/dist/esm/ix-basic-navigation.entry.js +16 -2
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-burger-menu.entry.js +18 -0
- package/dist/esm/ix-button.entry.js +3 -3
- package/dist/esm/ix-category-filter.entry.js +2 -2
- package/dist/esm/ix-divider.entry.js +15 -0
- package/dist/esm/ix-dropdown-button.entry.js +5 -3
- package/dist/esm/ix-dropdown-quick-actions.entry.js +15 -0
- package/dist/esm/ix-dropdown_2.entry.js +87 -15
- package/dist/esm/ix-event-list_2.entry.js +3 -3
- package/dist/esm/ix-flip-tile_2.entry.js +1 -1
- package/dist/esm/ix-group-context-menu.entry.js +0 -3
- package/dist/esm/ix-group_3.entry.js +1 -1
- package/dist/esm/ix-icon-button.entry.js +1 -1
- package/dist/esm/ix-menu_9.entry.js +47 -16
- package/dist/esm/ix-modal-example.entry.js +1 -1
- package/dist/esm/ix-modal_2.entry.js +3 -3
- package/dist/esm/ix-select_2.entry.js +6 -4
- package/dist/esm/ix-split-button_2.entry.js +2 -2
- package/dist/esm/ix-tab-item.entry.js +1 -1
- package/dist/esm/ix-tabs.entry.js +11 -4
- package/dist/esm/ix-toast_2.entry.js +9 -5
- package/dist/esm/ix-toggle.entry.js +1 -1
- package/dist/esm/ix-tooltip.entry.js +123 -0
- package/dist/esm/ix-tree_2.entry.js +2 -3
- package/dist/esm/ix-typography.entry.js +34 -0
- package/dist/esm/ix-upload.entry.js +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +11 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{logical-filter-operator-1bf83315.js → logical-filter-operator-15696001.js} +2 -2
- package/dist/esm/{modal-3618eb44.js → modal-64e18970.js} +3 -3
- package/dist/esm/{modal-utils-df50b35a.js → modal-utils-aecbcba5.js} +1 -1
- package/dist/esm/{mutation-observer-379959bb.js → mutation-observer-7d01bbea.js} +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{rwd.util-4a61a4b8.js → rwd.util-cfc2ea72.js} +1 -1
- package/dist/esm/service-fc436c5b.js +71 -0
- package/dist/esm/siemens-ix.js +1 -1
- package/dist/esm/{theme-switcher-9ecc9b69.js → theme-switcher-4b9e5cc2.js} +1 -1
- package/dist/esm/{typed-event-ab58c27e.js → typed-event-a230184a.js} +1 -1
- package/dist/esm/{upload-file-state-631bb8a2.js → upload-file-state-532a36d3.js} +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/p-06d5ab35.entry.js +1 -0
- package/dist/siemens-ix/{p-3c754d90.entry.js → p-0bf4a256.entry.js} +1 -1
- package/dist/siemens-ix/{p-8c53c142.entry.js → p-122c7f57.entry.js} +1 -1
- package/dist/siemens-ix/p-1572aab3.js +1 -0
- package/dist/siemens-ix/{p-921da56a.entry.js → p-165c6a82.entry.js} +1 -1
- package/dist/siemens-ix/{p-9299617f.entry.js → p-20c88582.entry.js} +1 -1
- package/dist/siemens-ix/p-4b2265fd.entry.js +1 -0
- package/dist/siemens-ix/p-519b13aa.entry.js +1 -0
- package/dist/siemens-ix/p-529d7530.js +1 -0
- package/dist/siemens-ix/{p-783ce87b.entry.js → p-5b47360e.entry.js} +1 -1
- package/dist/siemens-ix/{p-a3a59238.entry.js → p-5ca7b937.entry.js} +1 -1
- package/dist/siemens-ix/p-5feec7a4.entry.js +1 -0
- package/dist/siemens-ix/p-622fb593.entry.js +1 -0
- package/dist/siemens-ix/p-63776469.entry.js +1 -0
- package/dist/siemens-ix/p-68ec0b51.entry.js +1 -0
- package/dist/siemens-ix/p-6b463b40.entry.js +1 -0
- package/dist/siemens-ix/p-6e5543fe.entry.js +1 -0
- package/dist/siemens-ix/p-71c91a11.entry.js +1 -0
- package/dist/siemens-ix/{p-ab35eaee.entry.js → p-72cc8632.entry.js} +1 -1
- package/dist/siemens-ix/{p-8c3bfc2f.js → p-75abd144.js} +1 -1
- package/dist/siemens-ix/p-8d2e0fb5.entry.js +1 -0
- package/dist/siemens-ix/p-94b440bc.entry.js +1 -0
- package/dist/siemens-ix/{p-70bd3dbf.entry.js → p-9eb8347c.entry.js} +1 -1
- package/dist/siemens-ix/p-9fa6a59b.entry.js +1 -0
- package/dist/siemens-ix/p-ac1d6617.entry.js +1 -0
- package/dist/siemens-ix/{p-f6e713f3.js → p-affb60fb.js} +1 -1
- package/dist/siemens-ix/p-b5599b0b.entry.js +1 -0
- package/dist/siemens-ix/{p-60b90da6.entry.js → p-b85458fb.entry.js} +1 -1
- package/dist/siemens-ix/p-c2b50878.entry.js +1 -0
- package/dist/siemens-ix/{p-50ed9d54.entry.js → p-d1a16c62.entry.js} +1 -1
- package/dist/siemens-ix/p-d1a8d791.entry.js +1 -0
- package/dist/siemens-ix/p-e4bda8e7.entry.js +1 -0
- package/dist/siemens-ix/p-e5fd4b34.entry.js +1 -0
- package/dist/siemens-ix/{p-404e81d2.entry.js → p-f0289f67.entry.js} +1 -1
- package/dist/siemens-ix/p-f34a16c6.js +1 -0
- package/dist/siemens-ix/p-feefa8c7.entry.js +1 -0
- package/dist/siemens-ix/siemens-ix.css +50 -48
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/types/components/application-header/application-header.d.ts +8 -0
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +6 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/divider/divider.d.ts +6 -0
- package/dist/types/components/dropdown/dropdown-trigger-event.d.ts +4 -0
- package/dist/types/components/dropdown/dropdown.d.ts +18 -1
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +1 -1
- package/dist/types/components/dropdown-quick-actions/dropdown-quick-actions.d.ts +6 -0
- package/dist/types/components/group/group-context-menu.d.ts +0 -2
- package/dist/types/components/menu/burger-menu.d.ts +10 -0
- package/dist/types/components/menu/menu.d.ts +3 -1
- package/dist/types/components/menu-avatar/menu-avatar.d.ts +12 -0
- package/dist/types/components/split-button/split-button.d.ts +1 -1
- package/dist/types/components/tabs/tabs.d.ts +3 -0
- package/dist/types/components/tooltip/tooltip.d.ts +39 -0
- package/dist/types/components/typography/types.d.ts +2 -0
- package/dist/types/components/typography/typography.d.ts +11 -0
- package/dist/types/components/utils/menu-service/menu-service.d.ts +13 -0
- package/dist/types/components/utils/screen/context.d.ts +4 -0
- package/dist/types/components/utils/screen/index.d.ts +1 -0
- package/dist/types/components/utils/screen/mode.d.ts +10 -0
- package/dist/types/components/utils/screen/service.d.ts +10 -0
- package/dist/types/components.d.ts +147 -6
- package/dist/types/exports.d.ts +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/tests/utils/test/index.d.ts +1 -0
- package/dist/types/tests/utils/test/page.d.ts +3 -0
- package/package.json +2 -2
- package/scss/_common-variables.scss +1 -1
- package/scss/_fonts.scss +1 -1
- package/scss/_z-index.scss +1 -1
- package/scss/components/_button-group.scss +1 -1
- package/scss/components/_buttons.scss +1 -1
- package/scss/components/_checkboxes.scss +5 -5
- package/scss/components/_dropdown.scss +5 -1
- package/scss/components/_forms.scss +13 -11
- package/scss/components/_input-group.scss +1 -1
- package/scss/components/_links.scss +1 -1
- package/scss/components/_modal.scss +1 -1
- package/scss/components/_radiobuttons.scss +1 -1
- package/scss/components/_shadows.scss +1 -1
- package/scss/components/_table.scss +1 -1
- package/scss/ix.scss +1 -1
- package/scss/mixins/_animations.scss +1 -1
- package/scss/mixins/_fonts.scss +1 -1
- package/scss/mixins/_hover.scss +1 -1
- package/scss/mixins/_shadows.scss +1 -1
- package/scss/mixins/_text-truncation.scss +1 -1
- package/scss/theme/classic-dark/_borderWidth.scss +1 -1
- package/scss/theme/classic-dark/_boxShadow.scss +1 -1
- package/scss/theme/classic-dark/_color.scss +3 -3
- package/scss/theme/classic-light/_borderWidth.scss +1 -1
- package/scss/theme/classic-light/_boxShadow.scss +1 -1
- package/scss/theme/classic-light/_color.scss +3 -3
- package/dist/siemens-ix/p-10158414.entry.js +0 -1
- package/dist/siemens-ix/p-2c5abec1.js +0 -1
- package/dist/siemens-ix/p-2c8e4dd1.entry.js +0 -1
- package/dist/siemens-ix/p-4ac5d916.entry.js +0 -1
- package/dist/siemens-ix/p-55663fd5.entry.js +0 -1
- package/dist/siemens-ix/p-6637ae65.entry.js +0 -1
- package/dist/siemens-ix/p-6df18451.entry.js +0 -1
- package/dist/siemens-ix/p-72cfbc1c.entry.js +0 -1
- package/dist/siemens-ix/p-b46155b7.entry.js +0 -1
- package/dist/siemens-ix/p-b7b753cc.entry.js +0 -1
- package/dist/siemens-ix/p-b9a66b74.entry.js +0 -1
- package/dist/siemens-ix/p-e51a110f.entry.js +0 -1
- package/dist/siemens-ix/p-e652328d.entry.js +0 -1
- package/dist/siemens-ix/p-e82905f0.entry.js +0 -1
- package/dist/siemens-ix/p-f05b01a4.entry.js +0 -1
- package/dist/siemens-ix/p-f1a1e8ee.entry.js +0 -1
- /package/dist/collection/components/{utils → button}/button-variants.js +0 -0
- /package/dist/siemens-ix/{p-da2cae32.js → p-076c29d1.js} +0 -0
- /package/dist/siemens-ix/{p-1d30454e.js → p-15bebd8a.js} +0 -0
- /package/dist/siemens-ix/{p-c8cc3bb3.js → p-21aa3602.js} +0 -0
- /package/dist/siemens-ix/{p-0a12b3df.js → p-2b33ead4.js} +0 -0
- /package/dist/siemens-ix/{p-bdd294d2.js → p-3b97bb69.js} +0 -0
- /package/dist/siemens-ix/{p-1c82637e.js → p-56ed024b.js} +0 -0
- /package/dist/siemens-ix/{p-b12006c6.js → p-5b39e04e.js} +0 -0
- /package/dist/siemens-ix/{p-4944ad0b.js → p-9ee41861.js} +0 -0
- /package/dist/siemens-ix/{p-96e46f99.js → p-b14308ed.js} +0 -0
- /package/dist/siemens-ix/{p-fbe40498.js → p-c0454c9a.js} +0 -0
- /package/dist/types/components/{utils → button}/button-variants.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
29
|
/*
|
|
30
|
-
* SPDX-FileCopyrightText:
|
|
30
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
31
31
|
*
|
|
32
32
|
* SPDX-License-Identifier: MIT
|
|
33
33
|
*
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
37
|
/*
|
|
38
|
-
* SPDX-FileCopyrightText:
|
|
38
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
39
39
|
*
|
|
40
40
|
* SPDX-License-Identifier: MIT
|
|
41
41
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
29
|
/*
|
|
30
|
-
* SPDX-FileCopyrightText:
|
|
30
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
31
31
|
*
|
|
32
32
|
* SPDX-License-Identifier: MIT
|
|
33
33
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
29
|
/*
|
|
30
|
-
* SPDX-FileCopyrightText:
|
|
30
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
31
31
|
*
|
|
32
32
|
* SPDX-License-Identifier: MIT
|
|
33
33
|
*
|
|
@@ -179,7 +179,7 @@ a {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/*
|
|
182
|
-
* SPDX-FileCopyrightText:
|
|
182
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
183
183
|
*
|
|
184
184
|
* SPDX-License-Identifier: MIT
|
|
185
185
|
*
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
/* Dimensions */
|
|
18
|
+
/* Font sizes */
|
|
19
|
+
/* Line heights */
|
|
20
|
+
/* Animation timings */
|
|
21
|
+
/*
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
|
+
*
|
|
24
|
+
* SPDX-License-Identifier: MIT
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/
|
|
29
|
+
:host {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
height: 2rem;
|
|
34
|
+
width: 2.5rem;
|
|
35
|
+
border-radius: var(--theme-btn--border-radius);
|
|
36
|
+
}
|
|
37
|
+
:host svg {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
:host .line {
|
|
42
|
+
fill: var(--theme-menu-btn--color);
|
|
43
|
+
opacity: 1;
|
|
44
|
+
x: 2px;
|
|
45
|
+
transition: x 0.075s ease-in 0.15s, transform 0.075s ease-in-out 0.075s, y 0.075s ease-in-out, opacity 0.075s linear 0.075s;
|
|
46
|
+
transform-origin: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(:hover) {
|
|
50
|
+
background-color: var(--theme-menu-btn--background--hover);
|
|
51
|
+
border-radius: var(--theme-btn--border-radius);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(:active) {
|
|
55
|
+
background-color: var(--theme-menu-btn--background--active);
|
|
56
|
+
border-radius: var(--theme-btn--border-radius);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host(.expanded) svg .line-1 {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
transform: rotate(-45deg);
|
|
62
|
+
y: 11px;
|
|
63
|
+
}
|
|
64
|
+
:host(.expanded) svg .line-2 {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
x: 9;
|
|
67
|
+
}
|
|
68
|
+
:host(.expanded) svg .line-3 {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: rotate(45deg);
|
|
71
|
+
y: 11px;
|
|
72
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
import { h, Host } from '@stencil/core';
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export class BurgerMenu {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.expanded = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h(Host, { class: {
|
|
27
|
+
expanded: this.expanded,
|
|
28
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24" }, h("rect", { class: "line line-1", x: "2", y: "5", width: "20", height: "2" }), h("rect", { class: "line line-2", x: "2", y: "11", width: "13", height: "2" }), h("rect", { class: "line line-3", x: "2", y: "17", width: "20", height: "2" }))));
|
|
29
|
+
}
|
|
30
|
+
static get is() { return "ix-burger-menu"; }
|
|
31
|
+
static get encapsulation() { return "shadow"; }
|
|
32
|
+
static get originalStyleUrls() {
|
|
33
|
+
return {
|
|
34
|
+
"$": ["./burger-menu.scss"]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
static get styleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["burger-menu.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get properties() {
|
|
43
|
+
return {
|
|
44
|
+
"expanded": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "boolean",
|
|
49
|
+
"resolved": "boolean",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": "Is menu displayed as expanded"
|
|
57
|
+
},
|
|
58
|
+
"attribute": "expanded",
|
|
59
|
+
"reflect": true,
|
|
60
|
+
"defaultValue": "false"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|
|
@@ -43,46 +43,15 @@ ix-menu .menu {
|
|
|
43
43
|
height: 100%;
|
|
44
44
|
-webkit-padding-after: 1rem;
|
|
45
45
|
padding-block-end: 1rem;
|
|
46
|
+
overflow: hidden;
|
|
46
47
|
background-color: var(--theme-nav--background);
|
|
47
48
|
transition: width var(--animate-duration);
|
|
48
49
|
}
|
|
49
50
|
ix-menu .menu.expanded {
|
|
50
51
|
box-shadow: var(--theme-navigation--box-shadow);
|
|
51
52
|
}
|
|
52
|
-
ix-menu .menu .burger-menu
|
|
53
|
-
|
|
54
|
-
justify-content: center;
|
|
55
|
-
margin-top: 0.75rem;
|
|
56
|
-
margin-left: 0.75rem;
|
|
57
|
-
margin-bottom: 1rem;
|
|
58
|
-
height: 2rem;
|
|
59
|
-
width: 2.5rem;
|
|
60
|
-
border-radius: 0.25rem;
|
|
61
|
-
}
|
|
62
|
-
ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled).hover, ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled):hover {
|
|
63
|
-
background-color: var(--theme-ghost--background--hover);
|
|
64
|
-
}
|
|
65
|
-
ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled).active, ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled):active {
|
|
66
|
-
background-color: var(--theme-ghost--background--active);
|
|
67
|
-
}
|
|
68
|
-
ix-menu .menu .burger-menu-button svg {
|
|
69
|
-
display: inline-block;
|
|
70
|
-
fill: var(--theme-menu-btn--color);
|
|
71
|
-
position: relative;
|
|
72
|
-
}
|
|
73
|
-
ix-menu .menu .burger-menu-button svg .line {
|
|
74
|
-
opacity: 1;
|
|
75
|
-
transform: rotate(0) translateY(0) translateX(0);
|
|
76
|
-
transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
|
|
77
|
-
}
|
|
78
|
-
ix-menu .menu .burger-menu-button.expanded svg .line-1 {
|
|
79
|
-
transform: translate(0.6875rem, -0.05rem) rotate(45deg);
|
|
80
|
-
}
|
|
81
|
-
ix-menu .menu .burger-menu-button.expanded svg .line-2 {
|
|
82
|
-
opacity: 0;
|
|
83
|
-
}
|
|
84
|
-
ix-menu .menu .burger-menu-button.expanded svg .line-3 {
|
|
85
|
-
transform: translate(-0.75625rem, 0.8125rem) rotate(-45deg);
|
|
53
|
+
ix-menu .menu .burger-menu {
|
|
54
|
+
margin: 0.75rem 0 1rem 0.75rem;
|
|
86
55
|
}
|
|
87
56
|
ix-menu .menu-overlay {
|
|
88
57
|
display: block;
|
|
@@ -126,6 +95,20 @@ ix-menu .bottom-tab-divider {
|
|
|
126
95
|
margin-top: auto;
|
|
127
96
|
}
|
|
128
97
|
|
|
98
|
+
ix-menu.mode-mobile .menu:not(.expanded) {
|
|
99
|
+
width: 0;
|
|
100
|
+
}
|
|
101
|
+
ix-menu.mode-mobile .menu {
|
|
102
|
+
padding-top: 2rem;
|
|
103
|
+
}
|
|
104
|
+
ix-menu.mode-mobile .menu .burger-menu {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
ix-menu.mode-mobile .menu-overlay {
|
|
108
|
+
left: 0px;
|
|
109
|
+
width: 100vw;
|
|
110
|
+
}
|
|
111
|
+
|
|
129
112
|
a[href]:has(> ix-menu-item) {
|
|
130
113
|
text-decoration: none;
|
|
131
114
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
import { h, Host, } from '@stencil/core';
|
|
10
|
+
import { menuController } from '../utils/menu-service/menu-service';
|
|
10
11
|
import { convertToRemString } from '../utils/rwd.util';
|
|
12
|
+
import { hostContext, isBasicNavigationLayout } from '../utils/screen/context';
|
|
13
|
+
import { screenMode } from '../utils/screen/service';
|
|
11
14
|
import { themeSwitcher } from '../utils/theme-switcher';
|
|
12
15
|
export class Menu {
|
|
13
16
|
constructor() {
|
|
@@ -39,6 +42,7 @@ export class Menu {
|
|
|
39
42
|
this.mapExpand = true;
|
|
40
43
|
this.activeTab = undefined;
|
|
41
44
|
this.isMoreTabEmpty = false;
|
|
45
|
+
this.mode = 'desktop';
|
|
42
46
|
}
|
|
43
47
|
onWindowResize() {
|
|
44
48
|
this.visibleMenuItems = this.getMaxTabCount();
|
|
@@ -76,7 +80,7 @@ export class Menu {
|
|
|
76
80
|
return this.hostElement.querySelector('.menu');
|
|
77
81
|
}
|
|
78
82
|
get menuItems() {
|
|
79
|
-
return Array.from(this.hostElement.querySelectorAll('ix-menu-item:not(.internal-tab):not(.home-tab):not(.bottom-tab)')).filter(this.isVisible);
|
|
83
|
+
return Array.from(this.hostElement.querySelectorAll('ix-menu-item:not(.internal-tab):not(.home-tab):not(.bottom-tab):not([slot="bottom"])')).filter(this.isVisible);
|
|
80
84
|
}
|
|
81
85
|
get menuBottomItems() {
|
|
82
86
|
return Array.from(this.hostElement.querySelectorAll('ix-menu-item.bottom-tab:not(.internal-tab):not(.home-tab)')).filter(this.isVisible);
|
|
@@ -158,7 +162,14 @@ export class Menu {
|
|
|
158
162
|
subtree: true,
|
|
159
163
|
});
|
|
160
164
|
}
|
|
161
|
-
|
|
165
|
+
componentWillLoad() {
|
|
166
|
+
menuController.register(this.hostElement);
|
|
167
|
+
const layout = hostContext('ix-basic-navigation', this.hostElement);
|
|
168
|
+
if (isBasicNavigationLayout(layout) && layout.hideHeader === false) {
|
|
169
|
+
screenMode.onChange.on((mode) => (this.mode = mode));
|
|
170
|
+
this.mode = screenMode.mode;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
162
173
|
componentWillRender() {
|
|
163
174
|
this.appendTabs();
|
|
164
175
|
}
|
|
@@ -185,7 +196,7 @@ export class Menu {
|
|
|
185
196
|
this.activeTab = null;
|
|
186
197
|
if (this.homeTab) {
|
|
187
198
|
this.hostElement.querySelector('.tabs-top').appendChild(this.homeTab);
|
|
188
|
-
this.homeTab.addEventListener('click', this.resetOverlay);
|
|
199
|
+
this.homeTab.addEventListener('click', this.resetOverlay.bind(this));
|
|
189
200
|
}
|
|
190
201
|
this.menuItems.forEach((item, index) => {
|
|
191
202
|
var _a;
|
|
@@ -200,7 +211,7 @@ export class Menu {
|
|
|
200
211
|
}
|
|
201
212
|
// TODO: Find better solution to handle home tab
|
|
202
213
|
(_a = this.homeTab) === null || _a === void 0 ? void 0 : _a.classList.remove('d-none');
|
|
203
|
-
item.addEventListener('click', this.resetOverlay);
|
|
214
|
+
item.addEventListener('click', this.resetOverlay.bind(this));
|
|
204
215
|
});
|
|
205
216
|
}
|
|
206
217
|
appendAvatar() {
|
|
@@ -413,6 +424,7 @@ export class Menu {
|
|
|
413
424
|
if (this.about) {
|
|
414
425
|
this.about.show = this.showAbout;
|
|
415
426
|
}
|
|
427
|
+
this.toggleMenu(false);
|
|
416
428
|
}
|
|
417
429
|
showMoreButton() {
|
|
418
430
|
const menuItemCount = this.menuItems.length;
|
|
@@ -445,15 +457,15 @@ export class Menu {
|
|
|
445
457
|
render() {
|
|
446
458
|
return (h(Host, { class: {
|
|
447
459
|
expanded: this.expand,
|
|
460
|
+
[`mode-${this.mode}`]: true,
|
|
448
461
|
} }, h("div", { class: {
|
|
449
462
|
menu: true,
|
|
450
463
|
expanded: this.expand,
|
|
451
464
|
}, onClick: () => {
|
|
452
465
|
this.resetActiveTab();
|
|
453
|
-
} }, h("
|
|
454
|
-
'burger-menu
|
|
455
|
-
|
|
456
|
-
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "32", height: "32" }, h("rect", { class: "line line-1", x: "5", y: "9.5", width: "22", height: "2" }), h("rect", { class: "line line-2", x: "5", y: "15.5", width: "22", height: "2" }), h("rect", { class: "line line-3", x: "5", y: "21.5", width: "22", height: "2" }))), h("div", { id: "avatar-tab-placeholder" }), h("div", { id: "menu-tabs", style: {
|
|
466
|
+
} }, h("ix-burger-menu", { onClick: async () => this.toggleMenu(), expanded: this.expand, class: {
|
|
467
|
+
'burger-menu': true,
|
|
468
|
+
} }), h("div", { id: "avatar-tab-placeholder" }), h("div", { id: "menu-tabs", style: {
|
|
457
469
|
display: 'contents',
|
|
458
470
|
}, onClick: (event) => {
|
|
459
471
|
if (this.isMenuItemClicked(event)) {
|
|
@@ -468,7 +480,10 @@ export class Menu {
|
|
|
468
480
|
!this.isMenuItemActive(elm) &&
|
|
469
481
|
this.isVisible(elm))
|
|
470
482
|
.map((e) => {
|
|
471
|
-
return (h("ix-menu-item", { tabIcon: e.tabIcon, active: e.active, class: "internal-tab appended", onClick: () =>
|
|
483
|
+
return (h("ix-menu-item", { tabIcon: e.tabIcon, active: e.active, class: "internal-tab appended", onClick: () => {
|
|
484
|
+
this.resetOverlay();
|
|
485
|
+
e.dispatchEvent(new CustomEvent('click'));
|
|
486
|
+
} }, e.innerText));
|
|
472
487
|
})))), h("div", { class: "bottom-tab-divider" }), this.enableSettings && !this.isSettingsEmpty ? (h("ix-menu-item", { id: "settings", class: {
|
|
473
488
|
'internal-tab': true,
|
|
474
489
|
'bottom-tab': true,
|
|
@@ -776,7 +791,8 @@ export class Menu {
|
|
|
776
791
|
"countMoreNotifications": {},
|
|
777
792
|
"mapExpand": {},
|
|
778
793
|
"activeTab": {},
|
|
779
|
-
"isMoreTabEmpty": {}
|
|
794
|
+
"isMoreTabEmpty": {},
|
|
795
|
+
"mode": {}
|
|
780
796
|
};
|
|
781
797
|
}
|
|
782
798
|
static get events() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
29
|
/*
|
|
30
|
-
* SPDX-FileCopyrightText:
|
|
30
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
31
31
|
*
|
|
32
32
|
* SPDX-License-Identifier: MIT
|
|
33
33
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* SPDX-FileCopyrightText:
|
|
2
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
3
3
|
*
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
|
-
* SPDX-FileCopyrightText:
|
|
10
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
11
11
|
*
|
|
12
12
|
* SPDX-License-Identifier: MIT
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Line heights */
|
|
20
20
|
/* Animation timings */
|
|
21
21
|
/*
|
|
22
|
-
* SPDX-FileCopyrightText:
|
|
22
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
23
23
|
*
|
|
24
24
|
* SPDX-License-Identifier: MIT
|
|
25
25
|
*
|