ss-component-new 1.2.28 → 1.2.30

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 (140) hide show
  1. package/dist/{MTLLoader-Cqv49Ps8.cjs → MTLLoader-CGJ_BoN_.cjs} +1 -1
  2. package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DKu2hJu8.js} +1 -1
  3. package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-BqqUzhiB.js} +1 -1
  4. package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcSIJs8U.cjs} +1 -1
  5. package/dist/{animationData-CMjNjOqc.js → animationData-C9-csPUd.js} +4 -4
  6. package/dist/{animationData-C3-BiUgV.cjs → animationData-CqnPk9Xj.cjs} +1 -1
  7. package/dist/array-CNff52dF.cjs +11 -0
  8. package/dist/array-GAxUIYkk.js +626 -0
  9. package/dist/config.js +1 -0
  10. package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-B8GQMfU9.cjs} +1 -1
  11. package/dist/{dataUtil-D9l7-XhR.js → dataUtil-CUqnwA-C.js} +2 -2
  12. package/dist/{fileUtil-D7XVXEhb.js → fileUtil-2jbB0UOW.js} +1 -1
  13. package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DmlOwzdA.cjs} +1 -1
  14. package/dist/{iconfont-BDfcbq2v.cjs → iconfont-BRjtaT1w.cjs} +1 -1
  15. package/dist/{iconfont-B9Cj3DQM.js → iconfont-Clbumxhq.js} +2 -2
  16. package/dist/icons/svg/LowCodeEvent.svg +1 -1
  17. package/dist/icons/svg/LowCodeExtend.svg +1 -1
  18. package/dist/icons/svg/LowCodeSetting.svg +1 -1
  19. package/dist/icons/svg/LowCodeStyle.svg +1 -1
  20. package/dist/{index-DE-uHAMH.cjs → index-4vFpZiro.cjs} +1 -1
  21. package/dist/{index-DR7aNxVH.js → index-B1K65cVA.js} +4 -4
  22. package/dist/{index-C5UpEVah.js → index-B1TG4KX4.js} +2 -2
  23. package/dist/{index-C_cWjavY.cjs → index-B4kwMjRZ.cjs} +1 -1
  24. package/dist/{index-BaE0DPgC.js → index-B524ZAt_.js} +52 -52
  25. package/dist/{index-CMIGSPjz.cjs → index-B5KCSN4c.cjs} +1 -1
  26. package/dist/index-B6nEh_Jv.js +2865 -0
  27. package/dist/{index-zLkhy4JK.cjs → index-BDHmuN0R.cjs} +1 -1
  28. package/dist/{index-Rr9ZBYig.js → index-BH-dztWs.js} +2 -2
  29. package/dist/{index-DMyPjpxO.cjs → index-BKH5yrms.cjs} +1 -1
  30. package/dist/index-BQ4Ui0xZ.cjs +1 -0
  31. package/dist/{index-DqR3IwgZ.js → index-BR2gy9VY.js} +12 -12
  32. package/dist/{index-CC9RkSBT.cjs → index-BUqXSmZN.cjs} +1 -1
  33. package/dist/index-BVaHwt5f.cjs +1 -0
  34. package/dist/{index-gXbhagnF.js → index-BVx8ubcY.js} +3 -3
  35. package/dist/{index-Dx2X9pR1.js → index-Bf_EwhXB.js} +40 -40
  36. package/dist/{index-DVqfroe6.cjs → index-Bg67M1I0.cjs} +1 -1
  37. package/dist/index-Bnlo1Vn9.cjs +1 -0
  38. package/dist/{index-gPnrvvE9.js → index-BuPMGirQ.js} +3123 -3043
  39. package/dist/{index-Cwh5m4lg.cjs → index-C4sVFEb2.cjs} +1 -1
  40. package/dist/{index-CP7b7BrB.cjs → index-C5bKf4Rc.cjs} +1 -1
  41. package/dist/{index-DY5-ctYG.cjs → index-C8YYklCT.cjs} +1 -1
  42. package/dist/index-CBzeyNqc.cjs +1 -0
  43. package/dist/{index-Boazv8yC.js → index-CF3_9CuM.js} +2 -2
  44. package/dist/index-CGrK7vLD.cjs +15 -0
  45. package/dist/index-CJz9KUlK.js +2761 -0
  46. package/dist/index-CLYAJN6W.js +12157 -0
  47. package/dist/index-CPUuPtdW.cjs +1 -0
  48. package/dist/index-CQGU-KUl.cjs +1 -0
  49. package/dist/{index-BZwQB2HO.js → index-CSkbFCKk.js} +8 -8
  50. package/dist/{index-DiTYB-a4.js → index-CVduLh5F.js} +4 -4
  51. package/dist/{index-Cd9j5j41.cjs → index-CVfE7lev.cjs} +1 -1
  52. package/dist/{index-C5fTUrKx.js → index-CWvU6SMj.js} +80 -80
  53. package/dist/{index-CZu3TggJ.js → index-CkTqgfCV.js} +1 -1
  54. package/dist/{index-CBFF2bsB.cjs → index-Ct1BlKod.cjs} +1 -1
  55. package/dist/{index-BqRVuEsE.js → index-Cx-hhVVM.js} +6 -6
  56. package/dist/{index-LcnC2GQ4.cjs → index-D-vSuC_W.cjs} +1 -1
  57. package/dist/{index-HduGypr9.js → index-DBDeHECn.js} +7888 -8186
  58. package/dist/{index-CK5VdzmO.cjs → index-DC41esc7.cjs} +1 -1
  59. package/dist/index-DEBf-IBT.cjs +21 -0
  60. package/dist/{index-BwLaQntz.js → index-DKQfWQa7.js} +1 -1
  61. package/dist/index-DLNYVMBT.js +718 -0
  62. package/dist/{index-CKY0sj_X.js → index-DNmodmj5.js} +3 -3
  63. package/dist/{index-D5Dtcn-_.js → index-DOqV1gv2.js} +10 -10
  64. package/dist/{index-BWxbWhC9.cjs → index-DPJaR6_y.cjs} +1 -1
  65. package/dist/{index-B8bpiPXB.js → index-DQEoNTv9.js} +1 -1
  66. package/dist/{index-3QB55tXZ.js → index-D_vF-xur.js} +8 -8
  67. package/dist/{index-C9_Cxm8G.cjs → index-Dc_H7_4Q.cjs} +1 -1
  68. package/dist/{index-DsCD1neC.js → index-DnxJ5v5h.js} +2 -2
  69. package/dist/{index-DHOcRi3S.js → index-DpHuDey-.js} +6 -6
  70. package/dist/{index-mpoVA-DC.cjs → index-Dyk6Ept4.cjs} +1 -1
  71. package/dist/{index-zZ9bfGNx.js → index-LjM9Nk8B.js} +17 -17
  72. package/dist/{index-B33wtiif.cjs → index-M0XPuhvZ.cjs} +1 -1
  73. package/dist/index-NsYVgt6J.cjs +1 -0
  74. package/dist/{index-GGokR_Lx.cjs → index-T8lPGzLV.cjs} +1 -1
  75. package/dist/{index-Sa2hQZ0h.js → index-ZxdNFChm.js} +2 -2
  76. package/dist/{index-BccOOMaP.cjs → index-eU4qzdNW.cjs} +1 -1
  77. package/dist/{index-C-8LROmP.js → index-h2jxROLW.js} +2 -2
  78. package/dist/index-rlStojTL.js +52 -0
  79. package/dist/{index-TKouySTA.cjs → index-zfSd0dDx.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js +38119 -0
  81. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs +56 -0
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs} +105 -105
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js} +2 -2
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js} +13 -13
  85. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs} +1 -1
  86. package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-C_-spRZf.js} +5 -5
  87. package/dist/index.vue_vue_type_style_index_1_lang-C_c9xkIT.js +8381 -0
  88. package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +32 -0
  89. package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs} +1 -1
  90. package/dist/{isString-Cqq3-gAK.cjs → isString-D6Z6SOrb.cjs} +1 -1
  91. package/dist/{isString-BuBBWjRr.js → isString-DBnuELeA.js} +1 -1
  92. package/dist/{main-Mx9r7ydp.cjs → main-Cqs48dh5.cjs} +1 -1
  93. package/dist/{main-DpLQlLK2.js → main-D13CgkQa.js} +5 -5
  94. package/dist/ss-component.cjs +1 -1
  95. package/dist/ss-component.css +2 -2
  96. package/dist/ss-component.js +12 -12
  97. package/dist/ss-component2.cjs +1 -1
  98. package/dist/ss-component2.js +12 -12
  99. package/dist/{threeModel-DTwQnnAO.cjs → threeModel-B1Q-W8uT.cjs} +1 -1
  100. package/dist/{threeModel-CZ-qFwwk.js → threeModel-CdhAh8Bx.js} +5 -5
  101. package/dist/{threePreview-CUGoEzKf.cjs → threePreview-DFaqe_Df.cjs} +1 -1
  102. package/dist/{threePreview-DutKTPWH.js → threePreview-qK1L0B-6.js} +4 -4
  103. package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-D7A2EUjB.js} +87 -87
  104. package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-MV6u29zj.cjs} +1 -1
  105. package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CFMeh1a1.js} +59 -59
  106. package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-DWIRSSMI.cjs} +1 -1
  107. package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-jcnhqw1L.cjs} +1 -1
  108. package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-zpNY2aoY.js} +6 -6
  109. package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-Bmk1dyAX.cjs} +1 -1
  110. package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-SnFuinLz.js} +14 -14
  111. package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BhIdc1in.cjs} +1 -1
  112. package/dist/{urdfTree-CnkPddyT.js → urdfTree-BqMKYhyU.js} +1 -1
  113. package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-CrJBeLgr.js} +5 -5
  114. package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-ugZl4wP-.cjs} +1 -1
  115. package/package.json +2 -2
  116. package/public/config.js +1 -0
  117. package/public/icons/svg/LowCodeEvent.svg +1 -1
  118. package/public/icons/svg/LowCodeExtend.svg +1 -1
  119. package/public/icons/svg/LowCodeSetting.svg +1 -1
  120. package/public/icons/svg/LowCodeStyle.svg +1 -1
  121. package/dist/array-0u9Sf3UC.cjs +0 -11
  122. package/dist/array-BGIM4b6g.js +0 -1142
  123. package/dist/index-B9TlIok8.cjs +0 -15
  124. package/dist/index-BgHY8wmn.cjs +0 -1
  125. package/dist/index-C1lZkQG-.js +0 -7298
  126. package/dist/index-CMwwUi6o.js +0 -3621
  127. package/dist/index-D0XPyuy4.cjs +0 -1
  128. package/dist/index-D3TgRd-7.cjs +0 -1
  129. package/dist/index-DEEZPcpU.cjs +0 -1
  130. package/dist/index-DiRBJiMW.js +0 -43
  131. package/dist/index-DnFxL5wb.cjs +0 -1
  132. package/dist/index-Dv1G67_Q.cjs +0 -21
  133. package/dist/index-OTxJnh9Z.js +0 -2570
  134. package/dist/index-uIVtG4RY.cjs +0 -1
  135. package/dist/index-wQJN1jpI.js +0 -2466
  136. package/dist/index-znR89ub7.cjs +0 -1
  137. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +0 -37
  138. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js +0 -38930
  139. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
  140. package/dist/index.vue_vue_type_style_index_1_lang-DwvuVXW6.js +0 -8249
