@vtj/pro 0.8.21 → 0.8.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var f=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,p=(r,t)=>{for(var e in t||(t={}))v.call(t,e)&&f(r,e,t[e]);if(h)for(var e of h(t))x.call(t,e)&&f(r,e,t[e]);return r};var _=(r,t,e)=>(f(r,typeof t!="symbol"?t+"":t,e),e);var w=(r,t,e)=>new Promise((o,a)=>{var i=s=>{try{c(e.next(s))}catch(n){a(n)}},l=s=>{try{c(e.throw(s))}catch(n){a(n)}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,l);c((e=e.apply(r,t)).next())});import{useRoute as b}from"./vue-router-C0aQ2sXg.js";import{a as j}from"./element-plus-ByDLuWeo.js";import{V as P,a as k,b as B,L as E,o as O,B as $,c as C,d as F,r as I,j as y,e as J,M as R}from"./index-DCEIOhBN.js";import{V as T}from"./vue-CcxMod4L.js";import{d as q,r as M,bO as V,f as U,c as A,o as L}from"./@vue-BqUEC4nt.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";import"./monaco-editor-DwlLClUG.js";import"./mockjs-IStUBvTQ.js";class S{constructor(t){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);const e=p(p(p({},C),F),I);window.Vue=T,window.__VTJ_PRO__=e,window.VtjUtils=P,window.VtjIcons=k,window.ElementPlus=j;const{urls:o,library:a,params:i=[]}=t;this.urls=o,this.library=a,this.params=i}load(){return w(this,null,function*(){const t=this.urls.filter(o=>B(o)),e=this.urls.filter(o=>E(o));if(O(t),e.length){const o=yield $(e,this.library).catch(()=>null);if(o&&typeof o=="function")return o.apply(o,this.params)}})}}const z=q({__name:"index",setup(r){return w(this,null,function*(){let t,e;const o=b(),a=M(),i=new R,l=([t,e]=V(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),c=l?([t,e]=V(()=>new S(l).load()),t=yield t,e(),t):void 0;y.set("Switcher",{props:{onClick:n=>{const m=location.pathname;let d=m==="/@vtj/pro/"?"/":m;const u=n.currentFile;u&&u.type==="page"&&n.homepage!==u.id&&(d=`${d}#/page/${u.id}`),window.open(d,"VTJProject")}}}),y.set("Previewer",{props:{path:n=>`${location.pathname}#/preview/${n.id}`}});const s=new J(p({container:a,service:i},c));return s.ready(()=>{s.openFile(o.query.id)}),U(()=>o.query.id,n=>{s.openFile(n)}),(n,m)=>(L(),A("div",{class:"designer",ref_key:"container",ref:a},null,512))})}}),D=(r,t)=>{const e=r.__vccOpts||r;for(const[o,a]of t)e[o]=a;return e},pt=D(z,[["__scopeId","data-v-b233af06"]]);export{pt as default};
1
+ var g=Object.defineProperty;var h=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var f=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,p=(r,t)=>{for(var e in t||(t={}))v.call(t,e)&&f(r,e,t[e]);if(h)for(var e of h(t))x.call(t,e)&&f(r,e,t[e]);return r};var _=(r,t,e)=>(f(r,typeof t!="symbol"?t+"":t,e),e);var w=(r,t,e)=>new Promise((o,a)=>{var i=s=>{try{c(e.next(s))}catch(n){a(n)}},l=s=>{try{c(e.throw(s))}catch(n){a(n)}},c=s=>s.done?o(s.value):Promise.resolve(s.value).then(i,l);c((e=e.apply(r,t)).next())});import{useRoute as b}from"./vue-router-C0aQ2sXg.js";import{a as j}from"./element-plus-ByDLuWeo.js";import{V as P,a as k,b as B,L as E,o as O,B as $,c as C,d as F,r as I,j as y,e as J,M as R}from"./index-DiaHxkWi.js";import{V as T}from"./vue-CcxMod4L.js";import{d as q,r as M,bO as V,f as U,c as A,o as L}from"./@vue-BqUEC4nt.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";import"./monaco-editor-DwlLClUG.js";import"./mockjs-IStUBvTQ.js";class S{constructor(t){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);const e=p(p(p({},C),F),I);window.Vue=T,window.__VTJ_PRO__=e,window.VtjUtils=P,window.VtjIcons=k,window.ElementPlus=j;const{urls:o,library:a,params:i=[]}=t;this.urls=o,this.library=a,this.params=i}load(){return w(this,null,function*(){const t=this.urls.filter(o=>B(o)),e=this.urls.filter(o=>E(o));if(O(t),e.length){const o=yield $(e,this.library).catch(()=>null);if(o&&typeof o=="function")return o.apply(o,this.params)}})}}const z=q({__name:"index",setup(r){return w(this,null,function*(){let t,e;const o=b(),a=M(),i=new R,l=([t,e]=V(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),c=l?([t,e]=V(()=>new S(l).load()),t=yield t,e(),t):void 0;y.set("Switcher",{props:{onClick:n=>{const m=location.pathname;let d=m==="/@vtj/pro/"?"/":m;const u=n.currentFile;u&&u.type==="page"&&n.homepage!==u.id&&(d=`${d}#/page/${u.id}`),window.open(d,"VTJProject")}}}),y.set("Previewer",{props:{path:n=>`${location.pathname}#/preview/${n.id}`}});const s=new J(p({container:a,service:i},c));return s.ready(()=>{s.openFile(o.query.id)}),U(()=>o.query.id,n=>{s.openFile(n)}),(n,m)=>(L(),A("div",{class:"designer",ref_key:"container",ref:a},null,512))})}}),D=(r,t)=>{const e=r.__vccOpts||r;for(const[o,a]of t)e[o]=a;return e},pt=D(z,[["__scopeId","data-v-b233af06"]]);export{pt as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__fileDeps=["./vue-CcxMod4L.js","./@vue-BqUEC4nt.js","./vue-router-C0aQ2sXg.js","./element-plus-ByDLuWeo.js","./lodash-es-iLqVnzBD.js","./@vueuse-_ZvYO2pC.js","./@element-plus-BsPJl5CN.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-DfU76eP9.js","./element-plus-Dj7XYlV7.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var u=(_,i,o)=>new Promise((a,p)=>{var r=t=>{try{e(o.next(t))}catch(n){p(n)}},m=t=>{try{e(o.throw(t))}catch(n){p(n)}},e=t=>t.done?a(t.value):Promise.resolve(t.value).then(r,m);e((o=o.apply(_,i)).next())});import{_ as s}from"./monaco-editor-DwlLClUG.js";import{useRoute as c}from"./vue-router-C0aQ2sXg.js";import"./element-plus-ByDLuWeo.js";import{x as d,w as l,M as v}from"./index-DCEIOhBN.js";import{d as f,r as R,S as E,W as V,X as C,o as x,i as P}from"./@vue-BqUEC4nt.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";import"./vue-CcxMod4L.js";import"./mockjs-IStUBvTQ.js";const j=f({__name:"preview",setup(_){const i=new v,{provider:o,onReady:a}=d({mode:l.Runtime,service:i,dependencies:{Vue:()=>s(()=>import("./vue-CcxMod4L.js").then(e=>e.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>s(()=>import("./vue-router-C0aQ2sXg.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>s(()=>import("./element-plus-ByDLuWeo.js").then(e=>e.a),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),p=c(),r=R(),m=P();return a(()=>u(this,null,function*(){m==null||m.appContext.app.use(o),r.value=yield o.getRenderComponent(p.params.id.toString())})),(e,t)=>r.value?(x(),E(V(r.value),{key:0})):C("",!0)}});export{j as default};
2
+ var u=(_,i,o)=>new Promise((a,p)=>{var r=t=>{try{e(o.next(t))}catch(n){p(n)}},m=t=>{try{e(o.throw(t))}catch(n){p(n)}},e=t=>t.done?a(t.value):Promise.resolve(t.value).then(r,m);e((o=o.apply(_,i)).next())});import{_ as s}from"./monaco-editor-DwlLClUG.js";import{useRoute as c}from"./vue-router-C0aQ2sXg.js";import"./element-plus-ByDLuWeo.js";import{x as d,w as l,M as v}from"./index-DiaHxkWi.js";import{d as f,r as R,S as E,W as V,X as C,o as x,i as P}from"./@vue-BqUEC4nt.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-_ZvYO2pC.js";import"./@element-plus-BsPJl5CN.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DfU76eP9.js";import"./vue-CcxMod4L.js";import"./mockjs-IStUBvTQ.js";const j=f({__name:"preview",setup(_){const i=new v,{provider:o,onReady:a}=d({mode:l.Runtime,service:i,dependencies:{Vue:()=>s(()=>import("./vue-CcxMod4L.js").then(e=>e.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>s(()=>import("./vue-router-C0aQ2sXg.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>s(()=>import("./element-plus-ByDLuWeo.js").then(e=>e.a),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),p=c(),r=R(),m=P();return a(()=>u(this,null,function*(){m==null||m.appContext.app.use(o),r.value=yield o.getRenderComponent(p.params.id.toString())})),(e,t)=>r.value?(x(),E(V(r.value),{key:0})):C("",!0)}});export{j as default};
package/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta http-equiv="Pragma" content="no-cache"/>
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
- <script type="module" crossorigin src="./assets/index-CsuPbysZ.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-Biprk4NN.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/@vue-BqUEC4nt.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-iLqVnzBD.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-_ZvYO2pC.js">
package/package.json CHANGED
@@ -2,23 +2,23 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.8.21",
5
+ "version": "0.8.23",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/core": "~0.8.21",
9
- "@vtj/designer": "~0.8.21",
10
- "@vtj/local": "~0.8.21",
11
- "@vtj/materials": "~0.8.21",
12
- "@vtj/renderer": "~0.8.21"
8
+ "@vtj/local": "~0.8.23",
9
+ "@vtj/core": "~0.8.23",
10
+ "@vtj/designer": "~0.8.23",
11
+ "@vtj/renderer": "~0.8.23",
12
+ "@vtj/materials": "~0.8.23"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
16
  "vue-router": "~4.3.0",
17
- "@vtj/charts": "~0.8.21",
18
- "@vtj/cli": "~0.8.8",
19
- "@vtj/icons": "~0.8.21",
20
- "@vtj/ui": "~0.8.21",
21
- "@vtj/utils": "~0.8.21"
17
+ "@vtj/cli": "~0.8.9",
18
+ "@vtj/icons": "~0.8.23",
19
+ "@vtj/charts": "~0.8.23",
20
+ "@vtj/ui": "~0.8.23",
21
+ "@vtj/utils": "~0.8.23"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {