ss-component-new 1.3.21 → 1.3.23

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 (98) hide show
  1. package/dist/{MTLLoader-YtHulNzU.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
  2. package/dist/{MTLLoader-CBRDqlja.js → MTLLoader-YR-bfx1D.js} +24 -24
  3. package/dist/{OrbitControls-CKR1ruPg.js → OrbitControls-BGsXD_A7.js} +1 -1
  4. package/dist/{OrbitControls-Bwzpfq8_.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
  5. package/dist/{URDFLoader-DIvTWPgk.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
  6. package/dist/{URDFLoader-D-0fnLWu.js → URDFLoader-m1gMdnSQ.js} +189 -189
  7. package/dist/{animationData-BBVNOO1d.js → animationData-CpK8d_Vm.js} +19 -19
  8. package/dist/{animationData-krmt7b15.cjs → animationData-Cr2ra7rm.cjs} +1 -1
  9. package/dist/{array-AvrqnNoJ.js → array-BmfCVZvi.js} +46 -46
  10. package/dist/{array-CMW4ey7w.cjs → array-COho2hZW.cjs} +1 -1
  11. package/dist/{iconfont-CSj9Ypb0.js → iconfont-0yJB130V.js} +29 -29
  12. package/dist/{iconfont-CUPzGSlt.cjs → iconfont-DsF7kuG5.cjs} +1 -1
  13. package/dist/{index-VF71yUkZ.js → index-5YbplPvi.js} +2 -2
  14. package/dist/{index-I09e-7nF.js → index-76YbJdM8.js} +2 -2
  15. package/dist/{index-BWb8IVmh.js → index-98Ogvz1v.js} +7 -7
  16. package/dist/{index-B7VKjUP4.cjs → index-B4LIBl-a.cjs} +1 -1
  17. package/dist/{index-NB4ig2Zg.js → index-B52TVCSg.js} +8 -8
  18. package/dist/{index-B1Zztqcr.cjs → index-BEBJWYp0.cjs} +1 -1
  19. package/dist/{index-Dx5UzB8t.js → index-BHjvJiFA.js} +5 -5
  20. package/dist/{index-BLxE_tkf.cjs → index-BJPBBWWH.cjs} +1 -1
  21. package/dist/{index-DEF8zy07.js → index-BLcFvu4u.js} +3 -3
  22. package/dist/{index-BPstNH4r.cjs → index-BPlHuTxE.cjs} +4 -4
  23. package/dist/index-BPu9kWR3.js +11883 -0
  24. package/dist/{index-snyYrfwK.cjs → index-BRJ1_Tfi.cjs} +1 -1
  25. package/dist/{index-vCTVD7cV.cjs → index-BWCv7zxy.cjs} +1 -1
  26. package/dist/{index-DWfxnemZ.js → index-BXUByyre.js} +2 -2
  27. package/dist/{index-DUt_5IeJ.js → index-Bnp6YMyE.js} +1461 -1455
  28. package/dist/{index-CGrJyKvT.cjs → index-BxMPyw-Y.cjs} +1 -1
  29. package/dist/{index-DWm4nu2G.cjs → index-CBqGrYej.cjs} +1 -1
  30. package/dist/{index-Dm67w52u.cjs → index-CC9drriV.cjs} +1 -1
  31. package/dist/{index-sMsCzNtW.js → index-COQpDVsv.js} +1570 -1535
  32. package/dist/{index-C4Ohl9vT.js → index-CRbfwrdV.js} +41 -41
  33. package/dist/{index-CuvQZsbE.cjs → index-CVXrjDFh.cjs} +1 -1
  34. package/dist/{index-CEzEaG0d.js → index-CXiOVgoz.js} +1 -1
  35. package/dist/{index-BzGHYxs2.cjs → index-CbBY3TG6.cjs} +1 -1
  36. package/dist/{index-DuGfBNM6.cjs → index-CgFSiyRX.cjs} +1 -1
  37. package/dist/{index-Cu-8pzHm.js → index-Chxt6xBv.js} +5 -5
  38. package/dist/{index-CIrXKpNl.cjs → index-Cjqg29ul.cjs} +1 -1
  39. package/dist/index-CpbBe_mV.cjs +1 -0
  40. package/dist/index-CuAHwR97.cjs +1 -0
  41. package/dist/{index-DHrb-D39.js → index-D-kqGA71.js} +7 -7
  42. package/dist/{index-euZWOilV.cjs → index-D3ixok8t.cjs} +1 -1
  43. package/dist/{index-D39AtL48.js → index-D8HD14bz.js} +1 -1
  44. package/dist/{index-DABBYx7H.js → index-DBh5Z73C.js} +1 -1
  45. package/dist/index-DIWralYr.js +67 -0
  46. package/dist/{index-C8fMwErX.cjs → index-DRTxe12U.cjs} +13 -13
  47. package/dist/{index-BFKUrR1o.cjs → index-DS-YTop9.cjs} +1 -1
  48. package/dist/{index-Cw4Pm2PQ.cjs → index-DU9e5EhS.cjs} +1 -1
  49. package/dist/{index-DN2waPoj.cjs → index-D_Yhv_HV.cjs} +1 -1
  50. package/dist/{index-d6tZBTSp.cjs → index-DaIE9uY1.cjs} +1 -1
  51. package/dist/{index-BT6DSXQW.js → index-Ddoq7kRQ.js} +9 -9
  52. package/dist/{index-CZKslfuq.js → index-Du1HuKYs.js} +2 -2
  53. package/dist/{index-Cxl9cpua.js → index-HgbCIoqo.js} +2 -2
  54. package/dist/index-MK7NdOmS.cjs +1 -0
  55. package/dist/{index-C7WQ1ky5.js → index-NaWMtdUV.js} +2 -2
  56. package/dist/{index-DTttfGgm.js → index-OX4hSXv6.js} +7 -7
  57. package/dist/{index-DXiGkaWi.cjs → index-TMUwtzAm.cjs} +1 -1
  58. package/dist/{index-DGRL8SEt.js → index-Va8AOLWi.js} +1 -1
  59. package/dist/{index-Bjsm8c8q.cjs → index-c4SVf22I.cjs} +1 -1
  60. package/dist/{index-CppJQDiT.js → index-gfdgTjvQ.js} +3 -3
  61. package/dist/{index-CEq2QX9L.js → index-nr6V1FzX.js} +7 -7
  62. package/dist/{index-ovqPs7X7.cjs → index-oMihgN5x.cjs} +1 -1
  63. package/dist/{index-DTuVgYze.cjs → index-r6HP72OA.cjs} +1 -1
  64. package/dist/{index-CBtxzh-u.js → index-tVVurbFz.js} +3 -3
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-n7J00Lcz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +29074 -28413
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-b_9vxv2X.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +392 -382
  67. package/dist/{index.vue_vue_type_style_index_1_lang-DDedRKQj.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_1_lang-q8rMzh6x.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +75 -75
  69. package/dist/{main-CmrBxQsF.cjs → main-BH4e9Of0.cjs} +1 -1
  70. package/dist/{main-ZLB6NnLd.js → main-DU0KTY9Z.js} +4 -4
  71. package/dist/{menuIndex-8RF_0N_y.cjs → menuIndex-D52EAwtb.cjs} +1 -1
  72. package/dist/{menuIndex-BwWrdu20.js → menuIndex-DYaogp2R.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.js +10 -10
  75. package/dist/ss-component2.cjs +1 -1
  76. package/dist/ss-component2.js +11 -11
  77. package/dist/{threeModel-DpvPVwlN.js → threeModel-AsOY6mTs.js} +45 -45
  78. package/dist/{threeModel-D5UnPmV3.cjs → threeModel-rcCyHi_m.cjs} +1 -1
  79. package/dist/{threePreview-XQG7sQy9.js → threePreview-CkKl3frr.js} +125 -125
  80. package/dist/{threePreview-CBFQtSls.cjs → threePreview-DOD9HOZn.cjs} +1 -1
  81. package/dist/{threeSceneView-D97Sc8hd.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
  82. package/dist/{threeSceneView-CdZFIImJ.js → threeSceneView-DlL9pZlj.js} +38 -38
  83. package/dist/{threeSceneViewForCPMPIP-4Cjv1ZS4.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
  84. package/dist/{threeSceneViewForCPMPIP-DH__ogKh.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +8 -8
  85. package/dist/{threeTrackPathView-s17KavQX.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
  86. package/dist/{threeTrackPathView-BFQXaw-a.js → threeTrackPathView-Eb1bvUXJ.js} +78 -78
  87. package/dist/{threeViewerHost-C39tiQj-.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
  88. package/dist/{threeViewerHost-BgPjA_94.js → threeViewerHost-Bdzv9iPb.js} +11 -11
  89. package/dist/{urdfTree-HdeBG5se.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
  90. package/dist/{urdfTree-DM6uTeXj.js → urdfTree-hLtm0aFY.js} +10 -10
  91. package/dist/{workpieceTreePanel-C5qUdbmi.js → workpieceTreePanel-Ne_ACq86.js} +63 -63
  92. package/dist/{workpieceTreePanel-BKOHDm85.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
  93. package/package.json +1 -1
  94. package/dist/index-BteE57Nz.js +0 -103
  95. package/dist/index-C8FzkPpO.cjs +0 -1
  96. package/dist/index-CmctAnWR.cjs +0 -11
  97. package/dist/index-CsbDyIb2.cjs +0 -1
  98. package/dist/index-DdXtt1dh.js +0 -12544
@@ -1,8 +1,8 @@
1
- import { g as K, aF as C, c as x, a9 as N, bH as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-n7J00Lcz.js";
2
- import { c as O } from "./index-sMsCzNtW.js";
1
+ import { g as B, aL as C, c as x, ae as K, bN as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
2
+ import { c as N } from "./index-COQpDVsv.js";
3
3
  const g = async (n) => {
4
4
  const e = n.join("/"), c = sessionStorage.getItem("systemKey");
5
- return await K(e, c, "");
5
+ return await B(e, c, "");
6
6
  }, R = (n) => {
7
7
  var s;
8
8
  const e = n == null ? void 0 : n.compData, c = (s = e == null ? void 0 : e.find((i) => {
@@ -13,7 +13,7 @@ const g = async (n) => {
13
13
  const { prop: p, value: D } = i;
14
14
  r[p] = D;
15
15
  }), r;
16
- }, H = async () => {
16
+ }, q = async () => {
17
17
  let n = {};
18
18
  const c = await g(["弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s = R(r), i = s.管长 || 0, p = s.外径 || 0;
19
19
  console.log("管长", i, "外径", p, s);
@@ -21,27 +21,27 @@ const g = async (n) => {
21
21
  console.log("夹持长度", P, b);
22
22
  const G = Number(P), m = {}, l = await g(["弯管仿真加工分析", "仿真动画生成"]);
23
23
  l == null || l.forEach((a) => {
24
- var M, d, f, y, w, F;
24
+ var M, d, f, y, w, L;
25
25
  if ((a == null ? void 0 : a.comp) === "Table") {
26
- let L = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (F = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
26
+ let F = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (L = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : L.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
27
27
  h == null || h.forEach((t) => {
28
- L.push(
28
+ F.push(
29
29
  x(
30
30
  t,
31
31
  u == null ? void 0 : u.filter((o) => o !== "操作")
32
32
  )
33
33
  );
34
- }), m[a.name] = L, m[a.name + "Content"] = a;
34
+ }), m[a.name] = F, m[a.name + "Content"] = a;
35
35
  }
36
36
  });
37
- const A = O(m) || [];
37
+ const A = N(m) || [];
38
38
  return n = {
39
39
  initialPipeLength: D,
40
40
  pipeRadius: T,
41
41
  clampLength: G,
42
42
  animationData: A
43
43
  }, n;
44
- }, q = async () => {
44
+ }, z = async () => {
45
45
  let n = {};
46
46
  const c = await g(["双弯管仿真加工分析", "模具筛选安装"]), r = C("输入(加工件)", c), s = R(r), i = s.管长 || 0, p = s.外径 || 0;
47
47
  console.log("管长", i, "外径", p, s);
@@ -49,34 +49,34 @@ const g = async (n) => {
49
49
  console.log("夹持长度", P, b);
50
50
  const G = Number(P), m = {}, l = await g(["双弯管仿真加工分析", "仿真动画生成"]);
51
51
  l == null || l.forEach((a) => {
52
- var M, d, f, y, w, F;
52
+ var M, d, f, y, w, L;
53
53
  if ((a == null ? void 0 : a.comp) === "Table") {
54
- let L = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (F = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
54
+ let F = [], u = (f = (d = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : f.map((t) => t == null ? void 0 : t.label), h = (L = (w = (y = a == null ? void 0 : a.compData) == null ? void 0 : y.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : L.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
55
55
  h == null || h.forEach((t) => {
56
- L.push(
56
+ F.push(
57
57
  x(
58
58
  t,
59
59
  u == null ? void 0 : u.filter((o) => o !== "操作")
60
60
  )
61
61
  );
62
- }), m[a.name] = L, m[a.name + "Content"] = a;
62
+ }), m[a.name] = F, m[a.name + "Content"] = a;
63
63
  }
64
64
  });
65
- const A = O(m) || [];
65
+ const A = N(m) || [];
66
66
  return n = {
67
67
  initialPipeLength: D,
68
68
  pipeRadius: T,
69
69
  clampLength: G,
70
70
  animationData: A
71
71
  }, n;
72
- }, V = async (n) => await N(n), X = async (n) => await S(n), z = async (n) => {
72
+ }, V = async (n) => await K(n), X = async (n) => await S(n), H = async (n) => {
73
73
  const e = await V(n);
74
74
  return await X(e);
75
75
  };
76
76
  export {
77
- q as a,
77
+ z as a,
78
78
  R as b,
79
- H as f,
79
+ q as f,
80
80
  g,
81
- z as i
81
+ H as i
82
82
  };
@@ -1 +1 @@
1
- "use strict";const p=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-b_9vxv2X.cjs"),x=require("./index-C8fMwErX.cjs"),D=async n=>{const a=n.join("/"),c=sessionStorage.getItem("systemKey");return await p.getItemData(a,c,"")},T=n=>{var s;const a=n==null?void 0:n.compData,c=(s=a==null?void 0:a.find(i=>{const{key:r}=i;return r==="formContent"}))==null?void 0:s.contents,l={};return c==null||c.forEach(i=>{const{prop:r,value:b}=i;l[r]=b}),l},V=async()=>{let n={};const c=await D(["弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["弯管仿真加工分析","加工位姿生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持长度||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},j=async()=>{let n={};const c=await D(["双弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["双弯管仿真加工分析","加工工艺生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持位置||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["双弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},B=async n=>await p.downloadFile(n),S=async n=>await p.readCsv(n),X=async n=>{const a=await B(n);return await S(a)};exports.fetchDoubleRobotAnimationData=j;exports.fetchSingleRobotAnimationData=V;exports.getFormData=T;exports.getMenuData=D;exports.initXYZBCList=X;
1
+ "use strict";const p=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),x=require("./index-DRTxe12U.cjs"),D=async n=>{const a=n.join("/"),c=sessionStorage.getItem("systemKey");return await p.getItemData(a,c,"")},T=n=>{var s;const a=n==null?void 0:n.compData,c=(s=a==null?void 0:a.find(i=>{const{key:r}=i;return r==="formContent"}))==null?void 0:s.contents,l={};return c==null||c.forEach(i=>{const{prop:r,value:b}=i;l[r]=b}),l},V=async()=>{let n={};const c=await D(["弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["弯管仿真加工分析","加工位姿生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持长度||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},j=async()=>{let n={};const c=await D(["双弯管仿真加工分析","模具筛选安装"]),l=p.getTargetGroup("输入(加工件)",c),s=T(l),i=s.管长||0,r=s.外径||0;console.log("管长",i,"外径",r,s);const b=i,_=r/2,G=await D(["双弯管仿真加工分析","加工工艺生成"]),R=p.getTargetGroup("输入",G),d=T(R),P=d.夹持位置||0;console.log("夹持长度",P,d);const A=Number(P),u={},m=await D(["双弯管仿真加工分析","仿真动画生成"]);m==null||m.forEach(e=>{var y,M,f,w,F,L;if((e==null?void 0:e.comp)==="Table"){let C=[],h=(f=(M=(y=e==null?void 0:e.compData)==null?void 0:y.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:M.contents)==null?void 0:f.map(t=>t==null?void 0:t.label),g=(L=(F=(w=e==null?void 0:e.compData)==null?void 0:w.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(o=>!(o!=null&&o.id)),t));g==null||g.forEach(t=>{C.push(p.getValueToObjectValue(t,h==null?void 0:h.filter(o=>o!=="操作")))}),u[e.name]=C,u[e.name+"Content"]=e}});const k=x.cloneDeep(u)||[];return n={initialPipeLength:b,pipeRadius:_,clampLength:A,animationData:k},n},B=async n=>await p.downloadFile(n),S=async n=>await p.readCsv(n),X=async n=>{const a=await B(n);return await S(a)};exports.fetchDoubleRobotAnimationData=j;exports.fetchSingleRobotAnimationData=V;exports.getFormData=T;exports.getMenuData=D;exports.initXYZBCList=X;
@@ -1,10 +1,10 @@
1
1
  import { ref as k, computed as ae, resolveComponent as te, createElementBlock as $, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
2
- import { Q as Ie, g as aa, D as oa, C as sa, E as Je, c as ra } from "./index-DdXtt1dh.js";
3
- import { a as Ce, p as he, s as ie, c as K, u as ke, E as ua } from "./index-sMsCzNtW.js";
2
+ import { K as Ie, g as aa, D as oa, C as sa, E as Je, c as ra } from "./index-BPu9kWR3.js";
3
+ import { a as Ce, p as he, s as ie, c as G, u as ke, E as ua } from "./index-COQpDVsv.js";
4
4
  import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import ca from "./index-rlStojTL.js";
6
- import { a as ia, b as da } from "./index-DUt_5IeJ.js";
7
- import { s as va } from "./index-DABBYx7H.js";
6
+ import { a as ia, b as da } from "./index-Bnp6YMyE.js";
7
+ import { s as va } from "./index-DBh5Z73C.js";
8
8
  import { E as pa } from "./index-B8HqIYd5.js";
9
9
  const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
10
10
  __name: "index",
@@ -307,7 +307,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
307
307
  W.show = !1;
308
308
  }, Ia = (a, n) => {
309
309
  var s, C, r, x, f, H, M, O, F;
310
- if (fe.value = K(n), a === "删除")
310
+ if (fe.value = G(n), a === "删除")
311
311
  return oe.value === "任务配置" ? J.value = (s = J.value) == null ? void 0 : s.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id)) : oe.value === "任务关联" && (ne.value = (C = ne.value) == null ? void 0 : C.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id))), ye.setItemExtendData({
312
312
  任务配置: {
313
313
  pageKey: ge.value,
@@ -412,7 +412,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
412
412
  }, Ba = { key: 1 }, Ea = ["onClick"], Oa = { class: "icon-content" }, Fa = {
413
413
  key: 0,
414
414
  class: "edit-content"
415
- }, Aa = ["onClick"], Va = { title: "设置" }, Na = ["onClick"], Ua = { class: "parent-main" }, za = { style: { display: "flex", "justify-content": "space-between" } }, Ga = { title: "样式" }, Ka = { title: "交互" }, ja = { title: "扩展" }, Pa = { style: { width: "100%", "max-height": "500px", overflow: "auto" } }, Wa = {
415
+ }, Aa = ["onClick"], Va = { title: "设置" }, Na = ["onClick"], Ua = { class: "parent-main" }, Ka = { style: { display: "flex", "justify-content": "space-between" } }, za = { title: "样式" }, Ga = { title: "交互" }, ja = { title: "扩展" }, Pa = { style: { width: "100%", "max-height": "500px", overflow: "auto" } }, Wa = {
416
416
  __name: "index",
417
417
  setup(a) {
418
418
  const n = Ce(he), { itemData: i, originalData: s } = ie(n), C = ke(), { activeMenuPath: r } = ie(C);
@@ -420,35 +420,35 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
420
420
  const x = k([]), f = k([]), H = k([]), M = ae(() => {
421
421
  var c, t, g, v;
422
422
  return ((c = N.value) == null ? void 0 : c.length) > 0 && (t = N.value) != null && t.every((h) => {
423
- var V, z;
424
- return (h == null ? void 0 : h.comp) === ((z = (V = N.value) == null ? void 0 : V[0]) == null ? void 0 : z.comp);
423
+ var V, K;
424
+ return (h == null ? void 0 : h.comp) === ((K = (V = N.value) == null ? void 0 : V[0]) == null ? void 0 : K.comp);
425
425
  }) ? (v = (g = N.value) == null ? void 0 : g[0]) == null ? void 0 : v.comp : null;
426
426
  }), O = (c) => {
427
427
  var g;
428
- let t = (g = K(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !0), v));
428
+ let t = (g = G(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !0), v));
429
429
  f.value = t;
430
430
  }, F = (c) => {
431
431
  var g;
432
- let t = (g = K(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !1), v));
433
- f.value = t, N.value = K(i.value);
432
+ let t = (g = G(f.value)) == null ? void 0 : g.map((v, h) => (c === h && (v.content = !1), v));
433
+ f.value = t, N.value = G(i.value);
434
434
  }, D = (c, t) => {
435
435
  var V;
436
- let g = (V = K(f.value)) == null ? void 0 : V.map((z, u) => (c === u && (z.content = !1), z));
436
+ let g = (V = G(f.value)) == null ? void 0 : V.map((K, u) => (c === u && (K.content = !1), K));
437
437
  f.value = g;
438
- const v = K(i.value), h = v == null ? void 0 : v.filter((z, u) => (u === c && (z.name = t), z));
438
+ const v = G(i.value), h = v == null ? void 0 : v.filter((K, u) => (u === c && (K.name = t), K));
439
439
  n.setOriginalData(h), n.setItemData(h);
440
440
  }, Z = (c) => {
441
- const t = K(i.value), g = t == null ? void 0 : t.map((v, h) => ((v == null ? void 0 : v.name) === (c == null ? void 0 : c.name) ? v.isShow = !(c != null && c.isShow) : v.isShow = v.isShow, v));
441
+ const t = G(i.value), g = t == null ? void 0 : t.map((v, h) => ((v == null ? void 0 : v.name) === (c == null ? void 0 : c.name) ? v.isShow = !(c != null && c.isShow) : v.isShow = v.isShow, v));
442
442
  i.value = g;
443
443
  };
444
444
  be(
445
445
  () => i.value,
446
446
  () => {
447
447
  var c, t, g, v;
448
- !i.value || ((c = i.value) == null ? void 0 : c.length) === 0 ? N.value = [] : N.value = (t = i.value) == null ? void 0 : t.filter((h) => (h == null ? void 0 : h.comp) !== "methodButton"), x.value = N.value, f.value = (g = K(x.value)) == null ? void 0 : g.map((h, V) => ({
448
+ !i.value || ((c = i.value) == null ? void 0 : c.length) === 0 ? N.value = [] : N.value = (t = i.value) == null ? void 0 : t.filter((h) => (h == null ? void 0 : h.comp) !== "methodButton"), x.value = N.value, f.value = (g = G(x.value)) == null ? void 0 : g.map((h, V) => ({
449
449
  id: V,
450
450
  content: !1
451
- })), H.value = (v = K(x.value)) == null ? void 0 : v.map((h, V) => ({
451
+ })), H.value = (v = G(x.value)) == null ? void 0 : v.map((h, V) => ({
452
452
  id: V,
453
453
  isShow: h == null ? void 0 : h.isShow
454
454
  }));
@@ -456,16 +456,16 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
456
456
  { deep: !0, immediate: !0 }
457
457
  );
458
458
  const B = (c) => aa(c), ee = (c, t, g, v) => {
459
- var V, z;
459
+ var V, K;
460
460
  if (!c) return;
461
- let h = K(i.value);
461
+ let h = G(i.value);
462
462
  h = (V = h == null ? void 0 : h.map((u, y) => {
463
463
  if (v && y === g) {
464
464
  const { compData: d, itemChildData: Y } = c;
465
465
  return u.compData = d, u.itemChildData = Y, u;
466
466
  }
467
467
  return y === g && (u.compData = c), u;
468
- })) == null ? void 0 : V.filter((u) => (u == null ? void 0 : u.comp) !== "methodButton"), f.value = (z = K(h)) == null ? void 0 : z.map((u, y) => ({
468
+ })) == null ? void 0 : V.filter((u) => (u == null ? void 0 : u.comp) !== "methodButton"), f.value = (K = G(h)) == null ? void 0 : K.map((u, y) => ({
469
469
  id: y,
470
470
  content: !1
471
471
  })), n.setOriginalData(h), n.setItemData(h);
@@ -482,7 +482,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
482
482
  type: "warning"
483
483
  }).then(
484
484
  () => {
485
- const t = K(i.value), g = t == null ? void 0 : t.filter((v, h) => h !== c);
485
+ const t = G(i.value), g = t == null ? void 0 : t.filter((v, h) => h !== c);
486
486
  n.setOriginalData(g), n.setItemData(g), n.setActiveItemIndex(-1), pa({
487
487
  type: "success",
488
488
  message: "删除成功"
@@ -492,7 +492,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
492
492
  });
493
493
  };
494
494
  return (c, t) => {
495
- var z;
495
+ var K;
496
496
  const g = te("svg-icon"), v = te("el-tab-pane"), h = te("el-card"), V = te("el-tabs");
497
497
  return p(), $("div", Ra, [
498
498
  t[10] || (t[10] = w("div", { class: "fill-operate" }, "操作栏", -1)),
@@ -501,7 +501,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
501
501
  target: "overall",
502
502
  optionItems: _(Xe),
503
503
  compType: M.value,
504
- comp: (z = _(N)) == null ? void 0 : z[0],
504
+ comp: (K = _(N)) == null ? void 0 : K[0],
505
505
  onChange: _(Qe)
506
506
  }, null, 40, ["optionItems", "compType", "comp", "onChange"]))
507
507
  ]),
@@ -515,7 +515,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
515
515
  ref: P
516
516
  }, {
517
517
  title: L(({ item: u, index: y, isActive: d }) => {
518
- var Y, E, G, l, o, m, I, b, Q, se;
518
+ var Y, E, z, l, o, m, I, b, Q, se;
519
519
  return [
520
520
  w("div", {
521
521
  class: "collapse-title-content",
@@ -527,7 +527,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
527
527
  class: "collapse-title",
528
528
  style: ta({ marginRight: u.name && u.name !== "" ? "8px" : "0px" })
529
529
  }, re(u.name), 5)),
530
- (l = (G = f.value) == null ? void 0 : G.find((T) => T.id === y)) != null && l.content ? (p(), $("div", Ba, [
530
+ (l = (z = f.value) == null ? void 0 : z.find((T) => T.id === y)) != null && l.content ? (p(), $("div", Ba, [
531
531
  R(da, {
532
532
  modelValue: u.name,
533
533
  "onUpdate:modelValue": (T) => u.name = T,
@@ -605,20 +605,20 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
605
605
  }, [
606
606
  (p(), j(le(B(u.comp + "Operate")), {
607
607
  itemContents: u == null ? void 0 : u.compData,
608
- originalItemContents: (Y = (d = x.value) == null ? void 0 : d.find((E, G) => G === y)) == null ? void 0 : Y.compData,
608
+ originalItemContents: (Y = (d = x.value) == null ? void 0 : d.find((E, z) => z === y)) == null ? void 0 : Y.compData,
609
609
  itemChildData: u == null ? void 0 : u.itemChildData,
610
- onChange: (E, G) => ee(E, u, y, G)
610
+ onChange: (E, z) => ee(E, u, y, z)
611
611
  }, null, 40, ["itemContents", "originalItemContents", "itemChildData", "onChange"]))
612
612
  ], 8, Na),
613
613
  w("div", Ua, [
614
614
  t[5] || (t[5] = w("div", { class: "operate-title" }, [
615
615
  w("div", null, re("显隐控制"))
616
616
  ], -1)),
617
- w("div", za, [
617
+ w("div", Ka, [
618
618
  t[4] || (t[4] = w("div", { class: "operate-center-content" }, re("是否显示"), -1)),
619
619
  R(ia, {
620
620
  value: H.value.find((E) => E.id === y).isShow,
621
- "onUpdate:value": (E) => H.value.find((G) => G.id === y).isShow = E,
621
+ "onUpdate:value": (E) => H.value.find((z) => z.id === y).isShow = E,
622
622
  onClick: (E) => Z(u)
623
623
  }, null, 8, ["value", "onUpdate:value", "onClick"])
624
624
  ])
@@ -632,7 +632,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
632
632
  name: "style"
633
633
  }, {
634
634
  label: L(() => [
635
- w("span", Ga, [
635
+ w("span", za, [
636
636
  R(g, {
637
637
  name: "LowCodeStyle",
638
638
  style: { width: "15px", height: "15px", "margin-right": "5px" }
@@ -656,7 +656,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
656
656
  name: "event"
657
657
  }, {
658
658
  label: L(() => [
659
- w("span", Ka, [
659
+ w("span", Ga, [
660
660
  R(g, {
661
661
  name: "LowCodeEvent",
662
662
  style: { width: "15px", height: "15px", "margin-right": "5px" }
@@ -700,11 +700,11 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
700
700
  default: L(() => [
701
701
  R(h, null, {
702
702
  default: L(() => {
703
- var E, G, l;
703
+ var E, z, l;
704
704
  return [
705
705
  (p(), j(le(B((E = d == null ? void 0 : d.component) == null ? void 0 : E.comp)), {
706
706
  compItem: d == null ? void 0 : d.component,
707
- itemData: (G = d == null ? void 0 : d.component) == null ? void 0 : G.compData,
707
+ itemData: (z = d == null ? void 0 : d.component) == null ? void 0 : z.compData,
708
708
  childItemData: (l = d == null ? void 0 : d.component) == null ? void 0 : l.itemChildData,
709
709
  key: Y,
710
710
  level: 1,
@@ -793,7 +793,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
793
793
  var b;
794
794
  if (!l) return;
795
795
  let o = null;
796
- const m = K(r.value);
796
+ const m = G(r.value);
797
797
  if (s.value >= 0 && (o = m == null ? void 0 : m[s.value]), o && o.comp === "Layout") {
798
798
  const { compData: Q = [] } = o;
799
799
  ((b = Q == null ? void 0 : Q.find((T) => {
@@ -806,7 +806,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
806
806
  }), n.setItemData(m);
807
807
  return;
808
808
  }
809
- const I = K(r.value);
809
+ const I = G(r.value);
810
810
  I.push({
811
811
  comp: l.comp,
812
812
  name: l.name,
@@ -814,7 +814,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
814
814
  }), n.setItemData(I), E(I);
815
815
  }, V = (l) => {
816
816
  l.preventDefault(), l.dataTransfer.dropEffect = "copy";
817
- }, z = async (l) => {
817
+ }, K = async (l) => {
818
818
  try {
819
819
  const o = l.dataTransfer.getData("application/json");
820
820
  if (!o) return;
@@ -871,9 +871,9 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
871
871
  });
872
872
  }, { immediate: !0 }), be(() => i.value, (l) => {
873
873
  var o, m, I;
874
- H.setContentLoading(!0), r.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (o = K(l)) == null ? void 0 : o.filter((b) => !(b != null && b.affix) || (b == null ? void 0 : b.affix) === "default"), ee.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (m = K(l)) == null ? void 0 : m.filter((b) => (b == null ? void 0 : b.affix) && (b == null ? void 0 : b.affix) !== "default"), (I = P.value) != null && I.grid && E(r.value);
874
+ H.setContentLoading(!0), r.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (o = G(l)) == null ? void 0 : o.filter((b) => !(b != null && b.affix) || (b == null ? void 0 : b.affix) === "default"), ee.value = !l || (l == null ? void 0 : l.length) === 0 ? [] : (m = G(l)) == null ? void 0 : m.filter((b) => (b == null ? void 0 : b.affix) && (b == null ? void 0 : b.affix) !== "default"), (I = P.value) != null && I.grid && E(r.value);
875
875
  }, { deep: !0, immediate: !0 });
876
- const G = (l) => aa(l);
876
+ const z = (l) => aa(l);
877
877
  return (l, o) => {
878
878
  var se, T, me, xe, Te, Se, Re, Le, $e, Me, He, Be;
879
879
  const m = te("el-tab-pane"), I = te("el-tabs"), b = te("el-step"), Q = te("el-steps");
@@ -882,14 +882,14 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
882
882
  ref: O,
883
883
  class: "low-code-wrapper",
884
884
  onDragover: V,
885
- onDrop: z
885
+ onDrop: K
886
886
  }, [
887
887
  (se = P.value) != null && se.default ? (p(!0), $(ue, { key: 0 }, ce(r.value, (e, S) => (p(), $("div", {
888
888
  class: "item-content",
889
889
  key: S
890
890
  }, [
891
891
  w("div", Ya, re(e.name), 1),
892
- (p(), j(le(G(e.comp)), {
892
+ (p(), j(le(z(e.comp)), {
893
893
  itemData: e == null ? void 0 : e.compData,
894
894
  childItemData: e == null ? void 0 : e.itemChildData,
895
895
  key: S,
@@ -933,19 +933,19 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
933
933
  class: qe(_(Je)((Ee = r.value[S]) == null ? void 0 : Ee.comp) ? "grid-method-button" : "")
934
934
  }, {
935
935
  default: L(() => {
936
- var Oe, Fe, Ae, Ve, Ne, Ue, ze, Ge, Ke, je, Pe, We;
936
+ var Oe, Fe, Ae, Ve, Ne, Ue, Ke, ze, Ge, je, Pe, We;
937
937
  return [
938
938
  w("div", {
939
939
  class: qe((Fe = ee.value) != null && Fe.includes((Oe = e == null ? void 0 : e.component) == null ? void 0 : Oe.id) ? "comp-wrapper affix-content" : "comp-wrapper")
940
940
  }, [
941
941
  w("div", qa, re((Ae = r.value[S]) == null ? void 0 : Ae.name), 1),
942
- (p(), j(le(G((Ve = r.value[S]) == null ? void 0 : Ve.comp)), {
942
+ (p(), j(le(z((Ve = r.value[S]) == null ? void 0 : Ve.comp)), {
943
943
  pageLayout: U.value,
944
944
  itemData: (Ne = r.value[S]) == null ? void 0 : Ne.compData,
945
945
  childItemData: (Ue = r.value[S]) == null ? void 0 : Ue.itemChildData,
946
- index: ((ze = r.value[S]) == null ? void 0 : ze.id) ?? S,
947
- parentTableId: (Ge = r.value[S]) == null ? void 0 : Ge.tableId,
948
- children: (Ke = r.value[S]) == null ? void 0 : Ke.children,
946
+ index: ((Ke = r.value[S]) == null ? void 0 : Ke.id) ?? S,
947
+ parentTableId: (ze = r.value[S]) == null ? void 0 : ze.tableId,
948
+ children: (Ge = r.value[S]) == null ? void 0 : Ge.children,
949
949
  level: 1,
950
950
  config: {
951
951
  showIndex: (je = r.value[S]) == null ? void 0 : je.showIndex,
@@ -976,7 +976,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
976
976
  name: e == null ? void 0 : e.name
977
977
  }, {
978
978
  default: L(() => [
979
- (p(), j(le(G(e == null ? void 0 : e.comp)), {
979
+ (p(), j(le(z(e == null ? void 0 : e.comp)), {
980
980
  pageLayout: U.value,
981
981
  itemData: e == null ? void 0 : e.compData,
982
982
  childItemData: e == null ? void 0 : e.itemChildData,
@@ -1017,7 +1017,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
1017
1017
  _: 1
1018
1018
  }, 8, ["active"])) : q("", !0),
1019
1019
  (Te = P.value) != null && Te.step ? (p(), $("div", Xa, [
1020
- (p(), j(le(G((Se = t.value) == null ? void 0 : Se.comp)), {
1020
+ (p(), j(le(z((Se = t.value) == null ? void 0 : Se.comp)), {
1021
1021
  pageLayout: U.value,
1022
1022
  itemData: (Re = t.value) == null ? void 0 : Re.compData,
1023
1023
  childItemData: (Le = t.value) == null ? void 0 : Le.itemChildData,
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),K=require("./index-CmctAnWR.cjs"),v=require("./index-C8fMwErX.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-BPstNH4r.cjs"),Re=require("./index-DN2waPoj.cjs"),Le=require("./index-C5pQXH0_.cjs"),Me={class:"type-select"},$e={class:"group-label"},Fe={class:"group-items"},He=["onDragstart"],Oe={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=v.useModelComp(v.pinia),{itemData:r,activeItemIndex:y}=v.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",$e,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,He))),128))])]))),128))])}}},Ae=oe._export_sfc(Oe,[["__scopeId","data-v-951fb5b4"]]),le=v.useModelComp(v.pinia),{pageMapState:Ue}=v.storeToRefs(le),qe=v.useMenuState(),{activeMenuPath:Z}=v.storeToRefs(qe),q=e.ref([]),W=e.ref([]),ze=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:q.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ge=()=>{A.show=!1},Ke=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=v.cloneDeep(n),l==="删除")return Y.value==="任务配置"?q.value=(r=q.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:q.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},je=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Je()),te.value="data"},Pe=l=>{},We=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?q.value.push(l==null?void 0:l.data):q.value=(n=q.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",q.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:q.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Ye=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};We(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Je=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(q.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Xe={class:"fill-content"},Qe={class:"overall-config-wrapper"},Ze={class:"operate-content"},et=["onClick"],tt={class:"collapse-title-item",title:"编辑"},lt={key:1},at=["onClick"],ot={class:"icon-content"},nt={key:0,class:"edit-content"},st=["onClick"],rt={title:"设置"},ct=["onClick"],ut={class:"parent-main"},it={style:{display:"flex","justify-content":"space-between"}},dt={title:"样式"},pt={title:"交互"},vt={title:"扩展"},ft={style:{width:"100%","max-height":"500px",overflow:"auto"}},ht={__name:"index",setup(l){const n=v.useModelComp(v.pinia),{itemData:d,originalData:r}=v.storeToRefs(n),y=v.useMenuState(),{activeMenuPath:c}=v.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,f;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(f=(g=M.value)==null?void 0:g[0])==null?void 0:f.comp:null}),E=i=>{var g;let o=(g=v.cloneDeep(h.value))==null?void 0:g.map((f,m)=>(i===m&&(f.content=!0),f));h.value=o},S=i=>{var g;let o=(g=v.cloneDeep(h.value))==null?void 0:g.map((f,m)=>(i===m&&(f.content=!1),f));h.value=o,M.value=v.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=v.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const f=v.cloneDeep(d.value),m=f==null?void 0:f.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=v.cloneDeep(d.value),g=o==null?void 0:o.map((f,m)=>((f==null?void 0:f.name)===(i==null?void 0:i.name)?f.isShow=!(i!=null&&i.isShow):f.isShow=f.isShow,f));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,f;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=v.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(f=v.cloneDeep(w.value))==null?void 0:f.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,f)=>{var L,F;if(!i)return;let m=v.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(f&&_===g){const{compData:p,itemChildData:U}=i;return u.compData=p,u.itemChildData=U,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=v.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{v.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=v.cloneDeep(d.value),g=o==null?void 0:o.filter((f,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Le.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Xe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ze,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(je),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var U,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",tt,[(T=(U=h.value)==null?void 0:U.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(Ie._sfc_main$2,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,at))]),e.createElementVNode("div",ot,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,st))])],8,et)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(f,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",rt,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,U;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(U=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:U.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ct),e.createElementVNode("div",ut,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",it,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(f,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",dt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(f,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(f,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(Pe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ze),(p,U)=>(e.openBlock(),e.createBlock(f,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:U,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(Ke)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ge)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ft,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(q),onChange:e.unref(Te),onOnButtonClick:e.unref(Ye)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},mt=oe._export_sfc(ht,[["__scopeId","data-v-0ecba574"]]),gt={style:{display:"flex"}},Ct={style:{display:"flex"}},kt={key:2},yt={key:4,style:{"margin-top":"30px"}},_t={__name:"index",setup(l){const n=v.useModelComp(v.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=v.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=v.useMenuState(v.pinia),{activeMenuPath:I}=v.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),f=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=v.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=v.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),U()}catch(s){console.error("Drop error:",s),U()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},U=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&f((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=v.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=v.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",gt,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Ct,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>f(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},bt=oe._export_sfc(_t,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),Dt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=Dt;exports.modelFill=mt;exports.modelSelect=Ae;exports.modelShow=bt;
1
+ "use strict";const e=require("vue"),K=require("./index-MK7NdOmS.cjs"),v=require("./index-DRTxe12U.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-BPlHuTxE.cjs"),Re=require("./index-D_Yhv_HV.cjs"),Le=require("./index-C5pQXH0_.cjs"),Me={class:"type-select"},$e={class:"group-label"},Fe={class:"group-items"},He=["onDragstart"],Oe={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=v.useModelComp(v.pinia),{itemData:r,activeItemIndex:y}=v.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",$e,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,He))),128))])]))),128))])}}},Ae=oe._export_sfc(Oe,[["__scopeId","data-v-951fb5b4"]]),le=v.useModelComp(v.pinia),{pageMapState:Ue}=v.storeToRefs(le),qe=v.useMenuState(),{activeMenuPath:Z}=v.storeToRefs(qe),q=e.ref([]),W=e.ref([]),ze=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:q.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ge=()=>{A.show=!1},Ke=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=v.cloneDeep(n),l==="删除")return Y.value==="任务配置"?q.value=(r=q.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:q.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},je=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Je()),te.value="data"},Pe=l=>{},We=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?q.value.push(l==null?void 0:l.data):q.value=(n=q.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",q.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:q.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Ye=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};We(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Je=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(q.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Xe={class:"fill-content"},Qe={class:"overall-config-wrapper"},Ze={class:"operate-content"},et=["onClick"],tt={class:"collapse-title-item",title:"编辑"},lt={key:1},at=["onClick"],ot={class:"icon-content"},nt={key:0,class:"edit-content"},st=["onClick"],rt={title:"设置"},ct=["onClick"],ut={class:"parent-main"},it={style:{display:"flex","justify-content":"space-between"}},dt={title:"样式"},pt={title:"交互"},vt={title:"扩展"},ft={style:{width:"100%","max-height":"500px",overflow:"auto"}},ht={__name:"index",setup(l){const n=v.useModelComp(v.pinia),{itemData:d,originalData:r}=v.storeToRefs(n),y=v.useMenuState(),{activeMenuPath:c}=v.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,f;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(f=(g=M.value)==null?void 0:g[0])==null?void 0:f.comp:null}),E=i=>{var g;let o=(g=v.cloneDeep(h.value))==null?void 0:g.map((f,m)=>(i===m&&(f.content=!0),f));h.value=o},S=i=>{var g;let o=(g=v.cloneDeep(h.value))==null?void 0:g.map((f,m)=>(i===m&&(f.content=!1),f));h.value=o,M.value=v.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=v.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const f=v.cloneDeep(d.value),m=f==null?void 0:f.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=v.cloneDeep(d.value),g=o==null?void 0:o.map((f,m)=>((f==null?void 0:f.name)===(i==null?void 0:i.name)?f.isShow=!(i!=null&&i.isShow):f.isShow=f.isShow,f));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,f;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=v.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(f=v.cloneDeep(w.value))==null?void 0:f.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,f)=>{var L,F;if(!i)return;let m=v.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(f&&_===g){const{compData:p,itemChildData:U}=i;return u.compData=p,u.itemChildData=U,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=v.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{v.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=v.cloneDeep(d.value),g=o==null?void 0:o.filter((f,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Le.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Xe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Qe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ze,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(je),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var U,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",tt,[(T=(U=h.value)==null?void 0:U.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(Ie._sfc_main$2,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,at))]),e.createElementVNode("div",ot,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,st))])],8,et)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(f,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",rt,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,U;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(U=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:U.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ct),e.createElementVNode("div",ut,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",it,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(f,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",dt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(f,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(f,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(Pe)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ze),(p,U)=>(e.openBlock(),e.createBlock(f,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:U,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(Ke)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ge)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ft,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(q),onChange:e.unref(Te),onOnButtonClick:e.unref(Ye)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},mt=oe._export_sfc(ht,[["__scopeId","data-v-0ecba574"]]),gt={style:{display:"flex"}},Ct={style:{display:"flex"}},kt={key:2},yt={key:4,style:{"margin-top":"30px"}},_t={__name:"index",setup(l){const n=v.useModelComp(v.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=v.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=v.useMenuState(v.pinia),{activeMenuPath:I}=v.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),f=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=v.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=v.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),U()}catch(s){console.error("Drop error:",s),U()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},U=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&f((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=v.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=v.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",gt,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Ct,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>f(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},bt=oe._export_sfc(_t,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),Dt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=Dt;exports.modelFill=mt;exports.modelSelect=Ae;exports.modelShow=bt;