@siemens/ix-vue 0.0.0-pr-1642-20250313082857 → 0.0.0-pr-1974-20250627114851

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 (51) hide show
  1. package/READMEOSS.html +421 -0
  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 +107 -104
  5. package/dist/components.js +1314 -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 -1181
  21. package/dist/index.js.map +1 -1
  22. package/dist/internal-components.js +13 -0
  23. package/dist/internal-components.js.map +1 -0
  24. package/dist/ix-icon.d.ts +2 -1
  25. package/dist/ix-icon.js +14 -0
  26. package/dist/ix-icon.js.map +1 -0
  27. package/dist/modal/IxOverlay.vue.d.ts +14 -0
  28. package/dist/modal/IxOverlay.vue.js +52 -0
  29. package/dist/modal/IxOverlay.vue.js.map +1 -0
  30. package/dist/modal/IxOverlay.vue2.js +5 -0
  31. package/dist/modal/IxOverlay.vue2.js.map +1 -0
  32. package/dist/modal/Modal.vue.d.ts +108 -0
  33. package/dist/modal/Modal.vue.js +74 -0
  34. package/dist/modal/Modal.vue.js.map +1 -0
  35. package/dist/modal/Modal.vue2.js +5 -0
  36. package/dist/modal/Modal.vue2.js.map +1 -0
  37. package/dist/modal/constants.d.ts +2 -0
  38. package/dist/modal/constants.js +6 -0
  39. package/dist/modal/constants.js.map +1 -0
  40. package/dist/modal/index.d.ts +10 -0
  41. package/dist/modal/index.js +116 -0
  42. package/dist/modal/index.js.map +1 -0
  43. package/dist/modal/ix-view.d.ts +29 -0
  44. package/dist/modal/ix-view.js +31 -0
  45. package/dist/modal/ix-view.js.map +1 -0
  46. package/dist/modal/modal-slot-props.d.ts +4 -0
  47. package/dist/plugin.js +23 -0
  48. package/dist/plugin.js.map +1 -0
  49. package/dist/toast/toast.js +18 -0
  50. package/dist/toast/toast.js.map +1 -0
  51. package/package.json +12 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["import { Plugin } from 'vue';\nimport { handlePlatformHelpers } from '@siemens/ix/components';\n\nfunction toKebabCase(name: string) {\n const kebabCase = name.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2');\n return kebabCase.toLowerCase();\n}\n\nexport const ixPlugin: Plugin = {\n async install() {\n // handle vue event name conversion\n handlePlatformHelpers({\n ael(el: HTMLElement, name, cb, opts) {\n el.addEventListener(toKebabCase(name), cb, opts);\n },\n rel(el: HTMLElement, name, cb, opts) {\n el.removeEventListener(toKebabCase(name), cb, opts);\n },\n ce(name, opts) {\n return new CustomEvent(toKebabCase(name), opts);\n },\n });\n },\n};\n"],"names":["toKebabCase","name","ixPlugin","handlePlatformHelpers","el","cb","opts"],"mappings":";AAGA,SAASA,EAAYC,GAAc;AAEjC,SADkBA,EAAK,QAAQ,gCAAgC,OAAO,EACrD,YAAY;AAC/B;AAEO,MAAMC,IAAmB;AAAA,EAC9B,MAAM,UAAU;AAEQ,IAAAC,EAAA;AAAA,MACpB,IAAIC,GAAiBH,GAAMI,GAAIC,GAAM;AACnC,QAAAF,EAAG,iBAAiBJ,EAAYC,CAAI,GAAGI,GAAIC,CAAI;AAAA,MACjD;AAAA,MACA,IAAIF,GAAiBH,GAAMI,GAAIC,GAAM;AACnC,QAAAF,EAAG,oBAAoBJ,EAAYC,CAAI,GAAGI,GAAIC,CAAI;AAAA,MACpD;AAAA,MACA,GAAGL,GAAMK,GAAM;AACb,eAAO,IAAI,YAAYN,EAAYC,CAAI,GAAGK,CAAI;AAAA,MAAA;AAAA,IAChD,CACD;AAAA,EAAA;AAEL;"}
