@kengic/vue 0.21.5-beta.1 → 0.21.5-beta.3
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -2462,7 +2462,7 @@ const emptyIcon = {
|
|
2462
2462
|
...t.data
|
2463
2463
|
}, r);
|
2464
2464
|
}
|
2465
|
-
}), version = "0.21.5-beta.
|
2465
|
+
}), version = "0.21.5-beta.3";
|
2466
2466
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2467
2467
|
const freeGlobal$1 = freeGlobal;
|
2468
2468
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -4164,16 +4164,13 @@ class KgLogger {
|
|
4164
4164
|
}
|
4165
4165
|
static debugDDA(t, r, a, n, s = {}, i = !0) {
|
4166
4166
|
KgLogger.debug(
|
4167
|
-
`${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(
|
4168
|
-
32,
|
4169
|
-
" "
|
4170
|
-
)} | ${n}.`,
|
4167
|
+
`${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(32, " ")} | ${n}.`,
|
4171
4168
|
s,
|
4172
4169
|
i
|
4173
4170
|
);
|
4174
4171
|
}
|
4175
4172
|
}
|
4176
|
-
const en = {
|
4173
|
+
const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN_____ = KgLogger.warn, ____ERROR____ = KgLogger.error, en = {
|
4177
4174
|
kg: {
|
4178
4175
|
KgAppSelect: {
|
4179
4176
|
businessManager: "Business Manager",
|
@@ -4702,7 +4699,7 @@ class KgRouteUtil {
|
|
4702
4699
|
}), t;
|
4703
4700
|
}
|
4704
4701
|
static transformMenus(t) {
|
4705
|
-
var b, y, g, m, _, E, v, T, k, A, C, O, M, K, R, V, P, D, w, I, N, F, L, x, $, U, H, J, W, te, re, se,
|
4702
|
+
var b, y, g, m, _, E, v, T, k, A, C, O, M, K, R, V, P, D, w, I, N, F, L, x, $, U, H, J, W, te, re, se, de, ae;
|
4706
4703
|
if (!t)
|
4707
4704
|
return [];
|
4708
4705
|
const r = useKg(), a = (X) => {
|
@@ -4811,7 +4808,7 @@ class KgRouteUtil {
|
|
4811
4808
|
}
|
4812
4809
|
});
|
4813
4810
|
let u = [];
|
4814
|
-
((U = ($ = s.children) == null ? void 0 : $.length) != null ? U : 0 > 0) && u.push(s), ((J = (H = i.children) == null ? void 0 : H.length) != null ? J : 0 > 0) && u.push(i), ((te = (W = o.children) == null ? void 0 : W.length) != null ? te : 0 > 0) && u.push(o), ((se = (re = l.children) == null ? void 0 : re.length) != null ? se : 0 > 0) && u.push(l), ((ae = (
|
4811
|
+
((U = ($ = s.children) == null ? void 0 : $.length) != null ? U : 0 > 0) && u.push(s), ((J = (H = i.children) == null ? void 0 : H.length) != null ? J : 0 > 0) && u.push(i), ((te = (W = o.children) == null ? void 0 : W.length) != null ? te : 0 > 0) && u.push(o), ((se = (re = l.children) == null ? void 0 : re.length) != null ? se : 0 > 0) && u.push(l), ((ae = (de = c.children) == null ? void 0 : de.length) != null ? ae : 0 > 0) && u.push(c);
|
4815
4812
|
const d = (X) => {
|
4816
4813
|
X.sort((B, G) => {
|
4817
4814
|
var Q, Y;
|
@@ -5009,8 +5006,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5009
5006
|
case d:
|
5010
5007
|
return x ? U(1, W) : U(0, W + 1);
|
5011
5008
|
case u:
|
5012
|
-
var se = this.$locale().weekStart || 0,
|
5013
|
-
return U(x ? te -
|
5009
|
+
var se = this.$locale().weekStart || 0, de = (J < se ? J + 7 : J) - se;
|
5010
|
+
return U(x ? te - de : te + (6 - de), W);
|
5014
5011
|
case c:
|
5015
5012
|
case g:
|
5016
5013
|
return H(re + "Hours", 0);
|
@@ -5062,7 +5059,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5062
5059
|
return L.invalidDate || m;
|
5063
5060
|
var x = N || "YYYY-MM-DDTHH:mm:ssZ", $ = V.z(this), U = this.$H, H = this.$m, J = this.$M, W = L.weekdays, te = L.months, re = L.meridiem, se = function(X, B, G, Q) {
|
5064
5061
|
return X && (X[B] || X(F, x)) || G[B].slice(0, Q);
|
5065
|
-
},
|
5062
|
+
}, de = function(X) {
|
5066
5063
|
return V.s(U % 12 || 12, X, "0");
|
5067
5064
|
}, ae = re || function(X, B, G) {
|
5068
5065
|
var Q = X < 12 ? "AM" : "PM";
|
@@ -5100,9 +5097,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5100
5097
|
case "HH":
|
5101
5098
|
return V.s(U, 2, "0");
|
5102
5099
|
case "h":
|
5103
|
-
return
|
5100
|
+
return de(1);
|
5104
5101
|
case "hh":
|
5105
|
-
return
|
5102
|
+
return de(2);
|
5106
5103
|
case "a":
|
5107
5104
|
return ae(U, H, !0);
|
5108
5105
|
case "A":
|
@@ -7198,7 +7195,7 @@ function useDragToResize(e) {
|
|
7198
7195
|
T.remove(), k.remove();
|
7199
7196
|
}
|
7200
7197
|
function M(P) {
|
7201
|
-
var F, L, x, $, U, H, J, W, te, re, se,
|
7198
|
+
var F, L, x, $, U, H, J, W, te, re, se, de;
|
7202
7199
|
const {
|
7203
7200
|
event: D,
|
7204
7201
|
handleType: w
|
@@ -7229,12 +7226,12 @@ function useDragToResize(e) {
|
|
7229
7226
|
const ae = l.value.offsetWidth, X = Math.min(b.value, Math.max(d.value, m + I - E)), B = (L = (F = c.value) == null ? void 0 : F.clientHeight) != null ? L : s, G = ($ = (x = u.value) == null ? void 0 : x.clientHeight) != null ? $ : 0, Q = Math.min((H = (U = t.value) == null ? void 0 : U.kgMinHeight) != null ? H : n.value, B + KG_MODAL_BORDER_WIDTH * 2 + G), Y = l.value.offsetHeight, Z = Math.min(y.value, Math.max(Q, _ + N - v));
|
7230
7227
|
if (X === ae && Z === Y)
|
7231
7228
|
return;
|
7232
|
-
const
|
7233
|
-
l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${
|
7229
|
+
const ce = Number(getComputedStyle(l.value).top.replace(/px/g, "")) + (Z - Y) / 2, le = Number(getComputedStyle(l.value).left.replace(/px/g, "")) + (X - ae) / 2;
|
7230
|
+
l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${ce}px`, l.value.style.left = `${le}px`;
|
7234
7231
|
break;
|
7235
7232
|
}
|
7236
7233
|
case "bottom": {
|
7237
|
-
const ae = (W = (J = c.value) == null ? void 0 : J.clientHeight) != null ? W : s, X = (re = (te = u.value) == null ? void 0 : te.clientHeight) != null ? re : 0, B = Math.min((
|
7234
|
+
const ae = (W = (J = c.value) == null ? void 0 : J.clientHeight) != null ? W : s, X = (re = (te = u.value) == null ? void 0 : te.clientHeight) != null ? re : 0, B = Math.min((de = (se = t.value) == null ? void 0 : se.kgMinHeight) != null ? de : ae + X + KG_MODAL_BORDER_WIDTH * 2, n.value);
|
7238
7235
|
let G = Math.min(y.value, Math.max(B, _ + N - v));
|
7239
7236
|
l.value.offsetTop + G > n.value && (G = n.value - l.value.offsetTop);
|
7240
7237
|
const Q = l.value.offsetHeight, Y = Number(getComputedStyle(l.value).top.replace(/px/g, ""));
|
@@ -9101,17 +9098,13 @@ function useKgTable(e) {
|
|
9101
9098
|
}), d = computed(() => {
|
9102
9099
|
var E;
|
9103
9100
|
return ((E = t.varGridConfig.value) == null ? void 0 : E.aut_load_flg) === 1;
|
9104
|
-
}), b = computed(
|
9105
|
-
|
9106
|
-
|
9107
|
-
|
9108
|
-
|
9109
|
-
|
9110
|
-
|
9111
|
-
var E, v;
|
9112
|
-
return !!((E = t.varGridConfig.value) != null && E.id) && ((v = t.varGridConfig.value) == null ? void 0 : v.show_bottom_right_flg) !== 0;
|
9113
|
-
}
|
9114
|
-
);
|
9101
|
+
}), b = computed(() => {
|
9102
|
+
var E, v;
|
9103
|
+
return !!((E = t.varGridConfig.value) != null && E.id) && ((v = t.varGridConfig.value) == null ? void 0 : v.show_bottom_left_flg) !== 0;
|
9104
|
+
}), y = computed(() => {
|
9105
|
+
var E, v;
|
9106
|
+
return !!((E = t.varGridConfig.value) != null && E.id) && ((v = t.varGridConfig.value) == null ? void 0 : v.show_bottom_right_flg) !== 0;
|
9107
|
+
});
|
9115
9108
|
computed(() => {
|
9116
9109
|
var E, v;
|
9117
9110
|
return (v = (E = t.varGridConfig.value) == null ? void 0 : E.id_clm) != null ? v : "id";
|
@@ -9147,41 +9140,13 @@ function useKgTable(e) {
|
|
9147
9140
|
pageSizeOptions: g,
|
9148
9141
|
pageSizeOption: m,
|
9149
9142
|
kgSearchFormID: _,
|
9150
|
-
onReady: onEventFactory(
|
9151
|
-
|
9152
|
-
|
9153
|
-
|
9154
|
-
),
|
9155
|
-
|
9156
|
-
|
9157
|
-
r,
|
9158
|
-
"rowDoubleClick"
|
9159
|
-
),
|
9160
|
-
onBeforeSearch: onEventFactory(
|
9161
|
-
t.formID,
|
9162
|
-
r,
|
9163
|
-
"beforeSearch"
|
9164
|
-
),
|
9165
|
-
onBeforeSetDatas: onEventFactory(
|
9166
|
-
t.formID,
|
9167
|
-
r,
|
9168
|
-
"beforeSetDatas"
|
9169
|
-
),
|
9170
|
-
onAfterSearch: onEventFactory(
|
9171
|
-
t.formID,
|
9172
|
-
r,
|
9173
|
-
"afterSearch"
|
9174
|
-
),
|
9175
|
-
onBeforeRetrieve: onEventFactory(
|
9176
|
-
t.formID,
|
9177
|
-
r,
|
9178
|
-
"beforeSearch"
|
9179
|
-
),
|
9180
|
-
onRetrieve: onEventFactory(
|
9181
|
-
t.formID,
|
9182
|
-
r,
|
9183
|
-
"afterSearch"
|
9184
|
-
)
|
9143
|
+
onReady: onEventFactory(t.formID, r, "ready"),
|
9144
|
+
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
9145
|
+
onBeforeSearch: onEventFactory(t.formID, r, "beforeSearch"),
|
9146
|
+
onBeforeSetDatas: onEventFactory(t.formID, r, "beforeSetDatas"),
|
9147
|
+
onAfterSearch: onEventFactory(t.formID, r, "afterSearch"),
|
9148
|
+
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeSearch"),
|
9149
|
+
onRetrieve: onEventFactory(t.formID, r, "afterSearch")
|
9185
9150
|
};
|
9186
9151
|
}
|
9187
9152
|
const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig", getProps$H = () => ({
|
@@ -11370,7 +11335,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11370
11335
|
var B, G;
|
11371
11336
|
return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
|
11372
11337
|
}), k = computed(() => {
|
11373
|
-
var G, Q, Y, Z,
|
11338
|
+
var G, Q, Y, Z, _e, ce, ge, le, ve;
|
11374
11339
|
let B = {
|
11375
11340
|
pageNo: I.pageIndex,
|
11376
11341
|
pageSize: I.pageSize,
|
@@ -11380,11 +11345,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11380
11345
|
};
|
11381
11346
|
return s.varButtonSearch.value && (B = {
|
11382
11347
|
...B,
|
11383
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
11384
|
-
}), (
|
11348
|
+
...KgVarUtil.parseRequestParamsToJSON((ce = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? ce : "")
|
11349
|
+
}), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (B = {
|
11385
11350
|
...B,
|
11386
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
11387
|
-
}), ((
|
11351
|
+
...KgVarUtil.parseRequestParamsToJSON((le = s.varGridConfig.value.cmd_prm) != null ? le : "")
|
11352
|
+
}), ((ve = s.varGridConfig.value) == null ? void 0 : ve.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
|
11388
11353
|
}), A = computed(() => {
|
11389
11354
|
var B, G, Q, Y;
|
11390
11355
|
if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
|
@@ -11548,70 +11513,73 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11548
11513
|
immediate: !0
|
11549
11514
|
});
|
11550
11515
|
async function Q() {
|
11551
|
-
var Y, Z,
|
11516
|
+
var Y, Z, _e, ce, ge;
|
11552
11517
|
KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (I.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
|
11553
11518
|
try {
|
11554
|
-
const
|
11519
|
+
const le = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ve = ref({});
|
11555
11520
|
if (!await o.store.emit(s.formID, "beforeSearch", {
|
11556
|
-
params:
|
11557
|
-
response:
|
11521
|
+
params: le,
|
11522
|
+
response: ve
|
11558
11523
|
})) {
|
11559
11524
|
if (!T.value)
|
11560
11525
|
throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
11561
11526
|
VarButton: s.varButtonSearch.value
|
11562
11527
|
}), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
|
11563
|
-
const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((
|
11564
|
-
sql:
|
11565
|
-
whereSql:
|
11566
|
-
orderBySql:
|
11567
|
-
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t),
|
11528
|
+
const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((_e = s.currentVarProfileMaster.value) == null ? void 0 : _e.dyn_flg) === 1, {
|
11529
|
+
sql: Ce,
|
11530
|
+
whereSql: ke,
|
11531
|
+
orderBySql: Oe
|
11532
|
+
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), Se = await httpClient().request({
|
11568
11533
|
url: T.value,
|
11569
|
-
method: (
|
11570
|
-
|
11571
|
-
|
11534
|
+
method: (() => {
|
11535
|
+
var Ae, Me;
|
11536
|
+
return s.formID === ".wms.business-manager.outbound.wave.print-tag-modal" ? "POST" : (Me = (Ae = s.varButtonSearch.value) == null ? void 0 : Ae.cmd_method) != null ? Me : "GET";
|
11537
|
+
})(),
|
11538
|
+
params: le,
|
11539
|
+
data: le,
|
11572
11540
|
headers: {
|
11573
11541
|
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ye,
|
11574
|
-
[KG_HTTP_HEADERS.KG_QUERY_SQL]:
|
11575
|
-
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]:
|
11576
|
-
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]:
|
11542
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: Ce,
|
11543
|
+
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
|
11544
|
+
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Oe
|
11577
11545
|
}
|
11578
11546
|
}, {
|
11579
11547
|
isReturnNativeResponse: !0,
|
11580
11548
|
successMessageMode: "none"
|
11581
11549
|
});
|
11582
|
-
if (!
|
11550
|
+
if (!Se.data)
|
11583
11551
|
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
11584
|
-
if (![0, 200].includes((
|
11585
|
-
throw message.error(
|
11586
|
-
ye &&
|
11587
|
-
params:
|
11588
|
-
response:
|
11552
|
+
if (![0, 200].includes((ce = Se.data.code) != null ? ce : -1) || !Se.data.success)
|
11553
|
+
throw message.error(Se.data.message || n.t("kg.KgTable.request-fail-error")), new Error(Se.data.message || n.t("kg.KgTable.request-fail-error"));
|
11554
|
+
ye && Se.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ve.value = Se.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
11555
|
+
params: le,
|
11556
|
+
response: ve.value
|
11589
11557
|
});
|
11590
11558
|
}
|
11591
11559
|
const {
|
11592
11560
|
datas: Ee,
|
11593
|
-
total:
|
11594
|
-
} = v(
|
11561
|
+
total: Te
|
11562
|
+
} = v(ve), Re = await o.store.emit(s.formID, "beforeSetDatas", {
|
11595
11563
|
datas: Ee
|
11596
|
-
}),
|
11564
|
+
}), De = cloneDeep(w.value);
|
11597
11565
|
o.store.setDatas({
|
11598
11566
|
frmId: s.formID,
|
11599
11567
|
datas: Ee.value,
|
11600
11568
|
isPreserveSelectedRows: !0
|
11601
|
-
}), I.total =
|
11569
|
+
}), I.total = Te.value, d.value = {}, x({
|
11602
11570
|
isContinueWhenKgDisabled: !0
|
11603
|
-
}), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID,
|
11604
|
-
var
|
11605
|
-
return (
|
11606
|
-
}).filter((ye) => !!ye)) : ((
|
11571
|
+
}), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, De.map((ye) => {
|
11572
|
+
var Ce;
|
11573
|
+
return (Ce = Ee.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === ye);
|
11574
|
+
}).filter((ye) => !!ye)) : ((ge = s.varGridConfig.value) == null ? void 0 : ge.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
|
11607
11575
|
const Ke = await o.store.emit(s.formID, "afterSearch", {
|
11608
|
-
params:
|
11609
|
-
response:
|
11576
|
+
params: le,
|
11577
|
+
response: ve.value,
|
11610
11578
|
datas: Ee
|
11611
11579
|
});
|
11612
11580
|
o.store.setIsRequested(s.formID, !0);
|
11613
|
-
} catch (
|
11614
|
-
throw
|
11581
|
+
} catch (le) {
|
11582
|
+
throw le;
|
11615
11583
|
} finally {
|
11616
11584
|
o.store.setIsRequesting(s.formID, !1);
|
11617
11585
|
}
|
@@ -11641,7 +11609,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11641
11609
|
}
|
11642
11610
|
o.store.setSelectedRows(s.formID, w.value.map((Y) => {
|
11643
11611
|
var Z;
|
11644
|
-
return (Z = E.value) == null ? void 0 : Z.find((
|
11612
|
+
return (Z = E.value) == null ? void 0 : Z.find((_e) => _e[o.id.value] === Y);
|
11645
11613
|
}).filter((Y) => !!Y));
|
11646
11614
|
}
|
11647
11615
|
function J(B, G) {
|
@@ -11683,7 +11651,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11683
11651
|
kgDisabled: A.value
|
11684
11652
|
}, null);
|
11685
11653
|
}
|
11686
|
-
function
|
11654
|
+
function de() {
|
11687
11655
|
var B;
|
11688
11656
|
return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
|
11689
11657
|
fixed: "bottom"
|
@@ -11694,17 +11662,17 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11694
11662
|
}, null), R.value && createVNode(TableSummary.Cell, {
|
11695
11663
|
index: K.value ? 1 : 0
|
11696
11664
|
}, null), u.value.map((G, Q) => {
|
11697
|
-
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null,
|
11698
|
-
let
|
11699
|
-
return K.value && R.value ?
|
11700
|
-
index:
|
11701
|
-
align:
|
11665
|
+
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, _e = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
|
11666
|
+
let ce = Q;
|
11667
|
+
return K.value && R.value ? ce += 2 : (K.value || R.value) && (ce += 1), createVNode(TableSummary.Cell, {
|
11668
|
+
index: ce,
|
11669
|
+
align: _e
|
11702
11670
|
}, {
|
11703
11671
|
default: () => {
|
11704
|
-
var
|
11705
|
-
return [(
|
11672
|
+
var ge, le;
|
11673
|
+
return [(le = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : le.call(ge, {
|
11706
11674
|
column: G,
|
11707
|
-
index:
|
11675
|
+
index: ce,
|
11708
11676
|
varGridDetail: Z
|
11709
11677
|
})];
|
11710
11678
|
}
|
@@ -11753,7 +11721,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11753
11721
|
bodyCell: _,
|
11754
11722
|
emptyText: ae,
|
11755
11723
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
11756
|
-
summary:
|
11724
|
+
summary: de
|
11757
11725
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
11758
11726
|
class: D.value
|
11759
11727
|
}, [createVNode("div", {
|
@@ -13858,11 +13826,11 @@ const getProps$r = () => ({
|
|
13858
13826
|
setup: function(e, {
|
13859
13827
|
attrs: t
|
13860
13828
|
}) {
|
13861
|
-
var
|
13829
|
+
var Ae, Me;
|
13862
13830
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
13863
13831
|
inject(DI_KG_VAR__KG_PROPS, null);
|
13864
13832
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
13865
|
-
i.onSubmitSave(async () => (await
|
13833
|
+
i.onSubmitSave(async () => (await ge(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
|
13866
13834
|
const u = computed(() => s.isDeleting.value && R.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), K = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
|
13867
13835
|
var q, z, ee;
|
13868
13836
|
switch (!0) {
|
@@ -13934,7 +13902,7 @@ const getProps$r = () => ({
|
|
13934
13902
|
_useResizeObserver(J);
|
13935
13903
|
const W = _useTitle(), te = computed(() => u.value ? SUBMIT_DEFAULT_MIN_WIDTH : X.value), re = computed(() => te.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), {
|
13936
13904
|
getClass: se,
|
13937
|
-
getWrapClass:
|
13905
|
+
getWrapClass: de
|
13938
13906
|
} = _useClass(e), {
|
13939
13907
|
getLayout: ae
|
13940
13908
|
} = _useLayout(), {
|
@@ -13986,9 +13954,9 @@ const getProps$r = () => ({
|
|
13986
13954
|
return s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"] ? s.t(s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
|
13987
13955
|
}
|
13988
13956
|
return n.t("kg.save");
|
13989
|
-
}), Y = ref([(
|
13957
|
+
}), Y = ref([(Me = (Ae = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : Ae[0]) != null ? Me : ""]);
|
13990
13958
|
watch(re, (q, z) => {
|
13991
|
-
q === !0 && Z(), z === !0 && q === !1 &&
|
13959
|
+
q === !0 && Z(), z === !0 && q === !1 && _e();
|
13992
13960
|
}, {
|
13993
13961
|
immediate: !0
|
13994
13962
|
});
|
@@ -14002,8 +13970,8 @@ const getProps$r = () => ({
|
|
14002
13970
|
}))
|
14003
13971
|
return new Promise((z, ee) => {
|
14004
13972
|
var ie;
|
14005
|
-
const ne = watch(l.model, async (
|
14006
|
-
|
13973
|
+
const ne = watch(l.model, async (ue) => {
|
13974
|
+
ue && Object.keys(ue).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
|
14007
13975
|
isCopying: s.isCopying.value,
|
14008
13976
|
isCreating: s.isCreating.value,
|
14009
13977
|
isDeleting: s.isDeleting.value,
|
@@ -14017,10 +13985,10 @@ const getProps$r = () => ({
|
|
14017
13985
|
((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (F.value = !0);
|
14018
13986
|
});
|
14019
13987
|
}
|
14020
|
-
async function
|
13988
|
+
async function _e() {
|
14021
13989
|
await l.store.emit(s.formID, "close", null);
|
14022
13990
|
}
|
14023
|
-
async function
|
13991
|
+
async function ce() {
|
14024
13992
|
switch (!0) {
|
14025
13993
|
case s.isCreating.value:
|
14026
13994
|
s.store.setIsCreating(s.formID, !1);
|
@@ -14036,7 +14004,7 @@ const getProps$r = () => ({
|
|
14036
14004
|
break;
|
14037
14005
|
}
|
14038
14006
|
}
|
14039
|
-
async function
|
14007
|
+
async function ge() {
|
14040
14008
|
var q, z;
|
14041
14009
|
try {
|
14042
14010
|
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
@@ -14067,24 +14035,24 @@ const getProps$r = () => ({
|
|
14067
14035
|
return;
|
14068
14036
|
switch (!0) {
|
14069
14037
|
case s.isCreating.value:
|
14070
|
-
await
|
14038
|
+
await le();
|
14071
14039
|
break;
|
14072
14040
|
case s.isUpdating.value:
|
14073
|
-
await
|
14041
|
+
await ve();
|
14074
14042
|
break;
|
14075
14043
|
case s.isCopying.value:
|
14076
|
-
await
|
14044
|
+
await we();
|
14077
14045
|
break;
|
14078
14046
|
case s.isDeleting.value:
|
14079
|
-
await
|
14047
|
+
await Ee();
|
14080
14048
|
break;
|
14081
14049
|
}
|
14082
14050
|
} catch (ee) {
|
14083
14051
|
KgUtil.throwIfNotFormError(ee);
|
14084
14052
|
}
|
14085
14053
|
}
|
14086
|
-
async function
|
14087
|
-
var q, z, ee, ne, ie,
|
14054
|
+
async function le() {
|
14055
|
+
var q, z, ee, ne, ie, ue, fe;
|
14088
14056
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
14089
14057
|
try {
|
14090
14058
|
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), me = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
@@ -14109,7 +14077,7 @@ const getProps$r = () => ({
|
|
14109
14077
|
params: oe.value,
|
14110
14078
|
data: me.value
|
14111
14079
|
});
|
14112
|
-
((
|
14080
|
+
((ue = s.varButtonCreate.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(W.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((fe = s.varButtonCreate.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
|
14113
14081
|
isSearchFirstPage: !0
|
14114
14082
|
}), await l.store.emit(s.formID, "ok", {
|
14115
14083
|
isCreating: !0,
|
@@ -14126,8 +14094,8 @@ const getProps$r = () => ({
|
|
14126
14094
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
14127
14095
|
}
|
14128
14096
|
}
|
14129
|
-
async function
|
14130
|
-
var q, z, ee, ne, ie,
|
14097
|
+
async function ve() {
|
14098
|
+
var q, z, ee, ne, ie, ue, fe;
|
14131
14099
|
try {
|
14132
14100
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
14133
14101
|
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), me = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
@@ -14152,7 +14120,7 @@ const getProps$r = () => ({
|
|
14152
14120
|
params: oe.value,
|
14153
14121
|
data: me.value
|
14154
14122
|
});
|
14155
|
-
((
|
14123
|
+
((ue = s.varButtonUpdate.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((fe = s.varButtonUpdate.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
|
14156
14124
|
isPreserveSelectedRows: !0
|
14157
14125
|
}), await l.store.emit(s.formID, "ok", {
|
14158
14126
|
isCreating: !1,
|
@@ -14169,8 +14137,8 @@ const getProps$r = () => ({
|
|
14169
14137
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
14170
14138
|
}
|
14171
14139
|
}
|
14172
|
-
async function
|
14173
|
-
var q, z, ee, ne, ie,
|
14140
|
+
async function we() {
|
14141
|
+
var q, z, ee, ne, ie, ue, fe, oe, me;
|
14174
14142
|
try {
|
14175
14143
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
14176
14144
|
let be = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
@@ -14189,12 +14157,12 @@ const getProps$r = () => ({
|
|
14189
14157
|
data: pe
|
14190
14158
|
}))
|
14191
14159
|
return;
|
14192
|
-
const
|
14193
|
-
if (!
|
14160
|
+
const Ie = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
|
14161
|
+
if (!Ie)
|
14194
14162
|
throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
14195
14163
|
const Ne = await httpClient().request({
|
14196
|
-
url:
|
14197
|
-
method: (
|
14164
|
+
url: Ie,
|
14165
|
+
method: (fe = (ue = s.varButtonCopy.value) == null ? void 0 : ue.cmd_method) != null ? fe : "POST",
|
14198
14166
|
params: be.value,
|
14199
14167
|
data: pe.value
|
14200
14168
|
});
|
@@ -14215,16 +14183,16 @@ const getProps$r = () => ({
|
|
14215
14183
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
14216
14184
|
}
|
14217
14185
|
}
|
14218
|
-
async function
|
14219
|
-
var q, z, ee, ne, ie,
|
14186
|
+
async function Ee() {
|
14187
|
+
var q, z, ee, ne, ie, ue, fe, oe, me, be, pe;
|
14220
14188
|
try {
|
14221
14189
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
14222
|
-
let he = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)),
|
14190
|
+
let he = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), Ie = ref((ee = o.selectedRows.value) != null ? ee : []);
|
14223
14191
|
if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (he = ref({
|
14224
|
-
ids: (
|
14192
|
+
ids: (ue = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
|
14225
14193
|
var Pe, Le, $e;
|
14226
14194
|
return ($e = xe[(Le = (Pe = s.varButtonDelete.value) == null ? void 0 : Pe.del_param_clm) != null ? Le : "id"]) != null ? $e : "";
|
14227
|
-
})) != null ?
|
14195
|
+
})) != null ? ue : []
|
14228
14196
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
14229
14197
|
isCreating: s.isCreating.value,
|
14230
14198
|
isUpdating: s.isUpdating.value,
|
@@ -14234,17 +14202,17 @@ const getProps$r = () => ({
|
|
14234
14202
|
rows: o.selectedRows.value,
|
14235
14203
|
model: l.model,
|
14236
14204
|
params: he,
|
14237
|
-
data:
|
14205
|
+
data: Ie
|
14238
14206
|
}))
|
14239
14207
|
return;
|
14240
|
-
const Ve = (
|
14208
|
+
const Ve = (fe = s.varButtonDelete.value) == null ? void 0 : fe.cmd;
|
14241
14209
|
if (!Ve)
|
14242
14210
|
throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
14243
14211
|
const Fe = (me = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? me : "POST", Be = await httpClient().request({
|
14244
14212
|
url: Ve,
|
14245
14213
|
method: Fe,
|
14246
14214
|
params: he.value,
|
14247
|
-
data:
|
14215
|
+
data: Ie.value
|
14248
14216
|
}, {
|
14249
14217
|
joinParamsToUrl: !0
|
14250
14218
|
});
|
@@ -14268,43 +14236,43 @@ const getProps$r = () => ({
|
|
14268
14236
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
14269
14237
|
}
|
14270
14238
|
}
|
14271
|
-
function
|
14272
|
-
var ne, ie,
|
14273
|
-
const z = (ie = (ne = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ne["KgForm.Item.control"]) == null ? void 0 : ie[q.var_nam], ee = (
|
14239
|
+
function Te(q) {
|
14240
|
+
var ne, ie, ue, fe;
|
14241
|
+
const z = (ie = (ne = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ne["KgForm.Item.control"]) == null ? void 0 : ie[q.var_nam], ee = (fe = (ue = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ue["KgForm.Item.controlRight"]) == null ? void 0 : fe[q.var_nam];
|
14274
14242
|
return createVNode(KgForm.Item, {
|
14275
14243
|
kgVarName: q.var_nam,
|
14276
14244
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
14277
|
-
onKgSubmit:
|
14245
|
+
onKgSubmit: ge
|
14278
14246
|
}, {
|
14279
14247
|
control: isFunction$2(z) ? (oe) => z(oe) : void 0,
|
14280
14248
|
controlRight: isFunction$2(ee) ? (oe) => ee(oe) : void 0
|
14281
14249
|
});
|
14282
14250
|
}
|
14283
|
-
function
|
14284
|
-
return s.varSubmitFieldSectionsForVisible.value.length > 0 ?
|
14251
|
+
function Re() {
|
14252
|
+
return s.varSubmitFieldSectionsForVisible.value.length > 0 ? Ke() : De();
|
14285
14253
|
}
|
14286
|
-
function
|
14254
|
+
function De() {
|
14287
14255
|
let q, z;
|
14288
14256
|
return createVNode(Fragment, null, [R.value.length > 0 && createVNode(Row, {
|
14289
14257
|
gutter: 12
|
14290
|
-
}, _isSlot$6(q = R.value.map(
|
14258
|
+
}, _isSlot$6(q = R.value.map(Te)) ? q : {
|
14291
14259
|
default: () => [q]
|
14292
14260
|
}), V.value.length > 0 && D.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
|
14293
14261
|
gutter: 12
|
14294
|
-
}, _isSlot$6(z = P.value.map(
|
14262
|
+
}, _isSlot$6(z = P.value.map(Te)) ? z : {
|
14295
14263
|
default: () => [z]
|
14296
14264
|
}), u.value && createVNode("div", {
|
14297
14265
|
style: "text-align: center; padding: 6px 0 12px;"
|
14298
14266
|
}, [n.t("kg.confirmDelete")])]);
|
14299
14267
|
}
|
14300
|
-
function
|
14268
|
+
function Ke() {
|
14301
14269
|
var q;
|
14302
14270
|
return createVNode("div", {
|
14303
14271
|
class: "section"
|
14304
14272
|
}, [createVNode(Menu, {
|
14305
14273
|
mode: "inline",
|
14306
14274
|
selectedKeys: Y.value,
|
14307
|
-
onSelect:
|
14275
|
+
onSelect: Se
|
14308
14276
|
}, {
|
14309
14277
|
default: () => {
|
14310
14278
|
var z;
|
@@ -14321,11 +14289,11 @@ const getProps$r = () => ({
|
|
14321
14289
|
}, {
|
14322
14290
|
default: () => {
|
14323
14291
|
var ee, ne;
|
14324
|
-
return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(
|
14292
|
+
return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Te)];
|
14325
14293
|
}
|
14326
14294
|
})]))])]);
|
14327
14295
|
}
|
14328
|
-
function
|
14296
|
+
function ye() {
|
14329
14297
|
return createVNode(Spin, {
|
14330
14298
|
spinning: d.value
|
14331
14299
|
}, {
|
@@ -14340,18 +14308,18 @@ const getProps$r = () => ({
|
|
14340
14308
|
}, {
|
14341
14309
|
default: () => [createVNode("div", {
|
14342
14310
|
ref: J
|
14343
|
-
}, [
|
14311
|
+
}, [Re()])]
|
14344
14312
|
})];
|
14345
14313
|
}
|
14346
14314
|
});
|
14347
14315
|
}
|
14348
|
-
function
|
14316
|
+
function Ce() {
|
14349
14317
|
let q;
|
14350
14318
|
return createVNode("div", null, [createVNode(Button, {
|
14351
14319
|
type: "primary",
|
14352
14320
|
ghost: !I.value,
|
14353
14321
|
disabled: I.value,
|
14354
|
-
onClick:
|
14322
|
+
onClick: ce
|
14355
14323
|
}, _isSlot$6(q = n.t("kg.cancel")) ? q : {
|
14356
14324
|
default: () => [q]
|
14357
14325
|
}), createVNode(Button, {
|
@@ -14359,24 +14327,24 @@ const getProps$r = () => ({
|
|
14359
14327
|
disabled: N.value,
|
14360
14328
|
loading: w.value,
|
14361
14329
|
danger: !!s.isDeleting.value,
|
14362
|
-
onClick:
|
14330
|
+
onClick: ge
|
14363
14331
|
}, {
|
14364
14332
|
default: () => [Q.value]
|
14365
14333
|
})]);
|
14366
14334
|
}
|
14367
|
-
function
|
14335
|
+
function ke() {
|
14368
14336
|
return createVNode("div", {
|
14369
14337
|
title: W.title.value
|
14370
14338
|
}, [W.title.value]);
|
14371
14339
|
}
|
14372
|
-
function
|
14340
|
+
function Oe() {
|
14373
14341
|
return !!u.value || !e.kgIsShowVarSubmitConfigButton ? null : createVNode(KgSubmitVarSubmitConfigButton, null, null);
|
14374
14342
|
}
|
14375
|
-
function
|
14343
|
+
function Se(q) {
|
14376
14344
|
Y.value = q.selectedKeys;
|
14377
14345
|
}
|
14378
14346
|
return onUnmounted(async () => {
|
14379
|
-
l.store.dispose(s.formID), await
|
14347
|
+
l.store.dispose(s.formID), await _e();
|
14380
14348
|
}), () => createVNode(KgModal, {
|
14381
14349
|
visible: re.value,
|
14382
14350
|
mask: l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE,
|
@@ -14385,7 +14353,7 @@ const getProps$r = () => ({
|
|
14385
14353
|
destroyOnClose: !0,
|
14386
14354
|
width: te.value,
|
14387
14355
|
class: se.value,
|
14388
|
-
wrapClassName:
|
14356
|
+
wrapClassName: de.value,
|
14389
14357
|
kgFullHeight: !1,
|
14390
14358
|
kgMinWidth: L.value,
|
14391
14359
|
kgMaxWidth: x.value,
|
@@ -14394,12 +14362,12 @@ const getProps$r = () => ({
|
|
14394
14362
|
kgIsShowFullscreenButton: H.value,
|
14395
14363
|
kgIsDefaultFullscreen: F.value,
|
14396
14364
|
"kg-frm_id": s.formID,
|
14397
|
-
onCancel:
|
14365
|
+
onCancel: ce
|
14398
14366
|
}, {
|
14399
|
-
title:
|
14400
|
-
kgModalHeaderButtonsExtra:
|
14401
|
-
default:
|
14402
|
-
footer:
|
14367
|
+
title: ke,
|
14368
|
+
kgModalHeaderButtonsExtra: Oe,
|
14369
|
+
default: ye,
|
14370
|
+
footer: Ce
|
14403
14371
|
});
|
14404
14372
|
}
|
14405
14373
|
}), FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster", DEFAULT_PAGE_SIZES = "[10, 20, 50, 100]", DEFAULT_PAGE_SIZE = 10;
|
@@ -14490,7 +14458,7 @@ function transformVarSubmitConfig(e) {
|
|
14490
14458
|
e.dft_width = SUBMIT_DEFAULT_WIDTH, KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_sbt_cfg.dft_width \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_WIDTH}.`, { VarSubmitConfig: e });
|
14491
14459
|
break;
|
14492
14460
|
}
|
14493
|
-
case (a < e.min_width || a > e.max_width): {
|
14461
|
+
case (a < e.min_width || !isNil(e.max_width) && a > e.max_width): {
|
14494
14462
|
e.dft_width = SUBMIT_DEFAULT_WIDTH, KgLogger.error(
|
14495
14463
|
`| \u6570\u636E\u6709\u8BEF | var_sbt_cfg.dft_width \u8D85\u51FA\u8303\u56F4 [${e.min_width}, ${e.max_width}], \u6539\u4E3A\u4F7F\u7528\u6700\u5C0F\u5BBD\u5EA6 ${e.min_width}.`,
|
14496
14464
|
{ VarSubmitConfig: e }
|
@@ -16044,7 +16012,7 @@ const getProps$p = () => ({
|
|
16044
16012
|
var m, _, E, v;
|
16045
16013
|
if (!(e.onKgClick && await e.onKgClick())) {
|
16046
16014
|
if (!o.value) {
|
16047
|
-
KgLogger.error("
|
16015
|
+
KgLogger.error("KgButton | \u300C\u5BFC\u51FA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
16048
16016
|
VarButton: i.value
|
16049
16017
|
});
|
16050
16018
|
return;
|
@@ -22354,6 +22322,10 @@ export {
|
|
22354
22322
|
VarVariablePossibility,
|
22355
22323
|
WhDTO,
|
22356
22324
|
__KG__RESPONSE__,
|
22325
|
+
____DEBUG____,
|
22326
|
+
____ERROR____,
|
22327
|
+
____INFO_____,
|
22328
|
+
____WARN_____,
|
22357
22329
|
createKgWarehouseGuard,
|
22358
22330
|
getKgModalWidth,
|
22359
22331
|
getPinia,
|
package/dist/project/index.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from './build';
|
1
|
+
export * from './build';
|
@@ -8,18 +8,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
8
8
|
/** 状态数据. */
|
9
9
|
store: import("pinia").Store<"KgTable", {
|
10
10
|
isReadyMap: Map<string, boolean>;
|
11
|
-
datasMap: Map<String, any[]>;
|
11
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
12
12
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
13
13
|
selectedRowsMap: Map<string, any[]>;
|
14
|
-
isRequestedMap: Map<string, boolean>;
|
14
|
+
isRequestedMap: Map<string, boolean>;
|
15
15
|
isRequestingMap: Map<string, boolean>;
|
16
16
|
requestParamsMap: Map<string, Record<string, any>>;
|
17
17
|
tableWidthMap: Map<string, number>;
|
18
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
19
|
-
* 事件: 双击某行.
|
20
|
-
* @param cb 回调函数.
|
21
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
22
|
-
*/
|
18
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
23
19
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
24
20
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
25
21
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -43,18 +39,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
43
39
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
44
40
|
} & import("pinia").PiniaCustomStateProperties<{
|
45
41
|
isReadyMap: Map<string, boolean>;
|
46
|
-
datasMap: Map<String, any[]>;
|
42
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
47
43
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
48
44
|
selectedRowsMap: Map<string, any[]>;
|
49
|
-
isRequestedMap: Map<string, boolean>;
|
45
|
+
isRequestedMap: Map<string, boolean>;
|
50
46
|
isRequestingMap: Map<string, boolean>;
|
51
47
|
requestParamsMap: Map<string, Record<string, any>>;
|
52
48
|
tableWidthMap: Map<string, number>;
|
53
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
54
|
-
* 事件: 双击某行.
|
55
|
-
* @param cb 回调函数.
|
56
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
57
|
-
*/
|
49
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
58
50
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
59
51
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
60
52
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -78,18 +70,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
78
70
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
79
71
|
} & import("pinia").PiniaCustomStateProperties<{
|
80
72
|
isReadyMap: Map<string, boolean>;
|
81
|
-
datasMap: Map<String, any[]>;
|
73
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
82
74
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
83
75
|
selectedRowsMap: Map<string, any[]>;
|
84
|
-
isRequestedMap: Map<string, boolean>;
|
76
|
+
isRequestedMap: Map<string, boolean>;
|
85
77
|
isRequestingMap: Map<string, boolean>;
|
86
78
|
requestParamsMap: Map<string, Record<string, any>>;
|
87
79
|
tableWidthMap: Map<string, number>;
|
88
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
89
|
-
* 事件: 双击某行.
|
90
|
-
* @param cb 回调函数.
|
91
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
92
|
-
*/
|
80
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
93
81
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
94
82
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
95
83
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -113,18 +101,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
113
101
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
114
102
|
} & import("pinia").PiniaCustomStateProperties<{
|
115
103
|
isReadyMap: Map<string, boolean>;
|
116
|
-
datasMap: Map<String, any[]>;
|
104
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
117
105
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
118
106
|
selectedRowsMap: Map<string, any[]>;
|
119
|
-
isRequestedMap: Map<string, boolean>;
|
107
|
+
isRequestedMap: Map<string, boolean>;
|
120
108
|
isRequestingMap: Map<string, boolean>;
|
121
109
|
requestParamsMap: Map<string, Record<string, any>>;
|
122
110
|
tableWidthMap: Map<string, number>;
|
123
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
124
|
-
* 事件: 双击某行.
|
125
|
-
* @param cb 回调函数.
|
126
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
127
|
-
*/
|
111
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
128
112
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
129
113
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
130
114
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -148,18 +132,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
148
132
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
149
133
|
} & import("pinia").PiniaCustomStateProperties<{
|
150
134
|
isReadyMap: Map<string, boolean>;
|
151
|
-
datasMap: Map<String, any[]>;
|
135
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
152
136
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
153
137
|
selectedRowsMap: Map<string, any[]>;
|
154
|
-
isRequestedMap: Map<string, boolean>;
|
138
|
+
isRequestedMap: Map<string, boolean>;
|
155
139
|
isRequestingMap: Map<string, boolean>;
|
156
140
|
requestParamsMap: Map<string, Record<string, any>>;
|
157
141
|
tableWidthMap: Map<string, number>;
|
158
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
159
|
-
* 事件: 双击某行.
|
160
|
-
* @param cb 回调函数.
|
161
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
162
|
-
*/
|
142
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
163
143
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
164
144
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
165
145
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -183,18 +163,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
183
163
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
184
164
|
} & import("pinia").PiniaCustomStateProperties<{
|
185
165
|
isReadyMap: Map<string, boolean>;
|
186
|
-
datasMap: Map<String, any[]>;
|
166
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
187
167
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
188
168
|
selectedRowsMap: Map<string, any[]>;
|
189
|
-
isRequestedMap: Map<string, boolean>;
|
169
|
+
isRequestedMap: Map<string, boolean>;
|
190
170
|
isRequestingMap: Map<string, boolean>;
|
191
171
|
requestParamsMap: Map<string, Record<string, any>>;
|
192
172
|
tableWidthMap: Map<string, number>;
|
193
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
194
|
-
* 事件: 双击某行.
|
195
|
-
* @param cb 回调函数.
|
196
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
197
|
-
*/
|
173
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
198
174
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
199
175
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
200
176
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -218,18 +194,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
218
194
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
219
195
|
} & import("pinia").PiniaCustomStateProperties<{
|
220
196
|
isReadyMap: Map<string, boolean>;
|
221
|
-
datasMap: Map<String, any[]>;
|
197
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
222
198
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
223
199
|
selectedRowsMap: Map<string, any[]>;
|
224
|
-
isRequestedMap: Map<string, boolean>;
|
200
|
+
isRequestedMap: Map<string, boolean>;
|
225
201
|
isRequestingMap: Map<string, boolean>;
|
226
202
|
requestParamsMap: Map<string, Record<string, any>>;
|
227
203
|
tableWidthMap: Map<string, number>;
|
228
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
229
|
-
* 事件: 双击某行.
|
230
|
-
* @param cb 回调函数.
|
231
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
232
|
-
*/
|
204
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
233
205
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
234
206
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
235
207
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -253,18 +225,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
253
225
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
254
226
|
} & import("pinia").PiniaCustomStateProperties<{
|
255
227
|
isReadyMap: Map<string, boolean>;
|
256
|
-
datasMap: Map<String, any[]>;
|
228
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
257
229
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
258
230
|
selectedRowsMap: Map<string, any[]>;
|
259
|
-
isRequestedMap: Map<string, boolean>;
|
231
|
+
isRequestedMap: Map<string, boolean>;
|
260
232
|
isRequestingMap: Map<string, boolean>;
|
261
233
|
requestParamsMap: Map<string, Record<string, any>>;
|
262
234
|
tableWidthMap: Map<string, number>;
|
263
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
264
|
-
* 事件: 双击某行.
|
265
|
-
* @param cb 回调函数.
|
266
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
267
|
-
*/
|
235
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
268
236
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
269
237
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
270
238
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -288,18 +256,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
288
256
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
289
257
|
} & import("pinia").PiniaCustomStateProperties<{
|
290
258
|
isReadyMap: Map<string, boolean>;
|
291
|
-
datasMap: Map<String, any[]>;
|
259
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
292
260
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
293
261
|
selectedRowsMap: Map<string, any[]>;
|
294
|
-
isRequestedMap: Map<string, boolean>;
|
262
|
+
isRequestedMap: Map<string, boolean>;
|
295
263
|
isRequestingMap: Map<string, boolean>;
|
296
264
|
requestParamsMap: Map<string, Record<string, any>>;
|
297
265
|
tableWidthMap: Map<string, number>;
|
298
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
299
|
-
* 事件: 双击某行.
|
300
|
-
* @param cb 回调函数.
|
301
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
302
|
-
*/
|
266
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
303
267
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
304
268
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
305
269
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -323,18 +287,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
323
287
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
324
288
|
} & import("pinia").PiniaCustomStateProperties<{
|
325
289
|
isReadyMap: Map<string, boolean>;
|
326
|
-
datasMap: Map<String, any[]>;
|
290
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
327
291
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
328
292
|
selectedRowsMap: Map<string, any[]>;
|
329
|
-
isRequestedMap: Map<string, boolean>;
|
293
|
+
isRequestedMap: Map<string, boolean>;
|
330
294
|
isRequestingMap: Map<string, boolean>;
|
331
295
|
requestParamsMap: Map<string, Record<string, any>>;
|
332
296
|
tableWidthMap: Map<string, number>;
|
333
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
334
|
-
* 事件: 双击某行.
|
335
|
-
* @param cb 回调函数.
|
336
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
337
|
-
*/
|
297
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
338
298
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
339
299
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
340
300
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -358,18 +318,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
358
318
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
359
319
|
} & import("pinia").PiniaCustomStateProperties<{
|
360
320
|
isReadyMap: Map<string, boolean>;
|
361
|
-
datasMap: Map<String, any[]>;
|
321
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
362
322
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
363
323
|
selectedRowsMap: Map<string, any[]>;
|
364
|
-
isRequestedMap: Map<string, boolean>;
|
324
|
+
isRequestedMap: Map<string, boolean>;
|
365
325
|
isRequestingMap: Map<string, boolean>;
|
366
326
|
requestParamsMap: Map<string, Record<string, any>>;
|
367
327
|
tableWidthMap: Map<string, number>;
|
368
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
369
|
-
* 事件: 双击某行.
|
370
|
-
* @param cb 回调函数.
|
371
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
372
|
-
*/
|
328
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
373
329
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
374
330
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
375
331
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -393,18 +349,14 @@ export declare function useKgTable(formID?: string | null): {
|
|
393
349
|
afterRequestListenersMap: Map<string, IKgTableAfterRequestCb[]>;
|
394
350
|
} & import("pinia").PiniaCustomStateProperties<{
|
395
351
|
isReadyMap: Map<string, boolean>;
|
396
|
-
datasMap: Map<String, any[]>;
|
352
|
+
datasMap: Map<String, any[]>; /** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
397
353
|
selectedRowKeysMap: Map<string, import("vue").Ref<import("ant-design-vue/lib/_util/type").Key[]>>;
|
398
354
|
selectedRowsMap: Map<string, any[]>;
|
399
|
-
isRequestedMap: Map<string, boolean>;
|
355
|
+
isRequestedMap: Map<string, boolean>;
|
400
356
|
isRequestingMap: Map<string, boolean>;
|
401
357
|
requestParamsMap: Map<string, Record<string, any>>;
|
402
358
|
tableWidthMap: Map<string, number>;
|
403
|
-
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
404
|
-
* 事件: 双击某行.
|
405
|
-
* @param cb 回调函数.
|
406
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
407
|
-
*/
|
359
|
+
rowHeightMap: Map<string, import("./index.vm").IKgTableRowHeight>;
|
408
360
|
onReadyListenersMap: Map<string, IKgTableReadyCb[]>;
|
409
361
|
rowDoubleClickListenersMap: Map<string, IKgTableRowDoubleClickCb[]>;
|
410
362
|
beforeRequestListenersMap: Map<string, IKgTableBeforeRequestCb[]>;
|
@@ -62,4 +62,8 @@ declare class KgLogger {
|
|
62
62
|
*/
|
63
63
|
static debugDDA(formID: string | null | undefined, component: string | null | undefined, method: string | null | undefined, message: string | null | undefined, args?: Record<string, any>, collapsed?: boolean): void;
|
64
64
|
}
|
65
|
-
|
65
|
+
declare const ____DEBUG____: typeof KgLogger.debug;
|
66
|
+
declare const ____INFO_____: typeof KgLogger.info;
|
67
|
+
declare const ____WARN_____: typeof KgLogger.warn;
|
68
|
+
declare const ____ERROR____: typeof KgLogger.error;
|
69
|
+
export { KgLogger, ____DEBUG____, ____INFO_____, ____WARN_____, ____ERROR____ };
|
package/package.json
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.21.5-beta.
|
3
|
+
"version": "0.21.5-beta.3",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
7
|
"--------------------------------------------------": "",
|
8
|
-
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
-
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
10
|
-
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
11
8
|
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
9
|
+
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
10
|
+
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
11
|
+
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
12
12
|
"----- --------------------------------------------": "",
|
13
13
|
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
14
14
|
"--- ----------------------------------------------": "",
|
15
|
-
"bump-to:luotao.wms-vue3--dev-3.1": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
|
16
|
-
"copy-to:luotao.wms-vue3--dev-3.1": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
|
17
|
-
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
18
15
|
"copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
16
|
+
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
19
17
|
"- ------------------------------------------------": "",
|
20
18
|
"cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
|
21
19
|
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|