@kengic/vue 0.26.2 → 0.26.3-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +115 -88
- package/dist/src/components/KgSearch/index.hooks.d.ts +2 -1
- package/dist/src/components/KgSearch/index.store.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.store.d.ts +1 -1
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...a.data
|
2438
2438
|
}, r);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.26.
|
2440
|
+
}), version = "0.26.3-beta.1";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -8572,54 +8572,55 @@ function requireCore() {
|
|
8572
8572
|
});
|
8573
8573
|
}(core)), core.exports;
|
8574
8574
|
}
|
8575
|
-
var encBase64 = { exports: {} };
|
8576
|
-
|
8577
|
-
(function(
|
8578
|
-
|
8579
|
-
|
8580
|
-
|
8581
|
-
|
8582
|
-
|
8583
|
-
|
8584
|
-
|
8585
|
-
|
8586
|
-
|
8587
|
-
for (var
|
8588
|
-
|
8589
|
-
|
8590
|
-
|
8591
|
-
|
8592
|
-
m.
|
8593
|
-
|
8594
|
-
|
8595
|
-
|
8596
|
-
|
8597
|
-
|
8598
|
-
g
|
8599
|
-
|
8600
|
-
|
8601
|
-
|
8602
|
-
|
8603
|
-
|
8604
|
-
|
8605
|
-
|
8606
|
-
|
8607
|
-
|
8608
|
-
|
8609
|
-
|
8610
|
-
|
8611
|
-
|
8612
|
-
|
8613
|
-
|
8614
|
-
|
8615
|
-
|
8616
|
-
|
8617
|
-
|
8618
|
-
|
8619
|
-
|
8620
|
-
|
8621
|
-
})
|
8622
|
-
|
8575
|
+
var encBase64 = { exports: {} }, hasRequiredEncBase64;
|
8576
|
+
function requireEncBase64() {
|
8577
|
+
return hasRequiredEncBase64 || (hasRequiredEncBase64 = 1, function(e, a) {
|
8578
|
+
(function(r, n) {
|
8579
|
+
e.exports = n(requireCore());
|
8580
|
+
})(commonjsGlobal, function(r) {
|
8581
|
+
return function() {
|
8582
|
+
var n = r, u = n.lib, s = u.WordArray, o = n.enc;
|
8583
|
+
o.Base64 = {
|
8584
|
+
stringify: function(c) {
|
8585
|
+
var _ = c.words, d = c.sigBytes, g = this._map;
|
8586
|
+
c.clamp();
|
8587
|
+
for (var m = [], b = 0; b < d; b += 3)
|
8588
|
+
for (var v = _[b >>> 2] >>> 24 - b % 4 * 8 & 255, p = _[b + 1 >>> 2] >>> 24 - (b + 1) % 4 * 8 & 255, E = _[b + 2 >>> 2] >>> 24 - (b + 2) % 4 * 8 & 255, T = v << 16 | p << 8 | E, C = 0; C < 4 && b + C * 0.75 < d; C++)
|
8589
|
+
m.push(g.charAt(T >>> 6 * (3 - C) & 63));
|
8590
|
+
var k = g.charAt(64);
|
8591
|
+
if (k)
|
8592
|
+
for (; m.length % 4; )
|
8593
|
+
m.push(k);
|
8594
|
+
return m.join("");
|
8595
|
+
},
|
8596
|
+
parse: function(c) {
|
8597
|
+
var _ = c.length, d = this._map, g = this._reverseMap;
|
8598
|
+
if (!g) {
|
8599
|
+
g = this._reverseMap = [];
|
8600
|
+
for (var m = 0; m < d.length; m++)
|
8601
|
+
g[d.charCodeAt(m)] = m;
|
8602
|
+
}
|
8603
|
+
var b = d.charAt(64);
|
8604
|
+
if (b) {
|
8605
|
+
var v = c.indexOf(b);
|
8606
|
+
v !== -1 && (_ = v);
|
8607
|
+
}
|
8608
|
+
return l(c, _, g);
|
8609
|
+
},
|
8610
|
+
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
8611
|
+
};
|
8612
|
+
function l(c, _, d) {
|
8613
|
+
for (var g = [], m = 0, b = 0; b < _; b++)
|
8614
|
+
if (b % 4) {
|
8615
|
+
var v = d[c.charCodeAt(b - 1)] << b % 4 * 2, p = d[c.charCodeAt(b)] >>> 6 - b % 4 * 2, E = v | p;
|
8616
|
+
g[m >>> 2] |= E << 24 - m % 4 * 8, m++;
|
8617
|
+
}
|
8618
|
+
return s.create(g, m);
|
8619
|
+
}
|
8620
|
+
}(), r.enc.Base64;
|
8621
|
+
});
|
8622
|
+
}(encBase64)), encBase64.exports;
|
8623
|
+
}
|
8623
8624
|
var md5 = { exports: {} }, hasRequiredMd5;
|
8624
8625
|
function requireMd5() {
|
8625
8626
|
return hasRequiredMd5 || (hasRequiredMd5 = 1, function(e, a) {
|
@@ -8991,7 +8992,7 @@ function requireCipherCore() {
|
|
8991
8992
|
}
|
8992
8993
|
(function(e, a) {
|
8993
8994
|
(function(r, n, u) {
|
8994
|
-
e.exports = n(requireCore(),
|
8995
|
+
e.exports = n(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
8995
8996
|
})(commonjsGlobal, function(r) {
|
8996
8997
|
return function() {
|
8997
8998
|
var n = r, u = n.lib, s = u.BlockCipher, o = n.algo, l = [], c = [], _ = [], d = [], g = [], m = [], b = [], v = [], p = [], E = [];
|
@@ -9046,7 +9047,7 @@ function requireCipherCore() {
|
|
9046
9047
|
}(), r.AES;
|
9047
9048
|
});
|
9048
9049
|
})(aes);
|
9049
|
-
var encUtf8 = { exports: {} };
|
9050
|
+
var encBase64Exports = requireEncBase64(), encUtf8 = { exports: {} };
|
9050
9051
|
(function(e, a) {
|
9051
9052
|
(function(r, n) {
|
9052
9053
|
e.exports = n(requireCore());
|
@@ -9106,10 +9107,10 @@ class AesEncryption {
|
|
9106
9107
|
}
|
9107
9108
|
}
|
9108
9109
|
function encryptByBase64(e) {
|
9109
|
-
return UTF8.parse(e).toString(
|
9110
|
+
return UTF8.parse(e).toString(encBase64Exports);
|
9110
9111
|
}
|
9111
9112
|
function decodeByBase64(e) {
|
9112
|
-
return
|
9113
|
+
return encBase64Exports.parse(e).toString(UTF8);
|
9113
9114
|
}
|
9114
9115
|
function encryptByMd5(e) {
|
9115
9116
|
return md5Exports(e).toString();
|
@@ -14064,10 +14065,18 @@ const getProps$H = () => ({
|
|
14064
14065
|
function _useFormRules(e) {
|
14065
14066
|
const a = useKg(), r = useKgVar(), n = computed(() => r.store.getVarConfigInput(r.formID, e.kgVarName)), u = computed(() => {
|
14066
14067
|
var A, O;
|
14067
|
-
|
14068
|
-
|
14069
|
-
|
14070
|
-
|
14068
|
+
switch (e.kgContext) {
|
14069
|
+
case KG_FORM_CONTEXT.SEARCH:
|
14070
|
+
return r.kgSubmit.getVarSubmitDetailByVarProfileDetail({
|
14071
|
+
varProfileDetail: r.store.getVarProfileDetail(r.formID, e.kgVarName)
|
14072
|
+
});
|
14073
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
14074
|
+
case KG_FORM_CONTEXT.TABLE:
|
14075
|
+
return (O = r.kgSubmit.getVarSubmitDetails({
|
14076
|
+
buttonVarName: (A = r.kgButton.currentButton.value) == null ? void 0 : A.var_nam,
|
14077
|
+
varName: e.kgVarName
|
14078
|
+
})[0]) != null ? O : null;
|
14079
|
+
}
|
14071
14080
|
}), s = ref([]), o = computed(() => {
|
14072
14081
|
var A, O;
|
14073
14082
|
return [
|
@@ -18454,13 +18463,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18454
18463
|
setup(e) {
|
18455
18464
|
var v, p;
|
18456
18465
|
const a = (p = inject(KG__DI__FORM_ID, null)) != null ? p : (v = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null)) == null ? void 0 : v.value, r = useKg(), n = useKgVar(a), u = useKgVar(FORM_ID__TABLE__VAR_GRID_MASTER);
|
18457
|
-
u.kgSearch.onReady(async () => (
|
18458
|
-
buttonType: KG__VAR_BUTTON__TYPE.SEARCH,
|
18459
|
-
properties: {
|
18460
|
-
default_value: n.formID
|
18461
|
-
},
|
18462
|
-
varName: "frm_id"
|
18463
|
-
}), !1)), u.kgTable.onBeforeSetDatas(async ({
|
18466
|
+
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.kgTable.onBeforeSetDatas(async ({
|
18464
18467
|
datas: E
|
18465
18468
|
}) => (transformVarGridMasters(E.value), !1)), u.kgSubmit.onOpen(async () => {
|
18466
18469
|
var E, T, C, k, A, O, y, D;
|
@@ -23338,7 +23341,7 @@ const getProps$q = () => ({}), KgVarConfigModalButtonVarButton = defineComponent
|
|
23338
23341
|
}) => a.t(n).value
|
23339
23342
|
}];
|
23340
23343
|
}, rightVarProfileDetailColumns = (e) => {
|
23341
|
-
var u, s;
|
23344
|
+
var u, s, o, l;
|
23342
23345
|
const a = useKg(), r = useKgVar(e), n = useKgVar(FORM_ID__SEARCH__VAR_PROFILE_MASTER);
|
23343
23346
|
return compact([
|
23344
23347
|
{
|
@@ -23349,8 +23352,8 @@ const getProps$q = () => ({}), KgVarConfigModalButtonVarButton = defineComponent
|
|
23349
23352
|
title: "#",
|
23350
23353
|
className: "ant-table-cell--index",
|
23351
23354
|
customRender: ({
|
23352
|
-
index:
|
23353
|
-
}) =>
|
23355
|
+
index: c
|
23356
|
+
}) => c + 1
|
23354
23357
|
},
|
23355
23358
|
{
|
23356
23359
|
dataIndex: "handler",
|
@@ -23371,33 +23374,63 @@ const getProps$q = () => ({}), KgVarConfigModalButtonVarButton = defineComponent
|
|
23371
23374
|
},
|
23372
23375
|
{
|
23373
23376
|
dataIndex: "var_nam",
|
23374
|
-
width:
|
23377
|
+
width: 300,
|
23375
23378
|
title: n.t("var_text").value,
|
23376
23379
|
customRender: ({
|
23377
|
-
value:
|
23378
|
-
}) => r.t(
|
23380
|
+
value: c
|
23381
|
+
}) => r.t(c).value
|
23382
|
+
},
|
23383
|
+
{
|
23384
|
+
dataIndex: "exclude_from_where_sql_flag",
|
23385
|
+
width: 220,
|
23386
|
+
title: n.t("exclude_from_where_sql_flag").value,
|
23387
|
+
className: "input",
|
23388
|
+
customRender: ({
|
23389
|
+
record: c
|
23390
|
+
}) => createVNode(Checkbox, {
|
23391
|
+
checked: c.exclude_from_where_sql_flag === 1,
|
23392
|
+
"onUpdate:checked": (_) => c.exclude_from_where_sql_flag = _ ? 1 : 0,
|
23393
|
+
class: "kg-not-clickable"
|
23394
|
+
}, null)
|
23379
23395
|
},
|
23380
23396
|
((s = (u = a.option.value.KgSearch) == null ? void 0 : u.dynamicQuery) == null ? void 0 : s.on) !== !0 ? null : {
|
23397
|
+
dataIndex: "use_underscore_when_dynamic_query_flag",
|
23398
|
+
width: 280,
|
23399
|
+
title: n.t("use_underscore_when_dynamic_query_flag").value,
|
23400
|
+
className: "input",
|
23401
|
+
customRender: ({
|
23402
|
+
record: c
|
23403
|
+
}) => {
|
23404
|
+
var _;
|
23405
|
+
return createVNode(Checkbox, {
|
23406
|
+
checked: c.use_underscore_when_dynamic_query_flag === 1,
|
23407
|
+
"onUpdate:checked": (d) => c.use_underscore_when_dynamic_query_flag = d ? 1 : 0,
|
23408
|
+
disabled: ((_ = n.kgSubmit.formModel.value) == null ? void 0 : _.dyn_flg) !== 1,
|
23409
|
+
class: "kg-not-clickable"
|
23410
|
+
}, null);
|
23411
|
+
}
|
23412
|
+
},
|
23413
|
+
((l = (o = a.option.value.KgSearch) == null ? void 0 : o.dynamicQuery) == null ? void 0 : l.on) !== !0 ? null : {
|
23381
23414
|
dataIndex: "dft_dyn_op",
|
23382
23415
|
width: 150,
|
23383
23416
|
title: n.t("dft_dyn_op").value,
|
23384
23417
|
className: "input",
|
23385
23418
|
customRender: ({
|
23386
|
-
record:
|
23419
|
+
record: c
|
23387
23420
|
}) => {
|
23388
|
-
var
|
23389
|
-
const
|
23390
|
-
varName:
|
23421
|
+
var g, m, b;
|
23422
|
+
const d = (g = useKgVar(c.frm_id).getVarConfigControl({
|
23423
|
+
varName: c.var_nam,
|
23391
23424
|
buttonType: KG__VAR_BUTTON__TYPE.SEARCH
|
23392
|
-
})) == null ? void 0 :
|
23425
|
+
})) == null ? void 0 : g.ctrl_typ;
|
23393
23426
|
return createVNode(Select, {
|
23394
|
-
value: (
|
23395
|
-
"onUpdate:value": (
|
23427
|
+
value: (m = c.dft_dyn_op) != null ? m : void 0,
|
23428
|
+
"onUpdate:value": (v) => c.dft_dyn_op = v,
|
23396
23429
|
allowClear: !0,
|
23397
|
-
disabled: ((
|
23430
|
+
disabled: ((b = n.kgSubmit.formModel.value) == null ? void 0 : b.dyn_flg) !== 1,
|
23398
23431
|
class: "kg-not-clickable"
|
23399
23432
|
}, {
|
23400
|
-
default: () => KgVarUtil.getDynamicQueryOperatorSelectOptions(
|
23433
|
+
default: () => KgVarUtil.getDynamicQueryOperatorSelectOptions(d),
|
23401
23434
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
23402
23435
|
class: "ant-select-suffix"
|
23403
23436
|
}, null)
|
@@ -23495,13 +23528,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23495
23528
|
setup(e) {
|
23496
23529
|
var m, b;
|
23497
23530
|
const a = (b = inject(KG__DI__FORM_ID, null)) != null ? b : (m = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null)) == null ? void 0 : m.value, r = useKg(), n = useKgVar(a), u = useKgVar(FORM_ID__SEARCH__VAR_PROFILE_MASTER);
|
23498
|
-
u.kgSearch.onReady(async () => (
|
23499
|
-
buttonType: KG__VAR_BUTTON__TYPE.SEARCH,
|
23500
|
-
properties: {
|
23501
|
-
default_value: n.formID
|
23502
|
-
},
|
23503
|
-
varName: "frm_id"
|
23504
|
-
}), !1)), u.kgTable.onBeforeSetDatas(async ({
|
23531
|
+
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.kgTable.onBeforeSetDatas(async ({
|
23505
23532
|
datas: v
|
23506
23533
|
}) => (transformVarProfileMasters(v.value), !1)), u.kgSubmit.onOpen(async () => {
|
23507
23534
|
var v, p, E, T, C, k, A;
|
@@ -23539,7 +23566,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23539
23566
|
id: u.kgTable.selectedRow.value.id
|
23540
23567
|
}
|
23541
23568
|
});
|
23542
|
-
s.value = s.value.map((D) => {
|
23569
|
+
transformVarProfileMasters([O]), s.value = s.value.map((D) => {
|
23543
23570
|
var F;
|
23544
23571
|
const M = (F = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : F.find((N) => N.var_nam === D.var_nam);
|
23545
23572
|
return M ? {
|
@@ -23646,7 +23673,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23646
23673
|
class: "kg-flex-table",
|
23647
23674
|
size: "small",
|
23648
23675
|
scroll: {
|
23649
|
-
x: v === "left" ? "370px" : `${(((y = (O = r.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : y.on) !== !0 ?
|
23676
|
+
x: v === "left" ? "370px" : `${(((y = (O = r.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : y.on) !== !0 ? 1022 - 150 : 1192) + 32}px`,
|
23650
23677
|
y: "auto"
|
23651
23678
|
},
|
23652
23679
|
columns: v === "left" ? leftVarProfileDetailColumns(a) : rightVarProfileDetailColumns(a),
|
@@ -34,7 +34,8 @@ export declare type IUseKgSearch = {
|
|
34
34
|
*/
|
35
35
|
model: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
|
36
36
|
/**
|
37
|
-
* 监听事件:
|
37
|
+
* 监听事件: 查询字段初始完成, 组件渲染完成, 查询表单对象已经有值.
|
38
|
+
*
|
38
39
|
* @param listener 事件监听函数.
|
39
40
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
40
41
|
*/
|
@@ -99,7 +99,7 @@ export interface IUseKgSubmit {
|
|
99
99
|
* @param param.varProfileDetail 查询条件视图明细.
|
100
100
|
*/
|
101
101
|
getVarSubmitDetailByVarProfileDetail(param?: {
|
102
|
-
varProfileDetail: VarProfileDetail;
|
102
|
+
varProfileDetail: VarProfileDetail | null;
|
103
103
|
}): VarSubmitDetail | null;
|
104
104
|
/**
|
105
105
|
* <p>获取提交表单字段, 根据所传参数进行过滤.</p>
|
@@ -131,7 +131,7 @@ export interface IUseKgSubmitStoreGetters {
|
|
131
131
|
}) => VarSubmitConfig | null;
|
132
132
|
getVarSubmitConfigs(): (formID: string | null | undefined) => Array<VarSubmitConfig>;
|
133
133
|
getVarSubmitDetailByVarProfileDetail(): (formID: string | null | undefined, param?: {
|
134
|
-
varProfileDetail: VarProfileDetail;
|
134
|
+
varProfileDetail: VarProfileDetail | null;
|
135
135
|
}) => VarSubmitDetail | null;
|
136
136
|
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
137
137
|
buttonType?: KG__VAR_BUTTON__TYPE;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.
|
3
|
+
"version": "0.26.3-beta.1",
|
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",
|