@vtj/renderer 0.13.15 → 0.13.17
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 +8 -7
- package/dist/index.mjs +358 -341
- package/package.json +6 -6
- package/types/utils/util.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Base as ze, BUILT_IN_COMPONENTS as Ge, ProjectModel as
|
2
|
-
import { isUrl as se, url as k, dedupArray as Ve, isString as C, isFunction as
|
1
|
+
import { Base as ze, BUILT_IN_COMPONENTS as Ge, ProjectModel as q, HistoryModel as Ee } from "@vtj/core";
|
2
|
+
import { isUrl as se, url as k, dedupArray as Ve, isString as C, isFunction as L, logger as F, storage as X, cookie as Y, toArray as ye, unRSA as _e, delay as J, createRequest as Re, jsonp as be, merge as Qe, pathToRegexp as We, pathToRegexpMatch as Xe, formDataToJson as Ye, Queue as Ze, cloneDeep as we, camelCase as P, isObject as et, upperFirst as tt, pick as st, request as ne, loadScript as Se, Storage as nt, mapToObject as ue } from "@vtj/utils";
|
3
3
|
import * as z from "vue";
|
4
4
|
import { inject as Pe, defineComponent as Ce, h as re, ref as oe, watchEffect as rt, defineAsyncComponent as $e } from "vue";
|
5
5
|
import { useRoute as Ae } from "vue-router";
|
@@ -7,10 +7,10 @@ import { useRoute as Ae } from "vue-router";
|
|
7
7
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
8
8
|
* @name @vtj/renderer
|
9
9
|
* @author CHC chenhuachun1549@dingtalk.com
|
10
|
-
* @version 0.13.
|
10
|
+
* @version 0.13.17
|
11
11
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
12
12
|
*/
|
13
|
-
const O = "0.13.
|
13
|
+
const O = "0.13.17";
|
14
14
|
var y = /* @__PURE__ */ ((n) => (n.Runtime = "Runtime", n.Design = "Design", n.Raw = "Raw", n.VNode = "VNode", n))(y || {});
|
15
15
|
const je = [
|
16
16
|
"$el",
|
@@ -165,21 +165,21 @@ function ut(n, e = !1) {
|
|
165
165
|
return e && n.endsWith(".prod.js") ? n.replace(".prod.js", ".js") : n;
|
166
166
|
}
|
167
167
|
function ft(n, e, t = !1) {
|
168
|
-
const s = n.filter((h) => !!h.enabled), r = [], o = [],
|
168
|
+
const s = n.filter((h) => !!h.enabled), r = [], o = [], a = [], i = [], l = {}, c = {}, f = [], u = {};
|
169
169
|
return s.forEach(
|
170
170
|
({ urls: h, assetsUrl: p, library: d, assetsLibrary: g, localeLibrary: v }) => {
|
171
171
|
h?.forEach((m) => {
|
172
172
|
V(m) && r.push(ut(m, t)), G(m) && o.push(m);
|
173
|
-
}), d && (
|
173
|
+
}), d && (i.push(d), l[d] = B(h || [], e), v && (c[d] = v)), p && a.push(p), g && f.push(g), d && g && (u[g] = d);
|
174
174
|
}
|
175
175
|
), {
|
176
176
|
scripts: B(r, e),
|
177
177
|
css: B(o, e),
|
178
|
-
materials: B(
|
179
|
-
libraryExports:
|
178
|
+
materials: B(a, e),
|
179
|
+
libraryExports: i,
|
180
180
|
materialExports: Ve(f),
|
181
|
-
materialMapLibrary:
|
182
|
-
libraryMap:
|
181
|
+
materialMapLibrary: u,
|
182
|
+
libraryMap: l,
|
183
183
|
libraryLocaleMap: c
|
184
184
|
};
|
185
185
|
}
|
@@ -197,58 +197,58 @@ function dt(n = []) {
|
|
197
197
|
function ht(n, e) {
|
198
198
|
const t = (c) => {
|
199
199
|
const f = [];
|
200
|
-
let
|
201
|
-
for (;
|
202
|
-
if (/\s/.test(c[
|
203
|
-
|
200
|
+
let u = 0;
|
201
|
+
for (; u < c.length; ) {
|
202
|
+
if (/\s/.test(c[u])) {
|
203
|
+
u++;
|
204
204
|
continue;
|
205
205
|
}
|
206
|
-
if (c.substring(
|
207
|
-
const m = c.indexOf("*/",
|
206
|
+
if (c.substring(u, u + 2) === "/*") {
|
207
|
+
const m = c.indexOf("*/", u + 2);
|
208
208
|
if (m !== -1) {
|
209
|
-
|
209
|
+
u = m + 2;
|
210
210
|
continue;
|
211
211
|
}
|
212
212
|
}
|
213
|
-
if (c[
|
214
|
-
const m =
|
215
|
-
for (;
|
216
|
-
|
217
|
-
const
|
218
|
-
if (c[
|
213
|
+
if (c[u] === "@") {
|
214
|
+
const m = u;
|
215
|
+
for (; u < c.length && c[u] !== "{" && c[u] !== ";"; )
|
216
|
+
u++;
|
217
|
+
const R = c.substring(m, u).trim(), _ = R.includes("@keyframes");
|
218
|
+
if (c[u] === ";")
|
219
219
|
f.push({
|
220
220
|
type: "simple-at-rule",
|
221
|
-
content: c.substring(m,
|
222
|
-
}),
|
223
|
-
else if (c[
|
224
|
-
const x =
|
221
|
+
content: c.substring(m, u + 1)
|
222
|
+
}), u++;
|
223
|
+
else if (c[u] === "{") {
|
224
|
+
const x = u + 1;
|
225
225
|
let A = 1;
|
226
|
-
for (
|
227
|
-
c[
|
228
|
-
const Q = c.substring(m,
|
226
|
+
for (u++; u < c.length && A > 0; )
|
227
|
+
c[u] === "{" ? A++ : c[u] === "}" && A--, u++;
|
228
|
+
const Q = c.substring(m, u), b = c.substring(x, u - 1);
|
229
229
|
f.push({
|
230
230
|
type: _ ? "keyframes" : "at-rule",
|
231
|
-
rule:
|
231
|
+
rule: R,
|
232
232
|
content: Q,
|
233
|
-
inner:
|
233
|
+
inner: b
|
234
234
|
});
|
235
235
|
}
|
236
236
|
continue;
|
237
237
|
}
|
238
|
-
const h =
|
239
|
-
for (;
|
240
|
-
|
241
|
-
if (
|
242
|
-
const p = c.substring(h,
|
238
|
+
const h = u;
|
239
|
+
for (; u < c.length && c[u] !== "{"; )
|
240
|
+
u++;
|
241
|
+
if (u >= c.length) break;
|
242
|
+
const p = c.substring(h, u).trim();
|
243
243
|
if (!p) {
|
244
|
-
|
244
|
+
u++;
|
245
245
|
continue;
|
246
246
|
}
|
247
|
-
const d =
|
247
|
+
const d = u + 1;
|
248
248
|
let g = 1;
|
249
|
-
for (
|
250
|
-
c[
|
251
|
-
const v = c.substring(d,
|
249
|
+
for (u++; u < c.length && g > 0; )
|
250
|
+
c[u] === "{" ? g++ : c[u] === "}" && g--, u++;
|
251
|
+
const v = c.substring(d, u - 1);
|
252
252
|
f.push({
|
253
253
|
type: "rule",
|
254
254
|
selector: p,
|
@@ -259,20 +259,20 @@ function ht(n, e) {
|
|
259
259
|
}, s = (c) => {
|
260
260
|
const f = c.trim();
|
261
261
|
return /^(from|to|\d+(\.\d+)?%)$/.test(f);
|
262
|
-
}, r = (c) => c.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (f,
|
263
|
-
const p =
|
262
|
+
}, r = (c) => c.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (f, u, h) => {
|
263
|
+
const p = u.trim(), d = h.trim();
|
264
264
|
return p ? `${p}[${e}] ${d}` : d;
|
265
265
|
}), o = (c) => {
|
266
266
|
const f = c.trim();
|
267
267
|
if (!f || f.includes(`[${e}]`) || /^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(f) || s(f))
|
268
268
|
return f;
|
269
|
-
const
|
270
|
-
if (
|
271
|
-
const [, h, p = ""] =
|
269
|
+
const u = f.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);
|
270
|
+
if (u) {
|
271
|
+
const [, h, p = ""] = u, d = h.trim();
|
272
272
|
return d ? `${d}[${e}]${p}` : f;
|
273
273
|
}
|
274
274
|
return `${f}[${e}]`;
|
275
|
-
},
|
275
|
+
}, a = (c) => r(c).split(",").map((u) => o(u)).filter((u) => u.trim()).join(", "), i = (c) => c.map((f) => {
|
276
276
|
switch (f.type) {
|
277
277
|
case "simple-at-rule":
|
278
278
|
return f.content;
|
@@ -280,7 +280,7 @@ function ht(n, e) {
|
|
280
280
|
return f.content;
|
281
281
|
case "at-rule":
|
282
282
|
try {
|
283
|
-
const h = t(f.inner), p =
|
283
|
+
const h = t(f.inner), p = i(h);
|
284
284
|
return `${f.rule} { ${p} }`;
|
285
285
|
} catch {
|
286
286
|
return f.content;
|
@@ -288,23 +288,23 @@ function ht(n, e) {
|
|
288
288
|
case "rule":
|
289
289
|
if (!f.selector || !f.content)
|
290
290
|
return "";
|
291
|
-
const
|
292
|
-
return
|
291
|
+
const u = a(f.selector);
|
292
|
+
return u.trim() ? `${u} { ${f.content} }` : "";
|
293
293
|
default:
|
294
294
|
return "";
|
295
295
|
}
|
296
|
-
}).filter((f) => f.trim()).join(" "),
|
296
|
+
}).filter((f) => f.trim()).join(" "), l = (c) => c.replace(/\s*{\s*/g, " { ").replace(/\s*}\s*/g, " } ").replace(/\s*;\s*/g, "; ").replace(/\s*,\s*/g, ", ").replace(/\s+/g, " ").replace(/^\s+|\s+$/g, "").replace(/\s*}\s*}/g, " } }").trim();
|
297
297
|
try {
|
298
298
|
const c = n.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g, "").replace(/^\s+|\s+$/gm, "").replace(/\n\s*\n/g, `
|
299
|
-
`), f = t(c),
|
300
|
-
return u
|
299
|
+
`), f = t(c), u = i(f);
|
300
|
+
return l(u);
|
301
301
|
} catch (c) {
|
302
302
|
return console.error("CSS scoping failed:", c), console.error("Input CSS:", n), n.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
303
303
|
/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,
|
304
304
|
(f) => f
|
305
305
|
).replace(/([^{}@]+)(?=\s*{)/g, (f) => {
|
306
|
-
const
|
307
|
-
return !
|
306
|
+
const u = f.trim();
|
307
|
+
return !u || u.startsWith("@") || u.includes(`[${e}]`) || s(u) ? f : `${u}[${e}]`;
|
308
308
|
});
|
309
309
|
}
|
310
310
|
}
|
@@ -312,18 +312,34 @@ function Ie(n) {
|
|
312
312
|
return C(n) ? n : JSON.stringify(n);
|
313
313
|
}
|
314
314
|
function fe(n, e, t, s = !1) {
|
315
|
-
const r = n.CSSStyleSheet, o = s ? `data-v-${e}` : e,
|
315
|
+
const r = n.CSSStyleSheet, o = s ? `data-v-${e}` : e, a = s ? ht(t, o) : t;
|
316
316
|
if (r.prototype.replaceSync) {
|
317
|
-
const
|
318
|
-
|
319
|
-
const
|
320
|
-
(
|
317
|
+
const i = new r();
|
318
|
+
i.id = e, i.replaceSync(a);
|
319
|
+
const l = n.document, c = l.adoptedStyleSheets, f = Array.from(c).filter(
|
320
|
+
(u) => u.id !== e
|
321
321
|
);
|
322
|
-
|
322
|
+
l.adoptedStyleSheets = [...f, i];
|
323
323
|
} else {
|
324
|
-
const
|
325
|
-
let
|
326
|
-
|
324
|
+
const i = n.document;
|
325
|
+
let l = i.getElementById(e);
|
326
|
+
l ? l.innerHTML = a : (l = i.createElement("style"), l.id = e, l.innerHTML = a, i.head.appendChild(l));
|
327
|
+
}
|
328
|
+
}
|
329
|
+
function $s(n) {
|
330
|
+
const e = n.adoptedStyleSheets || [];
|
331
|
+
let t = "";
|
332
|
+
if (e.forEach((s) => {
|
333
|
+
try {
|
334
|
+
for (const r of s.cssRules)
|
335
|
+
t += r.cssText + `
|
336
|
+
`;
|
337
|
+
} catch (r) {
|
338
|
+
console.error("Failed to read cssRules from adopted stylesheet:", r);
|
339
|
+
}
|
340
|
+
}), t) {
|
341
|
+
const s = n.createElement("style");
|
342
|
+
s.textContent = t, n.head.appendChild(s);
|
327
343
|
}
|
328
344
|
}
|
329
345
|
async function mt(n, e) {
|
@@ -334,26 +350,26 @@ function ke(n, e = window) {
|
|
334
350
|
const t = e.document, s = e.document.head;
|
335
351
|
for (const r of n)
|
336
352
|
if (!t.getElementById(r)) {
|
337
|
-
const
|
338
|
-
|
353
|
+
const a = t.createElement("link");
|
354
|
+
a.rel = "stylesheet", a.id = r, a.href = r, s.appendChild(a);
|
339
355
|
}
|
340
356
|
}
|
341
357
|
async function Fe(n, e, t = window) {
|
342
358
|
const s = t.document, r = t.document.head;
|
343
359
|
let o = t[e];
|
344
|
-
return o ? o.default || o : new Promise((
|
345
|
-
for (const
|
360
|
+
return o ? o.default || o : new Promise((a, i) => {
|
361
|
+
for (const l of n) {
|
346
362
|
const c = s.createElement("script");
|
347
|
-
c.src =
|
348
|
-
o = t[e], o ?
|
363
|
+
c.src = l, c.onload = () => {
|
364
|
+
o = t[e], o ? a(o.default || o) : i(null);
|
349
365
|
}, c.onerror = (f) => {
|
350
|
-
|
366
|
+
i(f);
|
351
367
|
}, r.appendChild(c);
|
352
368
|
}
|
353
369
|
});
|
354
370
|
}
|
355
371
|
function gt(n) {
|
356
|
-
return
|
372
|
+
return L(n) || L(n?.install);
|
357
373
|
}
|
358
374
|
function vt(n) {
|
359
375
|
return ct.includes(n);
|
@@ -368,7 +384,7 @@ function T(n = window) {
|
|
368
384
|
if (t && window)
|
369
385
|
return window.Mock = t, t;
|
370
386
|
}
|
371
|
-
function
|
387
|
+
function js(n, e, t) {
|
372
388
|
Object.assign(e.meta, t.meta);
|
373
389
|
const s = n?._container;
|
374
390
|
t?.type === "page" && s.classList.add("is-page"), t?.pure && s.classList.add("is-pure");
|
@@ -377,13 +393,13 @@ function H(n, e, t = !1, s = !1, r = !1) {
|
|
377
393
|
try {
|
378
394
|
const o = ['"use strict";', "var __self = arguments[0];"];
|
379
395
|
o.push("return ");
|
380
|
-
let
|
381
|
-
r || (
|
382
|
-
`) +
|
383
|
-
const
|
384
|
-
${
|
385
|
-
` : `with(${t ? "{}" : "$scope || {}"}) { ${
|
386
|
-
return new Function("$scope",
|
396
|
+
let a = (n.value || "").trim();
|
397
|
+
r || (a = a.replace(/this(\W|$)/g, (l, c) => `__self${c}`)), a = o.join(`
|
398
|
+
`) + a;
|
399
|
+
const i = r ? `
|
400
|
+
${a}
|
401
|
+
` : `with(${t ? "{}" : "$scope || {}"}) { ${a} }`;
|
402
|
+
return new Function("$scope", i)(e);
|
387
403
|
} catch (o) {
|
388
404
|
if (F.error("parseExpression.error", o, n, e?.__self ?? e), s)
|
389
405
|
throw o;
|
@@ -409,7 +425,7 @@ function S(n) {
|
|
409
425
|
function _t(n) {
|
410
426
|
return j(n) || S(n);
|
411
427
|
}
|
412
|
-
function
|
428
|
+
function Es(n) {
|
413
429
|
return _t(n) ? n.value : JSON.stringify(n);
|
414
430
|
}
|
415
431
|
const wt = {
|
@@ -544,7 +560,7 @@ class pe {
|
|
544
560
|
return t();
|
545
561
|
{
|
546
562
|
const { noPermissionMessage: s = "无权限访问", unauthorized: r = !1 } = this.options;
|
547
|
-
return await this.showTip(s),
|
563
|
+
return await this.showTip(s), L(r) ? (r(), t(!1)) : C(r) ? t(r) : t(!1);
|
548
564
|
}
|
549
565
|
}
|
550
566
|
t(!1), await J(0), this.toLogin();
|
@@ -582,19 +598,19 @@ class pe {
|
|
582
598
|
function St() {
|
583
599
|
return Pe(Me, null);
|
584
600
|
}
|
585
|
-
function
|
601
|
+
function Rs(n = {}) {
|
586
602
|
const {
|
587
603
|
notify: e,
|
588
604
|
loading: t,
|
589
605
|
settings: s = {},
|
590
606
|
Startup: r,
|
591
607
|
access: o,
|
592
|
-
useTitle:
|
593
|
-
alert:
|
608
|
+
useTitle: a,
|
609
|
+
alert: i
|
594
610
|
} = n;
|
595
|
-
let
|
611
|
+
let l = null;
|
596
612
|
return {
|
597
|
-
request:
|
613
|
+
request: Re({
|
598
614
|
settings: {
|
599
615
|
type: "form",
|
600
616
|
validSuccess: !0,
|
@@ -606,21 +622,21 @@ function Es(n = {}) {
|
|
606
622
|
e && e(f || "未知错误");
|
607
623
|
},
|
608
624
|
showLoading: () => {
|
609
|
-
|
625
|
+
l && l.close(), t && (l = t());
|
610
626
|
},
|
611
627
|
hideLoading: () => {
|
612
|
-
|
628
|
+
l && (l.close(), l = null);
|
613
629
|
},
|
614
630
|
...s
|
615
631
|
}
|
616
632
|
}),
|
617
|
-
jsonp:
|
633
|
+
jsonp: be,
|
618
634
|
notify: e,
|
619
635
|
loading: t,
|
620
|
-
useTitle:
|
621
|
-
alert:
|
636
|
+
useTitle: a,
|
637
|
+
alert: i,
|
622
638
|
startupComponent: r,
|
623
|
-
access: o ? new pe({ alert:
|
639
|
+
access: o ? new pe({ alert: i, ...o }) : void 0
|
624
640
|
};
|
625
641
|
}
|
626
642
|
function bs(n = {}) {
|
@@ -642,19 +658,19 @@ function $t(n, e) {
|
|
642
658
|
headers: r
|
643
659
|
}
|
644
660
|
};
|
645
|
-
return (
|
661
|
+
return (a, i) => (delete o.data, s.send(Qe(o, i || {}, { data: a })));
|
646
662
|
}
|
647
663
|
}
|
648
664
|
function jt(n, e) {
|
649
665
|
const { metaQuery: t } = e;
|
650
666
|
if (!t) return;
|
651
667
|
const { code: s, queryCode: r } = n;
|
652
|
-
return (o,
|
668
|
+
return (o, a) => {
|
653
669
|
if (!t) {
|
654
670
|
console.warn("adapter.metaQuery is not defined!");
|
655
671
|
return;
|
656
672
|
}
|
657
|
-
return t(s, r, o,
|
673
|
+
return t(s, r, o, a);
|
658
674
|
};
|
659
675
|
}
|
660
676
|
function Et(n = [], e = [], t) {
|
@@ -665,19 +681,19 @@ function Et(n = [], e = [], t) {
|
|
665
681
|
s[r.id] = jt(r, t);
|
666
682
|
return s;
|
667
683
|
}
|
668
|
-
async function
|
684
|
+
async function Rt(n = [], e = window) {
|
669
685
|
const t = T(e);
|
670
686
|
t && (Oe(e), n.forEach((s) => Pt(t, s)));
|
671
687
|
}
|
672
|
-
function
|
688
|
+
function bt(n, e = window) {
|
673
689
|
const t = S(n.mockTemplate) && n.mockTemplate.value ? E(n.mockTemplate, {}, !0) : void 0, s = T(e);
|
674
690
|
return async (...r) => {
|
675
691
|
let o = {};
|
676
692
|
if (t)
|
677
693
|
try {
|
678
694
|
o = await t.apply(t, r);
|
679
|
-
} catch (
|
680
|
-
F.warn("模拟数据模版异常",
|
695
|
+
} catch (a) {
|
696
|
+
F.warn("模拟数据模版异常", a);
|
681
697
|
}
|
682
698
|
return s?.mock(o);
|
683
699
|
};
|
@@ -687,14 +703,14 @@ function Pt(n, e) {
|
|
687
703
|
const { url: t, mockTemplate: s } = e;
|
688
704
|
if (t && s)
|
689
705
|
try {
|
690
|
-
const r = se(t) ? new URL(t).pathname : t, o = We(`(.*)${r}(.*)`),
|
691
|
-
n.mock(o, (
|
692
|
-
const c = k.parse(
|
693
|
-
Object.assign(
|
706
|
+
const r = se(t) ? new URL(t).pathname : t, o = We(`(.*)${r}(.*)`), a = Xe(r, { decode: decodeURIComponent }), i = H(s, {}, !0);
|
707
|
+
n.mock(o, (l) => {
|
708
|
+
const c = k.parse(l.url) || {}, f = l.body instanceof FormData ? Ye(l.body) : l.body, u = se(l.url) ? new URL(l.url).pathname : l.url.split("?")[0], h = a(u)?.params;
|
709
|
+
Object.assign(l, { data: f, params: h, query: c });
|
694
710
|
try {
|
695
|
-
return n.mock(
|
711
|
+
return n.mock(i(l));
|
696
712
|
} catch (p) {
|
697
|
-
return console.warn("[mockApi]", o,
|
713
|
+
return console.warn("[mockApi]", o, l, p), null;
|
698
714
|
}
|
699
715
|
});
|
700
716
|
} catch (r) {
|
@@ -811,33 +827,33 @@ function ie(n) {
|
|
811
827
|
components: s = {},
|
812
828
|
libs: r = {},
|
813
829
|
apis: o = {},
|
814
|
-
loader:
|
815
|
-
} = n,
|
830
|
+
loader: a
|
831
|
+
} = n, i = e.computed(() => n.dsl), l = {
|
816
832
|
$components: s,
|
817
833
|
$libs: r,
|
818
834
|
$apis: o
|
819
835
|
}, c = new Ct({
|
820
836
|
mode: t,
|
821
|
-
dsl:
|
822
|
-
attrs:
|
837
|
+
dsl: i.value,
|
838
|
+
attrs: l
|
823
839
|
}), f = e.defineComponent({
|
824
|
-
name:
|
825
|
-
__scopeId:
|
840
|
+
name: i.value.name,
|
841
|
+
__scopeId: i.value.id ? `data-v-${i.value.id}` : void 0,
|
826
842
|
props: {
|
827
|
-
...It(
|
843
|
+
...It(i.value.props ?? [], c)
|
828
844
|
},
|
829
|
-
setup(
|
830
|
-
c.$props =
|
845
|
+
setup(u) {
|
846
|
+
c.$props = u, c.props = u, i.value.id && fe(
|
831
847
|
n.window || window,
|
832
|
-
|
833
|
-
|
848
|
+
i.value.id,
|
849
|
+
i.value.css || "",
|
834
850
|
!0
|
835
|
-
), c.state = kt(e,
|
836
|
-
const h = Ft(e,
|
837
|
-
for (const [m,
|
838
|
-
d[m] = e.inject(m,
|
851
|
+
), c.state = kt(e, i.value.state ?? {}, c);
|
852
|
+
const h = Ft(e, i.value.computed ?? {}, c), p = Mt(i.value.methods ?? {}, c), d = Ot(e, i.value.inject, c);
|
853
|
+
for (const [m, R] of Object.entries(d || {}))
|
854
|
+
d[m] = e.inject(m, R);
|
839
855
|
const g = Dt(
|
840
|
-
|
856
|
+
i.value.dataSources || {},
|
841
857
|
c
|
842
858
|
), v = {
|
843
859
|
...d,
|
@@ -845,20 +861,20 @@ function ie(n) {
|
|
845
861
|
...p,
|
846
862
|
...g
|
847
863
|
};
|
848
|
-
return c.setup(v, e), Tt(e,
|
864
|
+
return c.setup(v, e), Tt(e, i.value.watch ?? [], c), {
|
849
865
|
vtj: c
|
850
866
|
};
|
851
867
|
},
|
852
|
-
emits: At(
|
868
|
+
emits: At(i.value.emits),
|
853
869
|
expose: ["vtj"],
|
854
870
|
render() {
|
855
|
-
if (!
|
856
|
-
const
|
857
|
-
return
|
858
|
-
(h) => M(h, c, e,
|
871
|
+
if (!i.value.nodes) return null;
|
872
|
+
const u = i.value.nodes || [];
|
873
|
+
return u.length === 1 ? M(u[0], c, e, a, u) : u.map(
|
874
|
+
(h) => M(h, c, e, a, u)
|
859
875
|
);
|
860
876
|
},
|
861
|
-
...Ht(
|
877
|
+
...Ht(i.value.lifeCycles ?? {}, c)
|
862
878
|
});
|
863
879
|
return {
|
864
880
|
renderer: e.markRaw(f),
|
@@ -912,10 +928,10 @@ function Mt(n, e) {
|
|
912
928
|
function Ot(n, e = [], t) {
|
913
929
|
return e.reduce(
|
914
930
|
(s, r) => {
|
915
|
-
const { name: o, from:
|
931
|
+
const { name: o, from: a } = r || {};
|
916
932
|
r.default;
|
917
|
-
const
|
918
|
-
return s[o] = n.inject(
|
933
|
+
const i = j(a) ? t.__parseExpression(a) || o : a ?? o, l = j(r.default) ? t.__parseExpression(r.default) : r.default ?? null;
|
934
|
+
return s[o] = n.inject(i, l), s;
|
919
935
|
},
|
920
936
|
{}
|
921
937
|
);
|
@@ -925,12 +941,12 @@ function Dt(n, e) {
|
|
925
941
|
(t, s) => {
|
926
942
|
const r = n[s];
|
927
943
|
if (r.type === "mock")
|
928
|
-
t[s] =
|
944
|
+
t[s] = bt(r);
|
929
945
|
else if (r.ref) {
|
930
|
-
const o = e.$apis[r.ref],
|
931
|
-
t[s] = async (...
|
932
|
-
const
|
933
|
-
return
|
946
|
+
const o = e.$apis[r.ref], a = S(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
|
947
|
+
t[s] = async (...i) => {
|
948
|
+
const l = await o.apply(e, i);
|
949
|
+
return a ? a(l) : l;
|
934
950
|
};
|
935
951
|
}
|
936
952
|
return t;
|
@@ -955,7 +971,7 @@ function Ht(n, e) {
|
|
955
971
|
(t, [s, r]) => {
|
956
972
|
const o = e.__parseFunction(r);
|
957
973
|
return t[s] = async () => {
|
958
|
-
await J(0),
|
974
|
+
await J(0), L(o) && o();
|
959
975
|
}, t;
|
960
976
|
},
|
961
977
|
{}
|
@@ -965,87 +981,87 @@ const De = new Ze();
|
|
965
981
|
let Z = [], I = {};
|
966
982
|
const xt = (n) => n;
|
967
983
|
async function Te(n, e = window) {
|
968
|
-
const { urls: t = [], library: s } = n, r = t.filter((
|
984
|
+
const { urls: t = [], library: s } = n, r = t.filter((i) => V(i));
|
969
985
|
if (r.length === 0 || !s) return null;
|
970
|
-
const o = t.filter((
|
986
|
+
const o = t.filter((i) => G(i));
|
971
987
|
return o.length && ke(o, e), await Fe(r, s, e).catch(
|
972
|
-
(
|
988
|
+
(i) => (console.warn("loadScriptUrl error", r, s, i), null)
|
973
989
|
);
|
974
990
|
}
|
975
991
|
function ae(n) {
|
976
992
|
const { getDsl: e, getDslByUrl: t, options: s } = n;
|
977
993
|
return s.window && (Z.forEach((r) => {
|
978
994
|
delete s.window[r];
|
979
|
-
}), Z = []), (r, o,
|
995
|
+
}), Z = []), (r, o, a = z) => {
|
980
996
|
if (!o || typeof o == "string") return r;
|
981
997
|
if (o.type === "Schema" && o.id)
|
982
|
-
return
|
983
|
-
const
|
998
|
+
return a.defineAsyncComponent(async () => {
|
999
|
+
const i = I[o.id] || await De.add(
|
984
1000
|
o.id,
|
985
1001
|
() => e(o.id)
|
986
1002
|
);
|
987
|
-
return
|
1003
|
+
return i && (i.name = r, I[o.id] = i), i ? ie({
|
988
1004
|
...s,
|
989
|
-
Vue:
|
990
|
-
dsl: we(
|
1005
|
+
Vue: a,
|
1006
|
+
dsl: we(i),
|
991
1007
|
mode: y.Runtime,
|
992
1008
|
loader: ae(n)
|
993
1009
|
}).renderer : null;
|
994
1010
|
});
|
995
1011
|
if (o.type === "UrlSchema" && o.url)
|
996
|
-
return
|
997
|
-
const
|
998
|
-
return
|
1012
|
+
return a.defineAsyncComponent(async () => {
|
1013
|
+
const i = I[o.url] || await t(o.url);
|
1014
|
+
return i && (i.name = r, I[o.url] = i), i ? ie({
|
999
1015
|
...s,
|
1000
|
-
Vue:
|
1001
|
-
dsl: we(
|
1016
|
+
Vue: a,
|
1017
|
+
dsl: we(i),
|
1002
1018
|
mode: y.Runtime,
|
1003
1019
|
loader: ae(n)
|
1004
1020
|
}).renderer : null;
|
1005
1021
|
});
|
1006
1022
|
if (o.type === "Plugin") {
|
1007
|
-
let
|
1008
|
-
return
|
1023
|
+
let i = o.library ? I[o.library] : null;
|
1024
|
+
return i || (o.library && Z.push(o.library), i = I[o.library || Symbol()] = a.defineAsyncComponent(
|
1009
1025
|
async () => {
|
1010
|
-
const
|
1011
|
-
return
|
1026
|
+
const l = await Te(o, s.window);
|
1027
|
+
return l || (console.warn("getPlugin result is null", o), null);
|
1012
1028
|
}
|
1013
|
-
),
|
1029
|
+
), i);
|
1014
1030
|
}
|
1015
1031
|
return r;
|
1016
1032
|
};
|
1017
1033
|
}
|
1018
|
-
function
|
1034
|
+
function Ps() {
|
1019
1035
|
I = {}, De.clearAllCache();
|
1020
1036
|
}
|
1021
1037
|
function M(n, e, t = z, s = xt, r = [], o = !1) {
|
1022
1038
|
if (!n || !n.name || n.invisible) return null;
|
1023
|
-
const
|
1024
|
-
if (!o && (f ||
|
1039
|
+
const a = t.getCurrentInstance()?.appContext, { id: i = null, directives: l = [] } = n, { vIf: c, vElseIf: f, vElse: u, vFor: h, vShow: p, vModels: d, vBind: g, vHtml: v, others: m } = He(l);
|
1040
|
+
if (!o && (f || u))
|
1025
1041
|
return null;
|
1026
1042
|
if (c && !Ut(c, e))
|
1027
1043
|
return Jt(n, e, t, s, r);
|
1028
|
-
const
|
1044
|
+
const R = (_, x = 0) => {
|
1029
1045
|
const A = _.$components, Q = (() => {
|
1030
1046
|
if (n.name === "component")
|
1031
1047
|
return Nt(_, n.props?.is);
|
1032
1048
|
if (n.name === "slot") return n.name;
|
1033
1049
|
const $ = s(n.name, n.from, t);
|
1034
1050
|
if (C($))
|
1035
|
-
return vt($) || yt($) ? $ : A[$] ??
|
1051
|
+
return vt($) || yt($) ? $ : A[$] ?? a?.app?.component($) ?? $;
|
1036
1052
|
if (et($) && n.id) {
|
1037
1053
|
const ge = `Loader${n.id}_${x}`, ve = A[ge];
|
1038
1054
|
return ve || (A[ge] = $);
|
1039
1055
|
}
|
1040
1056
|
return $;
|
1041
|
-
})(),
|
1057
|
+
})(), b = qt(i, n.props ?? {}, _), Le = Lt(t, n.events ?? {}, _);
|
1042
1058
|
if (n.name === "slot")
|
1043
|
-
return Kt(t, n,
|
1044
|
-
g && Object.assign(
|
1045
|
-
|
1059
|
+
return Kt(t, n, b, _, s);
|
1060
|
+
g && Object.assign(b, _.__parseExpression(g.value)), p && (b.style = Object.assign(
|
1061
|
+
b.style ?? {},
|
1046
1062
|
Gt(p, _)
|
1047
|
-
)), v && Object.assign(
|
1048
|
-
Object.assign(
|
1063
|
+
)), v && Object.assign(b, Vt(v, _)), d.forEach(($) => {
|
1064
|
+
Object.assign(b, Qt(t, $, _));
|
1049
1065
|
});
|
1050
1066
|
const Je = Wt(
|
1051
1067
|
t,
|
@@ -1056,27 +1072,27 @@ function M(n, e, t = z, s = xt, r = [], o = !1) {
|
|
1056
1072
|
), he = _?.__id ? `data-v-${_.__id}` : void 0, Ke = he ? { [he]: "" } : {};
|
1057
1073
|
let W = t.createVNode(
|
1058
1074
|
Q,
|
1059
|
-
{ key: `${
|
1075
|
+
{ key: `${i}_${x}`, ...Ke, ...b, ...Le },
|
1060
1076
|
Je
|
1061
1077
|
);
|
1062
|
-
const me =
|
1078
|
+
const me = a ? Bt(a, m, _) : [];
|
1063
1079
|
return me.length && (W = t.withDirectives(W, me)), W;
|
1064
1080
|
};
|
1065
|
-
return h ? Zt(h,
|
1081
|
+
return h ? Zt(h, R, e) : R(e);
|
1066
1082
|
}
|
1067
1083
|
function Bt(n, e, t) {
|
1068
1084
|
const s = n.app;
|
1069
1085
|
return e.map((r) => {
|
1070
1086
|
const o = typeof r.name == "string" ? s.directive(r.name) : t.__parseExpression(r.name);
|
1071
1087
|
if (!o) return null;
|
1072
|
-
const
|
1073
|
-
return r.value &&
|
1088
|
+
const a = [o];
|
1089
|
+
return r.value && a.push(t.__parseExpression(r.value)), r.arg && a.push(r.arg), r.modifiers && a.push(r.modifiers), a;
|
1074
1090
|
}).filter((r) => !!r);
|
1075
1091
|
}
|
1076
1092
|
function He(n = []) {
|
1077
1093
|
const e = n.find((f) => P(f.name) === "vIf"), t = n.find(
|
1078
1094
|
(f) => P(f.name) === "vElseIf"
|
1079
|
-
), s = n.find((f) => P(f.name) === "vElse"), r = n.find((f) => P(f.name) === "vFor"), o = n.find((f) => P(f.name) === "vShow"),
|
1095
|
+
), s = n.find((f) => P(f.name) === "vElse"), r = n.find((f) => P(f.name) === "vFor"), o = n.find((f) => P(f.name) === "vShow"), a = n.find((f) => P(f.name) === "vBind"), i = n.find((f) => P(f.name) === "vHtml"), l = n.filter(
|
1080
1096
|
(f) => P(f.name) === "vModel"
|
1081
1097
|
), c = n.filter(
|
1082
1098
|
(f) => !ot.includes(P(f.name))
|
@@ -1087,10 +1103,10 @@ function He(n = []) {
|
|
1087
1103
|
vElse: s,
|
1088
1104
|
vFor: r,
|
1089
1105
|
vShow: o,
|
1090
|
-
vModels:
|
1091
|
-
vBind:
|
1106
|
+
vModels: l,
|
1107
|
+
vBind: a,
|
1092
1108
|
others: c,
|
1093
|
-
vHtml:
|
1109
|
+
vHtml: i
|
1094
1110
|
};
|
1095
1111
|
}
|
1096
1112
|
function Ut(n, e) {
|
@@ -1099,7 +1115,7 @@ function Ut(n, e) {
|
|
1099
1115
|
function Nt(n, e) {
|
1100
1116
|
return e ? j(e) ? n.__parseExpression(e) : e : "div";
|
1101
1117
|
}
|
1102
|
-
function
|
1118
|
+
function qt(n, e, t) {
|
1103
1119
|
const s = ce(e, t);
|
1104
1120
|
return s.ref = t.__ref(n, s.ref), s;
|
1105
1121
|
}
|
@@ -1112,31 +1128,31 @@ function ce(n, e) {
|
|
1112
1128
|
{}
|
1113
1129
|
) : n;
|
1114
1130
|
}
|
1115
|
-
function
|
1131
|
+
function Lt(n, e, t) {
|
1116
1132
|
const s = ["passive", "capture", "once"], r = {
|
1117
1133
|
capture: "Capture",
|
1118
1134
|
once: "Once",
|
1119
1135
|
passive: "OnceCapture"
|
1120
1136
|
};
|
1121
1137
|
return Object.keys(e || {}).reduce(
|
1122
|
-
(o,
|
1123
|
-
const
|
1124
|
-
return
|
1138
|
+
(o, a) => {
|
1139
|
+
const i = e[a], l = xe(i.modifiers), c = l.find((h) => s.includes(h)), f = "on" + tt(a) + (c && r[c] || ""), u = t.__parseFunction(i.handler);
|
1140
|
+
return u && (o[f] = n.withModifiers(u, l)), o;
|
1125
1141
|
},
|
1126
1142
|
{}
|
1127
1143
|
);
|
1128
1144
|
}
|
1129
1145
|
function Jt(n, e, t, s, r = []) {
|
1130
|
-
let o = r.findIndex((
|
1131
|
-
for (let
|
1132
|
-
const { directives:
|
1133
|
-
if (
|
1134
|
-
if (e.__parseExpression(
|
1135
|
-
return M(r[
|
1146
|
+
let o = r.findIndex((a) => a.id === n.id);
|
1147
|
+
for (let a = ++o; a < r.length; a++) {
|
1148
|
+
const { directives: i = [] } = r[a], { vElseIf: l, vElse: c } = He(i);
|
1149
|
+
if (l) {
|
1150
|
+
if (e.__parseExpression(l.value))
|
1151
|
+
return M(r[a], e, t, s, r, !0);
|
1136
1152
|
continue;
|
1137
1153
|
}
|
1138
1154
|
if (c)
|
1139
|
-
return M(r[
|
1155
|
+
return M(r[a], e, t, s, r, !0);
|
1140
1156
|
}
|
1141
1157
|
return null;
|
1142
1158
|
}
|
@@ -1145,11 +1161,11 @@ function xe(n = {}, e = !1) {
|
|
1145
1161
|
return e ? t.map((s) => "." + s) : t;
|
1146
1162
|
}
|
1147
1163
|
function Kt(n, e, t, s, r) {
|
1148
|
-
const { children: o } = e,
|
1149
|
-
return
|
1164
|
+
const { children: o } = e, a = zt(e, s), i = s.$slots?.[a.name];
|
1165
|
+
return i ? i(t) : o ? C(o) ? n.createTextVNode(o) : j(o) ? n.createTextVNode(
|
1150
1166
|
Ie(s.__parseExpression(o))
|
1151
1167
|
) : Array.isArray(o) ? o.map(
|
1152
|
-
(
|
1168
|
+
(l) => M(l, s, n, r, o)
|
1153
1169
|
) : null : null;
|
1154
1170
|
}
|
1155
1171
|
function zt(n, e) {
|
@@ -1177,10 +1193,10 @@ function Qt(n, e, t) {
|
|
1177
1193
|
}` : "(v) => {}"
|
1178
1194
|
}, r = t.__parseFunction(s), o = xe(
|
1179
1195
|
j(e.modifiers) ? t.__parseExpression(e.modifiers) : e.modifiers
|
1180
|
-
),
|
1196
|
+
), a = j(e.arg) ? t.__parseExpression(e.arg) : e.arg || "modelValue";
|
1181
1197
|
return {
|
1182
|
-
[
|
1183
|
-
[`onUpdate:${
|
1198
|
+
[a]: t.__parseExpression(e.value),
|
1199
|
+
[`onUpdate:${a}`]: o.length && r ? n.withModifiers(r, o) : r
|
1184
1200
|
};
|
1185
1201
|
}
|
1186
1202
|
function Wt(n, e, t, s, r) {
|
@@ -1192,18 +1208,18 @@ function Wt(n, e, t, s, r) {
|
|
1192
1208
|
default: () => Ie(t.__parseExpression(e))
|
1193
1209
|
};
|
1194
1210
|
if (Array.isArray(e) && e.length > 0) {
|
1195
|
-
const o = Xt(e),
|
1196
|
-
[
|
1211
|
+
const o = Xt(e), a = (i, l) => !i || !r ? {} : r?.id && Object.keys(i).length ? l ? {
|
1212
|
+
[l]: i
|
1197
1213
|
} : {
|
1198
|
-
[`scope_${r.id}`]:
|
1199
|
-
} :
|
1214
|
+
[`scope_${r.id}`]: i
|
1215
|
+
} : l ? { [l]: /* @__PURE__ */ Object.create(null) } : {};
|
1200
1216
|
return Object.entries(o).reduce(
|
1201
|
-
(
|
1202
|
-
const p = f.length ? st(h ?? {}, f) :
|
1217
|
+
(i, [l, { nodes: c, params: f, scope: u }]) => (i[l] = (h) => {
|
1218
|
+
const p = f.length ? st(h ?? {}, f) : a(h, u);
|
1203
1219
|
return c.map(
|
1204
1220
|
(d) => M(d, t.__clone(p), n, s, c)
|
1205
1221
|
);
|
1206
|
-
},
|
1222
|
+
}, i),
|
1207
1223
|
{}
|
1208
1224
|
);
|
1209
1225
|
}
|
@@ -1225,9 +1241,9 @@ function Yt(n = "default") {
|
|
1225
1241
|
return C(n) ? { name: n, params: [], scope: "" } : { params: [], scope: "", ...n };
|
1226
1242
|
}
|
1227
1243
|
function Zt(n, e, t) {
|
1228
|
-
const { value: s, iterator: r } = n, { item: o = "item", index:
|
1229
|
-
let
|
1230
|
-
return Number.isInteger(
|
1244
|
+
const { value: s, iterator: r } = n, { item: o = "item", index: a = "index" } = r || {};
|
1245
|
+
let i = t.__parseExpression(s) || [];
|
1246
|
+
return Number.isInteger(i) && (i = new Array(i).fill(!0).map((l, c) => c + 1)), Array.isArray(i) ? i.map((l, c) => e(t.__clone({ [o]: l, [a]: c }), c)) : (console.warn("[vForRender]:", `${s?.value} is not a Arrary`), []);
|
1231
1247
|
}
|
1232
1248
|
const ee = Ce({
|
1233
1249
|
name: "VtjPageContainer",
|
@@ -1235,8 +1251,8 @@ const ee = Ce({
|
|
1235
1251
|
const n = Ne(), e = Ae(), t = e.meta.__vtj__ || e.params.id, s = t ? n.getPage(t) : n.getHomepage(), r = s ? await n.getRenderComponent(s.id) : null, o = oe(Symbol());
|
1236
1252
|
if (s) {
|
1237
1253
|
Object.assign(e.meta, s.meta || {}, { cache: s.cache });
|
1238
|
-
const { useTitle:
|
1239
|
-
|
1254
|
+
const { useTitle: a } = n?.adapter;
|
1255
|
+
a && a(s.title || "VTJ");
|
1240
1256
|
}
|
1241
1257
|
return {
|
1242
1258
|
provider: n,
|
@@ -1264,20 +1280,20 @@ const ee = Ce({
|
|
1264
1280
|
function K(n, e, t = []) {
|
1265
1281
|
const s = [];
|
1266
1282
|
for (const r of t) {
|
1267
|
-
const { id: o, title:
|
1283
|
+
const { id: o, title: a, icon: i, children: l, hidden: c, layout: f } = r;
|
1268
1284
|
if (f) {
|
1269
|
-
const
|
1270
|
-
s.push(...
|
1285
|
+
const u = K(n, e, l || []);
|
1286
|
+
s.push(...u);
|
1271
1287
|
} else {
|
1272
|
-
const
|
1288
|
+
const u = {
|
1273
1289
|
id: o,
|
1274
|
-
title:
|
1275
|
-
icon:
|
1290
|
+
title: a,
|
1291
|
+
icon: i,
|
1276
1292
|
hidden: c,
|
1277
1293
|
url: `${n}/${e}/${o}`,
|
1278
|
-
children:
|
1294
|
+
children: l && l.length ? K(n, e, l) : void 0
|
1279
1295
|
};
|
1280
|
-
s.push(
|
1296
|
+
s.push(u);
|
1281
1297
|
}
|
1282
1298
|
}
|
1283
1299
|
return s;
|
@@ -1293,13 +1309,13 @@ function Be(n, e) {
|
|
1293
1309
|
e.can(s.id.toString()) && t.push(s);
|
1294
1310
|
return t;
|
1295
1311
|
}
|
1296
|
-
function
|
1312
|
+
function Cs(n) {
|
1297
1313
|
const {
|
1298
1314
|
menuPathPrefix: e = "",
|
1299
1315
|
pageRouteName: t = "page",
|
1300
1316
|
disableMenusFilter: s = !1
|
1301
|
-
} = n || {}, r = Ne(), o = Ae(),
|
1302
|
-
|
1317
|
+
} = n || {}, r = Ne(), o = Ae(), a = St(), i = oe(!1), l = oe(!1), c = r.project, f = (p, d) => {
|
1318
|
+
i.value = !p?.mask, l.value = d?.pure ?? !!p?.pure;
|
1303
1319
|
};
|
1304
1320
|
rt(() => {
|
1305
1321
|
const { name: p, params: d, meta: g } = o;
|
@@ -1315,32 +1331,32 @@ function Ps(n) {
|
|
1315
1331
|
const m = r.getPage(v);
|
1316
1332
|
f(m, g);
|
1317
1333
|
} else
|
1318
|
-
|
1334
|
+
i.value = !g.mask, l.value = !!g.pure;
|
1319
1335
|
}
|
1320
1336
|
});
|
1321
|
-
const
|
1337
|
+
const u = K(
|
1322
1338
|
e,
|
1323
1339
|
t,
|
1324
1340
|
c?.pages
|
1325
1341
|
), h = c?.config;
|
1326
1342
|
return {
|
1327
|
-
disabled:
|
1343
|
+
disabled: i,
|
1328
1344
|
logo: h?.logo,
|
1329
1345
|
themeSwitchable: h?.themeSwitchable,
|
1330
1346
|
title: h?.title || c?.description || c?.name || "VTJ App",
|
1331
|
-
menus: s ?
|
1332
|
-
pure:
|
1347
|
+
menus: s ? u : Be(u, a),
|
1348
|
+
pure: l
|
1333
1349
|
};
|
1334
1350
|
}
|
1335
1351
|
function te(n, e) {
|
1336
|
-
const { id: t, title: s, meta: r } = n, { name: o = "page", prefix:
|
1352
|
+
const { id: t, title: s, meta: r } = n, { name: o = "page", prefix: a = "", component: i, routeMeta: l } = e;
|
1337
1353
|
return {
|
1338
1354
|
name: t,
|
1339
|
-
path: `${
|
1340
|
-
component:
|
1355
|
+
path: `${a}${o}/${t}`,
|
1356
|
+
component: i,
|
1341
1357
|
meta: {
|
1342
1358
|
title: s,
|
1343
|
-
...
|
1359
|
+
...l,
|
1344
1360
|
...r,
|
1345
1361
|
__vtj__: t
|
1346
1362
|
}
|
@@ -1353,29 +1369,29 @@ function le(n) {
|
|
1353
1369
|
pages: s = [],
|
1354
1370
|
component: r,
|
1355
1371
|
loader: o,
|
1356
|
-
routeMeta:
|
1357
|
-
homepage:
|
1358
|
-
} = n,
|
1372
|
+
routeMeta: a,
|
1373
|
+
homepage: i
|
1374
|
+
} = n, l = [];
|
1359
1375
|
for (const c of s) {
|
1360
|
-
const { id: f, title:
|
1376
|
+
const { id: f, title: u, dir: h, layout: p, children: d, meta: g } = c;
|
1361
1377
|
if (h) {
|
1362
1378
|
const v = le({
|
1363
1379
|
name: e,
|
1364
1380
|
prefix: t,
|
1365
1381
|
component: r,
|
1366
|
-
routeMeta:
|
1367
|
-
homepage:
|
1382
|
+
routeMeta: a,
|
1383
|
+
homepage: i,
|
1368
1384
|
loader: o,
|
1369
1385
|
pages: d || []
|
1370
1386
|
});
|
1371
|
-
|
1387
|
+
l.push(...v);
|
1372
1388
|
} else if (p) {
|
1373
1389
|
const v = le({
|
1374
1390
|
name: e,
|
1375
1391
|
prefix: t,
|
1376
1392
|
component: r,
|
1377
|
-
routeMeta:
|
1378
|
-
homepage:
|
1393
|
+
routeMeta: a,
|
1394
|
+
homepage: i,
|
1379
1395
|
loader: o,
|
1380
1396
|
pages: d || []
|
1381
1397
|
}), m = {
|
@@ -1383,24 +1399,24 @@ function le(n) {
|
|
1383
1399
|
path: t,
|
1384
1400
|
component: () => o(f),
|
1385
1401
|
meta: {
|
1386
|
-
title:
|
1387
|
-
...
|
1402
|
+
title: u,
|
1403
|
+
...a,
|
1388
1404
|
...g,
|
1389
1405
|
__vtj__: f
|
1390
1406
|
},
|
1391
1407
|
children: v
|
1392
1408
|
};
|
1393
|
-
|
1394
|
-
} else if (
|
1409
|
+
l.push(m), l.push(te(c, n));
|
1410
|
+
} else if (l.push(te(c, n)), i === f) {
|
1395
1411
|
const v = te(c, n);
|
1396
|
-
v.path = "", v.name = `home_${f}`,
|
1412
|
+
v.path = "", v.name = `home_${f}`, l.push(v);
|
1397
1413
|
}
|
1398
1414
|
}
|
1399
|
-
return
|
1415
|
+
return l;
|
1400
1416
|
}
|
1401
1417
|
function ts(n = {}, e) {
|
1402
|
-
const { css: t, store: s, enhance: r } = n, { window: o, app:
|
1403
|
-
fe(o, "global-css", t || ""), f && s && ss(s,
|
1418
|
+
const { css: t, store: s, enhance: r } = n, { window: o, app: a, library: i = {}, adapter: l, mode: c } = e, { Pinia: f } = i;
|
1419
|
+
a.config.globalProperties.$libs = i, fe(o, "global-css", t || ""), f && s && ss(s, a, f), rs(a, l, n), !l.access && n.access && ns(n.access, a, c, l), os(a, n), r && is(r, a, i);
|
1404
1420
|
}
|
1405
1421
|
function ss(n, e, t) {
|
1406
1422
|
const s = t.createPinia();
|
@@ -1411,39 +1427,39 @@ function ss(n, e, t) {
|
|
1411
1427
|
}
|
1412
1428
|
function ns(n, e, t, s) {
|
1413
1429
|
if (S(n) && n.value) {
|
1414
|
-
const r = E(n, {}, !1, !1, !0), { alert: o, request:
|
1430
|
+
const r = E(n, {}, !1, !1, !0), { alert: o, request: a } = s, i = new pe({
|
1415
1431
|
alert: o,
|
1416
1432
|
storagePrefix: "__VTJ_APP_",
|
1417
1433
|
...r(e)
|
1418
|
-
}),
|
1419
|
-
|
1434
|
+
}), l = e.config.globalProperties.$router;
|
1435
|
+
i.connect({ mode: t, router: l, request: a }), e.use(i);
|
1420
1436
|
}
|
1421
1437
|
}
|
1422
1438
|
function rs(n, e, t) {
|
1423
1439
|
if (!e.request) return;
|
1424
1440
|
const { axios: s, request: r, response: o } = t;
|
1425
1441
|
if (s && S(s) && s.value) {
|
1426
|
-
const
|
1427
|
-
e.request.setConfig(
|
1442
|
+
const a = E(s, {}, !1, !1, !0);
|
1443
|
+
e.request.setConfig(a(n));
|
1428
1444
|
}
|
1429
1445
|
if (r && S(r) && r.value) {
|
1430
|
-
const
|
1431
|
-
e.request.useRequest((
|
1446
|
+
const a = E(r, {}, !1, !1, !0), i = e.request;
|
1447
|
+
i.__unReq && i.__unReq(), i.__unReq = e.request.useRequest((l) => a(l, n));
|
1432
1448
|
}
|
1433
1449
|
if (o && S(o) && o.value) {
|
1434
|
-
const
|
1435
|
-
e.request.useResponse((
|
1450
|
+
const a = E(o, {}, !1, !1, !0), i = e.request;
|
1451
|
+
i.__unRes && i.__unRes(), i.__unRes = e.request.useResponse((l) => a(l, n));
|
1436
1452
|
}
|
1437
1453
|
}
|
1438
1454
|
function os(n, e) {
|
1439
1455
|
const { beforeEach: t, afterEach: s } = e, r = n.config.globalProperties.$router;
|
1440
1456
|
if (t && S(t) && t.value) {
|
1441
1457
|
const o = E(t, {}, !1, !1, !0);
|
1442
|
-
r && r.beforeEach((
|
1458
|
+
r && r.beforeEach((a, i, l) => o(a, i, l, n));
|
1443
1459
|
}
|
1444
1460
|
if (s && S(s) && s.value) {
|
1445
1461
|
const o = E(s, {}, !1, !1, !0);
|
1446
|
-
r && r.afterEach((
|
1462
|
+
r && r.afterEach((a, i, l) => o(a, i, l, n));
|
1447
1463
|
}
|
1448
1464
|
}
|
1449
1465
|
function is(n, e, t = {}) {
|
@@ -1453,19 +1469,19 @@ function as(n, e, t) {
|
|
1453
1469
|
if (!n || !e || !t) return;
|
1454
1470
|
const { VueI18n: s } = e;
|
1455
1471
|
if (s) {
|
1456
|
-
const { locale: r, fallbackLocale: o, messages:
|
1457
|
-
for (let c of
|
1458
|
-
const f = Object.keys(c).filter((
|
1459
|
-
for (const
|
1460
|
-
|
1472
|
+
const { locale: r, fallbackLocale: o, messages: a = [] } = t, i = {};
|
1473
|
+
for (let c of a) {
|
1474
|
+
const f = Object.keys(c).filter((u) => u !== "key");
|
1475
|
+
for (const u of f)
|
1476
|
+
i[u] || (i[u] = {}), i[u][c.key] = c[u];
|
1461
1477
|
}
|
1462
|
-
const
|
1478
|
+
const l = s.createI18n({
|
1463
1479
|
legacy: !1,
|
1464
1480
|
locale: r,
|
1465
1481
|
fallbackLocale: o,
|
1466
|
-
messages:
|
1482
|
+
messages: i
|
1467
1483
|
});
|
1468
|
-
n.use(
|
1484
|
+
n.use(l);
|
1469
1485
|
}
|
1470
1486
|
}
|
1471
1487
|
const Ue = Symbol("Provider");
|
@@ -1483,18 +1499,18 @@ class ls extends ze {
|
|
1483
1499
|
mode: s = y.Raw,
|
1484
1500
|
dependencies: r,
|
1485
1501
|
materials: o,
|
1486
|
-
project:
|
1487
|
-
adapter:
|
1488
|
-
globals:
|
1502
|
+
project: a = {},
|
1503
|
+
adapter: i = {},
|
1504
|
+
globals: l = {},
|
1489
1505
|
modules: c = {},
|
1490
1506
|
router: f = null,
|
1491
|
-
materialPath:
|
1507
|
+
materialPath: u = "./",
|
1492
1508
|
nodeEnv: h = "development"
|
1493
1509
|
/* Development */
|
1494
1510
|
} = e;
|
1495
|
-
this.mode = s, this.modules = c, this.service = t, this.router = f, this.materialPath =
|
1511
|
+
this.mode = s, this.modules = c, this.service = t, this.router = f, this.materialPath = u, this.nodeEnv = h, r && (this.dependencies = r), o && (this.materials = o), Object.assign(this.globals, l), Object.assign(this.adapter, i);
|
1496
1512
|
const { access: p, request: d } = this.adapter;
|
1497
|
-
p && p.connect({ mode: s, router: f, request: d }),
|
1513
|
+
p && p.connect({ mode: s, router: f, request: d }), a && s !== y.Design ? this.load(a) : this.project = a;
|
1498
1514
|
}
|
1499
1515
|
mode;
|
1500
1516
|
// 当前运行模式(设计/源码/预览等)
|
@@ -1502,7 +1518,7 @@ class ls extends ze {
|
|
1502
1518
|
// 全局变量
|
1503
1519
|
modules = {};
|
1504
1520
|
// 异步模块加载器
|
1505
|
-
adapter = { request: ne, jsonp:
|
1521
|
+
adapter = { request: ne, jsonp: be };
|
1506
1522
|
// 适配器接口
|
1507
1523
|
apis = {};
|
1508
1524
|
// API集合
|
@@ -1550,8 +1566,8 @@ class ls extends ze {
|
|
1550
1566
|
const { vtjDir: t = ".vtj" } = this.options, s = this.modules[`${t}/projects/${e.id}.json`] || this.modules[`/src/${t}/projects/${e.id}.json`];
|
1551
1567
|
if (this.project = s ? await s() : await this.service.init(e), !this.project)
|
1552
1568
|
throw new Error("project is null");
|
1553
|
-
const { apis: r = [], meta: o = [] } = this.project,
|
1554
|
-
|
1569
|
+
const { apis: r = [], meta: o = [] } = this.project, a = window;
|
1570
|
+
a && (a.CKEDITOR_VERSION = void 0), this.mode === y.Raw ? await this.loadDependencies(a) : await this.loadAssets(a), this.initMock(a), this.apis = Et(r, o, this.adapter), Oe(a), Rt(r, a), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
|
1555
1571
|
}
|
1556
1572
|
initMock(e) {
|
1557
1573
|
const t = T(e);
|
@@ -1565,19 +1581,19 @@ class ls extends ze {
|
|
1565
1581
|
e[s] || (e[s] = this.library[s] = await r());
|
1566
1582
|
}
|
1567
1583
|
async loadAssets(e) {
|
1568
|
-
const { dependencies: t = [] } = this.project, { dependencies: s, library: r, components: o, materialPath:
|
1569
|
-
libraryExports:
|
1584
|
+
const { dependencies: t = [] } = this.project, { dependencies: s, library: r, components: o, materialPath: a, nodeEnv: i } = this, {
|
1585
|
+
libraryExports: l,
|
1570
1586
|
libraryMap: c,
|
1571
1587
|
materials: f,
|
1572
|
-
materialExports:
|
1588
|
+
materialExports: u,
|
1573
1589
|
materialMapLibrary: h
|
1574
1590
|
} = ft(
|
1575
1591
|
t,
|
1576
|
-
|
1577
|
-
|
1592
|
+
a,
|
1593
|
+
i === "development"
|
1578
1594
|
/* Development */
|
1579
1595
|
);
|
1580
|
-
for (const p of
|
1596
|
+
for (const p of l) {
|
1581
1597
|
const d = s[p], g = e[p];
|
1582
1598
|
if (g)
|
1583
1599
|
r[p] = g;
|
@@ -1590,11 +1606,11 @@ class ls extends ze {
|
|
1590
1606
|
r[p] = e[p];
|
1591
1607
|
}
|
1592
1608
|
}
|
1593
|
-
if (
|
1609
|
+
if (i === "development") {
|
1594
1610
|
for (const d of f)
|
1595
1611
|
await Se(k.append(d, { v: O }));
|
1596
1612
|
const p = this.materials || {};
|
1597
|
-
for (const d of
|
1613
|
+
for (const d of u) {
|
1598
1614
|
const g = e[h[d]], v = Ge[d];
|
1599
1615
|
if (v)
|
1600
1616
|
g && v.forEach((m) => {
|
@@ -1602,8 +1618,8 @@ class ls extends ze {
|
|
1602
1618
|
});
|
1603
1619
|
else {
|
1604
1620
|
const m = p[d] ? (await p[d]()).default : e[d];
|
1605
|
-
m && g && (m.components || []).forEach((
|
1606
|
-
o[
|
1621
|
+
m && g && (m.components || []).forEach((R) => {
|
1622
|
+
o[R.name] = pt(R, g);
|
1607
1623
|
});
|
1608
1624
|
}
|
1609
1625
|
}
|
@@ -1613,33 +1629,33 @@ class ls extends ze {
|
|
1613
1629
|
const { router: e, project: t, options: s, adapter: r } = this;
|
1614
1630
|
if (!e) return;
|
1615
1631
|
const o = t?.platform === "uniapp" ? "pages" : "page", {
|
1616
|
-
routeAppendTo:
|
1617
|
-
pageRouteName:
|
1618
|
-
routeMeta:
|
1619
|
-
} = s, c =
|
1620
|
-
path: `${c}${
|
1632
|
+
routeAppendTo: a,
|
1633
|
+
pageRouteName: i = o,
|
1634
|
+
routeMeta: l
|
1635
|
+
} = s, c = a ? "" : "/", f = {
|
1636
|
+
path: `${c}${i}/:id`,
|
1621
1637
|
name: D,
|
1622
1638
|
component: ee
|
1623
|
-
},
|
1639
|
+
}, u = {
|
1624
1640
|
path: c,
|
1625
1641
|
name: N,
|
1626
1642
|
component: t?.homepage ? ee : r.startupComponent || es,
|
1627
|
-
meta:
|
1643
|
+
meta: l
|
1628
1644
|
};
|
1629
1645
|
if (e.hasRoute(D) && e.removeRoute(D), e.hasRoute(N) && e.removeRoute(N), s.enableStaticRoute) {
|
1630
1646
|
const h = t?.pages || [];
|
1631
1647
|
le({
|
1632
|
-
name:
|
1648
|
+
name: i,
|
1633
1649
|
prefix: c,
|
1634
1650
|
pages: h,
|
1635
1651
|
component: ee,
|
1636
1652
|
loader: this.getRenderComponent.bind(this),
|
1637
1653
|
homepage: t?.homepage
|
1638
1654
|
}).forEach((d) => {
|
1639
|
-
|
1640
|
-
}), t?.homepage || (
|
1655
|
+
a ? e.addRoute(a, d) : e.addRoute(d);
|
1656
|
+
}), t?.homepage || (a ? e.addRoute(a, u) : e.addRoute(u));
|
1641
1657
|
} else
|
1642
|
-
|
1658
|
+
a ? (e.addRoute(a, f), e.addRoute(a, u)) : (e.addRoute(f), e.addRoute(u));
|
1643
1659
|
}
|
1644
1660
|
/**
|
1645
1661
|
* Vue 插件安装方法
|
@@ -1662,7 +1678,7 @@ class ls extends ze {
|
|
1662
1678
|
library: this.library,
|
1663
1679
|
mode: this.mode
|
1664
1680
|
}), this.mode !== y.Design && this.project?.i18n && this.initI18n(e, this.library, this.project.i18n), e.provide(Ue, this), e.config.globalProperties.$provider = this, this.options.enhance && e.use(this.options.enhance, this), this.mode === y.Design && (e.config.errorHandler = (s, r, o) => {
|
1665
|
-
const
|
1681
|
+
const a = r?.$options.name, i = typeof s == "string" ? s : s?.message || s?.msg || "未知错误", l = `[ ${a} ] ${i} ${o}`;
|
1666
1682
|
console.error(
|
1667
1683
|
"[VTJ Error]:",
|
1668
1684
|
{
|
@@ -1671,7 +1687,7 @@ class ls extends ze {
|
|
1671
1687
|
info: o
|
1672
1688
|
},
|
1673
1689
|
s?.stack
|
1674
|
-
), this.adapter.notify && this.adapter.notify(
|
1690
|
+
), this.adapter.notify && this.adapter.notify(l, "组件渲染错误", "error");
|
1675
1691
|
}), e.config.globalProperties.installed = t;
|
1676
1692
|
}
|
1677
1693
|
getFile(e) {
|
@@ -1680,13 +1696,13 @@ class ls extends ze {
|
|
1680
1696
|
}
|
1681
1697
|
getPage(e) {
|
1682
1698
|
const { pages: t = [] } = this.project || {}, s = (r, o = []) => {
|
1683
|
-
for (const
|
1684
|
-
if (
|
1685
|
-
return
|
1686
|
-
if (
|
1687
|
-
const
|
1688
|
-
if (
|
1689
|
-
return
|
1699
|
+
for (const a of o) {
|
1700
|
+
if (a.id === r)
|
1701
|
+
return a;
|
1702
|
+
if (a.children && a.children.length) {
|
1703
|
+
const i = s(r, a.children);
|
1704
|
+
if (i)
|
1705
|
+
return i;
|
1690
1706
|
}
|
1691
1707
|
}
|
1692
1708
|
};
|
@@ -1724,23 +1740,23 @@ class ls extends ze {
|
|
1724
1740
|
* @returns 渲染器实例
|
1725
1741
|
*/
|
1726
1742
|
createDslRenderer(e, t = {}) {
|
1727
|
-
const { library: s, components: r, mode: o, apis:
|
1743
|
+
const { library: s, components: r, mode: o, apis: a } = this, i = {
|
1728
1744
|
mode: o,
|
1729
1745
|
Vue: s.Vue,
|
1730
1746
|
components: r,
|
1731
1747
|
libs: s,
|
1732
|
-
apis:
|
1748
|
+
apis: a,
|
1733
1749
|
window,
|
1734
1750
|
...t
|
1735
|
-
},
|
1751
|
+
}, l = ae({
|
1736
1752
|
getDsl: async (c) => await this.getDsl(c) || null,
|
1737
1753
|
getDslByUrl: async (c) => await this.getDslByUrl(c) || null,
|
1738
|
-
options:
|
1754
|
+
options: i
|
1739
1755
|
});
|
1740
1756
|
return ie({
|
1741
|
-
...
|
1757
|
+
...i,
|
1742
1758
|
dsl: e,
|
1743
|
-
loader:
|
1759
|
+
loader: l
|
1744
1760
|
});
|
1745
1761
|
}
|
1746
1762
|
/**
|
@@ -1758,8 +1774,8 @@ class ls extends ze {
|
|
1758
1774
|
if (!s)
|
1759
1775
|
return F.warn(`Can not find file: ${e}`), null;
|
1760
1776
|
if (t && t(s), this.mode === y.Raw) {
|
1761
|
-
const { vtjRawDir: o = ".vtj/vue" } = this.options,
|
1762
|
-
return
|
1777
|
+
const { vtjRawDir: o = ".vtj/vue" } = this.options, a = `${o}/${e}.vue`, i = this.modules[a] || this.modules[`/src/pages/${e}.vue`];
|
1778
|
+
return i ? (await i())?.default : this.nodeEnv === "development" && this.adapter.startupComponent || null;
|
1763
1779
|
}
|
1764
1780
|
const r = await this.getDsl(s.id);
|
1765
1781
|
return r ? this.createDslRenderer(r).renderer : (F.warn(`Can not find dsl: ${e}`), null);
|
@@ -1808,7 +1824,7 @@ class ls extends ze {
|
|
1808
1824
|
as(e, t, s);
|
1809
1825
|
}
|
1810
1826
|
}
|
1811
|
-
function
|
1827
|
+
function As(n) {
|
1812
1828
|
const e = new ls(n);
|
1813
1829
|
return {
|
1814
1830
|
provider: e,
|
@@ -1832,15 +1848,15 @@ function Ne(n = {}) {
|
|
1832
1848
|
}
|
1833
1849
|
return e;
|
1834
1850
|
}
|
1835
|
-
async function
|
1836
|
-
const { name: t, urls: s = [] } = n || {}, r = s.map((
|
1837
|
-
if (o.length && ke(o),
|
1838
|
-
return await Fe(
|
1851
|
+
async function Is(n, e = "") {
|
1852
|
+
const { name: t, urls: s = [] } = n || {}, r = s.map((i) => e + i), { css: o, js: a } = dt(r);
|
1853
|
+
if (o.length && ke(o), a.length)
|
1854
|
+
return await Fe(a, t).catch(
|
1839
1855
|
() => {
|
1840
1856
|
}
|
1841
1857
|
);
|
1842
1858
|
}
|
1843
|
-
const
|
1859
|
+
const qe = {
|
1844
1860
|
type: "json",
|
1845
1861
|
validSuccess: !0,
|
1846
1862
|
originResponse: !1,
|
@@ -1855,7 +1871,7 @@ const Le = {
|
|
1855
1871
|
type: t,
|
1856
1872
|
data: s
|
1857
1873
|
},
|
1858
|
-
settings:
|
1874
|
+
settings: qe
|
1859
1875
|
}), fs = (n, e = "/__vtj__/api/uploader.json") => async (t, s) => await n.send({
|
1860
1876
|
url: e,
|
1861
1877
|
method: "post",
|
@@ -1864,12 +1880,12 @@ const Le = {
|
|
1864
1880
|
projectId: s
|
1865
1881
|
},
|
1866
1882
|
settings: {
|
1867
|
-
...
|
1883
|
+
...qe,
|
1868
1884
|
type: "data"
|
1869
1885
|
}
|
1870
1886
|
}).then((r) => r && r[0] ? r[0] : null).catch(() => null);
|
1871
|
-
function
|
1872
|
-
return
|
1887
|
+
function ks(n) {
|
1888
|
+
return Re({
|
1873
1889
|
settings: {
|
1874
1890
|
type: "json",
|
1875
1891
|
validSuccess: !0,
|
@@ -1989,13 +2005,13 @@ const w = new nt({
|
|
1989
2005
|
expired: 0,
|
1990
2006
|
prefix: "__VTJ_"
|
1991
2007
|
});
|
1992
|
-
class
|
2008
|
+
class Fs extends de {
|
1993
2009
|
init(e) {
|
1994
|
-
const t = new
|
2010
|
+
const t = new q(e), s = w.get(`project_${t.id}`), r = Object.assign(t.toDsl(), s || {});
|
1995
2011
|
return w.save(`project_${t.id}`, r), Promise.resolve(r);
|
1996
2012
|
}
|
1997
2013
|
saveProject(e) {
|
1998
|
-
const t = new
|
2014
|
+
const t = new q(e);
|
1999
2015
|
return w.save(`project_${t.id}`, t.toDsl()), Promise.resolve(!0);
|
2000
2016
|
}
|
2001
2017
|
saveMaterials(e, t) {
|
@@ -2046,11 +2062,11 @@ class ps extends de {
|
|
2046
2062
|
histories = {};
|
2047
2063
|
historyItems = {};
|
2048
2064
|
init(e) {
|
2049
|
-
const t = new
|
2065
|
+
const t = new q(e), s = this.projects[t.id] || {}, r = Object.assign(t.toDsl(), s);
|
2050
2066
|
return this.projects[r.id] = r, Promise.resolve(r);
|
2051
2067
|
}
|
2052
2068
|
saveProject(e) {
|
2053
|
-
const t = new
|
2069
|
+
const t = new q(e);
|
2054
2070
|
return this.projects[t.id] = t.toDsl(), Promise.resolve(!0);
|
2055
2071
|
}
|
2056
2072
|
saveMaterials(e, t) {
|
@@ -2097,10 +2113,10 @@ class ps extends de {
|
|
2097
2113
|
}
|
2098
2114
|
}
|
2099
2115
|
let U = null;
|
2100
|
-
function
|
2116
|
+
function Ms() {
|
2101
2117
|
return U || (U = new ps(), U);
|
2102
2118
|
}
|
2103
|
-
class
|
2119
|
+
class Os extends de {
|
2104
2120
|
getFileCaches = {};
|
2105
2121
|
async getExtension() {
|
2106
2122
|
return await this.api("getExtension", {}).catch(() => {
|
@@ -2170,34 +2186,35 @@ export {
|
|
2170
2186
|
it as DATA_TYPES,
|
2171
2187
|
N as HOMEPAGE_ROUTE_NAME,
|
2172
2188
|
at as HTML_TAGS,
|
2173
|
-
|
2189
|
+
Es as JSCodeToString,
|
2174
2190
|
vs as LIFE_CYCLES_LIST,
|
2175
|
-
|
2191
|
+
Os as LocalService,
|
2176
2192
|
ps as MemoryService,
|
2177
2193
|
cs as NodeEnv,
|
2178
2194
|
D as PAGE_ROUTE_NAME,
|
2179
2195
|
ls as Provider,
|
2180
2196
|
ys as REMOTE,
|
2181
|
-
|
2197
|
+
Fs as StorageService,
|
2182
2198
|
O as VTJ_RENDERER_VERSION,
|
2199
|
+
$s as adoptStylesToInline,
|
2183
2200
|
fe as adoptedStyleSheets,
|
2184
|
-
|
2201
|
+
Ps as clearLoaderCache,
|
2185
2202
|
ht as compileScopedCSS,
|
2186
2203
|
bs as createAccess,
|
2187
|
-
|
2204
|
+
Rs as createAdapter,
|
2188
2205
|
ws as createAssetScripts,
|
2189
2206
|
Ss as createAssetsCss,
|
2190
2207
|
Dt as createDataSources,
|
2191
2208
|
ae as createLoader,
|
2192
|
-
|
2209
|
+
Ms as createMemoryService,
|
2193
2210
|
K as createMenus,
|
2194
2211
|
jt as createMetaApi,
|
2195
|
-
|
2196
|
-
|
2212
|
+
bt as createMock,
|
2213
|
+
As as createProvider,
|
2197
2214
|
ie as createRenderer,
|
2198
2215
|
$t as createSchemaApi,
|
2199
2216
|
Et as createSchemaApis,
|
2200
|
-
|
2217
|
+
ks as createServiceRequest,
|
2201
2218
|
xt as defaultLoader,
|
2202
2219
|
B as fillBasePath,
|
2203
2220
|
T as getMock,
|
@@ -2215,11 +2232,11 @@ export {
|
|
2215
2232
|
gt as isVuePlugin,
|
2216
2233
|
mt as loadCss,
|
2217
2234
|
ke as loadCssUrl,
|
2218
|
-
|
2235
|
+
Is as loadEnhance,
|
2219
2236
|
Fe as loadScriptUrl,
|
2220
2237
|
Be as menusFilter,
|
2221
2238
|
Pt as mockApi,
|
2222
|
-
|
2239
|
+
Rt as mockApis,
|
2223
2240
|
Oe as mockCleanup,
|
2224
2241
|
M as nodeRender,
|
2225
2242
|
ft as parseDeps,
|
@@ -2228,9 +2245,9 @@ export {
|
|
2228
2245
|
dt as parseUrls,
|
2229
2246
|
Ue as providerKey,
|
2230
2247
|
ut as removeProdFlag,
|
2231
|
-
|
2248
|
+
js as setupPageSetting,
|
2232
2249
|
Ie as toString,
|
2233
2250
|
St as useAccess,
|
2234
|
-
|
2251
|
+
Cs as useMask,
|
2235
2252
|
Ne as useProvider
|
2236
2253
|
};
|