service-flow-designer 2.2.28 → 2.2.33

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.
@@ -1,32 +1,30 @@
1
- import { ref as e, watch as a } from "vue";
2
- import { defineStore as t } from "pinia";
3
- const l = t("serviceFlowStoreUtil", () => {
4
- const t2 = e({ modelFields: [] }), l2 = e({ variables: [] });
5
- a(() => t2.value.modelFields, (e2, a2) => {
6
- i(t2.value);
1
+ import { ref as e, watch as t } from "vue";
2
+ import { defineStore as a } from "pinia";
3
+ const o = a("serviceFlowStoreUtil", () => {
4
+ const a2 = e({ modelFields: [] }), o2 = e({ variables: [] });
5
+ t(() => a2.value.modelFields, (e2, t2) => {
6
+ n(a2.value);
7
7
  });
8
- const o = e({ dataOptions: [], systemVarOptions: [], pageVarOptions: [] });
9
- function i(e2) {
8
+ const i = e({ dataOptions: [], systemVarOptions: [], pageVarOptions: [] });
9
+ function n(e2) {
10
10
  e2 && e2.modelFields && e2.modelFields.forEach((e3) => {
11
- o.value.dataOptions.push({ value: e3.name, label: e3.alias, type: e3.type });
11
+ i.value.dataOptions.push({ value: e3.name, label: e3.alias, type: e3.type });
12
12
  });
13
13
  }
14
- function n(e2, a2, t3) {
15
- const l3 = [];
14
+ function s(e2, t2, a3) {
15
+ const o3 = [];
16
16
  return e2 && e2.forEach((e3) => {
17
- const t4 = { code: e3.code, value: e3.name, label: e3.alias, type: e3.type };
18
- a2 && (t4.value = `${a2}.${e3.name}`), e3.items && e3.items.length > 0 && "array" !== e3.type && (t4.items = n(e3.items, e3.name)), l3.push(t4);
19
- }), l3;
17
+ const a4 = { code: e3.code, value: e3.name, label: e3.alias, type: e3.type };
18
+ t2 && (a4.value = `${t2}.${e3.name}`), e3.items && e3.items.length > 0 && "array" === e3.type && "object" === e3.items[0].type && (a4.items = s(e3.items[0].items, e3.name)), o3.push(a4);
19
+ }), o3;
20
20
  }
21
- return { pageContext: t2, pageContextVarOptions: o, currentService: l2, setPageContext: function(e2) {
22
- t2.value = e2, i(e2);
21
+ return { pageContext: a2, pageContextVarOptions: i, currentService: o2, setPageContext: function(e2) {
22
+ a2.value = e2, n(e2);
23
23
  }, getServiceVarOptions: function() {
24
24
  let e2 = [];
25
- return l2.value.variables && l2.value.variables.forEach((a2) => {
26
- e2.push({ code: a2.code, value: a2.name, label: a2.alias, type: a2.type });
27
- }), e2 = n(l2.value.variables), e2;
25
+ return e2 = s(o2.value.variables), e2;
28
26
  } };
29
27
  });
30
28
  export {
31
- l as useServiceFlowStore
29
+ o as useServiceFlowStore
32
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "2.2.28",
3
+ "version": "2.2.33",
4
4
  "description": "AgileBuilder Service Flow Designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -61,7 +61,7 @@
61
61
  "@logicflow/layout": "1.2.0-alpha.16",
62
62
  "@uiw/codemirror-themes-all": "^4.21.25",
63
63
  "@vueuse/core": "^10.9.0",
64
- "agilebuilder-ui": "1.1.12",
64
+ "agilebuilder-ui": "1.1.13",
65
65
  "codemirror": "^6.0.1",
66
66
  "nprogress": "^0.2.0",
67
67
  "pinia": "^2.1.7",