ss-component-new 1.2.320 → 1.2.321

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 (82) hide show
  1. package/dist/{MTLLoader-CDSTkv2r.js → MTLLoader-DPOghquc.js} +44 -44
  2. package/dist/{MTLLoader-CzQIVnkW.cjs → MTLLoader-WtlM9u4_.cjs} +1 -1
  3. package/dist/{OrbitControls-D-H9X2Xc.cjs → OrbitControls-B4WKzU1G.cjs} +1 -1
  4. package/dist/{OrbitControls-DcmX9nvA.js → OrbitControls-D-nkCRIf.js} +1 -1
  5. package/dist/{URDFLoader-B_kf63rV.cjs → URDFLoader-BCALUmPB.cjs} +1 -1
  6. package/dist/{URDFLoader-CdN4_DgF.js → URDFLoader-CWlOHauP.js} +95 -95
  7. package/dist/{animationData-Clpy-I6C.cjs → animationData-C0UguIKQ.cjs} +1 -1
  8. package/dist/{animationData-CEhF6uNe.js → animationData-Dzdp9nas.js} +22 -22
  9. package/dist/{array-hFAdDlKV.cjs → array-CK9adN1S.cjs} +1 -1
  10. package/dist/{array-BnbdEheX.js → array-DsXvI7kM.js} +36 -36
  11. package/dist/{iconfont-D0jIkQMM.js → iconfont-BnHV6N2N.js} +21 -21
  12. package/dist/{iconfont-CdKkdWWU.cjs → iconfont-lNXhZpFp.cjs} +1 -1
  13. package/dist/{index-acHXwlR5.cjs → index--86Gn2ru.cjs} +1 -1
  14. package/dist/{index-DMzQ5VfV.cjs → index-0mdQIssU.cjs} +1 -1
  15. package/dist/index-1Owg_Mf-.cjs +1 -0
  16. package/dist/{index-BN6O_Eek.js → index-9UoNKztf.js} +1 -1
  17. package/dist/{index-DGWdVqDd.cjs → index-A_jMsoyr.cjs} +1 -1
  18. package/dist/{index-Hsb03y-r.js → index-B1H0LkPE.js} +1 -1
  19. package/dist/{index-Dtm1Qjht.js → index-BBclOeFM.js} +1 -1
  20. package/dist/{index-B63s-JlF.js → index-BGMypXCK.js} +4 -4
  21. package/dist/{index-ChY5FLQd.js → index-BSgP28TB.js} +2 -2
  22. package/dist/{index-CsYuwsiy.cjs → index-B_ocki10.cjs} +1 -1
  23. package/dist/{index-CZmHTDer.cjs → index-BcDHAiO3.cjs} +1 -1
  24. package/dist/{index-B9biCv6N.js → index-BsIOE41E.js} +1 -1
  25. package/dist/{index-BUgBjm_0.cjs → index-BykHr1Eg.cjs} +1 -1
  26. package/dist/{index-BULVh0UT.js → index-C7bPptTr.js} +1 -1
  27. package/dist/{index-BbLk-2Gd.js → index-CZ6fkXHY.js} +5 -5
  28. package/dist/index-CZXiiKiM.cjs +11 -0
  29. package/dist/index-CigkH2AZ.js +12465 -0
  30. package/dist/{index-CuaMF-D0.js → index-Cxsfl10z.js} +3 -3
  31. package/dist/{index-BMobTVwt.cjs → index-D0xh6m7C.cjs} +1 -1
  32. package/dist/{index-CKJP2psW.cjs → index-D2lip588.cjs} +1 -1
  33. package/dist/{index-BBYRL3BD.js → index-D7Gyeuk1.js} +4 -4
  34. package/dist/{index-CmYzo1h5.cjs → index-DCYH5zL4.cjs} +1 -1
  35. package/dist/{index-CIWoZH8M.cjs → index-DN4tn4Q1.cjs} +1 -1
  36. package/dist/{index-DhORf5Ca.cjs → index-DRTEyrqM.cjs} +1 -1
  37. package/dist/{index-C_mznIEq.js → index-DTAyw_rT.js} +5 -5
  38. package/dist/{index-ChkaCKRr.js → index-DWpSqmnH.js} +2150 -2152
  39. package/dist/{index-WhfGtq5k.js → index-DeINnO1a.js} +1 -1
  40. package/dist/{index-CDxSv4Fm.cjs → index-DlRKKRIJ.cjs} +1 -1
  41. package/dist/{index-2pT_YeoR.cjs → index-DmUZr5rN.cjs} +1 -1
  42. package/dist/{index-Dcvmiima.js → index-DuAd7WnG.js} +1 -1
  43. package/dist/{index-gII2yOS-.js → index-Dz0Yy_aU.js} +3 -3
  44. package/dist/{index-DsWNgreC.js → index-EEdSZ0XK.js} +1 -1
  45. package/dist/{index-D-EuGZq6.cjs → index-HIz3WqB6.cjs} +1 -1
  46. package/dist/{index-an4li1M5.cjs → index-HZa2fjvR.cjs} +1 -1
  47. package/dist/{index-auR6PIXZ.js → index-McjYxFmy.js} +4 -4
  48. package/dist/{index-B2NXMUwG.cjs → index-NT3-shBq.cjs} +1 -1
  49. package/dist/{index-BkR1ZyW0.cjs → index-Y-aMAtUz.cjs} +1 -1
  50. package/dist/{index-q3TzHC9c.cjs → index-ZDxZcfNU.cjs} +1 -1
  51. package/dist/{index-B--dkiC3.js → index-r0hSh3Ho.js} +1 -1
  52. package/dist/{index-Cz3X-nTr.js → index-seLSz6FS.js} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bo3GWmfl.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B-jMTZLT.cjs} +107 -107
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js} +152 -151
  55. package/dist/{index.vue_vue_type_style_index_1_lang-CCAvftWy.js → index.vue_vue_type_style_index_1_lang-BlEiaBVX.js} +182 -182
  56. package/dist/{index.vue_vue_type_style_index_1_lang-C82aG_1o.cjs → index.vue_vue_type_style_index_1_lang-Dl0UrVqn.cjs} +1 -1
  57. package/dist/{main-TVcRSKDf.cjs → main-D9dcB2l7.cjs} +1 -1
  58. package/dist/{main-CGEK-Lu3.js → main-DrHv50I2.js} +3 -3
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.js +8 -8
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-BWNBsSte.cjs → threeModel-CU32ZPcV.cjs} +1 -1
  64. package/dist/{threeModel-DiqA6QHp.js → threeModel-D99aHX_f.js} +24 -24
  65. package/dist/{threePreview-_Y77vG5u.js → threePreview-Br0EE4Ud.js} +114 -114
  66. package/dist/{threePreview-Ceu1jsHj.cjs → threePreview-DVU8LB-6.cjs} +1 -1
  67. package/dist/{threeSceneView-KzaY14zK.js → threeSceneView-COmqJFJG.js} +8 -8
  68. package/dist/{threeSceneView-CQIft8NI.cjs → threeSceneView-DqdT1Ddr.cjs} +1 -1
  69. package/dist/{threeSceneViewForCPMPIP-Cb79-tDO.js → threeSceneViewForCPMPIP-B51x6Ync.js} +7 -7
  70. package/dist/{threeSceneViewForCPMPIP-B77HstZi.cjs → threeSceneViewForCPMPIP-ra01ZlH4.cjs} +1 -1
  71. package/dist/{threeTrackPathView-CmZ0-vAj.js → threeTrackPathView-C22dVYEt.js} +88 -88
  72. package/dist/{threeTrackPathView-Bb5aCZ93.cjs → threeTrackPathView-DAoYI7KH.cjs} +1 -1
  73. package/dist/{threeViewerHost-C7xRsvtB.js → threeViewerHost-CxfATzg5.js} +15 -15
  74. package/dist/{threeViewerHost-9ZQ5PlEH.cjs → threeViewerHost-dB3mMvbG.cjs} +1 -1
  75. package/dist/{urdfTree-BIfrcTrZ.js → urdfTree-B7vFAieq.js} +4 -4
  76. package/dist/{urdfTree-Cf82F-ZA.cjs → urdfTree-Un6KDIVy.cjs} +1 -1
  77. package/dist/{workpieceTreePanel-CoG2RuKE.js → workpieceTreePanel-CgNiyUrm.js} +27 -27
  78. package/dist/{workpieceTreePanel-BjrztNlC.cjs → workpieceTreePanel-D6QEaOh8.cjs} +1 -1
  79. package/package.json +1 -1
  80. package/dist/index-CbJ7Fc-s.js +0 -12271
  81. package/dist/index-GVffFAZv.cjs +0 -1
  82. package/dist/index-J-1vJ4iC.cjs +0 -11
