@vtj/pro 0.8.13 → 0.8.15

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
- import{useRoute as f}from"./vue-router-D533GGmG.js";import{a as w}from"./element-plus-DdvN1jqD.js";import{V as h,a as y,L as V,o as g,B as v,c as x,d as b,r as P,j as u,b as j,M as k}from"./index-u2Z41t50.js";import{V as B}from"./vue-CjubWy22.js";import{d as E,r as O,bO as _,f as $,c as C,o as F}from"./@vue-pheekl12.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";import"./monaco-editor-B9w0R7jm.js";import"./mockjs-c-NHcvHM.js";class I{urls=[];library="";constructor(t){const o={...x,...b,...P};window.Vue=B,window.__VTJ_PRO__=o,window.VtjIcons=h,window.ElementPlus=w;const{urls:e,library:n}=t;this.urls=e,this.library=n}async load(){const t=this.urls.filter(e=>y(e)),o=this.urls.filter(e=>V(e));if(g(t),o.length){const e=await v(o,this.library).catch(()=>null);if(e&&typeof e=="function")return e()}}}const J=E({__name:"index",async setup(s){let t,o;const e=f(),n=O(),l=new k,m=([t,o]=_(()=>l.getExtension().catch(()=>null)),t=await t,o(),t),d=m?([t,o]=_(()=>new I(m).load()),t=await t,o(),t):void 0;u.set("Switcher",{props:{onClick:r=>{const i=location.pathname;let p=i==="/@vtj/pro/"?"/":i;const a=r.currentFile;a&&a.type==="page"&&r.homepage!==a.id&&(p=`${p}#/page/${a.id}`),window.open(p,"VTJProject")}}}),u.set("Previewer",{props:{path:r=>`${location.pathname}#/preview/${r.id}`}});const c=new j({container:n,service:l,...d});return c.ready(()=>{c.openFile(e.query.id)}),$(()=>e.query.id,r=>{c.openFile(r)}),(r,i)=>(F(),C("div",{class:"designer",ref_key:"container",ref:n},null,512))}}),R=(s,t)=>{const o=s.__vccOpts||s;for(const[e,n]of t)o[e]=n;return o},Z=R(J,[["__scopeId","data-v-b233af06"]]);export{Z as default};
1
+ import{useRoute as f}from"./vue-router-D533GGmG.js";import{a as w}from"./element-plus-DdvN1jqD.js";import{V as h,a as y,L as V,o as g,B as v,c as x,d as b,r as P,j as u,b as j,M as k}from"./index-CXK5FLiX.js";import{V as B}from"./vue-CjubWy22.js";import{d as E,r as O,bO as _,f as $,c as C,o as F}from"./@vue-pheekl12.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";import"./monaco-editor-B9w0R7jm.js";import"./mockjs-c-NHcvHM.js";class I{urls=[];library="";constructor(t){const o={...x,...b,...P};window.Vue=B,window.__VTJ_PRO__=o,window.VtjIcons=h,window.ElementPlus=w;const{urls:e,library:n}=t;this.urls=e,this.library=n}async load(){const t=this.urls.filter(e=>y(e)),o=this.urls.filter(e=>V(e));if(g(t),o.length){const e=await v(o,this.library).catch(()=>null);if(e&&typeof e=="function")return e()}}}const J=E({__name:"index",async setup(s){let t,o;const e=f(),n=O(),l=new k,m=([t,o]=_(()=>l.getExtension().catch(()=>null)),t=await t,o(),t),d=m?([t,o]=_(()=>new I(m).load()),t=await t,o(),t):void 0;u.set("Switcher",{props:{onClick:r=>{const i=location.pathname;let p=i==="/@vtj/pro/"?"/":i;const a=r.currentFile;a&&a.type==="page"&&r.homepage!==a.id&&(p=`${p}#/page/${a.id}`),window.open(p,"VTJProject")}}}),u.set("Previewer",{props:{path:r=>`${location.pathname}#/preview/${r.id}`}});const c=new j({container:n,service:l,...d});return c.ready(()=>{c.openFile(e.query.id)}),$(()=>e.query.id,r=>{c.openFile(r)}),(r,i)=>(F(),C("div",{class:"designer",ref_key:"container",ref:n},null,512))}}),R=(s,t)=>{const o=s.__vccOpts||s;for(const[e,n]of t)o[e]=n;return o},Z=R(J,[["__scopeId","data-v-b233af06"]]);export{Z as default};
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./index-2yt5OXCA.js","./vue-router-D533GGmG.js","./@vue-pheekl12.js","./element-plus-DdvN1jqD.js","./lodash-es-D0J8aJCM.js","./@vueuse-4_NYtZCP.js","./@element-plus-D6n2RTX_.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CYeB_Mhp.js","./element-plus-Dj7XYlV7.css","./index-u2Z41t50.js","./monaco-editor-B9w0R7jm.js","./monaco-editor-BgBQhOSF.css","./vue-CjubWy22.js","./mockjs-c-NHcvHM.js","./index-UUuuteXI.css","./index-D9EpXQVL.css","./preview-BvdnFCJ9.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{d as f,S as n,u as p,ai as d,o as a,U as c,aF as _,_ as h,at as y}from"./@vue-pheekl12.js";import{z as v,E as g}from"./element-plus-DdvN1jqD.js";import{_ as m}from"./monaco-editor-B9w0R7jm.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-D533GGmG.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-2yt5OXCA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-BvdnFCJ9.js"),__vite__mapDeps([22,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
1
+ const __vite__fileDeps=["./index-DNjX_f_B.js","./vue-router-D533GGmG.js","./@vue-pheekl12.js","./element-plus-DdvN1jqD.js","./lodash-es-D0J8aJCM.js","./@vueuse-4_NYtZCP.js","./@element-plus-D6n2RTX_.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CYeB_Mhp.js","./element-plus-Dj7XYlV7.css","./index-CXK5FLiX.js","./monaco-editor-B9w0R7jm.js","./monaco-editor-BgBQhOSF.css","./vue-CjubWy22.js","./mockjs-c-NHcvHM.js","./index-UUuuteXI.css","./index-D9EpXQVL.css","./preview-BMaVaTG5.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{d as f,S as n,u as p,ai as d,o as a,U as c,aF as _,_ as h,at as y}from"./@vue-pheekl12.js";import{z as v,E as g}from"./element-plus-DdvN1jqD.js";import{_ as m}from"./monaco-editor-B9w0R7jm.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-D533GGmG.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-DNjX_f_B.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-BMaVaTG5.js"),__vite__mapDeps([22,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
@@ -0,0 +1,2 @@
1
+ const __vite__fileDeps=["./vue-CjubWy22.js","./@vue-pheekl12.js","./vue-router-D533GGmG.js","./element-plus-DdvN1jqD.js","./lodash-es-D0J8aJCM.js","./@vueuse-4_NYtZCP.js","./@element-plus-D6n2RTX_.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CYeB_Mhp.js","./element-plus-Dj7XYlV7.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{_ as o}from"./monaco-editor-B9w0R7jm.js";import{useRoute as a}from"./vue-router-D533GGmG.js";import"./element-plus-DdvN1jqD.js";import{x as s,w as _,M as u}from"./index-CXK5FLiX.js";import{d as c,r as d,S as l,W as v,X as f,o as R,i as E}from"./@vue-pheekl12.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";import"./vue-CjubWy22.js";import"./mockjs-c-NHcvHM.js";const W=c({__name:"preview",setup(V){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-CjubWy22.js").then(e=>e.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-D533GGmG.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-DdvN1jqD.js").then(e=>e.a),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),p=a(),t=d(),n=E();return i(async()=>{n?.appContext.app.use(r),t.value=await r.getRenderComponent(p.params.id.toString())}),(e,C)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{W 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-BMx81ANN.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-Xqh8QSAB.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/@vue-pheekl12.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-D0J8aJCM.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-4_NYtZCP.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.13",
5
+ "version": "0.8.15",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/local": "~0.8.13",
9
- "@vtj/designer": "~0.8.13",
10
- "@vtj/materials": "~0.8.13",
11
- "@vtj/renderer": "~0.8.13",
12
- "@vtj/core": "~0.8.13"
8
+ "@vtj/core": "~0.8.15",
9
+ "@vtj/local": "~0.8.15",
10
+ "@vtj/designer": "~0.8.15",
11
+ "@vtj/materials": "~0.8.15",
12
+ "@vtj/renderer": "~0.8.15"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
16
  "vue-router": "~4.3.0",
17
- "@vtj/icons": "~0.8.13",
18
- "@vtj/charts": "~0.8.13",
17
+ "@vtj/charts": "~0.8.15",
19
18
  "@vtj/cli": "~0.8.4",
20
- "@vtj/ui": "~0.8.13",
21
- "@vtj/utils": "~0.8.13"
19
+ "@vtj/icons": "~0.8.15",
20
+ "@vtj/ui": "~0.8.15",
21
+ "@vtj/utils": "~0.8.15"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
@@ -1,2 +0,0 @@
1
- const __vite__fileDeps=["./vue-CjubWy22.js","./@vue-pheekl12.js","./vue-router-D533GGmG.js","./element-plus-DdvN1jqD.js","./lodash-es-D0J8aJCM.js","./@vueuse-4_NYtZCP.js","./@element-plus-D6n2RTX_.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CYeB_Mhp.js","./element-plus-Dj7XYlV7.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{_ as o}from"./monaco-editor-B9w0R7jm.js";import{useRoute as a}from"./vue-router-D533GGmG.js";import"./element-plus-DdvN1jqD.js";import{x as s,_,M as u}from"./index-u2Z41t50.js";import{d as c,r as d,S as l,W as v,X as f,o as R,i as E}from"./@vue-pheekl12.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";import"./vue-CjubWy22.js";import"./mockjs-c-NHcvHM.js";const W=c({__name:"preview",setup(V){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-CjubWy22.js").then(e=>e.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-D533GGmG.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-DdvN1jqD.js").then(e=>e.a),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),p=a(),t=d(),n=E();return i(async()=>{n?.appContext.app.use(r),t.value=await r.getRenderComponent(p.params.id.toString())}),(e,C)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{W as default};