@vtj/pro 0.8.18 → 0.8.19

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-Js95K7pU.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-DCuShPgb.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-Js95K7pU.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-DCuShPgb.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-Chc-Pc_0.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-BWBhbwQ-.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.18",
5
+ "version": "0.8.19",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/core": "~0.8.18",
9
- "@vtj/designer": "~0.8.18",
10
- "@vtj/materials": "~0.8.18",
11
- "@vtj/local": "~0.8.18",
12
- "@vtj/renderer": "~0.8.18"
8
+ "@vtj/designer": "~0.8.19",
9
+ "@vtj/local": "~0.8.19",
10
+ "@vtj/core": "~0.8.19",
11
+ "@vtj/renderer": "~0.8.19",
12
+ "@vtj/materials": "~0.8.19"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
16
  "vue-router": "~4.3.0",
17
- "@vtj/charts": "~0.8.18",
18
- "@vtj/cli": "~0.8.5",
19
- "@vtj/icons": "~0.8.18",
20
- "@vtj/ui": "~0.8.18",
21
- "@vtj/utils": "~0.8.18"
17
+ "@vtj/charts": "~0.8.19",
18
+ "@vtj/cli": "~0.8.6",
19
+ "@vtj/icons": "~0.8.19",
20
+ "@vtj/utils": "~0.8.19",
21
+ "@vtj/ui": "~0.8.19"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
@@ -1 +0,0 @@
1
- @charset "UTF-8";.ck-powered-by{opacity:0!important;display:none!important}.v-plugin-ckeditor .ck-editor__top{display:none}.v-plugin-ckeditor.is-editable .ck-editor__top{display:block}.v-plugin-ckeditor.is-no-border .ck-content{border:none!important}.v-plugin-ckeditor p,.v-plugin-ckeditor ul,.v-plugin-ckeditor ol,.v-plugin-ckeditor blockquote,.v-plugin-ckeditor pre{font-size:1em;line-height:1.6em;padding-top:.2em;margin-bottom:.8em}.v-plugin-ckeditor h1{font-size:2.36em;line-height:1.33em;padding-top:1em;margin-bottom:1.67em}.v-plugin-ckeditor h1+dl{margin-top:1em}@media only screen and (max-width: 640px){.v-plugin-ckeditor h1{font-size:1.9em}}.v-plugin-ckeditor dd{margin-bottom:1em}.v-plugin-ckeditor h1:first-of-type{width:100%;padding-top:.5em;margin-bottom:1.17em}.v-plugin-ckeditor h1:first-of-type+h2{padding-top:0}.v-plugin-ckeditor h2{font-size:1.68em;line-height:1.68em;padding-top:.8em;margin-bottom:.4em;padding-bottom:.2em;border-bottom:1px solid #e9e9e9;font-weight:400}@media only screen and (max-width: 640px){.v-plugin-ckeditor h2{font-size:1.5em}}.v-plugin-ckeditor h2:first-of-type{clear:both}.v-plugin-ckeditor h3{font-size:1.36em;line-height:1.5em;padding-top:.8em;margin-bottom:.2em;font-weight:400}.v-plugin-ckeditor h4{font-size:1.2em;line-height:1.4em;margin-bottom:.2em;padding-top:.8em;font-weight:400}.v-plugin-ckeditor h5{font-size:1em;line-height:1.6em;padding-top:.2em;margin-bottom:.8em;font-weight:400}.v-plugin-ckeditor .info-box>h2,.v-plugin-ckeditor .info-box>h3,.v-plugin-ckeditor .info-box>h4{padding-top:0}.v-plugin-ckeditor strong,.v-plugin-ckeditor b{font-weight:600}.v-plugin-ckeditor i,.v-plugin-ckeditor em{font-style:italic}.v-plugin-ckeditor pre{overflow:hidden}.v-plugin-ckeditor code{font-family:Monaco,Menlo,Consolas,Roboto Mono,Courier New,Ubuntu Mono,monospace;font-size:.866666em;padding:1.333em}.v-plugin-ckeditor :not(pre)>code:not(.highlight){background:#cacdcf4d;padding:.1em .25em;border-radius:3px}.v-plugin-ckeditor :not(pre)>code:not(.highlight):after{letter-spacing:-1em;content:" "}.v-plugin-ckeditor :not(pre)>code:not(.highlight):before{letter-spacing:-1em;content:" "}.v-plugin-ckeditor a code:not(.highlight){color:#1b3af2}.v-plugin-ckeditor .highlight{background:#2b2c26;color:#f8f8f2}.v-plugin-ckeditor .highlight a{color:#fff}.v-plugin-ckeditor .highlight code{background:none;padding:0;font-size:1em}.v-plugin-ckeditor blockquote{border-left:5px solid #ccc;padding-left:10px;padding-top:0;font-style:italic}.v-plugin-ckeditor kbd{display:inline-block;background:#f5f5f5;border:solid 1px #b5c6d2;border-bottom-color:#97afbf;box-shadow:inset 0 -1px #97afbf;font-family:Monaco,Menlo,Consolas,Roboto Mono,Courier New,Ubuntu Mono,monospace;font-size:.8em;padding:.25em .5em;line-height:1em;vertical-align:middle;border-radius:3px}@media only screen and (max-width: 640px){.v-plugin-ckeditor ul,.v-plugin-ckeditor ol{margin-left:1.333em}}.v-plugin-ckeditor ul ul,.v-plugin-ckeditor ul ol,.v-plugin-ckeditor ol ul,.v-plugin-ckeditor ol ol{padding-top:0;margin-bottom:0}.v-plugin-ckeditor ul ul:last-of-type,.v-plugin-ckeditor ul ol:last-of-type,.v-plugin-ckeditor ol ul:last-of-type,.v-plugin-ckeditor ol ol:last-of-type{margin-bottom:.3333333333em}.v-plugin-ckeditor ul li:last-of-type,.v-plugin-ckeditor ol li:last-of-type{margin-bottom:0}.v-plugin-ckeditor p img{display:block;margin:1.5em auto;box-sizing:content-box}.v-plugin-ckeditor iframe:not(.cke_wysiwyg_frame){display:block;margin:1.5em auto}.v-plugin-ckeditor ol{list-style-type:decimal}.v-plugin-ckeditor table{margin:1.5em 0;width:100%}.v-plugin-ckeditor table code{word-break:break-word;white-space:normal}.v-plugin-ckeditor td,.v-plugin-ckeditor th{border:1px solid #e9e9e9;padding:6px 12px}.v-plugin-ckeditor th{font-weight:700}.v-plugin-ckeditor abbr{position:relative;cursor:default;text-decoration:none;border-bottom:1px dotted #000}.v-plugin-ckeditor abbr:before{content:attr(title);display:none;position:absolute;bottom:calc(-100% - 15px);left:50%;transform:translate(-50%);padding:3px 5px;font-size:.9em;font-weight:700;border-radius:3px;color:#fff;background:#000;white-space:nowrap}.v-plugin-ckeditor abbr:after{content:"";display:none;position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-style:solid;border-width:0 5px 5px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #000 rgba(0,0,0,0)}.v-plugin-ckeditor abbr:hover:before,.v-plugin-ckeditor abbr:hover:after{display:block}.v-plugin-ckeditor [dir=rtl] ul,.v-plugin-ckeditor [dir=rtl] ol{margin-left:0;margin-right:2.666em}@media only screen and (max-width: 640px){.v-plugin-ckeditor [dir=rtl] ul,.v-plugin-ckeditor [dir=rtl] ol{margin-right:1.333em}}
@@ -1,33 +0,0 @@
1
- {
2
- "name": "VPluginCkeditor",
3
- "label": "富文本编辑器",
4
- "props": [
5
- {
6
- "name": "modelValue",
7
- "setters": "StringSetter"
8
- },
9
- {
10
- "name": "disabled",
11
- "setters": "BooleanSetter"
12
- },
13
- {
14
- "name": "editable",
15
- "setters": "BooleanSetter",
16
- "defaultValue": true
17
- },
18
- {
19
- "name": "border",
20
- "title": "显示边框, 当 editable=false 时有效",
21
- "setters": "BooleanSetter",
22
- "defaultValue": true
23
- },
24
- {
25
- "name": "uploader",
26
- "title": "文件上传函数 (file: File) => Promise<string | UploaderResponse | null>",
27
- "setters": "FunctionSetter"
28
- }
29
- ],
30
- "events": ["update:modelValue", "change","blur","focus","readys"],
31
- "slots": [],
32
- "snippet": {}
33
- }