@vtj/pro 0.17.6 → 0.17.8

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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  9. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  14. package/dist/assets/Editor-CPtl6CLF-CZK-iRjd.js +546 -0
  15. package/dist/assets/auth-DPcwTwML.js +1 -0
  16. package/dist/assets/{index-th3c9OdM.js → index-B4KQg9YW.js} +1 -1
  17. package/dist/assets/{index-BuGNkP-C.js → index-DoeCvv0h.js} +2 -2
  18. package/dist/assets/page-DC0UpU2I.js +2 -0
  19. package/dist/assets/preview-BPqKBjpN.js +2 -0
  20. package/dist/assets/utils-BjOPfXIU.js +1 -0
  21. package/dist/index.html +3 -3
  22. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BmOkhsCk.js → @dcloudio-uni-h5-vue-CKVTfNUF.js} +2 -2
  23. package/dist/uni/assets/index-n3NvAQNA.js +91 -0
  24. package/dist/uni/assets/{vue-router-BaL-Hp_b.js → vue-router-BuyipnGj.js} +1 -1
  25. package/dist/uni/index.html +3 -3
  26. package/package.json +12 -12
  27. package/dist/assets/Editor-C3o0jtM2-SS6YQFnK.js +0 -538
  28. package/dist/assets/auth-MwmnBWEv.js +0 -1
  29. package/dist/assets/page-DfQNNxIl.js +0 -2
  30. package/dist/assets/preview-D6c64CQx.js +0 -2
  31. package/dist/assets/utils-C71Ycgsp.js +0 -1
  32. package/dist/uni/assets/index-BT50bWB7.js +0 -83
  33. /package/dist/assets/{Editor-C3o0jtM2-NMmAvvAr.css → Editor-CPtl6CLF-NMmAvvAr.css} +0 -0
@@ -1 +0,0 @@
1
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,s)=>{var n=r=>{try{i(t.next(r))}catch(a){s(a)}},p=r=>{try{i(t.throw(r))}catch(a){s(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{q,aF as I,a9 as d,aG as b,aH as E,Q as v}from"./Editor-C3o0jtM2-SS6YQFnK.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import{y as C,az as f,I as R,D as k,u as l,E as $,U as g}from"./vue-BaPf1eHv.js";import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const S={class:"loading"},z=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=q(u(u({alert:d},I),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield E(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,r=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(r)try{s.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(k(),R("div",S,"正在登录中..."))})}}),D=Q(z,[["__scopeId","data-v-2cb061ca"]]),Y=C({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new v,s=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=s==null?void 0:s.remote,p=s==null?void 0:s.__ACCESS__;return(i,r)=>l(n)?(k(),$(l(D),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Y as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as B,G as V,B as D,K as T,y as k,Y as I,N}from"./Editor-C3o0jtM2-SS6YQFnK.js";import{a as S,n as w,l as G,E as K}from"./utils-C71Ycgsp.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as x,e as Q,E as Y,S as z,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const it=O({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(V(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:G,notify:w,useTitle:L,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new K(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-BaPf1eHv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=U(),n=j(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{N(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(I),a.use(r),v(a))})),Q(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(b(),Y(z(f.value),{key:0})):H("",!0)})}});export{it as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as P,G as V,B as D,K as T,y as k,z,Y as I,N}from"./Editor-C3o0jtM2-SS6YQFnK.js";import{a as S,n as h,l as G,E as K}from"./utils-C71Ycgsp.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as C,E as Q,S as Y,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const pe=O({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(V(h)),s=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:G,notify:h,useTitle:L,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=C(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BaPf1eHv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield z(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{N(r,v,R)}))})),(m,r)=>u.value?(b(),Q(Y(u.value),{key:0})):H("",!0)})}});export{pe as default};
@@ -1 +0,0 @@
1
- var O=Object.defineProperty;var S=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var T=(t,a,s)=>a in t?O(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,E=(t,a)=>{for(var s in a||(a={}))u.call(a,s)&&T(t,s,a[s]);if(S)for(var s of S(a))m.call(a,s)&&T(t,s,a[s]);return t};var l=(t,a,s)=>T(t,typeof a!="symbol"?a+"":a,s);var g=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as d}from"./vue-BaPf1eHv.js";import{W as A,R as I,b as f,c as V,f as b,X as h,e as P,F as R,g as y,n as D,a as M,A as L,h as N,Z as H,S as K,E as k,i as B,j as x,k as w,l as F,m as G,p as v,r as W,H as Y,x as J,s as U,t as C,u as j,v as X,w as z,C as $,D as q,I as Q,J as Z,L as aa,M as sa,$ as ea,O as ta,P as ra,T as ia,U as na,V as oa,_ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Ta,a4 as Sa,a5 as ga,a6 as pa,a7 as Oa,a8 as ua,a9 as ma,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as ba,ag as ha,ah as Pa,ai as Ra,aj as ya,ak as Da,al as Ma,am as La,an as Na,ao as Ha,ap as Ka,aq as ka,ar as Ba,as as xa,at as wa,au as Fa,av as Ga,aw as va,o as Wa,ax as Ya,ay as Ja,az as Ua,aA as Ca,aB as ja,aC as Xa,aD as za,aE as $a}from"./Editor-C3o0jtM2-SS6YQFnK.js";import{E as qa,a as Qa,b as Za}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:b,CodeIncrementalUpdater:h,DEVTOOLS_DEP:P,Designer:R,EVENT_MODIFIERS:y,Editor:D,Engine:M,EventBinder:L,GET_TOKENS_LINK:N,HOT_KEYS_DEP:H,Icon:K,Item:k,KEYBOARD_EVENT_LIST:B,MAX_TOKENS:x,MOBILE_SIZE:w,MOUSE_EVENT_LIST:F,NAME_REGEX:G,NPM_REGISTRY_URL:v,OpenApi:W,PAD_SIZE:Y,Panel:J,REPORT_API:U,RegionType:C,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:$,STATE_KEY:q,SetterView:Q,SetterWrapper:Z,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:ia,Tabs:na,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:Sa,Viewer:ga,Viewport:pa,WidgetGroup:Oa,WidgetWrapper:ua,alert:ma,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:ba,createSlotsPicker:ha,defaultSetter:Pa,depsManager:Ra,engineKey:ya,expressionValidate:Da,getClassProperties:Ma,loading:La,message:Na,normalizedStyle:Ha,notify:Ka,proxyContext:ka,readJsonFile:Ba,regions:xa,setterManager:wa,setters:Fa,upgradeVersion:Ga,useEngine:va,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class ns{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ua),as),Ja),o={Vue:d,__VTJ_PRO__:s};for(const[_,p]of Object.entries(o))window[_]=p;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return g(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ca(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if(Xa(o),i.length){const e=yield za(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return $a(this.config,a)}}function os(){return Za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function _s(t,a="",s="warning"){Qa({title:a,message:t,type:s})}function ls(t,a){return qa.alert(t,a)}export{ns as E,ls as a,os as l,_s as n};