@vtj/renderer 0.9.25 → 0.9.27
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.
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +660 -660
- package/package.json +5 -5
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { Base as Ie, BUILT_IN_COMPONENTS as Me, ProjectModel as O, HistoryModel as
|
2
|
-
import { isUrl as De, url as x, dedupArray as He, isString as j, isFunction as z, logger as P, storage as L, cookie as q, toArray as
|
1
|
+
import { Base as Ie, BUILT_IN_COMPONENTS as Me, ProjectModel as O, HistoryModel as pe } from "@vtj/core";
|
2
|
+
import { isUrl as De, url as x, dedupArray as He, isString as j, isFunction as z, logger as P, storage as L, cookie as q, toArray as oe, unRSA as ie, delay as de, createRequest as fe, jsonp as he, merge as Oe, pathToRegexp as Be, pathToRegexpMatch as Ne, formDataToJson as Ue, camelCase as $, upperFirst as Le, pick as qe, request as K, loadScript as ae, Storage as Je, mapToObject as X } from "@vtj/utils";
|
3
3
|
import * as N from "vue";
|
4
|
-
import { inject as me, toRef as Ve, readonly as ze,
|
4
|
+
import { inject as me, toRef as Ve, readonly as ze, ref as T, customRef as Ke, onBeforeUnmount as We, unref as Ge, getCurrentScope as Ye, onScopeDispose as Qe, getCurrentInstance as ge, watch as ve, computed as ye, onMounted as Xe, defineComponent as Z, h as W, createElementBlock as Ze, openBlock as et, createElementVNode as E, toDisplayString as J, defineAsyncComponent as ce, watchEffect as tt } from "vue";
|
5
5
|
import R from "mockjs";
|
6
6
|
import { useRoute as _e } from "vue-router";
|
7
7
|
/**!
|
8
8
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
9
9
|
* @name @vtj/renderer
|
10
10
|
* @author CHC chenhuachun1549@dingtalk.com
|
11
|
-
* @version 0.9.
|
11
|
+
* @version 0.9.27
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
13
13
|
*/
|
14
|
-
const C = "0.9.
|
15
|
-
var
|
14
|
+
const C = "0.9.27";
|
15
|
+
var y = /* @__PURE__ */ ((n) => (n.Runtime = "Runtime", n.Design = "Design", n.Raw = "Raw", n.VNode = "VNode", n))(y || {});
|
16
16
|
const le = [
|
17
17
|
"$el",
|
18
18
|
"$emit",
|
@@ -25,7 +25,7 @@ const le = [
|
|
25
25
|
"$props",
|
26
26
|
"$options",
|
27
27
|
"$forceUpdate"
|
28
|
-
],
|
28
|
+
], xs = [
|
29
29
|
"beforeCreate",
|
30
30
|
"created",
|
31
31
|
"beforeMount",
|
@@ -39,7 +39,7 @@ const le = [
|
|
39
39
|
"renderTriggered",
|
40
40
|
"activated",
|
41
41
|
"deactivated"
|
42
|
-
],
|
42
|
+
], st = [
|
43
43
|
"vIf",
|
44
44
|
"vShow",
|
45
45
|
"vModel",
|
@@ -54,148 +54,148 @@ const le = [
|
|
54
54
|
Object,
|
55
55
|
Function,
|
56
56
|
Date
|
57
|
-
},
|
57
|
+
}, F = "VtjPage", H = "VtjHomepage", rt = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(
|
58
58
|
","
|
59
|
-
),
|
60
|
-
function M(
|
61
|
-
return
|
59
|
+
), ot = "component,slot".split(",");
|
60
|
+
function M(n, e) {
|
61
|
+
return n.map((t) => De(t) || t.startsWith("/") ? t : `${e}${t}`);
|
62
62
|
}
|
63
|
-
function
|
64
|
-
return /\.css$/.test(
|
63
|
+
function ee(n) {
|
64
|
+
return /\.css$/.test(n);
|
65
65
|
}
|
66
|
-
function
|
67
|
-
return /\.js$/.test(
|
66
|
+
function te(n) {
|
67
|
+
return /\.js$/.test(n);
|
68
68
|
}
|
69
|
-
function it(
|
70
|
-
return /\.json$/.test(
|
69
|
+
function it(n) {
|
70
|
+
return /\.json$/.test(n);
|
71
71
|
}
|
72
|
-
function
|
73
|
-
return
|
72
|
+
function Ps(n) {
|
73
|
+
return n.map(
|
74
74
|
(e) => `<script src="${x.append(e, { v: C })}"><\/script>`
|
75
75
|
).join("");
|
76
76
|
}
|
77
|
-
function
|
78
|
-
return
|
77
|
+
function Cs(n = []) {
|
78
|
+
return n.map(
|
79
79
|
(e) => `<link rel="stylesheet" href="${x.append(e, { v: C })}" />`
|
80
80
|
).join("");
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return e &&
|
82
|
+
function at(n, e = !1) {
|
83
|
+
return e && n.endsWith(".prod.js") ? n.replace(".prod.js", ".js") : n;
|
84
84
|
}
|
85
|
-
function
|
86
|
-
const
|
87
|
-
return
|
88
|
-
({ urls:
|
89
|
-
|
90
|
-
|
91
|
-
}), m && (
|
85
|
+
function ct(n, e, t = !1) {
|
86
|
+
const s = n.filter((p) => !!p.enabled), r = [], o = [], a = [], i = [], c = {}, l = {}, f = [], u = {};
|
87
|
+
return s.forEach(
|
88
|
+
({ urls: p, assetsUrl: h, library: m, assetsLibrary: d, localeLibrary: w }) => {
|
89
|
+
p?.forEach((g) => {
|
90
|
+
te(g) && r.push(at(g, t)), ee(g) && o.push(g);
|
91
|
+
}), m && (i.push(m), c[m] = M(p || [], e), w && (l[m] = w)), h && a.push(h), d && f.push(d), m && d && (u[d] = m);
|
92
92
|
}
|
93
93
|
), {
|
94
94
|
scripts: M(r, e),
|
95
|
-
css: M(
|
95
|
+
css: M(o, e),
|
96
96
|
materials: M(a, e),
|
97
|
-
libraryExports:
|
97
|
+
libraryExports: i,
|
98
98
|
materialExports: He(f),
|
99
99
|
materialMapLibrary: u,
|
100
100
|
libraryMap: c,
|
101
101
|
libraryLocaleMap: l
|
102
102
|
};
|
103
103
|
}
|
104
|
-
function
|
105
|
-
const { name: t, parent:
|
106
|
-
return
|
104
|
+
function lt(n, e) {
|
105
|
+
const { name: t, parent: s, alias: r } = n;
|
106
|
+
return s ? e[s]?.[r || t] : e[r || t];
|
107
107
|
}
|
108
|
-
function we(
|
109
|
-
return j(
|
108
|
+
function we(n) {
|
109
|
+
return j(n) ? n : JSON.stringify(n);
|
110
110
|
}
|
111
|
-
function Se(
|
112
|
-
const
|
113
|
-
if (
|
114
|
-
const r = new
|
111
|
+
function Se(n, e, t) {
|
112
|
+
const s = n.CSSStyleSheet;
|
113
|
+
if (s.prototype.replaceSync) {
|
114
|
+
const r = new s();
|
115
115
|
r.id = e, r.replaceSync(t);
|
116
|
-
const
|
116
|
+
const o = n.document, a = o.adoptedStyleSheets, i = Array.from(a).filter(
|
117
117
|
(c) => c.id !== e
|
118
118
|
);
|
119
|
-
|
119
|
+
o.adoptedStyleSheets = [...i, r];
|
120
120
|
} else {
|
121
|
-
const r =
|
122
|
-
let
|
123
|
-
|
121
|
+
const r = n.document;
|
122
|
+
let o = r.getElementById(e);
|
123
|
+
o ? o.innerHTML = t : (o = r.createElement("style"), o.id = e, o.innerHTML = t, r.head.appendChild(o));
|
124
124
|
}
|
125
125
|
}
|
126
|
-
async function
|
127
|
-
const t = await window.fetch(e).then((
|
128
|
-
t && Se(window,
|
126
|
+
async function ut(n, e) {
|
127
|
+
const t = await window.fetch(e).then((s) => s.text()).catch(() => "");
|
128
|
+
t && Se(window, n, t);
|
129
129
|
}
|
130
|
-
function
|
131
|
-
const t = e.document,
|
132
|
-
for (const r of
|
130
|
+
function pt(n, e = window) {
|
131
|
+
const t = e.document, s = e.document.head;
|
132
|
+
for (const r of n)
|
133
133
|
if (!t.getElementById(r)) {
|
134
134
|
const a = t.createElement("link");
|
135
|
-
a.rel = "stylesheet", a.id = r, a.href = r,
|
135
|
+
a.rel = "stylesheet", a.id = r, a.href = r, s.appendChild(a);
|
136
136
|
}
|
137
137
|
}
|
138
|
-
async function dt(
|
139
|
-
const
|
140
|
-
let
|
141
|
-
return
|
142
|
-
for (const c of
|
143
|
-
const l =
|
138
|
+
async function dt(n, e, t = window) {
|
139
|
+
const s = t.document, r = t.document.head;
|
140
|
+
let o = t[e];
|
141
|
+
return o ? o.default || o : new Promise((a, i) => {
|
142
|
+
for (const c of n) {
|
143
|
+
const l = s.createElement("script");
|
144
144
|
l.src = c, l.onload = () => {
|
145
|
-
|
145
|
+
o = t[e], o ? a(o.default || o) : i(null);
|
146
146
|
}, l.onerror = (f) => {
|
147
|
-
|
147
|
+
i(f);
|
148
148
|
}, r.appendChild(l);
|
149
149
|
}
|
150
150
|
});
|
151
151
|
}
|
152
|
-
function
|
153
|
-
return z(
|
152
|
+
function ft(n) {
|
153
|
+
return z(n) || z(n?.install);
|
154
154
|
}
|
155
|
-
function
|
156
|
-
return
|
155
|
+
function ht(n) {
|
156
|
+
return ot.includes(n);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
return
|
158
|
+
function mt(n) {
|
159
|
+
return rt.includes(n);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function A(n, e, t = !1, s = !1) {
|
162
162
|
try {
|
163
163
|
const r = ['"use strict";', "var __self = arguments[0];"];
|
164
164
|
r.push("return ");
|
165
|
-
let
|
166
|
-
|
167
|
-
`) +
|
168
|
-
const a = `with(${t ? "{}" : "$scope || {}"}) { ${
|
165
|
+
let o = (n.value || "").trim();
|
166
|
+
o = o.replace(/this(\W|$)/g, (i, c) => `__self${c}`), o = r.join(`
|
167
|
+
`) + o;
|
168
|
+
const a = `with(${t ? "{}" : "$scope || {}"}) { ${o} }`;
|
169
169
|
return new Function("$scope", a)(e);
|
170
170
|
} catch (r) {
|
171
|
-
if (P.error("parseExpression.error", r,
|
171
|
+
if (P.error("parseExpression.error", r, n, e?.__self ?? e), s)
|
172
172
|
throw r;
|
173
173
|
}
|
174
174
|
}
|
175
|
-
function G(
|
176
|
-
const r =
|
175
|
+
function G(n, e, t = !1, s = !1) {
|
176
|
+
const r = A(n, e, t, s);
|
177
177
|
if (typeof r != "function" && (P.error(
|
178
178
|
"parseFunction.error",
|
179
179
|
"not a function",
|
180
|
-
|
180
|
+
n,
|
181
181
|
e?.__self ?? e
|
182
|
-
),
|
183
|
-
throw new Error(`"${
|
182
|
+
), s))
|
183
|
+
throw new Error(`"${n.value}" not a function`);
|
184
184
|
return r;
|
185
185
|
}
|
186
|
-
function _(
|
187
|
-
return
|
186
|
+
function _(n) {
|
187
|
+
return n && n.type === "JSExpression";
|
188
188
|
}
|
189
|
-
function I(
|
190
|
-
return typeof
|
189
|
+
function I(n) {
|
190
|
+
return typeof n == "object" && n && n.type === "JSFunction";
|
191
191
|
}
|
192
|
-
function
|
193
|
-
return _(
|
192
|
+
function gt(n) {
|
193
|
+
return _(n) || I(n);
|
194
194
|
}
|
195
|
-
function
|
196
|
-
return
|
195
|
+
function Fs(n) {
|
196
|
+
return gt(n) ? n.value : JSON.stringify(n);
|
197
197
|
}
|
198
|
-
const
|
198
|
+
const vt = {
|
199
199
|
session: !1,
|
200
200
|
authKey: "Authorization",
|
201
201
|
storageKey: "ACCESS_STORAGE",
|
@@ -208,30 +208,30 @@ const gt = {
|
|
208
208
|
noPermissionMessage: "无权限访问该页面",
|
209
209
|
appName: ""
|
210
210
|
}, be = Symbol("access");
|
211
|
-
class
|
211
|
+
class Ts {
|
212
212
|
options;
|
213
213
|
data = null;
|
214
|
-
mode =
|
214
|
+
mode = y.Raw;
|
215
215
|
constructor(e) {
|
216
|
-
this.options = Object.assign({},
|
216
|
+
this.options = Object.assign({}, vt, e), this.loadData();
|
217
217
|
}
|
218
218
|
connect(e) {
|
219
|
-
const { mode: t, router:
|
220
|
-
this.mode = t,
|
219
|
+
const { mode: t, router: s, request: r } = e;
|
220
|
+
this.mode = t, s && this.mode === y.Raw && this.setGuard(s), r && this.setRequest(r);
|
221
221
|
}
|
222
222
|
login(e) {
|
223
|
-
const { storageKey: t, storagePrefix:
|
223
|
+
const { storageKey: t, storagePrefix: s, session: r, authKey: o } = this.options;
|
224
224
|
this.setData(e), this.data && (L.save(t, e, {
|
225
225
|
type: "local",
|
226
|
-
prefix:
|
227
|
-
}), r && q.set(
|
226
|
+
prefix: s
|
227
|
+
}), r && q.set(o, this.data.token));
|
228
228
|
}
|
229
229
|
clear() {
|
230
|
-
const { storageKey: e, storagePrefix: t, session:
|
230
|
+
const { storageKey: e, storagePrefix: t, session: s, authKey: r } = this.options;
|
231
231
|
this.data = null, L.remove(e, {
|
232
232
|
type: "local",
|
233
233
|
prefix: t
|
234
|
-
}),
|
234
|
+
}), s && q.remove(r);
|
235
235
|
}
|
236
236
|
logout() {
|
237
237
|
this.clear(), this.toLogin();
|
@@ -243,20 +243,20 @@ class Tn {
|
|
243
243
|
return this.data || this.loadData(), this.data?.token;
|
244
244
|
}
|
245
245
|
can(e) {
|
246
|
-
const { appName: t } = this.options, { permissions:
|
247
|
-
return typeof e == "function" ? e(
|
246
|
+
const { appName: t } = this.options, { permissions: s = {} } = this.data || {};
|
247
|
+
return typeof e == "function" ? e(s) : oe(e).every((o) => s[o] || s[t + "." + o]);
|
248
248
|
}
|
249
249
|
some(e) {
|
250
|
-
const { appName: t } = this.options, { permissions:
|
251
|
-
return
|
250
|
+
const { appName: t } = this.options, { permissions: s = {} } = this.data || {};
|
251
|
+
return oe(e).some((o) => s[o] || s[t + "." + o]);
|
252
252
|
}
|
253
253
|
install(e) {
|
254
254
|
e.config.globalProperties.$access || (e.config.globalProperties.$access = this), e.provide(be, this);
|
255
255
|
}
|
256
256
|
isAuthPath(e) {
|
257
|
-
const { auth: t, isAuth:
|
258
|
-
if (
|
259
|
-
return
|
257
|
+
const { auth: t, isAuth: s } = this.options;
|
258
|
+
if (s)
|
259
|
+
return s(e);
|
260
260
|
if (e.path && typeof t == "string") {
|
261
261
|
const r = t.split("#")[1] || t;
|
262
262
|
return e.path === r;
|
@@ -266,46 +266,46 @@ class Tn {
|
|
266
266
|
toLogin() {
|
267
267
|
const { auth: e, redirectParam: t } = this.options;
|
268
268
|
if (!e) return;
|
269
|
-
const
|
270
|
-
typeof e == "function" ? e(
|
269
|
+
const s = t ? `?${t}=${encodeURIComponent(location.href)}` : "";
|
270
|
+
typeof e == "function" ? e(s) : location.href = t ? `${e}${s}` : e;
|
271
271
|
}
|
272
272
|
setData(e) {
|
273
273
|
const { privateKey: t } = this.options;
|
274
274
|
if (Array.isArray(e) && t) {
|
275
|
-
const
|
276
|
-
this.data = JSON.parse(
|
275
|
+
const s = e.map((r) => ie(r, t));
|
276
|
+
this.data = JSON.parse(s.join(""));
|
277
277
|
return;
|
278
278
|
}
|
279
279
|
if (typeof e == "string")
|
280
280
|
try {
|
281
|
-
const
|
282
|
-
|
283
|
-
} catch (
|
284
|
-
console.warn(
|
281
|
+
const s = t ? ie(e, t) : e;
|
282
|
+
s ? this.data = JSON.parse(s) : console.warn("RSA解密失败或登录信息缺失");
|
283
|
+
} catch (s) {
|
284
|
+
console.warn(s);
|
285
285
|
}
|
286
286
|
else
|
287
287
|
this.data = e;
|
288
288
|
}
|
289
289
|
loadData() {
|
290
|
-
const { storageKey: e, storagePrefix: t } = this.options,
|
290
|
+
const { storageKey: e, storagePrefix: t } = this.options, s = L.get(e, {
|
291
291
|
type: "local",
|
292
292
|
prefix: t
|
293
293
|
});
|
294
|
-
this.setData(
|
294
|
+
this.setData(s || null);
|
295
295
|
}
|
296
296
|
isLogined() {
|
297
297
|
const { session: e, authKey: t } = this.options;
|
298
298
|
return e && t ? !!q.get(t) : !!this.getToken();
|
299
299
|
}
|
300
300
|
hasRoutePermission(e) {
|
301
|
-
if (e.name ===
|
301
|
+
if (e.name === F) {
|
302
302
|
const t = e.params.id;
|
303
303
|
return t && this.can(t);
|
304
304
|
}
|
305
305
|
return !0;
|
306
306
|
}
|
307
307
|
setGuard(e) {
|
308
|
-
e.beforeEach((t,
|
308
|
+
e.beforeEach((t, s, r) => this.guard(t, r));
|
309
309
|
}
|
310
310
|
async guard(e, t) {
|
311
311
|
if (this.isWhiteList(e) || this.isAuthPath(e))
|
@@ -314,15 +314,15 @@ class Tn {
|
|
314
314
|
if (this.hasRoutePermission(e))
|
315
315
|
return t();
|
316
316
|
{
|
317
|
-
const { noPermissionMessage:
|
318
|
-
return await this.showTip(
|
317
|
+
const { noPermissionMessage: s = "无权限访问", unauthorized: r = !1 } = this.options;
|
318
|
+
return await this.showTip(s), z(r) ? (r(), t(!1)) : j(r) ? t(r) : t(!1);
|
319
319
|
}
|
320
320
|
}
|
321
321
|
t(!1), this.toLogin();
|
322
322
|
}
|
323
323
|
isWhiteList(e) {
|
324
324
|
const { whiteList: t } = this.options;
|
325
|
-
return t ? Array.isArray(t) ? t.some((
|
325
|
+
return t ? Array.isArray(t) ? t.some((s) => e.fullPath.startsWith(s)) : t(e) : !1;
|
326
326
|
}
|
327
327
|
isUnauthorized(e) {
|
328
328
|
const { unauthorizedCode: t = 401 } = this.options;
|
@@ -334,7 +334,7 @@ class Tn {
|
|
334
334
|
}
|
335
335
|
async showTip(e) {
|
336
336
|
const { alert: t } = this.options;
|
337
|
-
return t ? (await
|
337
|
+
return t ? (await de(150), await t(e, {
|
338
338
|
title: "提示",
|
339
339
|
type: "warning"
|
340
340
|
}).catch(() => !1)) : !1;
|
@@ -343,8 +343,8 @@ class Tn {
|
|
343
343
|
e.useRequest((t) => (this.data?.token && (t.headers[this.options.authKey] = this.data?.token), t)), e.useResponse(
|
344
344
|
async (t) => (await this.showUnauthorizedAlert(t), t),
|
345
345
|
async (t) => {
|
346
|
-
const
|
347
|
-
return await this.showUnauthorizedAlert(
|
346
|
+
const s = t.response || t || {};
|
347
|
+
return await this.showUnauthorizedAlert(s), Promise.reject(t);
|
348
348
|
}
|
349
349
|
);
|
350
350
|
}
|
@@ -352,8 +352,8 @@ class Tn {
|
|
352
352
|
function yt() {
|
353
353
|
return me(be, null);
|
354
354
|
}
|
355
|
-
function
|
356
|
-
const { notify: e, loading: t, settings:
|
355
|
+
function As(n = {}) {
|
356
|
+
const { notify: e, loading: t, settings: s = {} } = n;
|
357
357
|
let r = null;
|
358
358
|
return {
|
359
359
|
request: fe({
|
@@ -373,7 +373,7 @@ function In(s = {}) {
|
|
373
373
|
hideLoading: () => {
|
374
374
|
r && (r.close(), r = null);
|
375
375
|
},
|
376
|
-
...
|
376
|
+
...s
|
377
377
|
}
|
378
378
|
}),
|
379
379
|
jsonp: he,
|
@@ -381,76 +381,76 @@ function In(s = {}) {
|
|
381
381
|
loading: t
|
382
382
|
};
|
383
383
|
}
|
384
|
-
function
|
385
|
-
const { jsonp: t, request:
|
386
|
-
if (
|
387
|
-
return (r = {}) => t(
|
388
|
-
...
|
384
|
+
function _t(n, e) {
|
385
|
+
const { jsonp: t, request: s } = e;
|
386
|
+
if (n.method === "jsonp")
|
387
|
+
return (r = {}) => t(n.url, {
|
388
|
+
...n.jsonpOptions,
|
389
389
|
query: r
|
390
390
|
});
|
391
391
|
{
|
392
|
-
const r =
|
393
|
-
url:
|
394
|
-
method:
|
392
|
+
const r = n.headers ? A(n.headers, {}, !0) : void 0, o = {
|
393
|
+
url: n.url,
|
394
|
+
method: n.method,
|
395
395
|
settings: {
|
396
|
-
...
|
396
|
+
...n.settings,
|
397
397
|
headers: r
|
398
398
|
}
|
399
399
|
};
|
400
|
-
return (a,
|
400
|
+
return (a, i) => (delete o.data, s.send(Oe(o, i || {}, { data: a })));
|
401
401
|
}
|
402
402
|
}
|
403
|
-
function
|
403
|
+
function wt(n, e) {
|
404
404
|
const { metaQuery: t } = e;
|
405
405
|
if (!t) return;
|
406
|
-
const { code:
|
407
|
-
return (
|
406
|
+
const { code: s, queryCode: r } = n;
|
407
|
+
return (o, a) => {
|
408
408
|
if (!t) {
|
409
409
|
console.warn("adapter.metaQuery is not defined!");
|
410
410
|
return;
|
411
411
|
}
|
412
|
-
return t(
|
412
|
+
return t(s, r, o, a);
|
413
413
|
};
|
414
414
|
}
|
415
|
-
function
|
416
|
-
const
|
417
|
-
for (const r of
|
418
|
-
|
415
|
+
function St(n = [], e = [], t) {
|
416
|
+
const s = {};
|
417
|
+
for (const r of n)
|
418
|
+
s[r.id] = _t(r, t);
|
419
419
|
for (const r of e)
|
420
|
-
|
421
|
-
return
|
420
|
+
s[r.id] = wt(r, t);
|
421
|
+
return s;
|
422
422
|
}
|
423
|
-
async function
|
424
|
-
R && (je(),
|
423
|
+
async function bt(n = []) {
|
424
|
+
R && (je(), n.forEach((e) => $t(R, e)));
|
425
425
|
}
|
426
|
-
function
|
427
|
-
const e = I(
|
426
|
+
function jt(n) {
|
427
|
+
const e = I(n.mockTemplate) && n.mockTemplate.value ? G(n.mockTemplate, {}, !0) : void 0;
|
428
428
|
return async (...t) => {
|
429
|
-
let
|
429
|
+
let s = {};
|
430
430
|
if (e)
|
431
431
|
try {
|
432
|
-
|
432
|
+
s = await e.apply(e, t);
|
433
433
|
} catch (r) {
|
434
434
|
P.warn("模拟数据模版异常", r);
|
435
435
|
}
|
436
|
-
return R.mock(
|
436
|
+
return R.mock(s);
|
437
437
|
};
|
438
438
|
}
|
439
|
-
function
|
439
|
+
function $t(n, e) {
|
440
440
|
if (!e.mock) return;
|
441
|
-
const { url: t, mockTemplate:
|
442
|
-
if (t &&
|
443
|
-
const r = Be(`${t}(.*)`),
|
444
|
-
|
445
|
-
const c = x.parse(
|
446
|
-
return Object.assign(
|
441
|
+
const { url: t, mockTemplate: s } = e;
|
442
|
+
if (t && s) {
|
443
|
+
const r = Be(`${t}(.*)`), o = Ne(t, { decode: decodeURIComponent }), a = A(s, {}, !0);
|
444
|
+
n.mock(r, (i) => {
|
445
|
+
const c = x.parse(i.url) || {}, l = i.body instanceof FormData ? Ue(i.body) : i.body, f = o(i.url)?.params;
|
446
|
+
return Object.assign(i, { data: l, params: c, query: f }), n.mock(a(i));
|
447
447
|
});
|
448
448
|
}
|
449
449
|
}
|
450
450
|
function je() {
|
451
451
|
R && (R._mocked = {});
|
452
452
|
}
|
453
|
-
class
|
453
|
+
class Et {
|
454
454
|
__id = null;
|
455
455
|
__mode;
|
456
456
|
__instance = null;
|
@@ -476,14 +476,14 @@ class $t {
|
|
476
476
|
$apis = {};
|
477
477
|
__transform = {};
|
478
478
|
constructor(e) {
|
479
|
-
const { mode: t, dsl:
|
480
|
-
this.__mode = t,
|
479
|
+
const { mode: t, dsl: s, attrs: r } = e;
|
480
|
+
this.__mode = t, s && (this.__id = s.id || null, this.__transform = s.transform || {}), r && Object.assign(this, r);
|
481
481
|
}
|
482
482
|
setup(e, t = N) {
|
483
|
-
const
|
484
|
-
if (!
|
485
|
-
this.__refs = {}, this.$refs = {}, this.context = {}, this.__contextRefs = {}, this.__instance =
|
486
|
-
const r =
|
483
|
+
const s = t.getCurrentInstance();
|
484
|
+
if (!s) return;
|
485
|
+
this.__refs = {}, this.$refs = {}, this.context = {}, this.__contextRefs = {}, this.__instance = s.proxy;
|
486
|
+
const r = s.appContext.config.globalProperties;
|
487
487
|
Object.assign(this, r), Object.assign(this, e || {}), this.__proxy(), t.onMounted(() => {
|
488
488
|
this.__proxy();
|
489
489
|
}), t.onUnmounted(() => {
|
@@ -507,167 +507,167 @@ class $t {
|
|
507
507
|
}
|
508
508
|
__parseFunction(e) {
|
509
509
|
if (e)
|
510
|
-
if (this.__mode ===
|
511
|
-
const { id: t, type:
|
512
|
-
return G({ type:
|
510
|
+
if (this.__mode === y.Runtime) {
|
511
|
+
const { id: t, type: s } = e, r = t ? this.__transform[t] ?? e.value : e.value;
|
512
|
+
return G({ type: s, value: r }, this);
|
513
513
|
} else
|
514
514
|
return G(e, this);
|
515
515
|
}
|
516
516
|
__parseExpression(e) {
|
517
517
|
if (e)
|
518
|
-
if (this.__mode ===
|
519
|
-
const { id: t, type:
|
520
|
-
return
|
518
|
+
if (this.__mode === y.Runtime) {
|
519
|
+
const { id: t, type: s } = e, r = t ? this.__transform[t] ?? e.value : e.value;
|
520
|
+
return A({ type: s, value: r }, this);
|
521
521
|
} else
|
522
|
-
return
|
522
|
+
return A(e, this);
|
523
523
|
}
|
524
524
|
__ref(e = null, t) {
|
525
|
-
if (this.__mode !==
|
526
|
-
return e && e !== this.__id && (this.__contextRefs[e] = this), async (
|
527
|
-
await
|
528
|
-
let r =
|
525
|
+
if (this.__mode !== y.VNode)
|
526
|
+
return e && e !== this.__id && (this.__contextRefs[e] = this), async (s) => {
|
527
|
+
await de(0);
|
528
|
+
let r = s?.$vtjEl || s?.$el || s?._?.vnode?.el || s;
|
529
529
|
if (!r) {
|
530
530
|
typeof t == "string" && (delete this.$refs[t], e && delete this.__refs[e]);
|
531
531
|
return;
|
532
532
|
}
|
533
|
-
return r.nodeType === 3 && r.nextSibling && (r = r.nextSibling), r.__vtj__ = e,
|
533
|
+
return r.nodeType === 3 && r.nextSibling && (r = r.nextSibling), r.__vtj__ = e, y.Design === this.__mode && (r.__context__ = this, r.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e, s)), typeof t == "function" ? t(s) : t && (this.$refs[t] = this.__getRefEl(this.$refs, t, s)), s;
|
534
534
|
};
|
535
535
|
}
|
536
|
-
__getRefEl(e, t,
|
536
|
+
__getRefEl(e, t, s) {
|
537
537
|
const r = e[t];
|
538
|
-
if (r &&
|
539
|
-
const
|
540
|
-
return Array.from(
|
538
|
+
if (r && s !== r) {
|
539
|
+
const o = new Set([].concat(r, s));
|
540
|
+
return Array.from(o);
|
541
541
|
} else
|
542
|
-
return
|
542
|
+
return s;
|
543
543
|
}
|
544
544
|
__clone(e = {}) {
|
545
|
-
const t = { ...this.context, ...e },
|
545
|
+
const t = { ...this.context, ...e }, s = {
|
546
546
|
...t,
|
547
547
|
context: t
|
548
548
|
};
|
549
|
-
return
|
549
|
+
return s.context.__proto__ = this.context, s.__proto__ = this, s;
|
550
550
|
}
|
551
551
|
}
|
552
|
-
function Y(
|
552
|
+
function Y(n) {
|
553
553
|
const {
|
554
554
|
Vue: e = N,
|
555
|
-
mode: t =
|
556
|
-
components:
|
555
|
+
mode: t = y.Runtime,
|
556
|
+
components: s = {},
|
557
557
|
libs: r = {},
|
558
|
-
apis:
|
558
|
+
apis: o = {},
|
559
559
|
loader: a
|
560
|
-
} =
|
561
|
-
$components:
|
560
|
+
} = n, i = e.computed(() => n.dsl), c = {
|
561
|
+
$components: s,
|
562
562
|
$libs: r,
|
563
|
-
$apis:
|
564
|
-
}, l = new
|
563
|
+
$apis: o
|
564
|
+
}, l = new Et({
|
565
565
|
mode: t,
|
566
|
-
dsl:
|
566
|
+
dsl: i.value,
|
567
567
|
attrs: c
|
568
568
|
}), f = e.defineComponent({
|
569
|
-
name:
|
569
|
+
name: i.value.name,
|
570
570
|
props: {
|
571
|
-
...
|
571
|
+
...Rt(i.value.props ?? [], l)
|
572
572
|
},
|
573
573
|
setup(u) {
|
574
|
-
l.$props = u, l.props = u,
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
), l.state =
|
579
|
-
const
|
580
|
-
|
574
|
+
l.$props = u, l.props = u, i.value.id && Se(
|
575
|
+
n.window || window,
|
576
|
+
i.value.id,
|
577
|
+
i.value.css || ""
|
578
|
+
), l.state = xt(e, i.value.state ?? {}, l);
|
579
|
+
const p = Pt(e, i.value.computed ?? {}, l), h = Ct(i.value.methods ?? {}, l), m = Ft(e, i.value.inject, l), d = Tt(
|
580
|
+
i.value.dataSources || {},
|
581
581
|
l
|
582
582
|
), w = {
|
583
583
|
...m,
|
584
|
-
...
|
584
|
+
...p,
|
585
585
|
...h,
|
586
|
-
...
|
586
|
+
...d
|
587
587
|
};
|
588
|
-
return l.setup(w, e),
|
588
|
+
return l.setup(w, e), At(e, i.value.watch ?? [], l), {
|
589
589
|
vtj: l
|
590
590
|
};
|
591
591
|
},
|
592
|
-
emits:
|
592
|
+
emits: kt(i.value.emits),
|
593
593
|
expose: ["vtj"],
|
594
594
|
render() {
|
595
|
-
if (!
|
596
|
-
const u =
|
597
|
-
return u.length === 1 ? B(u[0], l, e, a) : u.map((
|
595
|
+
if (!i.value.nodes) return null;
|
596
|
+
const u = i.value.nodes || [];
|
597
|
+
return u.length === 1 ? B(u[0], l, e, a) : u.map((p) => B(p, l, e, a));
|
598
598
|
},
|
599
|
-
...
|
599
|
+
...It(i.value.lifeCycles ?? {}, l)
|
600
600
|
});
|
601
601
|
return {
|
602
602
|
renderer: e.markRaw(f),
|
603
603
|
context: l
|
604
604
|
};
|
605
605
|
}
|
606
|
-
function
|
607
|
-
return
|
606
|
+
function kt(n = []) {
|
607
|
+
return n.map((e) => j(e) ? e : e.name);
|
608
608
|
}
|
609
|
-
function
|
610
|
-
const t = (
|
611
|
-
return
|
612
|
-
name:
|
609
|
+
function Rt(n = [], e) {
|
610
|
+
const t = (s) => s ? (Array.isArray(s) ? s : [s]).map((o) => nt[o]) : void 0;
|
611
|
+
return n.map((s) => j(s) ? {
|
612
|
+
name: s
|
613
613
|
} : {
|
614
|
-
name:
|
615
|
-
type:
|
616
|
-
required:
|
617
|
-
default: _(
|
614
|
+
name: s.name,
|
615
|
+
type: s.type,
|
616
|
+
required: s.required,
|
617
|
+
default: _(s.default) ? e.__parseExpression(s.default) : s.default
|
618
618
|
}).reduce(
|
619
|
-
(
|
619
|
+
(s, r) => (s[r.name] = {
|
620
620
|
type: t(r.type),
|
621
621
|
required: r.required,
|
622
622
|
default: r.default
|
623
|
-
},
|
623
|
+
}, s),
|
624
624
|
{}
|
625
625
|
);
|
626
626
|
}
|
627
|
-
function
|
628
|
-
return
|
627
|
+
function xt(n, e, t) {
|
628
|
+
return n.reactive(
|
629
629
|
Object.keys(e || {}).reduce(
|
630
|
-
(
|
631
|
-
let
|
632
|
-
return _(
|
630
|
+
(s, r) => {
|
631
|
+
let o = e[r];
|
632
|
+
return _(o) ? o = t.__parseExpression(o) : I(o) && (o = t.__parseFunction(o)), s[r] = o, s;
|
633
633
|
},
|
634
634
|
{}
|
635
635
|
)
|
636
636
|
);
|
637
637
|
}
|
638
|
-
function
|
638
|
+
function Pt(n, e, t) {
|
639
639
|
return Object.entries(e ?? {}).reduce(
|
640
|
-
(
|
640
|
+
(s, [r, o]) => (s[r] = n.computed(t.__parseFunction(o)), s),
|
641
641
|
{}
|
642
642
|
);
|
643
643
|
}
|
644
|
-
function
|
645
|
-
return Object.entries(
|
646
|
-
(t, [
|
644
|
+
function Ct(n, e) {
|
645
|
+
return Object.entries(n ?? {}).reduce(
|
646
|
+
(t, [s, r]) => (t[s] = e.__parseFunction(r), t),
|
647
647
|
{}
|
648
648
|
);
|
649
649
|
}
|
650
|
-
function
|
650
|
+
function Ft(n, e = [], t) {
|
651
651
|
return e.reduce(
|
652
|
-
(
|
653
|
-
const { name:
|
652
|
+
(s, r) => {
|
653
|
+
const { name: o, from: a } = r || {};
|
654
654
|
r.default;
|
655
|
-
const
|
656
|
-
return
|
655
|
+
const i = _(a) ? t.__parseExpression(a) || o : a ?? o, c = _(r.default) ? t.__parseExpression(r.default) : r.default ?? null;
|
656
|
+
return s[o] = n.inject(i, c), s;
|
657
657
|
},
|
658
658
|
{}
|
659
659
|
);
|
660
660
|
}
|
661
|
-
function
|
662
|
-
return Object.keys(
|
663
|
-
(t,
|
664
|
-
const r = s
|
661
|
+
function Tt(n, e) {
|
662
|
+
return Object.keys(n).reduce(
|
663
|
+
(t, s) => {
|
664
|
+
const r = n[s];
|
665
665
|
if (r.type === "mock")
|
666
|
-
t[
|
666
|
+
t[s] = jt(r);
|
667
667
|
else if (r.ref) {
|
668
|
-
const
|
669
|
-
t[
|
670
|
-
const c = await
|
668
|
+
const o = e.$apis[r.ref], a = I(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
|
669
|
+
t[s] = async (...i) => {
|
670
|
+
const c = await o.apply(e, i);
|
671
671
|
return a ? a(c) : c;
|
672
672
|
};
|
673
673
|
}
|
@@ -676,214 +676,214 @@ function At(s, e) {
|
|
676
676
|
{}
|
677
677
|
);
|
678
678
|
}
|
679
|
-
function
|
680
|
-
e.forEach((
|
681
|
-
|
682
|
-
t.__parseExpression(
|
683
|
-
t.__parseFunction(
|
679
|
+
function At(n, e = [], t) {
|
680
|
+
e.forEach((s) => {
|
681
|
+
n.watch(
|
682
|
+
t.__parseExpression(s.source),
|
683
|
+
t.__parseFunction(s.handler),
|
684
684
|
{
|
685
|
-
deep:
|
686
|
-
immediate:
|
685
|
+
deep: s.deep,
|
686
|
+
immediate: s.immediate
|
687
687
|
}
|
688
688
|
);
|
689
689
|
});
|
690
690
|
}
|
691
|
-
function
|
692
|
-
return Object.entries(
|
693
|
-
(t, [
|
691
|
+
function It(n, e) {
|
692
|
+
return Object.entries(n ?? {}).reduce(
|
693
|
+
(t, [s, r]) => (t[s] = e.__parseFunction(r), t),
|
694
694
|
{}
|
695
695
|
);
|
696
696
|
}
|
697
697
|
let V = [], k = {};
|
698
|
-
const
|
699
|
-
async function $e(
|
700
|
-
const { urls: t = [], library:
|
701
|
-
if (r.length === 0 || !
|
702
|
-
const
|
703
|
-
return
|
704
|
-
(
|
698
|
+
const Mt = (n) => n;
|
699
|
+
async function $e(n, e = window) {
|
700
|
+
const { urls: t = [], library: s } = n, r = t.filter((i) => te(i));
|
701
|
+
if (r.length === 0 || !s) return null;
|
702
|
+
const o = t.filter((i) => ee(i));
|
703
|
+
return o.length && pt(o, e), await dt(r, s, e).catch(
|
704
|
+
(i) => (console.warn("loadScriptUrl error", r, s, i), null)
|
705
705
|
);
|
706
706
|
}
|
707
|
-
function Q(
|
708
|
-
const { getDsl: e, getDslByUrl: t, options:
|
709
|
-
return
|
710
|
-
delete
|
711
|
-
}), V = []), (r,
|
712
|
-
if (!
|
713
|
-
if (
|
714
|
-
let
|
715
|
-
return
|
716
|
-
const c = await e(
|
707
|
+
function Q(n) {
|
708
|
+
const { getDsl: e, getDslByUrl: t, options: s } = n;
|
709
|
+
return s.window && (V.forEach((r) => {
|
710
|
+
delete s.window[r];
|
711
|
+
}), V = []), (r, o, a = N) => {
|
712
|
+
if (!o || typeof o == "string") return r;
|
713
|
+
if (o.type === "Schema" && o.id) {
|
714
|
+
let i = k[o.id];
|
715
|
+
return i || (i = k[o.id] = a.defineAsyncComponent(async () => {
|
716
|
+
const c = await e(o.id);
|
717
717
|
return c && (c.name = r), c ? Y({
|
718
|
-
...
|
718
|
+
...s,
|
719
719
|
Vue: a,
|
720
720
|
dsl: c,
|
721
|
-
mode:
|
722
|
-
loader: Q(
|
721
|
+
mode: y.Runtime,
|
722
|
+
loader: Q(n)
|
723
723
|
}).renderer : null;
|
724
|
-
}),
|
724
|
+
}), i);
|
725
725
|
}
|
726
|
-
if (
|
727
|
-
let
|
728
|
-
return
|
729
|
-
const c = await t(
|
726
|
+
if (o.type === "UrlSchema" && o.url) {
|
727
|
+
let i = k[o.url];
|
728
|
+
return i || (i = k[o.url] = a.defineAsyncComponent(async () => {
|
729
|
+
const c = await t(o.url);
|
730
730
|
return c && (c.name = r), c ? Y({
|
731
|
-
...
|
731
|
+
...s,
|
732
732
|
Vue: a,
|
733
733
|
dsl: c,
|
734
|
-
mode:
|
735
|
-
loader: Q(
|
734
|
+
mode: y.Runtime,
|
735
|
+
loader: Q(n)
|
736
736
|
}).renderer : null;
|
737
|
-
}),
|
737
|
+
}), i);
|
738
738
|
}
|
739
|
-
if (
|
740
|
-
let
|
741
|
-
return
|
739
|
+
if (o.type === "Plugin") {
|
740
|
+
let i = o.library ? k[o.library] : null;
|
741
|
+
return i || (o.library && V.push(o.library), i = k[o.library || Symbol()] = a.defineAsyncComponent(
|
742
742
|
async () => {
|
743
|
-
const c = await $e(
|
744
|
-
return c || (console.warn("getPlugin result is null",
|
743
|
+
const c = await $e(o, s.window);
|
744
|
+
return c || (console.warn("getPlugin result is null", o), null);
|
745
745
|
}
|
746
|
-
),
|
746
|
+
), i);
|
747
747
|
}
|
748
748
|
return r;
|
749
749
|
};
|
750
750
|
}
|
751
|
-
function
|
751
|
+
function Is() {
|
752
752
|
k = {};
|
753
753
|
}
|
754
|
-
function B(
|
755
|
-
if (!
|
756
|
-
const r = t.getCurrentInstance()?.appContext, { id:
|
757
|
-
if (
|
754
|
+
function B(n, e, t = N, s = Mt) {
|
755
|
+
if (!n || !n.name || n.invisible) return null;
|
756
|
+
const r = t.getCurrentInstance()?.appContext, { id: o = null, directives: a = [] } = n, { vIf: i, vFor: c, vShow: l, vModels: f, vBind: u, vHtml: p, others: h } = Ht(a);
|
757
|
+
if (i && !Ot(i, e))
|
758
758
|
return null;
|
759
|
-
const m = (
|
760
|
-
const w =
|
761
|
-
if (
|
762
|
-
return
|
763
|
-
if (
|
764
|
-
const b = n
|
765
|
-
return j(b) ?
|
766
|
-
})(), S =
|
767
|
-
if (
|
768
|
-
return
|
769
|
-
u && Object.assign(S,
|
759
|
+
const m = (d) => {
|
760
|
+
const w = d.$components, g = (() => {
|
761
|
+
if (n.name === "component")
|
762
|
+
return Bt(d, n.props?.is);
|
763
|
+
if (n.name === "slot") return n.name;
|
764
|
+
const b = s(n.name, n.from, t);
|
765
|
+
return j(b) ? ht(b) || mt(b) ? b : w[b] ?? r?.app?.component(b) ?? b : b;
|
766
|
+
})(), S = Nt(o, n.props ?? {}, d), Te = Ut(t, n.events ?? {}, d);
|
767
|
+
if (n.name === "slot")
|
768
|
+
return Lt(t, n, S, d, s);
|
769
|
+
u && Object.assign(S, d.__parseExpression(u.value)), l && (S.style = Object.assign(
|
770
770
|
S.style ?? {},
|
771
|
-
|
772
|
-
)),
|
773
|
-
Object.assign(S,
|
771
|
+
Jt(l, d)
|
772
|
+
)), p && Object.assign(S, Vt(p, d)), f.forEach((b) => {
|
773
|
+
Object.assign(S, zt(t, b, d));
|
774
774
|
});
|
775
|
-
const
|
775
|
+
const Ae = Kt(
|
776
776
|
t,
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
777
|
+
n.children ?? [],
|
778
|
+
d,
|
779
|
+
s,
|
780
|
+
n
|
781
781
|
);
|
782
|
-
let U = t.createVNode(g, { ...S, ...
|
783
|
-
const re = r ?
|
782
|
+
let U = t.createVNode(g, { ...S, ...Te }, Ae);
|
783
|
+
const re = r ? Dt(r, h, d) : [];
|
784
784
|
return re.length && (U = t.withDirectives(U, re)), U;
|
785
785
|
};
|
786
|
-
return c ?
|
786
|
+
return c ? Yt(c, m, e) : m(e);
|
787
787
|
}
|
788
|
-
function
|
789
|
-
const
|
788
|
+
function Dt(n, e, t) {
|
789
|
+
const s = n.app;
|
790
790
|
return e.map((r) => {
|
791
|
-
const
|
792
|
-
if (!
|
793
|
-
const a = [
|
791
|
+
const o = typeof r.name == "string" ? s.directive(r.name) : t.__parseExpression(r.name);
|
792
|
+
if (!o) return null;
|
793
|
+
const a = [o];
|
794
794
|
return r.value && a.push(t.__parseExpression(r.value)), r.arg && a.push(r.arg), r.modifiers && a.push(r.modifiers), a;
|
795
795
|
}).filter((r) => !!r);
|
796
796
|
}
|
797
|
-
function
|
798
|
-
const e =
|
797
|
+
function Ht(n = []) {
|
798
|
+
const e = n.find((c) => $(c.name) === "vIf"), t = n.find((c) => $(c.name) === "vFor"), s = n.find((c) => $(c.name) === "vShow"), r = n.find((c) => $(c.name) === "vBind"), o = n.find((c) => $(c.name) === "vHtml"), a = n.filter(
|
799
799
|
(c) => $(c.name) === "vModel"
|
800
|
-
),
|
801
|
-
(c) => !
|
800
|
+
), i = n.filter(
|
801
|
+
(c) => !st.includes($(c.name))
|
802
802
|
);
|
803
803
|
return {
|
804
804
|
vIf: e,
|
805
805
|
vFor: t,
|
806
|
-
vShow:
|
806
|
+
vShow: s,
|
807
807
|
vModels: a,
|
808
808
|
vBind: r,
|
809
|
-
others:
|
810
|
-
vHtml:
|
809
|
+
others: i,
|
810
|
+
vHtml: o
|
811
811
|
};
|
812
812
|
}
|
813
|
-
function
|
814
|
-
return !!e.__parseExpression(
|
813
|
+
function Ot(n, e) {
|
814
|
+
return !!e.__parseExpression(n.value);
|
815
815
|
}
|
816
|
-
function
|
817
|
-
return e ? _(e) ?
|
816
|
+
function Bt(n, e) {
|
817
|
+
return e ? _(e) ? n.__parseExpression(e) : e : "div";
|
818
818
|
}
|
819
|
-
function
|
820
|
-
const
|
821
|
-
(r,
|
822
|
-
let a = e[
|
823
|
-
return _(a) ? a = t.__parseExpression(a) : I(a) && (a = t.__parseFunction(a)), r[
|
819
|
+
function Nt(n, e, t) {
|
820
|
+
const s = Object.keys(e || {}).reduce(
|
821
|
+
(r, o) => {
|
822
|
+
let a = e[o];
|
823
|
+
return _(a) ? a = t.__parseExpression(a) : I(a) && (a = t.__parseFunction(a)), r[o] = a, r;
|
824
824
|
},
|
825
825
|
{}
|
826
826
|
);
|
827
|
-
return
|
827
|
+
return s.ref = t.__ref(n, s.ref), s;
|
828
828
|
}
|
829
|
-
function
|
830
|
-
const
|
829
|
+
function Ut(n, e, t) {
|
830
|
+
const s = ["passive", "capture", "once"], r = {
|
831
831
|
capture: "Capture",
|
832
832
|
once: "Once",
|
833
833
|
passive: "OnceCapture"
|
834
834
|
};
|
835
835
|
return Object.keys(e || {}).reduce(
|
836
|
-
(
|
837
|
-
const
|
838
|
-
return u && (
|
836
|
+
(o, a) => {
|
837
|
+
const i = e[a], c = Ee(i.modifiers), l = c.find((p) => s.includes(p)), f = "on" + Le(a) + (l && r[l] || ""), u = t.__parseFunction(i.handler);
|
838
|
+
return u && (o[f] = n.withModifiers(u, c)), o;
|
839
839
|
},
|
840
840
|
{}
|
841
841
|
);
|
842
842
|
}
|
843
|
-
function Ee(
|
844
|
-
const t = Object.keys(
|
845
|
-
return e ? t.map((
|
843
|
+
function Ee(n = {}, e = !1) {
|
844
|
+
const t = Object.keys(n);
|
845
|
+
return e ? t.map((s) => "." + s) : t;
|
846
846
|
}
|
847
|
-
function
|
848
|
-
const { children:
|
849
|
-
return
|
850
|
-
we(
|
851
|
-
) : Array.isArray(
|
852
|
-
(c) => B(c,
|
847
|
+
function Lt(n, e, t, s, r) {
|
848
|
+
const { children: o } = e, a = qt(e, s), i = s.$slots?.[a.name];
|
849
|
+
return i ? i(t) : o ? j(o) ? n.createTextVNode(o) : _(o) ? n.createTextVNode(
|
850
|
+
we(s.__parseExpression(o))
|
851
|
+
) : Array.isArray(o) ? o.map(
|
852
|
+
(c) => B(c, s, n, r)
|
853
853
|
) : null : null;
|
854
854
|
}
|
855
|
-
function
|
856
|
-
const { props: t } =
|
855
|
+
function qt(n, e) {
|
856
|
+
const { props: t } = n, s = t?.name || "default";
|
857
857
|
return {
|
858
|
-
name: _(
|
858
|
+
name: _(s) ? e.__parseExpression(s) : s,
|
859
859
|
params: []
|
860
860
|
};
|
861
861
|
}
|
862
|
-
function
|
863
|
-
return e.__parseExpression(
|
862
|
+
function Jt(n, e) {
|
863
|
+
return e.__parseExpression(n.value) ? {} : {
|
864
864
|
display: "none"
|
865
865
|
};
|
866
866
|
}
|
867
|
-
function
|
867
|
+
function Vt(n, e) {
|
868
868
|
return {
|
869
|
-
innerHTML: e.__parseExpression(
|
869
|
+
innerHTML: e.__parseExpression(n.value) || ""
|
870
870
|
};
|
871
871
|
}
|
872
|
-
function
|
873
|
-
const
|
872
|
+
function zt(n, e, t) {
|
873
|
+
const s = {
|
874
874
|
type: "JSFunction",
|
875
875
|
value: e.value?.value ? `(v) => {
|
876
876
|
${e.value.value} = v;
|
877
877
|
}` : "(v) => {}"
|
878
|
-
}, r = t.__parseFunction(
|
878
|
+
}, r = t.__parseFunction(s), o = Ee(
|
879
879
|
_(e.modifiers) ? t.__parseExpression(e.modifiers) : e.modifiers
|
880
880
|
), a = _(e.arg) ? t.__parseExpression(e.arg) : e.arg || "modelValue";
|
881
881
|
return {
|
882
882
|
[a]: t.__parseExpression(e.value),
|
883
|
-
[`onUpdate:${a}`]:
|
883
|
+
[`onUpdate:${a}`]: o.length && r ? n.withModifiers(r, o) : r
|
884
884
|
};
|
885
885
|
}
|
886
|
-
function
|
886
|
+
function Kt(n, e, t, s, r) {
|
887
887
|
if (!e) return null;
|
888
888
|
if (j(e))
|
889
889
|
return { default: () => e };
|
@@ -892,171 +892,171 @@ function zt(s, e, t, n, r) {
|
|
892
892
|
default: () => we(t.__parseExpression(e))
|
893
893
|
};
|
894
894
|
if (Array.isArray(e) && e.length > 0) {
|
895
|
-
const
|
896
|
-
[`scope_${r.id}`]:
|
895
|
+
const o = Wt(e), a = (i) => !i || !r ? {} : r?.id && Object.keys(i).length ? {
|
896
|
+
[`scope_${r.id}`]: i
|
897
897
|
} : {};
|
898
|
-
return Object.entries(
|
899
|
-
const
|
898
|
+
return Object.entries(o).reduce((i, [c, { nodes: l, params: f }]) => (i[c] = (u) => {
|
899
|
+
const p = f.length ? qe(u ?? {}, f) : a(u);
|
900
900
|
return l.map(
|
901
|
-
(h) => B(h, t.__clone(
|
901
|
+
(h) => B(h, t.__clone(p), n, s)
|
902
902
|
);
|
903
|
-
},
|
903
|
+
}, i), {});
|
904
904
|
}
|
905
905
|
return null;
|
906
906
|
}
|
907
|
-
function
|
907
|
+
function Wt(n) {
|
908
908
|
const e = {
|
909
909
|
default: {
|
910
910
|
params: [],
|
911
911
|
nodes: []
|
912
912
|
}
|
913
913
|
};
|
914
|
-
for (const t of
|
915
|
-
const
|
916
|
-
e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(
|
914
|
+
for (const t of n) {
|
915
|
+
const s = Gt(t.slot), r = s.name;
|
916
|
+
e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(s.params)) : e[r] = {
|
917
917
|
nodes: [t],
|
918
|
-
params:
|
918
|
+
params: s.params
|
919
919
|
};
|
920
920
|
}
|
921
921
|
return e;
|
922
922
|
}
|
923
|
-
function
|
924
|
-
return j(
|
923
|
+
function Gt(n = "default") {
|
924
|
+
return j(n) ? { name: n, params: [] } : { params: [], ...n };
|
925
925
|
}
|
926
|
-
function
|
927
|
-
const { value:
|
928
|
-
let
|
929
|
-
return Number.isInteger(
|
926
|
+
function Yt(n, e, t) {
|
927
|
+
const { value: s, iterator: r } = n, { item: o = "item", index: a = "index" } = r || {};
|
928
|
+
let i = t.__parseExpression(s) || [];
|
929
|
+
return Number.isInteger(i) && (i = new Array(i).fill(!0).map((c, l) => l + 1)), Array.isArray(i) ? i.map((c, l) => e(t.__clone({ [o]: c, [a]: l }))) : (console.warn("[vForRender]:", `${s?.value} is not a Arrary`), []);
|
930
930
|
}
|
931
|
-
function
|
932
|
-
return
|
931
|
+
function Qt(n) {
|
932
|
+
return Ye() ? (Qe(n), !0) : !1;
|
933
|
+
}
|
934
|
+
function se(n) {
|
935
|
+
return typeof n == "function" ? n() : Ge(n);
|
933
936
|
}
|
934
937
|
const ke = typeof window < "u" && typeof document < "u";
|
935
938
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
936
|
-
const
|
939
|
+
const Xt = (n) => n != null, Zt = () => {
|
937
940
|
};
|
938
|
-
function
|
941
|
+
function es(n) {
|
939
942
|
return ge();
|
940
943
|
}
|
941
|
-
function
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
return Ve(...s);
|
947
|
-
const e = s[0];
|
948
|
-
return typeof e == "function" ? ze(Ke(() => ({ get: e, set: Xt }))) : F(e);
|
944
|
+
function ts(...n) {
|
945
|
+
if (n.length !== 1)
|
946
|
+
return Ve(...n);
|
947
|
+
const e = n[0];
|
948
|
+
return typeof e == "function" ? ze(Ke(() => ({ get: e, set: Zt }))) : T(e);
|
949
949
|
}
|
950
|
-
function
|
951
|
-
|
950
|
+
function ss(n, e) {
|
951
|
+
es() && We(n, e);
|
952
952
|
}
|
953
|
-
const
|
954
|
-
function
|
953
|
+
const ns = ke ? window : void 0, rs = ke ? window.document : void 0;
|
954
|
+
function os(n) {
|
955
955
|
var e;
|
956
|
-
const t =
|
956
|
+
const t = se(n);
|
957
957
|
return (e = t?.$el) != null ? e : t;
|
958
958
|
}
|
959
|
-
function
|
960
|
-
const
|
961
|
-
return e &&
|
962
|
-
|
963
|
-
}, e),
|
964
|
-
}
|
965
|
-
function
|
966
|
-
const e =
|
967
|
-
return
|
968
|
-
}
|
969
|
-
function
|
970
|
-
const { window:
|
971
|
-
let
|
972
|
-
const a =
|
973
|
-
|
974
|
-
}, c =
|
975
|
-
const
|
959
|
+
function is() {
|
960
|
+
const n = T(!1), e = ge();
|
961
|
+
return e && Xe(() => {
|
962
|
+
n.value = !0;
|
963
|
+
}, e), n;
|
964
|
+
}
|
965
|
+
function as(n) {
|
966
|
+
const e = is();
|
967
|
+
return ye(() => (e.value, !!n()));
|
968
|
+
}
|
969
|
+
function cs(n, e, t = {}) {
|
970
|
+
const { window: s = ns, ...r } = t;
|
971
|
+
let o;
|
972
|
+
const a = as(() => s && "MutationObserver" in s), i = () => {
|
973
|
+
o && (o.disconnect(), o = void 0);
|
974
|
+
}, c = ye(() => {
|
975
|
+
const p = se(n), h = (Array.isArray(p) ? p : [p]).map(os).filter(Xt);
|
976
976
|
return new Set(h);
|
977
|
-
}), l =
|
977
|
+
}), l = ve(
|
978
978
|
() => c.value,
|
979
|
-
(
|
980
|
-
|
979
|
+
(p) => {
|
980
|
+
i(), a.value && p.size && (o = new MutationObserver(e), p.forEach((h) => o.observe(h, r)));
|
981
981
|
},
|
982
982
|
{ immediate: !0, flush: "post" }
|
983
|
-
), f = () =>
|
984
|
-
l(),
|
983
|
+
), f = () => o?.takeRecords(), u = () => {
|
984
|
+
l(), i();
|
985
985
|
};
|
986
|
-
return
|
986
|
+
return Qt(u), {
|
987
987
|
isSupported: a,
|
988
988
|
stop: u,
|
989
989
|
takeRecords: f
|
990
990
|
};
|
991
991
|
}
|
992
|
-
function
|
993
|
-
var t,
|
992
|
+
function ls(n = null, e = {}) {
|
993
|
+
var t, s, r;
|
994
994
|
const {
|
995
|
-
document:
|
995
|
+
document: o = rs,
|
996
996
|
restoreOnUnmount: a = (u) => u
|
997
|
-
} = e,
|
997
|
+
} = e, i = (t = o?.title) != null ? t : "", c = ts((s = n ?? o?.title) != null ? s : null), l = n && typeof n == "function";
|
998
998
|
function f(u) {
|
999
999
|
if (!("titleTemplate" in e))
|
1000
1000
|
return u;
|
1001
|
-
const
|
1002
|
-
return typeof
|
1001
|
+
const p = e.titleTemplate || "%s";
|
1002
|
+
return typeof p == "function" ? p(u) : se(p).replace(/%s/g, u);
|
1003
1003
|
}
|
1004
|
-
return
|
1004
|
+
return ve(
|
1005
1005
|
c,
|
1006
|
-
(u,
|
1007
|
-
u !==
|
1006
|
+
(u, p) => {
|
1007
|
+
u !== p && o && (o.title = f(typeof u == "string" ? u : ""));
|
1008
1008
|
},
|
1009
1009
|
{ immediate: !0 }
|
1010
|
-
), e.observe && !e.titleTemplate &&
|
1011
|
-
(r =
|
1010
|
+
), e.observe && !e.titleTemplate && o && !l && cs(
|
1011
|
+
(r = o.head) == null ? void 0 : r.querySelector("title"),
|
1012
1012
|
() => {
|
1013
|
-
|
1013
|
+
o && o.title !== c.value && (c.value = f(o.title));
|
1014
1014
|
},
|
1015
1015
|
{ childList: !0 }
|
1016
|
-
),
|
1016
|
+
), ss(() => {
|
1017
1017
|
if (a) {
|
1018
|
-
const u = a(
|
1019
|
-
u != null &&
|
1018
|
+
const u = a(i, c.value || "");
|
1019
|
+
u != null && o && (o.title = u);
|
1020
1020
|
}
|
1021
1021
|
}), c;
|
1022
1022
|
}
|
1023
|
-
const ue =
|
1023
|
+
const ue = Z({
|
1024
1024
|
name: "VtjPageContainer",
|
1025
1025
|
async setup() {
|
1026
|
-
const
|
1027
|
-
return
|
1028
|
-
provider:
|
1026
|
+
const n = xe(), e = _e(), t = e.params.id, s = t ? n.getPage(t) : n.getHomepage(), r = s ? await n.getRenderComponent(s.id) : null, o = T(Symbol());
|
1027
|
+
return s && (Object.assign(e.meta, s.meta || {}, { cache: s.cache }), ls(s.title || "VTJ")), {
|
1028
|
+
provider: n,
|
1029
1029
|
component: r,
|
1030
|
-
file:
|
1030
|
+
file: s,
|
1031
1031
|
query: e.query,
|
1032
1032
|
meta: e.meta,
|
1033
|
-
sid:
|
1033
|
+
sid: o,
|
1034
1034
|
route: e
|
1035
1035
|
};
|
1036
1036
|
},
|
1037
1037
|
render() {
|
1038
|
-
const { component:
|
1039
|
-
return
|
1038
|
+
const { component: n, query: e, sid: t } = this;
|
1039
|
+
return n ? W(n, { ...e, key: t }) : W("div", "页面不存在");
|
1040
1040
|
},
|
1041
1041
|
activated() {
|
1042
1042
|
this.meta.cache === !1 && (this.sid = Symbol());
|
1043
1043
|
}
|
1044
|
-
}),
|
1044
|
+
}), us = {
|
1045
1045
|
"data-l-h6o7ki7": "",
|
1046
1046
|
class: "vtj-startup__wrapper"
|
1047
|
-
},
|
1047
|
+
}, ps = {
|
1048
1048
|
"data-l-h6o7ki7": "",
|
1049
1049
|
class: "vtj-startup"
|
1050
|
-
},
|
1050
|
+
}, ds = {
|
1051
1051
|
"data-l-h6o7ki7": "",
|
1052
1052
|
class: "vtj-startup__name"
|
1053
|
-
},
|
1053
|
+
}, fs = { "data-l-h6o7ki7": "" }, hs = {
|
1054
1054
|
"data-l-h6o7ki7": "",
|
1055
1055
|
class: "vtj-startup__tagline"
|
1056
|
-
},
|
1056
|
+
}, ms = {
|
1057
1057
|
"data-l-h6o7ki7": "",
|
1058
1058
|
class: "vtj-startup__actions"
|
1059
|
-
},
|
1059
|
+
}, gs = /* @__PURE__ */ Z({
|
1060
1060
|
__name: "Startup",
|
1061
1061
|
props: {
|
1062
1062
|
name: { default: "VTJ.PRO" },
|
@@ -1064,10 +1064,10 @@ const ue = ee({
|
|
1064
1064
|
actionText: { default: "开始设计" },
|
1065
1065
|
link: {}
|
1066
1066
|
},
|
1067
|
-
setup(
|
1068
|
-
((r,
|
1067
|
+
setup(n) {
|
1068
|
+
((r, o) => {
|
1069
1069
|
let a = document.getElementById("h6o7ki7");
|
1070
|
-
a || (a = document.createElement("style"), a.id = "h6o7ki7", document.head.appendChild(a), a.innerHTML =
|
1070
|
+
a || (a = document.createElement("style"), a.id = "h6o7ki7", document.head.appendChild(a), a.innerHTML = o);
|
1071
1071
|
})("h6o7ki7", `
|
1072
1072
|
.vtj-startup[data-l-h6o7ki7]{
|
1073
1073
|
padding: 20px;
|
@@ -1146,59 +1146,59 @@ const ue = ee({
|
|
1146
1146
|
.vtj-startup__actions button[data-l-h6o7ki7]:hover{
|
1147
1147
|
opacity: 0.7;
|
1148
1148
|
}`);
|
1149
|
-
const t =
|
1149
|
+
const t = n, s = () => {
|
1150
1150
|
if (typeof window < "u") {
|
1151
1151
|
if (t.link) {
|
1152
1152
|
typeof t.link == "function" ? t.link() : window.location.href = t.link;
|
1153
1153
|
return;
|
1154
1154
|
}
|
1155
|
-
let
|
1156
|
-
window.location.href =
|
1155
|
+
let o = (window.__VTJ_LINK__ || {}).href || window.location.pathname + "__vtj__/#/";
|
1156
|
+
window.location.href = o;
|
1157
1157
|
}
|
1158
1158
|
};
|
1159
|
-
return (r,
|
1160
|
-
E("div",
|
1161
|
-
E("h1",
|
1162
|
-
E("span",
|
1159
|
+
return (r, o) => (et(), Ze("div", us, [
|
1160
|
+
E("div", ps, [
|
1161
|
+
E("h1", ds, [
|
1162
|
+
E("span", fs, J(t.name), 1)
|
1163
1163
|
]),
|
1164
|
-
E("div",
|
1165
|
-
E("div",
|
1166
|
-
|
1164
|
+
E("div", hs, J(t.tagline), 1),
|
1165
|
+
E("div", ms, [
|
1166
|
+
o[0] || (o[0] = E("span", { "data-l-h6o7ki7": "" }, "设置项目主页后,将替换此页面显示", -1)),
|
1167
1167
|
E("button", {
|
1168
1168
|
"data-l-h6o7ki7": "",
|
1169
|
-
onClick:
|
1169
|
+
onClick: s
|
1170
1170
|
}, J(t.actionText), 1)
|
1171
1171
|
])
|
1172
1172
|
])
|
1173
1173
|
]));
|
1174
1174
|
}
|
1175
|
-
}),
|
1175
|
+
}), vs = Z({
|
1176
1176
|
name: "VtjStartupContainer",
|
1177
1177
|
render() {
|
1178
|
-
return W(
|
1178
|
+
return W(gs);
|
1179
1179
|
}
|
1180
1180
|
}), Re = Symbol("Provider");
|
1181
|
-
var
|
1182
|
-
class
|
1181
|
+
var ys = /* @__PURE__ */ ((n) => (n.Production = "production", n.Development = "development", n))(ys || {});
|
1182
|
+
class _s extends Ie {
|
1183
1183
|
constructor(e) {
|
1184
1184
|
super(), this.options = e;
|
1185
1185
|
const {
|
1186
1186
|
service: t,
|
1187
|
-
mode:
|
1187
|
+
mode: s = y.Raw,
|
1188
1188
|
dependencies: r,
|
1189
|
-
materials:
|
1189
|
+
materials: o,
|
1190
1190
|
project: a = {},
|
1191
|
-
adapter:
|
1191
|
+
adapter: i = {},
|
1192
1192
|
globals: c = {},
|
1193
1193
|
modules: l = {},
|
1194
1194
|
router: f = null,
|
1195
1195
|
materialPath: u = "./",
|
1196
|
-
nodeEnv:
|
1196
|
+
nodeEnv: p = "development"
|
1197
1197
|
/* Development */
|
1198
1198
|
} = e;
|
1199
|
-
this.mode =
|
1199
|
+
this.mode = s, this.modules = l, this.service = t, this.router = f, this.materialPath = u, this.nodeEnv = p, r && (this.dependencies = r), o && (this.materials = o), Object.assign(this.globals, c), Object.assign(this.adapter, i);
|
1200
1200
|
const { access: h, request: m } = this.adapter;
|
1201
|
-
h && h.connect({ mode:
|
1201
|
+
h && h.connect({ mode: s, router: f, request: m }), a && s !== y.Design ? this.load(a) : this.project = a, R.setup({
|
1202
1202
|
timeout: "50-500"
|
1203
1203
|
});
|
1204
1204
|
}
|
@@ -1219,122 +1219,122 @@ class wn extends Ie {
|
|
1219
1219
|
urlDslCaches = {};
|
1220
1220
|
createMock(e) {
|
1221
1221
|
return async (...t) => {
|
1222
|
-
let
|
1222
|
+
let s = {};
|
1223
1223
|
if (e)
|
1224
1224
|
try {
|
1225
|
-
|
1225
|
+
s = await e.apply(e, t);
|
1226
1226
|
} catch (r) {
|
1227
1227
|
P.warn("模拟数据模版异常", r);
|
1228
1228
|
}
|
1229
|
-
return R.mock(
|
1229
|
+
return R.mock(s);
|
1230
1230
|
};
|
1231
1231
|
}
|
1232
1232
|
async load(e) {
|
1233
1233
|
const t = this.modules[`.vtj/projects/${e.id}.json`];
|
1234
1234
|
if (this.project = t ? await t() : await this.service.init(e), !this.project)
|
1235
1235
|
throw new Error("project is null");
|
1236
|
-
const { apis:
|
1237
|
-
|
1236
|
+
const { apis: s = [], meta: r = [] } = this.project, o = window;
|
1237
|
+
o.CKEDITOR_VERSION = void 0, this.mode === y.Raw ? await this.loadDependencies(o) : await this.loadAssets(o), this.apis = St(s, r, this.adapter), je(), bt(s), this.initRouter(), this.triggerReady();
|
1238
1238
|
}
|
1239
1239
|
async loadDependencies(e) {
|
1240
1240
|
const t = Object.entries(this.dependencies);
|
1241
|
-
for (const [
|
1242
|
-
e[
|
1241
|
+
for (const [s, r] of t)
|
1242
|
+
e[s] || (e[s] = this.library[s] = await r());
|
1243
1243
|
}
|
1244
1244
|
async loadAssets(e) {
|
1245
|
-
const { dependencies: t = [] } = this.project, { dependencies:
|
1245
|
+
const { dependencies: t = [] } = this.project, { dependencies: s, library: r, components: o, materialPath: a, nodeEnv: i } = this, {
|
1246
1246
|
libraryExports: c,
|
1247
1247
|
libraryMap: l,
|
1248
1248
|
materials: f,
|
1249
1249
|
materialExports: u,
|
1250
|
-
materialMapLibrary:
|
1251
|
-
} =
|
1250
|
+
materialMapLibrary: p
|
1251
|
+
} = ct(
|
1252
1252
|
t,
|
1253
1253
|
a,
|
1254
|
-
|
1254
|
+
i === "development"
|
1255
1255
|
/* Development */
|
1256
1256
|
);
|
1257
1257
|
for (const h of c) {
|
1258
|
-
const m =
|
1259
|
-
if (
|
1260
|
-
r[h] =
|
1258
|
+
const m = s[h], d = e[h];
|
1259
|
+
if (d)
|
1260
|
+
r[h] = d;
|
1261
1261
|
else if (m)
|
1262
1262
|
e[h] = r[h] = await m();
|
1263
1263
|
else {
|
1264
1264
|
const w = l[h] || [];
|
1265
1265
|
for (const g of w)
|
1266
|
-
|
1266
|
+
ee(g) && await ut(h, x.append(g, { v: C })), te(g) && await ae(x.append(g, { v: C }));
|
1267
1267
|
r[h] = e[h];
|
1268
1268
|
}
|
1269
1269
|
}
|
1270
|
-
if (
|
1270
|
+
if (i === "development") {
|
1271
1271
|
for (const m of f)
|
1272
1272
|
await ae(x.append(m, { v: C }));
|
1273
1273
|
const h = this.materials || {};
|
1274
1274
|
for (const m of u) {
|
1275
|
-
const
|
1275
|
+
const d = e[p[m]], w = Me[m];
|
1276
1276
|
if (w)
|
1277
|
-
|
1278
|
-
|
1277
|
+
d && w.forEach((g) => {
|
1278
|
+
o[g] = d[g];
|
1279
1279
|
});
|
1280
1280
|
else {
|
1281
1281
|
const g = h[m] ? (await h[m]()).default : e[m];
|
1282
|
-
g &&
|
1283
|
-
|
1282
|
+
g && d && (g.components || []).forEach((S) => {
|
1283
|
+
o[S.name] = lt(S, d);
|
1284
1284
|
});
|
1285
1285
|
}
|
1286
1286
|
}
|
1287
1287
|
}
|
1288
1288
|
}
|
1289
1289
|
initRouter() {
|
1290
|
-
const { router: e, project: t, options:
|
1290
|
+
const { router: e, project: t, options: s, adapter: r } = this;
|
1291
1291
|
if (!e) return;
|
1292
|
-
const { routeAppendTo:
|
1292
|
+
const { routeAppendTo: o, pageRouteName: a = "page", routeMeta: i } = s, c = o ? "" : "/", l = {
|
1293
1293
|
path: `${c}${a}/:id`,
|
1294
|
-
name:
|
1294
|
+
name: F,
|
1295
1295
|
component: ue
|
1296
1296
|
}, f = {
|
1297
1297
|
path: c,
|
1298
1298
|
name: H,
|
1299
|
-
component: t?.homepage ? ue : r.startupComponent ||
|
1300
|
-
meta:
|
1299
|
+
component: t?.homepage ? ue : r.startupComponent || vs,
|
1300
|
+
meta: i
|
1301
1301
|
};
|
1302
|
-
e.hasRoute(
|
1302
|
+
e.hasRoute(F) && e.removeRoute(F), e.hasRoute(H) && e.removeRoute(H), o ? (e.addRoute(o, l), e.addRoute(o, f)) : (e.addRoute(l), e.addRoute(f));
|
1303
1303
|
}
|
1304
1304
|
install(e) {
|
1305
1305
|
const t = e.config.globalProperties.installed || {};
|
1306
|
-
for (const [
|
1307
|
-
!t[
|
1308
|
-
this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), e.provide(Re, this), e.config.globalProperties.installed = t, this.mode ===
|
1309
|
-
const a = r?.$options.name,
|
1306
|
+
for (const [s, r] of Object.entries(this.library))
|
1307
|
+
!t[s] && ft(r) && (e.use(r), t[s] = !0);
|
1308
|
+
this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), e.provide(Re, this), e.config.globalProperties.installed = t, this.mode === y.Design && (e.config.errorHandler = (s, r, o) => {
|
1309
|
+
const a = r?.$options.name, i = typeof s == "string" ? s : s?.message || s?.msg || "未知错误", c = `[ ${a} ] ${i} ${o}`;
|
1310
1310
|
console.error(
|
1311
1311
|
"[VTJ Error]:",
|
1312
1312
|
{
|
1313
|
-
err:
|
1313
|
+
err: s,
|
1314
1314
|
instance: r,
|
1315
|
-
info:
|
1315
|
+
info: o
|
1316
1316
|
},
|
1317
|
-
|
1317
|
+
s?.stack
|
1318
1318
|
), this.adapter.notify && this.adapter.notify(c, "组件渲染错误", "error");
|
1319
1319
|
});
|
1320
1320
|
}
|
1321
1321
|
getFile(e) {
|
1322
1322
|
const { blocks: t = [] } = this.project || {};
|
1323
|
-
return this.getPage(e) || t.find((
|
1323
|
+
return this.getPage(e) || t.find((s) => s.id === e) || null;
|
1324
1324
|
}
|
1325
1325
|
getPage(e) {
|
1326
|
-
const { pages: t = [] } = this.project || {},
|
1327
|
-
for (const a of
|
1326
|
+
const { pages: t = [] } = this.project || {}, s = (r, o = []) => {
|
1327
|
+
for (const a of o) {
|
1328
1328
|
if (a.id === r)
|
1329
1329
|
return a;
|
1330
1330
|
if (a.children && a.children.length) {
|
1331
|
-
const
|
1332
|
-
if (
|
1333
|
-
return
|
1331
|
+
const i = s(r, a.children);
|
1332
|
+
if (i)
|
1333
|
+
return i;
|
1334
1334
|
}
|
1335
1335
|
}
|
1336
1336
|
};
|
1337
|
-
return
|
1337
|
+
return s(e, t) || null;
|
1338
1338
|
}
|
1339
1339
|
getHomepage() {
|
1340
1340
|
const { homepage: e } = this.project || {};
|
@@ -1353,65 +1353,65 @@ class wn extends Ie {
|
|
1353
1353
|
validSuccess: !1,
|
1354
1354
|
originResponse: !0
|
1355
1355
|
}
|
1356
|
-
}).then((
|
1356
|
+
}).then((s) => s.data).catch(() => null));
|
1357
1357
|
}
|
1358
1358
|
createDslRenderer(e, t = {}) {
|
1359
|
-
const { library:
|
1360
|
-
mode:
|
1361
|
-
Vue:
|
1359
|
+
const { library: s, components: r, mode: o, apis: a } = this, i = {
|
1360
|
+
mode: o,
|
1361
|
+
Vue: s.Vue,
|
1362
1362
|
components: r,
|
1363
|
-
libs:
|
1363
|
+
libs: s,
|
1364
1364
|
apis: a,
|
1365
1365
|
window,
|
1366
1366
|
...t
|
1367
1367
|
}, c = Q({
|
1368
1368
|
getDsl: async (l) => await this.getDsl(l) || null,
|
1369
1369
|
getDslByUrl: async (l) => await this.getDslByUrl(l) || null,
|
1370
|
-
options:
|
1370
|
+
options: i
|
1371
1371
|
});
|
1372
1372
|
return Y({
|
1373
|
-
...
|
1373
|
+
...i,
|
1374
1374
|
dsl: e,
|
1375
1375
|
loader: c
|
1376
1376
|
});
|
1377
1377
|
}
|
1378
1378
|
async getRenderComponent(e, t) {
|
1379
|
-
const
|
1380
|
-
if (!
|
1379
|
+
const s = this.getFile(e);
|
1380
|
+
if (!s)
|
1381
1381
|
return P.warn(`Can not find file: ${e}`), null;
|
1382
|
-
t && t(
|
1383
|
-
const r = `.vtj/vue/${e}.vue`,
|
1384
|
-
if (
|
1385
|
-
return (await
|
1386
|
-
const a = await this.getDsl(
|
1382
|
+
t && t(s);
|
1383
|
+
const r = `.vtj/vue/${e}.vue`, o = this.modules[r];
|
1384
|
+
if (o)
|
1385
|
+
return (await o())?.default;
|
1386
|
+
const a = await this.getDsl(s.id);
|
1387
1387
|
return a ? this.createDslRenderer(a).renderer : (P.warn(`Can not find dsl: ${e}`), null);
|
1388
1388
|
}
|
1389
1389
|
defineUrlSchemaComponent(e, t) {
|
1390
1390
|
return ce(async () => {
|
1391
|
-
const
|
1392
|
-
return
|
1391
|
+
const s = await this.getDslByUrl(e);
|
1392
|
+
return s ? (s.name = t || s.name, this.createDslRenderer(s).renderer) : null;
|
1393
1393
|
});
|
1394
1394
|
}
|
1395
1395
|
definePluginComponent(e) {
|
1396
1396
|
return ce(async () => await $e(e, window));
|
1397
1397
|
}
|
1398
1398
|
}
|
1399
|
-
function
|
1400
|
-
const e = new
|
1399
|
+
function Ms(n) {
|
1400
|
+
const e = new _s(n);
|
1401
1401
|
return {
|
1402
1402
|
provider: e,
|
1403
|
-
onReady: (
|
1403
|
+
onReady: (s) => e.ready(s)
|
1404
1404
|
};
|
1405
1405
|
}
|
1406
|
-
function xe(
|
1406
|
+
function xe(n = {}) {
|
1407
1407
|
const e = me(Re);
|
1408
1408
|
if (!e)
|
1409
1409
|
throw new Error("Can not find provider");
|
1410
1410
|
if (e.nodeEnv === "development") {
|
1411
|
-
const { id: t, version:
|
1412
|
-
t &&
|
1411
|
+
const { id: t, version: s } = n;
|
1412
|
+
t && s && (async () => {
|
1413
1413
|
const r = await e.getDsl(t);
|
1414
|
-
r?.__VERSION__ !==
|
1414
|
+
r?.__VERSION__ !== s && e.adapter.notify && e.adapter.notify(
|
1415
1415
|
`[ ${r?.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,
|
1416
1416
|
"版本不一致",
|
1417
1417
|
"warning"
|
@@ -1425,29 +1425,29 @@ const Pe = {
|
|
1425
1425
|
validSuccess: !0,
|
1426
1426
|
originResponse: !1,
|
1427
1427
|
failMessage: !0,
|
1428
|
-
validate: (
|
1429
|
-
},
|
1428
|
+
validate: (n) => n.data?.code === 0
|
1429
|
+
}, ws = (n, e = "/__vtj__/api/:type.json") => (t, s) => n.send({
|
1430
1430
|
url: e,
|
1431
1431
|
method: "post",
|
1432
1432
|
params: { type: t },
|
1433
1433
|
data: {
|
1434
1434
|
type: t,
|
1435
|
-
data:
|
1435
|
+
data: s
|
1436
1436
|
},
|
1437
1437
|
settings: Pe
|
1438
|
-
}),
|
1438
|
+
}), Ss = (n, e = "/__vtj__/api/uploader.json") => async (t, s) => await n.send({
|
1439
1439
|
url: e,
|
1440
1440
|
method: "post",
|
1441
1441
|
data: {
|
1442
1442
|
files: t,
|
1443
|
-
projectId:
|
1443
|
+
projectId: s
|
1444
1444
|
},
|
1445
1445
|
settings: {
|
1446
1446
|
...Pe,
|
1447
1447
|
type: "data"
|
1448
1448
|
}
|
1449
1449
|
}).then((r) => r && r[0] ? r[0] : null).catch(() => null);
|
1450
|
-
function
|
1450
|
+
function Ds(n) {
|
1451
1451
|
return fe({
|
1452
1452
|
settings: {
|
1453
1453
|
type: "json",
|
@@ -1456,17 +1456,17 @@ function Hn(s) {
|
|
1456
1456
|
failMessage: !0,
|
1457
1457
|
validate: (e) => e.data?.code === 0,
|
1458
1458
|
showError: (e) => {
|
1459
|
-
|
1459
|
+
n && n(e || "未知错误");
|
1460
1460
|
}
|
1461
1461
|
}
|
1462
1462
|
});
|
1463
1463
|
}
|
1464
|
-
class
|
1464
|
+
class ne {
|
1465
1465
|
api;
|
1466
1466
|
pluginCaches = {};
|
1467
1467
|
uploader;
|
1468
1468
|
constructor(e = K) {
|
1469
|
-
this.api =
|
1469
|
+
this.api = ws(e), this.uploader = Ss(e);
|
1470
1470
|
}
|
1471
1471
|
async getExtension() {
|
1472
1472
|
console.log("BaseService.getExtension");
|
@@ -1539,85 +1539,85 @@ class se {
|
|
1539
1539
|
return await this.api("clearStaticFiles", e).catch(() => "");
|
1540
1540
|
}
|
1541
1541
|
async getPluginMaterial(e) {
|
1542
|
-
const { urls: t = [] } = e,
|
1543
|
-
if (!
|
1544
|
-
const r = this.pluginCaches[
|
1545
|
-
return r || (this.pluginCaches[
|
1546
|
-
url:
|
1542
|
+
const { urls: t = [] } = e, s = t.filter((o) => it(o))[0];
|
1543
|
+
if (!s) return null;
|
1544
|
+
const r = this.pluginCaches[s];
|
1545
|
+
return r || (this.pluginCaches[s] = K.send({
|
1546
|
+
url: s,
|
1547
1547
|
method: "get",
|
1548
1548
|
settings: {
|
1549
1549
|
validSuccess: !1,
|
1550
1550
|
originResponse: !0
|
1551
1551
|
}
|
1552
|
-
}).then((
|
1552
|
+
}).then((o) => o.data).catch(() => null));
|
1553
1553
|
}
|
1554
1554
|
async genSource(e) {
|
1555
1555
|
return console.log("BaseService.genSource", e), "";
|
1556
1556
|
}
|
1557
1557
|
}
|
1558
|
-
const
|
1558
|
+
const v = new Je({
|
1559
1559
|
type: "local",
|
1560
1560
|
expired: 0,
|
1561
1561
|
prefix: "__VTJ_"
|
1562
1562
|
});
|
1563
|
-
class
|
1563
|
+
class Hs extends ne {
|
1564
1564
|
init(e) {
|
1565
|
-
const t = new O(e),
|
1566
|
-
return
|
1565
|
+
const t = new O(e), s = v.get(`project_${t.id}`), r = Object.assign(t.toDsl(), s || {});
|
1566
|
+
return v.save(`project_${t.id}`, r), Promise.resolve(r);
|
1567
1567
|
}
|
1568
1568
|
saveProject(e) {
|
1569
1569
|
const t = new O(e);
|
1570
|
-
return
|
1570
|
+
return v.save(`project_${t.id}`, t.toDsl()), Promise.resolve(!0);
|
1571
1571
|
}
|
1572
1572
|
saveMaterials(e, t) {
|
1573
|
-
return
|
1573
|
+
return v.save(`materials_${e.id}`, X(t)), Promise.resolve(!0);
|
1574
1574
|
}
|
1575
1575
|
saveFile(e) {
|
1576
|
-
return
|
1576
|
+
return v.save(`file_${e.id}`, e), Promise.resolve(!0);
|
1577
1577
|
}
|
1578
1578
|
getFile(e) {
|
1579
|
-
const t =
|
1579
|
+
const t = v.get(`file_${e}`);
|
1580
1580
|
return t ? Promise.resolve(t) : Promise.reject(null);
|
1581
1581
|
}
|
1582
1582
|
removeFile(e) {
|
1583
|
-
return
|
1583
|
+
return v.remove(`file_${e}`), Promise.resolve(!0);
|
1584
1584
|
}
|
1585
1585
|
saveHistory(e) {
|
1586
|
-
return
|
1586
|
+
return v.save(`history_${e.id}`, e), Promise.resolve(!0);
|
1587
1587
|
}
|
1588
1588
|
removeHistory(e) {
|
1589
|
-
const t =
|
1589
|
+
const t = v.get(`history_${e}`);
|
1590
1590
|
if (t) {
|
1591
|
-
const r = (t.items || []).map((
|
1592
|
-
this.removeHistoryItem(e, r),
|
1591
|
+
const r = (t.items || []).map((o) => o.id);
|
1592
|
+
this.removeHistoryItem(e, r), v.remove(`history_${e}`);
|
1593
1593
|
}
|
1594
1594
|
return Promise.resolve(!0);
|
1595
1595
|
}
|
1596
1596
|
getHistory(e) {
|
1597
|
-
const t =
|
1598
|
-
return Promise.resolve(
|
1597
|
+
const t = v.get(`history_${e}`), s = new pe(t || { id: e });
|
1598
|
+
return Promise.resolve(s.toDsl());
|
1599
1599
|
}
|
1600
1600
|
getHistoryItem(e, t) {
|
1601
|
-
const
|
1602
|
-
return Promise.resolve(
|
1601
|
+
const s = v.get(`history_${e}_${t}`);
|
1602
|
+
return Promise.resolve(s);
|
1603
1603
|
}
|
1604
1604
|
saveHistoryItem(e, t) {
|
1605
|
-
return
|
1605
|
+
return v.save(`history_${e}_${t.id}`, t), Promise.resolve(!0);
|
1606
1606
|
}
|
1607
1607
|
removeHistoryItem(e, t) {
|
1608
|
-
return t.forEach((
|
1609
|
-
|
1608
|
+
return t.forEach((s) => {
|
1609
|
+
v.remove(`history_${e}_${s}`);
|
1610
1610
|
}), Promise.resolve(!0);
|
1611
1611
|
}
|
1612
1612
|
}
|
1613
|
-
class
|
1613
|
+
class bs extends ne {
|
1614
1614
|
projects = {};
|
1615
1615
|
materials = {};
|
1616
1616
|
files = {};
|
1617
1617
|
histories = {};
|
1618
1618
|
historyItems = {};
|
1619
1619
|
init(e) {
|
1620
|
-
const t = new O(e),
|
1620
|
+
const t = new O(e), s = this.projects[t.id] || {}, r = Object.assign(t.toDsl(), s);
|
1621
1621
|
return this.projects[r.id] = r, Promise.resolve(r);
|
1622
1622
|
}
|
1623
1623
|
saveProject(e) {
|
@@ -1643,35 +1643,35 @@ class jn extends se {
|
|
1643
1643
|
removeHistory(e) {
|
1644
1644
|
const t = this.histories[e];
|
1645
1645
|
if (t) {
|
1646
|
-
const r = (t.items || []).map((
|
1646
|
+
const r = (t.items || []).map((o) => o.id);
|
1647
1647
|
this.removeHistoryItem(e, r), delete this.historyItems[e];
|
1648
1648
|
}
|
1649
1649
|
return Promise.resolve(!0);
|
1650
1650
|
}
|
1651
1651
|
getHistory(e) {
|
1652
|
-
const t = this.histories[e],
|
1653
|
-
return Promise.resolve(
|
1652
|
+
const t = this.histories[e], s = new pe(t || { id: e });
|
1653
|
+
return Promise.resolve(s);
|
1654
1654
|
}
|
1655
1655
|
getHistoryItem(e, t) {
|
1656
|
-
const
|
1656
|
+
const s = `${e}_${t}`, r = this.historyItems[s] || {};
|
1657
1657
|
return Promise.resolve(r);
|
1658
1658
|
}
|
1659
1659
|
saveHistoryItem(e, t) {
|
1660
|
-
const
|
1661
|
-
return this.historyItems[
|
1660
|
+
const s = `${e}_${t.id}`;
|
1661
|
+
return this.historyItems[s] = t, Promise.resolve(!0);
|
1662
1662
|
}
|
1663
1663
|
removeHistoryItem(e, t) {
|
1664
|
-
return t.forEach((
|
1665
|
-
const r = `${e}_${
|
1664
|
+
return t.forEach((s) => {
|
1665
|
+
const r = `${e}_${s}`;
|
1666
1666
|
delete this.historyItems[r];
|
1667
1667
|
}), Promise.resolve(!0);
|
1668
1668
|
}
|
1669
1669
|
}
|
1670
1670
|
let D = null;
|
1671
|
-
function
|
1672
|
-
return D || (D = new
|
1671
|
+
function Os() {
|
1672
|
+
return D || (D = new bs(), D);
|
1673
1673
|
}
|
1674
|
-
class
|
1674
|
+
class Bs extends ne {
|
1675
1675
|
getFileCaches = {};
|
1676
1676
|
async getExtension() {
|
1677
1677
|
return await this.api("getExtension", {}).catch(() => {
|
@@ -1726,46 +1726,46 @@ class Nn extends se {
|
|
1726
1726
|
);
|
1727
1727
|
}
|
1728
1728
|
}
|
1729
|
-
function Ce(
|
1730
|
-
return t.map((
|
1731
|
-
const { id: r, title:
|
1729
|
+
function Ce(n, e, t = []) {
|
1730
|
+
return t.map((s) => {
|
1731
|
+
const { id: r, title: o, icon: a, children: i, hidden: c } = s;
|
1732
1732
|
return {
|
1733
1733
|
id: r,
|
1734
|
-
title:
|
1734
|
+
title: o,
|
1735
1735
|
icon: a,
|
1736
1736
|
hidden: c,
|
1737
|
-
url: `${
|
1738
|
-
children:
|
1737
|
+
url: `${n}/${e}/${r}`,
|
1738
|
+
children: i && i.length ? Ce(n, e, i) : void 0
|
1739
1739
|
};
|
1740
1740
|
});
|
1741
1741
|
}
|
1742
|
-
function
|
1743
|
-
if (!e) return
|
1742
|
+
function Fe(n, e) {
|
1743
|
+
if (!e) return n;
|
1744
1744
|
let t = [];
|
1745
|
-
for (const
|
1746
|
-
if (
|
1747
|
-
const r =
|
1748
|
-
r.length && (
|
1745
|
+
for (const s of n)
|
1746
|
+
if (s.children && s.children.length) {
|
1747
|
+
const r = Fe(s.children, e);
|
1748
|
+
r.length && (s.children = r, t.push(s));
|
1749
1749
|
} else
|
1750
|
-
e.can(
|
1750
|
+
e.can(s.id.toString()) && t.push(s);
|
1751
1751
|
return t;
|
1752
1752
|
}
|
1753
|
-
function
|
1753
|
+
function Ns(n) {
|
1754
1754
|
const {
|
1755
1755
|
menuPathPrefix: e = "",
|
1756
1756
|
pageRouteName: t = "page",
|
1757
|
-
disableMenusFilter:
|
1758
|
-
} =
|
1759
|
-
|
1760
|
-
const { name:
|
1761
|
-
if (
|
1762
|
-
const
|
1763
|
-
|
1764
|
-
} else if (
|
1765
|
-
const
|
1766
|
-
|
1757
|
+
disableMenusFilter: s = !1
|
1758
|
+
} = n || {}, r = xe(), o = _e(), a = yt(), i = T(!1), c = T(!1), l = r.project;
|
1759
|
+
tt(() => {
|
1760
|
+
const { name: p, params: h, meta: m } = o;
|
1761
|
+
if (p === F) {
|
1762
|
+
const d = r.getPage(h.id);
|
1763
|
+
i.value = !d?.mask, c.value = !!d?.pure;
|
1764
|
+
} else if (p === H) {
|
1765
|
+
const d = r.getHomepage();
|
1766
|
+
i.value = !d?.mask, c.value = !!d?.pure;
|
1767
1767
|
} else
|
1768
|
-
|
1768
|
+
i.value = !m.mask, c.value = !!m.pure;
|
1769
1769
|
});
|
1770
1770
|
const f = Ce(
|
1771
1771
|
e,
|
@@ -1773,79 +1773,79 @@ function Un(s) {
|
|
1773
1773
|
l?.pages
|
1774
1774
|
), u = l?.config;
|
1775
1775
|
return {
|
1776
|
-
disabled:
|
1776
|
+
disabled: i,
|
1777
1777
|
logo: u?.logo,
|
1778
1778
|
themeSwitchable: u?.themeSwitchable,
|
1779
1779
|
title: u?.title || l?.description || l?.name || "VTJ App",
|
1780
|
-
menus:
|
1780
|
+
menus: s ? f : Fe(f, a),
|
1781
1781
|
pure: c
|
1782
1782
|
};
|
1783
1783
|
}
|
1784
1784
|
export {
|
1785
1785
|
be as ACCESS_KEY,
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1786
|
+
Ts as Access,
|
1787
|
+
ot as BUILD_IN_TAGS,
|
1788
|
+
st as BUILT_IN_DIRECTIVES,
|
1789
|
+
ne as BaseService,
|
1790
1790
|
le as CONTEXT_HOST,
|
1791
|
-
|
1792
|
-
|
1791
|
+
Et as Context,
|
1792
|
+
y as ContextMode,
|
1793
1793
|
nt as DATA_TYPES,
|
1794
1794
|
H as HOMEPAGE_ROUTE_NAME,
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1795
|
+
rt as HTML_TAGS,
|
1796
|
+
Fs as JSCodeToString,
|
1797
|
+
xs as LIFE_CYCLES_LIST,
|
1798
|
+
Bs as LocalService,
|
1799
|
+
bs as MemoryService,
|
1800
|
+
ys as NodeEnv,
|
1801
|
+
F as PAGE_ROUTE_NAME,
|
1802
|
+
_s as Provider,
|
1803
|
+
gs as Startup,
|
1804
|
+
Hs as StorageService,
|
1805
1805
|
C as VTJ_RENDERER_VERSION,
|
1806
1806
|
Se as adoptedStyleSheets,
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1807
|
+
Is as clearLoaderCache,
|
1808
|
+
As as createAdapter,
|
1809
|
+
Ps as createAssetScripts,
|
1810
|
+
Cs as createAssetsCss,
|
1811
|
+
Tt as createDataSources,
|
1812
1812
|
Q as createLoader,
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1813
|
+
Os as createMemoryService,
|
1814
|
+
wt as createMetaApi,
|
1815
|
+
jt as createMock,
|
1816
|
+
Ms as createProvider,
|
1817
1817
|
Y as createRenderer,
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1818
|
+
_t as createSchemaApi,
|
1819
|
+
St as createSchemaApis,
|
1820
|
+
Ds as createServiceRequest,
|
1821
|
+
Mt as defaultLoader,
|
1822
1822
|
M as fillBasePath,
|
1823
1823
|
Ee as getModifiers,
|
1824
1824
|
$e as getPlugin,
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1825
|
+
lt as getRawComponent,
|
1826
|
+
ht as isBuiltInTag,
|
1827
|
+
ee as isCSSUrl,
|
1828
|
+
gt as isJSCode,
|
1829
1829
|
_ as isJSExpression,
|
1830
1830
|
I as isJSFunction,
|
1831
1831
|
it as isJSON,
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1832
|
+
te as isJSUrl,
|
1833
|
+
mt as isNativeTag,
|
1834
|
+
ft as isVuePlugin,
|
1835
|
+
ut as loadCss,
|
1836
|
+
pt as loadCssUrl,
|
1837
1837
|
dt as loadScriptUrl,
|
1838
|
-
|
1839
|
-
|
1838
|
+
$t as mockApi,
|
1839
|
+
bt as mockApis,
|
1840
1840
|
je as mockCleanup,
|
1841
1841
|
B as nodeRender,
|
1842
|
-
|
1843
|
-
|
1842
|
+
ct as parseDeps,
|
1843
|
+
A as parseExpression,
|
1844
1844
|
G as parseFunction,
|
1845
1845
|
Re as providerKey,
|
1846
|
-
|
1846
|
+
at as removeProdFlag,
|
1847
1847
|
we as toString,
|
1848
1848
|
yt as useAccess,
|
1849
|
-
|
1849
|
+
Ns as useMask,
|
1850
1850
|
xe as useProvider
|
1851
1851
|
};
|