@vtj/pro 0.8.9 → 0.8.10

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.
@@ -0,0 +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,$,M as j}from"./index-BTmaTkWx.js";import{V as k}from"./vue-CjubWy22.js";import{d as E,r as B,bO as _,f as O,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-C8KYOXSh.js";import"./mockjs-c-NHcvHM.js";class I{urls=[];library="";constructor(t){const o={...x,...b,...P};window.Vue=k,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=B(),l=new j,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 $({container:n,service:l,...d});return c.ready(()=>{c.openFile(e.query.id)}),O(()=>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
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-C8KYOXSh.js";import{useRoute as a}from"./vue-router-D533GGmG.js";import"./element-plus-DdvN1jqD.js";import{x as s,_,M as u}from"./index-TXS29-Ip.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};
2
+ import{_ as o}from"./monaco-editor-C8KYOXSh.js";import{useRoute as a}from"./vue-router-D533GGmG.js";import"./element-plus-DdvN1jqD.js";import{x as s,_,M as u}from"./index-BTmaTkWx.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-DBWV64ks.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-0CxTi-rJ.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.9",
5
+ "version": "0.8.10",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/core": "~0.8.9",
9
- "@vtj/designer": "~0.8.9",
10
- "@vtj/local": "~0.8.9",
11
- "@vtj/renderer": "~0.8.9",
12
- "@vtj/materials": "~0.8.9"
8
+ "@vtj/core": "~0.8.10",
9
+ "@vtj/designer": "~0.8.10",
10
+ "@vtj/local": "~0.8.10",
11
+ "@vtj/materials": "~0.8.10",
12
+ "@vtj/renderer": "~0.8.10"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
16
  "vue-router": "~4.3.0",
17
- "@vtj/icons": "~0.8.9",
17
+ "@vtj/icons": "~0.8.10",
18
+ "@vtj/charts": "~0.8.10",
19
+ "@vtj/ui": "~0.8.10",
18
20
  "@vtj/cli": "~0.8.3",
19
- "@vtj/charts": "~0.8.9",
20
- "@vtj/ui": "~0.8.9",
21
- "@vtj/utils": "~0.8.9"
21
+ "@vtj/utils": "~0.8.10"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
@@ -1,2 +0,0 @@
1
- const __vite__fileDeps=["./monaco-editor-C8KYOXSh.js","./monaco-editor-BgBQhOSF.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{_ as i,e as h}from"./monaco-editor-C8KYOXSh.js";import{d as y,r as f,j as g,n as v,I as E,f as V,o as w,c as T,O as k,aa as D,a5 as P,P as b}from"./@vue-pheekl12.js";const A=y({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(d,{expose:u,emit:m}){const t=d;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,async getWorker(o,r){let n;return r==="json"&&(n=await i(()=>import("./monaco-editor-C8KYOXSh.js").then(a=>a.j),__vite__mapDeps([0,1]),import.meta.url)),["css","scss","less"].includes(r)&&(n=await i(()=>import("./monaco-editor-C8KYOXSh.js").then(a=>a.c),__vite__mapDeps([0,1]),import.meta.url)),["html","handlebars","razor","vue"].includes(r)&&(n=await i(()=>import("./monaco-editor-C8KYOXSh.js").then(a=>a.h),__vite__mapDeps([0,1]),import.meta.url)),["typescript","javascript"].includes(r)&&(n=await i(()=>import("./monaco-editor-C8KYOXSh.js").then(a=>a.t),__vite__mapDeps([0,1]),import.meta.url)),n=n||await i(()=>import("./monaco-editor-C8KYOXSh.js").then(a=>a.a),__vite__mapDeps([0,1]),import.meta.url),new n.default}};const l=m,s=f();let e=null;const p=async()=>{e&&(await e.getAction("editor.action.formatDocument")?.run(),e.setValue(e.getValue()))},c=async()=>{await p();const o=e?.getValue();l("update:modelValue",o),l("blur",o)},_=()=>{e=h.create(s.value,{value:t.modelValue,language:t.lang,readOnly:t.readonly,theme:t.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:t.minimap},...t.options}),e.onDidChangeModelContent(o=>{l("change",e?.getValue(),o)}),e.onDidBlurEditorText(c)};return g(()=>{v(_)}),E(()=>{e&&e.dispose()}),V(()=>t.modelValue,o=>{e&&e.setValue(o)}),u({getEditor:()=>e}),(o,r)=>(w(),T("div",{class:k(["v-code-editor",{"is-border":t.border}]),ref_key:"container",ref:s,onKeyup:r[0]||(r[0]=D(P(()=>{},["stop"]),["enter"])),style:b({height:t.height})},null,38))}});export{A as default};
@@ -1 +0,0 @@
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-TXS29-Ip.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-C8KYOXSh.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};