@siemens/ix-vue 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/READMEOSS.html +419 -1613
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -6
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -1
- package/dist/components/components.d.ts +101 -0
- package/dist/components/ix-action-card.d.ts +3 -0
- package/dist/components/ix-action-card.js +16 -0
- package/dist/components/ix-action-card.js.map +1 -0
- package/dist/components/ix-application-header.d.ts +3 -0
- package/dist/components/ix-application-header.js +25 -0
- package/dist/components/ix-application-header.js.map +1 -0
- package/dist/components/ix-application.d.ts +3 -0
- package/dist/components/ix-application.js +13 -0
- package/dist/components/ix-application.js.map +1 -0
- package/dist/components/ix-avatar.d.ts +3 -0
- package/dist/components/ix-avatar.js +14 -0
- package/dist/components/ix-avatar.js.map +1 -0
- package/dist/components/ix-blind.d.ts +3 -0
- package/dist/components/ix-blind.js +16 -0
- package/dist/components/ix-blind.js.map +1 -0
- package/dist/components/ix-breadcrumb-item.d.ts +3 -0
- package/dist/components/ix-breadcrumb-item.js +22 -0
- package/dist/components/ix-breadcrumb-item.js.map +1 -0
- package/dist/components/ix-breadcrumb.d.ts +3 -0
- package/dist/components/ix-breadcrumb.js +18 -0
- package/dist/components/ix-breadcrumb.js.map +1 -0
- package/dist/components/ix-button.d.ts +3 -0
- package/dist/components/ix-button.js +20 -0
- package/dist/components/ix-button.js.map +1 -0
- package/dist/components/ix-card-accordion.d.ts +3 -0
- package/dist/components/ix-card-accordion.js +14 -0
- package/dist/components/ix-card-accordion.js.map +1 -0
- package/dist/components/ix-card-content.d.ts +3 -0
- package/dist/components/ix-card-content.js +7 -0
- package/dist/components/ix-card-content.js.map +1 -0
- package/dist/components/ix-card-list.d.ts +3 -0
- package/dist/components/ix-card-list.js +26 -0
- package/dist/components/ix-card-list.js.map +1 -0
- package/dist/components/ix-card-title.d.ts +3 -0
- package/dist/components/ix-card-title.js +7 -0
- package/dist/components/ix-card-title.js.map +1 -0
- package/dist/components/ix-card.d.ts +3 -0
- package/dist/components/ix-card.js +11 -0
- package/dist/components/ix-card.js.map +1 -0
- package/dist/components/ix-category-filter.d.ts +3 -0
- package/dist/components/ix-category-filter.js +34 -0
- package/dist/components/ix-category-filter.js.map +1 -0
- package/dist/components/ix-checkbox-group.d.ts +3 -0
- package/dist/components/ix-checkbox-group.js +17 -0
- package/dist/components/ix-checkbox-group.js.map +1 -0
- package/dist/components/ix-checkbox.d.ts +3 -0
- package/dist/components/ix-checkbox.js +30 -0
- package/dist/components/ix-checkbox.js.map +1 -0
- package/dist/components/ix-chip.d.ts +3 -0
- package/dist/components/ix-chip.js +22 -0
- package/dist/components/ix-chip.js.map +1 -0
- package/dist/components/ix-col.d.ts +3 -0
- package/dist/components/ix-col.js +12 -0
- package/dist/components/ix-col.js.map +1 -0
- package/dist/components/ix-content-header.d.ts +3 -0
- package/dist/components/ix-content-header.js +15 -0
- package/dist/components/ix-content-header.js.map +1 -0
- package/dist/components/ix-content.d.ts +3 -0
- package/dist/components/ix-content.js +7 -0
- package/dist/components/ix-content.js.map +1 -0
- package/dist/components/ix-custom-field.d.ts +3 -0
- package/dist/components/ix-custom-field.js +16 -0
- package/dist/components/ix-custom-field.js.map +1 -0
- package/dist/components/ix-date-dropdown.d.ts +3 -0
- package/dist/components/ix-date-dropdown.js +29 -0
- package/dist/components/ix-date-dropdown.js.map +1 -0
- package/dist/components/ix-date-input.d.ts +3 -0
- package/dist/components/ix-date-input.js +53 -0
- package/dist/components/ix-date-input.js.map +1 -0
- package/dist/components/ix-date-picker.d.ts +3 -0
- package/dist/components/ix-date-picker.js +33 -0
- package/dist/components/ix-date-picker.js.map +1 -0
- package/dist/components/ix-datetime-input.d.ts +3 -0
- package/dist/components/ix-datetime-input.js +49 -0
- package/dist/components/ix-datetime-input.js.map +1 -0
- package/dist/components/ix-datetime-picker.d.ts +3 -0
- package/dist/components/ix-datetime-picker.js +35 -0
- package/dist/components/ix-datetime-picker.js.map +1 -0
- package/dist/components/ix-divider.d.ts +3 -0
- package/dist/components/ix-divider.js +7 -0
- package/dist/components/ix-divider.js.map +1 -0
- package/dist/components/ix-dropdown-button.d.ts +3 -0
- package/dist/components/ix-dropdown-button.js +23 -0
- package/dist/components/ix-dropdown-button.js.map +1 -0
- package/dist/components/ix-dropdown-header.d.ts +3 -0
- package/dist/components/ix-dropdown-header.js +9 -0
- package/dist/components/ix-dropdown-header.js.map +1 -0
- package/dist/components/ix-dropdown-item.d.ts +3 -0
- package/dist/components/ix-dropdown-item.js +24 -0
- package/dist/components/ix-dropdown-item.js.map +1 -0
- package/dist/components/ix-dropdown-quick-actions.d.ts +3 -0
- package/dist/components/ix-dropdown-quick-actions.js +7 -0
- package/dist/components/ix-dropdown-quick-actions.js.map +1 -0
- package/dist/components/ix-dropdown.d.ts +3 -0
- package/dist/components/ix-dropdown.js +41 -0
- package/dist/components/ix-dropdown.js.map +1 -0
- package/dist/components/ix-empty-state.d.ts +3 -0
- package/dist/components/ix-empty-state.js +17 -0
- package/dist/components/ix-empty-state.js.map +1 -0
- package/dist/components/ix-event-list-item.d.ts +3 -0
- package/dist/components/ix-event-list-item.js +16 -0
- package/dist/components/ix-event-list-item.js.map +1 -0
- package/dist/components/ix-event-list.d.ts +3 -0
- package/dist/components/ix-event-list.js +12 -0
- package/dist/components/ix-event-list.js.map +1 -0
- package/dist/components/ix-expanding-search.d.ts +3 -0
- package/dist/components/ix-expanding-search.js +19 -0
- package/dist/components/ix-expanding-search.js.map +1 -0
- package/dist/components/ix-field-label.d.ts +3 -0
- package/dist/components/ix-field-label.js +12 -0
- package/dist/components/ix-field-label.js.map +1 -0
- package/dist/components/ix-filter-chip.d.ts +3 -0
- package/dist/components/ix-filter-chip.js +14 -0
- package/dist/components/ix-filter-chip.js.map +1 -0
- package/dist/components/ix-flip-tile-content.d.ts +3 -0
- package/dist/components/ix-flip-tile-content.js +9 -0
- package/dist/components/ix-flip-tile-content.js.map +1 -0
- package/dist/components/ix-flip-tile.d.ts +3 -0
- package/dist/components/ix-flip-tile.js +16 -0
- package/dist/components/ix-flip-tile.js.map +1 -0
- package/dist/components/ix-group-context-menu.d.ts +3 -0
- package/dist/components/ix-group-context-menu.js +7 -0
- package/dist/components/ix-group-context-menu.js.map +1 -0
- package/dist/components/ix-group-item.d.ts +3 -0
- package/dist/components/ix-group-item.js +20 -0
- package/dist/components/ix-group-item.js.map +1 -0
- package/dist/components/ix-group.d.ts +3 -0
- package/dist/components/ix-group.js +22 -0
- package/dist/components/ix-group.js.map +1 -0
- package/dist/components/ix-helper-text.d.ts +3 -0
- package/dist/components/ix-helper-text.js +14 -0
- package/dist/components/ix-helper-text.js.map +1 -0
- package/dist/components/ix-icon-button.d.ts +3 -0
- package/dist/components/ix-icon-button.js +16 -0
- package/dist/components/ix-icon-button.js.map +1 -0
- package/dist/components/ix-icon-toggle-button.d.ts +3 -0
- package/dist/components/ix-icon-toggle-button.js +20 -0
- package/dist/components/ix-icon-toggle-button.js.map +1 -0
- package/dist/components/ix-input.d.ts +3 -0
- package/dist/components/ix-input.js +45 -0
- package/dist/components/ix-input.js.map +1 -0
- package/dist/components/ix-key-value-list.d.ts +3 -0
- package/dist/components/ix-key-value-list.js +9 -0
- package/dist/components/ix-key-value-list.js.map +1 -0
- package/dist/components/ix-key-value.d.ts +3 -0
- package/dist/components/ix-key-value.js +13 -0
- package/dist/components/ix-key-value.js.map +1 -0
- package/dist/components/ix-kpi.d.ts +3 -0
- package/dist/components/ix-kpi.js +15 -0
- package/dist/components/ix-kpi.js.map +1 -0
- package/dist/components/ix-layout-auto.d.ts +3 -0
- package/dist/components/ix-layout-auto.js +9 -0
- package/dist/components/ix-layout-auto.js.map +1 -0
- package/dist/components/ix-layout-grid.d.ts +3 -0
- package/dist/components/ix-layout-grid.js +11 -0
- package/dist/components/ix-layout-grid.js.map +1 -0
- package/dist/components/ix-link-button.d.ts +3 -0
- package/dist/components/ix-link-button.js +11 -0
- package/dist/components/ix-link-button.js.map +1 -0
- package/dist/components/ix-menu-about-item.d.ts +3 -0
- package/dist/components/ix-menu-about-item.js +13 -0
- package/dist/components/ix-menu-about-item.js.map +1 -0
- package/dist/components/ix-menu-about-news.d.ts +3 -0
- package/dist/components/ix-menu-about-news.js +19 -0
- package/dist/components/ix-menu-about-news.js.map +1 -0
- package/dist/components/ix-menu-about.d.ts +3 -0
- package/dist/components/ix-menu-about.js +18 -0
- package/dist/components/ix-menu-about.js.map +1 -0
- package/dist/components/ix-menu-avatar-item.d.ts +3 -0
- package/dist/components/ix-menu-avatar-item.js +13 -0
- package/dist/components/ix-menu-avatar-item.js.map +1 -0
- package/dist/components/ix-menu-avatar.d.ts +3 -0
- package/dist/components/ix-menu-avatar.js +20 -0
- package/dist/components/ix-menu-avatar.js.map +1 -0
- package/dist/components/ix-menu-category.d.ts +3 -0
- package/dist/components/ix-menu-category.js +15 -0
- package/dist/components/ix-menu-category.js.map +1 -0
- package/dist/components/ix-menu-item.d.ts +3 -0
- package/dist/components/ix-menu-item.js +20 -0
- package/dist/components/ix-menu-item.js.map +1 -0
- package/dist/components/ix-menu-settings-item.d.ts +3 -0
- package/dist/components/ix-menu-settings-item.js +13 -0
- package/dist/components/ix-menu-settings-item.js.map +1 -0
- package/dist/components/ix-menu-settings.d.ts +3 -0
- package/dist/components/ix-menu-settings.js +18 -0
- package/dist/components/ix-menu-settings.js.map +1 -0
- package/dist/components/ix-menu.d.ts +3 -0
- package/dist/components/ix-menu.js +32 -0
- package/dist/components/ix-menu.js.map +1 -0
- package/dist/components/ix-message-bar.d.ts +3 -0
- package/dist/components/ix-message-bar.js +15 -0
- package/dist/components/ix-message-bar.js.map +1 -0
- package/dist/components/ix-modal-content.d.ts +3 -0
- package/dist/components/ix-modal-content.js +7 -0
- package/dist/components/ix-modal-content.js.map +1 -0
- package/dist/components/ix-modal-footer.d.ts +3 -0
- package/dist/components/ix-modal-footer.js +7 -0
- package/dist/components/ix-modal-footer.js.map +1 -0
- package/dist/components/ix-modal-header.d.ts +3 -0
- package/dist/components/ix-modal-header.js +16 -0
- package/dist/components/ix-modal-header.js.map +1 -0
- package/dist/components/ix-modal.d.ts +3 -0
- package/dist/components/ix-modal.js +20 -0
- package/dist/components/ix-modal.js.map +1 -0
- package/dist/components/ix-number-input.d.ts +3 -0
- package/dist/components/ix-number-input.js +47 -0
- package/dist/components/ix-number-input.js.map +1 -0
- package/dist/components/ix-pagination.d.ts +3 -0
- package/dist/components/ix-pagination.js +25 -0
- package/dist/components/ix-pagination.js.map +1 -0
- package/dist/components/ix-pane-layout.d.ts +3 -0
- package/dist/components/ix-pane-layout.js +11 -0
- package/dist/components/ix-pane-layout.js.map +1 -0
- package/dist/components/ix-pane.d.ts +3 -0
- package/dist/components/ix-pane.js +32 -0
- package/dist/components/ix-pane.js.map +1 -0
- package/dist/components/ix-pill.d.ts +3 -0
- package/dist/components/ix-pill.js +16 -0
- package/dist/components/ix-pill.js.map +1 -0
- package/dist/components/ix-progress-indicator.d.ts +3 -0
- package/dist/components/ix-progress-indicator.js +18 -0
- package/dist/components/ix-progress-indicator.js.map +1 -0
- package/dist/components/ix-push-card.d.ts +3 -0
- package/dist/components/ix-push-card.js +16 -0
- package/dist/components/ix-push-card.js.map +1 -0
- package/dist/components/ix-radio-group.d.ts +3 -0
- package/dist/components/ix-radio-group.js +21 -0
- package/dist/components/ix-radio-group.js.map +1 -0
- package/dist/components/ix-radio.d.ts +3 -0
- package/dist/components/ix-radio.js +21 -0
- package/dist/components/ix-radio.js.map +1 -0
- package/dist/components/ix-range-field.d.ts +3 -0
- package/dist/components/ix-range-field.js +10 -0
- package/dist/components/ix-range-field.js.map +1 -0
- package/dist/components/ix-row.d.ts +3 -0
- package/dist/components/ix-row.js +7 -0
- package/dist/components/ix-row.js.map +1 -0
- package/dist/components/ix-select-item.d.ts +3 -0
- package/dist/components/ix-select-item.js +17 -0
- package/dist/components/ix-select-item.js.map +1 -0
- package/dist/components/ix-select.d.ts +3 -0
- package/dist/components/ix-select.js +53 -0
- package/dist/components/ix-select.js.map +1 -0
- package/dist/components/ix-slider.d.ts +3 -0
- package/dist/components/ix-slider.js +26 -0
- package/dist/components/ix-slider.js.map +1 -0
- package/dist/components/ix-spinner.d.ts +3 -0
- package/dist/components/ix-spinner.js +11 -0
- package/dist/components/ix-spinner.js.map +1 -0
- package/dist/components/ix-split-button.d.ts +3 -0
- package/dist/components/ix-split-button.js +22 -0
- package/dist/components/ix-split-button.js.map +1 -0
- package/dist/components/ix-tab-item.d.ts +3 -0
- package/dist/components/ix-tab-item.js +26 -0
- package/dist/components/ix-tab-item.js.map +1 -0
- package/dist/components/ix-tabs.d.ts +3 -0
- package/dist/components/ix-tabs.js +20 -0
- package/dist/components/ix-tabs.js.map +1 -0
- package/dist/components/ix-textarea.d.ts +3 -0
- package/dist/components/ix-textarea.js +45 -0
- package/dist/components/ix-textarea.js.map +1 -0
- package/dist/components/ix-tile.d.ts +3 -0
- package/dist/components/ix-tile.js +9 -0
- package/dist/components/ix-tile.js.map +1 -0
- package/dist/components/ix-time-input.d.ts +3 -0
- package/dist/components/ix-time-input.js +51 -0
- package/dist/components/ix-time-input.js.map +1 -0
- package/dist/components/ix-time-picker.d.ts +3 -0
- package/dist/components/ix-time-picker.js +31 -0
- package/dist/components/ix-time-picker.js.map +1 -0
- package/dist/components/ix-toast-container.d.ts +3 -0
- package/dist/components/ix-toast-container.js +9 -0
- package/dist/components/ix-toast-container.js.map +1 -0
- package/dist/components/ix-toast.d.ts +3 -0
- package/dist/components/ix-toast.js +19 -0
- package/dist/components/ix-toast.js.map +1 -0
- package/dist/components/ix-toggle-button.d.ts +3 -0
- package/dist/components/ix-toggle-button.js +17 -0
- package/dist/components/ix-toggle-button.js.map +1 -0
- package/dist/components/ix-toggle.d.ts +3 -0
- package/dist/components/ix-toggle.js +25 -0
- package/dist/components/ix-toggle.js.map +1 -0
- package/dist/components/ix-tooltip.d.ts +3 -0
- package/dist/components/ix-tooltip.js +15 -0
- package/dist/components/ix-tooltip.js.map +1 -0
- package/dist/components/ix-tree-item.d.ts +3 -0
- package/dist/components/ix-tree-item.js +18 -0
- package/dist/components/ix-tree-item.js.map +1 -0
- package/dist/components/ix-tree.d.ts +3 -0
- package/dist/components/ix-tree.js +22 -0
- package/dist/components/ix-tree.js.map +1 -0
- package/dist/components/ix-typography.d.ts +3 -0
- package/dist/components/ix-typography.js +12 -0
- package/dist/components/ix-typography.js.map +1 -0
- package/dist/components/ix-upload.d.ts +3 -0
- package/dist/components/ix-upload.js +23 -0
- package/dist/components/ix-upload.js.map +1 -0
- package/dist/components/ix-workflow-step.d.ts +3 -0
- package/dist/components/ix-workflow-step.js +17 -0
- package/dist/components/ix-workflow-step.js.map +1 -0
- package/dist/components/ix-workflow-steps.d.ts +3 -0
- package/dist/components/ix-workflow-steps.js +14 -0
- package/dist/components/ix-workflow-steps.js.map +1 -0
- package/dist/components.d.ts +1 -104
- package/dist/context/IxApplicationContext.vue.js +12 -12
- package/dist/context/IxApplicationContext.vue.js.map +1 -1
- package/dist/context/IxApplicationContext.vue2.js +15 -14
- package/dist/context/IxApplicationContext.vue2.js.map +1 -1
- package/dist/context/context.js +5 -5
- package/dist/context/context.js.map +1 -1
- package/dist/delegate.d.ts +1 -1
- package/dist/delegate.js +23 -18
- package/dist/delegate.js.map +1 -1
- package/dist/index.js +225 -126
- package/dist/index.js.map +1 -1
- package/dist/internal-components.js +4 -14
- package/dist/internal-components.js.map +1 -1
- package/dist/ix-icon.js +5 -5
- package/dist/ix-icon.js.map +1 -1
- package/dist/message/message.d.ts +1 -27
- package/dist/message/message.js +14 -20
- package/dist/message/message.js.map +1 -1
- package/dist/modal/IxOverlay.vue.js +62 -37
- package/dist/modal/IxOverlay.vue.js.map +1 -1
- package/dist/modal/IxOverlay.vue2.js +2 -2
- package/dist/modal/Modal.vue.js +141 -34
- package/dist/modal/Modal.vue.js.map +1 -1
- package/dist/modal/Modal.vue2.js +2 -2
- package/dist/modal/constants.js +4 -3
- package/dist/modal/constants.js.map +1 -1
- package/dist/modal/index.d.ts +3 -2
- package/dist/modal/index.js +28 -18
- package/dist/modal/index.js.map +1 -1
- package/dist/modal/ix-view.js +10 -10
- package/dist/modal/ix-view.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/dist/tab-set.d.ts +17 -0
- package/dist/toast/toast.d.ts +1 -1
- package/dist/toast/toast.js +31 -16
- package/dist/toast/toast.js.map +1 -1
- package/package.json +12 -12
- package/dist/components.js +0 -1390
- package/dist/components.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IxOverlay.vue.js","sources":["../../src/modal/IxOverlay.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n\nimport { computed, defineProps, PropType, ref, VNode, watch } from 'vue';\nimport { VueFrameworkDelegate } from '../delegate';\nimport IxView from './ix-view';\nimport { PORTAL_ID, DATA_PORTAL_ID_ATTRIBUTE } from './constants';\n\n\nconst resolveElementRef = ref<Record<string, (value: Element | PromiseLike<Element>) => void>>({});\nconst viewMap = ref<Record<string, VNode>>({})\n\nconst views = computed(() => {\n return Object.keys(viewMap.value).map((key) => {\n return {\n id: key,\n node: viewMap.value[key],\n }\n })\n})\n\nconst props = defineProps({\n delegate: {\n type: Object as PropType<VueFrameworkDelegate>,\n required: true,\n },\n})\n\nwatch(() => props.delegate, (delegate) => {\n if (!delegate) {\n return;\n }\n\n const addOverlay = (id: string, view: VNode) => {\n const _views = { ...viewMap.value };\n _views[id] = view;\n viewMap.value = _views;\n }\n\n const removeOverlay = (id: string) => {\n const _views = { ...viewMap.value };\n delete _views[id];\n viewMap.value = _views;\n }\n\n delegate.attachViewToPortal = async (id: string, view: VNode) => {\n addOverlay(id, view);\n return new Promise<Element>((resolve) => {\n const r = { ...resolveElementRef.value };\n r[id] = resolve;\n resolveElementRef.value = r;\n });\n }\n\n delegate.removeViewFromPortal = async (id: string) => {\n removeOverlay(id);\n }\n\n delegate.portalReady()\n\n}, { immediate: true });\n\nwatch(() => views.value, (newViews) => {\n newViews.forEach((view) => {\n const resolveQueue = { ...resolveElementRef.value };\n const el = document.querySelector(`[${DATA_PORTAL_ID_ATTRIBUTE}=\"${view.id}\"]`);\n\n const resolve = resolveQueue[view.id]\n\n if (el && el.children.length === 1 && resolve && typeof resolve === 'function') {\n const view = el.children[0];\n resolve(view);\n }\n\n })\n}, { flush: 'post' });\n\n\n\n</script>\n\n<template>\n <IxView v-for=\"view in views\" :key=\"view.id\" :id=\"view.id\" :teleportId=\"`#${PORTAL_ID}`\" :node=\"view.node\">\n </IxView>\n</template>"],"names":["
|
|
1
|
+
{"version":3,"file":"IxOverlay.vue.js","sources":["../../src/modal/IxOverlay.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n\nimport { computed, defineProps, PropType, ref, VNode, watch } from 'vue';\nimport { VueFrameworkDelegate } from '../delegate';\nimport IxView from './ix-view';\nimport { PORTAL_ID, DATA_PORTAL_ID_ATTRIBUTE } from './constants';\n\n\nconst resolveElementRef = ref<Record<string, (value: Element | PromiseLike<Element>) => void>>({});\nconst viewMap = ref<Record<string, VNode>>({})\n\nconst views = computed(() => {\n return Object.keys(viewMap.value).map((key) => {\n return {\n id: key,\n node: viewMap.value[key],\n }\n })\n})\n\nconst props = defineProps({\n delegate: {\n type: Object as PropType<VueFrameworkDelegate>,\n required: true,\n },\n})\n\nwatch(() => props.delegate, (delegate) => {\n if (!delegate) {\n return;\n }\n\n const addOverlay = (id: string, view: VNode) => {\n const _views = { ...viewMap.value };\n _views[id] = view;\n viewMap.value = _views;\n }\n\n const removeOverlay = (id: string) => {\n const _views = { ...viewMap.value };\n delete _views[id];\n viewMap.value = _views;\n }\n\n delegate.attachViewToPortal = async (id: string, view: VNode) => {\n addOverlay(id, view);\n return new Promise<Element>((resolve) => {\n const r = { ...resolveElementRef.value };\n r[id] = resolve;\n resolveElementRef.value = r;\n });\n }\n\n delegate.removeViewFromPortal = async (id: string) => {\n removeOverlay(id);\n }\n\n delegate.portalReady()\n\n}, { immediate: true });\n\nwatch(() => views.value, (newViews) => {\n newViews.forEach((view) => {\n const resolveQueue = { ...resolveElementRef.value };\n const el = document.querySelector(`[${DATA_PORTAL_ID_ATTRIBUTE}=\"${view.id}\"]`);\n\n const resolve = resolveQueue[view.id]\n\n if (el && el.children.length === 1 && resolve && typeof resolve === 'function') {\n const view = el.children[0];\n resolve(view);\n }\n\n })\n}, { flush: 'post' });\n\n\n\n</script>\n\n<template>\n <IxView v-for=\"view in views\" :key=\"view.id\" :id=\"view.id\" :teleportId=\"`#${PORTAL_ID}`\" :node=\"view.node\">\n </IxView>\n</template>"],"names":["view","_createElementBlock","_Fragment","_renderList","_createBlock","_unref"],"mappings":";;;;;;;;;;;;AAQA,UAAM,oBAAoB,IAAqE,EAAE;AACjG,UAAM,UAAU,IAA2B,EAAE;AAE7C,UAAM,QAAQ,SAAS,MAAM;AACzB,aAAO,OAAO,KAAK,QAAQ,KAAK,EAAE,IAAI,CAAC,QAAQ;AAC3C,eAAO;AAAA,UACH,IAAI;AAAA,UACJ,MAAM,QAAQ,MAAM,GAAG;AAAA,QAAA;AAAA,MAE/B,CAAC;AAAA,IACL,CAAC;AAED,UAAM,QAAQ;AAOd,UAAM,MAAM,MAAM,UAAU,CAAC,aAAa;AACtC,UAAI,CAAC,UAAU;AACX;AAAA,MACJ;AAEA,YAAM,aAAa,CAAC,IAAY,SAAgB;AAC5C,cAAM,SAAS,EAAE,GAAG,QAAQ,MAAA;AAC5B,eAAO,EAAE,IAAI;AACb,gBAAQ,QAAQ;AAAA,MACpB;AAEA,YAAM,gBAAgB,CAAC,OAAe;AAClC,cAAM,SAAS,EAAE,GAAG,QAAQ,MAAA;AAC5B,eAAO,OAAO,EAAE;AAChB,gBAAQ,QAAQ;AAAA,MACpB;AAEA,eAAS,qBAAqB,OAAO,IAAY,SAAgB;AAC7D,mBAAW,IAAI,IAAI;AACnB,eAAO,IAAI,QAAiB,CAAC,YAAY;AACrC,gBAAM,IAAI,EAAE,GAAG,kBAAkB,MAAA;AACjC,YAAE,EAAE,IAAI;AACR,4BAAkB,QAAQ;AAAA,QAC9B,CAAC;AAAA,MACL;AAEA,eAAS,uBAAuB,OAAO,OAAe;AAClD,sBAAc,EAAE;AAAA,MACpB;AAEA,eAAS,YAAA;AAAA,IAEb,GAAG,EAAE,WAAW,MAAM;AAEtB,UAAM,MAAM,MAAM,OAAO,CAAC,aAAa;AACnC,eAAS,QAAQ,CAAC,SAAS;AACvB,cAAM,eAAe,EAAE,GAAG,kBAAkB,MAAA;AAC5C,cAAM,KAAK,SAAS,cAAc,IAAI,wBAAwB,KAAK,KAAK,EAAE,IAAI;AAE9E,cAAM,UAAU,aAAa,KAAK,EAAE;AAEpC,YAAI,MAAM,GAAG,SAAS,WAAW,KAAK,WAAW,OAAO,YAAY,YAAY;AAC5E,gBAAMA,QAAO,GAAG,SAAS,CAAC;AAC1B,kBAAQA,KAAI;AAAA,QAChB;AAAA,MAEJ,CAAC;AAAA,IACL,GAAG,EAAE,OAAO,QAAQ;;8BAOhBC,mBACSC,UAAA,MAAAC,WADc,MAAA,OAAK,CAAb,SAAI;4BAAnBC,YACSC,MAAA,MAAA,GAAA;AAAA,UADsB,KAAK,KAAK;AAAA,UAAK,IAAI,KAAK;AAAA,UAAK,gBAAgBA,MAAA,SAAA,CAAS;AAAA,UAAK,MAAM,KAAK;AAAA,QAAA;;;;;"}
|
package/dist/modal/Modal.vue.js
CHANGED
|
@@ -1,72 +1,179 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
2
|
+
import "@stencil/vue-output-target/runtime";
|
|
3
|
+
import "@siemens/ix/components/ix-action-card.js";
|
|
4
|
+
import "@siemens/ix/components/ix-application.js";
|
|
5
|
+
import "@siemens/ix/components/ix-application-header.js";
|
|
6
|
+
import "@siemens/ix/components/ix-avatar.js";
|
|
7
|
+
import "@siemens/ix/components/ix-blind.js";
|
|
8
|
+
import "@siemens/ix/components/ix-breadcrumb.js";
|
|
9
|
+
import "@siemens/ix/components/ix-breadcrumb-item.js";
|
|
10
|
+
import "@siemens/ix/components/ix-button.js";
|
|
11
|
+
import "@siemens/ix/components/ix-card.js";
|
|
12
|
+
import "@siemens/ix/components/ix-card-accordion.js";
|
|
13
|
+
import "@siemens/ix/components/ix-card-content.js";
|
|
14
|
+
import "@siemens/ix/components/ix-card-list.js";
|
|
15
|
+
import "@siemens/ix/components/ix-card-title.js";
|
|
16
|
+
import "@siemens/ix/components/ix-category-filter.js";
|
|
17
|
+
import "@siemens/ix/components/ix-checkbox.js";
|
|
18
|
+
import "@siemens/ix/components/ix-checkbox-group.js";
|
|
19
|
+
import "@siemens/ix/components/ix-chip.js";
|
|
20
|
+
import "@siemens/ix/components/ix-col.js";
|
|
21
|
+
import "@siemens/ix/components/ix-content.js";
|
|
22
|
+
import "@siemens/ix/components/ix-content-header.js";
|
|
23
|
+
import "@siemens/ix/components/ix-custom-field.js";
|
|
24
|
+
import "@siemens/ix/components/ix-date-dropdown.js";
|
|
25
|
+
import "@siemens/ix/components/ix-date-input.js";
|
|
26
|
+
import "@siemens/ix/components/ix-date-picker.js";
|
|
27
|
+
import "@siemens/ix/components/ix-datetime-input.js";
|
|
28
|
+
import "@siemens/ix/components/ix-datetime-picker.js";
|
|
29
|
+
import "@siemens/ix/components/ix-divider.js";
|
|
30
|
+
import "@siemens/ix/components/ix-dropdown.js";
|
|
31
|
+
import "@siemens/ix/components/ix-dropdown-button.js";
|
|
32
|
+
import "@siemens/ix/components/ix-dropdown-header.js";
|
|
33
|
+
import "@siemens/ix/components/ix-dropdown-item.js";
|
|
34
|
+
import "@siemens/ix/components/ix-dropdown-quick-actions.js";
|
|
35
|
+
import "@siemens/ix/components/ix-empty-state.js";
|
|
36
|
+
import "@siemens/ix/components/ix-event-list.js";
|
|
37
|
+
import "@siemens/ix/components/ix-event-list-item.js";
|
|
38
|
+
import "@siemens/ix/components/ix-expanding-search.js";
|
|
39
|
+
import "@siemens/ix/components/ix-field-label.js";
|
|
40
|
+
import "@siemens/ix/components/ix-filter-chip.js";
|
|
41
|
+
import "@siemens/ix/components/ix-flip-tile.js";
|
|
42
|
+
import "@siemens/ix/components/ix-flip-tile-content.js";
|
|
43
|
+
import "@siemens/ix/components/ix-group.js";
|
|
44
|
+
import "@siemens/ix/components/ix-group-context-menu.js";
|
|
45
|
+
import "@siemens/ix/components/ix-group-item.js";
|
|
46
|
+
import "@siemens/ix/components/ix-helper-text.js";
|
|
47
|
+
import "@siemens/ix/components/ix-icon-button.js";
|
|
48
|
+
import "@siemens/ix/components/ix-icon-toggle-button.js";
|
|
49
|
+
import "@siemens/ix/components/ix-input.js";
|
|
50
|
+
import "@siemens/ix/components/ix-key-value.js";
|
|
51
|
+
import "@siemens/ix/components/ix-key-value-list.js";
|
|
52
|
+
import "@siemens/ix/components/ix-kpi.js";
|
|
53
|
+
import "@siemens/ix/components/ix-layout-auto.js";
|
|
54
|
+
import "@siemens/ix/components/ix-layout-grid.js";
|
|
55
|
+
import "@siemens/ix/components/ix-link-button.js";
|
|
56
|
+
import "@siemens/ix/components/ix-menu.js";
|
|
57
|
+
import "@siemens/ix/components/ix-menu-about.js";
|
|
58
|
+
import "@siemens/ix/components/ix-menu-about-item.js";
|
|
59
|
+
import "@siemens/ix/components/ix-menu-about-news.js";
|
|
60
|
+
import "@siemens/ix/components/ix-menu-avatar.js";
|
|
61
|
+
import "@siemens/ix/components/ix-menu-avatar-item.js";
|
|
62
|
+
import "@siemens/ix/components/ix-menu-category.js";
|
|
63
|
+
import "@siemens/ix/components/ix-menu-item.js";
|
|
64
|
+
import "@siemens/ix/components/ix-menu-settings.js";
|
|
65
|
+
import "@siemens/ix/components/ix-menu-settings-item.js";
|
|
66
|
+
import "@siemens/ix/components/ix-message-bar.js";
|
|
67
|
+
import { IxModal } from "../components/ix-modal.js";
|
|
68
|
+
import "@siemens/ix/components/ix-modal-content.js";
|
|
69
|
+
import "@siemens/ix/components/ix-modal-footer.js";
|
|
70
|
+
import "@siemens/ix/components/ix-modal-header.js";
|
|
71
|
+
import "@siemens/ix/components/ix-number-input.js";
|
|
72
|
+
import "@siemens/ix/components/ix-pagination.js";
|
|
73
|
+
import "@siemens/ix/components/ix-pane.js";
|
|
74
|
+
import "@siemens/ix/components/ix-pane-layout.js";
|
|
75
|
+
import "@siemens/ix/components/ix-pill.js";
|
|
76
|
+
import "@siemens/ix/components/ix-progress-indicator.js";
|
|
77
|
+
import "@siemens/ix/components/ix-push-card.js";
|
|
78
|
+
import "@siemens/ix/components/ix-radio.js";
|
|
79
|
+
import "@siemens/ix/components/ix-radio-group.js";
|
|
80
|
+
import "@siemens/ix/components/ix-range-field.js";
|
|
81
|
+
import "@siemens/ix/components/ix-row.js";
|
|
82
|
+
import "@siemens/ix/components/ix-select.js";
|
|
83
|
+
import "@siemens/ix/components/ix-select-item.js";
|
|
84
|
+
import "@siemens/ix/components/ix-slider.js";
|
|
85
|
+
import "@siemens/ix/components/ix-spinner.js";
|
|
86
|
+
import "@siemens/ix/components/ix-split-button.js";
|
|
87
|
+
import "@siemens/ix/components/ix-tab-item.js";
|
|
88
|
+
import "@siemens/ix/components/ix-tabs.js";
|
|
89
|
+
import "@siemens/ix/components/ix-textarea.js";
|
|
90
|
+
import "@siemens/ix/components/ix-tile.js";
|
|
91
|
+
import "@siemens/ix/components/ix-time-input.js";
|
|
92
|
+
import "@siemens/ix/components/ix-time-picker.js";
|
|
93
|
+
import "@siemens/ix/components/ix-toast.js";
|
|
94
|
+
import "@siemens/ix/components/ix-toast-container.js";
|
|
95
|
+
import "@siemens/ix/components/ix-toggle.js";
|
|
96
|
+
import "@siemens/ix/components/ix-toggle-button.js";
|
|
97
|
+
import "@siemens/ix/components/ix-tooltip.js";
|
|
98
|
+
import "@siemens/ix/components/ix-tree.js";
|
|
99
|
+
import "@siemens/ix/components/ix-tree-item.js";
|
|
100
|
+
import "@siemens/ix/components/ix-typography.js";
|
|
101
|
+
import "@siemens/ix/components/ix-upload.js";
|
|
102
|
+
import "@siemens/ix/components/ix-workflow-step.js";
|
|
103
|
+
import "@siemens/ix/components/ix-workflow-steps.js";
|
|
104
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
105
|
__name: "Modal",
|
|
5
106
|
props: {
|
|
6
107
|
animation: {
|
|
7
108
|
type: [Boolean, void 0],
|
|
8
|
-
required:
|
|
109
|
+
required: false,
|
|
9
110
|
default: void 0
|
|
10
111
|
},
|
|
11
112
|
backdrop: {
|
|
12
113
|
type: [Boolean, void 0],
|
|
13
|
-
required:
|
|
114
|
+
required: false,
|
|
14
115
|
default: void 0
|
|
15
116
|
},
|
|
16
117
|
beforeDismiss: {
|
|
17
118
|
type: Function,
|
|
18
|
-
required:
|
|
119
|
+
required: false,
|
|
19
120
|
default: void 0
|
|
20
121
|
},
|
|
21
122
|
centered: {
|
|
22
123
|
type: [Boolean, void 0],
|
|
23
|
-
required:
|
|
124
|
+
required: false,
|
|
24
125
|
default: void 0
|
|
25
126
|
},
|
|
26
127
|
closeOnBackdropClick: {
|
|
27
128
|
type: [Boolean, void 0],
|
|
28
|
-
required:
|
|
129
|
+
required: false,
|
|
29
130
|
default: void 0
|
|
30
131
|
},
|
|
31
132
|
closeOnEscape: {
|
|
32
133
|
type: [Boolean, void 0],
|
|
33
|
-
required:
|
|
134
|
+
required: false,
|
|
34
135
|
default: void 0
|
|
35
136
|
},
|
|
36
137
|
size: {
|
|
37
138
|
type: String,
|
|
38
|
-
required:
|
|
139
|
+
required: false,
|
|
39
140
|
default: void 0
|
|
40
141
|
}
|
|
41
142
|
},
|
|
42
143
|
emits: ["dialogClose", "dialogDismiss"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
144
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
145
|
+
const modalRef = ref();
|
|
146
|
+
const emit = __emit;
|
|
147
|
+
const close = (result) => {
|
|
148
|
+
modalRef.value?.$el.closeModal(result);
|
|
149
|
+
};
|
|
150
|
+
const dismiss = (result) => {
|
|
151
|
+
modalRef.value?.$el.dismissModal(result);
|
|
152
|
+
};
|
|
153
|
+
__expose({
|
|
154
|
+
close,
|
|
155
|
+
dismiss,
|
|
156
|
+
modalElement: modalRef
|
|
157
|
+
});
|
|
158
|
+
return (_ctx, _cache) => {
|
|
159
|
+
return openBlock(), createBlock(unref(IxModal), mergeProps(_ctx.$props, {
|
|
160
|
+
onDialogClose: _cache[0] || (_cache[0] = ($event) => emit("dialogClose", $event)),
|
|
161
|
+
onDialogDismiss: _cache[1] || (_cache[1] = ($event) => emit("dialogDismiss", $event)),
|
|
162
|
+
ref_key: "modalRef",
|
|
163
|
+
ref: modalRef
|
|
164
|
+
}), {
|
|
165
|
+
default: withCtx(() => [
|
|
166
|
+
renderSlot(_ctx.$slots, "default", {
|
|
167
|
+
closeModal: close,
|
|
168
|
+
dismissModal: dismiss
|
|
169
|
+
})
|
|
170
|
+
]),
|
|
171
|
+
_: 3
|
|
172
|
+
}, 16);
|
|
48
173
|
};
|
|
49
|
-
return t({
|
|
50
|
-
close: d,
|
|
51
|
-
dismiss: a,
|
|
52
|
-
modalElement: o
|
|
53
|
-
}), (e, l) => (u(), p(m(y), v(e.$props, {
|
|
54
|
-
onDialogClose: l[0] || (l[0] = (s) => i("dialogClose", s)),
|
|
55
|
-
onDialogDismiss: l[1] || (l[1] = (s) => i("dialogDismiss", s)),
|
|
56
|
-
ref_key: "modalRef",
|
|
57
|
-
ref: o
|
|
58
|
-
}), {
|
|
59
|
-
default: c(() => [
|
|
60
|
-
g(e.$slots, "default", {
|
|
61
|
-
closeModal: d,
|
|
62
|
-
dismissModal: a
|
|
63
|
-
})
|
|
64
|
-
]),
|
|
65
|
-
_: 3
|
|
66
|
-
}, 16));
|
|
67
174
|
}
|
|
68
175
|
});
|
|
69
176
|
export {
|
|
70
|
-
|
|
177
|
+
_sfc_main as default
|
|
71
178
|
};
|
|
72
179
|
//# sourceMappingURL=Modal.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.vue.js","sources":["../../src/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { defineProps, PropType, ref } from 'vue'\nimport { IxModal } from '../components'\nimport { HTMLRefElement } from '..'\nimport type { ModalSlotProps } from './modal-slot-props'\nimport type { IxModalSize, IxModalCustomEvent } from '@siemens/ix';\n\nconst modalRef = ref<HTMLRefElement<HTMLIxModalElement>>()\n\ndefineProps(\n {\n animation: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n backdrop: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n beforeDismiss: {\n type: Function as PropType<(reason?: any) => boolean | Promise<boolean>>,\n required: false,\n default: undefined,\n },\n centered: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n closeOnBackdropClick: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n closeOnEscape: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n size: {\n type: String as PropType<IxModalSize>,\n required: false,\n default: undefined,\n },\n }\n)\n\nconst emit = defineEmits<{ 'dialogClose': [IxModalCustomEvent<any>], 'dialogDismiss': [IxModalCustomEvent<any>] }>()\n\nconst close: ModalSlotProps['closeModal'] = (result) => {\n modalRef.value?.$el.closeModal(result)\n}\n\nconst dismiss: ModalSlotProps['dismissModal'] = (result) => {\n modalRef.value?.$el.dismissModal(result)\n}\n\ndefineExpose({\n close,\n dismiss,\n modalElement: modalRef,\n})\n\n</script>\n\n\n<template>\n <IxModal v-bind=\"$props\" @dialog-close=\"emit('dialogClose', $event)\" @dialog-dismiss=\"emit('dialogDismiss', $event)\"\n ref=\"modalRef\">\n <slot :closeModal=\"close\" :dismissModal=\"dismiss\"></slot>\n </IxModal>\n</template>"],"names":["
|
|
1
|
+
{"version":3,"file":"Modal.vue.js","sources":["../../src/modal/Modal.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { defineProps, PropType, ref } from 'vue'\nimport { IxModal } from '../components'\nimport { HTMLRefElement } from '..'\nimport type { ModalSlotProps } from './modal-slot-props'\nimport type { IxModalSize, IxModalCustomEvent } from '@siemens/ix';\n\nconst modalRef = ref<HTMLRefElement<HTMLIxModalElement>>()\n\ndefineProps(\n {\n animation: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n backdrop: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n beforeDismiss: {\n type: Function as PropType<(reason?: any) => boolean | Promise<boolean>>,\n required: false,\n default: undefined,\n },\n centered: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n closeOnBackdropClick: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n closeOnEscape: {\n type: [Boolean, undefined],\n required: false,\n default: undefined,\n },\n size: {\n type: String as PropType<IxModalSize>,\n required: false,\n default: undefined,\n },\n }\n)\n\nconst emit = defineEmits<{ 'dialogClose': [IxModalCustomEvent<any>], 'dialogDismiss': [IxModalCustomEvent<any>] }>()\n\nconst close: ModalSlotProps['closeModal'] = (result) => {\n modalRef.value?.$el.closeModal(result)\n}\n\nconst dismiss: ModalSlotProps['dismissModal'] = (result) => {\n modalRef.value?.$el.dismissModal(result)\n}\n\ndefineExpose({\n close,\n dismiss,\n modalElement: modalRef,\n})\n\n</script>\n\n\n<template>\n <IxModal v-bind=\"$props\" @dialog-close=\"emit('dialogClose', $event)\" @dialog-dismiss=\"emit('dialogDismiss', $event)\"\n ref=\"modalRef\">\n <slot :closeModal=\"close\" :dismissModal=\"dismiss\"></slot>\n </IxModal>\n</template>"],"names":["_createBlock","_unref","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,UAAM,WAAW,IAAA;AA0CjB,UAAM,OAAO;AAEb,UAAM,QAAsC,CAAC,WAAW;AACpD,eAAS,OAAO,IAAI,WAAW,MAAM;AAAA,IACzC;AAEA,UAAM,UAA0C,CAAC,WAAW;AACxD,eAAS,OAAO,IAAI,aAAa,MAAM;AAAA,IAC3C;AAEA,aAAa;AAAA,MACT;AAAA,MACA;AAAA,MACA,cAAc;AAAA,IAAA,CACjB;;0BAMGA,YAGUC,MAAA,OAAA,GAHVC,WAGU,KAAA,QAHa;AAAA,QAAG,eAAY,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAA,WAAE,KAAI,eAAgB,MAAM;AAAA,QAAI,iBAAc,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAA,WAAE,KAAI,iBAAkB,MAAM;AAAA,iBAC1G;AAAA,QAAJ,KAAI;AAAA,MAAA;yBACJ,MAAyD;AAAA,UAAzDC,WAAyD,KAAA,QAAA,WAAA;AAAA,YAAlD,YAAY;AAAA,YAAQ,cAAc;AAAA,UAAA;;;;;;;"}
|
package/dist/modal/Modal.vue2.js
CHANGED
package/dist/modal/constants.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const PORTAL_ID = "ix-portal";
|
|
2
|
+
const DATA_PORTAL_ID_ATTRIBUTE = "data-portal-id";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
DATA_PORTAL_ID_ATTRIBUTE,
|
|
5
|
+
PORTAL_ID
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/modal/constants.ts"],"sourcesContent":["export const PORTAL_ID = 'ix-portal';\nexport const DATA_PORTAL_ID_ATTRIBUTE = 'data-portal-id';\n"],"names":[
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/modal/constants.ts"],"sourcesContent":["export const PORTAL_ID = 'ix-portal';\nexport const DATA_PORTAL_ID_ATTRIBUTE = 'data-portal-id';\n"],"names":[],"mappings":"AAAO,MAAM,YAAY;AAClB,MAAM,2BAA2B;"}
|
package/dist/modal/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ModalConfig as IxModalConfig, ModalInstance as IxModalInstance, ModalLoadingContext } from '@siemens/ix';
|
|
1
|
+
import { type ModalConfig as IxModalConfig, type ModalInstance as IxModalInstance, type ModalLoadingContext, type ModalLoadingOptions } from '@siemens/ix';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
|
+
export type { ModalLoadingOptions } from '@siemens/ix';
|
|
3
4
|
export { default as Modal } from './Modal.vue';
|
|
4
5
|
export { default as IxOverlay } from './IxOverlay.vue';
|
|
5
6
|
export * from './constants';
|
|
@@ -8,6 +9,6 @@ export type ModalConfig = {
|
|
|
8
9
|
content: VNode;
|
|
9
10
|
};
|
|
10
11
|
export declare function showModal(config: Omit<IxModalConfig, 'content'> & ModalConfig): Promise<IxModalInstance<any>>;
|
|
11
|
-
export declare function showModalLoading(
|
|
12
|
+
export declare function showModalLoading(options: ModalLoadingOptions): Promise<ModalLoadingContext>;
|
|
12
13
|
export declare function dismissModal(modalInstance: IxModalInstance): void;
|
|
13
14
|
export declare function closeModal<T = any>(modalInstance: IxModalInstance, reason?: T): void;
|
package/dist/modal/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { showModal as
|
|
2
|
-
import { defineCustomElement
|
|
1
|
+
import { showModal as showModal$1, createShowModalLoading, closeModal as closeModal$1, dismissModal as dismissModal$1 } from "@siemens/ix/components";
|
|
2
|
+
import { defineCustomElement } from "@siemens/ix/components/ix-modal.js";
|
|
3
|
+
import { defineCustomElement as defineCustomElement$1 } from "@siemens/ix/components/ix-modal-loading.js";
|
|
3
4
|
import "vue";
|
|
4
5
|
import "@stencil/vue-output-target/runtime";
|
|
5
6
|
import "@siemens/ix/components/ix-action-card.js";
|
|
@@ -26,9 +27,9 @@ import "@siemens/ix/components/ix-custom-field.js";
|
|
|
26
27
|
import "@siemens/ix/components/ix-date-dropdown.js";
|
|
27
28
|
import "@siemens/ix/components/ix-date-input.js";
|
|
28
29
|
import "@siemens/ix/components/ix-date-picker.js";
|
|
30
|
+
import "@siemens/ix/components/ix-datetime-input.js";
|
|
29
31
|
import "@siemens/ix/components/ix-datetime-picker.js";
|
|
30
32
|
import "@siemens/ix/components/ix-divider.js";
|
|
31
|
-
import "@siemens/ix/components/ix-drawer.js";
|
|
32
33
|
import "@siemens/ix/components/ix-dropdown.js";
|
|
33
34
|
import "@siemens/ix/components/ix-dropdown-button.js";
|
|
34
35
|
import "@siemens/ix/components/ix-dropdown-header.js";
|
|
@@ -49,7 +50,6 @@ import "@siemens/ix/components/ix-helper-text.js";
|
|
|
49
50
|
import "@siemens/ix/components/ix-icon-button.js";
|
|
50
51
|
import "@siemens/ix/components/ix-icon-toggle-button.js";
|
|
51
52
|
import "@siemens/ix/components/ix-input.js";
|
|
52
|
-
import "@siemens/ix/components/ix-input-group.js";
|
|
53
53
|
import "@siemens/ix/components/ix-key-value.js";
|
|
54
54
|
import "@siemens/ix/components/ix-key-value-list.js";
|
|
55
55
|
import "@siemens/ix/components/ix-kpi.js";
|
|
@@ -79,6 +79,7 @@ import "@siemens/ix/components/ix-progress-indicator.js";
|
|
|
79
79
|
import "@siemens/ix/components/ix-push-card.js";
|
|
80
80
|
import "@siemens/ix/components/ix-radio.js";
|
|
81
81
|
import "@siemens/ix/components/ix-radio-group.js";
|
|
82
|
+
import "@siemens/ix/components/ix-range-field.js";
|
|
82
83
|
import "@siemens/ix/components/ix-row.js";
|
|
83
84
|
import "@siemens/ix/components/ix-select.js";
|
|
84
85
|
import "@siemens/ix/components/ix-select-item.js";
|
|
@@ -100,27 +101,36 @@ import "@siemens/ix/components/ix-tree.js";
|
|
|
100
101
|
import "@siemens/ix/components/ix-tree-item.js";
|
|
101
102
|
import "@siemens/ix/components/ix-typography.js";
|
|
102
103
|
import "@siemens/ix/components/ix-upload.js";
|
|
103
|
-
import "@siemens/ix/components/ix-validation-tooltip.js";
|
|
104
104
|
import "@siemens/ix/components/ix-workflow-step.js";
|
|
105
105
|
import "@siemens/ix/components/ix-workflow-steps.js";
|
|
106
106
|
import "./ix-view.js";
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
const showModalWithDependencies = showModal$1.withDependencies([
|
|
108
|
+
{ tag: "ix-modal", define: defineCustomElement }
|
|
109
|
+
]);
|
|
110
|
+
const showModalLoadingWithDependencies = createShowModalLoading([
|
|
111
|
+
{ tag: "ix-modal", define: defineCustomElement },
|
|
112
|
+
{ tag: "ix-modal-loading", define: defineCustomElement$1 }
|
|
113
|
+
]);
|
|
114
|
+
async function showModal(config) {
|
|
115
|
+
return showModalWithDependencies(config);
|
|
110
116
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
117
|
+
function showModalLoading(options) {
|
|
118
|
+
return showModalLoadingWithDependencies(options);
|
|
113
119
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
120
|
+
function dismissModal(modalInstance) {
|
|
121
|
+
if (modalInstance?.htmlElement) {
|
|
122
|
+
dismissModal$1(modalInstance.htmlElement);
|
|
123
|
+
}
|
|
116
124
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
125
|
+
function closeModal(modalInstance, reason) {
|
|
126
|
+
if (modalInstance?.htmlElement) {
|
|
127
|
+
closeModal$1(modalInstance.htmlElement, reason);
|
|
128
|
+
}
|
|
119
129
|
}
|
|
120
130
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
131
|
+
closeModal,
|
|
132
|
+
dismissModal,
|
|
133
|
+
showModal,
|
|
134
|
+
showModalLoading
|
|
125
135
|
};
|
|
126
136
|
//# sourceMappingURL=index.js.map
|
package/dist/modal/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/modal/index.ts"],"sourcesContent":["import {\n ModalConfig as IxModalConfig,\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/modal/index.ts"],"sourcesContent":["import {\n type ModalConfig as IxModalConfig,\n type ModalInstance as IxModalInstance,\n type ModalLoadingContext,\n type ModalLoadingOptions,\n} from '@siemens/ix';\nimport {\n closeModal as _closeModal,\n createShowModalLoading,\n dismissModal as _dismissModal,\n showModal as _showModal,\n} from '@siemens/ix/components';\nimport { VNode } from 'vue';\nimport { defineCustomElement as defineIxModal } from '@siemens/ix/components/ix-modal.js';\nimport { defineCustomElement as defineIxModalLoading } from '@siemens/ix/components/ix-modal-loading.js';\n\nexport type { ModalLoadingOptions } from '@siemens/ix';\n\nconst showModalWithDependencies = _showModal.withDependencies([\n { tag: 'ix-modal', define: defineIxModal },\n]);\n\nconst showModalLoadingWithDependencies = createShowModalLoading([\n { tag: 'ix-modal', define: defineIxModal },\n { tag: 'ix-modal-loading', define: defineIxModalLoading },\n]);\n\nexport { default as Modal } from './Modal.vue';\nexport { default as IxOverlay } from './IxOverlay.vue';\nexport * from './constants';\nexport * from './modal-slot-props';\n\nexport type ModalConfig = {\n content: VNode;\n};\n\nexport async function showModal(\n config: Omit<IxModalConfig, 'content'> & ModalConfig\n) {\n return showModalWithDependencies(config);\n}\n\nexport function showModalLoading(\n options: ModalLoadingOptions\n): Promise<ModalLoadingContext> {\n return showModalLoadingWithDependencies(options);\n}\n\nexport function dismissModal(modalInstance: IxModalInstance) {\n if (modalInstance?.htmlElement) {\n _dismissModal(modalInstance.htmlElement);\n }\n}\n\nexport function closeModal<T = any>(\n modalInstance: IxModalInstance,\n reason?: T\n) {\n if (modalInstance?.htmlElement) {\n _closeModal(modalInstance.htmlElement, reason);\n }\n}\n"],"names":["_showModal","defineIxModal","defineIxModalLoading","_dismissModal","_closeModal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,4BAA4BA,YAAW,iBAAiB;AAAA,EAC5D,EAAE,KAAK,YAAY,QAAQC,oBAAA;AAC7B,CAAC;AAED,MAAM,mCAAmC,uBAAuB;AAAA,EAC9D,EAAE,KAAK,YAAY,QAAQA,oBAAA;AAAA,EAC3B,EAAE,KAAK,oBAAoB,QAAQC,sBAAA;AACrC,CAAC;AAWD,eAAsB,UACpB,QACA;AACA,SAAO,0BAA0B,MAAM;AACzC;AAEO,SAAS,iBACd,SAC8B;AAC9B,SAAO,iCAAiC,OAAO;AACjD;AAEO,SAAS,aAAa,eAAgC;AAC3D,MAAI,eAAe,aAAa;AAC9BC,mBAAc,cAAc,WAAW;AAAA,EACzC;AACF;AAEO,SAAS,WACd,eACA,QACA;AACA,MAAI,eAAe,aAAa;AAC9BC,iBAAY,cAAc,aAAa,MAAM;AAAA,EAC/C;AACF;"}
|
package/dist/modal/ix-view.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { DATA_PORTAL_ID_ATTRIBUTE
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, h, Teleport } from "vue";
|
|
2
|
+
import { DATA_PORTAL_ID_ATTRIBUTE } from "./constants.js";
|
|
3
|
+
const IxView = defineComponent({
|
|
4
4
|
name: "IxView",
|
|
5
5
|
props: {
|
|
6
6
|
teleportId: {
|
|
7
7
|
type: String,
|
|
8
|
-
required:
|
|
8
|
+
required: true
|
|
9
9
|
},
|
|
10
10
|
id: {
|
|
11
11
|
type: String,
|
|
12
|
-
required:
|
|
12
|
+
required: true
|
|
13
13
|
},
|
|
14
14
|
node: {
|
|
15
15
|
type: Object,
|
|
16
|
-
required:
|
|
16
|
+
required: true
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
render() {
|
|
20
|
-
const
|
|
20
|
+
const div = h(
|
|
21
21
|
"div",
|
|
22
|
-
{ [
|
|
22
|
+
{ [DATA_PORTAL_ID_ATTRIBUTE]: this.id, style: "display: contents" },
|
|
23
23
|
this.node
|
|
24
24
|
);
|
|
25
|
-
return
|
|
25
|
+
return h(Teleport, { to: this.teleportId }, div);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
IxView as default
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=ix-view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ix-view.js","sources":["../../src/modal/ix-view.ts"],"sourcesContent":["import { defineComponent, h, PropType, VNode, Teleport } from 'vue';\nimport { DATA_PORTAL_ID_ATTRIBUTE } from './constants';\n\nexport default defineComponent({\n name: 'IxView',\n props: {\n teleportId: {\n type: String,\n required: true,\n },\n id: {\n type: String,\n required: true,\n },\n node: {\n type: Object as PropType<VNode>,\n required: true,\n },\n },\n render() {\n const div = h(\n 'div',\n { [DATA_PORTAL_ID_ATTRIBUTE]: this.id, style: 'display: contents' },\n this.node\n );\n\n return h(Teleport, { to: this.teleportId }, div);\n },\n});\n"],"names":[
|
|
1
|
+
{"version":3,"file":"ix-view.js","sources":["../../src/modal/ix-view.ts"],"sourcesContent":["import { defineComponent, h, PropType, VNode, Teleport } from 'vue';\nimport { DATA_PORTAL_ID_ATTRIBUTE } from './constants';\n\nexport default defineComponent({\n name: 'IxView',\n props: {\n teleportId: {\n type: String,\n required: true,\n },\n id: {\n type: String,\n required: true,\n },\n node: {\n type: Object as PropType<VNode>,\n required: true,\n },\n },\n render() {\n const div = h(\n 'div',\n { [DATA_PORTAL_ID_ATTRIBUTE]: this.id, style: 'display: contents' },\n this.node\n );\n\n return h(Teleport, { to: this.teleportId }, div);\n },\n});\n"],"names":[],"mappings":";;AAGA,MAAA,SAAe,gBAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,IAEZ,IAAI;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,IAEZ,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IAAA;AAAA,EACZ;AAAA,EAEF,SAAS;AACP,UAAM,MAAM;AAAA,MACV;AAAA,MACA,EAAE,CAAC,wBAAwB,GAAG,KAAK,IAAI,OAAO,oBAAA;AAAA,MAC9C,KAAK;AAAA,IAAA;AAGP,WAAO,EAAE,UAAU,EAAE,IAAI,KAAK,WAAA,GAAc,GAAG;AAAA,EACjD;AACF,CAAC;"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["import { Plugin } from 'vue';\n\nexport const ixPlugin: Plugin = {\n install() {\n // Plugin initialization - currently no setup required\n },\n};\n"],"names":[
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["import { Plugin } from 'vue';\n\nexport const ixPlugin: Plugin = {\n install() {\n // Plugin initialization - currently no setup required\n },\n};\n"],"names":[],"mappings":"AAEO,MAAM,WAAmB;AAAA,EAC9B,UAAU;AAAA,EAEV;AACF;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type PropType, type VNode } from 'vue';
|
|
2
|
+
export declare const IxTabSet: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export declare const IxTabPanel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
tabKey: {
|
|
7
|
+
type: PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
tabKey: {
|
|
14
|
+
type: PropType<string>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/toast/toast.d.ts
CHANGED
package/dist/toast/toast.js
CHANGED
|
@@ -1,22 +1,37 @@
|
|
|
1
|
-
import { getToastContainer
|
|
2
|
-
import { defineCustomElement as
|
|
3
|
-
import { defineCustomElement as
|
|
4
|
-
import { defineCustomElement
|
|
5
|
-
function
|
|
6
|
-
|
|
1
|
+
import { getToastContainer, toast } from "@siemens/ix/components";
|
|
2
|
+
import { defineCustomElement as defineCustomElement$2 } from "@siemens/ix/components/ix-toast.js";
|
|
3
|
+
import { defineCustomElement as defineCustomElement$1 } from "@siemens/ix/components/ix-toast-container.js";
|
|
4
|
+
import { defineCustomElement } from "@siemens/ix-icons/components/ix-icon.js";
|
|
5
|
+
function setToastPosition(position) {
|
|
6
|
+
getToastContainer().position = position;
|
|
7
7
|
}
|
|
8
|
-
async function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
async function showToast(config) {
|
|
9
|
+
defineCustomElement();
|
|
10
|
+
defineCustomElement$1();
|
|
11
|
+
defineCustomElement$2();
|
|
12
|
+
if (typeof config.message === "string" && !config.action) {
|
|
13
|
+
const toastInstance2 = await toast(config);
|
|
14
|
+
return toastInstance2;
|
|
15
|
+
}
|
|
16
|
+
let clonedMessage = void 0;
|
|
17
|
+
let clonedAction = void 0;
|
|
18
|
+
if (config.message && typeof config.message !== "string") {
|
|
19
|
+
clonedMessage = config.message.cloneNode(true);
|
|
20
|
+
} else if (typeof config.message === "string") {
|
|
21
|
+
clonedMessage = config.message;
|
|
22
|
+
}
|
|
23
|
+
if (config.action) {
|
|
24
|
+
clonedAction = config.action.cloneNode(true);
|
|
25
|
+
}
|
|
26
|
+
const toastInstance = await toast({
|
|
27
|
+
...config,
|
|
28
|
+
message: clonedMessage,
|
|
29
|
+
action: clonedAction
|
|
16
30
|
});
|
|
31
|
+
return toastInstance;
|
|
17
32
|
}
|
|
18
33
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
34
|
+
setToastPosition,
|
|
35
|
+
showToast
|
|
21
36
|
};
|
|
22
37
|
//# sourceMappingURL=toast.js.map
|
package/dist/toast/toast.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sources":["../../src/toast/toast.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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 {
|
|
1
|
+
{"version":3,"file":"toast.js","sources":["../../src/toast/toast.ts"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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 type { ToastConfig as IxToastConfig } from '@siemens/ix';\nimport { getToastContainer, toast } from '@siemens/ix/components';\nimport { defineCustomElement as defineIxToast } from '@siemens/ix/components/ix-toast.js';\nimport { defineCustomElement as defineIxToastContainer } from '@siemens/ix/components/ix-toast-container.js';\nimport { defineCustomElement as defineIxIcon } from '@siemens/ix-icons/components/ix-icon.js';\n\nexport type ToastConfig = {\n message?: string | HTMLElement;\n action?: HTMLElement;\n};\n\nexport function setToastPosition(position: 'bottom-right' | 'top-right') {\n getToastContainer().position = position;\n}\n\nexport async function showToast(\n config: Omit<IxToastConfig, 'message' | 'action'> & ToastConfig\n) {\n // Define components upfront to prevent undefined components\n defineIxIcon();\n defineIxToastContainer();\n defineIxToast();\n\n if (typeof config.message === 'string' && !config.action) {\n const toastInstance = await toast(config as IxToastConfig);\n return toastInstance;\n }\n\n let clonedMessage: string | HTMLElement | undefined = undefined;\n let clonedAction: HTMLElement | undefined = undefined;\n\n if (config.message && typeof config.message !== 'string') {\n clonedMessage = config.message.cloneNode(true) as HTMLElement;\n } else if (typeof config.message === 'string') {\n clonedMessage = config.message;\n }\n\n if (config.action) {\n clonedAction = config.action.cloneNode(true) as HTMLElement;\n }\n\n const toastInstance = await toast({\n ...config,\n message: clonedMessage,\n action: clonedAction,\n });\n\n return toastInstance;\n}\n"],"names":["defineIxIcon","defineIxToastContainer","defineIxToast","toastInstance"],"mappings":";;;;AAoBO,SAAS,iBAAiB,UAAwC;AACvE,oBAAA,EAAoB,WAAW;AACjC;AAEA,eAAsB,UACpB,QACA;AAEAA,sBAAA;AACAC,wBAAA;AACAC,wBAAA;AAEA,MAAI,OAAO,OAAO,YAAY,YAAY,CAAC,OAAO,QAAQ;AACxD,UAAMC,iBAAgB,MAAM,MAAM,MAAuB;AACzD,WAAOA;AAAAA,EACT;AAEA,MAAI,gBAAkD;AACtD,MAAI,eAAwC;AAE5C,MAAI,OAAO,WAAW,OAAO,OAAO,YAAY,UAAU;AACxD,oBAAgB,OAAO,QAAQ,UAAU,IAAI;AAAA,EAC/C,WAAW,OAAO,OAAO,YAAY,UAAU;AAC7C,oBAAgB,OAAO;AAAA,EACzB;AAEA,MAAI,OAAO,QAAQ;AACjB,mBAAe,OAAO,OAAO,UAAU,IAAI;AAAA,EAC7C;AAEA,QAAM,gBAAgB,MAAM,MAAM;AAAA,IAChC,GAAG;AAAA,IACH,SAAS;AAAA,IACT,QAAQ;AAAA,EAAA,CACT;AAED,SAAO;AACT;"}
|