magtool 1.5.46 → 1.5.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,9 @@
1
1
  import { a as p } from "../vendor.js";
2
2
  import { defineAsyncComponent as n } from "vue";
3
- class c {
3
+ import v from "markdown-it";
4
+ import l from "echarts";
5
+ import x from "bignumber.js";
6
+ class S {
4
7
  constructor() {
5
8
  this.appRegistrationStatus = /* @__PURE__ */ new WeakMap(), this.loadedComponents = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
6
9
  }
@@ -8,7 +11,8 @@ class c {
8
11
  if (this.appRegistrationStatus.has(e))
9
12
  return console.warn("Components already registered for this app instance"), !1;
10
13
  try {
11
- return (await Promise.resolve().then(() => l)).default(e), this.appRegistrationStatus.set(e, {
14
+ const t = await Promise.resolve().then(() => h);
15
+ return await Promise.resolve().then(() => A), t.default(e), this.appRegistrationStatus.set(e, {
12
16
  registeredAt: /* @__PURE__ */ new Date(),
13
17
  components: Object.keys(await this.getAllComponentNames())
14
18
  }), !0;
@@ -97,26 +101,32 @@ class c {
97
101
  this.appRegistrationStatus = /* @__PURE__ */ new WeakMap(), this.loadedComponents.clear(), this.loadingPromises.clear();
98
102
  }
99
103
  }
100
- const h = new c(), 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") }), m = {};
104
+ const b = new S(), 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") }), m = {};
101
105
  for (const i in s) {
102
106
  const e = i.match(/Mvc\/(\S*)\/index.vue/)[1];
103
107
  m[e] = n(s[i]);
104
108
  }
105
- 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") }), v = {};
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") }), c = {};
106
110
  for (const i in a) {
107
111
  const e = i.match(/Super\/(\S*)\/index.vue/)[1];
108
- v[e] = n(a[i]);
112
+ c[e] = n(a[i]);
109
113
  }
110
114
  const d = {
111
115
  ...m,
112
- ...v
113
- }, x = (i) => {
116
+ ...c
117
+ }, g = (i) => {
114
118
  for (let e in d)
115
119
  i.component(e, d[e]);
116
- }, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120
+ }, h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
117
121
  __proto__: null,
118
- default: x
122
+ default: g
123
+ }, Symbol.toStringTag, { value: "Module" }));
124
+ window.$md = v;
125
+ window.$ecs = l;
126
+ window.$bn = x;
127
+ const A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
+ __proto__: null
119
129
  }, Symbol.toStringTag, { value: "Module" }));
120
130
  export {
121
- h as c
131
+ b as c
122
132
  };
package/dist/vendor.js CHANGED
@@ -1,38 +1,38 @@
1
- import { d as m } from "./util.js";
2
- import { d as c } from "./directive.js";
3
- import { p as u } from "./store.js";
1
+ import { d as i } from "./util.js";
2
+ import { d as a } from "./directive.js";
3
+ import { p as l } from "./store.js";
4
4
  /* empty css */
5
5
  import "./cpt/component.js";
6
- const h = (e, t, r) => {
7
- const o = e[t];
8
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
6
+ const f = (o, e, r) => {
7
+ const t = o[e];
8
+ return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((_, n) => {
9
9
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
10
- l.bind(
10
+ n.bind(
11
11
  null,
12
12
  new Error(
13
- "Unknown variable dynamic import: " + t + (t.split("/").length !== r ? ". Note that variables only represent file names one level deep." : "")
13
+ "Unknown variable dynamic import: " + e + (e.split("/").length !== r ? ". Note that variables only represent file names one level deep." : "")
14
14
  )
15
15
  )
16
16
  );
17
17
  });
18
18
  };
19
- let i, s, a, _;
20
- const M = (e, t) => {
21
- e.use(m).use(c);
19
+ let s;
20
+ const w = (o, e) => {
21
+ o.use(i).use(a);
22
22
  let r;
23
- if (t.storeChips)
23
+ if (e.storeChips)
24
24
  try {
25
- const { store: o, pinia: n } = u(t.storeChips);
26
- r = o, e.provide("store", o).use(n);
25
+ const { store: t, pinia: _ } = l(e.storeChips);
26
+ r = t, o.provide("store", t).use(_);
27
27
  } catch {
28
28
  throw new Error("RangeError: Maximum call stack size exceeded");
29
29
  }
30
30
  };
31
31
  window.$m = async () => {
32
- if (!i) {
33
- i = (await import("moment")).default;
34
- const t = localStorage.getItem("lang");
35
- t && t.includes("cn") && i.locale("zh-cn", {
32
+ if (!s) {
33
+ s = (await import("moment")).default;
34
+ const e = localStorage.getItem("lang");
35
+ e && e.includes("cn") && s.locale("zh-cn", {
36
36
  months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
37
37
  "_"
38
38
  ),
@@ -44,19 +44,16 @@ window.$m = async () => {
44
44
  weekdaysMin: "日_一_二_三_四_五_六".split("_")
45
45
  });
46
46
  }
47
- return i;
47
+ return s;
48
48
  };
49
- window.$md = async () => (s || (s = (await import("markdown-it")).default), s);
50
- window.$ecs = async () => (a || (a = (await import("echarts")).default), a);
51
- window.$bn = async () => (_ || (_ = (await import("bignumber.js")).default), _);
52
- const k = (e, t) => {
53
- const r = e.__vccOpts || e;
54
- for (const [o, n] of t)
55
- r[o] = n;
49
+ const y = (o, e) => {
50
+ const r = o.__vccOpts || o;
51
+ for (const [t, _] of e)
52
+ r[t] = _;
56
53
  return r;
57
54
  };
58
55
  export {
59
- k as _,
60
- h as a,
61
- M as i
56
+ y as _,
57
+ f as a,
58
+ w as i
62
59
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "magtool",
3
3
  "packageManager": "yarn@4.4.1",
4
- "version": "1.5.46",
4
+ "version": "1.5.47",
5
5
  "author": "matt avis",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",