@siemens/ix 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/burger-menu.js +2 -2
- package/components/burger-menu.js.map +1 -1
- package/components/dropdown.js +23 -15
- package/components/dropdown.js.map +1 -1
- package/components/ix-blind.js +7 -7
- package/components/ix-blind.js.map +1 -1
- package/components/ix-menu-category.js +19 -7
- package/components/ix-menu-category.js.map +1 -1
- package/components/ix-menu-settings-item.js +1 -1
- package/components/ix-menu.js +2 -2
- package/components/ix-menu.js.map +1 -1
- package/components/ix-message-bar.js +2 -2
- package/components/ix-message-bar.js.map +1 -1
- package/components/ix-modal-example.js +1 -1
- package/components/ix-modal-footer.js +1 -1
- package/components/ix-modal-loading.js +1 -1
- package/components/ix-modal.js +6 -3
- package/components/ix-modal.js.map +1 -1
- package/components/ix-pagination.js +2 -2
- package/components/ix-pane-layout.js +9 -1
- package/components/ix-pane-layout.js.map +1 -1
- package/components/ix-pane.js +51 -22
- package/components/ix-pane.js.map +1 -1
- package/components/ix-pill.js +4 -4
- package/components/ix-playground-internal.js +1 -1
- package/components/ix-split-button-item.js +1 -1
- package/components/ix-tile.js +4 -4
- package/components/ix-toast-container.js +1 -1
- package/components/ix-toggle-button.js +2 -2
- package/components/ix-toggle.js +2 -2
- package/components/ix-tree.js +1 -1
- package/components/ix-upload.js +3 -3
- package/components/ix-validation-tooltip.js +2 -2
- package/components/ix-workflow-step.js +3 -3
- package/components/ix-workflow-steps.js +1 -1
- package/components/menu-avatar-item.js +1 -1
- package/components/menu-avatar-item.js.map +1 -1
- package/components/menu-item.js +29 -6
- package/components/menu-item.js.map +1 -1
- package/components/modal-content.js +1 -1
- package/components/modal-header.js +1 -1
- package/components/modal.js +1 -1
- package/components/modal.js.map +1 -1
- package/components/row.js +1 -1
- package/components/select-item.js +1 -1
- package/components/select.js +6 -6
- package/components/spinner.js +1 -1
- package/components/tabs.js +2 -2
- package/components/toast.js +2 -2
- package/components/tooltip.js +17 -22
- package/components/tooltip.js.map +1 -1
- package/components/tree-item.js +4 -4
- package/dist/cjs/{base-button-86ed26da.js → base-button-2d5bec30.js} +2 -2
- package/dist/cjs/{base-button-86ed26da.js.map → base-button-2d5bec30.js.map} +1 -1
- package/dist/cjs/{base-icon-button-66351850.js → base-icon-button-b5fdb62e.js} +3 -3
- package/dist/cjs/{base-icon-button-66351850.js.map → base-icon-button-b5fdb62e.js.map} +1 -1
- package/dist/cjs/{index-ace435aa.js → index-7bcb694d.js} +35 -22
- package/dist/cjs/index-7bcb694d.js.map +1 -0
- package/dist/cjs/{index-5689c2a0.js → index-c4629a8d.js} +2 -2
- package/dist/cjs/{index-5689c2a0.js.map → index-c4629a8d.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-header.cjs.entry.js +3 -3
- package/dist/cjs/ix-application-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ix-application.cjs.entry.js +1 -1
- package/dist/cjs/ix-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-blind.cjs.entry.js +8 -8
- package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ix-burger-menu.cjs.entry.js +4 -4
- package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-button.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/ix-chip.cjs.entry.js +1 -1
- package/dist/cjs/ix-col_4.cjs.entry.js +3 -3
- package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-content.cjs.entry.js +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-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
- package/dist/cjs/ix-divider.cjs.entry.js +1 -1
- package/dist/cjs/ix-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
- package/dist/cjs/ix-dropdown.cjs.entry.js +22 -14
- package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-event-list.cjs.entry.js +1 -1
- package/dist/cjs/ix-expanding-search.cjs.entry.js +1 -1
- package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
- package/dist/cjs/ix-flip-tile.cjs.entry.js +1 -1
- package/dist/cjs/ix-form-field.cjs.entry.js +1 -1
- package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/ix-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-icon-button_2.cjs.entry.js +4 -4
- package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
- package/dist/cjs/ix-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 +1 -1
- package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ix-map-navigation.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about-news.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ix-menu-category.cjs.entry.js +20 -8
- package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-item.cjs.entry.js +25 -5
- package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
- package/dist/cjs/ix-menu.cjs.entry.js +5 -5
- package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
- package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-example.cjs.entry.js +3 -3
- package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
- package/dist/cjs/ix-modal.cjs.entry.js +8 -5
- package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
- package/dist/cjs/ix-pane-layout.cjs.entry.js +10 -2
- package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pane.cjs.entry.js +52 -23
- package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-pill.cjs.entry.js +5 -5
- package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
- package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
- package/dist/cjs/ix-select.cjs.entry.js +8 -8
- package/dist/cjs/ix-slider.cjs.entry.js +2 -2
- package/dist/cjs/ix-split-button-item.cjs.entry.js +2 -2
- package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ix-tab-item_2.cjs.entry.js +3 -3
- package/dist/cjs/ix-tile.cjs.entry.js +5 -5
- package/dist/cjs/ix-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/ix-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/ix-toast.cjs.entry.js +3 -3
- package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ix-tooltip.cjs.entry.js +19 -24
- package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
- package/dist/cjs/ix-tree.cjs.entry.js +2 -2
- package/dist/cjs/ix-typography.cjs.entry.js +1 -1
- package/dist/cjs/ix-upload.cjs.entry.js +4 -4
- package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
- package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
- package/dist/cjs/{listener-ad035304.js → listener-c0d191a7.js} +2 -2
- package/dist/cjs/{listener-ad035304.js.map → listener-c0d191a7.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{menu-tabs-fc-78915307.js → menu-tabs-fc-b6a9af97.js} +2 -2
- package/dist/cjs/{menu-tabs-fc-78915307.js.map → menu-tabs-fc-b6a9af97.js.map} +1 -1
- package/dist/cjs/{modal-bf597938.js → modal-828cb80a.js} +2 -2
- package/dist/cjs/modal-828cb80a.js.map +1 -0
- package/dist/cjs/siemens-ix.cjs.js +5 -5
- package/dist/cjs/siemens-ix.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/blind/blind.css +0 -1
- package/dist/collection/components/blind/blind.js +6 -6
- package/dist/collection/components/blind/blind.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown-controller.js +13 -6
- package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
- package/dist/collection/components/dropdown/dropdown.js +8 -7
- package/dist/collection/components/dropdown/dropdown.js.map +1 -1
- package/dist/collection/components/dropdown/test/dropdown-controller.spec.js +21 -0
- package/dist/collection/components/dropdown/test/dropdown-controller.spec.js.map +1 -0
- package/dist/collection/components/menu/burger-menu.css +0 -3
- package/dist/collection/components/menu/burger-menu.js +1 -1
- package/dist/collection/components/menu/burger-menu.js.map +1 -1
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu/menu.js.map +1 -1
- package/dist/collection/components/menu/test/menu.ct.js +11 -0
- package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
- package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +3 -1
- package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js +47 -0
- package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js.map +1 -0
- package/dist/collection/components/menu-category/menu-category.css +22 -3
- package/dist/collection/components/menu-category/menu-category.js +18 -6
- package/dist/collection/components/menu-category/menu-category.js.map +1 -1
- package/dist/collection/components/menu-category/test/menu-category.ct.js +50 -2
- package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -1
- package/dist/collection/components/menu-item/menu-item.css +18 -1
- package/dist/collection/components/menu-item/menu-item.js +31 -7
- package/dist/collection/components/menu-item/menu-item.js.map +1 -1
- package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
- package/dist/collection/components/message-bar/message-bar.css +2 -2
- package/dist/collection/components/message-bar/message-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +6 -3
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/modal/test/modal.ct.js +76 -0
- package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
- package/dist/collection/components/modal-content/modal-content.js +1 -1
- package/dist/collection/components/modal-footer/modal-footer.js +1 -1
- package/dist/collection/components/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal-loading/modal-loading.js +1 -1
- package/dist/collection/components/pagination/pagination.js +2 -2
- package/dist/collection/components/pane/pane.css +7 -9
- package/dist/collection/components/pane/pane.js +50 -21
- package/dist/collection/components/pane/pane.js.map +1 -1
- package/dist/collection/components/pane-layout/pane-layout.js +9 -1
- package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
- package/dist/collection/components/pane-layout/test/pane-layout.ct.js +2 -0
- package/dist/collection/components/pane-layout/test/pane-layout.ct.js.map +1 -1
- package/dist/collection/components/pill/pill.js +4 -4
- package/dist/collection/components/playground/example-modal.js +1 -1
- package/dist/collection/components/playground/playground.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/select/select.js +6 -6
- package/dist/collection/components/select-item/select-item.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button-item/split-button-item.js +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tile/tile.js +4 -4
- package/dist/collection/components/toast/toast-container.js +1 -1
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +2 -2
- package/dist/collection/components/tooltip/test/tooltip.ct.js +0 -18
- package/dist/collection/components/tooltip/test/tooltip.ct.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +17 -22
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +4 -4
- package/dist/collection/components/upload/upload.js +3 -3
- package/dist/collection/components/utils/modal/modal.js +1 -1
- package/dist/collection/components/utils/modal/modal.js.map +1 -1
- package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
- package/dist/collection/components/workflow-step/workflow-step.js +3 -3
- package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
- package/dist/collection/tests/blind/blind.e2e.js +4 -0
- package/dist/collection/tests/blind/blind.e2e.js.map +1 -1
- package/dist/collection/tests/menu/menu.e2e.js +63 -38
- package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
- package/dist/collection/tests/panes/panes.e2e.js +6 -0
- package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
- package/dist/esm/{base-button-355ac631.js → base-button-c4987907.js} +2 -2
- package/dist/esm/{base-button-355ac631.js.map → base-button-c4987907.js.map} +1 -1
- package/dist/esm/{base-icon-button-030bd50c.js → base-icon-button-caf73c1d.js} +3 -3
- package/dist/esm/{base-icon-button-030bd50c.js.map → base-icon-button-caf73c1d.js.map} +1 -1
- package/dist/esm/{index-38dea61d.js → index-0d053ada.js} +35 -22
- package/dist/esm/index-0d053ada.js.map +1 -0
- package/dist/esm/{index-ff9bfca4.js → index-76b9c8de.js} +2 -2
- package/dist/esm/{index-ff9bfca4.js.map → index-76b9c8de.js.map} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/ix-action-card.entry.js +1 -1
- package/dist/esm/ix-application-header.entry.js +3 -3
- package/dist/esm/ix-application-sidebar.entry.js +1 -1
- package/dist/esm/ix-application-switch-modal.entry.js +2 -2
- package/dist/esm/ix-application.entry.js +1 -1
- package/dist/esm/ix-avatar_2.entry.js +3 -3
- package/dist/esm/ix-avatar_2.entry.js.map +1 -1
- package/dist/esm/ix-basic-navigation.entry.js +1 -1
- package/dist/esm/ix-blind.entry.js +8 -8
- package/dist/esm/ix-blind.entry.js.map +1 -1
- package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ix-breadcrumb.entry.js +1 -1
- package/dist/esm/ix-burger-menu.entry.js +4 -4
- package/dist/esm/ix-burger-menu.entry.js.map +1 -1
- package/dist/esm/ix-button.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/ix-category-filter.entry.js +2 -2
- package/dist/esm/ix-chip.entry.js +1 -1
- package/dist/esm/ix-col_4.entry.js +3 -3
- package/dist/esm/ix-content-header.entry.js +1 -1
- package/dist/esm/ix-content.entry.js +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-dropdown.entry.js +1 -1
- package/dist/esm/ix-date-time-card.entry.js +1 -1
- package/dist/esm/ix-datetime-picker.entry.js +1 -1
- package/dist/esm/ix-divider.entry.js +1 -1
- package/dist/esm/ix-drawer.entry.js +1 -1
- package/dist/esm/ix-dropdown-button.entry.js +1 -1
- package/dist/esm/ix-dropdown-header.entry.js +1 -1
- package/dist/esm/ix-dropdown-item.entry.js +1 -1
- package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
- package/dist/esm/ix-dropdown.entry.js +22 -14
- package/dist/esm/ix-dropdown.entry.js.map +1 -1
- package/dist/esm/ix-empty-state.entry.js +1 -1
- package/dist/esm/ix-event-list-item.entry.js +1 -1
- package/dist/esm/ix-event-list.entry.js +1 -1
- package/dist/esm/ix-expanding-search.entry.js +1 -1
- package/dist/esm/ix-filter-chip_2.entry.js +2 -2
- package/dist/esm/ix-flip-tile-content.entry.js +1 -1
- package/dist/esm/ix-flip-tile.entry.js +1 -1
- package/dist/esm/ix-form-field.entry.js +1 -1
- package/dist/esm/ix-group-context-menu_2.entry.js +1 -1
- package/dist/esm/ix-group.entry.js +1 -1
- package/dist/esm/ix-icon-button_2.entry.js +4 -4
- package/dist/esm/ix-icon-toggle-button.entry.js +3 -3
- package/dist/esm/ix-input-group.entry.js +1 -1
- package/dist/esm/ix-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 +1 -1
- package/dist/esm/ix-map-navigation-overlay.entry.js +1 -1
- package/dist/esm/ix-map-navigation.entry.js +1 -1
- package/dist/esm/ix-menu-about-item.entry.js +1 -1
- package/dist/esm/ix-menu-about-news.entry.js +1 -1
- package/dist/esm/ix-menu-about.entry.js +2 -2
- package/dist/esm/ix-menu-avatar.entry.js +1 -1
- package/dist/esm/ix-menu-category.entry.js +20 -8
- package/dist/esm/ix-menu-category.entry.js.map +1 -1
- package/dist/esm/ix-menu-item.entry.js +25 -5
- package/dist/esm/ix-menu-item.entry.js.map +1 -1
- package/dist/esm/ix-menu-settings-item.entry.js +2 -2
- package/dist/esm/ix-menu-settings.entry.js +2 -2
- package/dist/esm/ix-menu.entry.js +5 -5
- package/dist/esm/ix-menu.entry.js.map +1 -1
- package/dist/esm/ix-message-bar.entry.js +3 -3
- package/dist/esm/ix-message-bar.entry.js.map +1 -1
- package/dist/esm/ix-modal-content_2.entry.js +3 -3
- package/dist/esm/ix-modal-example.entry.js +3 -3
- package/dist/esm/ix-modal-footer.entry.js +2 -2
- package/dist/esm/ix-modal-loading.entry.js +2 -2
- package/dist/esm/ix-modal.entry.js +8 -5
- package/dist/esm/ix-modal.entry.js.map +1 -1
- package/dist/esm/ix-pagination.entry.js +4 -4
- package/dist/esm/ix-pane-layout.entry.js +10 -2
- package/dist/esm/ix-pane-layout.entry.js.map +1 -1
- package/dist/esm/ix-pane.entry.js +52 -23
- package/dist/esm/ix-pane.entry.js.map +1 -1
- package/dist/esm/ix-pill.entry.js +5 -5
- package/dist/esm/ix-playground-internal.entry.js +2 -2
- package/dist/esm/ix-push-card.entry.js +1 -1
- package/dist/esm/ix-select.entry.js +8 -8
- package/dist/esm/ix-slider.entry.js +2 -2
- package/dist/esm/ix-split-button-item.entry.js +2 -2
- package/dist/esm/ix-split-button.entry.js +1 -1
- package/dist/esm/ix-tab-item_2.entry.js +3 -3
- package/dist/esm/ix-tile.entry.js +5 -5
- package/dist/esm/ix-time-picker.entry.js +1 -1
- package/dist/esm/ix-toast-container.entry.js +2 -2
- package/dist/esm/ix-toast.entry.js +3 -3
- package/dist/esm/ix-toggle-button.entry.js +4 -4
- package/dist/esm/ix-toggle.entry.js +3 -3
- package/dist/esm/ix-tooltip.entry.js +19 -24
- package/dist/esm/ix-tooltip.entry.js.map +1 -1
- package/dist/esm/ix-tree-item.entry.js +5 -5
- package/dist/esm/ix-tree.entry.js +2 -2
- package/dist/esm/ix-typography.entry.js +1 -1
- package/dist/esm/ix-upload.entry.js +4 -4
- package/dist/esm/ix-validation-tooltip.entry.js +3 -3
- package/dist/esm/ix-workflow-step.entry.js +4 -4
- package/dist/esm/ix-workflow-steps.entry.js +2 -2
- package/dist/esm/{listener-23c93aa7.js → listener-cf8cb0b2.js} +2 -2
- package/dist/esm/{listener-23c93aa7.js.map → listener-cf8cb0b2.js.map} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{menu-tabs-fc-efc49c04.js → menu-tabs-fc-7b7acc8b.js} +2 -2
- package/dist/esm/{menu-tabs-fc-efc49c04.js.map → menu-tabs-fc-7b7acc8b.js.map} +1 -1
- package/dist/esm/{modal-8bc5477b.js → modal-54740f80.js} +2 -2
- package/dist/esm/modal-54740f80.js.map +1 -0
- package/dist/esm/siemens-ix.js +6 -6
- package/dist/esm/siemens-ix.js.map +1 -1
- package/dist/siemens-ix/index.esm.js +1 -1
- package/dist/siemens-ix/{p-ad01ee70.js → p-004cade9.js} +2 -2
- package/dist/siemens-ix/{p-6e0a8877.entry.js → p-050f482a.entry.js} +2 -2
- package/dist/siemens-ix/{p-31748d33.entry.js → p-064a1a47.entry.js} +2 -2
- package/dist/siemens-ix/{p-7c2c24ff.entry.js → p-06b783a7.entry.js} +2 -2
- package/dist/siemens-ix/p-0ca3528f.js +2 -0
- package/dist/siemens-ix/{p-90f69373.entry.js → p-0e0e5f67.entry.js} +2 -2
- package/dist/siemens-ix/{p-0fc4bda8.entry.js → p-0e51828d.entry.js} +2 -2
- package/dist/siemens-ix/p-0e51828d.entry.js.map +1 -0
- package/dist/siemens-ix/{p-26ed3dec.entry.js → p-14d2576e.entry.js} +2 -2
- package/dist/siemens-ix/{p-98d1e861.entry.js → p-196d2cef.entry.js} +2 -2
- package/dist/siemens-ix/p-1aa9c005.entry.js +2 -0
- package/dist/siemens-ix/p-1aa9c005.entry.js.map +1 -0
- package/dist/siemens-ix/p-1e5e042b.entry.js +2 -0
- package/dist/siemens-ix/p-1e5e042b.entry.js.map +1 -0
- package/dist/siemens-ix/p-232bee46.entry.js +2 -0
- package/dist/siemens-ix/{p-6605180d.entry.js → p-2462fc76.entry.js} +2 -2
- package/dist/siemens-ix/{p-9808e98a.entry.js → p-26355e12.entry.js} +2 -2
- package/dist/siemens-ix/{p-247099fc.entry.js → p-27118d3b.entry.js} +2 -2
- package/dist/siemens-ix/{p-5f9bb7c9.entry.js → p-2cdd0028.entry.js} +2 -2
- package/dist/siemens-ix/{p-aeb745b9.entry.js → p-2deed888.entry.js} +2 -2
- package/dist/siemens-ix/{p-bf2ac29f.entry.js → p-31bfd5ff.entry.js} +2 -2
- package/dist/siemens-ix/p-3214478e.entry.js +2 -0
- package/dist/siemens-ix/p-3214478e.entry.js.map +1 -0
- package/dist/siemens-ix/p-34ccbe57.entry.js +2 -0
- package/dist/siemens-ix/{p-40fc3093.entry.js.map → p-34ccbe57.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-89eb95bd.entry.js → p-353e2dd5.entry.js} +2 -2
- package/dist/siemens-ix/{p-9f03e475.entry.js → p-37d299a4.entry.js} +2 -2
- package/dist/siemens-ix/{p-92768144.entry.js → p-3bc095f3.entry.js} +2 -2
- package/dist/siemens-ix/{p-95642364.entry.js → p-3c0425f3.entry.js} +2 -2
- package/dist/siemens-ix/p-3c6e6130.entry.js +2 -0
- package/dist/siemens-ix/{p-69c97e5d.entry.js → p-3ead4fed.entry.js} +2 -2
- package/dist/siemens-ix/{p-a76b2311.entry.js → p-40335e7c.entry.js} +2 -2
- package/dist/siemens-ix/{p-3ef64d06.entry.js → p-42f7289e.entry.js} +2 -2
- package/dist/siemens-ix/{p-96e50b3a.entry.js → p-47919d43.entry.js} +2 -2
- package/dist/siemens-ix/{p-e0a04248.entry.js → p-4bb08459.entry.js} +2 -2
- package/dist/siemens-ix/{p-85a34aff.entry.js → p-4c29feb5.entry.js} +2 -2
- package/dist/siemens-ix/{p-b10cfca0.entry.js → p-4dad31fa.entry.js} +2 -2
- package/dist/siemens-ix/{p-cee05d4a.entry.js → p-50f12507.entry.js} +2 -2
- package/dist/siemens-ix/{p-cf14d460.entry.js → p-535ee46b.entry.js} +2 -2
- package/dist/siemens-ix/{p-ce88799e.entry.js → p-572455df.entry.js} +2 -2
- package/dist/siemens-ix/{p-f0be2cd7.entry.js → p-58f51cce.entry.js} +2 -2
- package/dist/siemens-ix/{p-cc3ea7bf.entry.js → p-5ca2ef74.entry.js} +2 -2
- package/dist/siemens-ix/{p-5df4d3f6.entry.js → p-5d3975c8.entry.js} +2 -2
- package/dist/siemens-ix/{p-b9bc0b4c.entry.js → p-5dd97d39.entry.js} +2 -2
- package/dist/siemens-ix/{p-b79b8967.entry.js → p-6a8d50c3.entry.js} +2 -2
- package/dist/siemens-ix/{p-b79b8967.entry.js.map → p-6a8d50c3.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-340a7dcf.entry.js → p-6cd2b4d4.entry.js} +2 -2
- package/dist/siemens-ix/{p-06ac510a.js → p-6e5beede.js} +2 -2
- package/dist/siemens-ix/p-6e6efb4c.js +2 -0
- package/dist/siemens-ix/{p-2679a484.js.map → p-6e6efb4c.js.map} +1 -1
- package/dist/siemens-ix/{p-2a48e3c2.entry.js → p-73d5ea4a.entry.js} +2 -2
- package/dist/siemens-ix/{p-ba379675.entry.js → p-75050430.entry.js} +2 -2
- package/dist/siemens-ix/{p-0ff62c64.entry.js → p-75943110.entry.js} +2 -2
- package/dist/siemens-ix/p-75943110.entry.js.map +1 -0
- package/dist/siemens-ix/{p-3c043135.entry.js → p-782b33d3.entry.js} +2 -2
- package/dist/siemens-ix/p-78e332f4.entry.js +2 -0
- package/dist/siemens-ix/{p-830cada0.entry.js → p-81b570f5.entry.js} +2 -2
- package/dist/siemens-ix/p-8493da96.entry.js +2 -0
- package/dist/siemens-ix/{p-350f0c29.entry.js.map → p-8493da96.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-da641f25.entry.js → p-8b1add8f.entry.js} +2 -2
- package/dist/siemens-ix/{p-44ff88dd.entry.js → p-8b51637c.entry.js} +2 -2
- package/dist/siemens-ix/{p-5ebe2601.entry.js → p-8be3bc6d.entry.js} +2 -2
- package/dist/siemens-ix/{p-73064959.entry.js → p-8c01fea2.entry.js} +2 -2
- package/dist/siemens-ix/p-8efe88e8.entry.js +2 -0
- package/dist/siemens-ix/p-8efe88e8.entry.js.map +1 -0
- package/dist/siemens-ix/{p-48268ca1.entry.js → p-92fc6ba1.entry.js} +2 -2
- package/dist/siemens-ix/p-975cb736.entry.js +2 -0
- package/dist/siemens-ix/{p-c7311667.entry.js → p-988d23ac.entry.js} +2 -2
- package/dist/siemens-ix/{p-91331a62.entry.js → p-9ceabb5f.entry.js} +2 -2
- package/dist/siemens-ix/{p-c56c1f11.entry.js → p-a3431d63.entry.js} +2 -2
- package/dist/siemens-ix/{p-3763fb0e.entry.js → p-a643ad05.entry.js} +2 -2
- package/dist/siemens-ix/{p-94e82b85.entry.js → p-ab282d03.entry.js} +2 -2
- package/dist/siemens-ix/{p-cb61d053.entry.js → p-b4e3a4fd.entry.js} +2 -2
- package/dist/siemens-ix/p-b4e3a4fd.entry.js.map +1 -0
- package/dist/siemens-ix/{p-64ee9c6b.entry.js → p-b62e2edf.entry.js} +2 -2
- package/dist/siemens-ix/p-b6c75dc3.entry.js +2 -0
- package/dist/siemens-ix/p-b6c75dc3.entry.js.map +1 -0
- package/dist/siemens-ix/{p-db227cd4.entry.js → p-c0bf9382.entry.js} +2 -2
- package/dist/siemens-ix/{p-8482064b.entry.js → p-ca53ecd8.entry.js} +2 -2
- package/dist/siemens-ix/{p-596f9406.entry.js → p-ca8407f5.entry.js} +2 -2
- package/dist/siemens-ix/p-cfc7a9ac.entry.js +2 -0
- package/dist/siemens-ix/p-cfc7a9ac.entry.js.map +1 -0
- package/dist/siemens-ix/{p-0f679fd8.entry.js → p-d277e7e2.entry.js} +2 -2
- package/dist/siemens-ix/{p-6504d262.entry.js → p-d445b333.entry.js} +2 -2
- package/dist/siemens-ix/{p-488055c0.entry.js → p-d464b60e.entry.js} +2 -2
- package/dist/siemens-ix/{p-731a81c6.entry.js → p-d59b3f31.entry.js} +2 -2
- package/dist/siemens-ix/{p-7d06e487.entry.js → p-d6e7e5da.entry.js} +2 -2
- package/dist/siemens-ix/p-da9f8709.entry.js +2 -0
- package/dist/siemens-ix/{p-d42d4c2e.entry.js → p-db47293b.entry.js} +2 -2
- package/dist/siemens-ix/{p-74472b15.entry.js → p-ddf93bce.entry.js} +2 -2
- package/dist/siemens-ix/{p-a4c02371.entry.js → p-e1b790d3.entry.js} +2 -2
- package/dist/siemens-ix/{p-6ebf07ba.entry.js → p-e1d7c7fa.entry.js} +2 -2
- package/dist/siemens-ix/{p-0d5ae5ed.entry.js → p-e23cd82e.entry.js} +2 -2
- package/dist/siemens-ix/{p-0d5ae5ed.entry.js.map → p-e23cd82e.entry.js.map} +1 -1
- package/dist/siemens-ix/{p-a5496783.entry.js → p-e345d0d2.entry.js} +2 -2
- package/dist/siemens-ix/p-ea80cb61.js +3 -0
- package/dist/siemens-ix/p-ea80cb61.js.map +1 -0
- package/dist/siemens-ix/{p-9c6df184.entry.js → p-eb6ea42d.entry.js} +2 -2
- package/dist/siemens-ix/p-ef38f3a0.js +2 -0
- package/dist/siemens-ix/{p-657fc30d.js → p-f0e7e035.js} +2 -2
- package/dist/siemens-ix/{p-7f66d83d.entry.js → p-f10824af.entry.js} +2 -2
- package/dist/siemens-ix/{p-0fa87626.entry.js → p-f1635e06.entry.js} +2 -2
- package/dist/siemens-ix/{p-1582a3c6.entry.js → p-f1e94d25.entry.js} +2 -2
- package/dist/siemens-ix/{p-2634d651.entry.js → p-f2ee640a.entry.js} +2 -2
- package/dist/siemens-ix/{p-3b3caf9a.entry.js → p-f56686c9.entry.js} +2 -2
- package/dist/siemens-ix/{p-8f6e4b39.entry.js → p-f5a108d5.entry.js} +2 -2
- package/dist/siemens-ix/{p-794bfde0.entry.js → p-f5af5a9f.entry.js} +2 -2
- package/dist/siemens-ix/{p-1f67076b.entry.js → p-f6691728.entry.js} +2 -2
- package/dist/siemens-ix/{p-757b8af2.entry.js → p-f8169051.entry.js} +2 -2
- package/dist/siemens-ix/{p-97cb6155.entry.js → p-fc5fd951.entry.js} +2 -2
- package/dist/siemens-ix/{p-9a19d0ba.entry.js → p-fcbe42c4.entry.js} +2 -2
- package/dist/siemens-ix/{p-52a89d75.entry.js → p-fdccc402.entry.js} +2 -2
- package/dist/siemens-ix/p-fe760d17.entry.js +2 -0
- package/dist/siemens-ix/siemens-ix.esm.js +1 -1
- package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
- package/dist/types/components/dropdown/dropdown-controller.d.ts +1 -1
- package/dist/types/components/menu-avatar-item/test/menu-avatar-item.ct.d.ts +1 -0
- package/dist/types/components/menu-category/menu-category.d.ts +2 -0
- package/dist/types/components/menu-item/menu-item.d.ts +2 -0
- package/dist/types/components/pane/pane.d.ts +4 -0
- package/dist/types/components/pane-layout/pane-layout.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -3
- package/package.json +2 -2
- package/scss/theme/classic-dark/_borderRadius.scss +1 -1
- package/scss/theme/classic-dark/_borderWidth.scss +1 -1
- package/scss/theme/classic-light/_borderRadius.scss +1 -1
- package/scss/theme/classic-light/_borderWidth.scss +1 -1
- package/dist/cjs/index-ace435aa.js.map +0 -1
- package/dist/cjs/modal-bf597938.js.map +0 -1
- package/dist/esm/index-38dea61d.js.map +0 -1
- package/dist/esm/modal-8bc5477b.js.map +0 -1
- package/dist/siemens-ix/p-03e4b68a.entry.js +0 -2
- package/dist/siemens-ix/p-0fc4bda8.entry.js.map +0 -1
- package/dist/siemens-ix/p-0ff62c64.entry.js.map +0 -1
- package/dist/siemens-ix/p-2679a484.js +0 -2
- package/dist/siemens-ix/p-3082ad93.entry.js +0 -2
- package/dist/siemens-ix/p-3082ad93.entry.js.map +0 -1
- package/dist/siemens-ix/p-350f0c29.entry.js +0 -2
- package/dist/siemens-ix/p-3c03baf3.entry.js +0 -2
- package/dist/siemens-ix/p-3c03baf3.entry.js.map +0 -1
- package/dist/siemens-ix/p-40fc3093.entry.js +0 -2
- package/dist/siemens-ix/p-5db56877.entry.js +0 -2
- package/dist/siemens-ix/p-5db56877.entry.js.map +0 -1
- package/dist/siemens-ix/p-7b9c848c.entry.js +0 -2
- package/dist/siemens-ix/p-8b1e1c0b.entry.js +0 -2
- package/dist/siemens-ix/p-8b7c8f71.entry.js +0 -2
- package/dist/siemens-ix/p-97b19267.js +0 -2
- package/dist/siemens-ix/p-98b3368c.js +0 -2
- package/dist/siemens-ix/p-a2bb9a69.entry.js +0 -2
- package/dist/siemens-ix/p-a2bb9a69.entry.js.map +0 -1
- package/dist/siemens-ix/p-a9cf5eb2.js +0 -3
- package/dist/siemens-ix/p-a9cf5eb2.js.map +0 -1
- package/dist/siemens-ix/p-abc9c138.entry.js +0 -2
- package/dist/siemens-ix/p-abc9c138.entry.js.map +0 -1
- package/dist/siemens-ix/p-b4ca36ac.entry.js +0 -2
- package/dist/siemens-ix/p-c5965787.entry.js +0 -2
- package/dist/siemens-ix/p-c5965787.entry.js.map +0 -1
- package/dist/siemens-ix/p-c65dca4b.entry.js +0 -2
- package/dist/siemens-ix/p-cb61d053.entry.js.map +0 -1
- /package/dist/siemens-ix/{p-ad01ee70.js.map → p-004cade9.js.map} +0 -0
- /package/dist/siemens-ix/{p-6e0a8877.entry.js.map → p-050f482a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-31748d33.entry.js.map → p-064a1a47.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7c2c24ff.entry.js.map → p-06b783a7.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-98b3368c.js.map → p-0ca3528f.js.map} +0 -0
- /package/dist/siemens-ix/{p-90f69373.entry.js.map → p-0e0e5f67.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-26ed3dec.entry.js.map → p-14d2576e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-98d1e861.entry.js.map → p-196d2cef.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b4ca36ac.entry.js.map → p-232bee46.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6605180d.entry.js.map → p-2462fc76.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9808e98a.entry.js.map → p-26355e12.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-247099fc.entry.js.map → p-27118d3b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5f9bb7c9.entry.js.map → p-2cdd0028.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-aeb745b9.entry.js.map → p-2deed888.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-bf2ac29f.entry.js.map → p-31bfd5ff.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-89eb95bd.entry.js.map → p-353e2dd5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9f03e475.entry.js.map → p-37d299a4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-92768144.entry.js.map → p-3bc095f3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-95642364.entry.js.map → p-3c0425f3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7b9c848c.entry.js.map → p-3c6e6130.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-69c97e5d.entry.js.map → p-3ead4fed.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a76b2311.entry.js.map → p-40335e7c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3ef64d06.entry.js.map → p-42f7289e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-96e50b3a.entry.js.map → p-47919d43.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-e0a04248.entry.js.map → p-4bb08459.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-85a34aff.entry.js.map → p-4c29feb5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b10cfca0.entry.js.map → p-4dad31fa.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cee05d4a.entry.js.map → p-50f12507.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cf14d460.entry.js.map → p-535ee46b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ce88799e.entry.js.map → p-572455df.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-f0be2cd7.entry.js.map → p-58f51cce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-cc3ea7bf.entry.js.map → p-5ca2ef74.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5df4d3f6.entry.js.map → p-5d3975c8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-b9bc0b4c.entry.js.map → p-5dd97d39.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-340a7dcf.entry.js.map → p-6cd2b4d4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-06ac510a.js.map → p-6e5beede.js.map} +0 -0
- /package/dist/siemens-ix/{p-2a48e3c2.entry.js.map → p-73d5ea4a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-ba379675.entry.js.map → p-75050430.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3c043135.entry.js.map → p-782b33d3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8b7c8f71.entry.js.map → p-78e332f4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-830cada0.entry.js.map → p-81b570f5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-da641f25.entry.js.map → p-8b1add8f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-44ff88dd.entry.js.map → p-8b51637c.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-5ebe2601.entry.js.map → p-8be3bc6d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-73064959.entry.js.map → p-8c01fea2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-48268ca1.entry.js.map → p-92fc6ba1.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c65dca4b.entry.js.map → p-975cb736.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c7311667.entry.js.map → p-988d23ac.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-91331a62.entry.js.map → p-9ceabb5f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-c56c1f11.entry.js.map → p-a3431d63.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3763fb0e.entry.js.map → p-a643ad05.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-94e82b85.entry.js.map → p-ab282d03.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-64ee9c6b.entry.js.map → p-b62e2edf.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-db227cd4.entry.js.map → p-c0bf9382.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8482064b.entry.js.map → p-ca53ecd8.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-596f9406.entry.js.map → p-ca8407f5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0f679fd8.entry.js.map → p-d277e7e2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6504d262.entry.js.map → p-d445b333.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-488055c0.entry.js.map → p-d464b60e.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-731a81c6.entry.js.map → p-d59b3f31.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-7d06e487.entry.js.map → p-d6e7e5da.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8b1e1c0b.entry.js.map → p-da9f8709.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-d42d4c2e.entry.js.map → p-db47293b.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-74472b15.entry.js.map → p-ddf93bce.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a4c02371.entry.js.map → p-e1b790d3.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-6ebf07ba.entry.js.map → p-e1d7c7fa.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-a5496783.entry.js.map → p-e345d0d2.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9c6df184.entry.js.map → p-eb6ea42d.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-97b19267.js.map → p-ef38f3a0.js.map} +0 -0
- /package/dist/siemens-ix/{p-657fc30d.js.map → p-f0e7e035.js.map} +0 -0
- /package/dist/siemens-ix/{p-7f66d83d.entry.js.map → p-f10824af.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-0fa87626.entry.js.map → p-f1635e06.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1582a3c6.entry.js.map → p-f1e94d25.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-2634d651.entry.js.map → p-f2ee640a.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-3b3caf9a.entry.js.map → p-f56686c9.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-8f6e4b39.entry.js.map → p-f5a108d5.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-794bfde0.entry.js.map → p-f5af5a9f.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-1f67076b.entry.js.map → p-f6691728.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-757b8af2.entry.js.map → p-f8169051.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-97cb6155.entry.js.map → p-fc5fd951.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-9a19d0ba.entry.js.map → p-fcbe42c4.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-52a89d75.entry.js.map → p-fdccc402.entry.js.map} +0 -0
- /package/dist/siemens-ix/{p-03e4b68a.entry.js.map → p-fe760d17.entry.js.map} +0 -0
package/components/ix-tile.js
CHANGED
|
@@ -19,17 +19,17 @@ const Tile = /*@__PURE__*/ proxyCustomElement(class Tile extends HTMLElement {
|
|
|
19
19
|
this.hasFooterSlot = !!this.hostElement.querySelector('[slot="footer"]');
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '65e1277cf4b5ccc449dabc26c7216b13dd2c2aa3', class: {
|
|
23
23
|
'tile-small': this.size === 'small',
|
|
24
24
|
'tile-medium': this.size === 'medium',
|
|
25
25
|
'tile-big': this.size === 'big',
|
|
26
|
-
} }, h("div", { key: '
|
|
26
|
+
} }, h("div", { key: '69f1d82f28fb8d345bbaae2624114298c3c1c879', class: {
|
|
27
27
|
'tile-header': true,
|
|
28
28
|
'has-content': this.hasHeaderSlot,
|
|
29
|
-
} }, h("slot", { key: '
|
|
29
|
+
} }, h("slot", { key: '9f0cd992a9ea408da4cc7756f8d9ce0c61a0fd8c', name: "header", onSlotchange: () => this.handleHeaderSlotChange() })), h("div", { key: 'da541a2a3ba69eeba1a4421915f75d700050c5f8', class: "tile-subheader" }, h("slot", { key: 'a498169a21e53e3abf332461e2b1ef8eaad4910b', name: "subheader" })), h("div", { key: '4caacfbc6cad0e7432f8c53be2f2785c4d76cc5d', class: "tile-content" }, h("slot", { key: '59e81a46d10307f93e1bb50735a9b05f106d7dd6' })), h("div", { key: '1455303a22aff7c91392946de8f3b87d0d401b45', class: {
|
|
30
30
|
'tile-footer': true,
|
|
31
31
|
'has-content': this.hasFooterSlot,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: 'e498be21e2041b2689ebe5689e846668a556bb1e', name: "footer", onSlotchange: () => this.handleFooterSlotChange() }))));
|
|
33
33
|
}
|
|
34
34
|
get hostElement() { return this; }
|
|
35
35
|
static get style() { return IxTileStyle0; }
|
|
@@ -79,7 +79,7 @@ const ToastContainer = /*@__PURE__*/ proxyCustomElement(class ToastContainer ext
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '60af7515a7ed4f464d8d7b3e38ab5552c27f3af6', class: {
|
|
83
83
|
'toast-container--bottom-right': this.position === 'bottom-right',
|
|
84
84
|
'toast-container--top-right': this.position === 'top-right',
|
|
85
85
|
} }));
|
|
@@ -60,9 +60,9 @@ const ToggleButton = /*@__PURE__*/ proxyCustomElement(class ToggleButton extends
|
|
|
60
60
|
'aria-pressed': a11yBoolean(this.pressed),
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'f8633f71b51df3509bc679922b432bd5c530d580', class: {
|
|
64
64
|
disabled: this.disabled || this.loading,
|
|
65
|
-
} }, h(BaseButton, Object.assign({ key: '
|
|
65
|
+
} }, h(BaseButton, Object.assign({ key: '005a4497d2d37783c6dcf2824c471b56515396ed' }, baseButtonProps), h("slot", { key: '9cafada091aa59fd6b447a2821f58ebd504875cd' }))));
|
|
66
66
|
}
|
|
67
67
|
static get watchers() { return {
|
|
68
68
|
"variant": ["onVariantChange"],
|
package/components/ix-toggle.js
CHANGED
|
@@ -26,9 +26,9 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
26
26
|
this.checkedChange.emit(this.checked);
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'ffc42b6828208dcf6483abfda90ae88dd43ee408', class: {
|
|
30
30
|
disabled: this.disabled,
|
|
31
|
-
}, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '
|
|
31
|
+
}, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '35954eafdb6301bb6e7063a8978f2bfcc7076de0', disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, role: "switch", tabindex: 0, type: "checkbox", "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), h("label", { key: '0aed058713bc742c3408accee2e3551313a1ad31', class: "switch", tabIndex: -1 }, h("span", { key: '62fbfca9e3adb625006e981f4ae655d2989d9aef', class: "slider" })), !this.hideText ? (h(Fragment, null, !this.indeterminate ? (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.checked ? this.textOn : this.textOff)) : (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.textIndeterminate)))) : null));
|
|
32
32
|
}
|
|
33
33
|
get hostElement() { return this; }
|
|
34
34
|
static get style() { return IxToggleStyle0; }
|
package/components/ix-tree.js
CHANGED
|
@@ -698,7 +698,7 @@ const Tree = /*@__PURE__*/ proxyCustomElement(class Tree extends HTMLElement {
|
|
|
698
698
|
this.hyperlist = new Hyperlist(this.hostElement, config);
|
|
699
699
|
}
|
|
700
700
|
render() {
|
|
701
|
-
return (h(Host, { key: '
|
|
701
|
+
return (h(Host, { key: '5e3f0e8bbd14073590ed9ae548fa51abb50bd52b' }, h("slot", { key: '9e05d42472878f4791cce2033271e1918d40c38f' })));
|
|
702
702
|
}
|
|
703
703
|
get hostElement() { return this; }
|
|
704
704
|
static get watchers() { return {
|
package/components/ix-upload.js
CHANGED
|
@@ -85,7 +85,7 @@ const Upload = /*@__PURE__*/ proxyCustomElement(class Upload extends HTMLElement
|
|
|
85
85
|
this.filesToUpload = obj;
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: 'c13c30ad2fa2a251ad872d7b0461f625798a3d2a' }, h("div", { key: '572bf6899630cdc1fdff1518750415270792a368', class: {
|
|
89
89
|
'file-upload-area': true,
|
|
90
90
|
'file-over': this.state !== UploadFileState.LOADING && this.isFileOver,
|
|
91
91
|
checking: this.state === UploadFileState.LOADING,
|
|
@@ -95,9 +95,9 @@ const Upload = /*@__PURE__*/ proxyCustomElement(class Upload extends HTMLElement
|
|
|
95
95
|
if (this.state !== UploadFileState.LOADING) {
|
|
96
96
|
this.fileDropped(e);
|
|
97
97
|
}
|
|
98
|
-
}, onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled }, this.renderUploadState(), h("div", { key: '
|
|
98
|
+
}, onDragOver: (e) => this.fileOver(e), onDragLeave: () => this.fileLeave(), draggable: !this.disabled }, this.renderUploadState(), h("div", { key: '5c48357676e704f0e285e510059593c526ca47fc' }, h("input", { key: '5ed9faca22b46db4962c64ff3822c59d3e44cf95', multiple: this.multiple, type: "file", class: "upload-browser", id: "upload-browser", onChange: (e) => {
|
|
99
99
|
this.fileChangeEvent(e);
|
|
100
|
-
}, accept: this.accept }), h("ix-button", { key: '
|
|
100
|
+
}, accept: this.accept }), h("ix-button", { key: '6e5bcfec5d982c8674e6bf38bbf1e0d805b1af0f', tabindex: "-1", outline: true, onClick: () => this.inputElement.click(), disabled: this.disabled || this.state === UploadFileState.LOADING }, this.i18nUploadFile)))));
|
|
101
101
|
}
|
|
102
102
|
get hostElement() { return this; }
|
|
103
103
|
static get style() { return IxUploadStyle0; }
|
|
@@ -131,13 +131,13 @@ const ValidationTooltip = /*@__PURE__*/ proxyCustomElement(class ValidationToolt
|
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
133
|
var _a, _b;
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: '2adabc09b27adab332a05e06f95f778e635db7cf' }, h("slot", { key: '9737aa1f46813f88404c5a80eaf0b8e1c6b166c4' }), h("div", { key: '6be2cd8f7c24bd7c3ddc42218ca0b70d3c56dc0a', role: "tooltip", style: {
|
|
135
135
|
display: 'none',
|
|
136
136
|
position: 'fixed',
|
|
137
137
|
top: '0',
|
|
138
138
|
left: '0',
|
|
139
139
|
transform: `translate(${Math.round(((_a = this.tooltipPosition) === null || _a === void 0 ? void 0 : _a.x) || 0)}px,${Math.round(((_b = this.tooltipPosition) === null || _b === void 0 ? void 0 : _b.y) || 0)}px)`,
|
|
140
|
-
}, class: "validation-tooltip text-default" }, this.message, h("slot", { key: '
|
|
140
|
+
}, class: "validation-tooltip text-default" }, this.message, h("slot", { key: '228c539e4447ce9a4c89ffe584f9b712ccaa1924', name: "tooltip-message" }), h("div", { key: 'cdbaf18c6c2033b9b03e33b4e5826309f504df14', id: "arrow" }))));
|
|
141
141
|
}
|
|
142
142
|
get hostElement() { return this; }
|
|
143
143
|
static get watchers() { return {
|
|
@@ -70,18 +70,18 @@ const WorkflowStep = /*@__PURE__*/ proxyCustomElement(class WorkflowStep extends
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
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" }))) : null;
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'e6da26c63019f1efd788ac0e6d64e8c669f711b3', onClick: () => this.onStepClick() }, h("div", { key: '607ad21e42070abc412fd4a5313e207f7908d765', tabIndex: 0, class: {
|
|
74
74
|
step: true,
|
|
75
75
|
selected: this.selected,
|
|
76
76
|
vertical: this.vertical,
|
|
77
77
|
disabled: this.disabled,
|
|
78
78
|
clickable: this.clickable && !this.disabled,
|
|
79
|
-
} }, h("div", { key: '
|
|
79
|
+
} }, h("div", { key: 'a55397363ac7fdb3579751903e98e4840314a2c7', class: "wrapper" }, h("div", { key: 'b4044cabf368cdb5632727baf1a9040a2ba59296', class: {
|
|
80
80
|
line: true,
|
|
81
81
|
selected: this.selected,
|
|
82
82
|
[this.status]: true,
|
|
83
83
|
[this.position]: true,
|
|
84
|
-
} }), h("div", { key: '
|
|
84
|
+
} }), h("div", { key: 'da4cbb5b0755dea7c8ff4c45676a5c7da33e0caf', class: "iconWrapper" }, icons, h("slot", { key: '3059dcda912a1fd2d7225dd7c97cf6c7f640b875', name: "custom-icon" }))), h("div", { key: '316a8dbb4b5e8845cca3635b3f2c1bb5ef3ebefd', class: "text" }, h("slot", { key: '9cc1127aa169fb7096b671720160da4a3ab7efc7' })))));
|
|
85
85
|
}
|
|
86
86
|
get hostElement() { return this; }
|
|
87
87
|
static get watchers() { return {
|
|
@@ -69,7 +69,7 @@ const WorkflowSteps = /*@__PURE__*/ proxyCustomElement(class WorkflowSteps exten
|
|
|
69
69
|
this.updateSteps();
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '0df56c84cde310027e181c8fd5d8c9dd4f5c9451' }, h("div", { key: '2f82dfc3689d431ac06586f673895b9c36799847', class: { steps: true, vertical: this.vertical } }, h("slot", { key: 'c22421b7917f1d61bc2624979bee8b8804cc8aa3' }))));
|
|
73
73
|
}
|
|
74
74
|
get hostElement() { return this; }
|
|
75
75
|
static get style() { return IxWorkflowStepsStyle0; }
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { m as makeRef } from './make-ref.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './dropdown-item.js';
|
|
4
4
|
|
|
5
|
-
const menuAvatarItemCss = ":host{display:block}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}";
|
|
5
|
+
const menuAvatarItemCss = ":host{display:block;color:var(--theme-color-std-text)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}";
|
|
6
6
|
const IxMenuAvatarItemStyle0 = menuAvatarItemCss;
|
|
7
7
|
|
|
8
8
|
const MenuAvatarItem = /*@__PURE__*/ proxyCustomElement(class MenuAvatarItem extends HTMLElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"menu-avatar-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"file":"menu-avatar-item.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,opBAAopB,CAAC;AAC/qB,+BAAe,iBAAiB;;MCyBnB,cAAc;;;;;;QAkBjB,oBAAe,GAAG,OAAO,EAA6B,CAAC;;;;;IAI/D,MAAM,sBAAsB;QAC1B,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC;KAC9C;IAED,MAAM;QACJ,QACE,yEACE,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,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;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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 color: var(--theme-color-std-text);\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 Method,\n Prop,\n} from '@stencil/core';\nimport { DropdownItemWrapper } from '../dropdown/dropdown-controller';\nimport { makeRef } from '../utils/make-ref';\n\n@Component({\n tag: 'ix-menu-avatar-item',\n styleUrl: 'menu-avatar-item.scss',\n shadow: true,\n})\nexport class MenuAvatarItem implements DropdownItemWrapper {\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 private dropdownItemRef = makeRef<HTMLIxDropdownItemElement>();\n\n /** @internal */\n @Method()\n async getDropdownItemElement() {\n return this.dropdownItemRef.waitForCurrent();\n }\n\n render() {\n return (\n <ix-dropdown-item\n ref={this.dropdownItemRef}\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}
|
package/components/menu-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as createMutationObserver } from './mutation-observer.js';
|
|
3
3
|
|
|
4
|
-
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{all:unset;box-sizing:border-box;display:flex;position:relative;align-items:center;height:var(--ix-menu-item-height, 3rem);width:100%;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 .tab-icon{color:var(--theme-nav-item-primary-icon--color);position:relative;pointer-events:none}:host .tab:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:-1px}:host .tab:not(:last-child){margin-bottom:0.5rem}:host .notification{display:inline-flex;position:absolute;top:0.25rem;left:1.
|
|
4
|
+
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{all:unset;box-sizing:border-box;display:flex;position:relative;align-items:center;height:var(--ix-menu-item-height, 3rem);width:100%;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 .tab-icon{color:var(--theme-nav-item-primary-icon--color);position:relative;pointer-events:none}:host .tab:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:-1px}:host .tab:not(:last-child){margin-bottom:0.5rem}:host .notification{display:inline-flex;position:absolute;top:0.25rem;left:1.5rem}: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>.tab-icon{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)}:host(.tab-nested) .tab{flex-direction:row;padding-left:1.375rem}:host(.tab-nested) .tab .notification{position:relative;top:0;left:0;padding-left:0.5rem}:host(.tab-nested) .tab .tab-icon{padding-left:0.5rem;padding-right:0.5rem}:host(.tab-nested) .tab .tab-text{margin-left:0.5rem}:host(.tab-nested) .tab::before{display:none}";
|
|
5
5
|
const IxMenuItemStyle0 = menuItemCss;
|
|
6
6
|
|
|
7
7
|
const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLElement {
|
|
@@ -12,7 +12,7 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
12
12
|
this.isHostedInsideCategory = false;
|
|
13
13
|
this.home = false;
|
|
14
14
|
this.bottom = false;
|
|
15
|
-
this.tabIcon =
|
|
15
|
+
this.tabIcon = undefined;
|
|
16
16
|
this.icon = undefined;
|
|
17
17
|
this.notifications = undefined;
|
|
18
18
|
this.active = undefined;
|
|
@@ -22,6 +22,8 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
22
22
|
componentWillLoad() {
|
|
23
23
|
this.isHostedInsideCategory =
|
|
24
24
|
!!this.hostElement.closest('ix-menu-category');
|
|
25
|
+
this.onIconChange();
|
|
26
|
+
this.onTabIconChange();
|
|
25
27
|
}
|
|
26
28
|
componentWillRender() {
|
|
27
29
|
this.title = this.hostElement.innerText;
|
|
@@ -41,6 +43,20 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
41
43
|
this.observer.disconnect();
|
|
42
44
|
}
|
|
43
45
|
}
|
|
46
|
+
onIconChange() {
|
|
47
|
+
if (!this.isHostedInsideCategory &&
|
|
48
|
+
!this.hostElement.icon &&
|
|
49
|
+
!this.hostElement.tabIcon) {
|
|
50
|
+
this.icon = 'document';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
onTabIconChange() {
|
|
54
|
+
if (!this.isHostedInsideCategory &&
|
|
55
|
+
!this.hostElement.icon &&
|
|
56
|
+
!this.hostElement.tabIcon) {
|
|
57
|
+
this.tabIcon = 'document';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
44
60
|
render() {
|
|
45
61
|
var _a;
|
|
46
62
|
let extendedAttributes = {};
|
|
@@ -54,25 +70,32 @@ const MenuItem = /*@__PURE__*/ proxyCustomElement(class MenuItem extends HTMLEle
|
|
|
54
70
|
slot: 'bottom',
|
|
55
71
|
};
|
|
56
72
|
}
|
|
57
|
-
return (h(Host, Object.assign({ key: '
|
|
73
|
+
return (h(Host, Object.assign({ key: 'cf7c3ee73c7ff53d9825bc64460a72a876c46f03', class: {
|
|
58
74
|
disabled: this.disabled,
|
|
59
75
|
'home-tab': this.home,
|
|
60
76
|
'bottom-tab': this.bottom,
|
|
61
77
|
active: this.active,
|
|
62
78
|
'tab-nested': this.isHostedInsideCategory,
|
|
63
|
-
} }, extendedAttributes), h("button", { key: '
|
|
79
|
+
} }, extendedAttributes), h("button", { key: 'd79e9ab5097e712949a65e59e08426166dfa4091', class: "tab", title: this.title, tabIndex: this.disabled ? -1 : 0, role: "listitem" }, (this.icon || this.tabIcon) && (h("ix-icon", { class: 'tab-icon', name: (_a = this.icon) !== null && _a !== void 0 ? _a : this.tabIcon })), this.notifications ? (h("div", { class: "notification" }, h("div", { class: "pill" }, this.notifications))) : null, h("span", { key: 'edbdefc1edd5b572c49d2f74e184a466989500e6', class: "tab-text text-default" }, h("slot", { key: 'f3d75d13c9b68b69e7731f9c947c423e304a76d6' })))));
|
|
64
80
|
}
|
|
65
81
|
get hostElement() { return this; }
|
|
82
|
+
static get watchers() { return {
|
|
83
|
+
"icon": ["onIconChange"],
|
|
84
|
+
"tabIcon": ["onTabIconChange"]
|
|
85
|
+
}; }
|
|
66
86
|
static get style() { return IxMenuItemStyle0; }
|
|
67
87
|
}, [1, "ix-menu-item", {
|
|
68
88
|
"home": [4],
|
|
69
89
|
"bottom": [4],
|
|
70
|
-
"tabIcon": [
|
|
71
|
-
"icon": [
|
|
90
|
+
"tabIcon": [1025, "tab-icon"],
|
|
91
|
+
"icon": [1025],
|
|
72
92
|
"notifications": [2],
|
|
73
93
|
"active": [4],
|
|
74
94
|
"disabled": [4],
|
|
75
95
|
"title": [32]
|
|
96
|
+
}, undefined, {
|
|
97
|
+
"icon": ["onIconChange"],
|
|
98
|
+
"tabIcon": ["onTabIconChange"]
|
|
76
99
|
}]);
|
|
77
100
|
function defineCustomElement() {
|
|
78
101
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +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ACzB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,YAAY,EAAE,IAAI,CAAC,sBAAsB;aAC1C,IACG,kBAAkB,GAEtB,+DACE,KAAK,EAAC,KAAK,EACX,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,EAChC,IAAI,EAAC,UAAU,IAEf,gEACE,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,mCAAI,IAAI,CAAC,OAAO,GACtB,EACX,4DAAK,KAAK,EAAC,cAAc,IACtB,IAAI,CAAC,aAAa,IACjB,WAAK,KAAK,EAAC,MAAM,IAAE,IAAI,CAAC,aAAa,CAAO,IAC1C,IAAI,CACJ,EACN,6DAAM,KAAK,EAAC,uBAAuB,IACjC,8DAAa,CACR,CACA,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/menu-item/menu-item.scss?tag=ix-menu-item&encapsulation=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\n$menuItemHeight: 3rem;\n$menuItemPadding: 0.875rem;\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 all: unset;\n box-sizing: border-box;\n display: flex;\n position: relative;\n align-items: center;\n height: var(--ix-menu-item-height, $menuItemHeight);\n width: calc(100%);\n z-index: 500;\n padding-left: $menuItemPadding;\n\n @include ghost-hover-pressed;\n }\n\n .tab-icon {\n color: var(--theme-nav-item-primary-icon--color);\n position: relative;\n pointer-events: none;\n }\n\n .tab:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: -1px;\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 > .tab-icon {\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:host(.tab-nested) {\n .tab::before {\n display: none;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { 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 * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/icons\n *\n * @deprecated since 2.0.0 use `icon` property. Will be removed in 3.0.0\n */\n @Prop() tabIcon = 'document';\n\n /**\n * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/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 private isHostedInsideCategory = false;\n\n componentWillLoad() {\n this.isHostedInsideCategory =\n !!this.hostElement.closest('ix-menu-category');\n }\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 'tab-nested': this.isHostedInsideCategory,\n }}\n {...extendedAttributes}\n >\n <button\n class=\"tab\"\n title={this.title}\n tabIndex={this.disabled ? -1 : 0}\n role=\"listitem\"\n >\n <ix-icon\n class={'tab-icon'}\n name={this.icon ?? this.tabIcon}\n ></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 </button>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"menu-item.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,y3GAAy3G,CAAC;AAC94G,yBAAe,WAAW;;MCmBb,QAAQ;;;;;QA6CX,2BAAsB,GAAG,KAAK,CAAC;oBAzCxB,KAAK;sBAOH,KAAK;;;;;;;;IAoCtB,iBAAiB;QACf,IAAI,CAAC,sBAAsB;YACzB,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAEjD,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,mBAAmB;QACjB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;KACzC;IAED,iBAAiB;QACf,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC;YACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;SACzC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE;YACtC,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI;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IAAI,CAAC,OAAO,MACzB,eACE,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,mCAAI,IAAI,CAAC,OAAO,GACtB,CACZ,EACA,IAAI,CAAC,aAAa,IACjB,WAAK,KAAK,EAAC,cAAc,IACvB,WAAK,KAAK,EAAC,MAAM,IAAE,IAAI,CAAC,aAAa,CAAO,CACxC,IACJ,IAAI,EACR,6DAAM,KAAK,EAAC,uBAAuB,IACjC,8DAAa,CACR,CACA,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/menu-item/menu-item.scss?tag=ix-menu-item&encapsulation=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\n$menuItemHeight: 3rem;\n$menuItemPadding: 0.875rem;\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 all: unset;\n box-sizing: border-box;\n display: flex;\n position: relative;\n align-items: center;\n height: var(--ix-menu-item-height, $menuItemHeight);\n width: calc(100%);\n z-index: 500;\n padding-left: $menuItemPadding;\n\n @include ghost-hover-pressed;\n }\n\n .tab-icon {\n color: var(--theme-nav-item-primary-icon--color);\n position: relative;\n pointer-events: none;\n }\n\n .tab:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: -1px;\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.5rem;\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 > .tab-icon {\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:host(.tab-nested) {\n .tab {\n flex-direction: row;\n padding-left: calc(0.5rem + $menuItemPadding);\n\n .notification {\n position: relative;\n top: 0;\n left: 0;\n padding-left: 0.5rem;\n }\n\n .tab-icon {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n }\n\n .tab-text {\n margin-left: 0.5rem;\n }\n\n &::before {\n display: none;\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 { Component, Element, h, Host, Prop, State, Watch } 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 * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/icons\n *\n * @deprecated since 2.0.0 use `icon` property. Will be removed in 3.0.0\n */\n @Prop({ mutable: true }) tabIcon: string;\n\n /**\n * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/icons\n */\n @Prop({ mutable: true }) 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 private isHostedInsideCategory = false;\n\n componentWillLoad() {\n this.isHostedInsideCategory =\n !!this.hostElement.closest('ix-menu-category');\n\n this.onIconChange();\n this.onTabIconChange();\n }\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 @Watch('icon')\n onIconChange() {\n if (\n !this.isHostedInsideCategory &&\n !this.hostElement.icon &&\n !this.hostElement.tabIcon\n ) {\n this.icon = 'document';\n }\n }\n\n @Watch('tabIcon')\n onTabIconChange() {\n if (\n !this.isHostedInsideCategory &&\n !this.hostElement.icon &&\n !this.hostElement.tabIcon\n ) {\n this.tabIcon = 'document';\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 'tab-nested': this.isHostedInsideCategory,\n }}\n {...extendedAttributes}\n >\n <button\n class=\"tab\"\n title={this.title}\n tabIndex={this.disabled ? -1 : 0}\n role=\"listitem\"\n >\n {(this.icon || this.tabIcon) && (\n <ix-icon\n class={'tab-icon'}\n name={this.icon ?? this.tabIcon}\n ></ix-icon>\n )}\n {this.notifications ? (\n <div class=\"notification\">\n <div class=\"pill\">{this.notifications}</div>\n </div>\n ) : null}\n <span class=\"tab-text text-default\">\n <slot></slot>\n </span>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -10,7 +10,7 @@ const ModalContent = /*@__PURE__*/ proxyCustomElement(class ModalContent extends
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '7d65ee586b3d78c89cc6f6a90689eaa1d98f4ec2' }, h("slot", { key: 'a2cb0a30400cf62e782a0fbb9e2926f4127ace4f' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return IxModalContentStyle0; }
|
|
16
16
|
}, [1, "ix-modal-content"]);
|
|
@@ -39,7 +39,7 @@ const ModalHeader = /*@__PURE__*/ proxyCustomElement(class ModalHeader extends H
|
|
|
39
39
|
this.parentDialog.dismissModal();
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '93f0022e034724d55e1ef5d158e26c3c52f187ea' }, this.icon ? (h("ix-icon", { class: 'modal-icon', name: this.icon, color: this.iconColor })) : null, h("ix-typography", { key: 'da388b084f8a380c731a45ae72d9b40fce7b2ef5', variant: 'default-title' }, h("slot", { key: '425ec3dd532be2169aa3782e01e923c0518646bb' })), !this.hideClose ? (h("ix-icon-button", { onClick: (event) => this.onCloseClick(event), ghost: true, icon: "close", class: 'modal-close' })) : null));
|
|
43
43
|
}
|
|
44
44
|
get hostElement() { return this; }
|
|
45
45
|
static get watchers() { return {
|
package/components/modal.js
CHANGED
|
@@ -223,7 +223,7 @@ async function showModal(config) {
|
|
|
223
223
|
}
|
|
224
224
|
setA11yAttributes(dialogRef, config);
|
|
225
225
|
Object.assign(dialogRef, config);
|
|
226
|
-
dialogRef.showModal();
|
|
226
|
+
await dialogRef.showModal();
|
|
227
227
|
dialogRef.addEventListener('dialogClose', async ({ detail }) => {
|
|
228
228
|
onClose.emit(detail);
|
|
229
229
|
await delegate.removeView(dialogRef);
|
package/components/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"modal.js","mappings":";;AAAA;;;;;;;;AAkBA,MAAM,wBAAwB;IAC5B,MAAM,UAAU,CACd,IAAS,EACT,MAAuB;;QAEvB,MAAM,eAAe,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,mCAAI,QAAQ,CAAC,IAAI,CAAC;QAC/D,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,UAAU,CAAC,IAAS;QACxB,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;CACF;AAED,MAAM,YAAY,GAAG,IAAI,wBAAwB,EAAE,CAAC;AACpD,IAAI,eAAe,GAAsB,YAAY,CAAC;SAEtC,yBA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Y,WAAW;QACrC,MAAM,CAAC,OAAO,CAAC,OAAO,KAAK,UAAU,EACrC;QACA,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnC,SAAS,GAAG,MAAM,eAAe,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;KACxD;IAED,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAqB,MAAM,CAAC,OAAO,CAAC,CAAC;KAC3E;IAED,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAEjC,SAAS,CAAC,SAAS,EAAE,CAAC;IACtB,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAe;QACtE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrB,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CAAC,CAAC;IAEH,SAAS,CAAC,gBAAgB,CACxB,eAAe,EACf,OAAO,EAAE,MAAM,EAAe;QAC5B,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CACF,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,SAAS;QACtB,OAAO;QACP,SAAS;KACV,CAAC;AACJ;;;;","names":["setA11yAttributes"],"sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.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\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\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 { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions = [];\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n },\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n },\n ];\n}\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n }[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageContent) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef = await getCoreDelegate().attachView<HTMLIxModalElement>(\n dialog\n );\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'info',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'warning',\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'error',\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'success',\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'question',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\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 { IxModalSize } from '../../modal/modal';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"version":3}
|
|
1
|
+
{"file":"modal.js","mappings":";;AAAA;;;;;;;;AAkBA,MAAM,wBAAwB;IAC5B,MAAM,UAAU,CACd,IAAS,EACT,MAAuB;;QAEvB,MAAM,eAAe,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,mCAAI,QAAQ,CAAC,IAAI,CAAC;QAC/D,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,UAAU,CAAC,IAAS;QACxB,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;CACF;AAED,MAAM,YAAY,GAAG,IAAI,wBAAwB,EAAE,CAAC;AACpD,IAAI,eAAe,GAAsB,YAAY,CAAC;SAEtC,yBAAyB,CAAC,QAA2B;IACnE,eAAe,GAAG,QAAQ,CAAC;AAC7B,CAAC;MAEY,eAAe,GAAG;IAC7B,OAAO,eAAe,CAAC;AACzB,EAAE;MAEW,eAAe,GAAG,MAAM;;AC5CrC;;;;;;;;AAYA,SAASA,mBAAiB,CAAC,OAAoB,EAAE,MAAsB;IACrE,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IAC/C,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IAE7C,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEhC,IAAI,eAAe,EAAE;QACnB,OAAO,CAAC,YAAY,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;KAC3D;IAED,IAAI,cAAc,EAAE;QAClB,OAAO,CAAC,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;KACzD;AACH,CAAC;AAED,SAAS,oBAAoB,CAC3B,QAAgB,EAChB,UAAmB,EACnB,WAAiB,EAC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ACrB,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CAAC,CAAC;IAEH,SAAS,CAAC,gBAAgB,CACxB,eAAe,EACf,OAAO,EAAE,MAAM,EAAe;QAC5B,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,MAAM,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACtC,CACF,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,SAAS;QACtB,OAAO;QACP,SAAS;KACV,CAAC;AACJ;;;;","names":["setA11yAttributes"],"sources":["src/components/utils/delegate.ts","src/components/utils/modal/message.ts","src/components/utils/modal/modal.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\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\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 { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions = [];\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n },\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n },\n ];\n}\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n }[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageContent) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef = await getCoreDelegate().attachView<HTMLIxModalElement>(\n dialog\n );\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'info',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'warning',\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'error',\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'success',\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'question',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\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 { IxModalSize } from '../../modal/modal';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n await dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"version":3}
|
package/components/row.js
CHANGED
|
@@ -10,7 +10,7 @@ const Row = /*@__PURE__*/ proxyCustomElement(class Row extends HTMLElement {
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'ae640297aa02dba7d4ca3f43f929ba9149889a3d' }, h("slot", { key: '38c1e1ee0c51c93c79e1f1a8e8c6a95e08760f24' })));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return IxRowStyle0; }
|
|
16
16
|
}, [1, "ix-row"]);
|
|
@@ -53,7 +53,7 @@ const SelectItem = /*@__PURE__*/ proxyCustomElement(class SelectItem extends HTM
|
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'c56aa1ee5e174f9de7905bcaef381e0a8fd212a2' }, h("ix-dropdown-item", { key: '00ec7a1e52a6b17cf94ce702239fef06df0cb936', class: {
|
|
57
57
|
'select-item-checked': this.selected,
|
|
58
58
|
}, checked: this.selected, label: this.label ? this.label : this.value, onItemClick: (e) => this.onItemClick(e) })));
|
|
59
59
|
}
|
package/components/select.js
CHANGED
|
@@ -313,7 +313,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
313
313
|
}
|
|
314
314
|
render() {
|
|
315
315
|
var _a, _b, _c;
|
|
316
|
-
return (h(Host, { key: '
|
|
316
|
+
return (h(Host, { key: '2a59659f35973f2297d3b34cb0ae84c3e5d80c04' }, h("div", { key: 'cca889f2ba4c3db6e74a65fd21d9ca7428e9dc52', class: {
|
|
317
317
|
select: true,
|
|
318
318
|
disabled: this.disabled,
|
|
319
319
|
readonly: this.readonly,
|
|
@@ -321,13 +321,13 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
321
321
|
this.dropdownAnchor = ref;
|
|
322
322
|
if (!this.editable)
|
|
323
323
|
this.dropdownWrapperRef = ref;
|
|
324
|
-
} }, h("div", { key: '
|
|
324
|
+
} }, h("div", { key: '98ca1de8783cd95db76d969bade2aa2078c8224f', class: "input-container" }, h("div", { key: '4d4ac31033855345467e355f168a5ce7e47ce8c6', class: "chips" }, this.isMultipleMode
|
|
325
325
|
? (_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.map((item) => (h("ix-filter-chip", { disabled: this.disabled || this.readonly, key: item.value, onCloseClick: (e) => {
|
|
326
326
|
e.preventDefault();
|
|
327
327
|
e.stopPropagation();
|
|
328
328
|
this.itemClick(item.value);
|
|
329
329
|
} }, item.label)))
|
|
330
|
-
: '', h("div", { key: '
|
|
330
|
+
: '', h("div", { key: 'd50bab808cbf2bd146c39052f7f008f94ad93f70', class: "trigger" }, h("input", { key: '1b91bbc00aed4ec69543d3e4c3fe1eff00c87c90', autocomplete: "off", "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, type: "text", class: {
|
|
331
331
|
'allow-clear': this.allowClear && !!((_b = this.selectedLabels) === null || _b === void 0 ? void 0 : _b.length),
|
|
332
332
|
}, placeholder: this.placeholderValue(), value: this.inputValue, ref: (ref) => (this.inputRef = ref), onBlur: (e) => this.onInputBlur(e), onFocus: () => {
|
|
333
333
|
this.navigationItem = undefined;
|
|
@@ -339,16 +339,16 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
339
339
|
} })) : null, this.disabled || this.readonly ? null : (h("ix-icon-button", { "data-select-dropdown": true, class: { 'dropdown-visible': this.dropdownShow }, icon: "chevron-down-small", ghost: true, ref: (ref) => {
|
|
340
340
|
if (this.editable)
|
|
341
341
|
this.dropdownWrapperRef = ref;
|
|
342
|
-
} })))))), h("ix-dropdown", { key: '
|
|
342
|
+
} })))))), h("ix-dropdown", { key: '3feb553427991c96b45b49aecce64de203846902', ref: (ref) => (this.dropdownRef = ref), show: this.dropdownShow, closeBehavior: this.isMultipleMode ? 'outside' : 'both', class: {
|
|
343
343
|
'd-none': this.disabled || this.readonly,
|
|
344
344
|
}, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "bottom-start", overwriteDropdownStyle: async () => {
|
|
345
345
|
return {
|
|
346
346
|
minWidth: `${this.hostElement.clientWidth}px`,
|
|
347
347
|
};
|
|
348
|
-
} }, h("div", { key: '
|
|
348
|
+
} }, h("div", { key: '3c07355d8c3ebcc3a5f180ac8acf57297f9768ac', class: {
|
|
349
349
|
'select-list-header': true,
|
|
350
350
|
hidden: this.hideListHeader || this.isDropdownEmpty,
|
|
351
|
-
}, title: this.i18nSelectListHeader }, this.i18nSelectListHeader), h("slot", { key: '
|
|
351
|
+
}, title: this.i18nSelectListHeader }, this.i18nSelectListHeader), h("slot", { key: '2bb33255f9a58b647d0897e8ff1b38fa6aba888b' }), h("div", { key: '2e9bcf50f2a45e292103e4a201d421ad904becd2', ref: (ref) => (this.addItemRef = ref), class: "d-contents" }), this.isAddItemVisible() ? (h("ix-dropdown-item", { "data-testid": "add-item", icon: 'plus', class: {
|
|
352
352
|
'add-item': true,
|
|
353
353
|
}, label: this.inputFilterText, onItemClick: (e) => {
|
|
354
354
|
e.preventDefault();
|
package/components/spinner.js
CHANGED
|
@@ -13,7 +13,7 @@ const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends HTMLEleme
|
|
|
13
13
|
this.hideTrack = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '764ff87a7fd663a12419610e551a54778bd7700a', class: {
|
|
17
17
|
primary: this.variant === 'primary',
|
|
18
18
|
'xx-small': this.size === 'xx-small',
|
|
19
19
|
'x-small': this.size === 'x-small',
|
package/components/tabs.js
CHANGED
|
@@ -220,13 +220,13 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return (h(Host, { key: '
|
|
223
|
+
return (h(Host, { key: '44c009492a3faabd3dc4266f6a4070037f590caa' }, h("div", { key: 'c002c0b7c606bf6dd37738f2c8b233ed0556ae24', class: "arrow", "data-arrow-left": true, onClick: () => this.move(this.scrollAmount, true) }, h("ix-icon", { key: '30291a5baf33ad74ca4d4cdd52aa3de6fdaac6f5', name: 'chevron-left-small' })), h("div", { key: 'fd0842c04c463afb21e29bfb64a32189550204f0', class: {
|
|
224
224
|
'tab-items': true,
|
|
225
225
|
'overflow-shadow': true,
|
|
226
226
|
'shadow-left': this.showPreviousArrow(),
|
|
227
227
|
'shadow-right': this.showNextArrow(),
|
|
228
228
|
'shadow-both': this.showNextArrow() && this.showPreviousArrow(),
|
|
229
|
-
} }, h("div", { key: '
|
|
229
|
+
} }, h("div", { key: 'b62dda398149a5eef215992b4a9ce5e297fa803f', class: "items-content" }, h("slot", { key: '0383abae773ba6f7f5b4ebd9e76b4a20c9a18732' }))), h("div", { key: '7ef4269bac60f31a97ae5affa4574bbab4ba2726', class: "arrow right", "data-arrow-right": true, onClick: () => this.move(-this.scrollAmount, true) }, h("ix-icon", { key: '9071de44d99c4650f6ad432b40ca6592e4fa9045', name: 'chevron-right-small' }))));
|
|
230
230
|
}
|
|
231
231
|
get hostElement() { return this; }
|
|
232
232
|
static get style() { return IxTabsStyle0; }
|
package/components/toast.js
CHANGED
|
@@ -53,11 +53,11 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
53
53
|
animationPlayState: this.touched ? 'paused' : 'running',
|
|
54
54
|
};
|
|
55
55
|
progressBarClass.push('toast-progress-bar--animated');
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'fc536c407da22e873ddd6b0c57ff1a33f031fff3', class: "animate__animated animate__fadeIn" }, h("div", { key: '364d9a603523b34526abbf60b79fc28b4861f551', class: "toast-body", onPointerLeave: () => {
|
|
57
57
|
this.touched = false;
|
|
58
58
|
}, onPointerEnter: () => {
|
|
59
59
|
this.touched = true;
|
|
60
|
-
} }, this.type || this.icon ? (h("div", { class: "toast-icon" }, this.getIcon())) : null, h("div", { key: '
|
|
60
|
+
} }, this.type || this.icon ? (h("div", { class: "toast-icon" }, this.getIcon())) : null, h("div", { key: 'a428a1d86aade38d43d14c7a6045ec0132346f1d', class: "toast-content" }, this.toastTitle ? (h("div", { class: "toast-title" }, this.toastTitle)) : null, h("div", { key: 'ba2928faa70dc5deb313f5e5bda49c7413be0c1d', class: "toast-message" }, h("slot", { key: '5af45c142c3812239d9874448b584bd8364b50ec' }))), h("div", { key: 'cf9b6eb78786400f372c473cd3e6e6d168dd07c3', class: "toast-close" }, h("ix-icon-button", { key: '7adbc3c276e209a906f1e1a224cba994fbaacbad', icon: 'close', size: "24", ghost: true, onClick: () => this.closeToast.emit() }))), this.autoClose ? (h("div", { class: progressBarClass.join(' '), style: progressBarStyle, onAnimationEnd: () => {
|
|
61
61
|
this.close();
|
|
62
62
|
}, onTransitionEnd: () => {
|
|
63
63
|
if (this.progress === 0) {
|