@siemens/ix 1.6.2 → 2.0.0-beta.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/dist/cjs/a11y-fa9abd92.js +82 -0
- package/dist/cjs/a11y-fa9abd92.js.map +1 -0
- package/dist/cjs/base-button-497db257.js.map +1 -1
- package/dist/cjs/context-2ce9a350.js +26 -0
- package/dist/cjs/context-2ce9a350.js.map +1 -0
- package/dist/cjs/{flip-tile-state-b5ff5ea0.js → flip-tile-state-183236a1.js} +6 -6
- package/dist/cjs/{flip-tile-state-b5ff5ea0.js.map → flip-tile-state-183236a1.js.map} +1 -1
- package/dist/cjs/{floating-ui.dom.esm-01fe5abe.js → floating-ui.dom.esm-b79b633f.js} +1 -103
- package/dist/cjs/floating-ui.dom.esm-b79b633f.js.map +1 -0
- package/dist/cjs/{icon-4c954853.js → icon-eeb2940a.js} +2 -2
- package/dist/cjs/{icon-4c954853.js.map → icon-eeb2940a.js.map} +1 -1
- package/dist/cjs/{index-c978628a.js → index-e56a1d39.js} +77 -21
- package/dist/cjs/index-e56a1d39.js.map +1 -0
- package/dist/cjs/index.cjs.js +46 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +21 -18
- package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-avatar.cjs.entry.js +39 -0
- package/dist/cjs/ix-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +13 -15
- package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +3 -12
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js +7 -3
- package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +22 -4
- package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-card-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-card-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-card_2.cjs.entry.js +36 -0
- package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-chip.cjs.entry.js +23 -15
- package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-content-header.cjs.entry.js +3 -3
- package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-picker_2.cjs.entry.js +8 -9
- package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -3
- package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
- package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +4 -1
- package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +7 -6
- package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +22 -0
- package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown_2.cjs.entry.js +67 -33
- package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list_2.cjs.entry.js +44 -25
- package/dist/cjs/ix-event-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -8
- package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-filter-chip.cjs.entry.js +3 -3
- package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-group-context-menu.cjs.entry.js +26 -14
- package/dist/cjs/ix-group-context-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-group_2.cjs.entry.js +159 -0
- package/dist/cjs/ix-group_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-icon-button.cjs.entry.js +26 -5
- package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-icon.cjs.entry.js +2 -2
- package/dist/cjs/ix-index-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-index-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
- package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/ix-link-button.cjs.entry.js +30 -0
- package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js +17 -7
- package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +138 -0
- package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-menu_9.cjs.entry.js +252 -339
- package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
- package/dist/cjs/ix-modal-content.cjs.entry.js +21 -0
- package/dist/cjs/ix-modal-content.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal-example.cjs.entry.js +6 -4
- package/dist/cjs/ix-modal-example.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-footer.cjs.entry.js +21 -0
- package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal-header.cjs.entry.js +48 -0
- package/dist/cjs/ix-modal-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal-loading.cjs.entry.js +21 -0
- package/dist/cjs/ix-modal-loading.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-modal.cjs.entry.js +130 -0
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +28 -10
- package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-select_2.cjs.entry.js +20 -8
- package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-spinner.cjs.entry.js +10 -3
- package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-split-button_2.cjs.entry.js +15 -11
- package/dist/cjs/ix-split-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tabs.cjs.entry.js +14 -6
- package/dist/cjs/ix-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tile.cjs.entry.js +18 -3
- package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toast_2.cjs.entry.js +6 -7
- package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-toggle.cjs.entry.js +11 -30
- package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-typography.cjs.entry.js +46 -0
- package/dist/cjs/ix-typography.cjs.entry.js.map +1 -0
- package/dist/cjs/ix-upload.cjs.entry.js +19 -7
- package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +6 -19
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js +14 -18
- package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/menu-service-d1b87142.js +80 -0
- package/dist/cjs/menu-service-d1b87142.js.map +1 -0
- package/dist/cjs/modal-26ae4715.js +253 -0
- package/dist/cjs/modal-26ae4715.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js.map +1 -1
- package/dist/cjs/service-0e27b06b.js +145 -0
- package/dist/cjs/service-0e27b06b.js.map +1 -0
- package/dist/cjs/shadow-dom-f9b90696.js +21 -0
- package/dist/cjs/shadow-dom-f9b90696.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +18 -20
- package/dist/collection/components/application-header/application-header.css +2 -2
- package/dist/collection/components/application-header/application-header.js +43 -16
- package/dist/collection/components/application-header/application-header.js.map +1 -1
- package/dist/collection/components/avatar/avatar.css +70 -0
- package/dist/collection/components/avatar/avatar.js +80 -0
- package/dist/collection/components/avatar/avatar.js.map +1 -0
- package/dist/collection/components/basic-navigation/basic-navigation.css +32 -4
- package/dist/collection/components/basic-navigation/basic-navigation.js +11 -13
- package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
- package/dist/collection/components/button/base-button.js.map +1 -1
- package/dist/collection/components/button/button.css +31 -2
- package/dist/collection/components/button/button.js +60 -4
- package/dist/collection/components/button/button.js.map +1 -1
- package/dist/collection/components/button/test/button.ct.js +36 -0
- package/dist/collection/components/button/test/button.ct.js.map +1 -0
- package/dist/collection/components/category-filter/category-filter.js +1 -1
- package/dist/collection/components/category-filter/category-filter.js.map +1 -1
- package/dist/collection/components/chip/chip.css +149 -149
- package/dist/collection/components/chip/chip.js +22 -14
- package/dist/collection/components/chip/chip.js.map +1 -1
- package/dist/collection/components/content-header/content-header.js +4 -4
- package/dist/collection/components/content-header/content-header.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.css +12 -2
- package/dist/collection/components/date-picker/date-picker.js +4 -4
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-time-card/date-time-card.css +28 -8
- package/dist/collection/components/date-time-card/date-time-card.js +1 -2
- package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.css +16 -6
- package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -0
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/test/drawer.ct.js +47 -0
- package/dist/collection/components/drawer/test/drawer.ct.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown.css +16 -471
- package/dist/collection/components/dropdown/dropdown.js +77 -63
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown/placement.js.map +1 -1
- package/dist/collection/components/dropdown-button/dropdown-button.css +16 -2
- package/dist/collection/components/dropdown-button/dropdown-button.js +13 -9
- package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
- package/dist/collection/components/dropdown-header/dropdown-header.css +32 -0
- package/dist/collection/components/{group-dropdown-item/group-dropdown-item.js → dropdown-header/dropdown-header.js} +11 -26
- package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -0
- package/dist/collection/components/dropdown-item/dropdown-item.css +85 -37
- package/dist/collection/components/dropdown-item/dropdown-item.js +57 -12
- package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
- package/dist/collection/components/event-list/event-list.css +20 -35
- package/dist/collection/components/event-list/event-list.js +35 -16
- package/dist/collection/components/event-list/event-list.js.map +1 -1
- package/dist/collection/components/event-list-item/event-list-item.css +62 -35
- package/dist/collection/components/event-list-item/event-list-item.js +17 -10
- package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
- package/dist/collection/components/expanding-search/expanding-search.css +262 -8
- package/dist/collection/components/expanding-search/expanding-search.js +4 -7
- package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
- package/dist/collection/components/expanding-search/test/expanding-search.ct.js +56 -0
- package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +1 -0
- package/dist/collection/components/filter-chip/filter-chip.css +39 -26
- package/dist/collection/components/filter-chip/filter-chip.js +2 -2
- package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
- package/dist/collection/components/flip-tile/flip-tile-state.js +5 -5
- package/dist/collection/components/flip-tile/flip-tile-state.js.map +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js +1 -1
- package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
- package/dist/collection/components/group/group-context-menu.css +2 -3
- package/dist/collection/components/group/group-context-menu.js +27 -15
- package/dist/collection/components/group/group-context-menu.js.map +1 -1
- package/dist/collection/components/group/group.css +6 -0
- package/dist/collection/components/group/group.js +29 -48
- package/dist/collection/components/group/group.js.map +1 -1
- package/dist/collection/components/group-item/group-item.css +59 -33
- package/dist/collection/components/group-item/group-item.js +2 -2
- package/dist/collection/components/group-item/group-item.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.css +34 -3
- package/dist/collection/components/icon-button/icon-button.js +52 -7
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/icon-button/test/icon-button.ct.js +26 -0
- package/dist/collection/components/icon-button/test/icon-button.ct.js.map +1 -0
- package/dist/collection/components/index-button/index-button.js +5 -5
- package/dist/collection/components/index-button/index-button.js.map +1 -1
- package/dist/collection/components/input-group/input-group.css +2 -0
- package/dist/collection/components/link-button/link-button.css +440 -0
- package/dist/collection/components/link-button/link-button.js +98 -0
- package/dist/collection/components/link-button/link-button.js.map +1 -0
- package/dist/collection/components/map-navigation/map-navigation.css +17 -1
- package/dist/collection/components/map-navigation/map-navigation.js +18 -7
- package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
- package/dist/collection/components/menu/burger-menu.css +388 -5
- package/dist/collection/components/menu/burger-menu.js +42 -2
- package/dist/collection/components/menu/burger-menu.js.map +1 -1
- package/dist/collection/components/menu/menu.css +1727 -24
- package/dist/collection/components/menu/menu.js +319 -335
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu/test/menu.ct.js +164 -0
- package/dist/collection/components/menu/test/menu.ct.js.map +1 -0
- package/dist/collection/components/menu-about/menu-about.js +8 -7
- 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-item/menu-about-item.js.map +1 -1
- package/dist/collection/components/menu-about-news/menu-about-news.css +21 -6
- package/dist/collection/components/menu-about-news/menu-about-news.js +3 -3
- package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
- package/dist/collection/components/menu-avatar/menu-avatar.css +13 -1
- package/dist/collection/components/menu-avatar/menu-avatar.js +2 -9
- package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +13 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +2 -2
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
- package/dist/collection/components/menu-category/menu-category.css +63 -0
- package/dist/collection/components/menu-category/menu-category.js +212 -0
- package/dist/collection/components/menu-category/menu-category.js.map +1 -0
- package/dist/collection/components/menu-category/test/menu-category.ct.js +107 -0
- package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -0
- package/dist/collection/components/menu-item/menu-item.css +6 -10
- package/dist/collection/components/menu-item/menu-item.js +40 -7
- package/dist/collection/components/menu-item/menu-item.js.map +1 -1
- package/dist/collection/components/menu-settings/menu-settings.css +13 -0
- package/dist/collection/components/menu-settings/menu-settings.js +9 -8
- package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.css +0 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
- package/dist/collection/components/modal/modal.css +58 -75
- package/dist/collection/components/modal/modal.js +143 -312
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal-content/modal-content.css +27 -0
- package/dist/collection/components/modal-content/modal-content.js +30 -0
- package/dist/collection/components/modal-content/modal-content.js.map +1 -0
- package/dist/collection/components/modal-footer/modal-footer.css +30 -0
- package/dist/collection/components/modal-footer/modal-footer.js +30 -0
- package/dist/collection/components/modal-footer/modal-footer.js.map +1 -0
- package/dist/collection/components/modal-header/modal-header.css +34 -0
- package/dist/collection/components/modal-header/modal-header.js +139 -0
- package/dist/collection/components/modal-header/modal-header.js.map +1 -0
- package/dist/collection/components/modal-loading/modal-loading.css +22 -0
- package/dist/collection/components/modal-loading/modal-loading.js +30 -0
- package/dist/collection/components/modal-loading/modal-loading.js.map +1 -0
- package/dist/collection/components/my-component/example-modal.js +1 -1
- package/dist/collection/components/my-component/example-modal.js.map +1 -1
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +3 -3
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/pill/pill.css +102 -166
- package/dist/collection/components/pill/pill.js +27 -9
- package/dist/collection/components/pill/pill.js.map +1 -1
- package/dist/collection/components/select/select.css +4 -1
- package/dist/collection/components/select/select.js +32 -5
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select/test/select.ct.js +115 -0
- package/dist/collection/components/select/test/select.ct.js.map +1 -0
- package/dist/collection/components/select-item/select-item.css +12 -0
- package/dist/collection/components/select-item/select-item.js +3 -1
- package/dist/collection/components/select-item/select-item.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +428 -23
- package/dist/collection/components/spinner/spinner.js +33 -5
- package/dist/collection/components/spinner/spinner.js.map +1 -1
- package/dist/collection/components/split-button/split-button.css +40 -2
- package/dist/collection/components/split-button/split-button.js +18 -35
- package/dist/collection/components/split-button/split-button.js.map +1 -1
- package/dist/collection/components/split-button-item/split-button-item.css +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +2 -2
- package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.css +115 -82
- package/dist/collection/components/tab-item/tab-item.js +1 -0
- package/dist/collection/components/tab-item/tab-item.js.map +1 -1
- package/dist/collection/components/tabs/tabs.css +37 -19
- package/dist/collection/components/tabs/tabs.js +13 -4
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tile/tile.css +57 -27
- package/dist/collection/components/tile/tile.js +23 -2
- package/dist/collection/components/tile/tile.js.map +1 -1
- package/dist/collection/components/time-picker/time-picker.css +253 -30
- package/dist/collection/components/time-picker/time-picker.js +3 -4
- package/dist/collection/components/time-picker/time-picker.js.map +1 -1
- package/dist/collection/components/toast/toast-container.js +2 -3
- package/dist/collection/components/toast/toast-container.js.map +1 -1
- package/dist/collection/components/toast/toast.css +37 -0
- package/dist/collection/components/toast/toast.js +5 -5
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/test/toggle.ct.js +52 -0
- package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -0
- package/dist/collection/components/toggle/toggle.css +72 -153
- package/dist/collection/components/toggle/toggle.js +11 -60
- package/dist/collection/components/toggle/toggle.js.map +1 -1
- package/dist/collection/components/typography/typography.css +53 -14
- package/dist/collection/components/typography/typography.js +2 -2
- package/dist/collection/components/typography/typography.js.map +1 -1
- package/dist/collection/components/upload/upload.css +24 -3
- package/dist/collection/components/upload/upload.js +18 -6
- package/dist/collection/components/upload/upload.js.map +1 -1
- package/dist/collection/components/utils/a11y.js +66 -0
- package/dist/collection/components/utils/a11y.js.map +1 -1
- package/dist/collection/components/utils/delegate.js +29 -0
- package/dist/collection/components/utils/delegate.js.map +1 -0
- package/dist/collection/components/utils/menu-service/menu-service.js +25 -0
- package/dist/collection/components/utils/menu-service/menu-service.js.map +1 -1
- package/dist/collection/components/{modal-container/modal-container.css → utils/modal/index.js} +4 -6
- package/dist/collection/components/utils/modal/index.js.map +1 -0
- package/dist/collection/components/utils/modal/loading.js +35 -0
- package/dist/collection/components/utils/modal/loading.js.map +1 -0
- package/dist/collection/components/utils/modal/message.js +138 -0
- package/dist/collection/components/utils/modal/message.js.map +1 -0
- package/dist/collection/components/utils/modal/modal.js +77 -0
- package/dist/collection/components/utils/modal/modal.js.map +1 -0
- package/dist/collection/components/utils/screen/context.js +4 -0
- package/dist/collection/components/utils/screen/context.js.map +1 -1
- package/dist/collection/components/utils/screen/mode.js +57 -9
- package/dist/collection/components/utils/screen/mode.js.map +1 -1
- package/dist/collection/components/utils/screen/service.js +26 -4
- package/dist/collection/components/utils/screen/service.js.map +1 -1
- package/dist/collection/components/utils/shadow-dom.js +19 -0
- package/dist/collection/components/utils/shadow-dom.js.map +1 -0
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +29 -12
- package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
- package/dist/collection/components/workflow-step/workflow-step.css +13 -0
- package/dist/collection/components/workflow-step/workflow-step.js +3 -12
- package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
- package/dist/collection/components/workflow-steps/workflow-steps.css +13 -0
- package/dist/collection/components/workflow-steps/workflow-steps.js +19 -14
- package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/tests/utils/test/page.js +12 -5
- package/dist/collection/tests/utils/test/page.js.map +1 -1
- package/dist/components/a11y.js +79 -0
- package/dist/components/a11y.js.map +1 -0
- package/dist/components/application-header.js +40 -18
- package/dist/components/application-header.js.map +1 -1
- package/dist/components/avatar.js +53 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/base-button.js.map +1 -1
- package/dist/components/burger-menu.js +28 -4
- package/dist/components/burger-menu.js.map +1 -1
- package/dist/components/button.js +37 -5
- package/dist/components/button.js.map +1 -1
- package/dist/components/context.js +22 -0
- package/dist/components/context.js.map +1 -0
- package/dist/components/date-picker.js +22 -15
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/date-time-card.js +3 -3
- package/dist/components/date-time-card.js.map +1 -1
- package/dist/components/divider.js +32 -0
- package/dist/components/divider.js.map +1 -0
- package/dist/components/dropdown-item.js +21 -13
- package/dist/components/dropdown-item.js.map +1 -1
- package/dist/components/dropdown.js +50 -22
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/filter-chip.js +18 -5
- package/dist/components/filter-chip.js.map +1 -1
- package/dist/components/flip-tile-state.js +5 -5
- package/dist/components/flip-tile-state.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +1 -102
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/group-context-menu.js +52 -19
- package/dist/components/group-context-menu.js.map +1 -1
- package/dist/components/group-item.js +4 -3
- package/dist/components/group-item.js.map +1 -1
- package/dist/components/icon-button.js +35 -7
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/index-button.js +3 -3
- package/dist/components/index-button.js.map +1 -1
- package/dist/components/index.js +37 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{ix-group-dropdown-item.d.ts → ix-avatar.d.ts} +4 -4
- package/dist/components/ix-avatar.js +8 -0
- package/dist/components/ix-avatar.js.map +1 -0
- package/dist/components/ix-basic-navigation.js +35 -18
- package/dist/components/ix-basic-navigation.js.map +1 -1
- package/dist/components/ix-blind.js +1 -10
- package/dist/components/ix-blind.js.map +1 -1
- package/dist/components/ix-card-list.js +16 -10
- package/dist/components/ix-card-list.js.map +1 -1
- package/dist/components/ix-category-filter.js +15 -9
- package/dist/components/ix-category-filter.js.map +1 -1
- package/dist/components/ix-chip.js +38 -17
- package/dist/components/ix-chip.js.map +1 -1
- package/dist/components/ix-content-header.js +12 -6
- package/dist/components/ix-content-header.js.map +1 -1
- package/dist/components/ix-datetime-picker.js +21 -14
- package/dist/components/ix-datetime-picker.js.map +1 -1
- package/dist/components/ix-divider.js +1 -28
- package/dist/components/ix-divider.js.map +1 -1
- package/dist/components/ix-drawer.js +13 -4
- package/dist/components/ix-drawer.js.map +1 -1
- package/dist/components/ix-dropdown-button.js +22 -14
- package/dist/components/ix-dropdown-button.js.map +1 -1
- package/dist/components/{ix-modal-container.d.ts → ix-dropdown-header.d.ts} +4 -4
- package/dist/components/ix-dropdown-header.js +44 -0
- package/dist/components/ix-dropdown-header.js.map +1 -0
- package/dist/components/ix-empty-state.js +10 -4
- package/dist/components/ix-empty-state.js.map +1 -1
- package/dist/components/ix-event-list-item.js +21 -11
- package/dist/components/ix-event-list-item.js.map +1 -1
- package/dist/components/ix-event-list.js +34 -17
- package/dist/components/ix-event-list.js.map +1 -1
- package/dist/components/ix-expanding-search.js +16 -12
- package/dist/components/ix-expanding-search.js.map +1 -1
- package/dist/components/ix-flip-tile.js +11 -5
- package/dist/components/ix-flip-tile.js.map +1 -1
- package/dist/components/ix-group.js +50 -49
- package/dist/components/ix-group.js.map +1 -1
- package/dist/components/ix-input-group.js +1 -1
- package/dist/components/ix-input-group.js.map +1 -1
- package/dist/components/ix-link-button.d.ts +11 -0
- package/dist/components/ix-link-button.js +54 -0
- package/dist/components/ix-link-button.js.map +1 -0
- package/dist/components/ix-map-navigation.js +35 -17
- package/dist/components/ix-map-navigation.js.map +1 -1
- package/dist/components/ix-menu-about-item.js +3 -2
- package/dist/components/ix-menu-about-item.js.map +1 -1
- package/dist/components/ix-menu-about-news.js +27 -8
- package/dist/components/ix-menu-about-news.js.map +1 -1
- package/dist/components/ix-menu-about.js +18 -10
- package/dist/components/ix-menu-about.js.map +1 -1
- package/dist/components/ix-menu-avatar.js +11 -19
- package/dist/components/ix-menu-avatar.js.map +1 -1
- package/dist/components/ix-menu-category.d.ts +11 -0
- package/dist/components/ix-menu-category.js +196 -0
- package/dist/components/ix-menu-category.js.map +1 -0
- package/dist/components/ix-menu-settings-item.js +3 -2
- package/dist/components/ix-menu-settings-item.js.map +1 -1
- package/dist/components/ix-menu-settings.js +19 -11
- package/dist/components/ix-menu-settings.js.map +1 -1
- package/dist/components/ix-menu.js +238 -315
- package/dist/components/ix-menu.js.map +1 -1
- package/dist/components/ix-message-bar.js +10 -4
- package/dist/components/ix-message-bar.js.map +1 -1
- package/dist/components/ix-modal-content.d.ts +11 -0
- package/dist/components/ix-modal-content.js +35 -0
- package/dist/components/ix-modal-content.js.map +1 -0
- package/dist/components/ix-modal-example.js +10 -15
- package/dist/components/ix-modal-example.js.map +1 -1
- package/dist/components/{ix-counter-pill.d.ts → ix-modal-footer.d.ts} +4 -4
- package/dist/components/ix-modal-footer.js +35 -0
- package/dist/components/ix-modal-footer.js.map +1 -0
- package/dist/components/ix-modal-header.d.ts +11 -0
- package/dist/components/ix-modal-header.js +90 -0
- package/dist/components/ix-modal-header.js.map +1 -0
- package/dist/components/ix-modal-loading.d.ts +11 -0
- package/dist/components/ix-modal-loading.js +41 -0
- package/dist/components/ix-modal-loading.js.map +1 -0
- package/dist/components/ix-modal.js +148 -1
- package/dist/components/ix-modal.js.map +1 -1
- package/dist/components/ix-pagination.js +25 -19
- package/dist/components/ix-pagination.js.map +1 -1
- package/dist/components/ix-pill.js +29 -10
- package/dist/components/ix-pill.js.map +1 -1
- package/dist/components/ix-split-button-item.js +4 -3
- package/dist/components/ix-split-button-item.js.map +1 -1
- package/dist/components/ix-split-button.js +36 -14
- package/dist/components/ix-split-button.js.map +1 -1
- package/dist/components/ix-tile.js +22 -4
- package/dist/components/ix-tile.js.map +1 -1
- package/dist/components/ix-toast-container.js +12 -6
- package/dist/components/ix-toast-container.js.map +1 -1
- package/dist/components/ix-toggle.js +15 -34
- package/dist/components/ix-toggle.js.map +1 -1
- package/dist/components/ix-upload.js +28 -10
- package/dist/components/ix-upload.js.map +1 -1
- package/dist/components/ix-validation-tooltip.js +6 -18
- package/dist/components/ix-validation-tooltip.js.map +1 -1
- package/dist/components/ix-workflow-step.js +6 -5
- package/dist/components/ix-workflow-step.js.map +1 -1
- package/dist/components/ix-workflow-steps.js +13 -16
- package/dist/components/ix-workflow-steps.js.map +1 -1
- package/dist/components/map-navigation-overlay.js +10 -4
- package/dist/components/map-navigation-overlay.js.map +1 -1
- package/dist/components/menu-avatar-item.js +3 -2
- package/dist/components/menu-avatar-item.js.map +1 -1
- package/dist/components/menu-item.js +17 -3
- package/dist/components/menu-item.js.map +1 -1
- package/dist/components/menu-service.js +78 -0
- package/dist/components/menu-service.js.map +1 -0
- package/dist/components/modal.js +225 -165
- package/dist/components/modal.js.map +1 -1
- package/dist/components/my-component.js.map +1 -1
- package/dist/components/select-item.js +4 -2
- package/dist/components/select-item.js.map +1 -1
- package/dist/components/select.js +33 -17
- package/dist/components/select.js.map +1 -1
- package/dist/components/service.js +83 -81
- package/dist/components/service.js.map +1 -1
- package/dist/components/spinner.js +11 -3
- package/dist/components/spinner.js.map +1 -1
- package/dist/components/tab-item.js +3 -2
- package/dist/components/tab-item.js.map +1 -1
- package/dist/components/tabs.js +22 -7
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/time-picker.js +19 -13
- package/dist/components/time-picker.js.map +1 -1
- package/dist/components/toast.js +17 -10
- package/dist/components/toast.js.map +1 -1
- package/dist/components/typography.js +3 -3
- package/dist/components/typography.js.map +1 -1
- package/dist/esm/a11y-aa83c2d1.js +79 -0
- package/dist/esm/a11y-aa83c2d1.js.map +1 -0
- package/dist/esm/base-button-5bfeb71c.js.map +1 -1
- package/dist/esm/context-381170ae.js +22 -0
- package/dist/esm/context-381170ae.js.map +1 -0
- package/dist/esm/{flip-tile-state-051bb2fd.js → flip-tile-state-db31345f.js} +6 -6
- package/dist/esm/{flip-tile-state-051bb2fd.js.map → flip-tile-state-db31345f.js.map} +1 -1
- package/dist/esm/{floating-ui.dom.esm-3130eda0.js → floating-ui.dom.esm-9b203a02.js} +2 -103
- package/dist/esm/floating-ui.dom.esm-9b203a02.js.map +1 -0
- package/dist/esm/{icon-c659fc0f.js → icon-4ac90a6d.js} +2 -2
- package/dist/esm/{icon-c659fc0f.js.map → icon-4ac90a6d.js.map} +1 -1
- package/dist/esm/{index-8ddfb6d8.js → index-7334ee80.js} +77 -22
- package/dist/esm/index-7334ee80.js.map +1 -0
- package/dist/esm/index.js +40 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/ix-action-card.entry.js +1 -1
- package/dist/esm/ix-animated-tab_2.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +20 -17
- package/dist/esm/ix-application-header.entry.js.map +1 -1
- package/dist/esm/ix-avatar.entry.js +35 -0
- package/dist/esm/ix-avatar.entry.js.map +1 -0
- package/dist/esm/ix-basic-navigation.entry.js +13 -15
- package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
- package/dist/esm/ix-blind.entry.js +2 -11
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ix-burger-menu.entry.js +7 -3
- package/dist/esm/ix-burger-menu.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +22 -4
- package/dist/esm/ix-button.entry.js.map +1 -1
- package/dist/esm/ix-card-accordion_2.entry.js +1 -1
- package/dist/esm/ix-card-list.entry.js +1 -1
- package/dist/esm/ix-card_2.entry.js +31 -0
- package/dist/esm/ix-card_2.entry.js.map +1 -0
- package/dist/esm/ix-category-filter.entry.js +2 -2
- package/dist/esm/ix-category-filter.entry.js.map +1 -1
- package/dist/esm/ix-chip.entry.js +23 -15
- package/dist/esm/ix-chip.entry.js.map +1 -1
- package/dist/esm/ix-content-header.entry.js +3 -3
- package/dist/esm/ix-content-header.entry.js.map +1 -1
- package/dist/esm/ix-css-grid-item.entry.js +1 -1
- package/dist/esm/ix-css-grid.entry.js +1 -1
- package/dist/esm/ix-date-picker_2.entry.js +8 -9
- package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
- package/dist/esm/ix-date-time-card.entry.js +2 -3
- package/dist/esm/ix-date-time-card.entry.js.map +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +2 -2
- package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
- package/dist/esm/ix-divider.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +4 -1
- package/dist/esm/ix-drawer.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +7 -6
- package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +18 -0
- package/dist/esm/ix-dropdown-header.entry.js.map +1 -0
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown_2.entry.js +67 -33
- package/dist/esm/ix-dropdown_2.entry.js.map +1 -1
- package/dist/esm/ix-empty-state.entry.js +1 -1
- package/dist/esm/ix-event-list_2.entry.js +44 -25
- package/dist/esm/ix-event-list_2.entry.js.map +1 -1
- package/dist/esm/ix-expanding-search.entry.js +5 -8
- package/dist/esm/ix-expanding-search.entry.js.map +1 -1
- package/dist/esm/ix-filter-chip.entry.js +3 -3
- package/dist/esm/ix-filter-chip.entry.js.map +1 -1
- package/dist/esm/ix-flip-tile_2.entry.js +3 -3
- package/dist/esm/ix-flip-tile_2.entry.js.map +1 -1
- package/dist/esm/ix-group-context-menu.entry.js +26 -14
- package/dist/esm/ix-group-context-menu.entry.js.map +1 -1
- package/dist/esm/ix-group_2.entry.js +154 -0
- package/dist/esm/ix-group_2.entry.js.map +1 -0
- package/dist/esm/ix-icon-button.entry.js +26 -5
- package/dist/esm/ix-icon-button.entry.js.map +1 -1
- package/dist/esm/ix-icon.entry.js +2 -2
- package/dist/esm/ix-index-button.entry.js +4 -4
- package/dist/esm/ix-index-button.entry.js.map +1 -1
- package/dist/esm/ix-input-group.entry.js +2 -2
- package/dist/esm/ix-input-group.entry.js.map +1 -1
- 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 +1 -1
- package/dist/esm/ix-link-button.entry.js +26 -0
- package/dist/esm/ix-link-button.entry.js.map +1 -0
- package/dist/esm/ix-map-navigation_2.entry.js +17 -7
- package/dist/esm/ix-map-navigation_2.entry.js.map +1 -1
- package/dist/esm/ix-menu-category.entry.js +134 -0
- package/dist/esm/ix-menu-category.entry.js.map +1 -0
- package/dist/esm/ix-menu_9.entry.js +251 -338
- package/dist/esm/ix-menu_9.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +1 -1
- package/dist/esm/ix-modal-content.entry.js +17 -0
- package/dist/esm/ix-modal-content.entry.js.map +1 -0
- package/dist/esm/ix-modal-example.entry.js +4 -2
- package/dist/esm/ix-modal-example.entry.js.map +1 -1
- package/dist/esm/ix-modal-footer.entry.js +17 -0
- package/dist/esm/ix-modal-footer.entry.js.map +1 -0
- package/dist/esm/ix-modal-header.entry.js +44 -0
- package/dist/esm/ix-modal-header.entry.js.map +1 -0
- package/dist/esm/ix-modal-loading.entry.js +17 -0
- package/dist/esm/ix-modal-loading.entry.js.map +1 -0
- package/dist/esm/ix-modal.entry.js +126 -0
- package/dist/esm/ix-modal.entry.js.map +1 -0
- package/dist/esm/ix-pagination.entry.js +4 -4
- package/dist/esm/ix-pagination.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +28 -10
- package/dist/esm/ix-pill.entry.js.map +1 -1
- package/dist/esm/ix-push-card.entry.js +1 -1
- package/dist/esm/ix-select_2.entry.js +20 -8
- package/dist/esm/ix-select_2.entry.js.map +1 -1
- package/dist/esm/ix-spinner.entry.js +10 -3
- package/dist/esm/ix-spinner.entry.js.map +1 -1
- package/dist/esm/ix-split-button_2.entry.js +15 -11
- package/dist/esm/ix-split-button_2.entry.js.map +1 -1
- package/dist/esm/ix-tab-item.entry.js +2 -2
- package/dist/esm/ix-tab-item.entry.js.map +1 -1
- package/dist/esm/ix-tabs.entry.js +14 -6
- package/dist/esm/ix-tabs.entry.js.map +1 -1
- package/dist/esm/ix-tile.entry.js +18 -3
- package/dist/esm/ix-tile.entry.js.map +1 -1
- package/dist/esm/ix-toast_2.entry.js +6 -7
- package/dist/esm/ix-toast_2.entry.js.map +1 -1
- package/dist/esm/ix-toggle.entry.js +11 -30
- package/dist/esm/ix-toggle.entry.js.map +1 -1
- package/dist/esm/ix-tooltip.entry.js +2 -2
- package/dist/esm/ix-tree_2.entry.js +1 -1
- package/dist/esm/ix-typography.entry.js +42 -0
- package/dist/esm/ix-typography.entry.js.map +1 -0
- package/dist/esm/ix-upload.entry.js +19 -7
- package/dist/esm/ix-upload.entry.js.map +1 -1
- package/dist/esm/ix-validation-tooltip.entry.js +6 -19
- package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
- package/dist/esm/ix-workflow-step_2.entry.js +14 -18
- package/dist/esm/ix-workflow-step_2.entry.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/menu-service-b3076949.js +78 -0
- package/dist/esm/menu-service-b3076949.js.map +1 -0
- package/dist/esm/modal-68c6d3f6.js +245 -0
- package/dist/esm/modal-68c6d3f6.js.map +1 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-component.entry.js.map +1 -1
- package/dist/esm/service-586129b5.js +143 -0
- package/dist/esm/service-586129b5.js.map +1 -0
- package/dist/esm/shadow-dom-6860b1c4.js +18 -0
- package/dist/esm/shadow-dom-6860b1c4.js.map +1 -0
- package/dist/esm/siemens-ix.js +3 -3
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/index.esm.js.map +1 -1
- package/dist/siemens-ix/{p-d848739e.entry.js → p-00f74fc9.entry.js} +2 -2
- package/dist/siemens-ix/p-01c37ebe.entry.js +2 -0
- package/dist/siemens-ix/p-01c37ebe.entry.js.map +1 -0
- package/dist/siemens-ix/{p-6acce5c9.entry.js → p-02f01e39.entry.js} +2 -2
- package/dist/siemens-ix/p-0574cf88.entry.js +2 -0
- package/dist/siemens-ix/p-0574cf88.entry.js.map +1 -0
- package/dist/siemens-ix/p-06603826.entry.js +2 -0
- package/dist/siemens-ix/p-06603826.entry.js.map +1 -0
- package/dist/siemens-ix/p-06fcaee3.entry.js +2 -0
- package/dist/siemens-ix/p-06fcaee3.entry.js.map +1 -0
- package/dist/siemens-ix/{p-07c932da.entry.js → p-07a0b330.entry.js} +2 -2
- package/dist/siemens-ix/{p-3f4a9e1f.entry.js → p-09ce5f12.entry.js} +2 -2
- package/dist/siemens-ix/p-0b71cde4.js +2 -0
- package/dist/siemens-ix/p-0b71cde4.js.map +1 -0
- package/dist/siemens-ix/{p-f74c7692.entry.js → p-0c9ead45.entry.js} +2 -2
- package/dist/siemens-ix/{p-f74c7692.entry.js.map → p-0c9ead45.entry.js.map} +1 -1
- package/dist/siemens-ix/p-0dea55bf.entry.js +2 -0
- package/dist/siemens-ix/p-0dea55bf.entry.js.map +1 -0
- package/dist/siemens-ix/p-0e86b47b.entry.js +2 -0
- package/dist/siemens-ix/p-0e86b47b.entry.js.map +1 -0
- package/dist/siemens-ix/{p-13bda5ea.entry.js → p-0fab8cae.entry.js} +2 -2
- package/dist/siemens-ix/p-157f7ec0.entry.js +2 -0
- package/dist/siemens-ix/p-157f7ec0.entry.js.map +1 -0
- package/dist/siemens-ix/p-15996fa7.entry.js +2 -0
- package/dist/siemens-ix/p-15996fa7.entry.js.map +1 -0
- package/dist/siemens-ix/p-1b1bc523.entry.js +2 -0
- package/dist/siemens-ix/p-1b1bc523.entry.js.map +1 -0
- package/dist/siemens-ix/p-1b227e9a.js +2 -0
- package/dist/siemens-ix/{p-15bebd8a.js.map → p-1b227e9a.js.map} +1 -1
- package/dist/siemens-ix/{p-003e9355.entry.js → p-20aa7350.entry.js} +2 -2
- package/dist/siemens-ix/p-2ea3d53a.entry.js +2 -0
- package/dist/siemens-ix/p-2ea3d53a.entry.js.map +1 -0
- package/dist/siemens-ix/p-303b8c2f.entry.js +2 -0
- package/dist/siemens-ix/p-303b8c2f.entry.js.map +1 -0
- package/dist/siemens-ix/{p-f6ae45fb.entry.js → p-33670e98.entry.js} +2 -2
- package/dist/siemens-ix/p-34633470.entry.js +2 -0
- package/dist/siemens-ix/p-34633470.entry.js.map +1 -0
- package/dist/siemens-ix/{p-3ec2368b.entry.js → p-34807901.entry.js} +2 -2
- package/dist/siemens-ix/{p-3ec2368b.entry.js.map → p-34807901.entry.js.map} +1 -1
- package/dist/siemens-ix/p-38e69215.entry.js +2 -0
- package/dist/siemens-ix/p-38e69215.entry.js.map +1 -0
- package/dist/siemens-ix/p-3a99b0c8.entry.js +2 -0
- package/dist/siemens-ix/p-3a99b0c8.entry.js.map +1 -0
- package/dist/siemens-ix/p-45738e84.js +2 -0
- package/dist/siemens-ix/p-45738e84.js.map +1 -0
- package/dist/siemens-ix/{p-a89a1fa5.entry.js → p-4d194d55.entry.js} +2 -2
- package/dist/siemens-ix/{p-652ba2c1.entry.js → p-56a27b34.entry.js} +2 -2
- package/dist/siemens-ix/{p-652ba2c1.entry.js.map → p-56a27b34.entry.js.map} +1 -1
- package/dist/siemens-ix/p-5b39e04e.js.map +1 -1
- package/dist/siemens-ix/p-5fedb19b.entry.js +2 -0
- package/dist/siemens-ix/p-5fedb19b.entry.js.map +1 -0
- package/dist/siemens-ix/p-627148db.entry.js +2 -0
- package/dist/siemens-ix/p-627148db.entry.js.map +1 -0
- package/dist/siemens-ix/p-62f4db99.entry.js +2 -0
- package/dist/siemens-ix/p-62f4db99.entry.js.map +1 -0
- package/dist/siemens-ix/{p-626fbee2.entry.js → p-63b82e40.entry.js} +2 -2
- package/dist/siemens-ix/{p-626fbee2.entry.js.map → p-63b82e40.entry.js.map} +1 -1
- package/dist/siemens-ix/p-68c44614.entry.js +2 -0
- package/dist/siemens-ix/p-68c44614.entry.js.map +1 -0
- package/dist/siemens-ix/p-7021c2d1.entry.js +2 -0
- package/dist/siemens-ix/p-7021c2d1.entry.js.map +1 -0
- package/dist/siemens-ix/{p-d2225fc2.entry.js → p-709d38fe.entry.js} +2 -2
- package/dist/siemens-ix/p-785726e8.entry.js +2 -0
- package/dist/siemens-ix/p-785726e8.entry.js.map +1 -0
- package/dist/siemens-ix/p-7d2aec76.entry.js +2 -0
- package/dist/siemens-ix/{p-f207e578.entry.js.map → p-7d2aec76.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-1331a920.entry.js → p-81333042.entry.js} +2 -2
- package/dist/siemens-ix/p-8c14a4a3.entry.js +2 -0
- package/dist/siemens-ix/p-8c14a4a3.entry.js.map +1 -0
- package/dist/siemens-ix/p-8ce73af1.entry.js +2 -0
- package/dist/siemens-ix/p-8ce73af1.entry.js.map +1 -0
- package/dist/siemens-ix/{p-85f01dba.entry.js → p-904aa275.entry.js} +2 -2
- package/dist/siemens-ix/{p-cd3cfc78.entry.js → p-918450cd.entry.js} +2 -2
- package/dist/siemens-ix/p-9547706d.entry.js +2 -0
- package/dist/siemens-ix/p-9547706d.entry.js.map +1 -0
- package/dist/siemens-ix/p-9903e755.entry.js +2 -0
- package/dist/siemens-ix/p-9903e755.entry.js.map +1 -0
- package/dist/siemens-ix/p-9c030990.js +2 -0
- package/dist/siemens-ix/p-9c030990.js.map +1 -0
- package/dist/siemens-ix/p-9d264ca8.entry.js +2 -0
- package/dist/siemens-ix/p-9d264ca8.entry.js.map +1 -0
- package/dist/siemens-ix/p-a64d88de.entry.js +2 -0
- package/dist/siemens-ix/p-a64d88de.entry.js.map +1 -0
- package/dist/siemens-ix/p-a8e8a942.entry.js +2 -0
- package/dist/siemens-ix/p-a8e8a942.entry.js.map +1 -0
- package/dist/siemens-ix/p-a9619a92.entry.js +2 -0
- package/dist/siemens-ix/p-a9619a92.entry.js.map +1 -0
- package/dist/siemens-ix/{p-a7212f01.entry.js → p-b21bc31c.entry.js} +2 -2
- package/dist/siemens-ix/p-b6d52b6f.entry.js +2 -0
- package/dist/siemens-ix/p-b6d52b6f.entry.js.map +1 -0
- package/dist/siemens-ix/{p-6c033b08.entry.js → p-b89172b4.entry.js} +2 -2
- package/dist/siemens-ix/p-b899b25b.js +3 -0
- package/dist/siemens-ix/p-b899b25b.js.map +1 -0
- package/dist/siemens-ix/p-bf019e35.entry.js +2 -0
- package/dist/siemens-ix/p-bf019e35.entry.js.map +1 -0
- package/dist/siemens-ix/p-c0345859.entry.js +2 -0
- package/dist/siemens-ix/p-c0345859.entry.js.map +1 -0
- package/dist/siemens-ix/{p-55b54a81.entry.js → p-c4ea8815.entry.js} +2 -2
- package/dist/siemens-ix/p-c4ea8815.entry.js.map +1 -0
- package/dist/siemens-ix/p-c84a43ef.entry.js +2 -0
- package/dist/siemens-ix/p-c84a43ef.entry.js.map +1 -0
- package/dist/siemens-ix/p-d0a8aa6f.entry.js +2 -0
- package/dist/siemens-ix/p-d43bf856.js +2 -0
- package/dist/siemens-ix/p-d43bf856.js.map +1 -0
- package/dist/siemens-ix/{p-b60bd26c.entry.js → p-d48d74af.entry.js} +2 -2
- package/dist/siemens-ix/{p-b60bd26c.entry.js.map → p-d48d74af.entry.js.map} +1 -1
- package/dist/siemens-ix/p-d737ad96.js +2 -0
- package/dist/siemens-ix/p-d737ad96.js.map +1 -0
- package/dist/siemens-ix/p-d7e8417d.entry.js +2 -0
- package/dist/siemens-ix/p-d7e8417d.entry.js.map +1 -0
- package/dist/siemens-ix/p-d81d0f62.entry.js +2 -0
- package/dist/siemens-ix/p-d81d0f62.entry.js.map +1 -0
- package/dist/siemens-ix/p-d991a3d6.entry.js +2 -0
- package/dist/siemens-ix/p-d991a3d6.entry.js.map +1 -0
- package/dist/siemens-ix/{p-b1db27a3.js → p-db74796e.js} +2 -2
- package/dist/siemens-ix/p-dbca4dd5.entry.js +2 -0
- package/dist/siemens-ix/p-dbca4dd5.entry.js.map +1 -0
- package/dist/siemens-ix/p-e1c92dcb.entry.js +2 -0
- package/dist/siemens-ix/p-e1c92dcb.entry.js.map +1 -0
- package/dist/siemens-ix/p-e275814e.js +2 -0
- package/dist/siemens-ix/p-e275814e.js.map +1 -0
- package/dist/siemens-ix/p-e3db25ef.entry.js +2 -0
- package/dist/siemens-ix/p-e3db25ef.entry.js.map +1 -0
- package/dist/siemens-ix/p-e8f2e141.entry.js +2 -0
- package/dist/siemens-ix/p-e8f2e141.entry.js.map +1 -0
- package/dist/siemens-ix/p-eca0b89c.entry.js +2 -0
- package/dist/siemens-ix/p-eca0b89c.entry.js.map +1 -0
- package/dist/siemens-ix/p-ef73f7e3.entry.js +2 -0
- package/dist/siemens-ix/p-ef73f7e3.entry.js.map +1 -0
- package/dist/siemens-ix/{p-bd24f35f.entry.js → p-f0219d7a.entry.js} +2 -2
- package/dist/siemens-ix/p-f22423c2.js +2 -0
- package/dist/siemens-ix/p-f22423c2.js.map +1 -0
- package/dist/siemens-ix/{p-1e8ee4af.entry.js → p-f38e7420.entry.js} +2 -2
- package/dist/siemens-ix/p-f4d634f5.entry.js +2 -0
- package/dist/siemens-ix/p-f4d634f5.entry.js.map +1 -0
- package/dist/siemens-ix/{p-94ab7c1c.entry.js → p-fafe1aeb.entry.js} +2 -2
- package/dist/siemens-ix/{p-94ab7c1c.entry.js.map → p-fafe1aeb.entry.js.map} +1 -1
- package/dist/siemens-ix/p-fe073f2a.entry.js +2 -0
- package/dist/siemens-ix/p-fe073f2a.entry.js.map +1 -0
- package/dist/siemens-ix/{p-6124d173.entry.js → p-ff17104c.entry.js} +2 -2
- package/dist/siemens-ix/siemens-ix-core.css +12289 -0
- package/dist/siemens-ix/siemens-ix.css +941 -875
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/siemens-ix/theme/classic-dark.css +1062 -0
- package/dist/siemens-ix/theme/classic-light.css +1062 -0
- package/dist/siemens-ix/theme/legacy-classic-dark.css +1061 -0
- package/dist/siemens-ix/theme/legacy-classic-light.css +1061 -0
- package/dist/types/components/application-header/application-header.d.ts +5 -1
- package/dist/types/components/avatar/avatar.d.ts +17 -0
- package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -3
- package/dist/types/components/button/base-button.d.ts +2 -1
- package/dist/types/components/button/button.d.ts +18 -1
- package/dist/types/components/button/test/button.ct.d.ts +1 -0
- package/dist/types/components/content-header/content-header.d.ts +1 -1
- package/dist/types/components/date-time-card/date-time-card.d.ts +0 -1
- package/dist/types/components/drawer/drawer.d.ts +1 -0
- package/dist/types/components/drawer/test/drawer.ct.d.ts +1 -0
- package/dist/types/components/dropdown/dropdown.d.ts +10 -13
- package/dist/types/components/dropdown/placement.d.ts +3 -4
- package/dist/types/components/dropdown-button/dropdown-button.d.ts +3 -1
- package/dist/types/components/dropdown-header/dropdown-header.d.ts +10 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +9 -0
- package/dist/types/components/event-list/event-list.d.ts +3 -1
- package/dist/types/components/event-list-item/event-list-item.d.ts +4 -2
- package/dist/types/components/expanding-search/test/expanding-search.ct.d.ts +1 -0
- package/dist/types/components/flip-tile/flip-tile-state.d.ts +5 -5
- package/dist/types/components/group/group-context-menu.d.ts +3 -4
- package/dist/types/components/group/group.d.ts +7 -8
- package/dist/types/components/icon-button/icon-button.d.ts +16 -1
- package/dist/types/components/icon-button/test/icon-button.ct.d.ts +1 -0
- package/dist/types/components/link-button/link-button.d.ts +20 -0
- package/dist/types/components/map-navigation/map-navigation.d.ts +3 -1
- package/dist/types/components/menu/burger-menu.d.ts +9 -1
- package/dist/types/components/menu/menu.d.ts +45 -34
- package/dist/types/components/menu/test/menu.ct.d.ts +1 -0
- package/dist/types/components/menu-about/menu-about.d.ts +4 -1
- package/dist/types/components/menu-category/menu-category.d.ts +37 -0
- package/dist/types/components/menu-category/test/menu-category.ct.d.ts +1 -0
- package/dist/types/components/menu-item/menu-item.d.ts +9 -2
- package/dist/types/components/menu-settings/menu-settings.d.ts +4 -1
- package/dist/types/components/modal/modal.d.ts +35 -66
- package/dist/types/components/modal-content/modal-content.d.ts +6 -0
- package/dist/types/components/modal-footer/modal-footer.d.ts +6 -0
- package/dist/types/components/modal-header/modal-header.d.ts +28 -0
- package/dist/types/components/modal-loading/modal-loading.d.ts +6 -0
- package/dist/types/components/select/select.d.ts +9 -1
- package/dist/types/components/select/test/select.ct.d.ts +1 -0
- package/dist/types/components/spinner/spinner.d.ts +7 -2
- package/dist/types/components/split-button/split-button.d.ts +3 -9
- package/dist/types/components/tile/tile.d.ts +5 -0
- package/dist/types/components/time-picker/time-picker.d.ts +0 -1
- package/dist/types/components/toast/toast-container.d.ts +0 -1
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/components/toggle/test/toggle.ct.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +3 -10
- package/dist/types/components/utils/a11y.d.ts +7 -0
- package/dist/types/components/utils/delegate.d.ts +15 -0
- package/dist/types/components/utils/menu-service/menu-service.d.ts +3 -0
- package/dist/types/components/utils/modal/index.d.ts +3 -0
- package/dist/types/components/utils/modal/loading.d.ts +4 -0
- package/dist/types/components/utils/modal/message.d.ts +41 -0
- package/dist/types/components/utils/modal/modal.d.ts +25 -0
- package/dist/types/components/utils/screen/context.d.ts +1 -0
- package/dist/types/components/utils/screen/mode.d.ts +5 -2
- package/dist/types/components/utils/screen/service.d.ts +5 -0
- package/dist/types/components/utils/shadow-dom.d.ts +3 -0
- package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +8 -2
- package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
- package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
- package/dist/types/components.d.ts +466 -265
- package/dist/types/index.d.ts +2 -1
- package/package.json +7 -6
- package/scss/components/_buttons.scss +4 -0
- package/scss/components/_dropdown.scss +1 -0
- package/scss/components/_forms.scss +1 -0
- package/scss/components/_links.scss +24 -0
- package/scss/ix-core.scss +84 -0
- package/scss/mixins/_hover.scss +32 -0
- package/{dist/collection/components/group-dropdown-item/group-dropdown-item.css → scss/mixins/shadow-dom/_host-disabled.scss} +6 -3
- package/scss/mixins/shadow-dom/_hover.scss +26 -0
- package/scss/theme/classic-dark/_borderRadius.scss +5 -5
- package/scss/theme/classic-dark/_borderWidth.scss +5 -5
- package/scss/theme/classic-dark/_boxShadow.scss +7 -7
- package/scss/theme/classic-dark/_color.scss +423 -418
- package/scss/theme/classic-dark/_other.scss +4 -4
- package/scss/theme/classic-dark/_sizing.scss +1 -1
- package/scss/theme/classic-light/_borderRadius.scss +4 -4
- package/scss/theme/classic-light/_borderWidth.scss +5 -5
- package/scss/theme/classic-light/_boxShadow.scss +7 -7
- package/scss/theme/classic-light/_color.scss +420 -415
- package/scss/theme/classic-light/_other.scss +4 -4
- package/scss/theme/classic-light/_sizing.scss +1 -1
- package/scss/theme/legacy-classic-dark/_border.scss +35 -0
- package/scss/theme/legacy-classic-dark/_borderRadius.scss +24 -0
- package/scss/theme/legacy-classic-dark/_borderWidth.scss +18 -0
- package/scss/theme/legacy-classic-dark/_boxShadow.scss +19 -0
- package/scss/theme/legacy-classic-dark/_color.scss +864 -0
- package/scss/theme/legacy-classic-dark/_fontFamilies.scss +8 -0
- package/scss/theme/legacy-classic-dark/_fontSizes.scss +13 -0
- package/scss/theme/legacy-classic-dark/_fontWeights.scss +9 -0
- package/scss/theme/legacy-classic-dark/_index.scss +16 -0
- package/scss/theme/legacy-classic-dark/_lineHeights.scss +18 -0
- package/scss/theme/legacy-classic-dark/_other.scss +16 -0
- package/scss/theme/legacy-classic-dark/_sizing.scss +16 -0
- package/scss/theme/legacy-classic-dark/_spacing.scss +9 -0
- package/scss/theme/legacy-classic-dark/_typography.scss +23 -0
- package/scss/theme/legacy-classic-light/_border.scss +35 -0
- package/scss/theme/legacy-classic-light/_borderRadius.scss +24 -0
- package/scss/theme/legacy-classic-light/_borderWidth.scss +18 -0
- package/scss/theme/legacy-classic-light/_boxShadow.scss +19 -0
- package/scss/theme/legacy-classic-light/_color.scss +864 -0
- package/scss/theme/legacy-classic-light/_fontFamilies.scss +8 -0
- package/scss/theme/legacy-classic-light/_fontSizes.scss +13 -0
- package/scss/theme/legacy-classic-light/_fontWeights.scss +9 -0
- package/scss/theme/legacy-classic-light/_index.scss +16 -0
- package/scss/theme/legacy-classic-light/_lineHeights.scss +18 -0
- package/scss/theme/legacy-classic-light/_other.scss +16 -0
- package/scss/theme/legacy-classic-light/_sizing.scss +16 -0
- package/scss/theme/legacy-classic-light/_spacing.scss +9 -0
- package/scss/theme/legacy-classic-light/_typography.scss +23 -0
- package/dist/cjs/context-a0900b95.js +0 -77
- package/dist/cjs/context-a0900b95.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-01fe5abe.js.map +0 -1
- package/dist/cjs/index-c978628a.js.map +0 -1
- package/dist/cjs/ix-card_3.cjs.entry.js +0 -74
- package/dist/cjs/ix-card_3.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-counter-pill.cjs.entry.js +0 -35
- package/dist/cjs/ix-counter-pill.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-group_3.cjs.entry.js +0 -181
- package/dist/cjs/ix-group_3.cjs.entry.js.map +0 -1
- package/dist/cjs/ix-modal_2.cjs.entry.js +0 -227
- package/dist/cjs/ix-modal_2.cjs.entry.js.map +0 -1
- package/dist/cjs/modal-utils-b645989b.js +0 -44
- package/dist/cjs/modal-utils-b645989b.js.map +0 -1
- package/dist/cjs/service-18dc5907.js +0 -75
- package/dist/cjs/service-18dc5907.js.map +0 -1
- package/dist/collection/components/counter-pill/counter-pill.css +0 -323
- package/dist/collection/components/counter-pill/counter-pill.js +0 -135
- package/dist/collection/components/counter-pill/counter-pill.js.map +0 -1
- package/dist/collection/components/dropdown/alignment.js +0 -10
- package/dist/collection/components/dropdown/alignment.js.map +0 -1
- package/dist/collection/components/group-dropdown-item/group-dropdown-item.js.map +0 -1
- package/dist/collection/components/modal/modal-utils.js +0 -37
- package/dist/collection/components/modal/modal-utils.js.map +0 -1
- package/dist/collection/components/modal-container/modal-container.js +0 -126
- package/dist/collection/components/modal-container/modal-container.js.map +0 -1
- package/dist/components/ix-counter-pill.js +0 -54
- package/dist/components/ix-counter-pill.js.map +0 -1
- package/dist/components/ix-group-dropdown-item.js +0 -51
- package/dist/components/ix-group-dropdown-item.js.map +0 -1
- package/dist/components/ix-modal-container.js +0 -8
- package/dist/components/ix-modal-container.js.map +0 -1
- package/dist/components/modal-container.js +0 -109
- package/dist/components/modal-container.js.map +0 -1
- package/dist/components/modal-utils.js +0 -40
- package/dist/components/modal-utils.js.map +0 -1
- package/dist/esm/context-f6a2b727.js +0 -73
- package/dist/esm/context-f6a2b727.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-3130eda0.js.map +0 -1
- package/dist/esm/index-8ddfb6d8.js.map +0 -1
- package/dist/esm/ix-card_3.entry.js +0 -68
- package/dist/esm/ix-card_3.entry.js.map +0 -1
- package/dist/esm/ix-counter-pill.entry.js +0 -31
- package/dist/esm/ix-counter-pill.entry.js.map +0 -1
- package/dist/esm/ix-group_3.entry.js +0 -175
- package/dist/esm/ix-group_3.entry.js.map +0 -1
- package/dist/esm/ix-modal_2.entry.js +0 -222
- package/dist/esm/ix-modal_2.entry.js.map +0 -1
- package/dist/esm/modal-utils-aecbcba5.js +0 -40
- package/dist/esm/modal-utils-aecbcba5.js.map +0 -1
- package/dist/esm/service-fc436c5b.js +0 -73
- package/dist/esm/service-fc436c5b.js.map +0 -1
- package/dist/siemens-ix/p-1572aab3.js +0 -2
- package/dist/siemens-ix/p-1572aab3.js.map +0 -1
- package/dist/siemens-ix/p-15bebd8a.js +0 -2
- package/dist/siemens-ix/p-1c64b073.js +0 -3
- package/dist/siemens-ix/p-1c64b073.js.map +0 -1
- package/dist/siemens-ix/p-3172249b.entry.js +0 -2
- package/dist/siemens-ix/p-3172249b.entry.js.map +0 -1
- package/dist/siemens-ix/p-3ddf017b.entry.js +0 -2
- package/dist/siemens-ix/p-40982e21.entry.js +0 -2
- package/dist/siemens-ix/p-40982e21.entry.js.map +0 -1
- package/dist/siemens-ix/p-4597dd77.entry.js +0 -2
- package/dist/siemens-ix/p-4597dd77.entry.js.map +0 -1
- package/dist/siemens-ix/p-46ced516.entry.js +0 -2
- package/dist/siemens-ix/p-46ced516.entry.js.map +0 -1
- package/dist/siemens-ix/p-47422d47.entry.js +0 -2
- package/dist/siemens-ix/p-47422d47.entry.js.map +0 -1
- package/dist/siemens-ix/p-4851ea38.entry.js +0 -2
- package/dist/siemens-ix/p-4851ea38.entry.js.map +0 -1
- package/dist/siemens-ix/p-4e851aa3.entry.js +0 -2
- package/dist/siemens-ix/p-4e851aa3.entry.js.map +0 -1
- package/dist/siemens-ix/p-51c81a20.entry.js +0 -2
- package/dist/siemens-ix/p-51c81a20.entry.js.map +0 -1
- package/dist/siemens-ix/p-529d7530.js +0 -2
- package/dist/siemens-ix/p-529d7530.js.map +0 -1
- package/dist/siemens-ix/p-55b54a81.entry.js.map +0 -1
- package/dist/siemens-ix/p-67be3720.entry.js +0 -2
- package/dist/siemens-ix/p-67be3720.entry.js.map +0 -1
- package/dist/siemens-ix/p-821ca55e.entry.js +0 -2
- package/dist/siemens-ix/p-821ca55e.entry.js.map +0 -1
- package/dist/siemens-ix/p-8719eeff.entry.js +0 -2
- package/dist/siemens-ix/p-8719eeff.entry.js.map +0 -1
- package/dist/siemens-ix/p-9a82921b.entry.js +0 -2
- package/dist/siemens-ix/p-9a82921b.entry.js.map +0 -1
- package/dist/siemens-ix/p-a08e1bbc.entry.js +0 -2
- package/dist/siemens-ix/p-a08e1bbc.entry.js.map +0 -1
- package/dist/siemens-ix/p-a422c64a.entry.js +0 -2
- package/dist/siemens-ix/p-a422c64a.entry.js.map +0 -1
- package/dist/siemens-ix/p-a73580a5.entry.js +0 -2
- package/dist/siemens-ix/p-a73580a5.entry.js.map +0 -1
- package/dist/siemens-ix/p-b14308ed.js +0 -2
- package/dist/siemens-ix/p-b14308ed.js.map +0 -1
- package/dist/siemens-ix/p-b5c40bb3.entry.js +0 -2
- package/dist/siemens-ix/p-b5c40bb3.entry.js.map +0 -1
- package/dist/siemens-ix/p-c5124f7b.entry.js +0 -2
- package/dist/siemens-ix/p-c5124f7b.entry.js.map +0 -1
- package/dist/siemens-ix/p-c7109071.entry.js +0 -2
- package/dist/siemens-ix/p-c7109071.entry.js.map +0 -1
- package/dist/siemens-ix/p-c724bb65.entry.js +0 -2
- package/dist/siemens-ix/p-c724bb65.entry.js.map +0 -1
- package/dist/siemens-ix/p-ca4d28fb.entry.js +0 -2
- package/dist/siemens-ix/p-ca4d28fb.entry.js.map +0 -1
- package/dist/siemens-ix/p-cd4e3593.entry.js +0 -2
- package/dist/siemens-ix/p-cd4e3593.entry.js.map +0 -1
- package/dist/siemens-ix/p-cd75b455.entry.js +0 -2
- package/dist/siemens-ix/p-cd75b455.entry.js.map +0 -1
- package/dist/siemens-ix/p-cf2717c1.entry.js +0 -2
- package/dist/siemens-ix/p-cf2717c1.entry.js.map +0 -1
- package/dist/siemens-ix/p-d5302336.entry.js +0 -2
- package/dist/siemens-ix/p-d5302336.entry.js.map +0 -1
- package/dist/siemens-ix/p-d784a04b.entry.js +0 -2
- package/dist/siemens-ix/p-d784a04b.entry.js.map +0 -1
- package/dist/siemens-ix/p-d7e23a1f.entry.js +0 -2
- package/dist/siemens-ix/p-d7e23a1f.entry.js.map +0 -1
- package/dist/siemens-ix/p-dbcec49e.entry.js +0 -2
- package/dist/siemens-ix/p-dbcec49e.entry.js.map +0 -1
- package/dist/siemens-ix/p-dc98d3f4.entry.js +0 -2
- package/dist/siemens-ix/p-dc98d3f4.entry.js.map +0 -1
- package/dist/siemens-ix/p-df138b2a.entry.js +0 -2
- package/dist/siemens-ix/p-df138b2a.entry.js.map +0 -1
- package/dist/siemens-ix/p-ea55afa3.entry.js +0 -2
- package/dist/siemens-ix/p-ea55afa3.entry.js.map +0 -1
- package/dist/siemens-ix/p-eccc2475.entry.js +0 -2
- package/dist/siemens-ix/p-eccc2475.entry.js.map +0 -1
- package/dist/siemens-ix/p-ecd1145b.entry.js +0 -2
- package/dist/siemens-ix/p-ecd1145b.entry.js.map +0 -1
- package/dist/siemens-ix/p-f207e578.entry.js +0 -2
- package/dist/siemens-ix/p-f34a16c6.js +0 -2
- package/dist/siemens-ix/p-f34a16c6.js.map +0 -1
- package/dist/siemens-ix/p-f48b706b.entry.js +0 -2
- package/dist/siemens-ix/p-f48b706b.entry.js.map +0 -1
- package/dist/siemens-ix/p-f50697b9.entry.js +0 -2
- package/dist/siemens-ix/p-f50697b9.entry.js.map +0 -1
- package/dist/siemens-ix/p-feb8c2c4.entry.js +0 -2
- package/dist/siemens-ix/p-feb8c2c4.entry.js.map +0 -1
- package/dist/types/components/counter-pill/counter-pill.d.ts +0 -24
- package/dist/types/components/dropdown/alignment.d.ts +0 -2
- package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +0 -11
- package/dist/types/components/modal/modal-utils.d.ts +0 -29
- package/dist/types/components/modal-container/modal-container.d.ts +0 -12
- /package/dist/siemens-ix/{p-d848739e.entry.js.map → p-00f74fc9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6acce5c9.entry.js.map → p-02f01e39.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-07c932da.entry.js.map → p-07a0b330.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3f4a9e1f.entry.js.map → p-09ce5f12.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-13bda5ea.entry.js.map → p-0fab8cae.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-003e9355.entry.js.map → p-20aa7350.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f6ae45fb.entry.js.map → p-33670e98.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a89a1fa5.entry.js.map → p-4d194d55.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d2225fc2.entry.js.map → p-709d38fe.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1331a920.entry.js.map → p-81333042.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-85f01dba.entry.js.map → p-904aa275.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cd3cfc78.entry.js.map → p-918450cd.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a7212f01.entry.js.map → p-b21bc31c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6c033b08.entry.js.map → p-b89172b4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3ddf017b.entry.js.map → p-d0a8aa6f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b1db27a3.js.map → p-db74796e.js.map} +0 -0
- /package/dist/siemens-ix/{p-bd24f35f.entry.js.map → p-f0219d7a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1e8ee4af.entry.js.map → p-f38e7420.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6124d173.entry.js.map → p-ff17104c.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-validation-tooltip.js","mappings":";;;SAUgB,YAAY,CAAC,SAAoB;EAC/C,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;IAC9B,OAAO,KAAK,CAAC;GACd;OAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;IACvC,OAAO,OAAO,CAAC;GAChB;EAED,OAAO,SAAS,CAAC;AACnB;;AClBA,MAAM,oBAAoB,GAAG,+lJAA+lJ;;MCoC/mJ,iBAAiB;;;;IAiBpB,iBAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,qBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CA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AQ,EAAE,OAAO;QACjB,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,aAAa,IAAI,CAAC,KAAK,CAChC,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,CAAC,KAAI,CAAC,CAC7B,MAAM,IAAI,CAAC,KAAK,CAAC,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,CAAC,KAAI,CAAC,CAAC,KAAK;OACrD,EACD,KAAK,EAAC,iCAAiC,IAEtC,IAAI,CAAC,OAAO,EACb,YAAM,IAAI,EAAC,iBAAiB,GAAQ,EACpC,WAAK,EAAE,EAAC,OAAO,GAAO,CAClB,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/dropdown/alignment.ts","./src/components/validation-tooltip/validation-tooltip.scss?tag=ix-validation-tooltip&encapsulation=scoped","./src/components/validation-tooltip/validation-tooltip.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 */\nimport { Placement } from './placement';\n\nexport function getAlignment(placement: Placement) {\n if (placement.includes('-end')) {\n return 'end';\n } else if (placement.includes('-start')) {\n return 'start';\n }\n\n return undefined;\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@import 'common-variables';\n@import 'fonts';\n\n:host {\n display: inline-block;\n position: relative;\n $padding: 5px;\n\n .validation-tooltip {\n background-color: var(--theme-tootlip--background);\n color: var(--theme-tooltip--color);\n padding: $padding 10px;\n border-radius: 4px;\n font-size: 13px;\n border: 1px solid var(--theme-tooltip--border-color);\n box-shadow: 0 0 2px 0 rgba(0, 0, 40, 0.1), 0 4px 8px 0 rgba(0, 0, 40, 0.1),\n 0 12px 18px 0 rgba(0, 0, 40, 0.1);\n\n #arrow,\n #arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n }\n\n #arrow {\n visibility: hidden;\n }\n\n #arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n background-color: var(--theme-tootlip--background);\n }\n }\n\n .validation-tooltip > #arrow {\n bottom: -5px;\n\n &::before {\n border-right: 1px solid var(--theme-tooltip--border-color);\n border-bottom: 1px solid var(--theme-tooltip--border-color);\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 */\nimport {\n arrow,\n autoPlacement,\n autoUpdate,\n computePosition,\n ComputePositionConfig,\n inline,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { getAlignment } from '../dropdown/alignment';\nimport {\n BasePlacement,\n Placement,\n PlacementWithAlignment,\n} from '../dropdown/placement';\n\ntype Position = { x: number; y: number };\n\n/**\n * @slot tooltip-message - Custom tooltip message with html support\n */\n@Component({\n tag: 'ix-validation-tooltip',\n styleUrl: 'validation-tooltip.scss',\n scoped: true,\n})\nexport class ValidationTooltip {\n @Element() hostElement: HTMLIxValidationTooltipElement;\n\n /**\n * Message of the tooltip\n */\n @Prop() message: string;\n\n /**\n * Placement of the tooltip\n */\n @Prop() placement: Placement = 'top';\n\n @State() isInputValid = true;\n @State() tooltipPosition: Position;\n @State() arrowPosition: Position;\n\n private onSubmitBind = this.onSubmit.bind(this);\n private onInputFocusBind = this.onInputFocus.bind(this);\n private autoUpdateCleanup: () => void;\n private observer: MutationObserver;\n\n get arrow() {\n return this.hostElement.querySelector('#arrow') as HTMLElement;\n }\n\n get inputElement() {\n return this.hostElement.querySelector('input');\n }\n\n get formElement() {\n return this.inputElement.form;\n }\n\n get tooltipElement(): HTMLElement {\n return this.hostElement.querySelector('.validation-tooltip');\n }\n\n private destoryAutoUpdate() {\n this.tooltipElement.style.display = 'none';\n\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n }\n }\n\n private applyTooltipPosition() {\n this.tooltipElement.style.display = 'block';\n\n let positionConfig: Partial<ComputePositionConfig> = {\n strategy: 'fixed',\n middleware: [\n inline(),\n shift(),\n offset({\n mainAxis: 8,\n }),\n ],\n };\n\n if (this.placement.includes('auto')) {\n positionConfig.middleware.push(\n autoPlacement({\n alignment: getAlignment(this.placement),\n })\n );\n } else {\n positionConfig.placement = this.placement as\n | BasePlacement\n | PlacementWithAlignment;\n }\n\n this.autoUpdateCleanup = autoUpdate(\n this.inputElement,\n this.tooltipElement,\n async () => {\n positionConfig.middleware = [\n ...positionConfig.middleware,\n arrow({\n element: this.arrow,\n }),\n ];\n const computeResponse = await computePosition(\n this.inputElement,\n this.tooltipElement,\n positionConfig\n );\n\n if (computeResponse.middlewareData.arrow) {\n const { x, y } = computeResponse.middlewareData.arrow;\n this.arrowPosition = {\n x,\n y,\n };\n Object.assign(this.arrow.style, {\n left: x != null ? `${x}px` : '',\n top: y != null ? `${y}px` : '',\n });\n }\n\n this.tooltipPosition = {\n x: computeResponse.x,\n y: computeResponse.y,\n };\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n }\n );\n }\n\n componentDidLoad() {\n if (!this.inputElement) {\n throw Error(\n 'Validation tooltip is only working with an direct input child.'\n );\n }\n\n if (!this.formElement) {\n throw Error('Validation tooltip is only working with an form element.');\n }\n\n this.formElement.addEventListener('submit', this.onSubmitBind);\n this.inputElement.addEventListener('focus', this.onInputFocusBind);\n\n this.observer = new MutationObserver(() => {\n if (this.inputElement.classList.contains('is-invalid')) {\n this.isInputValid = false;\n this.validationChanged();\n }\n });\n\n this.observer.observe(this.inputElement, {\n childList: false,\n subtree: false,\n attributes: true,\n attributeFilter: ['class'],\n });\n }\n\n private onInputFocus() {\n this.isInputValid = true;\n }\n\n private onSubmit() {\n if (this.formElement.classList.contains('needs-validation')) {\n this.isInputValid = this.inputElement.validity.valid;\n }\n }\n\n disconnectedCallback() {\n this.observer?.disconnect();\n this.destoryAutoUpdate();\n\n this.formElement.removeEventListener('submit', this.onSubmitBind);\n this.inputElement.removeEventListener('focus', this.onInputFocusBind);\n }\n\n @Watch('isInputValid')\n validationChanged() {\n if (!this.isInputValid) {\n this.applyTooltipPosition();\n } else {\n this.destoryAutoUpdate();\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n <div\n role=\"tooltip\"\n style={{\n display: 'none',\n position: 'fixed',\n top: '0',\n left: '0',\n transform: `translate(${Math.round(\n this.tooltipPosition?.x || 0\n )}px,${Math.round(this.tooltipPosition?.y || 0)}px)`,\n }}\n class=\"validation-tooltip text-default\"\n >\n {this.message}\n <slot name=\"tooltip-message\"></slot>\n <div id=\"arrow\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"ix-validation-tooltip.js","mappings":";;;AAAA,MAAM,oBAAoB,GAAG,+lJAA+lJ;;MC+B/mJ,iBAAiB;;;;IAwBpB,iBAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,qBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;qBAd9B,KAAK;sCAOM,KAAK;wBAElB,IAAI;;;;EAS5B,IAAI,KAAK;IACP,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAgB,CAAC;GAChE;EAED,IAAI,YAAY;IACd,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;GAChD;EAED,IAAI,WAAW;IACb,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;GAC/B;EAED,IAAI,cAAc;IAChB,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;GAC9D;EAEO,iBAAiB;IACvB,IAAI,CAA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src/components/validation-tooltip/validation-tooltip.scss?tag=ix-validation-tooltip&encapsulation=scoped","./src/components/validation-tooltip/validation-tooltip.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@import 'common-variables';\n@import 'fonts';\n\n:host {\n display: inline-block;\n position: relative;\n $padding: 5px;\n\n .validation-tooltip {\n background-color: var(--theme-tootlip--background);\n color: var(--theme-tooltip--color);\n padding: $padding 10px;\n border-radius: 4px;\n font-size: 13px;\n border: 1px solid var(--theme-tooltip--border-color);\n box-shadow: 0 0 2px 0 rgba(0, 0, 40, 0.1), 0 4px 8px 0 rgba(0, 0, 40, 0.1),\n 0 12px 18px 0 rgba(0, 0, 40, 0.1);\n\n #arrow,\n #arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n }\n\n #arrow {\n visibility: hidden;\n }\n\n #arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n background-color: var(--theme-tootlip--background);\n }\n }\n\n .validation-tooltip > #arrow {\n bottom: -5px;\n\n &::before {\n border-right: 1px solid var(--theme-tooltip--border-color);\n border-bottom: 1px solid var(--theme-tooltip--border-color);\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 */\nimport {\n arrow,\n autoUpdate,\n computePosition,\n ComputePositionConfig,\n flip,\n inline,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { Side } from '../dropdown/placement';\n\ntype Position = { x: number; y: number };\n\n/**\n * @slot tooltip-message - Custom tooltip message with html support\n */\n@Component({\n tag: 'ix-validation-tooltip',\n styleUrl: 'validation-tooltip.scss',\n scoped: true,\n})\nexport class ValidationTooltip {\n @Element() hostElement: HTMLIxValidationTooltipElement;\n\n /**\n * Message of the tooltip\n */\n @Prop() message: string;\n\n /**\n * Placement of the tooltip\n */\n @Prop() placement: Side = 'top';\n\n /**\n * Suppress the automatic placement of the dropdown.\n *\n * @since 2.0.0\n */\n @Prop() suppressAutomaticPlacement = false;\n\n @State() isInputValid = true;\n @State() tooltipPosition: Position;\n @State() arrowPosition: Position;\n\n private onSubmitBind = this.onSubmit.bind(this);\n private onInputFocusBind = this.onInputFocus.bind(this);\n private autoUpdateCleanup: () => void;\n private observer: MutationObserver;\n\n get arrow() {\n return this.hostElement.querySelector('#arrow') as HTMLElement;\n }\n\n get inputElement() {\n return this.hostElement.querySelector('input');\n }\n\n get formElement() {\n return this.inputElement.form;\n }\n\n get tooltipElement(): HTMLElement {\n return this.hostElement.querySelector('.validation-tooltip');\n }\n\n private destoryAutoUpdate() {\n this.tooltipElement.style.display = 'none';\n\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n }\n }\n\n private applyTooltipPosition() {\n this.tooltipElement.style.display = 'block';\n\n let positionConfig: Partial<ComputePositionConfig> = {\n strategy: 'fixed',\n middleware: [\n inline(),\n shift(),\n offset({\n mainAxis: 8,\n }),\n ],\n };\n\n if (!this.suppressAutomaticPlacement) {\n positionConfig.middleware.push(\n flip({ fallbackStrategy: 'initialPlacement' })\n );\n }\n positionConfig.placement = this.placement;\n\n this.autoUpdateCleanup = autoUpdate(\n this.inputElement,\n this.tooltipElement,\n async () => {\n positionConfig.middleware = [\n ...positionConfig.middleware,\n arrow({\n element: this.arrow,\n }),\n ];\n const computeResponse = await computePosition(\n this.inputElement,\n this.tooltipElement,\n positionConfig\n );\n\n if (computeResponse.middlewareData.arrow) {\n const { x, y } = computeResponse.middlewareData.arrow;\n this.arrowPosition = {\n x,\n y,\n };\n Object.assign(this.arrow.style, {\n left: x != null ? `${x}px` : '',\n top: y != null ? `${y}px` : '',\n });\n }\n\n this.tooltipPosition = {\n x: computeResponse.x,\n y: computeResponse.y,\n };\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n }\n );\n }\n\n componentDidLoad() {\n if (!this.inputElement) {\n throw Error(\n 'Validation tooltip is only working with an direct input child.'\n );\n }\n\n if (!this.formElement) {\n throw Error('Validation tooltip is only working with an form element.');\n }\n\n this.formElement.addEventListener('submit', this.onSubmitBind);\n this.inputElement.addEventListener('focus', this.onInputFocusBind);\n\n this.observer = new MutationObserver(() => {\n if (this.inputElement.classList.contains('is-invalid')) {\n this.isInputValid = false;\n this.validationChanged();\n }\n });\n\n this.observer.observe(this.inputElement, {\n childList: false,\n subtree: false,\n attributes: true,\n attributeFilter: ['class'],\n });\n }\n\n private onInputFocus() {\n this.isInputValid = true;\n }\n\n private onSubmit() {\n if (this.formElement.classList.contains('needs-validation')) {\n this.isInputValid = this.inputElement.validity.valid;\n }\n }\n\n disconnectedCallback() {\n this.observer?.disconnect();\n this.destoryAutoUpdate();\n\n this.formElement.removeEventListener('submit', this.onSubmitBind);\n this.inputElement.removeEventListener('focus', this.onInputFocusBind);\n }\n\n @Watch('isInputValid')\n validationChanged() {\n if (!this.isInputValid) {\n this.applyTooltipPosition();\n } else {\n this.destoryAutoUpdate();\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n <div\n role=\"tooltip\"\n style={{\n display: 'none',\n position: 'fixed',\n top: '0',\n left: '0',\n transform: `translate(${Math.round(\n this.tooltipPosition?.x || 0\n )}px,${Math.round(this.tooltipPosition?.y || 0)}px)`,\n }}\n class=\"validation-tooltip text-default\"\n >\n {this.message}\n <slot name=\"tooltip-message\"></slot>\n <div id=\"arrow\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
3
|
|
|
4
|
-
const workflowStepCss = "
|
|
4
|
+
const workflowStepCss = ":host *,:host *::after,:host *::before{box-sizing:border-box}:host .step{display:flex;flex-direction:column;align-items:center;background-color:var(--theme-workflow-step--background);border-radius:var(--theme-workflow--border-radius);width:auto;padding:1.125rem 0 0.5rem 0;height:4rem;width:12.75rem}:host .step .wrapper{display:flex;width:100%;align-items:center;justify-content:center;position:relative}:host .step .wrapper .line{width:100%;height:0.125rem;background-color:var(--theme-workflow-step-icon-default--color)}:host .step .wrapper .line.first,:host .step .wrapper .line.last{width:50%;margin:0 0 0 auto}:host .step .wrapper .line.last{margin:0 auto 0 0}:host .step .wrapper .line.single{width:0}:host .step .wrapper .line.selected{background-color:var(--theme-workflow-step-icon-default--color--selected)}:host .step .wrapper .line.done{background-color:var(--theme-workflow-step-icon-done--color)}:host .step .wrapper .line.done.selected{background-color:var(--theme-workflow-step-icon-done--color--selected)}:host .step .wrapper .line.warning{background-color:var(--theme-color-warning)}:host .step .wrapper .line.success{background-color:var(--theme-color-success)}:host .step .wrapper .line.error{background-color:var(--theme-color-alarm)}:host .step .wrapper .iconWrapper{display:flex;align-items:center;justify-content:center;position:absolute}:host .step .wrapper .iconWrapper .absolute{position:absolute}:host .step .text{margin-top:1rem;width:auto;padding:0 0.5rem}:host .step.vertical{flex-direction:row;padding:0}:host .step.vertical .wrapper{width:auto;padding-left:1.125rem;height:4rem}:host .step.vertical .wrapper .line{width:0.125rem;height:100%}:host .step.vertical .wrapper .line.first,:host .step.vertical .wrapper .line.last{height:50%;margin:auto 0 0 0}:host .step.vertical .wrapper .line.last{margin:0 0 auto 0}:host .step.vertical .wrapper .line.single{width:0}:host .step.vertical .text{margin-top:0;margin-left:1rem;padding:0}:host .step:hover{background-color:var(--theme-workflow-step--background--hover)}:host .step:active{background-color:var(--theme-workflow-step--background--active)}:host .step:focus-visible{outline:1px solid var(--focus--border-color);border-radius:0}:host .step.selected{background-color:var(--theme-workflow-step--background--selected)}:host .step.disabled{background-color:var(--theme-workflow-step--background--disabled)}:host .step.disabled .line{background-color:var(--theme-workflow-step-icon-default--color--disabled) !important}:host .step.disabled .text{color:var(--theme-workflow-step--color--disabled)}";
|
|
5
5
|
|
|
6
6
|
const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class WorkflowStep extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
10
11
|
this.selectedChanged = createEvent(this, "selectedChanged", 7);
|
|
11
12
|
this.vertical = false;
|
|
12
13
|
this.disabled = false;
|
|
@@ -70,14 +71,14 @@ const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class WorkflowStep extends
|
|
|
70
71
|
this.selectedHandler();
|
|
71
72
|
this.customIconSlot = !!this.hostElement.querySelector('[slot="custom-icon"]');
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
+
onStepClick() {
|
|
74
75
|
if (!this.disabled && this.clickable) {
|
|
75
76
|
this.selectedChanged.emit(this.hostElement);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
render() {
|
|
79
80
|
const icons = !this.customIconSlot ? (h(Fragment, null, h("ix-icon", { color: "color-1", name: this.iconName === 'warning' ? 'triangle-filled' : 'circle-filled', class: "absolute", size: "24" }), h("ix-icon", { color: this.iconColor, name: this.iconName, class: "absolute", size: "24" }))) : ('');
|
|
80
|
-
return (h(Host,
|
|
81
|
+
return (h(Host, { onClick: () => this.onStepClick() }, h("div", { tabIndex: 0, onClick: () => this.select(), class: {
|
|
81
82
|
step: true,
|
|
82
83
|
selected: this.selected,
|
|
83
84
|
vertical: this.vertical,
|
|
@@ -95,7 +96,7 @@ const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class WorkflowStep extends
|
|
|
95
96
|
"status": ["watchPropHandler"]
|
|
96
97
|
}; }
|
|
97
98
|
static get style() { return workflowStepCss; }
|
|
98
|
-
}, [
|
|
99
|
+
}, [1, "ix-workflow-step", {
|
|
99
100
|
"vertical": [4],
|
|
100
101
|
"disabled": [4],
|
|
101
102
|
"status": [1],
|
|
@@ -104,7 +105,7 @@ const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class WorkflowStep extends
|
|
|
104
105
|
"position": [1],
|
|
105
106
|
"iconName": [32],
|
|
106
107
|
"iconColor": [32]
|
|
107
|
-
}
|
|
108
|
+
}]);
|
|
108
109
|
function defineCustomElement$1() {
|
|
109
110
|
if (typeof customElements === "undefined") {
|
|
110
111
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-workflow-step.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,86IAA86I;;MC4Bz7I,YAAY;;;;;oBAMK,KAAK;oBAKL,KAAK;kBAKmC,MAAM;qBAK7C,KAAK;oBAKW,KAAK;oBAOY,WAAW;oBAGvE,QAAQ;qBACmB,mCAAmC;;EASxD,MAAM;IACZ,IAAI,CAAC,IAAI,CAAC,SAAS;MAAE,OAAO;IAC5B,IAAI,IAAI,CAAC,QAAQ;MAAE,OAAO;IAE1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,eAAe,EAAE,CAAC;GACxB;EAGD,eAAe;IACb,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,EAAE,CAAC;IAExD,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE;MAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC;MACxD,IAAI,CAAC,SAAS,GAAG,oCAAoC,aAAa,EAAE,CAAC;KACtE;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAC5C,IAAI,CAAC,SAAS,GAAG,iCAAiC,aAAa,EAAE,CAAC;KACnE;GACF;EAGD,gBAAgB;IACd,QAAQ,IAAI,CAAC,MAAM;MACjB,KAAK,MAAM;QACT,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAA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A,EACX,eACE,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,KAAK,EAAC,UAAU,EAChB,IAAI,EAAC,IAAI,GACA,CACF,KAEX,EAAE,CACH,CAAC;IAEF,QACE,EAAC,IAAI,QACH,WACE,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,EAC5B,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;OACxB,IAED,WAAK,KAAK,EAAC,SAAS,IAClB,WACE,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI;QACnB,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI;OACtB,GACI,EACP,WAAK,KAAK,EAAC,aAAa,IACrB,KAAK,EACN,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACF,EACN,WAAK,KAAK,EAAC,MAAM,IACf,eAAa,CACT,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/workflow-step/workflow-step.scss?tag=ix-workflow-step&encapsulation=scoped","./src/components/workflow-step/workflow-step.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@import 'common-variables';\n\n:host {\n .step {\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: var(--theme-workflow-step--background);\n border-radius: var(--theme-workflow--border-radius);\n width: auto;\n padding: 1.125rem 0 $small-space 0;\n height: 4rem;\n width: 12.75rem;\n\n .wrapper {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n position: relative;\n\n .line {\n width: 100%;\n height: 0.125rem;\n background-color: var(--theme-workflow-step-icon-default--color);\n\n &.first,\n &.last {\n width: 50%;\n margin: 0 0 0 auto;\n }\n\n &.last {\n margin: 0 auto 0 0;\n }\n\n &.single {\n width: 0;\n }\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-default--color--selected\n );\n }\n\n &.done {\n background-color: var(--theme-workflow-step-icon-done--color);\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-done--color--selected\n );\n }\n }\n\n &.warning {\n background-color: var(--theme-color-warning);\n }\n\n &.success {\n background-color: var(--theme-color-success);\n }\n\n &.error {\n background-color: var(--theme-color-alarm);\n }\n }\n\n .iconWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n\n .absolute {\n position: absolute;\n }\n }\n }\n\n .text {\n margin-top: $default-space;\n width: auto;\n padding: 0 $small-space;\n }\n\n &.vertical {\n flex-direction: row;\n padding: 0;\n\n .wrapper {\n width: auto;\n padding-left: 1.125rem;\n height: 4rem;\n\n .line {\n width: 0.125rem;\n height: 100%;\n\n &.first,\n &.last {\n height: 50%;\n margin: auto 0 0 0;\n }\n\n &.last {\n margin: 0 0 auto 0;\n }\n\n &.single {\n width: 0;\n }\n }\n }\n\n .text {\n margin-top: 0;\n margin-left: $default-space;\n padding: 0;\n }\n }\n\n &:hover {\n background-color: var(--theme-workflow-step--background--hover);\n }\n\n &:active {\n background-color: var(--theme-workflow-step--background--active);\n }\n\n &:focus-visible {\n outline: 1px solid var(--focus--border-color);\n border-radius: 0;\n }\n\n &.selected {\n background-color: var(--theme-workflow-step--background--selected);\n }\n\n &.disabled {\n background-color: var(--theme-workflow-step--background--disabled);\n\n .line {\n background-color: var(\n --theme-workflow-step-icon-default--color--disabled\n ) !important;\n }\n\n .text {\n color: var(--theme-workflow-step--color--disabled);\n }\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\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-workflow-step',\n styleUrl: 'workflow-step.scss',\n scoped: true,\n})\nexport class WorkflowStep {\n @Element() hostElement: HTMLIxWorkflowStepElement;\n\n /**\n * Select orientation\n */\n @Prop() vertical: boolean = false;\n\n /**\n * Set disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Set status\n */\n @Prop() status: 'open' | 'success' | 'done' | 'warning' | 'error' = 'open';\n\n /**\n * Activate navigation click\n */\n @Prop() clickable: boolean = false;\n\n /**\n * Set selected\n */\n @Prop({ mutable: true }) selected: boolean = false;\n\n /**\n * Activate navigation click\n *\n * @deprecated Will be changed to '@internal' in 2.0.0\n */\n @Prop() position: 'first' | 'last' | 'single' | 'undefined' = 'undefined';\n\n @State() iconName: 'circle' | 'circle-dot' | 'success' | 'warning' | 'error' =\n 'circle';\n @State() iconColor: string = 'workflow-step-icon-default--color';\n\n /**\n * @internal\n */\n @Event() selectedChanged: EventEmitter<HTMLIxWorkflowStepElement>;\n\n private customIconSlot: boolean;\n\n private select() {\n if (!this.clickable) return;\n if (this.disabled) return;\n\n this.selected = true;\n this.selectedHandler();\n }\n\n @Watch('selected')\n selectedHandler() {\n const selectedStyle = this.selected ? '--selected' : '';\n\n if (this.status === 'open') {\n this.iconName = this.selected ? 'circle-dot' : 'circle';\n this.iconColor = `workflow-step-icon-default--color${selectedStyle}`;\n }\n\n if (this.status === 'done' && !this.disabled) {\n this.iconColor = `workflow-step-icon-done--color${selectedStyle}`;\n }\n }\n\n @Watch('status')\n watchPropHandler() {\n switch (this.status) {\n case 'open':\n this.iconName = 'circle';\n this.iconColor = 'workflow-step-icon-default--color';\n break;\n case 'success':\n this.iconName = 'success';\n this.iconColor = 'color-success';\n break;\n case 'done':\n this.iconName = 'success';\n this.iconColor = 'workflow-step-icon-done--color';\n break;\n case 'warning':\n this.iconName = 'warning';\n this.iconColor = 'color-warning';\n break;\n case 'error':\n this.iconName = 'error';\n this.iconColor = 'color-alarm';\n break;\n\n default:\n this.iconName = 'circle';\n break;\n }\n\n if (this.disabled) {\n this.iconColor = 'workflow-step-icon-success--color--disabled';\n }\n }\n\n componentDidLoad() {\n this.watchPropHandler();\n this.selectedHandler();\n\n this.customIconSlot = !!this.hostElement.querySelector(\n '[slot=\"custom-icon\"]'\n );\n }\n\n @Listen('click', { passive: true })\n clickFunction() {\n if (!this.disabled && this.clickable) {\n this.selectedChanged.emit(this.hostElement);\n }\n }\n\n render() {\n const icons = !this.customIconSlot ? (\n <Fragment>\n <ix-icon\n color=\"color-1\"\n name={\n this.iconName === 'warning' ? 'triangle-filled' : 'circle-filled'\n }\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n <ix-icon\n color={this.iconColor}\n name={this.iconName}\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n </Fragment>\n ) : (\n ''\n );\n\n return (\n <Host>\n <div\n tabIndex={0}\n onClick={() => this.select()}\n class={{\n step: true,\n selected: this.selected,\n vertical: this.vertical,\n disabled: this.disabled,\n }}\n >\n <div class=\"wrapper\">\n <div\n class={{\n line: true,\n selected: this.selected,\n [this.status]: true,\n [this.position]: true,\n }}\n ></div>\n <div class=\"iconWrapper\">\n {icons}\n <slot name=\"custom-icon\"></slot>\n </div>\n </div>\n <div class=\"text\">\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"ix-workflow-step.js","mappings":";;;AAAA,MAAM,eAAe,GAAG,ohFAAohF;;MC2B/hF,YAAY;;;;;;oBAMK,KAAK;oBAKL,KAAK;kBAKmC,MAAM;qBAK7C,KAAK;oBAKW,KAAK;oBAOY,WAAW;oBAGvE,QAAQ;qBACmB,mCAAmC;;EASxD,MAAM;IACZ,IAAI,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E,KAAK,EAAE;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI;QACnB,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI;OACtB,GACI,EACP,WAAK,KAAK,EAAC,aAAa,IACrB,KAAK,EACN,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACF,EACN,WAAK,KAAK,EAAC,MAAM,IACf,eAAa,CACT,CACF,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/workflow-step/workflow-step.scss?tag=ix-workflow-step&encapsulation=shadow","./src/components/workflow-step/workflow-step.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@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n .step {\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: var(--theme-workflow-step--background);\n border-radius: var(--theme-workflow--border-radius);\n width: auto;\n padding: 1.125rem 0 $small-space 0;\n height: 4rem;\n width: 12.75rem;\n\n .wrapper {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n position: relative;\n\n .line {\n width: 100%;\n height: 0.125rem;\n background-color: var(--theme-workflow-step-icon-default--color);\n\n &.first,\n &.last {\n width: 50%;\n margin: 0 0 0 auto;\n }\n\n &.last {\n margin: 0 auto 0 0;\n }\n\n &.single {\n width: 0;\n }\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-default--color--selected\n );\n }\n\n &.done {\n background-color: var(--theme-workflow-step-icon-done--color);\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-done--color--selected\n );\n }\n }\n\n &.warning {\n background-color: var(--theme-color-warning);\n }\n\n &.success {\n background-color: var(--theme-color-success);\n }\n\n &.error {\n background-color: var(--theme-color-alarm);\n }\n }\n\n .iconWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n\n .absolute {\n position: absolute;\n }\n }\n }\n\n .text {\n margin-top: $default-space;\n width: auto;\n padding: 0 $small-space;\n }\n\n &.vertical {\n flex-direction: row;\n padding: 0;\n\n .wrapper {\n width: auto;\n padding-left: 1.125rem;\n height: 4rem;\n\n .line {\n width: 0.125rem;\n height: 100%;\n\n &.first,\n &.last {\n height: 50%;\n margin: auto 0 0 0;\n }\n\n &.last {\n margin: 0 0 auto 0;\n }\n\n &.single {\n width: 0;\n }\n }\n }\n\n .text {\n margin-top: 0;\n margin-left: $default-space;\n padding: 0;\n }\n }\n\n &:hover {\n background-color: var(--theme-workflow-step--background--hover);\n }\n\n &:active {\n background-color: var(--theme-workflow-step--background--active);\n }\n\n &:focus-visible {\n outline: 1px solid var(--focus--border-color);\n border-radius: 0;\n }\n\n &.selected {\n background-color: var(--theme-workflow-step--background--selected);\n }\n\n &.disabled {\n background-color: var(--theme-workflow-step--background--disabled);\n\n .line {\n background-color: var(\n --theme-workflow-step-icon-default--color--disabled\n ) !important;\n }\n\n .text {\n color: var(--theme-workflow-step--color--disabled);\n }\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\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-workflow-step',\n styleUrl: 'workflow-step.scss',\n shadow: true,\n})\nexport class WorkflowStep {\n @Element() hostElement: HTMLIxWorkflowStepElement;\n\n /**\n * Select orientation\n */\n @Prop() vertical: boolean = false;\n\n /**\n * Set disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Set status\n */\n @Prop() status: 'open' | 'success' | 'done' | 'warning' | 'error' = 'open';\n\n /**\n * Activate navigation click\n */\n @Prop() clickable: boolean = false;\n\n /**\n * Set selected\n */\n @Prop({ mutable: true }) selected: boolean = false;\n\n /**\n * Activate navigation click\n *\n * @deprecated Will be changed to '@internal' in 2.0.0\n */\n @Prop() position: 'first' | 'last' | 'single' | 'undefined' = 'undefined';\n\n @State() iconName: 'circle' | 'circle-dot' | 'success' | 'warning' | 'error' =\n 'circle';\n @State() iconColor: string = 'workflow-step-icon-default--color';\n\n /**\n * @internal\n */\n @Event() selectedChanged: EventEmitter<HTMLIxWorkflowStepElement>;\n\n private customIconSlot: boolean;\n\n private select() {\n if (!this.clickable) return;\n if (this.disabled) return;\n\n this.selected = true;\n this.selectedHandler();\n }\n\n @Watch('selected')\n selectedHandler() {\n const selectedStyle = this.selected ? '--selected' : '';\n\n if (this.status === 'open') {\n this.iconName = this.selected ? 'circle-dot' : 'circle';\n this.iconColor = `workflow-step-icon-default--color${selectedStyle}`;\n }\n\n if (this.status === 'done' && !this.disabled) {\n this.iconColor = `workflow-step-icon-done--color${selectedStyle}`;\n }\n }\n\n @Watch('status')\n watchPropHandler() {\n switch (this.status) {\n case 'open':\n this.iconName = 'circle';\n this.iconColor = 'workflow-step-icon-default--color';\n break;\n case 'success':\n this.iconName = 'success';\n this.iconColor = 'color-success';\n break;\n case 'done':\n this.iconName = 'success';\n this.iconColor = 'workflow-step-icon-done--color';\n break;\n case 'warning':\n this.iconName = 'warning';\n this.iconColor = 'color-warning';\n break;\n case 'error':\n this.iconName = 'error';\n this.iconColor = 'color-alarm';\n break;\n\n default:\n this.iconName = 'circle';\n break;\n }\n\n if (this.disabled) {\n this.iconColor = 'workflow-step-icon-success--color--disabled';\n }\n }\n\n componentDidLoad() {\n this.watchPropHandler();\n this.selectedHandler();\n\n this.customIconSlot = !!this.hostElement.querySelector(\n '[slot=\"custom-icon\"]'\n );\n }\n\n onStepClick() {\n if (!this.disabled && this.clickable) {\n this.selectedChanged.emit(this.hostElement);\n }\n }\n\n render() {\n const icons = !this.customIconSlot ? (\n <Fragment>\n <ix-icon\n color=\"color-1\"\n name={\n this.iconName === 'warning' ? 'triangle-filled' : 'circle-filled'\n }\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n <ix-icon\n color={this.iconColor}\n name={this.iconName}\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n </Fragment>\n ) : (\n ''\n );\n\n return (\n <Host onClick={() => this.onStepClick()}>\n <div\n tabIndex={0}\n onClick={() => this.select()}\n class={{\n step: true,\n selected: this.selected,\n vertical: this.vertical,\n disabled: this.disabled,\n }}\n >\n <div class=\"wrapper\">\n <div\n class={{\n line: true,\n selected: this.selected,\n [this.status]: true,\n [this.position]: true,\n }}\n ></div>\n <div class=\"iconWrapper\">\n {icons}\n <slot name=\"custom-icon\"></slot>\n </div>\n </div>\n <div class=\"text\">\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as createMutationObserver } from './mutation-observer.js';
|
|
3
3
|
|
|
4
|
-
const workflowStepsCss = "
|
|
4
|
+
const workflowStepsCss = ":host *,:host *::after,:host *::before{box-sizing:border-box}:host .steps{display:flex}:host .steps.vertical{display:block}";
|
|
5
5
|
|
|
6
6
|
const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
10
11
|
this.stepSelected = createEvent(this, "stepSelected", 7);
|
|
11
12
|
this.vertical = false;
|
|
12
13
|
this.linear = false;
|
|
@@ -16,9 +17,6 @@ const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps exten
|
|
|
16
17
|
getSteps() {
|
|
17
18
|
return Array.from(this.hostElement.querySelectorAll('ix-workflow-step'));
|
|
18
19
|
}
|
|
19
|
-
get stepsContent() {
|
|
20
|
-
return this.hostElement.querySelector('.steps');
|
|
21
|
-
}
|
|
22
20
|
updateSteps() {
|
|
23
21
|
let steps = this.getSteps();
|
|
24
22
|
steps.forEach((element, index) => {
|
|
@@ -40,16 +38,15 @@ const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps exten
|
|
|
40
38
|
}
|
|
41
39
|
});
|
|
42
40
|
}
|
|
43
|
-
|
|
44
|
-
this.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
});
|
|
41
|
+
onStepSelectionChanged(event) {
|
|
42
|
+
const steps = this.getSteps();
|
|
43
|
+
steps.forEach((element) => {
|
|
44
|
+
if (element !== event.target) {
|
|
45
|
+
element.selected = false;
|
|
46
|
+
}
|
|
51
47
|
});
|
|
52
|
-
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
53
50
|
this.observer = createMutationObserver((mutations) => {
|
|
54
51
|
for (let mutation of mutations) {
|
|
55
52
|
if (mutation.type === 'childList') {
|
|
@@ -57,7 +54,7 @@ const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps exten
|
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
});
|
|
60
|
-
this.observer.observe(
|
|
57
|
+
this.observer.observe(this.hostElement, { childList: true });
|
|
61
58
|
}
|
|
62
59
|
disconnectedCallback() {
|
|
63
60
|
if (this.observer) {
|
|
@@ -72,12 +69,12 @@ const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps exten
|
|
|
72
69
|
}
|
|
73
70
|
get hostElement() { return this; }
|
|
74
71
|
static get style() { return workflowStepsCss; }
|
|
75
|
-
}, [
|
|
72
|
+
}, [1, "ix-workflow-steps", {
|
|
76
73
|
"vertical": [4],
|
|
77
74
|
"linear": [4],
|
|
78
75
|
"clickable": [4],
|
|
79
76
|
"selectedIndex": [2, "selected-index"]
|
|
80
|
-
}]);
|
|
77
|
+
}, [[0, "selectedChanged", "onStepSelectionChanged"]]]);
|
|
81
78
|
function defineCustomElement$1() {
|
|
82
79
|
if (typeof customElements === "undefined") {
|
|
83
80
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"ix-workflow-steps.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,
|
|
1
|
+
{"file":"ix-workflow-steps.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,6HAA6H;;MC0BzI,aAAa;;;;;;oBAMI,KAAK;kBAMP,KAAK;qBAKF,KAAK;yBAKF,CAAC;;EAOzB,QAAQ;IACd,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;GAC1E;EAED,WAAW;IACT,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC5B,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,KAAK;MAC3B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;MACjC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;MACnC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC;MAEhD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC5B,OAAO;OACR;MAED,IAAI,KAAK,KAAK,CAAC,EAAE;QACf,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC;OAC5B;WAAM,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACrC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC;OAC3B;WAAM;QACL,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC;OAChC;KACF,CAAC,CAAC;GACJ;EAKD,sBAAsB,CAAC,KAA6C;IAClE,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9B,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO;MACpB,IAAI,OAAO,KAAK,KAAK,CAAC,MAAM,EAAE;QAC5B,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC;OAC1B;KACF,CAAC,CAAC;GACJ;EAED,gBAAgB;IACd,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC,CAAC,SAAS;MAC/C,KAAK,IAAI,QAAQ,IAAI,SAAS,EAAE;QAC9B,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,EAAE;UACjC,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;OACF;KACF,CAAC,CAAC;IAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;GAC9D;EAED,oBAAoB;IAClB,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;KAC5B;GACF;EAED,kBAAkB;IAChB,IAAI,CAAC,WAAW,EAAE,CAAC;GACpB;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAClD,eAAa,CACT,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/workflow-steps/workflow-steps.scss?tag=ix-workflow-steps&encapsulation=shadow","./src/components/workflow-steps/workflow-steps.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@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n .steps {\n display: flex;\n\n &.vertical {\n display: block;\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\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n} from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\n\n@Component({\n tag: 'ix-workflow-steps',\n styleUrl: 'workflow-steps.scss',\n shadow: true,\n})\nexport class WorkflowSteps {\n @Element() hostElement!: HTMLIxWorkflowStepsElement;\n\n /**\n * Select orientation\n */\n @Prop() vertical: boolean = false;\n\n /**\n * Select linear mode\n * @deprecated Has no effect on component. Will get removed in 2.0.0\n */\n @Prop() linear: boolean = false;\n\n /**\n * Activate navigation click\n */\n @Prop() clickable: boolean = false;\n\n /**\n * Activate navigation click\n */\n @Prop() selectedIndex: number = 0;\n\n /**\n * On step selected event\n */\n @Event() stepSelected: EventEmitter<number>;\n\n private getSteps() {\n return Array.from(this.hostElement.querySelectorAll('ix-workflow-step'));\n }\n\n updateSteps() {\n let steps = this.getSteps();\n steps.forEach((element, index) => {\n element.vertical = this.vertical;\n element.clickable = this.clickable;\n element.selected = this.selectedIndex === index;\n\n if (steps.length === 1) {\n element.position = 'single';\n return;\n }\n\n if (index === 0) {\n element.position = 'first';\n } else if (index === steps.length - 1) {\n element.position = 'last';\n } else {\n element.position = 'undefined';\n }\n });\n }\n\n private observer: MutationObserver;\n\n @Listen('selectedChanged')\n onStepSelectionChanged(event: CustomEvent<HTMLIxWorkflowStepElement>) {\n const steps = this.getSteps();\n steps.forEach((element) => {\n if (element !== event.target) {\n element.selected = false;\n }\n });\n }\n\n componentDidLoad() {\n this.observer = createMutationObserver((mutations) => {\n for (let mutation of mutations) {\n if (mutation.type === 'childList') {\n this.updateSteps();\n }\n }\n });\n\n this.observer.observe(this.hostElement, { childList: true });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n componentDidRender() {\n this.updateSteps();\n }\n\n render() {\n return (\n <Host>\n <div class={{ steps: true, vertical: this.vertical }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as anime } from './anime.es.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './icon-button.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './spinner.js';
|
|
5
6
|
|
|
6
7
|
const mapNavigationOverlayCss = ".text-xs.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a.sc-ix-map-navigation-overlay{color:var(--theme-color-primary)}.sc-ix-map-navigation-overlay-h{position:absolute;width:100%;height:100%;z-index:2;top:0;left:0;background-color:var(--theme-overlay--background)}.sc-ix-map-navigation-overlay-h .overlay-header.sc-ix-map-navigation-overlay{display:flex;position:relative;justify-content:flex-start;align-items:center;height:3.5rem;background-color:var(--theme-overlay-header--background)}.sc-ix-map-navigation-overlay-h .overlay-header-content.sc-ix-map-navigation-overlay{display:flex;align-items:center;min-width:0}.sc-ix-map-navigation-overlay-h .overlay-header-content.sc-ix-map-navigation-overlay ix-icon.sc-ix-map-navigation-overlay{-webkit-margin-start:1rem;margin-inline-start:1rem;color:var(--theme-overlay-header--color)}.sc-ix-map-navigation-overlay-h .overlay-header-content.sc-ix-map-navigation-overlay .overlay-header-title.sc-ix-map-navigation-overlay{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-overlay-header--color);-webkit-margin-start:1rem;margin-inline-start:1rem}.sc-ix-map-navigation-overlay-h .color-indicator.sc-ix-map-navigation-overlay{display:inline-block;position:relative;width:0.5rem;height:100%;background-color:var(--theme-color-neutral)}.sc-ix-map-navigation-overlay-h .overlay-close.sc-ix-map-navigation-overlay{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:1rem;margin-inline-end:1rem}";
|
|
7
8
|
|
|
@@ -63,7 +64,7 @@ function defineCustomElement() {
|
|
|
63
64
|
if (typeof customElements === "undefined") {
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
const components = ["ix-map-navigation-overlay", "ix-icon", "ix-icon-button"];
|
|
67
|
+
const components = ["ix-map-navigation-overlay", "ix-icon", "ix-icon-button", "ix-spinner"];
|
|
67
68
|
components.forEach(tagName => { switch (tagName) {
|
|
68
69
|
case "ix-map-navigation-overlay":
|
|
69
70
|
if (!customElements.get(tagName)) {
|
|
@@ -72,10 +73,15 @@ function defineCustomElement() {
|
|
|
72
73
|
break;
|
|
73
74
|
case "ix-icon":
|
|
74
75
|
if (!customElements.get(tagName)) {
|
|
75
|
-
defineCustomElement$
|
|
76
|
+
defineCustomElement$3();
|
|
76
77
|
}
|
|
77
78
|
break;
|
|
78
79
|
case "ix-icon-button":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
defineCustomElement$2();
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
case "ix-spinner":
|
|
79
85
|
if (!customElements.get(tagName)) {
|
|
80
86
|
defineCustomElement$1();
|
|
81
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"map-navigation-overlay.js","mappings":"
|
|
1
|
+
{"file":"map-navigation-overlay.js","mappings":";;;;;;AAAA,MAAM,uBAAuB,GAAG,qzJAAqzJ;;MCyBx0J,oBAAoB;;;;;;;;;EAyB/B,iBAAiB;IACf,KAAK,CAAC;MACJ,OAAO,EAAE,IAAI,CAAC,WAAW;MACzB,QAAQ,EAAE,oBAAoB,CAAC,QAAQ;MACvC,cAAc,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;MACxB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;MACf,MAAM,EAAE,aAAa;MACrB,KAAK,EAAE;QACL,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;OAC7C;KACF,CAAC,CAAC;GACJ;EAEO,YAAY;IAClB,KAAK,CAAC;MACJ,OAAO,EAAE,IAAI,CAAC,WAAW;MACzB,QAAQ,EAAE,oBAAoB,CAAC,QAAQ;MACvC,cAAc,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC;MACjC,UAAU,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC;MACxB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;MACf,MAAM,EAAE,YAAY;MACpB,QAAQ,EAAE;QACR,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;OAC1C;KACF,CAAC,CAAC;GACJ;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAC,gBAAgB,IACzB,WACE,KAAK,EAAE;QACL,iBAAiB,EAAE,IAAI;QACvB,QAAQ,EAAE,IAAI,CAAC,KAAK,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;OACjE,EACD,KAAK,EAAE;QACL,kBAAkB,EAAE,IAAI,CAAC,KAAK;YAC1B,eAAe,IAAI,CAAC,KAAK,GAAG;YAC5B,EAAE;OACP,GACI,EACP,WAAK,KAAK,EAAC,wBAAwB,IACjC,eAAS,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAY,EAC9C,YAAM,KAAK,EAAC,sBAAsB,EAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAChD,IAAI,CAAC,IAAI,CACL,CACH,EACN,sBACE,KAAK,EAAC,eAAe,EACrB,KAAK,QACL,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,EAAE,GAClB,CACd,EAEN,eAAa,CACR,EACP;GACH;;;;;;;;AAtFuB,6BAAQ,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/map-navigation-overlay/map-navigation-overlay.scss?tag=ix-map-navigation-overlay&encapsulation=scoped","./src/components/map-navigation-overlay/map-navigation-overlay.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@import 'common-variables';\n@import 'fonts';\n@import 'mixins/text-truncation';\n\n:host {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 2;\n top: 0;\n left: 0;\n\n background-color: var(--theme-overlay--background);\n\n .overlay-header {\n display: flex;\n position: relative;\n justify-content: flex-start;\n align-items: center;\n height: 3.5rem;\n\n background-color: var(--theme-overlay-header--background);\n }\n\n .overlay-header-content {\n display: flex;\n align-items: center;\n min-width: 0;\n\n ix-icon {\n margin-inline-start: $default-space;\n color: var(--theme-overlay-header--color);\n }\n\n .overlay-header-title {\n @include text-h2;\n @include ellipsis;\n color: var(--theme-overlay-header--color);\n margin-inline-start: $default-space;\n }\n }\n\n .color-indicator {\n display: inline-block;\n position: relative;\n width: $small-space;\n height: 100%;\n background-color: var(--theme-color-neutral);\n }\n\n .overlay-close {\n margin-inline-start: auto;\n margin-inline-end: $default-space;\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 h,\n Host,\n Prop,\n} from '@stencil/core';\nimport anime from 'animejs';\n\n@Component({\n tag: 'ix-map-navigation-overlay',\n styleUrl: 'map-navigation-overlay.scss',\n scoped: true,\n})\nexport class MapNavigationOverlay {\n private static readonly slowTime = 500;\n\n @Element() hostElement: HTMLIxMapNavigationOverlayElement;\n\n /**\n * Title of overlay\n */\n @Prop() name: string;\n\n /**\n * Icon of overlay\n */\n @Prop() icon: string;\n\n /**\n * Color of icon\n */\n @Prop() color: string;\n\n /**\n * Event closed\n */\n @Event() closeClick: EventEmitter;\n\n componentWillLoad() {\n anime({\n targets: this.hostElement,\n duration: MapNavigationOverlay.slowTime,\n backdropFilter: [0, 'blur(1rem)'],\n translateX: ['-4rem', 0],\n opacity: [0, 1],\n easing: 'easeOutSine',\n begin: () => {\n this.hostElement.classList.remove('d-none');\n },\n });\n }\n\n private closeOverlay() {\n anime({\n targets: this.hostElement,\n duration: MapNavigationOverlay.slowTime,\n backdropFilter: ['blur(1rem)', 0],\n translateX: [0, '-4rem'],\n opacity: [1, 0],\n easing: 'easeInSine',\n complete: () => {\n this.closeClick.emit();\n this.hostElement.classList.add('d-none');\n },\n });\n }\n\n render() {\n return (\n <Host>\n <div class=\"overlay-header\">\n <div\n class={{\n 'color-indicator': true,\n 'd-none': this.color === 'undefined' || this.color === undefined,\n }}\n style={{\n 'background-color': this.color\n ? `var(--theme-${this.color})`\n : '',\n }}\n ></div>\n <div class=\"overlay-header-content\">\n <ix-icon size=\"32\" name={this.icon}></ix-icon>\n <span class=\"overlay-header-title\" title={this.name}>\n {this.name}\n </span>\n </div>\n <ix-icon-button\n class=\"overlay-close\"\n ghost\n icon=\"close\"\n size=\"24\"\n onClick={() => this.closeOverlay()}\n ></ix-icon-button>\n </div>\n\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,12 +2,13 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { d as defineCustomElement$2 } from './dropdown-item.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
4
4
|
|
|
5
|
-
const menuAvatarItemCss = "
|
|
5
|
+
const menuAvatarItemCss = ":host{display:block}:host *,:host *::after,:host *::before{box-sizing:border-box}";
|
|
6
6
|
|
|
7
7
|
const MenuAvatarItem = /*@__PURE__*/ proxyCustomElement(class MenuAvatarItem extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super();
|
|
10
10
|
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
11
12
|
this.itemClick = createEvent(this, "itemClick", 7);
|
|
12
13
|
this.icon = undefined;
|
|
13
14
|
this.label = undefined;
|
|
@@ -17,7 +18,7 @@ const MenuAvatarItem = /*@__PURE__*/ proxyCustomElement(class MenuAvatarItem ext
|
|
|
17
18
|
}
|
|
18
19
|
get hostElement() { return this; }
|
|
19
20
|
static get style() { return menuAvatarItemCss; }
|
|
20
|
-
}, [
|
|
21
|
+
}, [1, "ix-menu-avatar-item", {
|
|
21
22
|
"icon": [1],
|
|
22
23
|
"label": [1]
|
|
23
24
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"menu-avatar-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"file":"menu-avatar-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,mFAAmF;;MCuBhG,cAAc;;;;;;;;;EAkBzB,MAAM;IACJ,QACE,wBACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,GACpB,EACpB;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/menu-avatar-item/menu-avatar-item.scss?tag=ix-menu-avatar-item&encapsulation=shadow","./src/components/menu-avatar-item/menu-avatar-item.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@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: block;\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 h,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-menu-avatar-item',\n styleUrl: 'menu-avatar-item.scss',\n shadow: true,\n})\nexport class MenuAvatarItem {\n /**\n * Avatar dropdown icon\n */\n @Prop() icon: string;\n\n /**\n * Avatar dropdown label\n */\n @Prop() label: string;\n\n /**\n * Avatar dropdown item clicked\n */\n @Event() itemClick: EventEmitter<MouseEvent>;\n\n @Element() hostElement: HTMLIxMenuAvatarItemElement;\n\n render() {\n return (\n <ix-dropdown-item\n icon={this.icon}\n label={this.label}\n onClick={(e) => this.itemClick.emit(e)}\n ></ix-dropdown-item>\n );\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { c as createMutationObserver } from './mutation-observer.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
4
4
|
|
|
5
|
-
const menuItemCss = ":host{position:relative;display:block;cursor:pointer;height:3rem;min-height:3rem;max-height:3rem}:host .tab{display:flex;position:relative;align-items:center;height:3rem;z-index:500;padding-left:0.875rem}:host .tab:not(.disabled):not(:disabled).hover,:host .tab:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .tab:not(.disabled):not(:disabled).active,:host .tab:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host i.glyph{color:var(--theme-nav-item-primary-icon--color);position:relative}:host .tab:focus-visible{outline:none}:host:focus-visible{outline:none}:host .tab:not(:last-child){margin-bottom:0.5rem}:host .notification{display:inline-flex;position:absolute;top:0.25rem;left:1.75rem}:host .notification .pill{display:inline-flex;justify-content:center;align-items:center;height:0.5rem;min-width:1rem;position:relative;border-radius:6.25rem;background-color:var(--theme-color-primary);border-radius:6.25rem;font-size:0.75rem;font-weight:bold;line-height:1;font-family:Siemens Sans, Arial, sans-serif;color:var(--theme-color-primary--contrast);padding:0.25rem}:host .tab-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-nav-item-primary--color);margin:0 1.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(.active) .tab,:host(.selected) .tab{background-color:var(--theme-nav-item-primary--background--selected)}:host(.active) .tab::before,:host(.selected) .tab::before{content:\"\";background-color:var(--theme-nav-item-primary--border-color--selected);height:3rem;width:0.25rem;left:0;position:absolute}:host(.active) .tab>.glyph,:host(.selected) .tab>.glyph{color:var(--theme-nav-item-primary-icon--color--selected)}:host(.disabled){color:var(--theme-color-weak-text);pointer-events:none;cursor:default}:host(.disabled) .tab>.glyph{color:var(--theme-color-weak-text)}:host(.disabled) .tab-text{color:var(--theme-color-weak-text)}:host(.
|
|
5
|
+
const menuItemCss = ":host{position:relative;display:block;cursor:pointer;height:var(--ix-menu-item-height, 3rem);min-height:var(--ix-menu-item-height, 3rem);max-height:var(--ix-menu-item-height, 3rem)}:host .tab{display:flex;position:relative;align-items:center;height:var(--ix-menu-item-height, 3rem);z-index:500;padding-left:0.875rem}:host .tab:not(.disabled):not(:disabled).hover,:host .tab:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .tab:not(.disabled):not(:disabled).active,:host .tab:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host i.glyph{color:var(--theme-nav-item-primary-icon--color);position:relative}:host .tab:focus-visible{outline:none}:host:focus-visible{outline:none}:host .tab:not(:last-child){margin-bottom:0.5rem}:host .notification{display:inline-flex;position:absolute;top:0.25rem;left:1.75rem}:host .notification .pill{display:inline-flex;justify-content:center;align-items:center;height:0.5rem;min-width:1rem;position:relative;border-radius:6.25rem;background-color:var(--theme-color-primary);border-radius:6.25rem;font-size:0.75rem;font-weight:bold;line-height:1;font-family:Siemens Sans, Arial, sans-serif;color:var(--theme-color-primary--contrast);padding:0.25rem}:host .tab-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-nav-item-primary--color);margin:0 1.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}:host(.active) .tab,:host(.selected) .tab{background-color:var(--theme-nav-item-primary--background--selected)}:host(.active) .tab::before,:host(.selected) .tab::before{content:\"\";background-color:var(--theme-nav-item-primary--border-color--selected);height:var(--ix-menu-item-height, 3rem);width:0.25rem;left:0;position:absolute}:host(.active) .tab>.glyph,:host(.selected) .tab>.glyph{color:var(--theme-nav-item-primary-icon--color--selected)}:host(.disabled){color:var(--theme-color-weak-text);pointer-events:none;cursor:default}:host(.disabled) .tab>.glyph{color:var(--theme-color-weak-text)}:host(.disabled) .tab-text{color:var(--theme-color-weak-text)}:host(.bottom-tab),:host([slot=bottom]){min-height:2.25rem;height:2.25rem;max-height:2.25rem}:host(.bottom-tab) .tab,:host([slot=bottom]) .tab{height:2.25rem}:host(.bottom-tab) .tab::before,:host([slot=bottom]) .tab::before{height:2.25rem;background-color:transparent}:host(.bottom-tab).active:hover,:host(.bottom-tab).selected:hover,:host([slot=bottom]).active:hover,:host([slot=bottom]).selected:hover{background-color:var(--theme-nav-item-secondary--background--selected)}:host(.bottom-tab).active:active,:host(.bottom-tab).selected:active,:host([slot=bottom]).active:active,:host([slot=bottom]).selected:active{background-color:var(--theme-nav-item-secondary--background--selected)}:host(.bottom-tab.active) .tab,:host(.bottom-tab.selected) .tab,:host(.active[slot=bottom]) .tab,:host(.selected[slot=bottom]) .tab{background-color:var(--theme-nav-item-secondary--background--selected)}";
|
|
6
6
|
|
|
7
7
|
const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
@@ -12,6 +12,7 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
12
12
|
this.home = false;
|
|
13
13
|
this.bottom = false;
|
|
14
14
|
this.tabIcon = 'document';
|
|
15
|
+
this.icon = undefined;
|
|
15
16
|
this.notifications = undefined;
|
|
16
17
|
this.active = undefined;
|
|
17
18
|
this.disabled = undefined;
|
|
@@ -36,12 +37,24 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
render() {
|
|
39
|
-
|
|
40
|
+
var _a;
|
|
41
|
+
let extendedAttributes = {};
|
|
42
|
+
if (this.home) {
|
|
43
|
+
extendedAttributes = {
|
|
44
|
+
slot: 'home',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (this.bottom) {
|
|
48
|
+
extendedAttributes = {
|
|
49
|
+
slot: 'bottom',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
return (h(Host, Object.assign({ class: {
|
|
40
53
|
disabled: this.disabled,
|
|
41
54
|
'home-tab': this.home,
|
|
42
55
|
'bottom-tab': this.bottom,
|
|
43
56
|
active: this.active,
|
|
44
|
-
} }, h("li", { class: "tab", title: this.title }, h("ix-icon", { name: this.tabIcon }), h("div", { class: "notification" }, this.notifications ? (h("div", { class: "pill" }, this.notifications)) : null), h("span", { class: "tab-text text-default" }, h("slot", null)))));
|
|
57
|
+
} }, extendedAttributes), h("li", { class: "tab", title: this.title }, h("ix-icon", { name: (_a = this.icon) !== null && _a !== void 0 ? _a : this.tabIcon }), h("div", { class: "notification" }, this.notifications ? (h("div", { class: "pill" }, this.notifications)) : null), h("span", { class: "tab-text text-default" }, h("slot", null)))));
|
|
45
58
|
}
|
|
46
59
|
get hostElement() { return this; }
|
|
47
60
|
static get style() { return menuItemCss; }
|
|
@@ -49,6 +62,7 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
49
62
|
"home": [4],
|
|
50
63
|
"bottom": [4],
|
|
51
64
|
"tabIcon": [1, "tab-icon"],
|
|
65
|
+
"icon": [1],
|
|
52
66
|
"notifications": [2],
|
|
53
67
|
"active": [4],
|
|
54
68
|
"disabled": [4],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"menu-item.js","mappings":";;;;AAAA,MAAM,WAAW,GAAG,
|
|
1
|
+
{"file":"menu-item.js","mappings":";;;;AAAA,MAAM,WAAW,GAAG,09FAA09F;;MCoBj+F,QAAQ;;;;;gBAIJ,KAAK;kBAOH,KAAK;mBAOJ,UAAU;;;;;;;EA4B5B,mBAAmB;IACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;GACzC;EAED,iBAAiB;IACf,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC;MACrC,IAA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apsulation=shadow","./src/components/menu-item/menu-item.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@import 'common-variables';\n@import 'mixins/hover';\n@import 'mixins/text-truncation';\n$menuItemHeight: 3rem;\n\n:host {\n position: relative;\n display: block;\n cursor: pointer;\n\n height: var(--ix-menu-item-height, $menuItemHeight);\n min-height: var(--ix-menu-item-height, $menuItemHeight);\n max-height: var(--ix-menu-item-height, $menuItemHeight);\n\n .tab {\n display: flex;\n position: relative;\n align-items: center;\n height: var(--ix-menu-item-height, $menuItemHeight);\n z-index: 500;\n padding-left: 0.875rem;\n\n @include ghost-hover-pressed;\n }\n\n i.glyph {\n color: var(--theme-nav-item-primary-icon--color);\n position: relative;\n }\n\n .tab:focus-visible {\n outline: none;\n }\n\n &:focus-visible {\n outline: none;\n }\n\n .tab:not(:last-child) {\n margin-bottom: $small-space;\n }\n\n .notification {\n display: inline-flex;\n position: absolute;\n top: 0.25rem;\n left: 1.75rem;\n\n .pill {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n height: 0.5rem;\n min-width: 1rem;\n position: relative;\n border-radius: 6.25rem;\n background-color: var(--theme-color-primary);\n border-radius: 6.25rem;\n font-size: 0.75rem;\n font-weight: bold;\n line-height: 1;\n font-family: Siemens Sans, Arial, sans-serif;\n color: var(--theme-color-primary--contrast);\n padding: $tiny-space;\n }\n }\n\n .tab-text {\n @include ellipsis;\n color: var(--theme-nav-item-primary--color);\n margin: 0 1.25rem;\n user-select: none;\n width: 100%;\n }\n}\n\n:host(.active),\n:host(.selected) {\n .tab {\n background-color: var(--theme-nav-item-primary--background--selected);\n }\n\n .tab::before {\n content: '';\n background-color: var(--theme-nav-item-primary--border-color--selected);\n height: var(--ix-menu-item-height, $menuItemHeight);\n width: 0.25rem;\n left: 0;\n position: absolute;\n }\n\n .tab > .glyph {\n color: var(--theme-nav-item-primary-icon--color--selected);\n }\n}\n\n:host(.disabled) {\n color: var(--theme-color-weak-text);\n pointer-events: none;\n cursor: default;\n\n .tab > .glyph {\n color: var(--theme-color-weak-text);\n }\n\n .tab-text {\n color: var(--theme-color-weak-text);\n }\n}\n\n:host(.bottom-tab),\n:host([slot='bottom']) {\n $bottom-height: 2.25rem;\n\n min-height: $bottom-height;\n height: $bottom-height;\n max-height: $bottom-height;\n\n .tab {\n height: $bottom-height;\n }\n\n .tab::before {\n height: $bottom-height;\n background-color: transparent;\n }\n\n &.active,\n &.selected {\n &:hover {\n background-color: var(--theme-nav-item-secondary--background--selected);\n }\n\n &:active {\n background-color: var(--theme-nav-item-secondary--background--selected);\n }\n }\n}\n\n:host(.bottom-tab.active),\n:host(.bottom-tab.selected),\n:host(.active[slot='bottom']),\n:host(.selected[slot='bottom']) {\n .tab {\n background-color: var(--theme-nav-item-secondary--background--selected);\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 { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\n\n/**\n * @slot menu-item-label Custom label\n */\n@Component({\n tag: 'ix-menu-item',\n styleUrl: 'menu-item.scss',\n shadow: true,\n})\nexport class MenuItem {\n /**\n * Move the Tab to a top position.\n */\n @Prop() home = false;\n\n /**\n * Caution: this is no longer working. Please use slot=\"bottom\" instead.\n *\n * Place tab on bottom\n */\n @Prop() bottom = false;\n\n /**\n * Icon name from @siemens/ix-icons\n *\n * @deprecated Use `icon` property. Will be removed in 3.0.0\n */\n @Prop() tabIcon = 'document';\n\n /**\n * Icon name from @siemens/ix-icons\n */\n @Prop() icon: string;\n\n /**\n * Show notification count on tab\n */\n @Prop() notifications: number;\n\n /**\n * State to display active\n */\n @Prop() active: boolean;\n\n /**\n * Disable tab and remove event handlers\n */\n @Prop() disabled: boolean;\n\n @Element() hostElement: HTMLIxMenuItemElement;\n\n @State() title: string;\n\n private observer: MutationObserver;\n\n componentWillRender() {\n this.title = this.hostElement.innerText;\n }\n\n connectedCallback() {\n this.observer = createMutationObserver(() => {\n this.title = this.hostElement.innerText;\n });\n\n this.observer.observe(this.hostElement, {\n subtree: true,\n childList: true,\n characterData: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n let extendedAttributes = {};\n if (this.home) {\n extendedAttributes = {\n slot: 'home',\n };\n }\n\n if (this.bottom) {\n extendedAttributes = {\n slot: 'bottom',\n };\n }\n return (\n <Host\n class={{\n disabled: this.disabled,\n 'home-tab': this.home,\n 'bottom-tab': this.bottom,\n active: this.active,\n }}\n {...extendedAttributes}\n >\n <li class=\"tab\" title={this.title}>\n <ix-icon name={this.icon ?? this.tabIcon}></ix-icon>\n <div class=\"notification\">\n {this.notifications ? (\n <div class=\"pill\">{this.notifications}</div>\n ) : null}\n </div>\n <span class=\"tab-text text-default\">\n <slot></slot>\n </span>\n </li>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { T as TypedEvent } from './typed-event.js';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* SPDX-FileCopyrightText: 2023 Siemens AG
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: MIT
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
13
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
14
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
+
};
|
|
17
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
18
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
19
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
+
};
|
|
22
|
+
var _MenuService_isPinned;
|
|
23
|
+
class MenuService {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.menuElement = null;
|
|
26
|
+
this.menuExpandChange = new TypedEvent();
|
|
27
|
+
_MenuService_isPinned.set(this, false);
|
|
28
|
+
}
|
|
29
|
+
register(menuElement) {
|
|
30
|
+
if (this.menuElement) {
|
|
31
|
+
console.warn('Menu already defined');
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.menuElement = menuElement;
|
|
35
|
+
this.menuElement.addEventListener('expandChange', (event) => {
|
|
36
|
+
this.menuExpandChange.emit(event.detail);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
setIsPinned(pinned) {
|
|
40
|
+
__classPrivateFieldSet(this, _MenuService_isPinned, pinned, "f");
|
|
41
|
+
}
|
|
42
|
+
async open() {
|
|
43
|
+
if (this.menuElement) {
|
|
44
|
+
this.menuElement.toggleMenu(true);
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
async close() {
|
|
50
|
+
if (this.menuElement) {
|
|
51
|
+
this.menuElement.toggleMenu(false);
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
async toggle() {
|
|
57
|
+
if (this.menuElement) {
|
|
58
|
+
this.menuElement.toggleMenu();
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
get nativeElement() {
|
|
64
|
+
return this.menuElement;
|
|
65
|
+
}
|
|
66
|
+
get expandChange() {
|
|
67
|
+
return this.menuExpandChange;
|
|
68
|
+
}
|
|
69
|
+
get isPinned() {
|
|
70
|
+
return __classPrivateFieldGet(this, _MenuService_isPinned, "f");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
_MenuService_isPinned = new WeakMap();
|
|
74
|
+
const menuController = new MenuService();
|
|
75
|
+
|
|
76
|
+
export { menuController as m };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=menu-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"menu-service.js","mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;AAWA,MAAM,WAAW;EAAjB;IACE,gBAAW,GAA6B,IAAI,CAAC;IAC7C,qBAAgB,GAAG,IAAI,UAAU,EAAW,CAAC;IAC7C,gCAAY,KAAK,EAAC;GA0DnB;EAxDC,QAAQ,CAAC,WAA8B;IACrC,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;MACrC,OAAO;KACR;IACD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IAC/B,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAC/B,cAAc,EACd,CAAC,KAA2B;MAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1C,CACF,CAAC;GACH;EAEM,WAAW,CAAC,MAAe;IAChC,uBAAA,IAAI,yBAAa,MAAM,MAAA,CAAC;GACzB;EAEM,MAAM,IAAI;IACf,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;MAClC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAEM,MAAM,KAAK;IAChB,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;MACnC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAEM,MAAM,MAAM;IACjB,IAAI,IAAI,CAAC,WAAW,EAAE;MACpB,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;MAC9B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;GACd;EAED,IAAI,aAAa;IACf,OAAO,IAAI,CAAC,WAAW,CAAC;GACzB;EAED,IAAI,YAAY;IACd,OAAO,IAAI,CAAC,gBAAgB,CAAC;GAC9B;EAED,IAAI,QAAQ;IACV,OAAO,uBAAA,IAAI,6BAAU,CAAC;GACvB;CACF;;MAEY,cAAc,GAAG,IAAI,WAAW;;;;","names":[],"sources":["./src/components/utils/menu-service/menu-service.ts"],"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\nimport { TypedEvent } from '../typed-event';\n\nclass MenuService {\n menuElement: HTMLIxMenuElement | null = null;\n menuExpandChange = new TypedEvent<boolean>();\n #isPinned = false;\n\n register(menuElement: HTMLIxMenuElement) {\n if (this.menuElement) {\n console.warn('Menu already defined');\n return;\n }\n this.menuElement = menuElement;\n this.menuElement.addEventListener(\n 'expandChange',\n (event: CustomEvent<boolean>) => {\n this.menuExpandChange.emit(event.detail);\n }\n );\n }\n\n public setIsPinned(pinned: boolean) {\n this.#isPinned = pinned;\n }\n\n public async open() {\n if (this.menuElement) {\n this.menuElement.toggleMenu(true);\n return true;\n }\n\n return false;\n }\n\n public async close() {\n if (this.menuElement) {\n this.menuElement.toggleMenu(false);\n return true;\n }\n\n return false;\n }\n\n public async toggle() {\n if (this.menuElement) {\n this.menuElement.toggleMenu();\n return true;\n }\n\n return false;\n }\n\n get nativeElement() {\n return this.menuElement;\n }\n\n get expandChange() {\n return this.menuExpandChange;\n }\n\n get isPinned() {\n return this.#isPinned;\n }\n}\n\nexport const menuController = new MenuService();\n"],"version":3}
|