@byteluck-fe/runtime-engine 2.0.6 → 2.0.7
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/runtime-engine.js
CHANGED
|
@@ -20553,7 +20553,7 @@ function OP(r) {
|
|
|
20553
20553
|
state: c
|
|
20554
20554
|
};
|
|
20555
20555
|
}
|
|
20556
|
-
function
|
|
20556
|
+
function t0() {
|
|
20557
20557
|
const r = te(), e = te(""), t = te(), { name: a } = Ea();
|
|
20558
20558
|
let n = te(!0), s;
|
|
20559
20559
|
if (a === "list") {
|
|
@@ -28052,13 +28052,20 @@ function op(r, e, t) {
|
|
|
28052
28052
|
}), !0;
|
|
28053
28053
|
}
|
|
28054
28054
|
}
|
|
28055
|
-
|
|
28055
|
+
class DI {
|
|
28056
|
+
pluginName = "NoPlugin";
|
|
28057
|
+
engine;
|
|
28058
|
+
apply(e) {
|
|
28059
|
+
this.engine = e;
|
|
28060
|
+
}
|
|
28061
|
+
}
|
|
28062
|
+
function LI(r, e = []) {
|
|
28056
28063
|
return e.find((t) => r.controlType === Nt.COLUMN ? t.controlId === r.id.replace(/_.*$/, "") : t.controlId === r.id);
|
|
28057
28064
|
}
|
|
28058
|
-
function
|
|
28065
|
+
function RI(r, e) {
|
|
28059
28066
|
r.id !== e.controlId || r.type !== e.type || (e.dataBind && r.props.dataBind && Object.assign(r.props.dataBind, e.dataBind), e.datasourceBind && r.props.datasourceBind && Object.assign(r.props.datasourceBind, e.datasourceBind));
|
|
28060
28067
|
}
|
|
28061
|
-
function
|
|
28068
|
+
function xI(r, e) {
|
|
28062
28069
|
const { props: t } = r;
|
|
28063
28070
|
e && Object.keys(e).forEach((a) => {
|
|
28064
28071
|
const n = a, s = e[n];
|
|
@@ -28078,19 +28085,19 @@ function eo(r, e, t) {
|
|
|
28078
28085
|
});
|
|
28079
28086
|
}
|
|
28080
28087
|
}
|
|
28081
|
-
function
|
|
28088
|
+
function VI(r, e) {
|
|
28082
28089
|
return r.find((t) => t.data_code === e);
|
|
28083
28090
|
}
|
|
28084
|
-
function
|
|
28091
|
+
function MI(r, e, t = null) {
|
|
28085
28092
|
if (e)
|
|
28086
28093
|
return r.find(
|
|
28087
28094
|
(a) => a.dataBind?.fieldCode === e && a.parentId === t
|
|
28088
28095
|
);
|
|
28089
28096
|
}
|
|
28090
|
-
function
|
|
28097
|
+
function FI(r, e, t = []) {
|
|
28091
28098
|
if (r.controlType !== "form" || !r.props.dataBind || r.props.dataBind.fieldType !== Me.RELATION_FIELD || !r.props.multistageFilling)
|
|
28092
28099
|
return;
|
|
28093
|
-
const a =
|
|
28100
|
+
const a = VI(e, r.props.dataBind.dataCode);
|
|
28094
28101
|
if (!a)
|
|
28095
28102
|
return;
|
|
28096
28103
|
const n = a.data_field_list?.filter(
|
|
@@ -28098,7 +28105,7 @@ function MI(r, e, t = []) {
|
|
|
28098
28105
|
) ?? [], s = t.find(
|
|
28099
28106
|
(u) => u.controlId === r.id
|
|
28100
28107
|
)?.parentId, o = n.map((u) => {
|
|
28101
|
-
const l =
|
|
28108
|
+
const l = MI(
|
|
28102
28109
|
t,
|
|
28103
28110
|
u.field_code,
|
|
28104
28111
|
s
|
|
@@ -28120,7 +28127,7 @@ function MI(r, e, t = []) {
|
|
|
28120
28127
|
]);
|
|
28121
28128
|
}
|
|
28122
28129
|
let Wt;
|
|
28123
|
-
const
|
|
28130
|
+
const BI = [
|
|
28124
28131
|
Lp,
|
|
28125
28132
|
Rp,
|
|
28126
28133
|
xp,
|
|
@@ -28129,8 +28136,8 @@ const FI = [
|
|
|
28129
28136
|
Fp,
|
|
28130
28137
|
Bp
|
|
28131
28138
|
].reduce((r, e) => (Object.keys(e).forEach((t) => r.push(e[t])), r), []);
|
|
28132
|
-
|
|
28133
|
-
const
|
|
28139
|
+
BI.map((r) => lr.register(r));
|
|
28140
|
+
const r0 = ({
|
|
28134
28141
|
props: r,
|
|
28135
28142
|
emit: e,
|
|
28136
28143
|
route: t,
|
|
@@ -28220,7 +28227,7 @@ const a0 = ({
|
|
|
28220
28227
|
), N = [...A.keys()][0];
|
|
28221
28228
|
Wt.set(N, A.get(N));
|
|
28222
28229
|
}
|
|
28223
|
-
Wt?.forEach(E), u.value =
|
|
28230
|
+
Wt?.forEach(E), u.value = UI(
|
|
28224
28231
|
r,
|
|
28225
28232
|
h.value,
|
|
28226
28233
|
{
|
|
@@ -28290,7 +28297,7 @@ const a0 = ({
|
|
|
28290
28297
|
PageRulePlugin: sp
|
|
28291
28298
|
};
|
|
28292
28299
|
};
|
|
28293
|
-
function
|
|
28300
|
+
function UI(r, e, t = {}, a) {
|
|
28294
28301
|
const n = [], {
|
|
28295
28302
|
state: s,
|
|
28296
28303
|
pageStatus: o,
|
|
@@ -28368,8 +28375,8 @@ function BI(r, e, t = {}, a) {
|
|
|
28368
28375
|
events: y
|
|
28369
28376
|
}
|
|
28370
28377
|
), Oa.isCopy(s.url.type) && Oa.setClearValueFieldCode(se), se.pageStatus = o;
|
|
28371
|
-
const qe =
|
|
28372
|
-
qe &&
|
|
28378
|
+
const qe = LI(se, re), nt = de(se, fe, d.split("-")[0]);
|
|
28379
|
+
qe && RI(se, qe), nt && xI(se, nt), FI(
|
|
28373
28380
|
se,
|
|
28374
28381
|
le,
|
|
28375
28382
|
re
|
|
@@ -28445,8 +28452,7 @@ function BI(r, e, t = {}, a) {
|
|
|
28445
28452
|
),
|
|
28446
28453
|
p === !0 ? new tp({
|
|
28447
28454
|
behaviors: N
|
|
28448
|
-
}) : new
|
|
28449
|
-
}(),
|
|
28455
|
+
}) : new DI(),
|
|
28450
28456
|
new ap({
|
|
28451
28457
|
displayBoList: pt?.open_page_rule !== !0 ? A : [],
|
|
28452
28458
|
behavior: Zt(N)
|
|
@@ -28476,7 +28482,7 @@ function BI(r, e, t = {}, a) {
|
|
|
28476
28482
|
// 是否开启engine调试,
|
|
28477
28483
|
debug: !!I,
|
|
28478
28484
|
externalParams: s,
|
|
28479
|
-
messagesI18n: window
|
|
28485
|
+
messagesI18n: window?.baitedaWorkers?.languageMessages?.engine || {}
|
|
28480
28486
|
};
|
|
28481
28487
|
let Ot = wt;
|
|
28482
28488
|
if (typeof l == "function") {
|
|
@@ -28486,12 +28492,12 @@ function BI(r, e, t = {}, a) {
|
|
|
28486
28492
|
const Ft = new lr(Ot), Ie = mp(Ft);
|
|
28487
28493
|
return c && (Ie.parent = c), E && E.forEach((se, qe) => {
|
|
28488
28494
|
Ie.setControlConfig(qe, se);
|
|
28489
|
-
}), Ie.rawStore.DELETE_IDS = {}, Ie.rawStore.UPDATE_IDS = {}, Ie.rawStore.formModuleList = n, Ie.mount(), Ie.store = la(Ie.store),
|
|
28495
|
+
}), Ie.rawStore.DELETE_IDS = {}, Ie.rawStore.UPDATE_IDS = {}, Ie.rawStore.formModuleList = n, Ie.mount(), Ie.store = la(Ie.store), $I(Ie), Ie.emit("dataStoreWorker:initSubtableToDB", {
|
|
28490
28496
|
instance: void 0,
|
|
28491
28497
|
value: Fe
|
|
28492
28498
|
}), Ie;
|
|
28493
28499
|
}
|
|
28494
|
-
function
|
|
28500
|
+
function $I(r) {
|
|
28495
28501
|
const e = r.externalParams.formType;
|
|
28496
28502
|
if (r.externalParams.appId, e !== 1)
|
|
28497
28503
|
return;
|
|
@@ -28545,10 +28551,10 @@ function n0(r) {
|
|
|
28545
28551
|
}
|
|
28546
28552
|
export {
|
|
28547
28553
|
nu as checkToAddFormKey,
|
|
28548
|
-
|
|
28549
|
-
|
|
28554
|
+
$I as checkToGetFormPageTitleInListPage,
|
|
28555
|
+
UI as initContext,
|
|
28550
28556
|
n0 as miniEngine,
|
|
28551
28557
|
Mc as setFormDataNew,
|
|
28552
|
-
|
|
28553
|
-
|
|
28558
|
+
t0 as useListMaster,
|
|
28559
|
+
r0 as useRenderEngine
|
|
28554
28560
|
};
|