magtool 1.5.47 → 1.5.48
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/cpt/component.js +39 -25
- package/dist/vendor.js +21 -42
- package/package.json +1 -1
package/dist/cpt/component.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as u } from "../vendor.js";
|
|
2
2
|
import { defineAsyncComponent as n } from "vue";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
3
|
+
import S from "markdown-it";
|
|
4
|
+
import x from "echarts";
|
|
5
|
+
import g from "bignumber.js";
|
|
6
|
+
import c from "moment";
|
|
7
|
+
class _ {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.appRegistrationStatus = /* @__PURE__ */ new WeakMap(), this.loadedComponents = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
|
|
9
10
|
}
|
|
@@ -11,8 +12,8 @@ class S {
|
|
|
11
12
|
if (this.appRegistrationStatus.has(e))
|
|
12
13
|
return console.warn("Components already registered for this app instance"), !1;
|
|
13
14
|
try {
|
|
14
|
-
const t = await Promise.resolve().then(() =>
|
|
15
|
-
return await Promise.resolve().then(() =>
|
|
15
|
+
const t = await Promise.resolve().then(() => y);
|
|
16
|
+
return await Promise.resolve().then(() => M), t.default(e), this.appRegistrationStatus.set(e, {
|
|
16
17
|
registeredAt: /* @__PURE__ */ new Date(),
|
|
17
18
|
components: Object.keys(await this.getAllComponentNames())
|
|
18
19
|
}), !0;
|
|
@@ -47,10 +48,10 @@ class S {
|
|
|
47
48
|
}
|
|
48
49
|
async _loadComponent(e) {
|
|
49
50
|
try {
|
|
50
|
-
return n(() =>
|
|
51
|
+
return n(() => u(/* @__PURE__ */ Object.assign({ "./Mvc/Card/index.vue": () => import("./Card.js"), "./Mvc/Icon/index.vue": () => import("./Icon.js"), "./Mvc/Image/index.vue": () => import("./Image.js"), "./Mvc/Input/index.vue": () => import("./Input.js"), "./Mvc/Nodata/index.vue": () => import("./Nodata.js"), "./Mvc/Page/index.vue": () => import("./Page.js"), "./Mvc/Textarea/index.vue": () => import("./Textarea.js") }), `./Mvc/${e}/index.vue`, 4));
|
|
51
52
|
} catch {
|
|
52
53
|
try {
|
|
53
|
-
return n(() =>
|
|
54
|
+
return n(() => u(/* @__PURE__ */ Object.assign({ "./Super/AiApp/index.vue": () => import("./AiApp.js"), "./Super/AiOrg/index.vue": () => import("./AiOrg.js"), "./Super/AsaAdGroup/index.vue": () => import("./AsaAdGroup.js"), "./Super/AsaApp/index.vue": () => import("./AsaApp.js"), "./Super/AsaCampaign/index.vue": () => import("./AsaCampaign.js"), "./Super/AsaOrg/index.vue": () => import("./AsaOrg.js"), "./Super/Country/index.vue": () => import("./Country.js"), "./Super/CountryItem/index.vue": () => import("./CountryItem.js"), "./Super/DatePicker/index.vue": () => import("./DatePicker.js"), "./Super/EChart/index.vue": () => import("./EChart.js"), "./Super/Form/index.vue": () => import("./Form.js"), "./Super/MultipleSelect/index.vue": () => import("./MultipleSelect.js"), "./Super/Org/index.vue": () => import("./Org.js"), "./Super/StatusItem/index.vue": () => import("./StatusItem.js"), "./Super/StatusSelect/index.vue": () => import("./StatusSelect.js"), "./Super/Table/index.vue": () => import("./Table.js"), "./Super/Timezone/index.vue": () => import("./Timezone.js") }), `./Super/${e}/index.vue`, 4));
|
|
54
55
|
} catch {
|
|
55
56
|
throw new Error(`Component ${e} not found in Mvc or Super directories`);
|
|
56
57
|
}
|
|
@@ -58,9 +59,9 @@ class S {
|
|
|
58
59
|
}
|
|
59
60
|
async getAllComponentNames() {
|
|
60
61
|
const t = Object.keys(/* @__PURE__ */ Object.assign({ "./Mvc/Card/index.vue": () => import("./Card.js"), "./Mvc/Icon/index.vue": () => import("./Icon.js"), "./Mvc/Image/index.vue": () => import("./Image.js"), "./Mvc/Input/index.vue": () => import("./Input.js"), "./Mvc/Nodata/index.vue": () => import("./Nodata.js"), "./Mvc/Page/index.vue": () => import("./Page.js"), "./Mvc/Textarea/index.vue": () => import("./Textarea.js") })).map(
|
|
61
|
-
(
|
|
62
|
+
(p) => p.match(/Mvc\/(\S*)\/index.vue/)[1]
|
|
62
63
|
), o = Object.keys(/* @__PURE__ */ Object.assign({ "./Super/AiApp/index.vue": () => import("./AiApp.js"), "./Super/AiOrg/index.vue": () => import("./AiOrg.js"), "./Super/AsaAdGroup/index.vue": () => import("./AsaAdGroup.js"), "./Super/AsaApp/index.vue": () => import("./AsaApp.js"), "./Super/AsaCampaign/index.vue": () => import("./AsaCampaign.js"), "./Super/AsaOrg/index.vue": () => import("./AsaOrg.js"), "./Super/Country/index.vue": () => import("./Country.js"), "./Super/CountryItem/index.vue": () => import("./CountryItem.js"), "./Super/DatePicker/index.vue": () => import("./DatePicker.js"), "./Super/EChart/index.vue": () => import("./EChart.js"), "./Super/Form/index.vue": () => import("./Form.js"), "./Super/MultipleSelect/index.vue": () => import("./MultipleSelect.js"), "./Super/Org/index.vue": () => import("./Org.js"), "./Super/StatusItem/index.vue": () => import("./StatusItem.js"), "./Super/StatusSelect/index.vue": () => import("./StatusSelect.js"), "./Super/Table/index.vue": () => import("./Table.js"), "./Super/Timezone/index.vue": () => import("./Timezone.js") })).map(
|
|
63
|
-
(
|
|
64
|
+
(p) => p.match(/Super\/(\S*)\/index.vue/)[1]
|
|
64
65
|
);
|
|
65
66
|
return [...t, ...o];
|
|
66
67
|
}
|
|
@@ -101,32 +102,45 @@ class S {
|
|
|
101
102
|
this.appRegistrationStatus = /* @__PURE__ */ new WeakMap(), this.loadedComponents.clear(), this.loadingPromises.clear();
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
const
|
|
105
|
+
const P = new _(), s = /* @__PURE__ */ Object.assign({ "./Mvc/Card/index.vue": () => import("./Card.js"), "./Mvc/Icon/index.vue": () => import("./Icon.js"), "./Mvc/Image/index.vue": () => import("./Image.js"), "./Mvc/Input/index.vue": () => import("./Input.js"), "./Mvc/Nodata/index.vue": () => import("./Nodata.js"), "./Mvc/Page/index.vue": () => import("./Page.js"), "./Mvc/Textarea/index.vue": () => import("./Textarea.js") }), v = {};
|
|
105
106
|
for (const i in s) {
|
|
106
107
|
const e = i.match(/Mvc\/(\S*)\/index.vue/)[1];
|
|
107
|
-
|
|
108
|
+
v[e] = n(s[i]);
|
|
108
109
|
}
|
|
109
|
-
const a = /* @__PURE__ */ Object.assign({ "./Super/AiApp/index.vue": () => import("./AiApp.js"), "./Super/AiOrg/index.vue": () => import("./AiOrg.js"), "./Super/AsaAdGroup/index.vue": () => import("./AsaAdGroup.js"), "./Super/AsaApp/index.vue": () => import("./AsaApp.js"), "./Super/AsaCampaign/index.vue": () => import("./AsaCampaign.js"), "./Super/AsaOrg/index.vue": () => import("./AsaOrg.js"), "./Super/Country/index.vue": () => import("./Country.js"), "./Super/CountryItem/index.vue": () => import("./CountryItem.js"), "./Super/DatePicker/index.vue": () => import("./DatePicker.js"), "./Super/EChart/index.vue": () => import("./EChart.js"), "./Super/Form/index.vue": () => import("./Form.js"), "./Super/MultipleSelect/index.vue": () => import("./MultipleSelect.js"), "./Super/Org/index.vue": () => import("./Org.js"), "./Super/StatusItem/index.vue": () => import("./StatusItem.js"), "./Super/StatusSelect/index.vue": () => import("./StatusSelect.js"), "./Super/Table/index.vue": () => import("./Table.js"), "./Super/Timezone/index.vue": () => import("./Timezone.js") }),
|
|
110
|
+
const a = /* @__PURE__ */ Object.assign({ "./Super/AiApp/index.vue": () => import("./AiApp.js"), "./Super/AiOrg/index.vue": () => import("./AiOrg.js"), "./Super/AsaAdGroup/index.vue": () => import("./AsaAdGroup.js"), "./Super/AsaApp/index.vue": () => import("./AsaApp.js"), "./Super/AsaCampaign/index.vue": () => import("./AsaCampaign.js"), "./Super/AsaOrg/index.vue": () => import("./AsaOrg.js"), "./Super/Country/index.vue": () => import("./Country.js"), "./Super/CountryItem/index.vue": () => import("./CountryItem.js"), "./Super/DatePicker/index.vue": () => import("./DatePicker.js"), "./Super/EChart/index.vue": () => import("./EChart.js"), "./Super/Form/index.vue": () => import("./Form.js"), "./Super/MultipleSelect/index.vue": () => import("./MultipleSelect.js"), "./Super/Org/index.vue": () => import("./Org.js"), "./Super/StatusItem/index.vue": () => import("./StatusItem.js"), "./Super/StatusSelect/index.vue": () => import("./StatusSelect.js"), "./Super/Table/index.vue": () => import("./Table.js"), "./Super/Timezone/index.vue": () => import("./Timezone.js") }), l = {};
|
|
110
111
|
for (const i in a) {
|
|
111
112
|
const e = i.match(/Super\/(\S*)\/index.vue/)[1];
|
|
112
|
-
|
|
113
|
+
l[e] = n(a[i]);
|
|
113
114
|
}
|
|
114
115
|
const d = {
|
|
115
|
-
...
|
|
116
|
-
...
|
|
117
|
-
},
|
|
116
|
+
...v,
|
|
117
|
+
...l
|
|
118
|
+
}, h = (i) => {
|
|
118
119
|
for (let e in d)
|
|
119
120
|
i.component(e, d[e]);
|
|
120
|
-
},
|
|
121
|
+
}, y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
121
122
|
__proto__: null,
|
|
122
|
-
default:
|
|
123
|
+
default: h
|
|
123
124
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
124
|
-
window.$md =
|
|
125
|
-
window.$ecs =
|
|
126
|
-
window.$bn =
|
|
127
|
-
const
|
|
125
|
+
window.$md = S;
|
|
126
|
+
window.$ecs = x;
|
|
127
|
+
window.$bn = g;
|
|
128
|
+
const m = localStorage.getItem("lang");
|
|
129
|
+
m && m.includes("cn") && c.locale("zh-cn", {
|
|
130
|
+
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
|
|
131
|
+
"_"
|
|
132
|
+
),
|
|
133
|
+
monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split(
|
|
134
|
+
"_"
|
|
135
|
+
),
|
|
136
|
+
weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
137
|
+
weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
138
|
+
weekdaysMin: "日_一_二_三_四_五_六".split("_")
|
|
139
|
+
});
|
|
140
|
+
window.$m = c;
|
|
141
|
+
const M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
128
142
|
__proto__: null
|
|
129
143
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
130
144
|
export {
|
|
131
|
-
|
|
145
|
+
P as c
|
|
132
146
|
};
|
package/dist/vendor.js
CHANGED
|
@@ -1,59 +1,38 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as n } from "./util.js";
|
|
2
2
|
import { d as a } from "./directive.js";
|
|
3
|
-
import { p as
|
|
3
|
+
import { p as c } from "./store.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "./cpt/component.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return
|
|
6
|
+
const d = (t, r, o) => {
|
|
7
|
+
const e = t[r];
|
|
8
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, s) => {
|
|
9
9
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
10
|
-
|
|
10
|
+
s.bind(
|
|
11
11
|
null,
|
|
12
12
|
new Error(
|
|
13
|
-
"Unknown variable dynamic import: " +
|
|
13
|
+
"Unknown variable dynamic import: " + r + (r.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
|
|
14
14
|
)
|
|
15
15
|
)
|
|
16
16
|
);
|
|
17
17
|
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let r;
|
|
23
|
-
if (e.storeChips)
|
|
18
|
+
}, v = (t, r) => {
|
|
19
|
+
t.use(n).use(a);
|
|
20
|
+
let o;
|
|
21
|
+
if (r.storeChips)
|
|
24
22
|
try {
|
|
25
|
-
const { store:
|
|
26
|
-
|
|
23
|
+
const { store: e, pinia: i } = c(r.storeChips);
|
|
24
|
+
o = e, t.provide("store", e).use(i);
|
|
27
25
|
} catch {
|
|
28
26
|
throw new Error("RangeError: Maximum call stack size exceeded");
|
|
29
27
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
e && e.includes("cn") && s.locale("zh-cn", {
|
|
36
|
-
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
|
|
37
|
-
"_"
|
|
38
|
-
),
|
|
39
|
-
monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split(
|
|
40
|
-
"_"
|
|
41
|
-
),
|
|
42
|
-
weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
43
|
-
weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
44
|
-
weekdaysMin: "日_一_二_三_四_五_六".split("_")
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return s;
|
|
48
|
-
};
|
|
49
|
-
const y = (o, e) => {
|
|
50
|
-
const r = o.__vccOpts || o;
|
|
51
|
-
for (const [t, _] of e)
|
|
52
|
-
r[t] = _;
|
|
53
|
-
return r;
|
|
28
|
+
}, _ = (t, r) => {
|
|
29
|
+
const o = t.__vccOpts || t;
|
|
30
|
+
for (const [e, i] of r)
|
|
31
|
+
o[e] = i;
|
|
32
|
+
return o;
|
|
54
33
|
};
|
|
55
34
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
_,
|
|
36
|
+
d as a,
|
|
37
|
+
v as i
|
|
59
38
|
};
|