@kengic/vue 0.30.1-beta.80 → 0.30.1-beta.81
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 +267 -156
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +7 -8
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +3 -3
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +40 -40
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +14 -14
- package/dist/src/component/KgForm/KgForm.event.d.ts +30 -30
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +10 -10
- package/dist/src/component/KgForm.Item/KgForm.Item.CheckboxGroup.d.ts +0 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +3 -9
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +6 -2
- package/dist/src/component/KgSearch/KgSearch.service.d.ts +2 -2
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +1 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +36 -36
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +12 -12
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +3 -3
- package/dist/src/component/KgVar/KgVar.d.ts +1 -0
- package/dist/src/component/KgVar/KgVar.event.d.ts +19 -14
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +3 -3
- package/dist/src/const/const.model.d.ts +38 -40
- package/dist/src/util/kg.util.d.ts +6 -6
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -168314,7 +168314,7 @@ function _interopRequireDefault(oe) {
|
|
|
168314
168314
|
return oe && oe.__esModule ? oe : { default: oe };
|
|
168315
168315
|
}
|
|
168316
168316
|
default_1 = zhTW.default = _zhCHT.default;
|
|
168317
|
-
const version = "0.30.1-beta.
|
|
168317
|
+
const version = "0.30.1-beta.81", KG = {
|
|
168318
168318
|
DB_COLUMN_TYPE: {
|
|
168319
168319
|
NCHAR: "NCHAR",
|
|
168320
168320
|
NVARCHAR: "NVARCHAR"
|
|
@@ -168433,9 +168433,14 @@ const version = "0.30.1-beta.80", KG = {
|
|
|
168433
168433
|
__KG__CUSTOM_ROW_ID__: "__KG__CUSTOM_ROW_ID__",
|
|
168434
168434
|
__KG__NULL__: "__KG__NULL__",
|
|
168435
168435
|
__KG__TABLE_TEMP_ID__: "__KG__TABLE_TEMP_ID__"
|
|
168436
|
-
}, KG_CONST = KG
|
|
168437
|
-
|
|
168438
|
-
|
|
168436
|
+
}, KG_CONST = KG, KG_APP = {
|
|
168437
|
+
SYS: "sys",
|
|
168438
|
+
WCS: "wcs",
|
|
168439
|
+
WMS_BUSINESS_MANAGER: "business-manager",
|
|
168440
|
+
WMS_DATA_MANAGER: "data-manager"
|
|
168441
|
+
};
|
|
168442
|
+
var KG_APP_PREFIX = /* @__PURE__ */ ((oe) => (oe.WMS_DATA_MANAGER = "/wms/data-manager", oe.WMS_BUSINESS_MANAGER = "/wms/business-manager", oe.WCS = "/wcs", oe.SYS = "/sys", oe))(KG_APP_PREFIX || {});
|
|
168443
|
+
const KG_APPS = [KG_APP.WMS_DATA_MANAGER, KG_APP.WMS_BUSINESS_MANAGER, KG_APP.WCS, KG_APP.SYS], KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
|
|
168439
168444
|
var KG_FORM_CONTEXT = /* @__PURE__ */ ((oe) => (oe.SEARCH = "SEARCH", oe.SUBMIT = "SUBMIT", oe.TABLE = "TABLE", oe))(KG_FORM_CONTEXT || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((oe) => (oe[oe.L0 = 0] = "L0", oe[oe.L10 = 10] = "L10", oe))(KG_CUSTOM_LEVEL || {}), KG__API_METHOD = /* @__PURE__ */ ((oe) => (oe.GET = "GET", oe.POST = "POST", oe.DELETE = "DELETE", oe.PUT = "PUT", oe))(KG__API_METHOD || {});
|
|
168440
168445
|
const KG__VAR_GRID_DETAIL__DISPLAY_TYPE = {
|
|
168441
168446
|
DESC: "DESC",
|
|
@@ -172071,14 +172076,7 @@ function decodeByBase64(oe) {
|
|
|
172071
172076
|
function encryptByMd5(oe) {
|
|
172072
172077
|
return md5Exports(oe).toString();
|
|
172073
172078
|
}
|
|
172074
|
-
const create$2 = ({
|
|
172075
|
-
prefixKey: oe = "",
|
|
172076
|
-
storage: ae = sessionStorage,
|
|
172077
|
-
key: ie = cacheCipher.key,
|
|
172078
|
-
iv: ue = cacheCipher.iv,
|
|
172079
|
-
timeout: ea = null,
|
|
172080
|
-
hasEncrypt: ta = !0
|
|
172081
|
-
} = {}) => {
|
|
172079
|
+
const create$2 = ({ prefixKey: oe = "", storage: ae = sessionStorage, key: ie = cacheCipher.key, iv: ue = cacheCipher.iv, timeout: ea = null, hasEncrypt: ta = !0 } = {}) => {
|
|
172082
172080
|
if (ta && [ie.length, ue.length].some((oa) => oa !== 16))
|
|
172083
172081
|
throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");
|
|
172084
172082
|
const na = new AesEncryption({ key: ie, iv: ue }), ra = class {
|
|
@@ -181651,11 +181649,11 @@ function emit$9(oe) {
|
|
|
181651
181649
|
parameter: ue
|
|
181652
181650
|
});
|
|
181653
181651
|
}
|
|
181654
|
-
const storeDefinitionRecord$
|
|
181652
|
+
const storeDefinitionRecord$5 = {};
|
|
181655
181653
|
function buildKgCanvasStore(oe) {
|
|
181656
181654
|
if (!oe)
|
|
181657
181655
|
throw new Error("\u6807\u8BC6\u4E0D\u80FD\u4E3A\u7A7A");
|
|
181658
|
-
return storeDefinitionRecord$
|
|
181656
|
+
return storeDefinitionRecord$5[oe] || (storeDefinitionRecord$5[oe] = defineStore(`KgCanvas[${oe}]`, () => {
|
|
181659
181657
|
let ae = null;
|
|
181660
181658
|
function ie() {
|
|
181661
181659
|
return ae;
|
|
@@ -181667,7 +181665,7 @@ function buildKgCanvasStore(oe) {
|
|
|
181667
181665
|
get$graph: ie,
|
|
181668
181666
|
set$graph: ue
|
|
181669
181667
|
};
|
|
181670
|
-
})), storeDefinitionRecord$
|
|
181668
|
+
})), storeDefinitionRecord$5[oe];
|
|
181671
181669
|
}
|
|
181672
181670
|
function useKgCanvas(oe) {
|
|
181673
181671
|
let ae = oe || inject(KG.DI.ID, "");
|
|
@@ -199278,6 +199276,46 @@ const getProps$S = () => ({
|
|
|
199278
199276
|
"onUpdate:visible": (ra) => ta.value = ra
|
|
199279
199277
|
}, null) : null]);
|
|
199280
199278
|
}
|
|
199279
|
+
}), getProps$P = () => ({
|
|
199280
|
+
kgAllowClear: {
|
|
199281
|
+
type: Boolean,
|
|
199282
|
+
default: void 0
|
|
199283
|
+
},
|
|
199284
|
+
kgContext: {
|
|
199285
|
+
type: String,
|
|
199286
|
+
default: KG_FORM_CONTEXT.SUBMIT
|
|
199287
|
+
},
|
|
199288
|
+
kgDisabled: {
|
|
199289
|
+
type: Boolean,
|
|
199290
|
+
default: void 0
|
|
199291
|
+
},
|
|
199292
|
+
kgMode: String,
|
|
199293
|
+
kgPicker: {
|
|
199294
|
+
type: String,
|
|
199295
|
+
default: void 0
|
|
199296
|
+
},
|
|
199297
|
+
kgPlaceholder: String,
|
|
199298
|
+
kgRules: Array,
|
|
199299
|
+
kgShowLabel: {
|
|
199300
|
+
type: Boolean,
|
|
199301
|
+
default: !0
|
|
199302
|
+
},
|
|
199303
|
+
kgShowTime: {
|
|
199304
|
+
type: [Boolean, Object],
|
|
199305
|
+
default: void 0
|
|
199306
|
+
},
|
|
199307
|
+
kgSpan: Number,
|
|
199308
|
+
kgVarName: {
|
|
199309
|
+
type: String,
|
|
199310
|
+
required: !0
|
|
199311
|
+
},
|
|
199312
|
+
onKgSelectChange: Function,
|
|
199313
|
+
onKgSubmit: Function,
|
|
199314
|
+
"onUpdate:value": Function,
|
|
199315
|
+
value: {
|
|
199316
|
+
type: [String, Number, Boolean, Array, Object],
|
|
199317
|
+
default: void 0
|
|
199318
|
+
}
|
|
199281
199319
|
}), OPTIONS = KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.OPTIONS, REGULAR_EXPRESSION = KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.REGULAR_EXPRESSION, ANY = KG__VAR_CONFIG_INPUT__DATA_TYPE.ANY, INTEGER = KG__VAR_CONFIG_INPUT__DATA_TYPE.INTEGER, FLOAT = KG__VAR_CONFIG_INPUT__DATA_TYPE.FLOAT, LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LETTER, UPPER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.UPPER_CASE_LETTER, LOWER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LOWER_CASE_LETTER, JSON$1 = KG__VAR_CONFIG_INPUT__DATA_TYPE.JSON;
|
|
199282
199320
|
function useFormRules(oe) {
|
|
199283
199321
|
const ae = useKg(), ie = useKgVar(), ue = computed(() => ie.store.getVarConfigInput(ie.fid, oe.kgVarName)), ea = computed(() => {
|
|
@@ -199503,47 +199541,7 @@ function useKgFormItem(oe) {
|
|
|
199503
199541
|
controlProperties$$: ta
|
|
199504
199542
|
};
|
|
199505
199543
|
}
|
|
199506
|
-
const
|
|
199507
|
-
kgAllowClear: {
|
|
199508
|
-
type: Boolean,
|
|
199509
|
-
default: void 0
|
|
199510
|
-
},
|
|
199511
|
-
kgContext: {
|
|
199512
|
-
type: String,
|
|
199513
|
-
default: KG_FORM_CONTEXT.SUBMIT
|
|
199514
|
-
},
|
|
199515
|
-
kgDisabled: {
|
|
199516
|
-
type: Boolean,
|
|
199517
|
-
default: void 0
|
|
199518
|
-
},
|
|
199519
|
-
kgMode: String,
|
|
199520
|
-
kgPicker: {
|
|
199521
|
-
type: String,
|
|
199522
|
-
default: void 0
|
|
199523
|
-
},
|
|
199524
|
-
kgPlaceholder: String,
|
|
199525
|
-
kgRules: Array,
|
|
199526
|
-
kgShowLabel: {
|
|
199527
|
-
type: Boolean,
|
|
199528
|
-
default: !0
|
|
199529
|
-
},
|
|
199530
|
-
kgShowTime: {
|
|
199531
|
-
type: [Boolean, Object],
|
|
199532
|
-
default: void 0
|
|
199533
|
-
},
|
|
199534
|
-
kgSpan: Number,
|
|
199535
|
-
kgVarName: {
|
|
199536
|
-
type: String,
|
|
199537
|
-
required: !0
|
|
199538
|
-
},
|
|
199539
|
-
onKgSelectChange: Function,
|
|
199540
|
-
onKgSubmit: Function,
|
|
199541
|
-
"onUpdate:value": Function,
|
|
199542
|
-
value: {
|
|
199543
|
-
type: [String, Number, Boolean, Array, Object],
|
|
199544
|
-
default: void 0
|
|
199545
|
-
}
|
|
199546
|
-
}), KgFormItemCheckbox = defineComponent({
|
|
199544
|
+
const KgFormItemCheckbox = defineComponent({
|
|
199547
199545
|
name: "KgFormItemCheckbox",
|
|
199548
199546
|
props: getProps$P(),
|
|
199549
199547
|
emits: ["update:value", "kgSubmit"],
|
|
@@ -209420,11 +209418,11 @@ const KgTable$1 = "", getProps$t = () => ({
|
|
|
209420
209418
|
}, null)])])]);
|
|
209421
209419
|
};
|
|
209422
209420
|
}
|
|
209423
|
-
}), storeDefinitionRecord$
|
|
209421
|
+
}), storeDefinitionRecord$4 = {};
|
|
209424
209422
|
function buildKgTableStore(oe) {
|
|
209425
209423
|
if (!oe)
|
|
209426
209424
|
throw new Error("\u754C\u9762\u6807\u8BC6\u4E0D\u80FD\u4E3A\u7A7A");
|
|
209427
|
-
return storeDefinitionRecord$
|
|
209425
|
+
return storeDefinitionRecord$4[oe] || (storeDefinitionRecord$4[oe] = defineStore(`KgTable[${oe}]`, () => {
|
|
209428
209426
|
const ae = ref$1([]), ie = ref$1(!1), ue = ref$1(!1), ea = ref$1(!1), ta = ref$1(!0), na = ref$1({}), ra = ref$1("M"), oa = ref$1([]), aa = ref$1([]), la = ref$1(0), sa = computed(() => {
|
|
209429
209427
|
var Ka;
|
|
209430
209428
|
return (Ka = ae.value) != null ? Ka : [];
|
|
@@ -209558,7 +209556,7 @@ function buildKgTableStore(oe) {
|
|
|
209558
209556
|
setTableWidth: ja,
|
|
209559
209557
|
tableWidthMap: la
|
|
209560
209558
|
};
|
|
209561
|
-
})), storeDefinitionRecord$
|
|
209559
|
+
})), storeDefinitionRecord$4[oe];
|
|
209562
209560
|
}
|
|
209563
209561
|
function useKgTable(oe) {
|
|
209564
209562
|
const ae = useKgVar(oe), ie = buildKgTableStore(ae.fid)(pinia);
|
|
@@ -210389,11 +210387,11 @@ const KgTable02$1 = "", getProps$r = () => ({
|
|
|
210389
210387
|
}, null)])])]);
|
|
210390
210388
|
};
|
|
210391
210389
|
}
|
|
210392
|
-
}), storeDefinitionRecord$
|
|
210390
|
+
}), storeDefinitionRecord$3 = {};
|
|
210393
210391
|
function buildKgTable02Store(oe) {
|
|
210394
210392
|
if (!oe)
|
|
210395
210393
|
throw new Error("\u754C\u9762\u6807\u8BC6\u4E0D\u80FD\u4E3A\u7A7A");
|
|
210396
|
-
return storeDefinitionRecord$
|
|
210394
|
+
return storeDefinitionRecord$3[oe] || (storeDefinitionRecord$3[oe] = defineStore(`KgTable02[${oe}]`, () => {
|
|
210397
210395
|
const ae = ref$1(null), ie = ref$1([]), ue = ref$1(!1), ea = ref$1(!1), ta = ref$1(!1), na = ref$1({}), ra = computed(() => {
|
|
210398
210396
|
var Ca;
|
|
210399
210397
|
return (Ca = ie.value) != null ? Ca : [];
|
|
@@ -210453,7 +210451,7 @@ function buildKgTable02Store(oe) {
|
|
|
210453
210451
|
setRequestParamRecord: $a,
|
|
210454
210452
|
tableRef: ae
|
|
210455
210453
|
};
|
|
210456
|
-
})), storeDefinitionRecord$
|
|
210454
|
+
})), storeDefinitionRecord$3[oe];
|
|
210457
210455
|
}
|
|
210458
210456
|
function useKgTable02(oe) {
|
|
210459
210457
|
const ae = useKgVar(oe), ie = buildKgTable02Store(ae.fid)(pinia);
|
|
@@ -211533,14 +211531,14 @@ const useKgVarStore = defineStore("KgVar", () => {
|
|
|
211533
211531
|
isRetrievingVarProfileMasterMap: ra,
|
|
211534
211532
|
isUpdatingRequesting: Yi,
|
|
211535
211533
|
isUpdatingRequestingMap: oa,
|
|
211536
|
-
levelMap
|
|
211534
|
+
levelMap$: aa,
|
|
211537
211535
|
patchVarButton: Mi,
|
|
211538
211536
|
patchVarGridConfig: al,
|
|
211539
211537
|
patchVarGridDetail: Rl,
|
|
211540
211538
|
patchVarGridMaster: Dl,
|
|
211541
211539
|
patchVarPossibilityCommandParameter: ji,
|
|
211542
211540
|
patchVarProfileDetail: ml,
|
|
211543
|
-
propsMap
|
|
211541
|
+
propsMap$: la,
|
|
211544
211542
|
requestAll: Tl,
|
|
211545
211543
|
setCurrentVarGridMasterID: Al,
|
|
211546
211544
|
setCurrentVarProfileMasterID: Wl,
|
|
@@ -211553,25 +211551,25 @@ const useKgVarStore = defineStore("KgVar", () => {
|
|
|
211553
211551
|
setSlots: zi,
|
|
211554
211552
|
setVarPossibility: El,
|
|
211555
211553
|
setVarProfileDetailEnable: Hl,
|
|
211556
|
-
slotsMap
|
|
211554
|
+
slotsMap$: sa,
|
|
211557
211555
|
t: ll,
|
|
211558
|
-
varButtonConfigMap
|
|
211559
|
-
varButtonMap
|
|
211560
|
-
varChildDetailMap
|
|
211561
|
-
varConfigControlMap
|
|
211556
|
+
varButtonConfigMap$: ca,
|
|
211557
|
+
varButtonMap$: ua,
|
|
211558
|
+
varChildDetailMap$: ga,
|
|
211559
|
+
varConfigControlMap$: da,
|
|
211562
211560
|
varConfigDescriptionListMap$: fa,
|
|
211563
|
-
varConfigInputMap
|
|
211564
|
-
varConfigLookupMap
|
|
211565
|
-
varConfigPossibilityMap
|
|
211566
|
-
varConfigTipMap
|
|
211567
|
-
varDdaMap
|
|
211568
|
-
varGridConfigMap
|
|
211569
|
-
varGridMasterMap
|
|
211570
|
-
varProfileConfigMap
|
|
211571
|
-
varProfileMasterMap
|
|
211572
|
-
varSubmitConfigMap
|
|
211573
|
-
varSubmitDetailMap
|
|
211574
|
-
varVariableMap
|
|
211561
|
+
varConfigInputMap$: ma,
|
|
211562
|
+
varConfigLookupMap$: va,
|
|
211563
|
+
varConfigPossibilityMap$: ha,
|
|
211564
|
+
varConfigTipMap$: $a,
|
|
211565
|
+
varDdaMap$: Ca,
|
|
211566
|
+
varGridConfigMap$: Ea,
|
|
211567
|
+
varGridMasterMap$: xa,
|
|
211568
|
+
varProfileConfigMap$: wa,
|
|
211569
|
+
varProfileMasterMap$: ka,
|
|
211570
|
+
varSubmitConfigMap$: Na,
|
|
211571
|
+
varSubmitDetailMap$: Ia,
|
|
211572
|
+
varVariableMap$: Aa
|
|
211575
211573
|
};
|
|
211576
211574
|
});
|
|
211577
211575
|
let kgTable02 = {};
|
|
@@ -211721,7 +211719,8 @@ const KgVar = defineComponent({
|
|
|
211721
211719
|
event: "onSetup",
|
|
211722
211720
|
id: ea.fid,
|
|
211723
211721
|
parameter: {
|
|
211724
|
-
|
|
211722
|
+
fid: ea.fid,
|
|
211723
|
+
props$$: computed(() => oe)
|
|
211725
211724
|
}
|
|
211726
211725
|
});
|
|
211727
211726
|
const ta = computed(() => !ea.isRequested.value || ea.kgButton.isCurrentButtonClickIntercepted ? !1 : !!ea.kgButton.currentButton && !!ea.kgSubmit.currentVarSubmitConfig.value ? !0 : (!!ea.kgButton.currentButton && !ea.kgSubmit.currentVarSubmitConfig.value && (ea.kgButton.setCurrentButton(null), notification.error({
|
|
@@ -213199,11 +213198,11 @@ const getProps$n = () => ({
|
|
|
213199
213198
|
}
|
|
213200
213199
|
})]);
|
|
213201
213200
|
}
|
|
213202
|
-
}), storeDefinitionRecord$
|
|
213201
|
+
}), storeDefinitionRecord$2 = {};
|
|
213203
213202
|
function buildKgButtonStore(oe) {
|
|
213204
213203
|
if (!oe)
|
|
213205
213204
|
throw new Error("\u754C\u9762\u6807\u8BC6\u4E0D\u80FD\u4E3A\u7A7A");
|
|
213206
|
-
return storeDefinitionRecord$
|
|
213205
|
+
return storeDefinitionRecord$2[oe] || (storeDefinitionRecord$2[oe] = defineStore(`KgButton[${oe}]`, () => {
|
|
213207
213206
|
const ae = ref$1(null), ie = ref$1({}), ue = ref$1(!1), ea = computed(() => (ma) => {
|
|
213208
213207
|
var xa;
|
|
213209
213208
|
const { varName: va } = ma != null ? ma : {}, ha = useKg(), $a = useKgVar(oe), Ca = (xa = $a.store.getVarButtonMap[oe]) == null ? void 0 : xa.find((wa) => wa.var_nam === va);
|
|
@@ -213328,7 +213327,7 @@ function buildKgButtonStore(oe) {
|
|
|
213328
213327
|
setIsClickIntercepted: da,
|
|
213329
213328
|
setIsCurrentButtonRequesting: fa
|
|
213330
213329
|
};
|
|
213331
|
-
})), storeDefinitionRecord$
|
|
213330
|
+
})), storeDefinitionRecord$2[oe];
|
|
213332
213331
|
}
|
|
213333
213332
|
function useKgButton(oe) {
|
|
213334
213333
|
const ae = useKgVar(oe), ie = buildKgButtonStore(ae.fid)(pinia);
|
|
@@ -213413,8 +213412,8 @@ function _useHeight(oe) {
|
|
|
213413
213412
|
}
|
|
213414
213413
|
function useFormModel(oe) {
|
|
213415
213414
|
const {
|
|
213416
|
-
formRef
|
|
213417
|
-
kgResizableRef
|
|
213415
|
+
formRef$: ae,
|
|
213416
|
+
kgResizableRef$: ie
|
|
213418
213417
|
} = oe != null ? oe : {}, ue = inject("$dayjs", dayjs), ea = useKgVar(), {
|
|
213419
213418
|
isVisible: ta
|
|
213420
213419
|
} = _useCommon();
|
|
@@ -213438,7 +213437,7 @@ function useFormModel(oe) {
|
|
|
213438
213437
|
varName: va
|
|
213439
213438
|
});
|
|
213440
213439
|
}
|
|
213441
|
-
ea.kgSearch.store.setFormModel(ea.fid, oa.value), ea.kgSearch.store.setDynamicQueryOperatorModel(ea.fid, aa.value), ta.value ? (ra == null || ra(), ra = watch(ae, async (ma) => {
|
|
213440
|
+
ea.kgSearch.store.setFormModel(ea.fid, oa.value), ea.kgSearch.store.setDynamicQueryOperatorModel(ea.fid, aa.value), ta.value ? (ra == null || ra(), ra = watch(() => ae.value, async (ma) => {
|
|
213442
213441
|
ma && (await emit$2({
|
|
213443
213442
|
event: "onReady",
|
|
213444
213443
|
id: ea.fid,
|
|
@@ -213486,14 +213485,14 @@ const getProps$m = () => ({
|
|
|
213486
213485
|
} = _useCommon(), na = ref$1(null), ra = ref$1(null), oa = ref$1(null), {
|
|
213487
213486
|
initFormModel: aa
|
|
213488
213487
|
} = useFormModel({
|
|
213489
|
-
kgResizableRef
|
|
213490
|
-
formRef
|
|
213488
|
+
kgResizableRef$: ra,
|
|
213489
|
+
formRef$: na
|
|
213491
213490
|
}), {
|
|
213492
213491
|
defaultHeight: la,
|
|
213493
213492
|
maxHeight: sa,
|
|
213494
213493
|
minHeight: ca
|
|
213495
213494
|
} = _useHeight({
|
|
213496
|
-
formContainerRef:
|
|
213495
|
+
formContainerRef: oa
|
|
213497
213496
|
}), ua = ref$1({
|
|
213498
213497
|
kgHeight: ca.value
|
|
213499
213498
|
}), ga = computed(() => {
|
|
@@ -213581,7 +213580,7 @@ const getProps$m = () => ({
|
|
|
213581
213580
|
ii(`${ea.fid} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
|
213582
213581
|
return;
|
|
213583
213582
|
}
|
|
213584
|
-
ta.value ? (ii(`${ea.fid} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
|
213583
|
+
ta.value ? (ii(`${ea.fid} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), na.value && na.value.validate().then(async () => {
|
|
213585
213584
|
await emit$2({
|
|
213586
213585
|
event: "onSearch",
|
|
213587
213586
|
id: ea.fid,
|
|
@@ -213599,7 +213598,7 @@ const getProps$m = () => ({
|
|
|
213599
213598
|
}
|
|
213600
213599
|
ea.kgSearch.store.setSearchFn(ea.fid, Ia);
|
|
213601
213600
|
async function Aa() {
|
|
213602
|
-
aa(), ta.value ?
|
|
213601
|
+
aa(), ta.value ? na.value && na.value.validate().then(async () => {
|
|
213603
213602
|
await emit$2({
|
|
213604
213603
|
event: "onReset",
|
|
213605
213604
|
id: ea.fid,
|
|
@@ -213704,7 +213703,7 @@ const getProps$m = () => ({
|
|
|
213704
213703
|
default: () => {
|
|
213705
213704
|
var Ka;
|
|
213706
213705
|
return [createVNode(KgForm, {
|
|
213707
|
-
ref:
|
|
213706
|
+
ref: na,
|
|
213708
213707
|
model: (Ka = ea.kgSearch.formModel.value) != null ? Ka : {},
|
|
213709
213708
|
layout: ea.kgSubmit.searchVarSubmitConfig$Layout.value,
|
|
213710
213709
|
labelCol: ka.value,
|
|
@@ -213733,7 +213732,7 @@ const getProps$m = () => ({
|
|
|
213733
213732
|
ea.kgSearch.store.dispose(ea.fid);
|
|
213734
213733
|
}), () => createVNode(KgResizable, {
|
|
213735
213734
|
"kg-form-id": ea.fid,
|
|
213736
|
-
ref:
|
|
213735
|
+
ref: ra,
|
|
213737
213736
|
kgHeight: ua.value.kgHeight,
|
|
213738
213737
|
"onUpdate:kgHeight": (ja) => ua.value.kgHeight = ja,
|
|
213739
213738
|
kgMinHeight: ca.value,
|
|
@@ -213757,7 +213756,7 @@ const getProps$m = () => ({
|
|
|
213757
213756
|
class: "ant-collapse-content ant-collapse-content-active"
|
|
213758
213757
|
}, [createVNode("div", {
|
|
213759
213758
|
class: "ant-collapse-content-box",
|
|
213760
|
-
ref:
|
|
213759
|
+
ref: oa
|
|
213761
213760
|
}, [Va()])])])])])]
|
|
213762
213761
|
});
|
|
213763
213762
|
}
|
|
@@ -213907,70 +213906,181 @@ const getProps$m = () => ({
|
|
|
213907
213906
|
resetFnMap: /* @__PURE__ */ new Map(),
|
|
213908
213907
|
searchFnMap: /* @__PURE__ */ new Map()
|
|
213909
213908
|
})
|
|
213910
|
-
});
|
|
213909
|
+
}), storeDefinitionRecord$1 = {};
|
|
213910
|
+
function buildKgSearchStore(oe) {
|
|
213911
|
+
if (!oe)
|
|
213912
|
+
throw new Error("\u754C\u9762\u6807\u8BC6\u4E0D\u80FD\u4E3A\u7A7A");
|
|
213913
|
+
return storeDefinitionRecord$1[oe] || (storeDefinitionRecord$1[oe] = defineStore(`KgSearch[${oe}]`, () => {
|
|
213914
|
+
const ae = useKgVar(oe), ie = ref$1(null), ue = ref$1(null), ea = ref$1(null), ta = ref$1(null), na = ref$1(null), ra = computed(() => {
|
|
213915
|
+
var Ea, xa, wa, ka, Na;
|
|
213916
|
+
const Ca = (Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id;
|
|
213917
|
+
if (Ca) {
|
|
213918
|
+
const Ia = ae.store.getVarProfileMasterMap[Ca];
|
|
213919
|
+
return (wa = (xa = Ia == null ? void 0 : Ia.varProfileMasters) == null ? void 0 : xa.find((Ra) => Ra.id === (Ia == null ? void 0 : Ia.currentVarProfileMasterID))) != null ? wa : null;
|
|
213920
|
+
} else {
|
|
213921
|
+
const Ia = ae.store.getVarProfileMasterMap[oe];
|
|
213922
|
+
return (Na = (ka = Ia == null ? void 0 : Ia.varProfileMasters) == null ? void 0 : ka.find((Ra) => Ra.id === (Ia == null ? void 0 : Ia.currentVarProfileMasterID))) != null ? Na : null;
|
|
213923
|
+
}
|
|
213924
|
+
}), oa = computed(() => {
|
|
213925
|
+
var Ea, xa;
|
|
213926
|
+
const Ca = (Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id;
|
|
213927
|
+
return Ca ? useKgVar(Ca).kgSearch.dynamicQueryOperatorModel.value : (xa = ie.value) != null ? xa : {};
|
|
213928
|
+
}), aa = computed(() => {
|
|
213929
|
+
var Ea, xa;
|
|
213930
|
+
const Ca = (Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id;
|
|
213931
|
+
return Ca ? useKgVar(Ca).kgSearch.formModel.value : (xa = ue.value) != null ? xa : null;
|
|
213932
|
+
}), la = computed(() => {
|
|
213933
|
+
var Ea;
|
|
213934
|
+
const Ca = ((Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id) || oe;
|
|
213935
|
+
return Ca ? useKgVar(Ca).kgSearch.isReady.value : !!ea.value;
|
|
213936
|
+
}), sa = computed(() => {
|
|
213937
|
+
var Ea;
|
|
213938
|
+
const Ca = (Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id;
|
|
213939
|
+
return Ca ? useKgVar(Ca).kgSearch.reset : ta.value;
|
|
213940
|
+
}), ca = computed(() => {
|
|
213941
|
+
var Ea;
|
|
213942
|
+
const Ca = (Ea = ae.store.getVarGridConfig(oe)) == null ? void 0 : Ea.prf_frm_id;
|
|
213943
|
+
return Ca ? useKgVar(Ca).kgSearch.search : na.value;
|
|
213944
|
+
});
|
|
213945
|
+
function ua() {
|
|
213946
|
+
const Ca = [...values$e(ae.store.getVarGridConfigMap)].filter((Ea) => (Ea == null ? void 0 : Ea.prf_frm_id) === oe).map((Ea) => Ea == null ? void 0 : Ea.frm_id).filter((Ea) => !!Ea);
|
|
213947
|
+
for (let Ea of [oe, ...Ca])
|
|
213948
|
+
ie.value = null, ue.value = null, ea.value = null, ta.value = null, na.value = null;
|
|
213949
|
+
}
|
|
213950
|
+
function ga(Ca) {
|
|
213951
|
+
return Ca ? new Promise((Ea) => {
|
|
213952
|
+
const xa = watch(
|
|
213953
|
+
() => ie.value,
|
|
213954
|
+
(wa) => {
|
|
213955
|
+
wa && setTimeout(() => {
|
|
213956
|
+
xa(), Object.entries(Ca).forEach(([ka, Na]) => {
|
|
213957
|
+
ka in wa && (wa[ka] = Na);
|
|
213958
|
+
}), Ea();
|
|
213959
|
+
});
|
|
213960
|
+
},
|
|
213961
|
+
{ immediate: !0 }
|
|
213962
|
+
);
|
|
213963
|
+
}) : Promise.resolve();
|
|
213964
|
+
}
|
|
213965
|
+
function da(Ca) {
|
|
213966
|
+
return !Ca || isEmpty$8(Ca) ? Promise.resolve() : new Promise((Ea) => {
|
|
213967
|
+
const xa = watch(
|
|
213968
|
+
() => ue.value,
|
|
213969
|
+
(wa) => {
|
|
213970
|
+
wa && !isEmpty$8(wa) && setTimeout(() => {
|
|
213971
|
+
xa(), Object.entries(Ca).forEach(([ka, Na]) => {
|
|
213972
|
+
ka in wa && (wa[ka] = Na);
|
|
213973
|
+
}), Ea();
|
|
213974
|
+
});
|
|
213975
|
+
},
|
|
213976
|
+
{ immediate: !0 }
|
|
213977
|
+
);
|
|
213978
|
+
});
|
|
213979
|
+
}
|
|
213980
|
+
function fa(Ca) {
|
|
213981
|
+
if (!Ca) {
|
|
213982
|
+
ie.value = null;
|
|
213983
|
+
return;
|
|
213984
|
+
}
|
|
213985
|
+
let Ea = Ca;
|
|
213986
|
+
isReactive(Ca) || (Ea = reactive(Ca)), ie.value = Ea;
|
|
213987
|
+
}
|
|
213988
|
+
function ma(Ca) {
|
|
213989
|
+
if (!Ca) {
|
|
213990
|
+
ue.value = null;
|
|
213991
|
+
return;
|
|
213992
|
+
}
|
|
213993
|
+
let Ea = Ca;
|
|
213994
|
+
isReactive(Ca) || (Ea = reactive(Ca)), ue.value = Ea;
|
|
213995
|
+
}
|
|
213996
|
+
function va(Ca) {
|
|
213997
|
+
ea.value = !!Ca;
|
|
213998
|
+
}
|
|
213999
|
+
function ha(Ca) {
|
|
214000
|
+
ta.value = Ca != null ? Ca : null;
|
|
214001
|
+
}
|
|
214002
|
+
function $a(Ca) {
|
|
214003
|
+
na.value = Ca != null ? Ca : null;
|
|
214004
|
+
}
|
|
214005
|
+
return {
|
|
214006
|
+
currentVarProfileMaster: ra,
|
|
214007
|
+
dispose: ua,
|
|
214008
|
+
dynamicQueryOperatorModel: oa,
|
|
214009
|
+
dynamicQueryOperatorModel$: ie,
|
|
214010
|
+
formModel: aa,
|
|
214011
|
+
formModel$: ue,
|
|
214012
|
+
isReady: la,
|
|
214013
|
+
isReady$: ea,
|
|
214014
|
+
patchDynamicQueryOperatorModel: ga,
|
|
214015
|
+
patchModel: da,
|
|
214016
|
+
resetFunction: sa,
|
|
214017
|
+
resetFunction$: ta,
|
|
214018
|
+
searchFunction: ca,
|
|
214019
|
+
searchFunction$: na,
|
|
214020
|
+
setDynamicQueryOperatorModel: fa,
|
|
214021
|
+
setFormModel: ma,
|
|
214022
|
+
setIsReady: va,
|
|
214023
|
+
setResetFunction: ha,
|
|
214024
|
+
setSearchFunction: $a
|
|
214025
|
+
};
|
|
214026
|
+
})), storeDefinitionRecord$1[oe];
|
|
214027
|
+
}
|
|
213911
214028
|
function useKgSearch(oe) {
|
|
213912
|
-
const ae = useKgVar(oe), ie =
|
|
213913
|
-
|
|
213914
|
-
|
|
213915
|
-
|
|
213916
|
-
|
|
213917
|
-
|
|
213918
|
-
|
|
213919
|
-
|
|
213920
|
-
|
|
213921
|
-
|
|
213922
|
-
|
|
213923
|
-
|
|
213924
|
-
|
|
214029
|
+
const ae = useKgVar(oe), ie = buildKgSearchStore(oe)(pinia), ue = useKgSearchStore(pinia);
|
|
214030
|
+
return new Proxy(
|
|
214031
|
+
{
|
|
214032
|
+
currentVarProfileDetails: computed(() => {
|
|
214033
|
+
var ea, ta;
|
|
214034
|
+
return (ta = (ea = ue.getCurrentVarProfileMaster(ae.fid)) == null ? void 0 : ea.varProfileDetails) != null ? ta : [];
|
|
214035
|
+
}),
|
|
214036
|
+
currentVarProfileDetailsForVisible: computed(
|
|
214037
|
+
() => {
|
|
214038
|
+
var ea, ta, na;
|
|
214039
|
+
return (na = (ta = (ea = ue.getCurrentVarProfileMaster(ae.fid)) == null ? void 0 : ea.varProfileDetails) == null ? void 0 : ta.filter((ra) => {
|
|
214040
|
+
const oa = ae.kgSubmit.getVarSubmitDetailByVarProfileDetail({ varProfileDetail: ra });
|
|
214041
|
+
return (oa == null ? void 0 : oa.visible_flag) !== 0;
|
|
214042
|
+
})) != null ? na : [];
|
|
213925
214043
|
}
|
|
214044
|
+
),
|
|
214045
|
+
currentVarProfileMaster: computed(() => ue.getCurrentVarProfileMaster(ae.fid)),
|
|
214046
|
+
dynamicQueryOperatorModel: computed(() => ue.getDynamicQueryOperatorModel(ae.fid)),
|
|
214047
|
+
eventListeners: eventListeners$2,
|
|
214048
|
+
formID: ae.fid,
|
|
214049
|
+
formModel: computed(() => ue.getFormModel(ae.fid)),
|
|
214050
|
+
isReady: computed(() => ue.getIsReady(ae.fid)),
|
|
214051
|
+
model: computed(() => ue.getFormModel(ae.fid)),
|
|
214052
|
+
onReady: kgOnEventFactory({ eventListeners: eventListeners$2, event: "onReady", id: ae.fid }),
|
|
214053
|
+
onReset: kgOnEventFactory({ eventListeners: eventListeners$2, event: "onReset", id: ae.fid }),
|
|
214054
|
+
onSearch: kgOnEventFactory({ eventListeners: eventListeners$2, event: "onSearch", id: ae.fid }),
|
|
214055
|
+
reset() {
|
|
214056
|
+
var ea;
|
|
214057
|
+
return (ea = ue.getResetFn(ae.fid)) == null ? void 0 : ea();
|
|
214058
|
+
},
|
|
214059
|
+
search(ea) {
|
|
214060
|
+
const ta = watch(
|
|
214061
|
+
() => ue.getIsReady(ae.fid),
|
|
214062
|
+
async (na) => {
|
|
214063
|
+
if (na) {
|
|
214064
|
+
setTimeout(() => ta());
|
|
214065
|
+
const ra = ue.getSearchFn(ae.fid);
|
|
214066
|
+
if (!ra) {
|
|
214067
|
+
Ne(`${ae.fid} | useKgSearch | search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.`);
|
|
214068
|
+
return;
|
|
214069
|
+
}
|
|
214070
|
+
typeof ea == "boolean" ? (ui(`${ae.fid} | useKgSearch | search() | \u65E7\u7684\u53C2\u6570\u683C\u5F0F\u5DF2\u5F03\u7528, \u8BF7\u4F7F\u7528\u65B0\u7684\u53C2\u6570\u683C\u5F0F.`), ra({ isSearchFirstPage: ea })) : ra(ea);
|
|
214071
|
+
}
|
|
214072
|
+
},
|
|
214073
|
+
{ immediate: !0 }
|
|
214074
|
+
);
|
|
213926
214075
|
},
|
|
213927
|
-
|
|
213928
|
-
|
|
213929
|
-
|
|
213930
|
-
|
|
213931
|
-
|
|
213932
|
-
return (na = ie.getResetFn(ae.fid)) == null ? void 0 : na();
|
|
213933
|
-
}
|
|
213934
|
-
return {
|
|
213935
|
-
currentVarProfileDetails: computed(() => {
|
|
213936
|
-
var na, ra;
|
|
213937
|
-
return (ra = (na = ie.getCurrentVarProfileMaster(ae.fid)) == null ? void 0 : na.varProfileDetails) != null ? ra : [];
|
|
213938
|
-
}),
|
|
213939
|
-
currentVarProfileDetailsForVisible: computed(
|
|
213940
|
-
() => {
|
|
213941
|
-
var na, ra, oa;
|
|
213942
|
-
return (oa = (ra = (na = ie.getCurrentVarProfileMaster(ae.fid)) == null ? void 0 : na.varProfileDetails) == null ? void 0 : ra.filter((aa) => {
|
|
213943
|
-
const la = ae.kgSubmit.getVarSubmitDetailByVarProfileDetail({ varProfileDetail: aa });
|
|
213944
|
-
return (la == null ? void 0 : la.visible_flag) !== 0;
|
|
213945
|
-
})) != null ? oa : [];
|
|
214076
|
+
store: ue
|
|
214077
|
+
},
|
|
214078
|
+
{
|
|
214079
|
+
get(ea, ta) {
|
|
214080
|
+
return !(ta in ea) && ta in ie ? Reflect.get(ie, ta) : Reflect.get(ea, ta);
|
|
213946
214081
|
}
|
|
213947
|
-
|
|
213948
|
-
|
|
213949
|
-
dynamicQueryOperatorModel: computed(() => ie.getDynamicQueryOperatorModel(ae.fid)),
|
|
213950
|
-
eventListeners: eventListeners$2,
|
|
213951
|
-
formID: ae.fid,
|
|
213952
|
-
formModel: computed(() => ie.getFormModel(ae.fid)),
|
|
213953
|
-
isReady: ue,
|
|
213954
|
-
model: computed(() => ie.getFormModel(ae.fid)),
|
|
213955
|
-
onReady: kgOnEventFactory({
|
|
213956
|
-
eventListeners: eventListeners$2,
|
|
213957
|
-
event: "onReady",
|
|
213958
|
-
id: ae.fid
|
|
213959
|
-
}),
|
|
213960
|
-
onReset: kgOnEventFactory({
|
|
213961
|
-
eventListeners: eventListeners$2,
|
|
213962
|
-
event: "onReset",
|
|
213963
|
-
id: ae.fid
|
|
213964
|
-
}),
|
|
213965
|
-
onSearch: kgOnEventFactory({
|
|
213966
|
-
eventListeners: eventListeners$2,
|
|
213967
|
-
event: "onSearch",
|
|
213968
|
-
id: ae.fid
|
|
213969
|
-
}),
|
|
213970
|
-
reset: ta,
|
|
213971
|
-
search: ea,
|
|
213972
|
-
store: ie
|
|
213973
|
-
};
|
|
214082
|
+
}
|
|
214083
|
+
);
|
|
213974
214084
|
}
|
|
213975
214085
|
var zhCn = {
|
|
213976
214086
|
name: "zh-cn",
|
|
@@ -223968,6 +224078,7 @@ export {
|
|
|
223968
224078
|
addResizeListener,
|
|
223969
224079
|
buildBEM,
|
|
223970
224080
|
buildKgButtonStore,
|
|
224081
|
+
buildKgSearchStore,
|
|
223971
224082
|
buildKgSimulatorStore,
|
|
223972
224083
|
buildKgTableStore,
|
|
223973
224084
|
buildProp,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { KG_APP } from '../../const';
|
|
3
2
|
import './KgAppSelect.less';
|
|
4
3
|
export declare const getProps: () => {
|
|
5
4
|
/** 模块列表. */
|
|
6
5
|
kgApps: {
|
|
7
6
|
type: PropType<{
|
|
8
|
-
id:
|
|
7
|
+
id: string;
|
|
9
8
|
i18n: string;
|
|
10
9
|
}[]>;
|
|
11
10
|
default: () => Array<{
|
|
12
|
-
id:
|
|
11
|
+
id: string;
|
|
13
12
|
i18n: string;
|
|
14
13
|
}>;
|
|
15
14
|
};
|
|
@@ -18,11 +17,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
17
|
/** 模块列表. */
|
|
19
18
|
kgApps: {
|
|
20
19
|
type: PropType<{
|
|
21
|
-
id:
|
|
20
|
+
id: string;
|
|
22
21
|
i18n: string;
|
|
23
22
|
}[]>;
|
|
24
23
|
default: () => {
|
|
25
|
-
id:
|
|
24
|
+
id: string;
|
|
26
25
|
i18n: string;
|
|
27
26
|
}[];
|
|
28
27
|
};
|
|
@@ -30,17 +29,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
29
|
/** 模块列表. */
|
|
31
30
|
kgApps: {
|
|
32
31
|
type: PropType<{
|
|
33
|
-
id:
|
|
32
|
+
id: string;
|
|
34
33
|
i18n: string;
|
|
35
34
|
}[]>;
|
|
36
35
|
default: () => {
|
|
37
|
-
id:
|
|
36
|
+
id: string;
|
|
38
37
|
i18n: string;
|
|
39
38
|
}[];
|
|
40
39
|
};
|
|
41
40
|
}>>, {
|
|
42
41
|
kgApps: {
|
|
43
|
-
id:
|
|
42
|
+
id: string;
|
|
44
43
|
i18n: string;
|
|
45
44
|
}[];
|
|
46
45
|
}>;
|