@@ -1,8 +1,8 @@
1
- import { g as B, aK as C, c as x, aA as N, bM as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js";
2
- import { c as K } from "./index-BjCGdt04.js";
1
+ import { g as j, aL as C, c as x, aB as K, bN as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js";
2
+ import { c as B } from "./index-BjCGdt04.js";
3
3
  const g = async (n) => {
4
4
  const e = n.join("/"), c = sessionStorage.getItem("systemKey");
5
- return await B(e, c, "");
5
+ return await j(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) => {
@@ -17,59 +17,59 @@ const g = async (n) => {
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);
20
- const D = i, T = p / 2, k = await g(["弯管仿真加工分析", "加工位姿生成"]), A = C("输入", k), b = R(A), P = b.夹持长度 || 0;
20
+ const D = i, T = p / 2, k = await g(["弯管仿真加工分析", "加工位姿生成"]), E = C("输入", k), b = R(E), P = b.夹持长度 || 0;
21
21
  console.log("夹持长度", P, b);
22
- const E = Number(P), m = {}, l = await g(["弯管仿真加工分析", "仿真动画生成"]);
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 G = K(m) || [];
37
+ const A = B(m) || [];
38
38
  return n = {
39
39
  initialPipeLength: D,
40
40
  pipeRadius: T,
41
- clampLength: E,
42
- animationData: G
41
+ clampLength: G,
42
+ animationData: A
43
43
  }, n;
44
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);
48
- const D = i, T = p / 2, k = await g(["双弯管仿真加工分析", "加工工艺生成"]), A = C("输入", k), b = R(A), P = b.夹持位置 || 0;
48
+ const D = i, T = p / 2, k = await g(["双弯管仿真加工分析", "加工工艺生成"]), E = C("输入", k), b = R(E), P = b.夹持位置 || 0;
49
49
  console.log("夹持长度", P, b);
50
- const E = Number(P), m = {}, l = await g(["双弯管仿真加工分析", "仿真动画生成"]);
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 G = K(m) || [];
65
+ const A = B(m) || [];
66
66
  return n = {
67
67
  initialPipeLength: D,
68
68
  pipeRadius: T,
69
- clampLength: E,
70
- animationData: G
69
+ clampLength: G,
70
+ animationData: A
71
71
  }, n;
72
- }, V = async (n) => await N(n), X = async (n) => await S(n), H = 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
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),j=require("./index-GVffFAZv.cjs"),A=require("./index-B5Iw9Udy.cjs"),D=require("./index-BJR7UdIU.cjs"),ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=require("./index-BVaHwt5f.cjs"),Ve=require("./index-2pT_YeoR.cjs"),Le=require("./index-DhORf5Ca.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=D.useModelComp(A.pinia),{itemData:r,activeItemIndex:k}=A.storeToRefs(d),c=n,w=e.ref(null),f=e.computed(()=>{var W,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},_=(W=j.slotContent.value)==null?void 0:W.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())}),P=(O=j.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=($=j.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:_},{...E,items:P},{...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(f.value,_=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:_==null?void 0:_.label},[e.createElementVNode("div",$e,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_==null?void 0:_.items,(P,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:W=>V(W,P)},[e.createVNode(S,{name:P.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(P.name),1)],40,He))),128))])]))),128))])}}},Ae=ne._export_sfc(Oe,[["__scopeId","data-v-951fb5b4"]]),ae=D.useModelComp(A.pinia),{pageMapState:Ue}=A.storeToRefs(ae),qe=D.useMenuState(),{activeMenuPath:ee}=A.storeToRefs(qe),z=e.ref([]),Y=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:z.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:Y.value}]}}]),M=e.ref([]),Ne=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}))}),le=e.ref("data"),J=e.ref("任务配置"),Z=e.ref({}),G=e.ref(null),U=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ge=()=>{U.show=!1},Ke=(l,n)=>{var r,k,c,w,f,V,I,E,S;if(Z.value=D.cloneDeep(n),l==="删除")return J.value==="任务配置"?z.value=(r=z.value)==null?void 0:r.filter(_=>(_==null?void 0:_.id)!==(n==null?void 0:n.id)):J.value==="任务关联"&&(Y.value=(k=Y.value)==null?void 0:k.filter(_=>(_==null?void 0:_.id)!==(n==null?void 0:n.id))),ae.setItemExtendData({任务配置:{pageKey:ee.value,compId:(c=G.value)==null?void 0:c.id,results:z.value},任务关联:{pageKey:ee.value,compId:(w=G.value)==null?void 0:w.id,results:Y.value}});const d=n?(f=Object.keys(n))==null?void 0:f[1]:"";J.value==="任务配置"?U.title=`当前配置:${(V=G.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:J.value==="任务关联"&&(U.title=`当前配置:${(I=G.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),U.type=typeof((E=Z.value)==null?void 0:E.id)=="string"||!((S=Z.value)!=null&&S.id)?"创建":"编辑",U.show=l==="创建"||l==="访问"},je=l=>{var n;typeof l=="number"&&(G.value=(n=M.value)==null?void 0:n[l],Je()),le.value="data"},Pe=l=>{},We=l=>{var n,d;switch(J.value){case"任务配置":U.type==="创建"?z.value.push(l==null?void 0:l.data):z.value=(n=z.value)==null?void 0:n.map(r=>{var k;return(r==null?void 0:r.id)===((k=l==null?void 0:l.data)==null?void 0:k.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":U.type==="创建"?Y.value.push(l==null?void 0:l.data):Y.value=(d=Y.value)==null?void 0:d.map(r=>{var k;return(r==null?void 0:r.id)===((k=l==null?void 0:l.data)==null?void 0:k.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",z.value,l,U.type),ae.setItemExtendData({任务配置:{pageKey:ee.value,compId:l==null?void 0:l.compId,results:z.value},任务关联:{pageKey:ee.value,compId:l==null?void 0:l.compId,results:Y.value}}),U.show=!1},Ye=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")U.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=G.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Z.value)==null?void 0:d.id}};We(r)}},Te=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const k=r==null?void 0:r.reduce((f,V)=>(f[V.prop]=V.value,f),{});n?M.value=(w=M.value)==null?void 0:w.map(f=>(f==null?void 0:f.id)===(n==null?void 0:n.id)?{...f,...k}:f):M.value=(c=M.value)==null?void 0:c.map(f=>({...f,...k})),ae.setItemData(M.value)},Ee=l=>{},Se=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var k,c,w,f,V;return((c=(k=r==null?void 0:r.key)==null?void 0:k.relatedInfo)==null?void 0:c.target)===n&&((f=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:f.compId)===((V=G.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var k;return{...(k=r==null?void 0:r.value)==null?void 0:k.tableData,id:r==null?void 0:r.id}})},Je=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[ee.value])==null?void 0:d.filter(r=>{var k;return((k=r==null?void 0:r.key)==null?void 0:k.type)==="extend"});(l==null?void 0:l.length)!==0&&(z.value=Se(l,"任务配置"),Y.value=Se(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=D.useModelComp(A.pinia),{itemData:d,originalData:r}=A.storeToRefs(n),k=D.useMenuState(),{activeMenuPath:c}=A.storeToRefs(k);e.ref([]);const w=e.ref([]),f=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,m,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(h=>{var L,F;return(h==null?void 0:h.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(m=M.value)==null?void 0:m[0])==null?void 0:v.comp:null}),E=i=>{var m;let o=(m=D.cloneDeep(f.value))==null?void 0:m.map((v,h)=>(i===h&&(v.content=!0),v));f.value=o},S=i=>{var m;let o=(m=D.cloneDeep(f.value))==null?void 0:m.map((v,h)=>(i===h&&(v.content=!1),v));f.value=o,M.value=D.cloneDeep(d.value)},_=(i,o)=>{var L;let m=(L=D.cloneDeep(f.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));f.value=m;const v=D.cloneDeep(d.value),h=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(h),n.setItemData(h)},P=i=>{const o=D.cloneDeep(d.value),m=o==null?void 0:o.map((v,h)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=m};e.watch(()=>d.value,()=>{var i,o,m,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(h=>(h==null?void 0:h.comp)!=="methodButton"),w.value=M.value,f.value=(m=D.cloneDeep(w.value))==null?void 0:m.map((h,L)=>({id:L,content:!1})),V.value=(v=D.cloneDeep(w.value))==null?void 0:v.map((h,L)=>({id:L,isShow:h==null?void 0:h.isShow}))},{deep:!0,immediate:!0});const N=i=>j.getComponent(i),W=(i,o,m,v)=>{var L,F;if(!i)return;let h=D.cloneDeep(d.value);h=(L=h==null?void 0:h.map((u,y)=>{if(v&&y===m){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return y===m&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),f.value=(F=D.cloneDeep(h))==null?void 0:F.map((u,y)=>({id:y,content:!1})),n.setOriginalData(h),n.setItemData(h)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{D.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=D.cloneDeep(d.value),m=o==null?void 0:o.filter((v,h)=>h!==i);n.setOriginalData(m),n.setItemData(m),n.setActiveItemIndex(-1),A.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const m=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),h=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(Ne),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Te)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ze,[e.createVNode(Re.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:y,isActive:p})=>{var q,T,H,a,s,g,b,C,K,X;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(y,p)},[e.createElementVNode("div",tt,[(T=(q=f.value)==null?void 0:q.find(x=>x.id===y))!=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=f.value)==null?void 0:H.find(x=>x.id===y))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(Ve._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),(g=(s=f.value)==null?void 0:s.find(x=>x.id===y))!=null&&g.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(y),["stop"]),class:"icon-content"},[e.createVNode(m,{name:"Edit",style:{width:"13px",height:"13px"}})],8,at))]),e.createElementVNode("div",ot,[(C=(b=f.value)==null?void 0:b.find(x=>x.id===y))!=null&&C.content?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(m,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(y),["stop"])},null,8,["onClick"]),e.createVNode(m,{name:"Save",onClick:e.withModifiers(x=>_(y,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(X=(K=f.value)==null?void 0:K.find(x=>x.id===y))!=null&&X.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(y),["stop"]),class:"icon-content"},[e.createVNode(m,{name:"Delete",style:{width:"16px",height:"16px"}})],8,st))])],8,et)]}),content:e.withCtx(({item:u,index:y})=>[e.createVNode(L,{modelValue:e.unref(le),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(le)?le.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",rt,[e.createVNode(m,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(y)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===y))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>W(T,u,y,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(Ve._sfc_main$1,{value:V.value.find(T=>T.id===y).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===y).isShow=T,onClick:T=>P(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",dt,[e.createVNode(m,{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(Ne),onChange:p=>e.unref(Te)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(m,{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(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(m,{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(J),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(J)?J.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,q)=>(e.openBlock(),e.createBlock(v,{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(h,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:q,level:1,onChange:e.unref(Ee),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(Le.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(U).show,title:e.unref(U).title,dialogWidth:e.unref(U).width,onBeforeDestroy:e.unref(Ge)},{default:e.withCtx(()=>{var u,y;return[e.createElementVNode("div",ft,[e.unref(G)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(G))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(G),extendItem:e.unref(Z),compType:(y=e.unref(G))==null?void 0:y.comp,activeTabName:e.unref(J),relatedData:e.unref(z),onChange:e.unref(Ee),onOnButtonClick:e.unref(Ye)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},mt=ne._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=D.useModelComp(A.pinia),{itemData:d,activeItemIndex:r,pageMapState:k}=A.storeToRefs(n),c=e.ref([]),w=e.ref(0),f=e.ref(""),V=D.useMenuState(A.pinia),{activeMenuPath:I}=A.storeToRefs(V),E=e.ref(null),S=e.ref(null),_=e.ref(24),P=e.ref(2),N=e.ref([]),W=e.ref([]),O=e.computed(()=>{var a,s,g;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"&&((g=c.value)==null?void 0:g.length)>0}}),$=e.computed(()=>{var a,s,g,b;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(C=>C==null?void 0:C.layout))?(b=(g=c.value)==null?void 0:g[0])==null?void 0:b.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),m=e.computed(()=>{var a,s,g;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(g=(s=c.value)==null?void 0:s[0])==null?void 0:g.name:""}),v=(a,s)=>{w.value=s,o.value=a},h=a=>{var C;if(!a)return;let s=null;const g=D.cloneDeep(c.value);if(r.value>=0&&(s=g==null?void 0:g[r.value]),s&&s.comp==="Layout"){const{compData:K=[]}=s;((C=K==null?void 0:K.find(x=>{const{key:te}=x;return te==="children"}))==null?void 0:C.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(g);return}const b=D.cloneDeep(c.value);b.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(b),T(b)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const g=JSON.parse(s),b=await u(a),C=y(g,b);await e.nextTick(),p(C),h(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const g=E.value.getBoundingClientRect(),b=a.clientX-g.left,C=a.clientY,K=Math.floor(b/(g.width/_.value)),X=Math.floor(C/(g.width/_.value));s({x:Math.max(0,K),y:Math.max(0,X),w:_.value,h:P.value})})}):{x:0,y:0},y=(a,s)=>{var b,C;const g=`item_${Date.now()}_${(C=(b=Math.random())==null?void 0:b.toString(36))==null?void 0:C.substring(2,9)}`;return{i:g,id:g,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)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:j.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,g;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(g=N.value)==null?void 0:g.map(b=>b==null?void 0:b.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,g,b;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=D.cloneDeep(a))==null?void 0:s.filter(C=>!(C!=null&&C.affix)||(C==null?void 0:C.affix)==="default"),W.value=!a||(a==null?void 0:a.length)===0?[]:(g=D.cloneDeep(a))==null?void 0:g.filter(C=>(C==null?void 0:C.affix)&&(C==null?void 0:C.affix)!=="default"),(b=O.value)!=null&&b.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>j.getComponent(a);return(a,s)=>{var X,x,te,se,re,ce,ue,ie,de,pe,ve,fe;const g=e.resolveComponent("el-tab-pane"),b=e.resolveComponent("el-tabs"),C=e.resolveComponent("el-step"),K=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(X=O.value)!=null&&X.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(j.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 oe,he;return e.openBlock(),e.createBlock(e.unref(j.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(j.verifyButton)((oe=c.value[B])==null?void 0:oe.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(j.verifyButton)((he=c.value[B])==null?void 0:he.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var me,ge,Ce,ke,ye,_e,be,De,we,xe,Be,Ie;return[e.createElementVNode("div",{class:e.normalizeClass((ge=W.value)!=null&&ge.includes((me=t==null?void 0:t.component)==null?void 0:me.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Ct,e.toDisplayString((Ce=c.value[B])==null?void 0:Ce.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((ke=c.value[B])==null?void 0:ke.comp)),{pageLayout:$.value,itemData:(ye=c.value[B])==null?void 0:ye.compData,childItemData:(_e=c.value[B])==null?void 0:_e.itemChildData,index:((be=c.value[B])==null?void 0:be.id)??B,parentTableId:(De=c.value[B])==null?void 0:De.tableId,children:(we=c.value[B])==null?void 0:we.children,level:1,config:{showIndex:(xe=c.value[B])==null?void 0:xe.showIndex,allowMove:(Be=c.value[B])==null?void 0:Be.allowMove,viewport:(Ie=c.value[B])==null?void 0:Ie.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),(te=O.value)!=null&&te.tab?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":s[1]||(s[1]=t=>m.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(g,{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),(se=O.value)!=null&&se.step?(e.openBlock(),e.createBlock(K,{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(C,{key:B,class:"step-item",status:f.value,onClick:oe=>v(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),(re=O.value)!=null&&re.step?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((ce=o.value)==null?void 0:ce.comp)),{pageLayout:$.value,itemData:(ue=o.value)==null?void 0:ue.compData,childItemData:(ie=o.value)==null?void 0:ie.itemChildData,key:(de=o.value)==null?void 0:de.id,config:{showIndex:(pe=o.value)==null?void 0:pe.showIndex,allowMove:(ve=o.value)==null?void 0:ve.allowMove,viewport:(fe=o.value)==null?void 0:fe.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},bt=ne._export_sfc(_t,[["__scopeId","data-v-fda67a9b"]]),Q=e.ref(0),Dt=l=>l.reduce((d,r)=>{var c,w;const k=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||k[k.length-1].length>=(r==null?void 0:r.width))&&(d[Q.value]=[],Q.value++),d[Q.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[Q.value]=[],Q.value++),d},{});exports.arrayToNumberArray=Dt;exports.modelFill=mt;exports.modelSelect=Ae;exports.modelShow=bt;
1
+ "use strict";const e=require("vue"),j=require("./index-CZXiiKiM.cjs"),A=require("./index-B5Iw9Udy.cjs"),D=require("./index-BJR7UdIU.cjs"),ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=require("./index-BVaHwt5f.cjs"),Ve=require("./index-DmUZr5rN.cjs"),Le=require("./index-DRTEyrqM.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=D.useModelComp(A.pinia),{itemData:r,activeItemIndex:k}=A.storeToRefs(d),c=n,w=e.ref(null),f=e.computed(()=>{var W,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},_=(W=j.slotContent.value)==null?void 0:W.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())}),P=(O=j.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=($=j.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:_},{...E,items:P},{...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(f.value,_=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:_==null?void 0:_.label},[e.createElementVNode("div",$e,e.toDisplayString(_==null?void 0:_.label),1),e.createElementVNode("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_==null?void 0:_.items,(P,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:W=>V(W,P)},[e.createVNode(S,{name:P.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(P.name),1)],40,He))),128))])]))),128))])}}},Ae=ne._export_sfc(Oe,[["__scopeId","data-v-951fb5b4"]]),ae=D.useModelComp(A.pinia),{pageMapState:Ue}=A.storeToRefs(ae),qe=D.useMenuState(),{activeMenuPath:ee}=A.storeToRefs(qe),z=e.ref([]),Y=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:z.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:Y.value}]}}]),M=e.ref([]),Ne=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}))}),le=e.ref("data"),J=e.ref("任务配置"),Z=e.ref({}),G=e.ref(null),U=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ge=()=>{U.show=!1},Ke=(l,n)=>{var r,k,c,w,f,V,I,E,S;if(Z.value=D.cloneDeep(n),l==="删除")return J.value==="任务配置"?z.value=(r=z.value)==null?void 0:r.filter(_=>(_==null?void 0:_.id)!==(n==null?void 0:n.id)):J.value==="任务关联"&&(Y.value=(k=Y.value)==null?void 0:k.filter(_=>(_==null?void 0:_.id)!==(n==null?void 0:n.id))),ae.setItemExtendData({任务配置:{pageKey:ee.value,compId:(c=G.value)==null?void 0:c.id,results:z.value},任务关联:{pageKey:ee.value,compId:(w=G.value)==null?void 0:w.id,results:Y.value}});const d=n?(f=Object.keys(n))==null?void 0:f[1]:"";J.value==="任务配置"?U.title=`当前配置:${(V=G.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:J.value==="任务关联"&&(U.title=`当前配置:${(I=G.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),U.type=typeof((E=Z.value)==null?void 0:E.id)=="string"||!((S=Z.value)!=null&&S.id)?"创建":"编辑",U.show=l==="创建"||l==="访问"},je=l=>{var n;typeof l=="number"&&(G.value=(n=M.value)==null?void 0:n[l],Je()),le.value="data"},Pe=l=>{},We=l=>{var n,d;switch(J.value){case"任务配置":U.type==="创建"?z.value.push(l==null?void 0:l.data):z.value=(n=z.value)==null?void 0:n.map(r=>{var k;return(r==null?void 0:r.id)===((k=l==null?void 0:l.data)==null?void 0:k.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":U.type==="创建"?Y.value.push(l==null?void 0:l.data):Y.value=(d=Y.value)==null?void 0:d.map(r=>{var k;return(r==null?void 0:r.id)===((k=l==null?void 0:l.data)==null?void 0:k.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",z.value,l,U.type),ae.setItemExtendData({任务配置:{pageKey:ee.value,compId:l==null?void 0:l.compId,results:z.value},任务关联:{pageKey:ee.value,compId:l==null?void 0:l.compId,results:Y.value}}),U.show=!1},Ye=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")U.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=G.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Z.value)==null?void 0:d.id}};We(r)}},Te=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const k=r==null?void 0:r.reduce((f,V)=>(f[V.prop]=V.value,f),{});n?M.value=(w=M.value)==null?void 0:w.map(f=>(f==null?void 0:f.id)===(n==null?void 0:n.id)?{...f,...k}:f):M.value=(c=M.value)==null?void 0:c.map(f=>({...f,...k})),ae.setItemData(M.value)},Ee=l=>{},Se=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var k,c,w,f,V;return((c=(k=r==null?void 0:r.key)==null?void 0:k.relatedInfo)==null?void 0:c.target)===n&&((f=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:f.compId)===((V=G.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var k;return{...(k=r==null?void 0:r.value)==null?void 0:k.tableData,id:r==null?void 0:r.id}})},Je=()=>{var n,d;const l=(d=(n=Ue.value)==null?void 0:n[ee.value])==null?void 0:d.filter(r=>{var k;return((k=r==null?void 0:r.key)==null?void 0:k.type)==="extend"});(l==null?void 0:l.length)!==0&&(z.value=Se(l,"任务配置"),Y.value=Se(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=D.useModelComp(A.pinia),{itemData:d,originalData:r}=A.storeToRefs(n),k=D.useMenuState(),{activeMenuPath:c}=A.storeToRefs(k);e.ref([]);const w=e.ref([]),f=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,m,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(h=>{var L,F;return(h==null?void 0:h.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(m=M.value)==null?void 0:m[0])==null?void 0:v.comp:null}),E=i=>{var m;let o=(m=D.cloneDeep(f.value))==null?void 0:m.map((v,h)=>(i===h&&(v.content=!0),v));f.value=o},S=i=>{var m;let o=(m=D.cloneDeep(f.value))==null?void 0:m.map((v,h)=>(i===h&&(v.content=!1),v));f.value=o,M.value=D.cloneDeep(d.value)},_=(i,o)=>{var L;let m=(L=D.cloneDeep(f.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));f.value=m;const v=D.cloneDeep(d.value),h=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(h),n.setItemData(h)},P=i=>{const o=D.cloneDeep(d.value),m=o==null?void 0:o.map((v,h)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=m};e.watch(()=>d.value,()=>{var i,o,m,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(h=>(h==null?void 0:h.comp)!=="methodButton"),w.value=M.value,f.value=(m=D.cloneDeep(w.value))==null?void 0:m.map((h,L)=>({id:L,content:!1})),V.value=(v=D.cloneDeep(w.value))==null?void 0:v.map((h,L)=>({id:L,isShow:h==null?void 0:h.isShow}))},{deep:!0,immediate:!0});const N=i=>j.getComponent(i),W=(i,o,m,v)=>{var L,F;if(!i)return;let h=D.cloneDeep(d.value);h=(L=h==null?void 0:h.map((u,y)=>{if(v&&y===m){const{compData:p,itemChildData:q}=i;return u.compData=p,u.itemChildData=q,u}return y===m&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),f.value=(F=D.cloneDeep(h))==null?void 0:F.map((u,y)=>({id:y,content:!1})),n.setOriginalData(h),n.setItemData(h)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{D.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=D.cloneDeep(d.value),m=o==null?void 0:o.filter((v,h)=>h!==i);n.setOriginalData(m),n.setItemData(m),n.setActiveItemIndex(-1),A.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const m=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),h=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(Ne),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Te)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ze,[e.createVNode(Re.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:y,isActive:p})=>{var q,T,H,a,s,g,b,C,K,X;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(y,p)},[e.createElementVNode("div",tt,[(T=(q=f.value)==null?void 0:q.find(x=>x.id===y))!=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=f.value)==null?void 0:H.find(x=>x.id===y))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(Ve._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),(g=(s=f.value)==null?void 0:s.find(x=>x.id===y))!=null&&g.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(y),["stop"]),class:"icon-content"},[e.createVNode(m,{name:"Edit",style:{width:"13px",height:"13px"}})],8,at))]),e.createElementVNode("div",ot,[(C=(b=f.value)==null?void 0:b.find(x=>x.id===y))!=null&&C.content?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(m,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(y),["stop"])},null,8,["onClick"]),e.createVNode(m,{name:"Save",onClick:e.withModifiers(x=>_(y,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(X=(K=f.value)==null?void 0:K.find(x=>x.id===y))!=null&&X.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(y),["stop"]),class:"icon-content"},[e.createVNode(m,{name:"Delete",style:{width:"16px",height:"16px"}})],8,st))])],8,et)]}),content:e.withCtx(({item:u,index:y})=>[e.createVNode(L,{modelValue:e.unref(le),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(le)?le.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",rt,[e.createVNode(m,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,q;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(y)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(q=(p=w.value)==null?void 0:p.find((T,H)=>H===y))==null?void 0:q.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>W(T,u,y,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(Ve._sfc_main$1,{value:V.value.find(T=>T.id===y).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===y).isShow=T,onClick:T=>P(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",dt,[e.createVNode(m,{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(Ne),onChange:p=>e.unref(Te)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(m,{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(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(m,{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(J),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(J)?J.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,q)=>(e.openBlock(),e.createBlock(v,{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(h,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:q,level:1,onChange:e.unref(Ee),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(Le.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(U).show,title:e.unref(U).title,dialogWidth:e.unref(U).width,onBeforeDestroy:e.unref(Ge)},{default:e.withCtx(()=>{var u,y;return[e.createElementVNode("div",ft,[e.unref(G)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(G))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(G),extendItem:e.unref(Z),compType:(y=e.unref(G))==null?void 0:y.comp,activeTabName:e.unref(J),relatedData:e.unref(z),onChange:e.unref(Ee),onOnButtonClick:e.unref(Ye)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},mt=ne._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=D.useModelComp(A.pinia),{itemData:d,activeItemIndex:r,pageMapState:k}=A.storeToRefs(n),c=e.ref([]),w=e.ref(0),f=e.ref(""),V=D.useMenuState(A.pinia),{activeMenuPath:I}=A.storeToRefs(V),E=e.ref(null),S=e.ref(null),_=e.ref(24),P=e.ref(2),N=e.ref([]),W=e.ref([]),O=e.computed(()=>{var a,s,g;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"&&((g=c.value)==null?void 0:g.length)>0}}),$=e.computed(()=>{var a,s,g,b;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(C=>C==null?void 0:C.layout))?(b=(g=c.value)==null?void 0:g[0])==null?void 0:b.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),m=e.computed(()=>{var a,s,g;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(g=(s=c.value)==null?void 0:s[0])==null?void 0:g.name:""}),v=(a,s)=>{w.value=s,o.value=a},h=a=>{var C;if(!a)return;let s=null;const g=D.cloneDeep(c.value);if(r.value>=0&&(s=g==null?void 0:g[r.value]),s&&s.comp==="Layout"){const{compData:K=[]}=s;((C=K==null?void 0:K.find(x=>{const{key:te}=x;return te==="children"}))==null?void 0:C.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(g);return}const b=D.cloneDeep(c.value);b.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(b),T(b)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const g=JSON.parse(s),b=await u(a),C=y(g,b);await e.nextTick(),p(C),h(JSON.parse(s||"")),console.log("drop"),q()}catch(s){console.error("Drop error:",s),q()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const g=E.value.getBoundingClientRect(),b=a.clientX-g.left,C=a.clientY,K=Math.floor(b/(g.width/_.value)),X=Math.floor(C/(g.width/_.value));s({x:Math.max(0,K),y:Math.max(0,X),w:_.value,h:P.value})})}):{x:0,y:0},y=(a,s)=>{var b,C;const g=`item_${Date.now()}_${(C=(b=Math.random())==null?void 0:b.toString(36))==null?void 0:C.substring(2,9)}`;return{i:g,id:g,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)},q=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:j.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,g;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(g=N.value)==null?void 0:g.map(b=>b==null?void 0:b.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,g,b;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=D.cloneDeep(a))==null?void 0:s.filter(C=>!(C!=null&&C.affix)||(C==null?void 0:C.affix)==="default"),W.value=!a||(a==null?void 0:a.length)===0?[]:(g=D.cloneDeep(a))==null?void 0:g.filter(C=>(C==null?void 0:C.affix)&&(C==null?void 0:C.affix)!=="default"),(b=O.value)!=null&&b.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>j.getComponent(a);return(a,s)=>{var X,x,te,se,re,ce,ue,ie,de,pe,ve,fe;const g=e.resolveComponent("el-tab-pane"),b=e.resolveComponent("el-tabs"),C=e.resolveComponent("el-step"),K=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(X=O.value)!=null&&X.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(j.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 oe,he;return e.openBlock(),e.createBlock(e.unref(j.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(j.verifyButton)((oe=c.value[B])==null?void 0:oe.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(j.verifyButton)((he=c.value[B])==null?void 0:he.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var me,ge,Ce,ke,ye,_e,be,De,we,xe,Be,Ie;return[e.createElementVNode("div",{class:e.normalizeClass((ge=W.value)!=null&&ge.includes((me=t==null?void 0:t.component)==null?void 0:me.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Ct,e.toDisplayString((Ce=c.value[B])==null?void 0:Ce.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((ke=c.value[B])==null?void 0:ke.comp)),{pageLayout:$.value,itemData:(ye=c.value[B])==null?void 0:ye.compData,childItemData:(_e=c.value[B])==null?void 0:_e.itemChildData,index:((be=c.value[B])==null?void 0:be.id)??B,parentTableId:(De=c.value[B])==null?void 0:De.tableId,children:(we=c.value[B])==null?void 0:we.children,level:1,config:{showIndex:(xe=c.value[B])==null?void 0:xe.showIndex,allowMove:(Be=c.value[B])==null?void 0:Be.allowMove,viewport:(Ie=c.value[B])==null?void 0:Ie.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),(te=O.value)!=null&&te.tab?(e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(b,{modelValue:m.value,"onUpdate:modelValue":s[1]||(s[1]=t=>m.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(g,{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),(se=O.value)!=null&&se.step?(e.openBlock(),e.createBlock(K,{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(C,{key:B,class:"step-item",status:f.value,onClick:oe=>v(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),(re=O.value)!=null&&re.step?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((ce=o.value)==null?void 0:ce.comp)),{pageLayout:$.value,itemData:(ue=o.value)==null?void 0:ue.compData,childItemData:(ie=o.value)==null?void 0:ie.itemChildData,key:(de=o.value)==null?void 0:de.id,config:{showIndex:(pe=o.value)==null?void 0:pe.showIndex,allowMove:(ve=o.value)==null?void 0:ve.allowMove,viewport:(fe=o.value)==null?void 0:fe.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},bt=ne._export_sfc(_t,[["__scopeId","data-v-fda67a9b"]]),Q=e.ref(0),Dt=l=>l.reduce((d,r)=>{var c,w;const k=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||k[k.length-1].length>=(r==null?void 0:r.width))&&(d[Q.value]=[],Q.value++),d[Q.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[Q.value]=[],Q.value++),d},{});exports.arrayToNumberArray=Dt;exports.modelFill=mt;exports.modelSelect=Ae;exports.modelShow=bt;
@@ -1,11 +1,11 @@
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 { L as Ie, g as aa, D as oa, C as sa, E as Je, c as ra } from "./index-CbJ7Fc-s.js";
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 P, 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 { P as Ie, g as aa, D as oa, C as sa, E as Je, c as ra } from "./index-CigkH2AZ.js";
3
3
  import { p as he, s as ie, E as ua } from "./index-BUf2BDmR.js";
4
4
  import { a as Ce, c as K, u as ke, E as ca } from "./index-BjCGdt04.js";
5
5
  import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import ia from "./index-rlStojTL.js";
7
- import { a as da, b as va } from "./index-auR6PIXZ.js";
8
- import { s as pa } from "./index-BN6O_Eek.js";
7
+ import { a as da, b as va } from "./index-McjYxFmy.js";
8
+ import { s as pa } from "./index-9UoNKztf.js";
9
9
  const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
10
10
  __name: "index",
11
11
  props: {
@@ -14,11 +14,11 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
14
14
  emits: [""],
15
15
  setup(a, { emit: n }) {
16
16
  const i = Ce(he), { itemData: s, activeItemIndex: C } = ie(i), r = n, x = k(null), f = ae(() => {
17
- var ee, P, U;
17
+ var ee, j, U;
18
18
  const M = { label: "布局", items: ["TABS", "LAYOUT"] }, O = { label: "常用", items: ["FORM", "TABLE"] }, F = { label: "高级", items: ["STEP", "TIMELINE", "CHART", "SIGNATURE", "AVATAR", "FOLD"] }, D = (ee = Ie.value) == null ? void 0 : ee.filter((A) => {
19
19
  var c, t;
20
20
  return (t = M == null ? void 0 : M.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
21
- }), Z = (P = Ie.value) == null ? void 0 : P.filter((A) => {
21
+ }), Z = (j = Ie.value) == null ? void 0 : j.filter((A) => {
22
22
  var c, t;
23
23
  return (t = O == null ? void 0 : O.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
24
24
  }), B = (U = Ie.value) == null ? void 0 : U.filter((A) => {
@@ -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" }, za = { style: { display: "flex", "justify-content": "space-between" } }, Ga = { title: "样式" }, Ka = { title: "交互" }, Pa = { title: "扩展" }, ja = { 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);
@@ -469,7 +469,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
469
469
  id: y,
470
470
  content: !1
471
471
  })), n.setOriginalData(h), n.setItemData(h);
472
- }, P = k(null), U = (c, t) => {
472
+ }, j = k(null), U = (c, t) => {
473
473
  if (!t) {
474
474
  n.setActiveItemIndex(c);
475
475
  return;
@@ -497,7 +497,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
497
497
  return p(), $("div", Ra, [
498
498
  t[10] || (t[10] = w("div", { class: "fill-operate" }, "操作栏", -1)),
499
499
  w("div", La, [
500
- (p(), j(le(B(M.value + "style")), {
500
+ (p(), P(le(B(M.value + "style")), {
501
501
  target: "overall",
502
502
  optionItems: _(Xe),
503
503
  compType: M.value,
@@ -512,7 +512,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
512
512
  accordion: !0,
513
513
  onChange: _(ka),
514
514
  ref_key: "ssCollapseRef",
515
- ref: P
515
+ ref: j
516
516
  }, {
517
517
  title: L(({ item: u, index: y, isActive: d }) => {
518
518
  var Y, E, G, l, o, m, I, b, Q, se;
@@ -603,7 +603,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
603
603
  class: "comp-child",
604
604
  onClick: (E) => U(y)
605
605
  }, [
606
- (p(), j(le(B(u.comp + "Operate")), {
606
+ (p(), P(le(B(u.comp + "Operate")), {
607
607
  itemContents: u == null ? void 0 : u.compData,
608
608
  originalItemContents: (Y = (d = x.value) == null ? void 0 : d.find((E, G) => G === y)) == null ? void 0 : Y.compData,
609
609
  itemChildData: u == null ? void 0 : u.itemChildData,
@@ -641,7 +641,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
641
641
  ])
642
642
  ]),
643
643
  default: L(() => [
644
- (p(), j(le(B((u == null ? void 0 : u.comp) + "style")), {
644
+ (p(), P(le(B((u == null ? void 0 : u.comp) + "style")), {
645
645
  target: "alone",
646
646
  compType: u == null ? void 0 : u.comp,
647
647
  comp: u,
@@ -675,7 +675,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
675
675
  name: "extend"
676
676
  }, {
677
677
  label: L(() => [
678
- w("span", ja, [
678
+ w("span", Pa, [
679
679
  R(g, {
680
680
  name: "LowCodeExtend",
681
681
  style: { width: "15px", height: "15px", "margin-right": "5px" }
@@ -692,7 +692,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
692
692
  onTabChange: _(wa)
693
693
  }, {
694
694
  default: L(() => [
695
- (p(!0), $(ue, null, ce(_(ya), (d, Y) => (p(), j(v, {
695
+ (p(!0), $(ue, null, ce(_(ya), (d, Y) => (p(), P(v, {
696
696
  key: d == null ? void 0 : d.name,
697
697
  label: d == null ? void 0 : d.label,
698
698
  name: d == null ? void 0 : d.name
@@ -702,7 +702,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
702
702
  default: L(() => {
703
703
  var E, G, l;
704
704
  return [
705
- (p(), j(le(B((E = d == null ? void 0 : d.component) == null ? void 0 : E.comp)), {
705
+ (p(), P(le(B((E = d == null ? void 0 : d.component) == null ? void 0 : E.comp)), {
706
706
  compItem: d == null ? void 0 : d.component,
707
707
  itemData: (G = d == null ? void 0 : d.component) == null ? void 0 : G.compData,
708
708
  childItemData: (l = d == null ? void 0 : d.component) == null ? void 0 : l.itemChildData,
@@ -741,8 +741,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
741
741
  default: L(() => {
742
742
  var u, y;
743
743
  return [
744
- w("div", Pa, [
745
- _(X) ? (p(), j(le(B(((u = _(X)) == null ? void 0 : u.comp) + "extend")), {
744
+ w("div", ja, [
745
+ _(X) ? (p(), P(le(B(((u = _(X)) == null ? void 0 : u.comp) + "extend")), {
746
746
  key: 0,
747
747
  target: "alone",
748
748
  comp: _(X),
@@ -767,7 +767,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
767
767
  }, Qa = {
768
768
  __name: "index",
769
769
  setup(a) {
770
- const n = Ce(he), { itemData: i, activeItemIndex: s, pageMapState: C } = ie(n), r = k([]), x = k(0), f = k(""), H = ke(he), { activeMenuPath: M } = ie(H), O = k(null), F = k(null), D = k(24), Z = k(2), B = k([]), ee = k([]), P = ae(() => {
770
+ const n = Ce(he), { itemData: i, activeItemIndex: s, pageMapState: C } = ie(n), r = k([]), x = k(0), f = k(""), H = ke(he), { activeMenuPath: M } = ie(H), O = k(null), F = k(null), D = k(24), Z = k(2), B = k([]), ee = k([]), j = ae(() => {
771
771
  var l, o, m;
772
772
  return {
773
773
  default: !c.value && !A.value && U.value === "vertical" && ((l = r.value) == null ? void 0 : l.length) > 0,
@@ -859,10 +859,10 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
859
859
  results: B.value
860
860
  }), H.setContentLoading(!1);
861
861
  };
862
- be(() => P.value.step, (l) => {
862
+ be(() => j.value.step, (l) => {
863
863
  var o;
864
864
  l && v((o = r.value) == null ? void 0 : o[0], 1);
865
- }, { immediate: !0 }), be(() => P.value.grid, (l) => {
865
+ }, { immediate: !0 }), be(() => j.value.grid, (l) => {
866
866
  var o, m;
867
867
  !l && ((o = B.value) == null ? void 0 : o.length) > 0 && n.setItemGridData({
868
868
  pageKey: M.value,
@@ -871,7 +871,7 @@ 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 = 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 = j.value) != null && I.grid && E(r.value);
875
875
  }, { deep: !0, immediate: !0 });
876
876
  const G = (l) => aa(l);
877
877
  return (l, o) => {
@@ -884,12 +884,12 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
884
884
  onDragover: V,
885
885
  onDrop: z
886
886
  }, [
887
- (se = P.value) != null && se.default ? (p(!0), $(ue, { key: 0 }, ce(r.value, (e, S) => (p(), $("div", {
887
+ (se = j.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(), P(le(G(e.comp)), {
893
893
  itemData: e == null ? void 0 : e.compData,
894
894
  childItemData: e == null ? void 0 : e.itemChildData,
895
895
  key: S,
@@ -904,7 +904,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
904
904
  level: 1
905
905
  }, null, 8, ["itemData", "childItemData", "config", "pageLayout", "parentTableId", "children"]))
906
906
  ]))), 128)) : q("", !0),
907
- (T = P.value) != null && T.grid ? (p(), j(_(oa), {
907
+ (T = j.value) != null && T.grid ? (p(), P(_(oa), {
908
908
  key: 1,
909
909
  ref_key: "gridLayoutRef",
910
910
  ref: F,
@@ -920,7 +920,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
920
920
  default: L(() => [
921
921
  (p(!0), $(ue, null, ce(B.value, (e, S) => {
922
922
  var De, Ee;
923
- return p(), j(_(sa), {
923
+ return p(), P(_(sa), {
924
924
  key: e.i,
925
925
  x: e.x,
926
926
  y: e.y,
@@ -933,13 +933,13 @@ 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, ze, Ge, Ke, Pe, je, 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(), P(le(G((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,
@@ -948,8 +948,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
948
948
  children: (Ke = r.value[S]) == null ? void 0 : Ke.children,
949
949
  level: 1,
950
950
  config: {
951
- showIndex: (je = r.value[S]) == null ? void 0 : je.showIndex,
952
- allowMove: (Pe = r.value[S]) == null ? void 0 : Pe.allowMove,
951
+ showIndex: (Pe = r.value[S]) == null ? void 0 : Pe.showIndex,
952
+ allowMove: (je = r.value[S]) == null ? void 0 : je.allowMove,
953
953
  viewport: (We = r.value[S]) == null ? void 0 : We.viewport
954
954
  }
955
955
  }, null, 8, ["pageLayout", "itemData", "childItemData", "index", "parentTableId", "children", "config"]))
@@ -962,7 +962,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
962
962
  ]),
963
963
  _: 1
964
964
  }, 8, ["layout"])) : q("", !0),
965
- (me = P.value) != null && me.tab ? (p(), $("div", Ja, [
965
+ (me = j.value) != null && me.tab ? (p(), $("div", Ja, [
966
966
  R(I, {
967
967
  modelValue: g.value,
968
968
  "onUpdate:modelValue": o[1] || (o[1] = (e) => g.value = e),
@@ -970,13 +970,13 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
970
970
  class: "display-tabs"
971
971
  }, {
972
972
  default: L(() => [
973
- (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), j(m, {
973
+ (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), P(m, {
974
974
  key: e.i,
975
975
  label: e == null ? void 0 : e.name,
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(), P(le(G(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,
@@ -994,7 +994,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
994
994
  _: 1
995
995
  }, 8, ["modelValue"])
996
996
  ])) : q("", !0),
997
- (xe = P.value) != null && xe.step ? (p(), j(Q, {
997
+ (xe = j.value) != null && xe.step ? (p(), P(Q, {
998
998
  key: 3,
999
999
  direction: "horizontal",
1000
1000
  active: x.value,
@@ -1002,7 +1002,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
1002
1002
  class: "display-steps"
1003
1003
  }, {
1004
1004
  default: L(() => [
1005
- (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), j(b, {
1005
+ (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), P(b, {
1006
1006
  key: S,
1007
1007
  class: "step-item",
1008
1008
  status: f.value,
@@ -1016,8 +1016,8 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
1016
1016
  ]),
1017
1017
  _: 1
1018
1018
  }, 8, ["active"])) : q("", !0),
1019
- (Te = P.value) != null && Te.step ? (p(), $("div", Xa, [
1020
- (p(), j(le(G((Se = t.value) == null ? void 0 : Se.comp)), {
1019
+ (Te = j.value) != null && Te.step ? (p(), $("div", Xa, [
1020
+ (p(), P(le(G((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,