@siemens/ix-vue 3.1.0 → 3.2.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.
Files changed (52) hide show
  1. package/READMEOSS.html +19 -70
  2. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
  4. package/dist/components.d.ts +2 -0
  5. package/dist/components.js +1372 -0
  6. package/dist/components.js.map +1 -0
  7. package/dist/context/IxApplicationContext.vue.d.ts +17 -0
  8. package/dist/context/IxApplicationContext.vue.js +17 -0
  9. package/dist/context/IxApplicationContext.vue.js.map +1 -0
  10. package/dist/context/IxApplicationContext.vue2.js +130 -0
  11. package/dist/context/IxApplicationContext.vue2.js.map +1 -0
  12. package/dist/context/context.d.ts +6 -0
  13. package/dist/context/context.js +11 -0
  14. package/dist/context/context.js.map +1 -0
  15. package/dist/context.d.ts +1 -0
  16. package/dist/delegate.d.ts +14 -0
  17. package/dist/delegate.js +38 -0
  18. package/dist/delegate.js.map +1 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +126 -1262
  21. package/dist/index.js.map +1 -1
  22. package/dist/internal-components.js +15 -0
  23. package/dist/internal-components.js.map +1 -0
  24. package/dist/ix-icon.js +14 -0
  25. package/dist/ix-icon.js.map +1 -0
  26. package/dist/modal/IxOverlay.vue.d.ts +14 -0
  27. package/dist/modal/IxOverlay.vue.js +52 -0
  28. package/dist/modal/IxOverlay.vue.js.map +1 -0
  29. package/dist/modal/IxOverlay.vue2.js +5 -0
  30. package/dist/modal/IxOverlay.vue2.js.map +1 -0
  31. package/dist/modal/Modal.vue.d.ts +108 -0
  32. package/dist/modal/Modal.vue.js +74 -0
  33. package/dist/modal/Modal.vue.js.map +1 -0
  34. package/dist/modal/Modal.vue2.js +5 -0
  35. package/dist/modal/Modal.vue2.js.map +1 -0
  36. package/dist/modal/constants.d.ts +2 -0
  37. package/dist/modal/constants.js +6 -0
  38. package/dist/modal/constants.js.map +1 -0
  39. package/dist/modal/index.d.ts +10 -0
  40. package/dist/modal/index.js +116 -0
  41. package/dist/modal/index.js.map +1 -0
  42. package/dist/modal/ix-view.d.ts +29 -0
  43. package/dist/modal/ix-view.js +31 -0
  44. package/dist/modal/ix-view.js.map +1 -0
  45. package/dist/modal/modal-slot-props.d.ts +4 -0
  46. package/dist/plugin.js +23 -0
  47. package/dist/plugin.js.map +1 -0
  48. package/dist/toast/toast.d.ts +3 -2
  49. package/dist/toast/toast.js +22 -0
  50. package/dist/toast/toast.js.map +1 -0
  51. package/dist/vue-component-lib/utils.d.ts +4 -0
  52. package/package.json +9 -8
@@ -1,6 +1,7 @@
1
1
  import { ToastConfig as IxToastConfig } from '@siemens/ix';
2
2
  export type ToastConfig = {
3
- message: string | HTMLElement;
3
+ message?: string | HTMLElement;
4
+ action?: HTMLElement;
4
5
  };
5
6
  export declare function setToastPosition(position: 'bottom-right' | 'top-right'): void;
