@kengic/vue 0.0.2-beta.30 → 0.0.2-beta.31

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.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +39 -39
  2. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as O, createVNode as M, openBlock as Z, createElementBlock as z, Fragment as G, createElementVNode as J, toDisplayString as H, unref as x, withCtx as U, createTextVNode as X } from "vue";
1
+ import { defineComponent as O, createVNode as M, openBlock as Z, createElementBlock as z, Fragment as G, createElementVNode as p, toDisplayString as J, unref as x, withCtx as U, createTextVNode as H } from "vue";
2
2
  import { Button as D } from "ant-design-vue";
3
- const p = O({
3
+ const X = O({
4
4
  props: {
5
5
  name: String
6
6
  },
@@ -17,21 +17,21 @@ const p = O({
17
17
  msg: String
18
18
  },
19
19
  setup(e) {
20
- return (t, r) => (Z(), z(G, null, [J("div", null, "Hello " + H(e.msg) + "!", 1), M(x(D), {
20
+ return (i, r) => (Z(), z(G, null, [p("div", null, "Hello " + J(e.msg) + "!", 1), M(x(D), {
21
21
  type: "primary"
22
22
  }, {
23
- default: U(() => [X("CLICK")]),
23
+ default: U(() => [H("CLICK")]),
24
24
  _: 1
25
- }), M(x(p), {
25
+ }), M(x(X), {
26
26
  name: "FOO"
27
27
  })], 64));
28
28
  }
29
29
  });
30
30
  var s = /* @__PURE__ */ ((e) => (e.WMS = "wms", e.MES = "mes", e.WCS = "wcs", e.SYS = "sys", e))(s || {});
31
31
  const v = ["wms", "mes", "wcs", "sys"];
32
- function q(e, t) {
32
+ function q(e, i) {
33
33
  var r, o, u;
34
- switch (t) {
34
+ switch (i) {
35
35
  case s.WMS:
36
36
  return (r = e == null ? void 0 : e.startsWith(`/${s.WMS}`)) != null ? r : !1;
37
37
  case s.MES:
@@ -41,34 +41,34 @@ function q(e, t) {
41
41
  case s.SYS:
42
42
  return !(e != null && e.startsWith(`/${s.WMS}`)) && !(e != null && e.startsWith(`/${s.MES}`)) && !(e != null && e.startsWith(`/${s.WCS}`));
43
43
  default:
44
- throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
44
+ throw new Error(`\u672A\u77E5\u6A21\u5757: ${i}`);
45
45
  }
46
46
  }
47
47
  function Ne(e) {
48
- const t = v.find((r) => q(e, r));
49
- if (t)
50
- return t;
48
+ const i = v.find((r) => q(e, r));
49
+ if (i)
50
+ return i;
51
51
  throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${e}`);
52
52
  }
53
53
  function $e(e) {
54
- let t = "";
54
+ let i = "";
55
55
  switch (e) {
56
56
  case s.WMS:
57
- t = `/${e}/views/adrmst`;
57
+ i = `/${e}/views/adrmst`;
58
58
  break;
59
59
  case s.MES:
60
- t = `/${e}/about/index`;
60
+ i = `/${e}/about/index`;
61
61
  break;
62
62
  case s.WCS:
63
- t = `/${e}/about/index`;
63
+ i = `/${e}/about/index`;
64
64
  break;
65
65
  case s.SYS:
66
- t = "/about/index";
66
+ i = "/about/index";
67
67
  break;
68
68
  default:
69
69
  throw new Error(`\u672A\u77E5\u6A21\u5757: ${e}`);
70
70
  }
71
- return t;
71
+ return i;
72
72
  }
73
73
  /**
74
74
  * filesize
@@ -77,7 +77,7 @@ function $e(e) {
77
77
  * @license BSD-3-Clause
78
78
  * @version 10.0.6
79
79
  */
80
- const Q = "array", ee = "bit", Y = "bits", ie = "byte", R = "bytes", m = "", te = "exponent", ne = "function", E = "iec", oe = "Invalid number", re = "Invalid rounding method", S = "jedec", se = "object", k = ".", ce = "round", le = "s", ue = "kbit", fe = "kB", me = " ", be = "string", Se = "0", I = {
80
+ const Q = "array", ee = "bit", Y = "bits", te = "byte", R = "bytes", m = "", ie = "exponent", ne = "function", E = "iec", oe = "Invalid number", re = "Invalid rounding method", S = "jedec", se = "object", k = ".", ce = "round", le = "s", ue = "kbit", fe = "kB", me = " ", be = "string", Se = "0", I = {
81
81
  symbol: {
82
82
  iec: {
83
83
  bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
@@ -94,7 +94,7 @@ const Q = "array", ee = "bit", Y = "bits", ie = "byte", R = "bytes", m = "", te
94
94
  }
95
95
  };
96
96
  function ge(e, {
97
- bits: t = !1,
97
+ bits: i = !1,
98
98
  pad: r = !1,
99
99
  base: o = -1,
100
100
  round: u = 2,
@@ -107,43 +107,43 @@ function ge(e, {
107
107
  output: N = be,
108
108
  fullform: K = !1,
109
109
  fullforms: T = [],
110
- exponent: d = -1,
110
+ exponent: a = -1,
111
111
  roundingMethod: _ = ce,
112
112
  precision: g = 0
113
113
  } = {}) {
114
- let n = d, f = Number(e), i = [], l = 0, $ = m;
114
+ let n = a, f = Number(e), t = [], l = 0, $ = m;
115
115
  o === -1 && c.length === 0 ? (o = 10, c = S) : o === -1 && c.length > 0 ? (c = c === E ? E : S, o = c === E ? 2 : 10) : (o = o === 2 ? 2 : 10, c = o === 10 || c === S ? S : E);
116
- const B = o === 10 ? 1e3 : 1024, j = K === !0, a = f < 0, C = Math[_];
116
+ const B = o === 10 ? 1e3 : 1024, j = K === !0, d = f < 0, C = Math[_];
117
117
  if (typeof e != "bigint" && isNaN(e))
118
118
  throw new TypeError(oe);
119
119
  if (typeof C !== ne)
120
120
  throw new TypeError(re);
121
- if (a && (f = -f), (n === -1 || isNaN(n)) && (n = Math.floor(Math.log(f) / Math.log(B)), n < 0 && (n = 0)), n > 8 && (g > 0 && (g += 8 - n), n = 8), N === te)
121
+ if (d && (f = -f), (n === -1 || isNaN(n)) && (n = Math.floor(Math.log(f) / Math.log(B)), n < 0 && (n = 0)), n > 8 && (g > 0 && (g += 8 - n), n = 8), N === ie)
122
122
  return n;
123
123
  if (f === 0)
124
- i[0] = 0, $ = i[1] = I.symbol[c][t ? Y : R][n];
124
+ t[0] = 0, $ = t[1] = I.symbol[c][i ? Y : R][n];
125
125
  else {
126
- l = f / (o === 2 ? Math.pow(2, n * 10) : Math.pow(1e3, n)), t && (l = l * 8, l >= B && n < 8 && (l = l / B, n++));
126
+ l = f / (o === 2 ? Math.pow(2, n * 10) : Math.pow(1e3, n)), i && (l = l * 8, l >= B && n < 8 && (l = l / B, n++));
127
127
  const b = Math.pow(10, n > 0 ? u : 0);
128
- i[0] = C(l * b) / b, i[0] === B && n < 8 && d === -1 && (i[0] = 1, n++), $ = i[1] = o === 10 && n === 1 ? t ? ue : fe : I.symbol[c][t ? Y : R][n];
128
+ t[0] = C(l * b) / b, t[0] === B && n < 8 && a === -1 && (t[0] = 1, n++), $ = t[1] = o === 10 && n === 1 ? i ? ue : fe : I.symbol[c][i ? Y : R][n];
129
129
  }
130
- if (a && (i[0] = -i[0]), g > 0 && (i[0] = i[0].toPrecision(g)), i[1] = F[i[1]] || i[1], y === !0 ? i[0] = i[0].toLocaleString() : y.length > 0 ? i[0] = i[0].toLocaleString(y, P) : w.length > 0 && (i[0] = i[0].toString().replace(k, w)), r && Number.isInteger(i[0]) === !1 && u > 0) {
131
- const b = w || k, W = i[0].toString().split(b), A = W[1] || m, h = A.length, V = u - h;
132
- i[0] = `${W[0]}${b}${A.padEnd(h + V, Se)}`;
130
+ if (d && (t[0] = -t[0]), g > 0 && (t[0] = t[0].toPrecision(g)), t[1] = F[t[1]] || t[1], y === !0 ? t[0] = t[0].toLocaleString() : y.length > 0 ? t[0] = t[0].toLocaleString(y, P) : w.length > 0 && (t[0] = t[0].toString().replace(k, w)), r && Number.isInteger(t[0]) === !1 && u > 0) {
131
+ const b = w || k, W = t[0].toString().split(b), A = W[1] || m, h = A.length, V = u - h;
132
+ t[0] = `${W[0]}${b}${A.padEnd(h + V, Se)}`;
133
133
  }
134
- return j && (i[1] = T[n] ? T[n] : I.fullform[c][n] + (t ? ee : ie) + (i[0] === 1 ? m : le)), N === Q ? i : N === se ? {
135
- value: i[0],
136
- symbol: i[1],
134
+ return j && (t[1] = T[n] ? T[n] : I.fullform[c][n] + (i ? ee : te) + (t[0] === 1 ? m : le)), N === Q ? t : N === se ? {
135
+ value: t[0],
136
+ symbol: t[1],
137
137
  exponent: n,
138
138
  unit: $
139
- } : i.join(L);
139
+ } : t.join(L);
140
140
  }
141
141
  function Ie(e) {
142
- const t = Number(e);
143
- return Number.isNaN(t) || t <= 0 ? "0 KB" : ge(t);
142
+ const i = Number(e);
143
+ return Number.isNaN(i) || i <= 0 ? "0 KB" : String(ge(i)).toUpperCase();
144
144
  }
145
145
  function Be(e) {
146
- const t = [];
146
+ const i = [];
147
147
  return e.forEach((r) => {
148
148
  [
149
149
  "/online/copyform/:code",
@@ -152,17 +152,17 @@ function Be(e) {
152
152
  "/online/cgreport/:id",
153
153
  "/online/graphreport/chart/:code"
154
154
  ].includes(r.path) && v.forEach((o) => {
155
- t.push({
155
+ i.push({
156
156
  ...r,
157
157
  path: `/${o}${r.path}`,
158
158
  name: `${o}-${r.name}`,
159
159
  id: `${o}-${r.id}`
160
160
  });
161
161
  }), r.children && (r.children = Be(r.children));
162
- }), [...e, ...t];
162
+ }), [...e, ...i];
163
163
  }
164
164
  export {
165
- p as B,
165
+ X as B,
166
166
  we as ComponentA,
167
167
  v as KG_APPS,
168
168
  s as KG_APPS_ENUM,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.30",
3
+ "version": "0.0.2-beta.31",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "publish:all:beta": "npm run bump-version:beta && npm run publish:all",