@@ -1,8 +1,8 @@
1
1
  var sdt = Object.defineProperty;
2
2
  var odt = (r, t, e) => t in r ? sdt(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var zr = (r, t, e) => odt(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { k as E7, q as AJ, bQ as ldt, bR as MJ, bS as CJ, bT as udt, bU as cdt, bV as hdt, w as fdt, bW as kJ, bX as ddt, bY as pdt, i as Nz, bZ as vdt, b_ as mdt, b$ as gdt, c0 as Oz, c1 as ydt, c2 as bdt, S as wdt, g as _dt, s as xdt, u as Sdt, p as Tdt, au as A7, c as Gb } from "./index-HduGypr9.js";
5
- import { aw as Edt, ax as Adt, o as Mdt, ay as Cdt, j as kdt, az as Rdt } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
4
+ import { j as E7, o as AJ, bB as ldt, bC as MJ, bD as CJ, bE as udt, bF as cdt, bG as hdt, v as fdt, bH as kJ, bI as ddt, bJ as pdt, i as Nz, bK as vdt, bL as mdt, bM as gdt, bN as Oz, bO as ydt, bP as bdt, S as wdt, g as _dt, s as xdt, u as Sdt, p as Tdt, c as Gb } from "./index-DBDeHECn.js";
5
+ import { aD as Edt, aE as Adt, p as Mdt, aF as Cdt, j as kdt, aG as Rdt, O as A7 } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
6
6
  function Ddt(r, t) {
7
7
  return Edt(Adt(r, t, Mdt), r + "");
8
8
  }
@@ -1,13 +1,13 @@
1
- import { defineAsyncComponent as ae, computed as D, onMounted as W, resolveComponent as ue, createBlock as z, openBlock as H, withCtx as ce, resolveDynamicComponent as ie, defineComponent as pe, defineProps as ge, ref as g, watch as ve, reactive as fe } from "vue";
1
+ import { defineAsyncComponent as ae, computed as D, onMounted as W, resolveComponent as ue, createBlock as V, openBlock as H, withCtx as ce, resolveDynamicComponent as ie, defineComponent as pe, defineProps as ge, ref as g, watch as ve, reactive as fe } from "vue";
2
2
  import { S as he } from "./index-BHtNKL1L.js";
3
- import { bO as Me, p as me, s as Ce, bN as ye, g as de } from "./index-HduGypr9.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
5
- import { u as Ae, a as we, E as ke } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
6
- import { s as Te } from "./index-zZ9bfGNx.js";
3
+ import { bz as Me, p as me, s as Ce, by as ye, g as de } from "./index-DBDeHECn.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
5
+ import { u as Ae, a as we, E as ke } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
6
+ import { s as Te } from "./index-LjM9Nk8B.js";
7
7
  import { useRouter as Se } from "vue-router";
8
8
  import { a as De, e as Pe, f as _e, g as be, h as Fe } from "./index-CAPx0_D4.js";
9
- import { g as xe } from "./index-C1lZkQG-.js";
10
- const x = ae(() => import("./index-gPnrvvE9.js").then((p) => p.j));
9
+ import { g as xe } from "./index-CLYAJN6W.js";
10
+ const x = ae(() => import("./index-BuPMGirQ.js").then((p) => p.j));
11
11
  x.install = (p) => {
12
12
  p.component("ssMenu", x);
13
13
  };
@@ -21,9 +21,9 @@ const Re = {
21
21
  return W(() => {
22
22
  }), (k, u) => {
23
23
  const T = ue("el-icon");
24
- return H(), z(T, null, {
24
+ return H(), V(T, null, {
25
25
  default: ce(() => [
26
- (H(), z(ie(P.value)))
26
+ (H(), V(ie(P.value)))
27
27
  ]),
28
28
  _: 1
29
29
  });
@@ -104,9 +104,9 @@ function Be(p = "menu") {
104
104
  width: "30%",
105
105
  type: "create"
106
106
  }), Z = (e) => xe(e), I = g({}), b = g([]), ee = async (e, t, l) => {
107
- var y, M, N;
107
+ var y, M, z;
108
108
  if (!(e != null && e.structureIds) || ((y = e == null ? void 0 : e.structureIds) == null ? void 0 : y.length) === 0) return;
109
- const o = (N = (M = e == null ? void 0 : e.structureIds) == null ? void 0 : M.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig")) == null ? void 0 : N.map((r) => r == null ? void 0 : r.id);
109
+ const o = (z = (M = e == null ? void 0 : e.structureIds) == null ? void 0 : M.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig")) == null ? void 0 : z.map((r) => r == null ? void 0 : r.id);
110
110
  let s = o == null ? void 0 : o.map((r) => de({ id: r }));
111
111
  const a = await Promise.all(s);
112
112
  if (a == null ? void 0 : a.every((r) => {
@@ -114,10 +114,10 @@ function Be(p = "menu") {
114
114
  return ((n = r == null ? void 0 : r.data) == null ? void 0 : n.code) === 200;
115
115
  })) {
116
116
  const r = a == null ? void 0 : a.map((n) => {
117
- var d, A, c, w, S, U, V;
117
+ var d, A, c, w, S, N, U;
118
118
  return {
119
119
  id: (c = (A = (d = n == null ? void 0 : n.data) == null ? void 0 : d.result) == null ? void 0 : A[0]) == null ? void 0 : c.id,
120
- ...(V = (U = (S = (w = n == null ? void 0 : n.data) == null ? void 0 : w.result) == null ? void 0 : S[0]) == null ? void 0 : U.value) == null ? void 0 : V.pageData
120
+ ...(U = (N = (S = (w = n == null ? void 0 : n.data) == null ? void 0 : w.result) == null ? void 0 : S[0]) == null ? void 0 : N.value) == null ? void 0 : U.pageData
121
121
  };
122
122
  });
123
123
  t === "create" && (b.value = r), t === "update" && (b.value = r == null ? void 0 : r.map((n) => {
@@ -1 +1 @@
1
- "use strict";const s=require("vue"),ce=require("./index-BpPyaNFa.cjs"),w=require("./index-Dv1G67_Q.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs");const B=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),ae=require("./index-uIVtG4RY.cjs"),ie=require("vue-router"),A=require("./index-9hspBVrQ.cjs"),pe=require("./index-D3TgRd-7.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-B9TlIok8.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const z={__name:"index",props:{name:String},setup(v){const b=v,S=s.computed(()=>w.ElIcons[b.name]);return s.onMounted(()=>{}),(x,a)=>{const T=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(T,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(S.value)))]),_:1})}}};function H(v="menu"){return{name:v,components:{SvgIcon:ce.SvgIcon,ssMenu:P,DynamicIcon:z,ssDialog:ae.ssDialog},setup(b,{emit:S}){const x=s.defineProps({mode:{type:String,default:"vertical"}}),a=B.useMenuState(),T=B.useModelComp(w.pinia),F=s.ref(0),d=ie.useRouter(),{asideMenus:W,menuTriggerType:J,platform:K}=w.storeToRefs(a),L=s.computed(()=>x==null?void 0:x.mode),$=s.computed(()=>{let e=[...W.value];if((e==null?void 0:e.length)===0)return d.push("/"),[];const t=Y(e,Q.value);return t.isFlag||(e=t==null?void 0:t.data),e}),j=async e=>{T.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?d.push(e.path):d.push("/"),S("node-click",e)},G=async e=>{const t=w.findNodeByPropInTree($.value,"path",e);a.setActiveAsideMenu(t),T.setRouteToChildPath(""),J.value==="click"?F.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?d.push(e):d.push("/"),F.value++},I=e=>{a.setActiveMenuPath(e)},g=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{F.value=1});const Q=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>K.value,e=>{e==="browser"?g(A.browserVerticalMenuClasses):e==="client"?(g(A.clientHorizontalMenuClasses),g(A.clientVerticalMenuClasses)):e==="three"&&(g(A.threeHorizontalMenuClasses),g(A.threeVerticalMenuClasses))},{immediate:!0});const X=(e,t)=>{function o(u){u==null||u.forEach(n=>{var M,y;const c=(M=n==null?void 0:n.path)!=null&&M.startsWith("/")?(y=n==null?void 0:n.path)==null?void 0:y.substring(1):n==null?void 0:n.path;n.show=t==null?void 0:t.some(f=>f==null?void 0:f.includes(c)),n.children&&o(n.children)})}return o(e),e},Y=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:X(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Z=e=>pe.getComponent(e),ee=s.ref({}),q=s.ref([]),te=async(e,t,o)=>{var y,f,N;if(!(e!=null&&e.structureIds)||((y=e==null?void 0:e.structureIds)==null?void 0:y.length)===0)return;const u=(N=(f=e==null?void 0:e.structureIds)==null?void 0:f.filter(r=>(r==null?void 0:r.key)==="dialogConfig"))==null?void 0:N.map(r=>r==null?void 0:r.id);let n=u==null?void 0:u.map(r=>w.getInsofDataApi({id:r}));const c=await Promise.all(n);if(c==null?void 0:c.every(r=>{var l;return((l=r==null?void 0:r.data)==null?void 0:l.code)===200})){const r=c==null?void 0:c.map(l=>{var _,m,i,k,D,U,V;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(V=(U=(D=(k=l==null?void 0:l.data)==null?void 0:k.result)==null?void 0:D[0])==null?void 0:U.value)==null?void 0:V.pageData}});t==="create"&&(q.value=r),t==="update"&&(q.value=r==null?void 0:r.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var k;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(k=i==null?void 0:i.contents)==null?void 0:k.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},C=s.ref({}),h=s.ref({}),se=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=s.ref({}),O=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},ne=async(e,t)=>{p.type=se(t==null?void 0:t.operateType),await te(t,p.type,e),h.value=e,E.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):B.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{O(e)})},re=()=>{p.show=!1},le=e=>e==null?void 0:e.filter(t=>t.allowInherit),oe=()=>{var o,u,n,c,M;let e;p.type==="create"&&(e=((o=h.value)==null?void 0:o.path)+"/"+C.value[(u=C.value)==null?void 0:u.prop]),p.type==="update"&&(e=(n=h.value)==null?void 0:n.path);const t={...h.value,config:le((c=h.value)==null?void 0:c.config),children:[],childMenus:[],title:C.value[(M=C.value)==null?void 0:M.prop],path:e};console.log("clickSubmitForm",E.value,h.value,t),O(t),p.show=!1},ue=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(n=>n.key==="formContent");t&&(C.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((n,c)=>(n[c.key]=c.value,n.prop=c.key,n),{}))},R=s.ref(!1);return{isCollapse:R,handleMenuCollapse:()=>{R.value=!R.value},handleCompChange:ue,dialogForm:ee,dialogRenderComps:q,getComponents:Z,clickSubmitForm:oe,dialogInfo:p,beforeDialogDestroy:re,clickMenuIcon:ne,mode:L,renderMenuList:$,clickMenu:j,openMenu:G,closeMenu:I,changeMenuStyle:g}}}}const ve=s.defineComponent(H());exports._sfc_main=ve;exports._sfc_main$1=z;exports.setComponent=H;exports.ssMenu=P;
1
+ "use strict";const s=require("vue"),ce=require("./index-BpPyaNFa.cjs"),w=require("./index-DEBf-IBT.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs");const B=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs"),ae=require("./index-BQ4Ui0xZ.cjs"),ie=require("vue-router"),A=require("./index-9hspBVrQ.cjs"),pe=require("./index-NsYVgt6J.cjs"),P=s.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CGrK7vLD.cjs")).then(v=>v.index));P.install=v=>{v.component("ssMenu",P)};const z={__name:"index",props:{name:String},setup(v){const b=v,S=s.computed(()=>w.ElIcons[b.name]);return s.onMounted(()=>{}),(x,a)=>{const T=s.resolveComponent("el-icon");return s.openBlock(),s.createBlock(T,null,{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(S.value)))]),_:1})}}};function H(v="menu"){return{name:v,components:{SvgIcon:ce.SvgIcon,ssMenu:P,DynamicIcon:z,ssDialog:ae.ssDialog},setup(b,{emit:S}){const x=s.defineProps({mode:{type:String,default:"vertical"}}),a=B.useMenuState(),T=B.useModelComp(w.pinia),F=s.ref(0),d=ie.useRouter(),{asideMenus:W,menuTriggerType:J,platform:K}=w.storeToRefs(a),L=s.computed(()=>x==null?void 0:x.mode),$=s.computed(()=>{let e=[...W.value];if((e==null?void 0:e.length)===0)return d.push("/"),[];const t=Y(e,Q.value);return t.isFlag||(e=t==null?void 0:t.data),e}),j=async e=>{T.setRouteToChildPath(""),a.setMenuTriggerType("click"),a.setActiveMenuPath(e==null?void 0:e.path),a.setActiveAsideMenu(e),e.isRouter?d.push(e.path):d.push("/"),S("node-click",e)},G=async e=>{const t=w.findNodeByPropInTree($.value,"path",e);a.setActiveAsideMenu(t),T.setRouteToChildPath(""),J.value==="click"?F.value===1?a.setActiveMenuPath(sessionStorage.getItem("pageKey")):a.setActiveMenuPath(e):(a.setMenuTriggerType("click"),a.setActiveMenuPath(e)),e!=null&&e.startsWith("/")?d.push(e):d.push("/"),F.value++},I=e=>{a.setActiveMenuPath(e)},g=e=>{const t=document.documentElement;e==null||e.forEach(o=>{t.style.setProperty(o.name,o.value)})};s.onMounted(()=>{F.value=1});const Q=s.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});s.watch(()=>K.value,e=>{e==="browser"?g(A.browserVerticalMenuClasses):e==="client"?(g(A.clientHorizontalMenuClasses),g(A.clientVerticalMenuClasses)):e==="three"&&(g(A.threeHorizontalMenuClasses),g(A.threeVerticalMenuClasses))},{immediate:!0});const X=(e,t)=>{function o(u){u==null||u.forEach(n=>{var M,y;const c=(M=n==null?void 0:n.path)!=null&&M.startsWith("/")?(y=n==null?void 0:n.path)==null?void 0:y.substring(1):n==null?void 0:n.path;n.show=t==null?void 0:t.some(f=>f==null?void 0:f.includes(c)),n.children&&o(n.children)})}return o(e),e},Y=(e,t)=>{if(Array.isArray(t)){const o=Array.from(new Set(t==null?void 0:t.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:X(e,o),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},p=s.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Z=e=>pe.getComponent(e),ee=s.ref({}),q=s.ref([]),te=async(e,t,o)=>{var y,f,N;if(!(e!=null&&e.structureIds)||((y=e==null?void 0:e.structureIds)==null?void 0:y.length)===0)return;const u=(N=(f=e==null?void 0:e.structureIds)==null?void 0:f.filter(r=>(r==null?void 0:r.key)==="dialogConfig"))==null?void 0:N.map(r=>r==null?void 0:r.id);let n=u==null?void 0:u.map(r=>w.getInsofDataApi({id:r}));const c=await Promise.all(n);if(c==null?void 0:c.every(r=>{var l;return((l=r==null?void 0:r.data)==null?void 0:l.code)===200})){const r=c==null?void 0:c.map(l=>{var _,m,i,k,D,U,V;return{id:(i=(m=(_=l==null?void 0:l.data)==null?void 0:_.result)==null?void 0:m[0])==null?void 0:i.id,...(V=(U=(D=(k=l==null?void 0:l.data)==null?void 0:k.result)==null?void 0:D[0])==null?void 0:U.value)==null?void 0:V.pageData}});t==="create"&&(q.value=r),t==="update"&&(q.value=r==null?void 0:r.map(l=>{var _,m;return((_=l==null?void 0:l.comp)==null?void 0:_.toUpperCase())==="FORM"?{...l,compData:(m=l==null?void 0:l.compData)==null?void 0:m.map(i=>{var k;return(i==null?void 0:i.key)==="formContent"?{...i,contents:(k=i==null?void 0:i.contents)==null?void 0:k.map(D=>({...D,value:o==null?void 0:o.title}))}:i})}:l}))}},C=s.ref({}),h=s.ref({}),se=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=s.ref({}),O=e=>{a.setCacheInputMenu({type:p.type,data:e}),a.setIsRefreshMenus(!0)},ne=async(e,t)=>{p.type=se(t==null?void 0:t.operateType),await te(t,p.type,e),h.value=e,E.value=t,(t==null?void 0:t.operateType)!=="删除"?(p.show=(t==null?void 0:t.trigger)==="openDialog",p.title=(t==null?void 0:t.operateType)+"菜单"):B.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{O(e)})},re=()=>{p.show=!1},le=e=>e==null?void 0:e.filter(t=>t.allowInherit),oe=()=>{var o,u,n,c,M;let e;p.type==="create"&&(e=((o=h.value)==null?void 0:o.path)+"/"+C.value[(u=C.value)==null?void 0:u.prop]),p.type==="update"&&(e=(n=h.value)==null?void 0:n.path);const t={...h.value,config:le((c=h.value)==null?void 0:c.config),children:[],childMenus:[],title:C.value[(M=C.value)==null?void 0:M.prop],path:e};console.log("clickSubmitForm",E.value,h.value,t),O(t),p.show=!1},ue=e=>{var o,u;const t=(o=e==null?void 0:e.contents)==null?void 0:o.find(n=>n.key==="formContent");t&&(C.value=(u=t==null?void 0:t.contents)==null?void 0:u.reduce((n,c)=>(n[c.key]=c.value,n.prop=c.key,n),{}))},R=s.ref(!1);return{isCollapse:R,handleMenuCollapse:()=>{R.value=!R.value},handleCompChange:ue,dialogForm:ee,dialogRenderComps:q,getComponents:Z,clickSubmitForm:oe,dialogInfo:p,beforeDialogDestroy:re,clickMenuIcon:ne,mode:L,renderMenuList:$,clickMenu:j,openMenu:G,closeMenu:I,changeMenuStyle:g}}}}const ve=s.defineComponent(H());exports._sfc_main=ve;exports._sfc_main$1=z;exports.setComponent=H;exports.ssMenu=P;
@@ -1,9 +1,9 @@
1
- import { S as Y3, O as t1, M as n1 } from "./MTLLoader-BreJsr54.js";
2
- import { a$ as D2, a7 as G2, O as a1, Q as O1, R as j1, V as _3, r as q3, aj as _1, S as P2, a3 as U1, C as o1, s as j3, ar as C1, b0 as $2, o as V3, aA as W3, f as C3, Y as W2, p as O3, aB as D1, P as T1, ap as J2, l as K2, _ as Y2, n as X2, D as Z2, u as U3, a0 as G1, ax as H1, az as Q2, w as c1, aF as T3, as as e6, ai as r1, al as t6, k as N3, y as P1, am as n6, aq as s6, ad as J3, af as E1, b1 as i6, b2 as a6, b3 as V1, b4 as o6, b5 as r6, b6 as c6, b7 as l6, b8 as $1, b9 as d6, ba as h6, E as u6, bb as f6, ag as W1, ao as J1, v as p6, B as m6, a5 as B1, bc as b6 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
3
- import { d as g6 } from "./threeViewerHost-BNObp9oA.js";
4
- import { b as s1, s as y6, p as w6 } from "./index-HduGypr9.js";
1
+ import { S as Y3, O as t1, M as n1 } from "./MTLLoader-DKu2hJu8.js";
2
+ import { a$ as D2, a7 as G2, O as a1, Q as O1, R as j1, V as _3, r as q3, aj as _1, S as P2, a3 as U1, C as o1, s as j3, ar as C1, b0 as $2, o as V3, aA as W3, f as C3, Y as W2, p as O3, aB as D1, P as T1, ap as J2, l as K2, _ as Y2, n as X2, D as Z2, u as U3, a0 as G1, ax as H1, az as Q2, w as c1, aF as T3, as as e6, ai as r1, al as t6, k as N3, y as P1, am as n6, aq as s6, ad as J3, af as E1, b1 as i6, b2 as a6, b3 as V1, b4 as o6, b5 as r6, b6 as c6, b7 as l6, b8 as $1, b9 as d6, ba as h6, E as u6, bb as f6, ag as W1, ao as J1, v as p6, B as m6, a5 as B1, bc as b6 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
3
+ import { d as g6 } from "./threeViewerHost-SnFuinLz.js";
4
+ import { b as s1, s as y6, p as w6 } from "./index-DBDeHECn.js";
5
5
  import { ref as v6 } from "vue";
6
- import { a as z6 } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
6
+ import { a as z6 } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
7
7
  class q1 extends D2 {
8
8
  /**
9
9
  * Constructs a new TGA loader.