@kengic/vue 0.21.5-beta.5 → 0.21.5-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +153 -153
- package/package.json +107 -107
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.6";
|
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")();
|
@@ -4699,7 +4699,7 @@ class KgRouteUtil {
|
|
4699
4699
|
}), t;
|
4700
4700
|
}
|
4701
4701
|
static transformMenus(t) {
|
4702
|
-
var m, y, _, v, g, E, b, T, k, A, C, I, M, N, R, V, P, O, w, D, K, F, L, x, $, U, H, J, W, te, re, se,
|
4702
|
+
var m, y, _, v, g, E, b, T, k, A, C, I, M, N, R, V, P, O, w, D, K, F, L, x, $, U, H, J, W, te, re, se, ce, ae;
|
4703
4703
|
if (!t)
|
4704
4704
|
return [];
|
4705
4705
|
const r = useKg(), a = (X) => {
|
@@ -4808,7 +4808,7 @@ class KgRouteUtil {
|
|
4808
4808
|
}
|
4809
4809
|
});
|
4810
4810
|
let u = [];
|
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 = (
|
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 = (ce = c.children) == null ? void 0 : ce.length) != null ? ae : 0 > 0) && u.push(c);
|
4812
4812
|
const d = (X) => {
|
4813
4813
|
X.sort((B, G) => {
|
4814
4814
|
var Q, Y;
|
@@ -5006,8 +5006,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5006
5006
|
case d:
|
5007
5007
|
return x ? U(1, W) : U(0, W + 1);
|
5008
5008
|
case u:
|
5009
|
-
var se = this.$locale().weekStart || 0,
|
5010
|
-
return U(x ? te -
|
5009
|
+
var se = this.$locale().weekStart || 0, ce = (J < se ? J + 7 : J) - se;
|
5010
|
+
return U(x ? te - ce : te + (6 - ce), W);
|
5011
5011
|
case c:
|
5012
5012
|
case _:
|
5013
5013
|
return H(re + "Hours", 0);
|
@@ -5059,7 +5059,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5059
5059
|
return L.invalidDate || v;
|
5060
5060
|
var x = K || "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) {
|
5061
5061
|
return X && (X[B] || X(F, x)) || G[B].slice(0, Q);
|
5062
|
-
},
|
5062
|
+
}, ce = function(X) {
|
5063
5063
|
return V.s(U % 12 || 12, X, "0");
|
5064
5064
|
}, ae = re || function(X, B, G) {
|
5065
5065
|
var Q = X < 12 ? "AM" : "PM";
|
@@ -5097,9 +5097,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5097
5097
|
case "HH":
|
5098
5098
|
return V.s(U, 2, "0");
|
5099
5099
|
case "h":
|
5100
|
-
return
|
5100
|
+
return ce(1);
|
5101
5101
|
case "hh":
|
5102
|
-
return
|
5102
|
+
return ce(2);
|
5103
5103
|
case "a":
|
5104
5104
|
return ae(U, H, !0);
|
5105
5105
|
case "A":
|
@@ -7195,7 +7195,7 @@ function useDragToResize(e) {
|
|
7195
7195
|
T.remove(), k.remove();
|
7196
7196
|
}
|
7197
7197
|
function M(P) {
|
7198
|
-
var F, L, x, $, U, H, J, W, te, re, se,
|
7198
|
+
var F, L, x, $, U, H, J, W, te, re, se, ce;
|
7199
7199
|
const {
|
7200
7200
|
event: O,
|
7201
7201
|
handleType: w
|
@@ -7226,12 +7226,12 @@ function useDragToResize(e) {
|
|
7226
7226
|
const ae = l.value.offsetWidth, X = Math.min(m.value, Math.max(d.value, v + D - 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, g + K - b));
|
7227
7227
|
if (X === ae && Z === Y)
|
7228
7228
|
return;
|
7229
|
-
const
|
7230
|
-
l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${
|
7229
|
+
const ue = Number(getComputedStyle(l.value).top.replace(/px/g, "")) + (Z - Y) / 2, _e = 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 = `${ue}px`, l.value.style.left = `${_e}px`;
|
7231
7231
|
break;
|
7232
7232
|
}
|
7233
7233
|
case "bottom": {
|
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((
|
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((ce = (se = t.value) == null ? void 0 : se.kgMinHeight) != null ? ce : ae + X + KG_MODAL_BORDER_WIDTH * 2, n.value);
|
7235
7235
|
let G = Math.min(y.value, Math.max(B, g + K - b));
|
7236
7236
|
l.value.offsetTop + G > n.value && (G = n.value - l.value.offsetTop);
|
7237
7237
|
const Q = l.value.offsetHeight, Y = Number(getComputedStyle(l.value).top.replace(/px/g, ""));
|
@@ -11378,7 +11378,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11378
11378
|
var B, G;
|
11379
11379
|
return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
|
11380
11380
|
}), k = computed(() => {
|
11381
|
-
var G, Q, Y, Z,
|
11381
|
+
var G, Q, Y, Z, fe, ue, de, _e, pe;
|
11382
11382
|
let B = {
|
11383
11383
|
pageNo: D.pageIndex,
|
11384
11384
|
pageSize: D.pageSize,
|
@@ -11388,11 +11388,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11388
11388
|
};
|
11389
11389
|
return s.varButtonSearch.value && (B = {
|
11390
11390
|
...B,
|
11391
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
11392
|
-
}), (
|
11391
|
+
...KgVarUtil.parseRequestParamsToJSON((ue = (fe = s.varButtonSearch.value) == null ? void 0 : fe.cmd_prm) != null ? ue : "")
|
11392
|
+
}), (de = s.varGridConfig.value) != null && de.cmd_prm && (B = {
|
11393
11393
|
...B,
|
11394
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
11395
|
-
}), ((
|
11394
|
+
...KgVarUtil.parseRequestParamsToJSON((_e = s.varGridConfig.value.cmd_prm) != null ? _e : "")
|
11395
|
+
}), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
|
11396
11396
|
}), A = computed(() => {
|
11397
11397
|
var B, G, Q, Y;
|
11398
11398
|
if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
|
@@ -11556,33 +11556,33 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11556
11556
|
immediate: !0
|
11557
11557
|
});
|
11558
11558
|
async function Q() {
|
11559
|
-
var Y, Z,
|
11559
|
+
var Y, Z, fe, ue, de, _e;
|
11560
11560
|
KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
|
11561
11561
|
try {
|
11562
|
-
const
|
11562
|
+
const pe = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), Ce = ref({});
|
11563
11563
|
if (!await o.store.emit(s.formID, "beforeSearch", {
|
11564
|
-
params:
|
11565
|
-
response:
|
11564
|
+
params: pe,
|
11565
|
+
response: Ce
|
11566
11566
|
})) {
|
11567
11567
|
if (!T.value)
|
11568
11568
|
throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
11569
11569
|
VarButton: s.varButtonSearch.value
|
11570
11570
|
}), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
|
11571
|
-
const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((
|
11572
|
-
sql:
|
11571
|
+
const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((fe = s.currentVarProfileMaster.value) == null ? void 0 : fe.dyn_flg) === 1, {
|
11572
|
+
sql: Te,
|
11573
11573
|
whereSql: ke,
|
11574
11574
|
orderBySql: Oe
|
11575
|
-
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t),
|
11575
|
+
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), me = await httpClient().request({
|
11576
11576
|
url: T.value,
|
11577
11577
|
method: (() => {
|
11578
|
-
var Ae,
|
11579
|
-
return s.formID === ".wms.business-manager.outbound.wave.print-tag-modal" ? "POST" : (
|
11578
|
+
var Ae, q;
|
11579
|
+
return s.formID === ".wms.business-manager.outbound.wave.print-tag-modal" ? "POST" : (q = (Ae = s.varButtonSearch.value) == null ? void 0 : Ae.cmd_method) != null ? q : "GET";
|
11580
11580
|
})(),
|
11581
|
-
params:
|
11582
|
-
data:
|
11581
|
+
params: pe,
|
11582
|
+
data: pe,
|
11583
11583
|
headers: {
|
11584
11584
|
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ye,
|
11585
|
-
[KG_HTTP_HEADERS.KG_QUERY_SQL]:
|
11585
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: Te,
|
11586
11586
|
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
|
11587
11587
|
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Oe
|
11588
11588
|
}
|
@@ -11590,39 +11590,39 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11590
11590
|
isReturnNativeResponse: !0,
|
11591
11591
|
successMessageMode: "none"
|
11592
11592
|
});
|
11593
|
-
if (!
|
11593
|
+
if (!me.data)
|
11594
11594
|
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
11595
|
-
if (![0, 200].includes((
|
11596
|
-
throw message.error(
|
11597
|
-
ye &&
|
11598
|
-
params:
|
11599
|
-
response:
|
11595
|
+
if (![0, 200].includes((ue = me.data.code) != null ? ue : -1) || !me.data.success)
|
11596
|
+
throw message.error(me.data.message || n.t("kg.KgTable.request-fail-error")), new Error(me.data.message || n.t("kg.KgTable.request-fail-error"));
|
11597
|
+
ye && me.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Ce.value = me.data.result, ((de = s.varButtonSearch.value) == null ? void 0 : de.show_success_message_flg) === 0 && me.data.message && message.success(me.data.message), KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
11598
|
+
params: pe,
|
11599
|
+
response: Ce.value
|
11600
11600
|
});
|
11601
11601
|
}
|
11602
11602
|
const {
|
11603
|
-
datas:
|
11604
|
-
total:
|
11605
|
-
} = b(
|
11606
|
-
datas:
|
11603
|
+
datas: Se,
|
11604
|
+
total: Ie
|
11605
|
+
} = b(Ce), Re = await o.store.emit(s.formID, "beforeSetDatas", {
|
11606
|
+
datas: Se
|
11607
11607
|
}), De = cloneDeep(w.value);
|
11608
11608
|
o.store.setDatas({
|
11609
11609
|
frmId: s.formID,
|
11610
|
-
datas:
|
11610
|
+
datas: Se.value,
|
11611
11611
|
isPreserveSelectedRows: !0
|
11612
|
-
}), D.total =
|
11612
|
+
}), D.total = Ie.value, d.value = {}, x({
|
11613
11613
|
isContinueWhenKgDisabled: !0
|
11614
11614
|
}), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, De.map((ye) => {
|
11615
|
-
var
|
11616
|
-
return (
|
11617
|
-
}).filter((ye) => !!ye)) : ((
|
11615
|
+
var Te;
|
11616
|
+
return (Te = Se.value) == null ? void 0 : Te.find((ke) => ke[o.id.value] === ye);
|
11617
|
+
}).filter((ye) => !!ye)) : ((_e = s.varGridConfig.value) == null ? void 0 : _e.check_first_row_after_retrieve) === 1 && Se.value.length > 0 && o.store.setSelectedRows(s.formID, [Se.value[0]]);
|
11618
11618
|
const Ke = await o.store.emit(s.formID, "afterSearch", {
|
11619
|
-
params:
|
11620
|
-
response:
|
11621
|
-
datas:
|
11619
|
+
params: pe,
|
11620
|
+
response: Ce.value,
|
11621
|
+
datas: Se
|
11622
11622
|
});
|
11623
11623
|
o.store.setIsRequested(s.formID, !0);
|
11624
|
-
} catch (
|
11625
|
-
throw
|
11624
|
+
} catch (pe) {
|
11625
|
+
throw pe;
|
11626
11626
|
} finally {
|
11627
11627
|
o.store.setIsRequesting(s.formID, !1);
|
11628
11628
|
}
|
@@ -11652,7 +11652,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11652
11652
|
}
|
11653
11653
|
o.store.setSelectedRows(s.formID, w.value.map((Y) => {
|
11654
11654
|
var Z;
|
11655
|
-
return (Z = E.value) == null ? void 0 : Z.find((
|
11655
|
+
return (Z = E.value) == null ? void 0 : Z.find((fe) => fe[o.id.value] === Y);
|
11656
11656
|
}).filter((Y) => !!Y));
|
11657
11657
|
}
|
11658
11658
|
function J(B, G) {
|
@@ -11694,7 +11694,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11694
11694
|
kgDisabled: A.value
|
11695
11695
|
}, null);
|
11696
11696
|
}
|
11697
|
-
function
|
11697
|
+
function ce() {
|
11698
11698
|
var B;
|
11699
11699
|
return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
|
11700
11700
|
fixed: "bottom"
|
@@ -11705,17 +11705,17 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11705
11705
|
}, null), R.value && createVNode(TableSummary.Cell, {
|
11706
11706
|
index: N.value ? 1 : 0
|
11707
11707
|
}, null), u.value.map((G, Q) => {
|
11708
|
-
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null,
|
11709
|
-
let
|
11710
|
-
return N.value && R.value ?
|
11711
|
-
index:
|
11712
|
-
align:
|
11708
|
+
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, fe = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
|
11709
|
+
let ue = Q;
|
11710
|
+
return N.value && R.value ? ue += 2 : (N.value || R.value) && (ue += 1), createVNode(TableSummary.Cell, {
|
11711
|
+
index: ue,
|
11712
|
+
align: fe
|
11713
11713
|
}, {
|
11714
11714
|
default: () => {
|
11715
|
-
var
|
11716
|
-
return [(
|
11715
|
+
var de, _e;
|
11716
|
+
return [(_e = (de = r == null ? void 0 : r.KgTable) == null ? void 0 : de["summary.bodyCell"]) == null ? void 0 : _e.call(de, {
|
11717
11717
|
column: G,
|
11718
|
-
index:
|
11718
|
+
index: ue,
|
11719
11719
|
varGridDetail: Z
|
11720
11720
|
})];
|
11721
11721
|
}
|
@@ -11764,7 +11764,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
11764
11764
|
bodyCell: g,
|
11765
11765
|
emptyText: ae,
|
11766
11766
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
11767
|
-
summary:
|
11767
|
+
summary: ce
|
11768
11768
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
11769
11769
|
class: O.value
|
11770
11770
|
}, [createVNode("div", {
|
@@ -13869,11 +13869,11 @@ const getProps$r = () => ({
|
|
13869
13869
|
setup: function(e, {
|
13870
13870
|
attrs: t
|
13871
13871
|
}) {
|
13872
|
-
var
|
13872
|
+
var me, Ae;
|
13873
13873
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
13874
13874
|
inject(DI_KG_VAR__KG_PROPS, null);
|
13875
13875
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
13876
|
-
i.onSubmitSave(async () => (await
|
13876
|
+
i.onSubmitSave(async () => (await de(), !1)), i.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
|
13877
13877
|
const u = computed(() => s.isDeleting.value && R.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = 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)), I = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), N = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
|
13878
13878
|
var q, z, ee;
|
13879
13879
|
switch (!0) {
|
@@ -13945,7 +13945,7 @@ const getProps$r = () => ({
|
|
13945
13945
|
_useResizeObserver(J);
|
13946
13946
|
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)), {
|
13947
13947
|
getClass: se,
|
13948
|
-
getWrapClass:
|
13948
|
+
getWrapClass: ce
|
13949
13949
|
} = _useClass(e), {
|
13950
13950
|
getLayout: ae
|
13951
13951
|
} = _useLayout(), {
|
@@ -13997,9 +13997,9 @@ const getProps$r = () => ({
|
|
13997
13997
|
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");
|
13998
13998
|
}
|
13999
13999
|
return n.t("kg.save");
|
14000
|
-
}), Y = ref([(
|
14000
|
+
}), Y = ref([(Ae = (me = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : me[0]) != null ? Ae : ""]);
|
14001
14001
|
watch(re, (q, z) => {
|
14002
|
-
q === !0 && Z(), z === !0 && q === !1 &&
|
14002
|
+
q === !0 && Z(), z === !0 && q === !1 && fe();
|
14003
14003
|
}, {
|
14004
14004
|
immediate: !0
|
14005
14005
|
});
|
@@ -14013,8 +14013,8 @@ const getProps$r = () => ({
|
|
14013
14013
|
}))
|
14014
14014
|
return new Promise((z, ee) => {
|
14015
14015
|
var ie;
|
14016
|
-
const ne = watch(l.model, async (
|
14017
|
-
|
14016
|
+
const ne = watch(l.model, async (le) => {
|
14017
|
+
le && Object.keys(le).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
|
14018
14018
|
isCopying: s.isCopying.value,
|
14019
14019
|
isCreating: s.isCreating.value,
|
14020
14020
|
isDeleting: s.isDeleting.value,
|
@@ -14028,10 +14028,10 @@ const getProps$r = () => ({
|
|
14028
14028
|
((ie = m.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (F.value = !0);
|
14029
14029
|
});
|
14030
14030
|
}
|
14031
|
-
async function
|
14031
|
+
async function fe() {
|
14032
14032
|
await l.store.emit(s.formID, "close", null);
|
14033
14033
|
}
|
14034
|
-
async function
|
14034
|
+
async function ue() {
|
14035
14035
|
switch (!0) {
|
14036
14036
|
case s.isCreating.value:
|
14037
14037
|
s.store.setIsCreating(s.formID, !1);
|
@@ -14047,7 +14047,7 @@ const getProps$r = () => ({
|
|
14047
14047
|
break;
|
14048
14048
|
}
|
14049
14049
|
}
|
14050
|
-
async function
|
14050
|
+
async function de() {
|
14051
14051
|
var q, z;
|
14052
14052
|
try {
|
14053
14053
|
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
@@ -14078,29 +14078,29 @@ const getProps$r = () => ({
|
|
14078
14078
|
return;
|
14079
14079
|
switch (!0) {
|
14080
14080
|
case s.isCreating.value:
|
14081
|
-
await
|
14081
|
+
await _e();
|
14082
14082
|
break;
|
14083
14083
|
case s.isUpdating.value:
|
14084
|
-
await
|
14084
|
+
await pe();
|
14085
14085
|
break;
|
14086
14086
|
case s.isCopying.value:
|
14087
|
-
await
|
14087
|
+
await Ce();
|
14088
14088
|
break;
|
14089
14089
|
case s.isDeleting.value:
|
14090
|
-
await
|
14090
|
+
await we();
|
14091
14091
|
break;
|
14092
14092
|
}
|
14093
14093
|
} catch (ee) {
|
14094
14094
|
KgUtil.throwIfNotFormError(ee);
|
14095
14095
|
}
|
14096
14096
|
}
|
14097
|
-
async function
|
14098
|
-
var q, z, ee, ne, ie,
|
14097
|
+
async function _e() {
|
14098
|
+
var q, z, ee, ne, ie, le, ge;
|
14099
14099
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
14100
14100
|
try {
|
14101
|
-
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)),
|
14101
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), ve = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
14102
14102
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
14103
|
-
data:
|
14103
|
+
data: ve,
|
14104
14104
|
isCopying: s.isCopying.value,
|
14105
14105
|
isCreating: s.isCreating.value,
|
14106
14106
|
isDeleting: s.isDeleting.value,
|
@@ -14111,16 +14111,16 @@ const getProps$r = () => ({
|
|
14111
14111
|
rows: o.selectedRows.value
|
14112
14112
|
}))
|
14113
14113
|
return;
|
14114
|
-
const
|
14115
|
-
if (!
|
14114
|
+
const he = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd;
|
14115
|
+
if (!he)
|
14116
14116
|
throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
14117
|
-
const
|
14118
|
-
url:
|
14117
|
+
const be = await httpClient().request({
|
14118
|
+
url: he,
|
14119
14119
|
method: (ie = (ne = s.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? ie : "POST",
|
14120
14120
|
params: oe.value,
|
14121
|
-
data:
|
14121
|
+
data: ve.value
|
14122
14122
|
});
|
14123
|
-
((
|
14123
|
+
((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(W.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((ge = s.varButtonCreate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
|
14124
14124
|
isSearchFirstPage: !0
|
14125
14125
|
}), await l.store.emit(s.formID, "ok", {
|
14126
14126
|
isCreating: !0,
|
@@ -14129,7 +14129,7 @@ const getProps$r = () => ({
|
|
14129
14129
|
isDeleting: !1,
|
14130
14130
|
row: o.selectedFirstRow.value,
|
14131
14131
|
model: l.model,
|
14132
|
-
result:
|
14132
|
+
result: be
|
14133
14133
|
});
|
14134
14134
|
} catch (oe) {
|
14135
14135
|
console.error(oe), l.store.emit(s.formID, "error", oe);
|
@@ -14137,11 +14137,11 @@ const getProps$r = () => ({
|
|
14137
14137
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
14138
14138
|
}
|
14139
14139
|
}
|
14140
|
-
async function
|
14141
|
-
var q, z, ee, ne, ie,
|
14140
|
+
async function pe() {
|
14141
|
+
var q, z, ee, ne, ie, le, ge;
|
14142
14142
|
try {
|
14143
14143
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
14144
|
-
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)),
|
14144
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), ve = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
14145
14145
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
14146
14146
|
isCreating: s.isCreating.value,
|
14147
14147
|
isUpdating: s.isUpdating.value,
|
@@ -14151,19 +14151,19 @@ const getProps$r = () => ({
|
|
14151
14151
|
rows: o.selectedRows.value,
|
14152
14152
|
model: l.model,
|
14153
14153
|
params: oe,
|
14154
|
-
data:
|
14154
|
+
data: ve
|
14155
14155
|
}))
|
14156
14156
|
return;
|
14157
|
-
const
|
14158
|
-
if (!
|
14157
|
+
const he = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd;
|
14158
|
+
if (!he)
|
14159
14159
|
throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
14160
|
-
const
|
14161
|
-
url:
|
14160
|
+
const be = await httpClient().request({
|
14161
|
+
url: he,
|
14162
14162
|
method: (ie = (ne = s.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? ie : "POST",
|
14163
14163
|
params: oe.value,
|
14164
|
-
data:
|
14164
|
+
data: ve.value
|
14165
14165
|
});
|
14166
|
-
((
|
14166
|
+
((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((ge = s.varButtonUpdate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
|
14167
14167
|
isPreserveSelectedRows: !0
|
14168
14168
|
}), await l.store.emit(s.formID, "ok", {
|
14169
14169
|
isCreating: !1,
|
@@ -14172,7 +14172,7 @@ const getProps$r = () => ({
|
|
14172
14172
|
isDeleting: !1,
|
14173
14173
|
row: o.selectedFirstRow.value,
|
14174
14174
|
model: l.model,
|
14175
|
-
result:
|
14175
|
+
result: be
|
14176
14176
|
});
|
14177
14177
|
} catch (oe) {
|
14178
14178
|
console.error(oe), l.store.emit(s.formID, "error", oe);
|
@@ -14180,15 +14180,15 @@ const getProps$r = () => ({
|
|
14180
14180
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
14181
14181
|
}
|
14182
14182
|
}
|
14183
|
-
async function
|
14184
|
-
var q, z, ee, ne, ie,
|
14183
|
+
async function Ce() {
|
14184
|
+
var q, z, ee, ne, ie, le, ge, oe, ve;
|
14185
14185
|
try {
|
14186
14186
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
14187
|
-
let
|
14187
|
+
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), he = ref(KgUtil.parseParams({
|
14188
14188
|
...(ee = o.selectedFirstRow.value) != null ? ee : {},
|
14189
14189
|
...toRaw(l.model.value)
|
14190
14190
|
}, s.formID, r));
|
14191
|
-
if (((ne = m.value) == null ? void 0 : ne.cpy_clear_id_flg) !== 0 && delete
|
14191
|
+
if (((ne = m.value) == null ? void 0 : ne.cpy_clear_id_flg) !== 0 && delete he.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
14192
14192
|
isCreating: s.isCreating.value,
|
14193
14193
|
isUpdating: s.isUpdating.value,
|
14194
14194
|
isCopying: s.isCopying.value,
|
@@ -14196,20 +14196,20 @@ const getProps$r = () => ({
|
|
14196
14196
|
row: o.selectedRow.value,
|
14197
14197
|
rows: o.selectedRows.value,
|
14198
14198
|
model: l.model,
|
14199
|
-
params:
|
14200
|
-
data:
|
14199
|
+
params: Ee,
|
14200
|
+
data: he
|
14201
14201
|
}))
|
14202
14202
|
return;
|
14203
|
-
const
|
14204
|
-
if (!
|
14203
|
+
const Me = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
|
14204
|
+
if (!Me)
|
14205
14205
|
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");
|
14206
14206
|
const Ne = await httpClient().request({
|
14207
|
-
url:
|
14208
|
-
method: (
|
14209
|
-
params:
|
14210
|
-
data:
|
14207
|
+
url: Me,
|
14208
|
+
method: (ge = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? ge : "POST",
|
14209
|
+
params: Ee.value,
|
14210
|
+
data: he.value
|
14211
14211
|
});
|
14212
|
-
((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((
|
14212
|
+
((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((ve = s.varButtonCopy.value) == null ? void 0 : ve.reload_all_after_done_flg) !== 0 && c.search({
|
14213
14213
|
isSearchFirstPage: !0
|
14214
14214
|
}), await l.store.emit(s.formID, "ok", {
|
14215
14215
|
isCreating: !1,
|
@@ -14220,22 +14220,22 @@ const getProps$r = () => ({
|
|
14220
14220
|
model: l.model,
|
14221
14221
|
result: Ne
|
14222
14222
|
});
|
14223
|
-
} catch (
|
14224
|
-
console.error(
|
14223
|
+
} catch (Ee) {
|
14224
|
+
console.error(Ee), l.store.emit(s.formID, "error", Ee);
|
14225
14225
|
} finally {
|
14226
14226
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
14227
14227
|
}
|
14228
14228
|
}
|
14229
|
-
async function
|
14230
|
-
var q, z, ee, ne, ie,
|
14229
|
+
async function we() {
|
14230
|
+
var q, z, ee, ne, ie, le, ge, oe, ve, Ee, he;
|
14231
14231
|
try {
|
14232
14232
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
14233
|
-
let
|
14234
|
-
if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (
|
14235
|
-
ids: (
|
14233
|
+
let be = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), Me = ref((ee = o.selectedRows.value) != null ? ee : []);
|
14234
|
+
if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (be = ref({
|
14235
|
+
ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
|
14236
14236
|
var Pe, Le, $e;
|
14237
14237
|
return ($e = xe[(Le = (Pe = s.varButtonDelete.value) == null ? void 0 : Pe.del_param_clm) != null ? Le : "id"]) != null ? $e : "";
|
14238
|
-
})) != null ?
|
14238
|
+
})) != null ? le : []
|
14239
14239
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
14240
14240
|
isCreating: s.isCreating.value,
|
14241
14241
|
isUpdating: s.isUpdating.value,
|
@@ -14244,22 +14244,22 @@ const getProps$r = () => ({
|
|
14244
14244
|
row: o.selectedFirstRow.value,
|
14245
14245
|
rows: o.selectedRows.value,
|
14246
14246
|
model: l.model,
|
14247
|
-
params:
|
14248
|
-
data:
|
14247
|
+
params: be,
|
14248
|
+
data: Me
|
14249
14249
|
}))
|
14250
14250
|
return;
|
14251
|
-
const Ve = (
|
14251
|
+
const Ve = (ge = s.varButtonDelete.value) == null ? void 0 : ge.cmd;
|
14252
14252
|
if (!Ve)
|
14253
14253
|
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");
|
14254
|
-
const Fe = (
|
14254
|
+
const Fe = (ve = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? ve : "POST", Be = await httpClient().request({
|
14255
14255
|
url: Ve,
|
14256
14256
|
method: Fe,
|
14257
|
-
params:
|
14258
|
-
data:
|
14257
|
+
params: be.value,
|
14258
|
+
data: Me.value
|
14259
14259
|
}, {
|
14260
14260
|
joinParamsToUrl: !0
|
14261
14261
|
});
|
14262
|
-
((
|
14262
|
+
((Ee = s.varButtonDelete.value) == null ? void 0 : Ee.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((he = s.varButtonDelete.value) == null ? void 0 : he.reload_all_after_done_flg) !== 0 && c.search({
|
14263
14263
|
isSearchFirstPage: !0
|
14264
14264
|
}), await l.store.emit(s.formID, "ok", {
|
14265
14265
|
isCreating: !1,
|
@@ -14273,49 +14273,49 @@ const getProps$r = () => ({
|
|
14273
14273
|
button: s.varButtonDelete.value,
|
14274
14274
|
rows: o.selectedRows.value
|
14275
14275
|
});
|
14276
|
-
} catch (
|
14277
|
-
console.error(
|
14276
|
+
} catch (be) {
|
14277
|
+
console.error(be), l.store.emit(s.formID, "error", be);
|
14278
14278
|
} finally {
|
14279
14279
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
14280
14280
|
}
|
14281
14281
|
}
|
14282
|
-
function
|
14283
|
-
var ne, ie,
|
14284
|
-
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 = (
|
14282
|
+
function Se(q) {
|
14283
|
+
var ne, ie, le, ge;
|
14284
|
+
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 = (ge = (le = a == null ? void 0 : a.KgSubmit) == null ? void 0 : le["KgForm.Item.controlRight"]) == null ? void 0 : ge[q.var_nam];
|
14285
14285
|
return createVNode(KgForm.Item, {
|
14286
14286
|
kgVarName: q.var_nam,
|
14287
14287
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
14288
|
-
onKgSubmit:
|
14288
|
+
onKgSubmit: de
|
14289
14289
|
}, {
|
14290
14290
|
control: isFunction$2(z) ? (oe) => z(oe) : void 0,
|
14291
14291
|
controlRight: isFunction$2(ee) ? (oe) => ee(oe) : void 0
|
14292
14292
|
});
|
14293
14293
|
}
|
14294
|
-
function
|
14295
|
-
return s.varSubmitFieldSectionsForVisible.value.length > 0 ?
|
14294
|
+
function Ie() {
|
14295
|
+
return s.varSubmitFieldSectionsForVisible.value.length > 0 ? De() : Re();
|
14296
14296
|
}
|
14297
|
-
function
|
14297
|
+
function Re() {
|
14298
14298
|
let q, z;
|
14299
14299
|
return createVNode(Fragment, null, [R.value.length > 0 && createVNode(Row, {
|
14300
14300
|
gutter: 12
|
14301
|
-
}, _isSlot$6(q = R.value.map(
|
14301
|
+
}, _isSlot$6(q = R.value.map(Se)) ? q : {
|
14302
14302
|
default: () => [q]
|
14303
14303
|
}), V.value.length > 0 && O.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
|
14304
14304
|
gutter: 12
|
14305
|
-
}, _isSlot$6(z = P.value.map(
|
14305
|
+
}, _isSlot$6(z = P.value.map(Se)) ? z : {
|
14306
14306
|
default: () => [z]
|
14307
14307
|
}), u.value && createVNode("div", {
|
14308
14308
|
style: "text-align: center; padding: 6px 0 12px;"
|
14309
14309
|
}, [n.t("kg.confirmDelete")])]);
|
14310
14310
|
}
|
14311
|
-
function
|
14311
|
+
function De() {
|
14312
14312
|
var q;
|
14313
14313
|
return createVNode("div", {
|
14314
14314
|
class: "section"
|
14315
14315
|
}, [createVNode(Menu, {
|
14316
14316
|
mode: "inline",
|
14317
14317
|
selectedKeys: Y.value,
|
14318
|
-
onSelect:
|
14318
|
+
onSelect: Oe
|
14319
14319
|
}, {
|
14320
14320
|
default: () => {
|
14321
14321
|
var z;
|
@@ -14332,11 +14332,11 @@ const getProps$r = () => ({
|
|
14332
14332
|
}, {
|
14333
14333
|
default: () => {
|
14334
14334
|
var ee, ne;
|
14335
|
-
return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(
|
14335
|
+
return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Se)];
|
14336
14336
|
}
|
14337
14337
|
})]))])]);
|
14338
14338
|
}
|
14339
|
-
function
|
14339
|
+
function Ke() {
|
14340
14340
|
return createVNode(Spin, {
|
14341
14341
|
spinning: d.value
|
14342
14342
|
}, {
|
@@ -14351,18 +14351,18 @@ const getProps$r = () => ({
|
|
14351
14351
|
}, {
|
14352
14352
|
default: () => [createVNode("div", {
|
14353
14353
|
ref: J
|
14354
|
-
}, [
|
14354
|
+
}, [Ie()])]
|
14355
14355
|
})];
|
14356
14356
|
}
|
14357
14357
|
});
|
14358
14358
|
}
|
14359
|
-
function
|
14359
|
+
function ye() {
|
14360
14360
|
let q;
|
14361
14361
|
return createVNode("div", null, [createVNode(Button, {
|
14362
14362
|
type: "primary",
|
14363
14363
|
ghost: !D.value,
|
14364
14364
|
disabled: D.value,
|
14365
|
-
onClick:
|
14365
|
+
onClick: ue
|
14366
14366
|
}, _isSlot$6(q = n.t("kg.cancel")) ? q : {
|
14367
14367
|
default: () => [q]
|
14368
14368
|
}), createVNode(Button, {
|
@@ -14370,24 +14370,24 @@ const getProps$r = () => ({
|
|
14370
14370
|
disabled: K.value,
|
14371
14371
|
loading: w.value,
|
14372
14372
|
danger: !!s.isDeleting.value,
|
14373
|
-
onClick:
|
14373
|
+
onClick: de
|
14374
14374
|
}, {
|
14375
14375
|
default: () => [Q.value]
|
14376
14376
|
})]);
|
14377
14377
|
}
|
14378
|
-
function
|
14378
|
+
function Te() {
|
14379
14379
|
return createVNode("div", {
|
14380
14380
|
title: W.title.value
|
14381
14381
|
}, [W.title.value]);
|
14382
14382
|
}
|
14383
|
-
function
|
14383
|
+
function ke() {
|
14384
14384
|
return !!u.value || !e.kgIsShowVarSubmitConfigButton ? null : createVNode(KgSubmitVarSubmitConfigButton, null, null);
|
14385
14385
|
}
|
14386
|
-
function
|
14386
|
+
function Oe(q) {
|
14387
14387
|
Y.value = q.selectedKeys;
|
14388
14388
|
}
|
14389
14389
|
return onUnmounted(async () => {
|
14390
|
-
l.store.dispose(s.formID), await
|
14390
|
+
l.store.dispose(s.formID), await fe();
|
14391
14391
|
}), () => createVNode(KgModal, {
|
14392
14392
|
visible: re.value,
|
14393
14393
|
mask: l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE,
|
@@ -14396,7 +14396,7 @@ const getProps$r = () => ({
|
|
14396
14396
|
destroyOnClose: !0,
|
14397
14397
|
width: te.value,
|
14398
14398
|
class: se.value,
|
14399
|
-
wrapClassName:
|
14399
|
+
wrapClassName: ce.value,
|
14400
14400
|
kgFullHeight: !1,
|
14401
14401
|
kgMinWidth: L.value,
|
14402
14402
|
kgMaxWidth: x.value,
|
@@ -14405,12 +14405,12 @@ const getProps$r = () => ({
|
|
14405
14405
|
kgIsShowFullscreenButton: H.value,
|
14406
14406
|
kgIsDefaultFullscreen: F.value,
|
14407
14407
|
"kg-frm_id": s.formID,
|
14408
|
-
onCancel:
|
14408
|
+
onCancel: ue
|
14409
14409
|
}, {
|
14410
|
-
title:
|
14411
|
-
kgModalHeaderButtonsExtra:
|
14412
|
-
default:
|
14413
|
-
footer:
|
14410
|
+
title: Te,
|
14411
|
+
kgModalHeaderButtonsExtra: ke,
|
14412
|
+
default: Ke,
|
14413
|
+
footer: ye
|
14414
14414
|
});
|
14415
14415
|
}
|
14416
14416
|
}), FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster", DEFAULT_PAGE_SIZES = "[10, 20, 50, 100]", DEFAULT_PAGE_SIZE = 10;
|
package/package.json
CHANGED
@@ -1,107 +1,107 @@
|
|
1
|
-
{
|
2
|
-
"name": "@kengic/vue",
|
3
|
-
"version": "0.21.5-beta.
|
4
|
-
"scripts": {
|
5
|
-
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
|
-
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
|
-
"--------------------------------------------------": "",
|
8
|
-
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
-
"----- --------------------------------------------": "",
|
10
|
-
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
11
|
-
"--- ----------------------------------------------": "",
|
12
|
-
"copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
13
|
-
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
14
|
-
"- ------------------------------------------------": "",
|
15
|
-
"cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
|
16
|
-
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|
17
|
-
"-- -----------------------------------------------": "",
|
18
|
-
"bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
|
19
|
-
"---- ---------------------------------------------": "",
|
20
|
-
"publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
|
21
|
-
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
22
|
-
},
|
23
|
-
"peerDependencies": {
|
24
|
-
"vue": "3.2.43"
|
25
|
-
},
|
26
|
-
"dependencies": {
|
27
|
-
"@ant-design/colors": "6.0.0",
|
28
|
-
"@ant-design/icons-vue": "6.1.0",
|
29
|
-
"@iconify-icons/akar-icons": "1.2.19",
|
30
|
-
"@iconify-icons/ant-design": "1.2.5",
|
31
|
-
"@iconify-icons/fluent-mdl2": "1.2.1",
|
32
|
-
"@iconify-icons/material-symbols": "1.2.58",
|
33
|
-
"@iconify-icons/mdi": "1.2.48",
|
34
|
-
"@iconify-icons/ph": "1.2.5",
|
35
|
-
"@iconify/vue": "4.1.1",
|
36
|
-
"@kengic/pont": "1.2.11",
|
37
|
-
"@rys-fe/vite-plugin-theme": "0.8.6",
|
38
|
-
"@types/fs-extra": "9.0.13",
|
39
|
-
"@types/inquirer": "8.2.5",
|
40
|
-
"@types/lodash-es": "4.17.9",
|
41
|
-
"@types/node": "18.18.4",
|
42
|
-
"@types/semver": "7.5.3",
|
43
|
-
"@types/store": "2.0.3",
|
44
|
-
"@vitejs/plugin-legacy": "2.3.1",
|
45
|
-
"@vitejs/plugin-vue": "3.2.0",
|
46
|
-
"@vitejs/plugin-vue-jsx": "1.3.10",
|
47
|
-
"@vueuse/core": "8.9.4",
|
48
|
-
"@vueuse/shared": "8.9.4",
|
49
|
-
"ant-design-vue": "3.2.14",
|
50
|
-
"axios": "0.26.1",
|
51
|
-
"chalk": "4.1.2",
|
52
|
-
"dayjs": "1.11.10",
|
53
|
-
"dotenv": "16.0.3",
|
54
|
-
"filesize": "10.1.0",
|
55
|
-
"fs-extra": "10.1.0",
|
56
|
-
"html-to-image": "1.11.11",
|
57
|
-
"inquirer": "8.2.5",
|
58
|
-
"less": "4.1.3",
|
59
|
-
"lodash-es": "4.17.21",
|
60
|
-
"picocolors": "1.0.0",
|
61
|
-
"pinia": "2.0.12",
|
62
|
-
"prettier": "3.2.5",
|
63
|
-
"rimraf": "3.0.2",
|
64
|
-
"rollup": "2.79.1",
|
65
|
-
"rollup-plugin-visualizer": "5.8.3",
|
66
|
-
"semver": "7.5.4",
|
67
|
-
"store": "2.0.12",
|
68
|
-
"tsx": "3.12.3",
|
69
|
-
"typescript": "~4.8.4",
|
70
|
-
"vite": "3.2.5",
|
71
|
-
"vite-plugin-compression": "0.5.1",
|
72
|
-
"vite-plugin-html": "3.2.0",
|
73
|
-
"vite-plugin-imagemin": "0.6.1",
|
74
|
-
"vite-plugin-mkcert": "1.10.1",
|
75
|
-
"vite-plugin-mock": "2.9.6",
|
76
|
-
"vite-plugin-optimize-persist": "0.1.2",
|
77
|
-
"vite-plugin-package-config": "0.1.1",
|
78
|
-
"vite-plugin-purge-icons": "0.8.2",
|
79
|
-
"vite-plugin-pwa": "0.12.8",
|
80
|
-
"vite-plugin-style-import": "2.0.0",
|
81
|
-
"vite-plugin-svg-icons": "2.0.1",
|
82
|
-
"vite-plugin-vue-setup-extend": "0.4.0",
|
83
|
-
"vite-plugin-windicss": "1.8.8",
|
84
|
-
"vue": "3.2.43",
|
85
|
-
"vue-router": "4.1.6",
|
86
|
-
"vue-tsc": "1.8.27"
|
87
|
-
},
|
88
|
-
"devDependencies": {},
|
89
|
-
"main": "./dist/kengic-vue.js",
|
90
|
-
"module": "./dist/kengic-vue.js",
|
91
|
-
"types": "./dist/src/index.d.ts",
|
92
|
-
"exports": {
|
93
|
-
".": {
|
94
|
-
"import": "./dist/kengic-vue.js"
|
95
|
-
},
|
96
|
-
"./dist/index.css": "./dist/index.css"
|
97
|
-
},
|
98
|
-
"prettier": {
|
99
|
-
"endOfLine": "auto",
|
100
|
-
"printWidth": 160,
|
101
|
-
"semi": true,
|
102
|
-
"singleAttributePerLine": true,
|
103
|
-
"singleQuote": true,
|
104
|
-
"tabWidth": 4,
|
105
|
-
"trailingComma": "all"
|
106
|
-
}
|
107
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@kengic/vue",
|
3
|
+
"version": "0.21.5-beta.6",
|
4
|
+
"scripts": {
|
5
|
+
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
|
+
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
|
+
"--------------------------------------------------": "",
|
8
|
+
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
+
"----- --------------------------------------------": "",
|
10
|
+
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
11
|
+
"--- ----------------------------------------------": "",
|
12
|
+
"copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
13
|
+
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
14
|
+
"- ------------------------------------------------": "",
|
15
|
+
"cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
|
16
|
+
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|
17
|
+
"-- -----------------------------------------------": "",
|
18
|
+
"bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
|
19
|
+
"---- ---------------------------------------------": "",
|
20
|
+
"publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
|
21
|
+
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
22
|
+
},
|
23
|
+
"peerDependencies": {
|
24
|
+
"vue": "3.2.43"
|
25
|
+
},
|
26
|
+
"dependencies": {
|
27
|
+
"@ant-design/colors": "6.0.0",
|
28
|
+
"@ant-design/icons-vue": "6.1.0",
|
29
|
+
"@iconify-icons/akar-icons": "1.2.19",
|
30
|
+
"@iconify-icons/ant-design": "1.2.5",
|
31
|
+
"@iconify-icons/fluent-mdl2": "1.2.1",
|
32
|
+
"@iconify-icons/material-symbols": "1.2.58",
|
33
|
+
"@iconify-icons/mdi": "1.2.48",
|
34
|
+
"@iconify-icons/ph": "1.2.5",
|
35
|
+
"@iconify/vue": "4.1.1",
|
36
|
+
"@kengic/pont": "1.2.11",
|
37
|
+
"@rys-fe/vite-plugin-theme": "0.8.6",
|
38
|
+
"@types/fs-extra": "9.0.13",
|
39
|
+
"@types/inquirer": "8.2.5",
|
40
|
+
"@types/lodash-es": "4.17.9",
|
41
|
+
"@types/node": "18.18.4",
|
42
|
+
"@types/semver": "7.5.3",
|
43
|
+
"@types/store": "2.0.3",
|
44
|
+
"@vitejs/plugin-legacy": "2.3.1",
|
45
|
+
"@vitejs/plugin-vue": "3.2.0",
|
46
|
+
"@vitejs/plugin-vue-jsx": "1.3.10",
|
47
|
+
"@vueuse/core": "8.9.4",
|
48
|
+
"@vueuse/shared": "8.9.4",
|
49
|
+
"ant-design-vue": "3.2.14",
|
50
|
+
"axios": "0.26.1",
|
51
|
+
"chalk": "4.1.2",
|
52
|
+
"dayjs": "1.11.10",
|
53
|
+
"dotenv": "16.0.3",
|
54
|
+
"filesize": "10.1.0",
|
55
|
+
"fs-extra": "10.1.0",
|
56
|
+
"html-to-image": "1.11.11",
|
57
|
+
"inquirer": "8.2.5",
|
58
|
+
"less": "4.1.3",
|
59
|
+
"lodash-es": "4.17.21",
|
60
|
+
"picocolors": "1.0.0",
|
61
|
+
"pinia": "2.0.12",
|
62
|
+
"prettier": "3.2.5",
|
63
|
+
"rimraf": "3.0.2",
|
64
|
+
"rollup": "2.79.1",
|
65
|
+
"rollup-plugin-visualizer": "5.8.3",
|
66
|
+
"semver": "7.5.4",
|
67
|
+
"store": "2.0.12",
|
68
|
+
"tsx": "3.12.3",
|
69
|
+
"typescript": "~4.8.4",
|
70
|
+
"vite": "3.2.5",
|
71
|
+
"vite-plugin-compression": "0.5.1",
|
72
|
+
"vite-plugin-html": "3.2.0",
|
73
|
+
"vite-plugin-imagemin": "0.6.1",
|
74
|
+
"vite-plugin-mkcert": "1.10.1",
|
75
|
+
"vite-plugin-mock": "2.9.6",
|
76
|
+
"vite-plugin-optimize-persist": "0.1.2",
|
77
|
+
"vite-plugin-package-config": "0.1.1",
|
78
|
+
"vite-plugin-purge-icons": "0.8.2",
|
79
|
+
"vite-plugin-pwa": "0.12.8",
|
80
|
+
"vite-plugin-style-import": "2.0.0",
|
81
|
+
"vite-plugin-svg-icons": "2.0.1",
|
82
|
+
"vite-plugin-vue-setup-extend": "0.4.0",
|
83
|
+
"vite-plugin-windicss": "1.8.8",
|
84
|
+
"vue": "3.2.43",
|
85
|
+
"vue-router": "4.1.6",
|
86
|
+
"vue-tsc": "1.8.27"
|
87
|
+
},
|
88
|
+
"devDependencies": {},
|
89
|
+
"main": "./dist/kengic-vue.js",
|
90
|
+
"module": "./dist/kengic-vue.js",
|
91
|
+
"types": "./dist/src/index.d.ts",
|
92
|
+
"exports": {
|
93
|
+
".": {
|
94
|
+
"import": "./dist/kengic-vue.js"
|
95
|
+
},
|
96
|
+
"./dist/index.css": "./dist/index.css"
|
97
|
+
},
|
98
|
+
"prettier": {
|
99
|
+
"endOfLine": "auto",
|
100
|
+
"printWidth": 160,
|
101
|
+
"semi": true,
|
102
|
+
"singleAttributePerLine": true,
|
103
|
+
"singleQuote": true,
|
104
|
+
"tabWidth": 4,
|
105
|
+
"trailingComma": "all"
|
106
|
+
}
|
107
|
+
}
|