6
- export declare function showToast(config: Omit<IxToastConfig, 'message'> & ToastConfig): Promise<import("@siemens/ix").ShowToastResult>;
7
+ export declare function showToast(config: Omit<IxToastConfig, 'message' | 'action'> & ToastConfig): Promise<import("@siemens/ix").ShowToastResult>;
@@ -0,0 +1,22 @@
1
+ import { getToastContainer as n, toast as o } from "@siemens/ix";
2
+ import { defineCustomElement as a } from "@siemens/ix/components/ix-toast.js";
3
+ import { defineCustomElement as m } from "@siemens/ix/components/ix-toast-container.js";
4
+ import { defineCustomElement as i } from "@siemens/ix-icons/components/ix-icon.js";
5
+ function f(e) {
6
+ n().position = e;
7
+ }
8
+ async function C(e) {
9
+ if (i(), m(), a(), typeof e.message == "string" && !e.action)
10
+ return await o(e);
11
+ let t, s;
12
+ return e.message && typeof e.message != "string" ? t = e.message.cloneNode(!0) : typeof e.message == "string" && (t = e.message), e.action && (s = e.action.cloneNode(!0)), await o({
13
+ ...e,
14
+ message: t,
15
+ action: s
16
+ });
17
+ }
18
+ export {
19
+ f as setToastPosition,
20
+ C as showToast
21
+ };
22
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +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 {\n getToastContainer,\n toast,\n ToastConfig as IxToastConfig,\n} from '@siemens/ix';\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":["setToastPosition","position","getToastContainer","showToast","config","defineIxIcon","defineIxToastContainer","defineIxToast","toast","clonedMessage","clonedAction"],"mappings":";;;;AAuBO,SAASA,EAAiBC,GAAwC;AACvE,EAAAC,EAAA,EAAoB,WAAWD;AACjC;AAEA,eAAsBE,EACpBC,GACA;AAMA,MAJAC,EAAA,GACAC,EAAA,GACAC,EAAA,GAEI,OAAOH,EAAO,WAAY,YAAY,CAACA,EAAO;AAEhD,WADsB,MAAMI,EAAMJ,CAAuB;AAI3D,MAAIK,GACAC;AAEJ,SAAIN,EAAO,WAAW,OAAOA,EAAO,WAAY,WAC9CK,IAAgBL,EAAO,QAAQ,UAAU,EAAI,IACpC,OAAOA,EAAO,WAAY,aACnCK,IAAgBL,EAAO,UAGrBA,EAAO,WACTM,IAAeN,EAAO,OAAO,UAAU,EAAI,IAGvB,MAAMI,EAAM;AAAA,IAChC,GAAGJ;AAAA,IACH,SAASK;AAAA,IACT,QAAQC;AAAA,EAAA,CACT;AAGH;"}
@@ -0,0 +1,4 @@
1
+ export interface InputProps<T> {
2
+ modelValue?: T;
3
+ }
4
+ export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string) => import("vue").DefineSetupFnComponent<Props & InputProps<VModelType>, {}, {}, Props & InputProps<VModelType> & {}, import("vue").PublicProps>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "homepage": "https://ix.siemens.io",
4
4
  "author": "Siemens AG",
5
5
  "license": "MIT",
6
- "version": "3.1.0",
6
+ "version": "3.2.0",
7
7
  "description": "Siemens iX for Vue",
8
8
  "bugs": "https://github.com/siemens/ix/issues",
9
9
  "repository": {
@@ -21,20 +21,21 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@siemens/ix": "~3.1.0",
25
- "@stencil/vue-output-target": "^0.10.7"
24
+ "@siemens/ix": "~3.2.0",
25
+ "@stencil/vue-output-target": "^0.10.8"
26
26
  },
27
27
  "devDependencies": {
28
- "@rollup/plugin-typescript": "^8.5.0",
29
28
  "@typescript-eslint/eslint-plugin": "^5.62.0",
30
29
  "@typescript-eslint/parser": "^5.62.0",
31
30
  "eslint": "~8.21.0",
32
31
  "eslint-plugin-vue": "^9.27.0",
33
32
  "rimraf": "^3.0.2",
34
- "rollup": "^2.79.1",
35
- "typescript": "^4.9.5",
33
+ "typescript": "^5.8.3",
36
34
  "vue": "^3.4.34",
37
- "@siemens/ix": "3.1.0",
35
+ "vite": "^6.3.5",
36
+ "vue-tsc": "^2.2.10",
37
+ "@vitejs/plugin-vue": "^5.2.3",
38
+ "@siemens/ix": "3.2.0",
38
39
  "eslint-config-ix": "1.0.0"
39
40
  },
40
41
  "peerDependencies": {
@@ -42,7 +43,7 @@
42
43
  "vue": ">=3.2.45"
43
44
  },
44
45
  "scripts": {
45
- "build": "pnpm clean && rollup --config rollup.config.mjs",
46
+ "build": "pnpm clean && vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
46
47
  "clean": "rimraf dist",
47
48
  "lint": "eslint src"
48
49
  }