ss-component-new 1.1.1007 → 1.2.1

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 (132) hide show
  1. package/dist/OrbitControls-D1lM0xvz.cjs +1 -0
  2. package/dist/OrbitControls-DI8fa9gz.js +419 -0
  3. package/dist/STLLoader-KxFIlfhN.cjs +6 -0
  4. package/dist/STLLoader-memlq1bT.js +609 -0
  5. package/dist/{animationData-Bu38Hl4M.js → animationData-BDq02_ir.js} +14 -14
  6. package/dist/animationData-BRDoJBuV.cjs +1 -0
  7. package/dist/{array-DljC5ibo.js → array-A59WrroX.js} +1 -1
  8. package/dist/{array-BPHS7JFA.cjs → array-BtZq8qON.cjs} +1 -1
  9. package/dist/config.js +1 -1
  10. package/dist/{iconfont-pt17sMx3.js → iconfont-7cEds3Xj.js} +2 -2
  11. package/dist/{iconfont-t5epssvu.cjs → iconfont-CsuwJCas.cjs} +1 -1
  12. package/dist/{index-d6tSWKtY.cjs → index-1z9RrjZc.cjs} +1 -1
  13. package/dist/{index-QSIG57Cs.cjs → index-6t33eejU.cjs} +1 -1
  14. package/dist/{index-DqAoBcTD.cjs → index-B1ul2ExO.cjs} +1 -1
  15. package/dist/{index-BlbmO49N.js → index-B35e4i9n.js} +2 -2
  16. package/dist/{index-Da8C2puT.js → index-B9j8fCyS.js} +2 -2
  17. package/dist/index-BB6zZsmY.cjs +1 -0
  18. package/dist/{index-Cxyot1Se.js → index-BTrjEMt1.js} +4 -4
  19. package/dist/{index-CZ3UyOmT.cjs → index-B_k7wRBo.cjs} +1 -1
  20. package/dist/{index-B2lf8ui6.cjs → index-BdL8I_2i.cjs} +1 -1
  21. package/dist/{index-DQ4-s08u.js → index-BeTQ6ief.js} +4 -4
  22. package/dist/{index--7AqRoC1.js → index-BgJn4mlV.js} +4 -4
  23. package/dist/{index-BCeME5xm.js → index-BqCCREh3.js} +6 -6
  24. package/dist/{index-D3DLg4SF.js → index-BvPC1LSv.js} +18 -18
  25. package/dist/{index-oNErZJKp.js → index-BwjuTBrR.js} +1 -1
  26. package/dist/index-BxPnA2or.js +7294 -0
  27. package/dist/{index-CabdCJxd.js → index-C23iUpXa.js} +7 -7
  28. package/dist/{index-VfEaAkaq.cjs → index-C3CD2NW8.cjs} +1 -1
  29. package/dist/{index-DmXN3-YT.js → index-C461j30b.js} +1 -1
  30. package/dist/{index-B8xZFJ-x.js → index-C6Uddqal.js} +2 -2
  31. package/dist/{index-BtHzGwZt.js → index-CFg3-0Tk.js} +2 -2
  32. package/dist/{index-BstWDfX-.cjs → index-CJzA3AAO.cjs} +1 -1
  33. package/dist/{index-BRJVgxUP.cjs → index-CNJzNn6z.cjs} +1 -1
  34. package/dist/{index-C-KrU6Qo.cjs → index-CVl84S8B.cjs} +1 -1
  35. package/dist/{index-CZEK1c2_.js → index-CYp77kPp.js} +176 -176
  36. package/dist/{index-BCIKC9PE.js → index-C_VamYcq.js} +6 -6
  37. package/dist/{index-CmlXlH2b.cjs → index-CjI5pDiU.cjs} +1 -1
  38. package/dist/{index-efKjAh7G.cjs → index-CrWFG4Wb.cjs} +1 -1
  39. package/dist/{index-DIehhXd9.cjs → index-Crd4LGue.cjs} +1 -1
  40. package/dist/{index-feAp8_X8.cjs → index-CtG-uyjY.cjs} +1 -1
  41. package/dist/{index-DHy1RHXi.cjs → index-CtPy-3S1.cjs} +1 -1
  42. package/dist/{index-D3VTHlZh.js → index-CvEj4aiY.js} +4 -4
  43. package/dist/{index-DzcelPVu.cjs → index-Cx302rHQ.cjs} +1 -1
  44. package/dist/{index-BrsIZVyD.cjs → index-CxnH4vfV.cjs} +1 -1
  45. package/dist/{index-hsKO-I_N.js → index-Cz03X-rX.js} +1 -1
  46. package/dist/{index-DxggSUtV.cjs → index-D8S0DVkq.cjs} +1 -1
  47. package/dist/{index-BuBVqjpx.js → index-DH0dVg0N.js} +7 -7
  48. package/dist/{index-oCii55Zs.cjs → index-DIm3MBK_.cjs} +1 -1
  49. package/dist/{index-CnqhOUek.js → index-DNE4QDIf.js} +3 -3
  50. package/dist/{index-BCXz_U9h.cjs → index-DQTI3BuS.cjs} +1 -1
  51. package/dist/{index-De9VWWmT.cjs → index-DS3OziT5.cjs} +1 -1
  52. package/dist/{index-Hm2_zeiV.js → index-DVvt9_w0.js} +1 -1
  53. package/dist/{index-DqhAoamS.cjs → index-DmB0dlGH.cjs} +1 -1
  54. package/dist/index-Dn9I5-1H.cjs +1 -0
  55. package/dist/{index-s1sBvg7-.cjs → index-DqaA5Rvx.cjs} +1 -1
  56. package/dist/{index-Bu-yHmJc.cjs → index-DqquxuCt.cjs} +1 -1
  57. package/dist/{index-DsIUgynO.js → index-DygW4mGC.js} +6 -6
  58. package/dist/{index-1gIP1dMc.cjs → index-HFf3Z0Ft.cjs} +1 -1
  59. package/dist/{index-BvDv1IKK.cjs → index-Kg96Vvn5.cjs} +1 -1
  60. package/dist/{index-DaBbEkRJ.js → index-N7dEiXLQ.js} +13 -13
  61. package/dist/index-TXrydBPq.cjs +1 -0
  62. package/dist/{index-BcBpmCfF.cjs → index-XQxaEXgz.cjs} +1 -1
  63. package/dist/{index-BHNtRl-8.js → index-Y5i13RsM.js} +3 -3
  64. package/dist/{index-CrKg8KZt.js → index-YQnrEK_K.js} +1069 -1061
  65. package/dist/{index-Jyps1gRD.js → index-aneoZx5F.js} +24 -24
  66. package/dist/{index-BdY8Qg-6.cjs → index-byBdKAky.cjs} +1 -1
  67. package/dist/{index-DWuAa5Ws.js → index-db5CgGrA.js} +394 -394
  68. package/dist/{index-TwtUdAMm.js → index-dqBbhGfy.js} +6 -6
  69. package/dist/{index-Dw_nYMhJ.cjs → index-gjDjqhNq.cjs} +2 -2
  70. package/dist/{index-K1m0RQMs.js → index-nq9fleOT.js} +2 -2
  71. package/dist/{index-oI1HUneF.js → index-qoqka5Nb.js} +1 -1
  72. package/dist/{index-DZHLGAn0.js → index-wHil9Fox.js} +2 -2
  73. package/dist/{index-Dtk-Fgm3.js → index-wq8KZGnQ.js} +5 -5
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPiIzB84.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CzcK5mCc.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DC4zFlOQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dmm4yqcc.js} +2 -2
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DMhv31o4.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B0Ivzvcp.js} +6 -6
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DV4d1URg.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-xm0hMPwT.cjs} +1 -1
  78. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CMx9TLjC.cjs +56 -0
  79. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Czu5g16A.js +37436 -0
  80. package/dist/{index.vue_vue_type_style_index_1_lang-DgDibOnl.js → index.vue_vue_type_style_index_1_lang-AXp5rRSK.js} +76 -76
  81. package/dist/{index.vue_vue_type_style_index_1_lang-B1fiFPmj.js → index.vue_vue_type_style_index_1_lang-BxEXAMMV.js} +5012 -5100
  82. package/dist/{index.vue_vue_type_style_index_1_lang-CwJCb_rE.cjs → index.vue_vue_type_style_index_1_lang-CXwGS60-.cjs} +45 -46
  83. package/dist/{index.vue_vue_type_style_index_1_lang-B2vK-1an.cjs → index.vue_vue_type_style_index_1_lang-j5HrYuvy.cjs} +1 -1
  84. package/dist/{isString-D3DhambW.js → isString-BNK38WbE.js} +1 -1
  85. package/dist/{isString-ChvWbctO.cjs → isString-BmAegMGI.cjs} +1 -1
  86. package/dist/{main-YesjKNW0.cjs → main-BgpAXuSa.cjs} +1 -1
  87. package/dist/{main-DjvWp72p.js → main-t7yIujwl.js} +5 -5
  88. package/dist/ss-component.cjs +1 -1
  89. package/dist/ss-component.css +1 -1
  90. package/dist/ss-component.js +11 -11
  91. package/dist/ss-component2.cjs +1 -1
  92. package/dist/ss-component2.js +12 -12
  93. package/dist/three-viewport-gizmo-BxFHxv_x.js +18587 -0
  94. package/dist/three-viewport-gizmo-CwaL5sMV.cjs +4195 -0
  95. package/dist/{threeLatheView-DfSxRY8B.cjs → threeLatheView-BzHB-t_G.cjs} +1 -1
  96. package/dist/{threeLatheView-Mc00lYo0.js → threeLatheView-sTBlm0tt.js} +4 -4
  97. package/dist/{threeModel-DgfyuwYi.js → threeModel-11Yk8w2d.js} +5 -5
  98. package/dist/{threeModel-B7tOOzr9.cjs → threeModel-BudPgWiX.cjs} +1 -1
  99. package/dist/threePreview-Cy7NY-gw.cjs +1 -0
  100. package/dist/threePreview-DPyqhBkJ.js +1873 -0
  101. package/dist/threeSceneView-Bwed326O.js +1469 -0
  102. package/dist/threeSceneView-DT-STxuj.cjs +5 -0
  103. package/dist/{threeSceneViewForCPMPIP-Dw2bZRas.js → threeSceneViewForCPMPIP-PgPPGBxu.js} +90 -91
  104. package/dist/{threeSceneViewForCPMPIP-fWzzwARt.cjs → threeSceneViewForCPMPIP-RRDb_tZ0.cjs} +3 -3
  105. package/dist/{threeViewerHost-C9qoD_Tp.cjs → threeViewerHost-Brgx-J3Q.cjs} +1 -1
  106. package/dist/{threeViewerHost-D6c0lK4U.js → threeViewerHost-k5I66uBW.js} +8 -8
  107. package/dist/useRayCaster-CLcetetd.cjs +1 -0
  108. package/dist/{useRayCaster-Y_Q5getG.js → useRayCaster-TCYe6KMI.js} +14 -14
  109. package/package.json +1 -1
  110. package/public/config.js +1 -1
  111. package/dist/OrbitControls-C0QRmW6_.js +0 -458
  112. package/dist/OrbitControls-Co_9huz0.cjs +0 -1
  113. package/dist/STLLoader-CiUjaQtA.js +0 -657
  114. package/dist/STLLoader-RU7KqloS.cjs +0 -6
  115. package/dist/animationData-BjR16KKI.cjs +0 -1
  116. package/dist/index-BIg5JGtJ.js +0 -3370
  117. package/dist/index-BgImAL2B.cjs +0 -1
  118. package/dist/index-BuijIgJr.cjs +0 -1
  119. package/dist/index-Daqeta0F.cjs +0 -1
  120. package/dist/index-LnraLHWy.js +0 -7214
  121. package/dist/index-ama5teB1.cjs +0 -1
  122. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CycvdKIn.js +0 -34104
  123. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DnbT8HgZ.cjs +0 -56
  124. package/dist/isUndefined-7lpU02Ef.cjs +0 -1
  125. package/dist/isUndefined-BqsKWawv.js +0 -84
  126. package/dist/three-viewport-gizmo-BV37JzRa.cjs +0 -4197
  127. package/dist/three-viewport-gizmo-CkQ98n-T.js +0 -26015
  128. package/dist/threePreview-ByUYJkts.cjs +0 -1
  129. package/dist/threePreview-CkZ9LLXO.js +0 -1972
  130. package/dist/threeSceneView-BxK4ycgs.js +0 -1472
  131. package/dist/threeSceneView-DK1eRng9.cjs +0 -5
  132. package/dist/useRayCaster-BkcK_aF1.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const p=require("./index-d6tSWKtY.cjs"),l=require("vue");function ni(e){return e}function So(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var Eo=800,To=16,wo=Date.now;function Do(e){var n=0,t=0;return function(){var r=wo(),i=To-(r-t);if(t=r,i>0){if(++n>=Eo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ao(e){return function(){return e}}var ko=p.defineProperty?function(e,n){return p.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Ao(n),writable:!0})}:ni,ri=Do(ko),yr=Math.max;function ii(e,n,t){return n=yr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=yr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),So(e,this,s)}}var vr=p.Symbol?p.Symbol.isConcatSpreadable:void 0;function Co(e){return p.isArray(e)||p.isArguments(e)||!!(vr&&e&&e[vr])}function Ln(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Co),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Ln(s,n-1,t,r,i):p.arrayPush(i,s):r||(i[i.length]=s)}return i}function oi(e){var n=e==null?0:e.length;return n?Ln(e,1):[]}function ai(e){return ri(ii(e,void 0,oi),e+"")}var Io="__lodash_hash_undefined__";function xo(e){return this.__data__.set(e,Io),this}function Bo(e){return this.__data__.has(e)}function Et(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new p.MapCache;++n<t;)this.add(e[n])}Et.prototype.add=Et.prototype.push=xo;Et.prototype.has=Bo;function Ro(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function si(e,n){return e.has(n)}var Mo=1,No=2;function li(e,n,t,r,i,o){var a=t&Mo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),f=o.get(n);if(u&&f)return u==n&&f==e;var h=-1,d=!0,v=t&No?new Et:void 0;for(o.set(e,n),o.set(n,e);++h<s;){var g=e[h],m=n[h];if(r)var y=a?r(m,g,h,n,e,o):r(g,m,h,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Ro(n,function(b,S){if(!si(v,S)&&(g===b||i(g,b,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===m||i(g,m,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Oo(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function ui(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Po=1,Vo=2,Fo="[object Boolean]",Lo="[object Date]",Ko="[object Error]",_o="[object Map]",Ho="[object Number]",$o="[object RegExp]",Uo="[object Set]",zo="[object String]",jo="[object Symbol]",qo="[object ArrayBuffer]",Go="[object DataView]",br=p.Symbol?p.Symbol.prototype:void 0,cn=br?br.valueOf:void 0;function Wo(e,n,t,r,i,o,a){switch(t){case Go:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qo:return!(e.byteLength!=n.byteLength||!o(new p.Uint8Array(e),new p.Uint8Array(n)));case Fo:case Lo:case Ho:return p.eq(+e,+n);case Ko:return e.name==n.name&&e.message==n.message;case $o:case zo:return e==n+"";case _o:var s=Oo;case Uo:var c=r&Po;if(s||(s=ui),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=Vo,a.set(e,n);var f=li(s(e),s(n),r,i,o,a);return a.delete(e),f;case jo:if(cn)return cn.call(e)==cn.call(n)}return!1}var Yo=1,Zo=Object.prototype,Jo=Zo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=t&Yo,s=p.getAllKeys(e),c=s.length,u=p.getAllKeys(n),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var d=s[h];if(!(a?d in n:Jo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var m=!0;o.set(e,n),o.set(n,e);for(var y=a;++h<c;){d=s[h];var b=e[d],S=n[d];if(r)var x=a?r(S,b,d,n,e,o):r(b,S,d,e,n,o);if(!(x===void 0?b===S||i(b,S,t,r,o):x)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var E=e.constructor,k=n.constructor;E!=k&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(n),m}var Qo=1,mr="[object Arguments]",Sr="[object Array]",xt="[object Object]",ea=Object.prototype,Er=ea.hasOwnProperty;function ta(e,n,t,r,i,o){var a=p.isArray(e),s=p.isArray(n),c=a?Sr:p.getTag(e),u=s?Sr:p.getTag(n);c=c==mr?xt:c,u=u==mr?xt:u;var f=c==xt,h=u==xt,d=c==u;if(d&&p.isBuffer(e)){if(!p.isBuffer(n))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new p.Stack),a||p.isTypedArray(e)?li(e,n,t,r,i,o):Wo(e,n,c,t,r,i,o);if(!(t&Qo)){var v=f&&Er.call(e,"__wrapped__"),g=h&&Er.call(n,"__wrapped__");if(v||g){var m=v?e.value():e,y=g?n.value():n;return o||(o=new p.Stack),i(m,y,t,r,o)}}return d?(o||(o=new p.Stack),Xo(e,n,t,r,i,o)):!1}function Kn(e,n,t,r,i){return e===n?!0:e==null||n==null||!p.isObjectLike(e)&&!p.isObjectLike(n)?e!==e&&n!==n:ta(e,n,t,r,Kn,i)}function na(e,n){return e!=null&&n in Object(e)}function ra(e,n,t){n=p.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=p.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&p.isLength(i)&&p.isIndex(a,i)&&(p.isArray(e)||p.isArguments(e)))}function ci(e,n){return e!=null&&ra(e,n,na)}function fi(e,n){return Kn(e,n)}function ia(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=p.baseGet(e,a);t(s,a)&&p.baseSet(o,p.castPath(a,e),s)}return o}function oa(e,n){return ia(e,n,function(t,r){return ci(e,r)})}var hi=ai(function(e,n){return e==null?{}:oa(e,n)});const jt="update:modelValue",Tn="change",wn="input";function aa(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const pi=e=>p.isClient?window.requestAnimationFrame(e):setTimeout(e,16),di=e=>p.isClient?window.cancelAnimationFrame(e):clearTimeout(e),sa=(e,n)=>{if(!p.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=p.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},la=(e,n)=>{if(!p.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(sa(t,n))return t;t=t.parentNode}return t};let Bt;const gi=e=>{var n;if(!p.isClient)return 0;if(Bt!==void 0)return Bt;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),Bt=r-o,Bt};function ua(e,n){if(!p.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function ca(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,f=aa(u>r?r:u,n,t,r);p.isWindow(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,u<r?a=pi(s):p.isFunction(i)&&i()};return s(),()=>{a&&di(a)}}const fa=(e,n)=>p.isWindow(n)?e.ownerDocument.documentElement:n,ha=e=>p.isWindow(e)?window.scrollY:e.scrollTop,yi=()=>p.isClient&&/firefox/i.test(window.navigator.userAgent);let Te;const pa={height:"0",visibility:"hidden",overflow:yi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},da=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ga(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:da.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function Tr(e,n=1,t){var r;Te||(Te=document.createElement("textarea"),document.body.appendChild(Te));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ga(e);s.forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d)),Object.entries(pa).forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d,"important")),Te.value=e.value||e.placeholder||"";let c=Te.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),Te.value="";const f=Te.scrollHeight-i;if(p.isNumber(n)){let h=f*n;a==="border-box"&&(h=h+i+o),c=Math.max(h,c),u.minHeight=`${h}px`}if(p.isNumber(t)){let h=f*t;a==="border-box"&&(h=h+i+o),c=Math.min(h,c)}return u.height=`${c}px`,(r=Te.parentNode)==null||r.removeChild(Te),Te=void 0,u}const ya=p.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),vi=e=>hi(ya,e),bi=p.buildProps({id:{type:String,default:void 0},size:p.useSizeProp,disabled:Boolean,modelValue:{type:p.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:p.iconPropType},prefixIcon:{type:p.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p.definePropType([Object,Array,String]),default:()=>p.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...vi(["ariaLabel"])}),va={[jt]:e=>p.isString(e),input:e=>p.isString(e),change:e=>p.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ba=["class","style"],ma=/^on[A-Z]/,mi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ba)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return p.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ma.test(a))))}):(p.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Dn={prefix:Math.floor(Math.random()*1e4),current:0},Sa=Symbol("elIdInjection"),Si=()=>l.getCurrentInstance()?l.inject(Sa,Dn):Dn,qt=e=>{const n=Si();!p.isClient&&n===Dn&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
1
+ "use strict";const p=require("./index-1z9RrjZc.cjs"),l=require("vue");function ni(e){return e}function So(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var Eo=800,To=16,wo=Date.now;function Do(e){var n=0,t=0;return function(){var r=wo(),i=To-(r-t);if(t=r,i>0){if(++n>=Eo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ao(e){return function(){return e}}var ko=p.defineProperty?function(e,n){return p.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Ao(n),writable:!0})}:ni,ri=Do(ko),yr=Math.max;function ii(e,n,t){return n=yr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=yr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),So(e,this,s)}}var vr=p.Symbol?p.Symbol.isConcatSpreadable:void 0;function Co(e){return p.isArray(e)||p.isArguments(e)||!!(vr&&e&&e[vr])}function Ln(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Co),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Ln(s,n-1,t,r,i):p.arrayPush(i,s):r||(i[i.length]=s)}return i}function oi(e){var n=e==null?0:e.length;return n?Ln(e,1):[]}function ai(e){return ri(ii(e,void 0,oi),e+"")}var Io="__lodash_hash_undefined__";function xo(e){return this.__data__.set(e,Io),this}function Bo(e){return this.__data__.has(e)}function Et(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new p.MapCache;++n<t;)this.add(e[n])}Et.prototype.add=Et.prototype.push=xo;Et.prototype.has=Bo;function Ro(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function si(e,n){return e.has(n)}var Mo=1,No=2;function li(e,n,t,r,i,o){var a=t&Mo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),f=o.get(n);if(u&&f)return u==n&&f==e;var h=-1,d=!0,v=t&No?new Et:void 0;for(o.set(e,n),o.set(n,e);++h<s;){var g=e[h],m=n[h];if(r)var y=a?r(m,g,h,n,e,o):r(g,m,h,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Ro(n,function(b,S){if(!si(v,S)&&(g===b||i(g,b,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===m||i(g,m,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Oo(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function ui(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Po=1,Vo=2,Fo="[object Boolean]",Lo="[object Date]",Ko="[object Error]",_o="[object Map]",Ho="[object Number]",$o="[object RegExp]",Uo="[object Set]",zo="[object String]",jo="[object Symbol]",qo="[object ArrayBuffer]",Go="[object DataView]",br=p.Symbol?p.Symbol.prototype:void 0,cn=br?br.valueOf:void 0;function Wo(e,n,t,r,i,o,a){switch(t){case Go:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qo:return!(e.byteLength!=n.byteLength||!o(new p.Uint8Array(e),new p.Uint8Array(n)));case Fo:case Lo:case Ho:return p.eq(+e,+n);case Ko:return e.name==n.name&&e.message==n.message;case $o:case zo:return e==n+"";case _o:var s=Oo;case Uo:var c=r&Po;if(s||(s=ui),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=Vo,a.set(e,n);var f=li(s(e),s(n),r,i,o,a);return a.delete(e),f;case jo:if(cn)return cn.call(e)==cn.call(n)}return!1}var Yo=1,Zo=Object.prototype,Jo=Zo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=t&Yo,s=p.getAllKeys(e),c=s.length,u=p.getAllKeys(n),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var d=s[h];if(!(a?d in n:Jo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var m=!0;o.set(e,n),o.set(n,e);for(var y=a;++h<c;){d=s[h];var b=e[d],S=n[d];if(r)var x=a?r(S,b,d,n,e,o):r(b,S,d,e,n,o);if(!(x===void 0?b===S||i(b,S,t,r,o):x)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var E=e.constructor,k=n.constructor;E!=k&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(n),m}var Qo=1,mr="[object Arguments]",Sr="[object Array]",xt="[object Object]",ea=Object.prototype,Er=ea.hasOwnProperty;function ta(e,n,t,r,i,o){var a=p.isArray(e),s=p.isArray(n),c=a?Sr:p.getTag(e),u=s?Sr:p.getTag(n);c=c==mr?xt:c,u=u==mr?xt:u;var f=c==xt,h=u==xt,d=c==u;if(d&&p.isBuffer(e)){if(!p.isBuffer(n))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new p.Stack),a||p.isTypedArray(e)?li(e,n,t,r,i,o):Wo(e,n,c,t,r,i,o);if(!(t&Qo)){var v=f&&Er.call(e,"__wrapped__"),g=h&&Er.call(n,"__wrapped__");if(v||g){var m=v?e.value():e,y=g?n.value():n;return o||(o=new p.Stack),i(m,y,t,r,o)}}return d?(o||(o=new p.Stack),Xo(e,n,t,r,i,o)):!1}function Kn(e,n,t,r,i){return e===n?!0:e==null||n==null||!p.isObjectLike(e)&&!p.isObjectLike(n)?e!==e&&n!==n:ta(e,n,t,r,Kn,i)}function na(e,n){return e!=null&&n in Object(e)}function ra(e,n,t){n=p.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=p.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&p.isLength(i)&&p.isIndex(a,i)&&(p.isArray(e)||p.isArguments(e)))}function ci(e,n){return e!=null&&ra(e,n,na)}function fi(e,n){return Kn(e,n)}function ia(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=p.baseGet(e,a);t(s,a)&&p.baseSet(o,p.castPath(a,e),s)}return o}function oa(e,n){return ia(e,n,function(t,r){return ci(e,r)})}var hi=ai(function(e,n){return e==null?{}:oa(e,n)});const jt="update:modelValue",Tn="change",wn="input";function aa(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const pi=e=>p.isClient?window.requestAnimationFrame(e):setTimeout(e,16),di=e=>p.isClient?window.cancelAnimationFrame(e):clearTimeout(e),sa=(e,n)=>{if(!p.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=p.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},la=(e,n)=>{if(!p.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(sa(t,n))return t;t=t.parentNode}return t};let Bt;const gi=e=>{var n;if(!p.isClient)return 0;if(Bt!==void 0)return Bt;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),Bt=r-o,Bt};function ua(e,n){if(!p.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function ca(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,f=aa(u>r?r:u,n,t,r);p.isWindow(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,u<r?a=pi(s):p.isFunction(i)&&i()};return s(),()=>{a&&di(a)}}const fa=(e,n)=>p.isWindow(n)?e.ownerDocument.documentElement:n,ha=e=>p.isWindow(e)?window.scrollY:e.scrollTop,yi=()=>p.isClient&&/firefox/i.test(window.navigator.userAgent);let Te;const pa={height:"0",visibility:"hidden",overflow:yi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},da=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ga(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:da.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function Tr(e,n=1,t){var r;Te||(Te=document.createElement("textarea"),document.body.appendChild(Te));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ga(e);s.forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d)),Object.entries(pa).forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d,"important")),Te.value=e.value||e.placeholder||"";let c=Te.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),Te.value="";const f=Te.scrollHeight-i;if(p.isNumber(n)){let h=f*n;a==="border-box"&&(h=h+i+o),c=Math.max(h,c),u.minHeight=`${h}px`}if(p.isNumber(t)){let h=f*t;a==="border-box"&&(h=h+i+o),c=Math.min(h,c)}return u.height=`${c}px`,(r=Te.parentNode)==null||r.removeChild(Te),Te=void 0,u}const ya=p.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),vi=e=>hi(ya,e),bi=p.buildProps({id:{type:String,default:void 0},size:p.useSizeProp,disabled:Boolean,modelValue:{type:p.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:p.iconPropType},prefixIcon:{type:p.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p.definePropType([Object,Array,String]),default:()=>p.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...vi(["ariaLabel"])}),va={[jt]:e=>p.isString(e),input:e=>p.isString(e),change:e=>p.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ba=["class","style"],ma=/^on[A-Z]/,mi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ba)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return p.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ma.test(a))))}):(p.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Dn={prefix:Math.floor(Math.random()*1e4),current:0},Sa=Symbol("elIdInjection"),Si=()=>l.getCurrentInstance()?l.inject(Sa,Dn):Dn,qt=e=>{const n=Si();!p.isClient&&n===Dn&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
2
2
  usage: app.provide(ID_INJECTION_KEY, {
3
3
  prefix: number,
4
4
  current: number,
@@ -1,4 +1,4 @@
1
- import { bx as t, m as i, by as s } from "./index-CZEK1c2_.js";
1
+ import { bC as t, h as i, bD as s } from "./index-CYp77kPp.js";
2
2
  var n = "[object String]";
3
3
  function g(r) {
4
4
  return typeof r == "string" || !i(r) && t(r) && s(r) == n;
@@ -1 +1 @@
1
- "use strict";const t=require("./index-d6tSWKtY.cjs");var r="[object String]";function n(i){return typeof i=="string"||!t.isArray(i)&&t.isObjectLike(i)&&t.baseGetTag(i)==r}exports.isString=n;
1
+ "use strict";const t=require("./index-1z9RrjZc.cjs");var r="[object String]";function n(i){return typeof i=="string"||!t.isArray(i)&&t.isObjectLike(i)&&t.baseGetTag(i)==r}exports.isString=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-BvDv1IKK.cjs"),i=require("./index-d6tSWKtY.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-B2vK-1an.cjs"),Z=require("./index-BuijIgJr.cjs"),G=require("./array-BPHS7JFA.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{j("change",{wholeValue:p.value,editValue:c})},S=c=>{const g=i.cloneDeep(p.value),B=g==null?void 0:g.map((d,b)=>(b===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));p.value=B};e.watch(()=>_.value,()=>{var c;!_.value||((c=_.value)==null?void 0:c.length)===0||(C.value=_.value,p.value=_.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const w=c=>Z.getComponent(c);return(c,g)=>{var B;return((B=C.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:b},[e.createElementVNode("div",ee,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:b,onChange:I,index:b,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=K._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=e.ref(""),_=e.ref([]),p=e.ref(0),C=T.useModelComp(i.pinia);T.useMenuState(i.pinia);const{itemData:I,originalData:S}=i.storeToRefs(C),w=e.ref(null),c=e.ref(0),g=e.ref(""),B=()=>{p.value=window.innerWidth},d=async r=>{var u;const a=(u=i.cloneDeep(r==null?void 0:r.wholeValue))==null?void 0:u.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});j("change",{originalContents:S.value,currentContents:r==null?void 0:r.wholeValue,editContent:r==null?void 0:r.editValue,stringContent:b(i.cloneDeep(r==null?void 0:r.wholeValue)),arrayToContents:a})},b=r=>{var u;let a=[];return(u=i.cloneDeep(r))==null||u.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var F,$,J,A,q,M,L,R,z,W,H,P;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((F=n==null?void 0:n.contents)!=null&&F.length))a.push((($=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:$.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=(J=n==null?void 0:n.contents)==null?void 0:J[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((q=(A=n.contents)==null?void 0:A.filter(y=>y.width!==1))==null?void 0:q.length)===0){const y=(M=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:M.map(l=>({[l.label]:l.value}));a.push(((L=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=i.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((l,D)=>{var U;return l[D.label]=D.key,((U=Object.keys(i.cloneDeep(l)))==null?void 0:U.length)>=D.width&&(y.push(i.cloneDeep(l)),l={}),l},{}),a.push(((z=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(W=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:W.map(l=>l.label);a.push(((H=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(y)+"/r/n")}else a.push(((P=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},N=e.ref([]),Q=()=>{w.value.click()},X=r=>{const a=r.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,N.value=Y(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",B)}),e.onUnmounted(()=>{window.removeEventListener("resize",B)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.value=t==null?void 0:t.content,_.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var r;((r=N.value)==null?void 0:r.length)!==0&&(C.setOriginalData(N.value),C.setItemData(N.value))},{deep:!0,immediate:!0});const Y=r=>{let a=r.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(r,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:p.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:h.value,onChange:d,jsonContents:_.value,key:p.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=K._export_sfc(de,[["__scopeId","data-v-91ce80be"]]);exports.default=me;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-Kg96Vvn5.cjs"),i=require("./index-1z9RrjZc.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-j5HrYuvy.cjs"),Z=require("./index-TXrydBPq.cjs"),G=require("./array-BtZq8qON.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{j("change",{wholeValue:p.value,editValue:c})},S=c=>{const g=i.cloneDeep(p.value),B=g==null?void 0:g.map((d,b)=>(b===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));p.value=B};e.watch(()=>_.value,()=>{var c;!_.value||((c=_.value)==null?void 0:c.length)===0||(C.value=_.value,p.value=_.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const w=c=>Z.getComponent(c);return(c,g)=>{var B;return((B=C.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:b},[e.createElementVNode("div",ee,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:b,onChange:I,index:b,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=K._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=e.ref(""),_=e.ref([]),p=e.ref(0),C=T.useModelComp(i.pinia);T.useMenuState(i.pinia);const{itemData:I,originalData:S}=i.storeToRefs(C),w=e.ref(null),c=e.ref(0),g=e.ref(""),B=()=>{p.value=window.innerWidth},d=async r=>{var u;const a=(u=i.cloneDeep(r==null?void 0:r.wholeValue))==null?void 0:u.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});j("change",{originalContents:S.value,currentContents:r==null?void 0:r.wholeValue,editContent:r==null?void 0:r.editValue,stringContent:b(i.cloneDeep(r==null?void 0:r.wholeValue)),arrayToContents:a})},b=r=>{var u;let a=[];return(u=i.cloneDeep(r))==null||u.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var F,$,J,A,q,M,L,R,z,W,H,P;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((F=n==null?void 0:n.contents)!=null&&F.length))a.push((($=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:$.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=(J=n==null?void 0:n.contents)==null?void 0:J[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((q=(A=n.contents)==null?void 0:A.filter(y=>y.width!==1))==null?void 0:q.length)===0){const y=(M=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:M.map(l=>({[l.label]:l.value}));a.push(((L=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=i.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((l,D)=>{var U;return l[D.label]=D.key,((U=Object.keys(i.cloneDeep(l)))==null?void 0:U.length)>=D.width&&(y.push(i.cloneDeep(l)),l={}),l},{}),a.push(((z=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(W=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:W.map(l=>l.label);a.push(((H=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(y)+"/r/n")}else a.push(((P=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},N=e.ref([]),Q=()=>{w.value.click()},X=r=>{const a=r.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,N.value=Y(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",B)}),e.onUnmounted(()=>{window.removeEventListener("resize",B)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.value=t==null?void 0:t.content,_.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var r;((r=N.value)==null?void 0:r.length)!==0&&(C.setOriginalData(N.value),C.setItemData(N.value))},{deep:!0,immediate:!0});const Y=r=>{let a=r.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(r,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:p.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:h.value,onChange:d,jsonContents:_.value,key:p.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=K._export_sfc(de,[["__scopeId","data-v-91ce80be"]]);exports.default=me;
@@ -1,9 +1,9 @@
1
1
  import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as f, Fragment as le, renderList as se, createElementVNode as O, createBlock as Z, toDisplayString as v, resolveDynamicComponent as ue, onMounted as ce, onUnmounted as ie, createVNode as A } from "vue";
2
- import { m as me, a as de, b as ye } from "./index-BCIKC9PE.js";
3
- import { p as E, s as ee, c as k } from "./index-CZEK1c2_.js";
4
- import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-DgDibOnl.js";
5
- import { g as ge } from "./index-LnraLHWy.js";
6
- import { e as he, a as ke } from "./array-DljC5ibo.js";
2
+ import { m as me, a as de, b as ye } from "./index-C_VamYcq.js";
3
+ import { p as E, s as ee, c as k } from "./index-CYp77kPp.js";
4
+ import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-AXp5rRSK.js";
5
+ import { g as ge } from "./index-BxPnA2or.js";
6
+ import { e as he, a as ke } from "./array-A59WrroX.js";
7
7
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const x = [
9
9
  {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPiIzB84.cjs");const C=require("./index.vue_vue_type_style_index_1_lang-B2vK-1an.cjs");require("./index-d6tSWKtY.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-YesjKNW0.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Dw_nYMhJ.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-feAp8_X8.cjs")));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Daqeta0F.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DqhAoamS.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DEEZPcpU.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DxggSUtV.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-B7tOOzr9.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-C9qoD_Tp.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=C.useMenuState(),P=[r,i,c,l,m,u,a,h,f],q=e=>{P.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=v.SvgIcon;exports.router=s;exports.default=q;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CzcK5mCc.cjs");const C=require("./index.vue_vue_type_style_index_1_lang-j5HrYuvy.cjs");require("./index-1z9RrjZc.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BgpAXuSa.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-gjDjqhNq.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CtG-uyjY.cjs")));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Dn9I5-1H.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DmB0dlGH.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DEEZPcpU.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D8S0DVkq.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-BudPgWiX.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-Brgx-J3Q.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=C.useMenuState(),P=[r,i,c,l,m,u,a,h,f],q=e=>{P.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=v.SvgIcon;exports.router=s;exports.default=q;exports.platformApi=T;