@kengic/vue 0.28.2-beta.11 → 0.28.2-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +90 -85
- package/dist/src/util/kg.util.d.ts +2 -12
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -71373,7 +71373,7 @@ function fi(e) {
|
|
71373
71373
|
})
|
71374
71374
|
);
|
71375
71375
|
}
|
71376
|
-
const version = "0.28.2-beta.
|
71376
|
+
const version = "0.28.2-beta.13", en$1 = {
|
71377
71377
|
kg: {
|
71378
71378
|
KgAppSelect: {
|
71379
71379
|
businessManager: "Business Manager",
|
@@ -76795,54 +76795,55 @@ function requireCore() {
|
|
76795
76795
|
});
|
76796
76796
|
}(core)), core.exports;
|
76797
76797
|
}
|
76798
|
-
var encBase64 = { exports: {} };
|
76799
|
-
|
76800
|
-
(function(
|
76801
|
-
|
76802
|
-
|
76803
|
-
|
76804
|
-
|
76805
|
-
|
76806
|
-
|
76807
|
-
|
76808
|
-
|
76809
|
-
|
76810
|
-
for (var
|
76811
|
-
|
76812
|
-
|
76813
|
-
|
76814
|
-
|
76815
|
-
oa.
|
76816
|
-
|
76817
|
-
|
76818
|
-
|
76819
|
-
|
76820
|
-
|
76821
|
-
na
|
76822
|
-
|
76823
|
-
|
76824
|
-
|
76825
|
-
|
76826
|
-
|
76827
|
-
|
76828
|
-
|
76829
|
-
|
76830
|
-
|
76831
|
-
|
76832
|
-
|
76833
|
-
|
76834
|
-
|
76835
|
-
|
76836
|
-
|
76837
|
-
|
76838
|
-
|
76839
|
-
|
76840
|
-
|
76841
|
-
|
76842
|
-
|
76843
|
-
|
76844
|
-
})
|
76845
|
-
|
76798
|
+
var encBase64 = { exports: {} }, hasRequiredEncBase64;
|
76799
|
+
function requireEncBase64() {
|
76800
|
+
return hasRequiredEncBase64 || (hasRequiredEncBase64 = 1, function(e, G) {
|
76801
|
+
(function(U, te) {
|
76802
|
+
e.exports = te(requireCore());
|
76803
|
+
})(commonjsGlobal, function(U) {
|
76804
|
+
return function() {
|
76805
|
+
var te = U, ne = te.lib, oe = ne.WordArray, ie = te.enc;
|
76806
|
+
ie.Base64 = {
|
76807
|
+
stringify: function(st) {
|
76808
|
+
var ea = st.words, ta = st.sigBytes, na = this._map;
|
76809
|
+
st.clamp();
|
76810
|
+
for (var oa = [], la = 0; la < ta; la += 3)
|
76811
|
+
for (var ca = ea[la >>> 2] >>> 24 - la % 4 * 8 & 255, da = ea[la + 1 >>> 2] >>> 24 - (la + 1) % 4 * 8 & 255, fa = ea[la + 2 >>> 2] >>> 24 - (la + 2) % 4 * 8 & 255, pa = ca << 16 | da << 8 | fa, ga = 0; ga < 4 && la + ga * 0.75 < ta; ga++)
|
76812
|
+
oa.push(na.charAt(pa >>> 6 * (3 - ga) & 63));
|
76813
|
+
var ha = na.charAt(64);
|
76814
|
+
if (ha)
|
76815
|
+
for (; oa.length % 4; )
|
76816
|
+
oa.push(ha);
|
76817
|
+
return oa.join("");
|
76818
|
+
},
|
76819
|
+
parse: function(st) {
|
76820
|
+
var ea = st.length, ta = this._map, na = this._reverseMap;
|
76821
|
+
if (!na) {
|
76822
|
+
na = this._reverseMap = [];
|
76823
|
+
for (var oa = 0; oa < ta.length; oa++)
|
76824
|
+
na[ta.charCodeAt(oa)] = oa;
|
76825
|
+
}
|
76826
|
+
var la = ta.charAt(64);
|
76827
|
+
if (la) {
|
76828
|
+
var ca = st.indexOf(la);
|
76829
|
+
ca !== -1 && (ea = ca);
|
76830
|
+
}
|
76831
|
+
return ue(st, ea, na);
|
76832
|
+
},
|
76833
|
+
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
76834
|
+
};
|
76835
|
+
function ue(st, ea, ta) {
|
76836
|
+
for (var na = [], oa = 0, la = 0; la < ea; la++)
|
76837
|
+
if (la % 4) {
|
76838
|
+
var ca = ta[st.charCodeAt(la - 1)] << la % 4 * 2, da = ta[st.charCodeAt(la)] >>> 6 - la % 4 * 2, fa = ca | da;
|
76839
|
+
na[oa >>> 2] |= fa << 24 - oa % 4 * 8, oa++;
|
76840
|
+
}
|
76841
|
+
return oe.create(na, oa);
|
76842
|
+
}
|
76843
|
+
}(), U.enc.Base64;
|
76844
|
+
});
|
76845
|
+
}(encBase64)), encBase64.exports;
|
76846
|
+
}
|
76846
76847
|
var md5$1 = { exports: {} }, hasRequiredMd5;
|
76847
76848
|
function requireMd5() {
|
76848
76849
|
return hasRequiredMd5 || (hasRequiredMd5 = 1, function(e, G) {
|
@@ -77214,7 +77215,7 @@ function requireCipherCore() {
|
|
77214
77215
|
}
|
77215
77216
|
(function(e, G) {
|
77216
77217
|
(function(U, te, ne) {
|
77217
|
-
e.exports = te(requireCore(),
|
77218
|
+
e.exports = te(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
77218
77219
|
})(commonjsGlobal, function(U) {
|
77219
77220
|
return function() {
|
77220
77221
|
var te = U, ne = te.lib, oe = ne.BlockCipher, ie = te.algo, ue = [], st = [], ea = [], ta = [], na = [], oa = [], la = [], ca = [], da = [], fa = [];
|
@@ -77269,7 +77270,7 @@ function requireCipherCore() {
|
|
77269
77270
|
}(), U.AES;
|
77270
77271
|
});
|
77271
77272
|
})(aes);
|
77272
|
-
var encUtf8 = { exports: {} };
|
77273
|
+
var encBase64Exports = requireEncBase64(), encUtf8 = { exports: {} };
|
77273
77274
|
(function(e, G) {
|
77274
77275
|
(function(U, te) {
|
77275
77276
|
e.exports = te(requireCore());
|
@@ -77331,10 +77332,10 @@ class AesEncryption {
|
|
77331
77332
|
}
|
77332
77333
|
}
|
77333
77334
|
function encryptByBase64(e) {
|
77334
|
-
return UTF8.parse(e).toString(
|
77335
|
+
return UTF8.parse(e).toString(encBase64Exports);
|
77335
77336
|
}
|
77336
77337
|
function decodeByBase64(e) {
|
77337
|
-
return
|
77338
|
+
return encBase64Exports.parse(e).toString(UTF8);
|
77338
77339
|
}
|
77339
77340
|
function encryptByMd5(e) {
|
77340
77341
|
return md5Exports(e).toString();
|
@@ -78492,29 +78493,30 @@ class _KgUtil {
|
|
78492
78493
|
if (typeof te != "string")
|
78493
78494
|
return te;
|
78494
78495
|
const oe = useKg(), ie = G ? useKgVar(G) : null;
|
78495
|
-
let ue = (
|
78496
|
+
let ue = te.trim();
|
78497
|
+
return ue = (() => {
|
78496
78498
|
var st, ea, ta, na, oa, la, ca, da, fa, pa, ga, ha, Ea, ya, Sa, Ta, wa;
|
78497
78499
|
switch (!0) {
|
78498
|
-
case
|
78499
|
-
return
|
78500
|
-
case
|
78501
|
-
return
|
78502
|
-
case
|
78503
|
-
return
|
78504
|
-
case
|
78505
|
-
return
|
78506
|
-
case
|
78507
|
-
return
|
78508
|
-
case
|
78509
|
-
return U ?
|
78510
|
-
case
|
78511
|
-
return
|
78512
|
-
case
|
78513
|
-
return ie && ne ?
|
78500
|
+
case ue.includes(KG__DYNAMIC_PARAM.EMPTY_STRING):
|
78501
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.EMPTY_STRING, "");
|
78502
|
+
case ue.includes(KG__DYNAMIC_PARAM.WAREHOUSE):
|
78503
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.WAREHOUSE, (ea = (st = useKgWarehouse().warehouse.value) == null ? void 0 : st.whId) != null ? ea : "");
|
78504
|
+
case ue.includes(KG__DYNAMIC_PARAM.WORK_STATION):
|
78505
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.WORK_STATION, (na = (ta = doKgWorkStation().workStation) == null ? void 0 : ta.devcod) != null ? na : "");
|
78506
|
+
case ue.includes(KG__DYNAMIC_PARAM.WORK_AREA):
|
78507
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.WORK_AREA, (la = (oa = doKgWorkStation().workStationArea) == null ? void 0 : oa.wrkare) != null ? la : "");
|
78508
|
+
case ue.includes(KG__DYNAMIC_PARAM.LOCALE):
|
78509
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.LOCALE, (da = (ca = oe.locale) == null ? void 0 : ca.value) != null ? da : "");
|
78510
|
+
case ue.includes(KG__DYNAMIC_PARAM.NOW):
|
78511
|
+
return U ? ue.replaceAll(KG__DYNAMIC_PARAM.NOW, U().format("YYYY-MM-DD HH:mm:ss")) : ue;
|
78512
|
+
case ue.includes(KG__DYNAMIC_PARAM.USER):
|
78513
|
+
return ue.replaceAll(KG__DYNAMIC_PARAM.USER, (Ea = (ha = (ga = (pa = (fa = oe.store).getUseUserStore) == null ? void 0 : pa.call(fa, pinia)) == null ? void 0 : ga.userInfo) == null ? void 0 : ha.username) != null ? Ea : "");
|
78514
|
+
case ue.includes(KG__DYNAMIC_PARAM.ROW):
|
78515
|
+
return ie && ne ? ue.replaceAll(KG__DYNAMIC_PARAM.ROW, (ya = ie.kgTable.selectedRow.value) == null ? void 0 : ya[ne]) : ue;
|
78514
78516
|
default: {
|
78515
|
-
const Na = /(.*)?({(.*)?})(.*)?/.exec(
|
78517
|
+
const Na = /(.*)?({(.*)?})(.*)?/.exec(ue);
|
78516
78518
|
if (!Na)
|
78517
|
-
return
|
78519
|
+
return ue;
|
78518
78520
|
const Aa = Na[2].slice(1, -1);
|
78519
78521
|
switch (!0) {
|
78520
78522
|
case Aa.endsWith(":query"):
|
@@ -78523,11 +78525,10 @@ class _KgUtil {
|
|
78523
78525
|
break;
|
78524
78526
|
}
|
78525
78527
|
}
|
78526
|
-
return
|
78527
|
-
})()
|
78528
|
-
return ue = (() => {
|
78528
|
+
return ue;
|
78529
|
+
})(), ue = (() => {
|
78529
78530
|
let st = ue;
|
78530
|
-
return ue &&
|
78531
|
+
return ue && Object.keys(KG__DYNAMIC_PARAM_HASH).forEach((ea) => {
|
78531
78532
|
const ta = KG__DYNAMIC_PARAM_HASH[ea];
|
78532
78533
|
ue.includes(ta) && (st = st.replaceAll(ta, KG__DYNAMIC_PARAM[ea]));
|
78533
78534
|
}), st;
|
@@ -95247,7 +95248,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
95247
95248
|
const te = useKgVar();
|
95248
95249
|
function ne(ue) {
|
95249
95250
|
var ea, ta, na;
|
95250
|
-
const st = ue || null;
|
95251
|
+
const st = String(ue).trim() || null;
|
95251
95252
|
U("update:value", st), emit$6({
|
95252
95253
|
id: te.kgForm.formID,
|
95253
95254
|
event: "onChange",
|
@@ -95354,7 +95355,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
95354
95355
|
const te = useKgVar();
|
95355
95356
|
function ne(ue) {
|
95356
95357
|
var ea, ta, na;
|
95357
|
-
const st = ue || null;
|
95358
|
+
const st = String(ue).trim() || null;
|
95358
95359
|
U("update:value", st), emit$6({
|
95359
95360
|
id: te.kgForm.formID,
|
95360
95361
|
event: "onChange",
|
@@ -95725,19 +95726,20 @@ const KgFormItemSelect = defineComponent({
|
|
95725
95726
|
return !Number.isNaN(na) && na > 0 && (ta = na), ta;
|
95726
95727
|
});
|
95727
95728
|
function ue(ta) {
|
95728
|
-
var
|
95729
|
-
|
95729
|
+
var oa, la, ca;
|
95730
|
+
const na = String(ta).trim() || null;
|
95731
|
+
U("update:value", na), emit$6({
|
95730
95732
|
id: te.kgForm.formID,
|
95731
95733
|
event: "onChange",
|
95732
95734
|
parameter: {
|
95733
|
-
context: (
|
95735
|
+
context: (oa = e.kgContext) != null ? oa : KG_FORM_CONTEXT.SUBMIT,
|
95734
95736
|
isCopying: te.isCopying.value,
|
95735
95737
|
isCreating: te.isCreating.value,
|
95736
95738
|
isDeleting: te.isDeleting.value,
|
95737
95739
|
isUpdating: te.isUpdating.value,
|
95738
|
-
value:
|
95739
|
-
varName: (
|
95740
|
-
variableName: (
|
95740
|
+
value: na,
|
95741
|
+
varName: (la = e.kgVarName) != null ? la : "",
|
95742
|
+
variableName: (ca = e.kgVarName) != null ? ca : ""
|
95741
95743
|
}
|
95742
95744
|
});
|
95743
95745
|
}
|
@@ -104314,7 +104316,10 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
104314
104316
|
}
|
104315
104317
|
}
|
104316
104318
|
return isString$3(_text) && (_text = _text.replaceAll("\\n", `
|
104317
|
-
`)), isNil(_text) && (_text = ""), ((ea = varGridDetailProps$$.value) == null ? void 0 : ea.isTranslateText) === !0 && (_text =
|
104319
|
+
`)), isNil(_text) && (_text = ""), ((ea = varGridDetailProps$$.value) == null ? void 0 : ea.isTranslateText) === !0 && (_text = (() => {
|
104320
|
+
let ta = kg.t(_text);
|
104321
|
+
return ta !== _text || (ta = kgVar.t2(_text)), ta;
|
104322
|
+
})()), _text;
|
104318
104323
|
}), formRef = ref$1(null);
|
104319
104324
|
function onClick(e) {
|
104320
104325
|
var G, U;
|
@@ -54,12 +54,7 @@ export declare class KgUtil {
|
|
54
54
|
* @param param.value 参数的原始值.
|
55
55
|
* @param param.varName 变量名称.
|
56
56
|
*/
|
57
|
-
static parseParamsFromString
|
58
|
-
$dayjs?: typeof dayjs;
|
59
|
-
formID?: string | null;
|
60
|
-
value: string;
|
61
|
-
varName?: string | null;
|
62
|
-
}): any;
|
57
|
+
private static parseParamsFromString;
|
63
58
|
/**
|
64
59
|
* 处理请求参数: 解析 Dayjs 类型的参数值.
|
65
60
|
*
|
@@ -68,12 +63,7 @@ export declare class KgUtil {
|
|
68
63
|
* @param param.key 属性名.
|
69
64
|
* @param param.value 参数的原始值.
|
70
65
|
*/
|
71
|
-
static parseParamsFromDayjs
|
72
|
-
formID?: string | null;
|
73
|
-
isPad?: boolean;
|
74
|
-
key: string;
|
75
|
-
value: any;
|
76
|
-
}): string;
|
66
|
+
private static parseParamsFromDayjs;
|
77
67
|
/**
|
78
68
|
* <p>确认弹窗.</p>
|
79
69
|
* <p>设置了多个属性的默认值, 简化使用.</p>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.28.2-beta.
|
3
|
+
"version": "0.28.2-beta.13",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|