@@ -0,0 +1,18 @@
1
+ import { getToastContainer as s, toast as e } from "@siemens/ix";
2
+ import { defineCustomElement as o } from "@siemens/ix/components/ix-toast.js";
3
+ import { defineCustomElement as n } from "@siemens/ix/components/ix-toast-container.js";
4
+ import { defineCustomElement as a } from "@siemens/ix-icons/components/ix-icon.js";
5
+ function p(t) {
6
+ s().position = t;
7
+ }
8
+ async function d(t) {
9
+ return a(), n(), o(), typeof t.message == "string" ? await e(t) : await e({
10
+ ...t,
11
+ message: t.message.cloneNode(!0)
12
+ });
13
+ }
14
+ export {
15
+ p as setToastPosition,
16
+ d as showToast
17
+ };
18
+ //# 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};\n\nexport function setToastPosition(position: 'bottom-right' | 'top-right') {\n getToastContainer().position = position;\n}\n\nexport async function showToast(\n config: Omit<IxToastConfig, 'message'> & ToastConfig\n) {\n // Define components upfront to prevent undefined components\n defineIxIcon();\n defineIxToastContainer();\n defineIxToast();\n\n if (typeof config.message === 'string') {\n const toastInstance = await toast(config as IxToastConfig);\n return toastInstance;\n }\n\n const toastInstance = await toast({\n ...config,\n message: config.message.cloneNode(true) as HTMLElement,\n });\n\n return toastInstance;\n}\n"],"names":["setToastPosition","position","getToastContainer","showToast","config","defineIxIcon","defineIxToastContainer","defineIxToast","toast"],"mappings":";;;;AAsBO,SAASA,EAAiBC,GAAwC;AACvE,EAAAC,EAAA,EAAoB,WAAWD;AACjC;AAEA,eAAsBE,EACpBC,GACA;AAMI,SAJSC,EAAA,GACUC,EAAA,GACTC,EAAA,GAEV,OAAOH,EAAO,WAAY,WACN,MAAMI,EAAMJ,CAAuB,IAIrC,MAAMI,EAAM;AAAA,IAChC,GAAGJ;AAAA,IACH,SAASA,EAAO,QAAQ,UAAU,EAAI;AAAA,EAAA,CACvC;AAGH;"}
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": "0.0.0-pr-1642-20250313082857",
6
+ "version": "0.0.0-pr-1974-20250627114851",
7
7
  "description": "Siemens iX for Vue",
8
8
  "bugs": "https://github.com/siemens/ix/issues",
9
9
  "repository": {
@@ -11,35 +11,39 @@
11
11
  "url": "https://github.com/siemens/ix",
12
12
  "directory": "packages/vue"
13
13
  },
14
+ "type": "module",
14
15
  "main": "dist/index.js",
15
16
  "types": "dist/index.d.ts",
16
17
  "files": [
17
18
  "LICENSE",
18
19
  "README.md",
20
+ "READMEOSS.html",
19
21
  "dist"
20
22
  ],
21
23
  "dependencies": {
22
- "@siemens/ix": "0.0.0-pr-1642-20250313082857"
24
+ "@siemens/ix": "0.0.0-pr-1974-20250627114851",
25
+ "@stencil/vue-output-target": "^0.10.7"
23
26
  },
24
27
  "devDependencies": {
25
- "@rollup/plugin-typescript": "^8.5.0",
26
28
  "@typescript-eslint/eslint-plugin": "^5.62.0",
27
29
  "@typescript-eslint/parser": "^5.62.0",
28
30
  "eslint": "~8.21.0",
29
31
  "eslint-plugin-vue": "^9.27.0",
30
32
  "rimraf": "^3.0.2",
31
- "rollup": "^2.79.1",
32
- "typescript": "^4.9.5",
33
+ "typescript": "^5.8.3",
33
34
  "vue": "^3.4.34",
34
- "@siemens/ix": "0.0.0-pr-1642-20250313082857",
35
+ "vite": "^6.3.5",
36
+ "vue-tsc": "^2.2.10",
37
+ "@vitejs/plugin-vue": "^5.2.3",
38
+ "@siemens/ix": "0.0.0-pr-1974-20250627114851",
35
39
  "eslint-config-ix": "1.0.0"
36
40
  },
37
41
  "peerDependencies": {
38
- "@siemens/ix-icons": "0.0.0-pr-72-20250227071449",
42
+ "@siemens/ix-icons": "^3.0.0",
39
43
  "vue": ">=3.2.45"
40
44
  },
41
45
  "scripts": {
42
- "build": "pnpm clean && rollup --config rollup.config.mjs",
46
+ "build": "pnpm clean && vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
43
47
  "clean": "rimraf dist",
44
48
  "lint": "eslint src"
45
49
  }