@kengic/vue 0.0.2-beta.38 → 0.0.2-beta.39
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/kengic-vue.js +80 -86
- package/dist/src/consts/i18n/index.d.ts +10 -4
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -1,71 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Collapse as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as _, createVNode as h } from "vue";
|
|
2
|
+
import { Collapse as v } from "ant-design-vue";
|
|
3
|
+
const be = _({
|
|
4
4
|
name: "KgPage",
|
|
5
5
|
setup(e, {
|
|
6
6
|
slots: t
|
|
7
7
|
}) {
|
|
8
8
|
return () => {
|
|
9
|
-
var
|
|
9
|
+
var i;
|
|
10
10
|
return h("div", {
|
|
11
11
|
class: "kg-page"
|
|
12
|
-
}, [(
|
|
12
|
+
}, [(i = t.default) == null ? void 0 : i.call(t)]);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
const
|
|
16
|
+
const ge = _({
|
|
17
17
|
name: "KgVarProfile",
|
|
18
18
|
setup(e, {
|
|
19
19
|
slots: t
|
|
20
20
|
}) {
|
|
21
21
|
return () => h("div", {
|
|
22
22
|
class: "kg-var-profile"
|
|
23
|
-
}, [h(
|
|
23
|
+
}, [h(v, {
|
|
24
24
|
activeKey: "1"
|
|
25
25
|
}, {
|
|
26
|
-
default: () => [h(
|
|
26
|
+
default: () => [h(v.Panel, {
|
|
27
27
|
key: "1",
|
|
28
28
|
header: "This is panel header 1"
|
|
29
29
|
}, {
|
|
30
30
|
default: () => {
|
|
31
|
-
var
|
|
32
|
-
return [(
|
|
31
|
+
var i;
|
|
32
|
+
return [(i = t.default) == null ? void 0 : i.call(t)];
|
|
33
33
|
}
|
|
34
34
|
})]
|
|
35
35
|
})]);
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), V = {
|
|
38
38
|
foo: {
|
|
39
39
|
x: "AAA"
|
|
40
40
|
}
|
|
41
|
-
},
|
|
42
|
-
__proto__: null,
|
|
43
|
-
default: z
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), W = {
|
|
41
|
+
}, W = {
|
|
45
42
|
foo: {
|
|
46
43
|
x: "\u554A\u554A\u554A"
|
|
47
44
|
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
const k = ["data-manager", "business-manager", "sys"];
|
|
54
|
-
function F(e, t) {
|
|
55
|
-
var n, o;
|
|
45
|
+
}, Ee = { en: V, zh_CN: W };
|
|
46
|
+
var a = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINESS_MANAGER = "business-manager", e.SYS = "sys", e))(a || {}), u = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "/wms/data-manager", e.BUSINESS_MANAGER = "/wms/business-manager", e.SYS = "/sys", e))(u || {});
|
|
47
|
+
const P = ["data-manager", "business-manager", "sys"];
|
|
48
|
+
function z(e, t) {
|
|
49
|
+
var i, o;
|
|
56
50
|
switch (t) {
|
|
57
|
-
case
|
|
58
|
-
return (
|
|
59
|
-
case
|
|
51
|
+
case a.DATA_MANAGER:
|
|
52
|
+
return (i = e == null ? void 0 : e.startsWith(u.DATA_MANAGER)) != null ? i : !1;
|
|
53
|
+
case a.BUSINESS_MANAGER:
|
|
60
54
|
return (o = e == null ? void 0 : e.startsWith(u.BUSINESS_MANAGER)) != null ? o : !1;
|
|
61
|
-
case
|
|
55
|
+
case a.SYS:
|
|
62
56
|
return (e == null ? void 0 : e.startsWith(u.SYS)) || !(e != null && e.startsWith(u.DATA_MANAGER)) && !(e != null && e.startsWith(u.BUSINESS_MANAGER));
|
|
63
57
|
default:
|
|
64
58
|
throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
61
|
+
function Ne(e) {
|
|
62
|
+
const t = P.find((i) => z(e, i));
|
|
69
63
|
if (t)
|
|
70
64
|
return t;
|
|
71
65
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${e}`);
|
|
@@ -73,13 +67,13 @@ function Se(e) {
|
|
|
73
67
|
function me(e) {
|
|
74
68
|
let t = "";
|
|
75
69
|
switch (e) {
|
|
76
|
-
case
|
|
70
|
+
case a.DATA_MANAGER:
|
|
77
71
|
t = `${u.DATA_MANAGER}/views/adrmst`;
|
|
78
72
|
break;
|
|
79
|
-
case
|
|
73
|
+
case a.BUSINESS_MANAGER:
|
|
80
74
|
t = `${u.BUSINESS_MANAGER}/outbound-plan/outbound-order/outbound-order`;
|
|
81
75
|
break;
|
|
82
|
-
case
|
|
76
|
+
case a.SYS:
|
|
83
77
|
t = "/about/index";
|
|
84
78
|
break;
|
|
85
79
|
default:
|
|
@@ -94,7 +88,7 @@ function me(e) {
|
|
|
94
88
|
* @license BSD-3-Clause
|
|
95
89
|
* @version 10.0.6
|
|
96
90
|
*/
|
|
97
|
-
const
|
|
91
|
+
const Z = "array", F = "bit", U = "bits", J = "byte", k = "bytes", E = "", q = "exponent", H = "function", y = "iec", Q = "Invalid number", X = "Invalid rounding method", m = "jedec", ee = "object", K = ".", te = "round", ie = "s", ne = "kbit", oe = "kB", re = " ", se = "string", ce = "0", T = {
|
|
98
92
|
symbol: {
|
|
99
93
|
iec: {
|
|
100
94
|
bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
|
|
@@ -110,105 +104,105 @@ const J = "array", q = "bit", O = "bits", H = "byte", Y = "bytes", E = "", Q = "
|
|
|
110
104
|
jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
|
|
111
105
|
}
|
|
112
106
|
};
|
|
113
|
-
function
|
|
107
|
+
function le(e, {
|
|
114
108
|
bits: t = !1,
|
|
115
|
-
pad:
|
|
109
|
+
pad: i = !1,
|
|
116
110
|
base: o = -1,
|
|
117
111
|
round: l = 2,
|
|
118
112
|
locale: c = E,
|
|
119
|
-
localeOptions:
|
|
113
|
+
localeOptions: b = {},
|
|
120
114
|
separator: f = E,
|
|
121
|
-
spacer:
|
|
115
|
+
spacer: B = re,
|
|
122
116
|
symbols: R = {},
|
|
123
117
|
standard: s = E,
|
|
124
|
-
output:
|
|
125
|
-
fullform:
|
|
118
|
+
output: w = se,
|
|
119
|
+
fullform: x = !1,
|
|
126
120
|
fullforms: M = [],
|
|
127
121
|
exponent: p = -1,
|
|
128
|
-
roundingMethod:
|
|
129
|
-
precision:
|
|
122
|
+
roundingMethod: L = te,
|
|
123
|
+
precision: S = 0
|
|
130
124
|
} = {}) {
|
|
131
|
-
let r = p, g = Number(e),
|
|
132
|
-
o === -1 && s.length === 0 ? (o = 10, s =
|
|
133
|
-
const
|
|
125
|
+
let r = p, g = Number(e), n = [], A = 0, I = E;
|
|
126
|
+
o === -1 && s.length === 0 ? (o = 10, s = m) : o === -1 && s.length > 0 ? (s = s === y ? y : m, o = s === y ? 2 : 10) : (o = o === 2 ? 2 : 10, s = o === 10 || s === m ? m : y);
|
|
127
|
+
const d = o === 10 ? 1e3 : 1024, O = x === !0, G = g < 0, $ = Math[L];
|
|
134
128
|
if (typeof e != "bigint" && isNaN(e))
|
|
135
|
-
throw new TypeError(
|
|
136
|
-
if (typeof
|
|
137
|
-
throw new TypeError(
|
|
138
|
-
if (
|
|
129
|
+
throw new TypeError(Q);
|
|
130
|
+
if (typeof $ !== H)
|
|
131
|
+
throw new TypeError(X);
|
|
132
|
+
if (G && (g = -g), (r === -1 || isNaN(r)) && (r = Math.floor(Math.log(g) / Math.log(d)), r < 0 && (r = 0)), r > 8 && (S > 0 && (S += 8 - r), r = 8), w === q)
|
|
139
133
|
return r;
|
|
140
134
|
if (g === 0)
|
|
141
|
-
|
|
135
|
+
n[0] = 0, I = n[1] = T.symbol[s][t ? U : k][r];
|
|
142
136
|
else {
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
|
|
137
|
+
A = g / (o === 2 ? Math.pow(2, r * 10) : Math.pow(1e3, r)), t && (A = A * 8, A >= d && r < 8 && (A = A / d, r++));
|
|
138
|
+
const N = Math.pow(10, r > 0 ? l : 0);
|
|
139
|
+
n[0] = $(A * N) / N, n[0] === d && r < 8 && p === -1 && (n[0] = 1, r++), I = n[1] = o === 10 && r === 1 ? t ? ne : oe : T.symbol[s][t ? U : k][r];
|
|
146
140
|
}
|
|
147
|
-
if (
|
|
148
|
-
const
|
|
149
|
-
|
|
141
|
+
if (G && (n[0] = -n[0]), S > 0 && (n[0] = n[0].toPrecision(S)), n[1] = R[n[1]] || n[1], c === !0 ? n[0] = n[0].toLocaleString() : c.length > 0 ? n[0] = n[0].toLocaleString(c, b) : f.length > 0 && (n[0] = n[0].toString().replace(K, f)), i && Number.isInteger(n[0]) === !1 && l > 0) {
|
|
142
|
+
const N = f || K, D = n[0].toString().split(N), C = D[1] || E, Y = C.length, j = l - Y;
|
|
143
|
+
n[0] = `${D[0]}${N}${C.padEnd(Y + j, ce)}`;
|
|
150
144
|
}
|
|
151
|
-
return
|
|
152
|
-
value:
|
|
153
|
-
symbol:
|
|
145
|
+
return O && (n[1] = M[r] ? M[r] : T.fullform[s][r] + (t ? F : J) + (n[0] === 1 ? E : ie)), w === Z ? n : w === ee ? {
|
|
146
|
+
value: n[0],
|
|
147
|
+
symbol: n[1],
|
|
154
148
|
exponent: r,
|
|
155
|
-
unit:
|
|
156
|
-
} :
|
|
149
|
+
unit: I
|
|
150
|
+
} : n.join(B);
|
|
157
151
|
}
|
|
158
152
|
function Be(e) {
|
|
159
153
|
const t = Number(e);
|
|
160
|
-
return Number.isNaN(t) || t <= 0 ? "0 KB" : String(
|
|
154
|
+
return Number.isNaN(t) || t <= 0 ? "0 KB" : String(le(t)).toUpperCase();
|
|
161
155
|
}
|
|
162
|
-
function
|
|
156
|
+
function ue(e, t, i = 512) {
|
|
163
157
|
let o = e;
|
|
164
158
|
o.startsWith("data:") && (o = e.split("base64,")[1]);
|
|
165
159
|
const l = atob(o), c = [];
|
|
166
|
-
for (let
|
|
167
|
-
const f = l.slice(
|
|
160
|
+
for (let b = 0; b < l.length; b += i) {
|
|
161
|
+
const f = l.slice(b, b + i), B = new Array(f.length);
|
|
168
162
|
for (let s = 0; s < f.length; s++)
|
|
169
|
-
|
|
170
|
-
const R = new Uint8Array(
|
|
163
|
+
B[s] = f.charCodeAt(s);
|
|
164
|
+
const R = new Uint8Array(B);
|
|
171
165
|
c.push(R);
|
|
172
166
|
}
|
|
173
167
|
return new Blob(c, { type: t });
|
|
174
168
|
}
|
|
175
|
-
function
|
|
169
|
+
function Se(e, t, i) {
|
|
176
170
|
let o;
|
|
177
|
-
typeof e == "string" ? o = new Blob([
|
|
171
|
+
typeof e == "string" ? o = new Blob([ue(e, i)], { type: i }) : o = new Blob([e], { type: i });
|
|
178
172
|
const l = URL.createObjectURL(o), c = document.createElement("a");
|
|
179
173
|
document.body.appendChild(c), c.setAttribute("style", "display:none"), c.setAttribute("href", l), c.setAttribute("download", t), c.click(), URL.revokeObjectURL(l);
|
|
180
174
|
}
|
|
181
|
-
function
|
|
175
|
+
function fe(e) {
|
|
182
176
|
const t = [];
|
|
183
|
-
return e.forEach((
|
|
177
|
+
return e.forEach((i) => {
|
|
184
178
|
[
|
|
185
179
|
"/online/copyform/:code",
|
|
186
180
|
"/online/cgformList/:id",
|
|
187
181
|
"/online/cgformTreeList/:id",
|
|
188
182
|
"/online/cgreport/:id",
|
|
189
183
|
"/online/graphreport/chart/:code"
|
|
190
|
-
].includes(
|
|
184
|
+
].includes(i.path) && P.forEach((o) => {
|
|
191
185
|
t.push({
|
|
192
|
-
...
|
|
193
|
-
path: `/${o}${
|
|
194
|
-
name: `${o}-${
|
|
195
|
-
id: `${o}-${
|
|
186
|
+
...i,
|
|
187
|
+
path: `/${o}${i.path}`,
|
|
188
|
+
name: `${o}-${i.name}`,
|
|
189
|
+
id: `${o}-${i.id}`
|
|
196
190
|
});
|
|
197
|
-
}),
|
|
191
|
+
}), i.children && (i.children = fe(i.children));
|
|
198
192
|
}), [...e, ...t];
|
|
199
193
|
}
|
|
200
194
|
export {
|
|
201
|
-
|
|
202
|
-
|
|
195
|
+
P as KG_APPS,
|
|
196
|
+
a as KG_APPS_ENUM,
|
|
203
197
|
u as KG_APPS_PREFIXS_ENUM,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
198
|
+
Ee as KG_I18N,
|
|
199
|
+
be as KgPage,
|
|
200
|
+
ge as KgVarProfile,
|
|
201
|
+
fe as addOnlineRoutesForAllApps,
|
|
202
|
+
ue as base64toBlob,
|
|
203
|
+
Se as downloadFile,
|
|
204
|
+
Ne as getAppByPath,
|
|
211
205
|
me as getAppIndexPath,
|
|
212
206
|
Be as getFileSize,
|
|
213
|
-
|
|
207
|
+
z as isPathInApp
|
|
214
208
|
};
|