@byteluck-fe/runtime-mobile-controls 2.0.22 → 2.0.25
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-mobile-controls.js +292 -294
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as ay from "vue";
|
|
2
|
-
import { ref as L, reactive as zt, readonly as ny, provide as Zt, inject as we, unref as i, onUnmounted as Pa, shallowRef as ct, onBeforeUnmount as Ko, toRaw as
|
|
2
|
+
import { ref as L, reactive as zt, readonly as ny, provide as Zt, inject as we, unref as i, onUnmounted as Pa, shallowRef as ct, onBeforeUnmount as Ko, toRaw as kt, computed as D, isRef as Ze, watch as ye, nextTick as De, getCurrentInstance as Sn, isProxy as ci, onBeforeUpdate as sy, watchEffect as fl, toRefs as Mo, onMounted as mt, onBeforeMount as oy, createVNode as K, defineComponent as ue, resolveComponent as J, resolveDirective as zd, withDirectives as Ke, openBlock as C, createElementBlock as j, normalizeClass as fe, createElementVNode as E, Fragment as he, renderList as Ae, createBlock as X, resolveDynamicComponent as ke, withCtx as Q, createTextVNode as je, toDisplayString as Z, createCommentVNode as oe, withModifiers as pt, normalizeStyle as Ia, vShow as et, pushScopeId as qe, popScopeId as Be, toRef as jn, createSlots as fa, renderSlot as Ua, normalizeProps as ya, guardReactiveProps as Ra, defineAsyncComponent as _c, h as Os, effectScope as Fd, markRaw as dn, hasInjectionContext as ry, isReactive as ml, getCurrentScope as iy, onScopeDispose as ly, shallowReactive as cy, useAttrs as Xo, mergeProps as va, Teleport as qd, render as Sc, isVNode as uy, cloneVNode as Bd } from "vue";
|
|
3
3
|
import { useStore as qt, createStore as dy } from "vuex";
|
|
4
|
-
import py, { omit as fy, isUndefined as my, get as Ds, debounce as Ca, isEqual as xa, isNil as
|
|
4
|
+
import py, { omit as fy, isUndefined as my, get as Ds, debounce as Ca, isEqual as xa, isNil as Nt, cloneDeep as Qt, isArray as Yt, throttle as er, keyBy as Wn, uniqBy as an, uniq as Ud, once as hy, map as Ao, mapValues as yy, isEmpty as vy, keys as Gs, merge as gy, set as by, isNull as Hd, take as wy } from "lodash";
|
|
5
5
|
import le from "moment";
|
|
6
6
|
import * as Ic from "@byteluck-fe/global-shared";
|
|
7
|
-
import { client as Ne, isDef as en, getFetch as Sa, CacheManager as _y, path as
|
|
7
|
+
import { client as Ne, isDef as en, getFetch as Sa, CacheManager as _y, path as ma, getCustomRequestHeader as tr, isArray as Ht, isString as It, ModelFieldTypes as Je, cacheManager as Xe, isEmpty as Gt, isNumber as hl, isObject as yl, buildUUID as ui, getBrowserType as vl, isFunction as Sy, formatDisplayData as Iy, HttpCodes as Oo, customUpdateCurrentTab as Ty } from "@byteluck-fe/global-shared";
|
|
8
8
|
import * as Py from "@byteluck-fe/locale-message";
|
|
9
9
|
import { getLocaleText as B, LocaleEnum as mo, getPlaceholder as di, getLabel as Tc } from "@byteluck-fe/locale-message";
|
|
10
10
|
import * as Pc from "@byteluck-fe/model-driven-core-all";
|
|
11
|
-
import { FieldTypes as St, loadRemoteControl as Gd, loadRemoteControls as Cy, loadScriptFromFetch as ky, loadScriptFromTag as My, nativeFetch as Wd, debounce as Ay, CONTROL_TYPE as M, OptionSetting as Oy, DataBind as Dy, ObjectDataBind as Ey, PAGE_STATUS as lt, camelizeKeys as Wt, CONTROL_BASE_TYPE as Ha, isArray as Ny, isDataBind as ka, JSONCopy as Ie, decamelizeKeys as Ue, OperationButton as Ly, isPlainObject as gl, DataSourceBind as Ry, FieldFilterConditions as xy, DATE_CONFIG_TYPE as Cc, DATE_LIMIT_TYPE as Ws, OrganizeType as Nn, DepartmentType as Yd, TitleConfigEnum as
|
|
11
|
+
import { FieldTypes as St, loadRemoteControl as Gd, loadRemoteControls as Cy, loadScriptFromFetch as ky, loadScriptFromTag as My, nativeFetch as Wd, debounce as Ay, CONTROL_TYPE as M, OptionSetting as Oy, DataBind as Dy, ObjectDataBind as Ey, PAGE_STATUS as lt, camelizeKeys as Wt, CONTROL_BASE_TYPE as Ha, isArray as Ny, isDataBind as ka, JSONCopy as Ie, decamelizeKeys as Ue, OperationButton as Ly, isPlainObject as gl, DataSourceBind as Ry, FieldFilterConditions as xy, DATE_CONFIG_TYPE as Cc, DATE_LIMIT_TYPE as Ws, OrganizeType as Nn, DepartmentType as Yd, TitleConfigEnum as da, logerror as jy, log as Zd, error as Vy, FORM_TYPE as Hn, EventLogic as Qd, DataSourceParamItem as zy, DataSourceOrderItem as Fy, genNonDuplicateId as qy, CALC_TOKEN_TYPE as Fa, CALC_AGGREGATE_TYPE as Ys, MultistageFillingItem as By, DisplayBoListItem as Uy, baseControls as Hy, formControls as Gy, layoutControls as Wy, listControls as Yy, columnControls as Zy, searchControls as Qy, wrapControls as $y, registerCustomControls as kc, registerByteluckControls as Jy, VersionBuilder as $d, upgradeCustomControlSchema as Ky, RulesMessage as Xy, SCORE_TYPE as sa } from "@byteluck-fe/model-driven-core-all";
|
|
12
12
|
import * as Mc from "@byteluck-fe/model-driven-engine";
|
|
13
13
|
import { loopDataViewControl as ev, parseModule as Ac, Engine as Do, ES6ModulePlugin as tv, LifecycleEventPlugin as av, ControlsEventPlugin as nv, StylePlugin as sv } from "@byteluck-fe/model-driven-engine";
|
|
14
14
|
import { defineInstance as ov, createBaseFields as rv, createFormBaseFields as iv } from "@byteluck-fe/model-driven-settings";
|
|
@@ -199,11 +199,11 @@ function Tv(e = "resize") {
|
|
|
199
199
|
const t = new Event(e);
|
|
200
200
|
window.dispatchEvent(t);
|
|
201
201
|
}
|
|
202
|
-
const
|
|
202
|
+
const Ct = () => {
|
|
203
203
|
let e = !1;
|
|
204
204
|
return e = Ne.isPc(), window.location.pathname.indexOf("/mobile/preview") > -1 && (e = !1), e;
|
|
205
205
|
}, sp = () => window.navigator.userAgent.match(/(iPhone)/i), Lo = () => navigator.userAgent.toLowerCase().match(/MicroMessenger/i)?.[0] === "micromessenger";
|
|
206
|
-
function
|
|
206
|
+
function Dt(e, t, a, n = 1) {
|
|
207
207
|
Ne.isPc() ? e === "success" ? Me.config.globalProperties.$message.success({
|
|
208
208
|
content: t,
|
|
209
209
|
duration: n,
|
|
@@ -232,7 +232,7 @@ function Zn(e) {
|
|
|
232
232
|
function Qn(e) {
|
|
233
233
|
const t = ct(e.props);
|
|
234
234
|
return Zn((n) => {
|
|
235
|
-
|
|
235
|
+
kt(n.instance) === kt(e) && (t.value = { ...n.instance.props });
|
|
236
236
|
}), t;
|
|
237
237
|
}
|
|
238
238
|
var $t = /* @__PURE__ */ ((e) => (e.datetime = "YYYY-MM-DD HH:mm:ss", e.datemin = "YYYY-MM-DD HH:mm", e.datehour = "YYYY-MM-DD HH", e.date = "YYYY-MM-DD", e.month = "YYYY-MM", e.year = "YYYY", e))($t || {});
|
|
@@ -437,7 +437,7 @@ const Mv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
437
437
|
loadScriptFromFetch: ky,
|
|
438
438
|
loadScriptFromTag: My,
|
|
439
439
|
nativeFetch: Wd,
|
|
440
|
-
path:
|
|
440
|
+
path: ma
|
|
441
441
|
}, Symbol.toStringTag, { value: "Module" })), Av = "context";
|
|
442
442
|
function Ov(e) {
|
|
443
443
|
Zt(Av, e);
|
|
@@ -462,7 +462,7 @@ function rp(e) {
|
|
|
462
462
|
function ip(e) {
|
|
463
463
|
const t = ct(e.props);
|
|
464
464
|
return rp((a) => {
|
|
465
|
-
|
|
465
|
+
kt(a.instance) === kt(e) && (t.value = { ...a.instance.props });
|
|
466
466
|
}), t;
|
|
467
467
|
}
|
|
468
468
|
function lp() {
|
|
@@ -787,22 +787,22 @@ const { toString: xv } = Object.prototype, { getPrototypeOf: _l } = Object, or =
|
|
|
787
787
|
return e[a] || (e[a] = a.slice(8, -1).toLowerCase());
|
|
788
788
|
})(/* @__PURE__ */ Object.create(null)), Ma = (e) => (e = e.toLowerCase(), (t) => or(t) === e), rr = (e) => (t) => typeof t === e, { isArray: Jn } = Array, Es = rr("undefined");
|
|
789
789
|
function jv(e) {
|
|
790
|
-
return e !== null && !Es(e) && e.constructor !== null && !Es(e.constructor) &&
|
|
790
|
+
return e !== null && !Es(e) && e.constructor !== null && !Es(e.constructor) && ra(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
791
791
|
}
|
|
792
792
|
const fp = Ma("ArrayBuffer");
|
|
793
793
|
function Vv(e) {
|
|
794
794
|
let t;
|
|
795
795
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && fp(e.buffer), t;
|
|
796
796
|
}
|
|
797
|
-
const zv = rr("string"),
|
|
797
|
+
const zv = rr("string"), ra = rr("function"), mp = rr("number"), ir = (e) => e !== null && typeof e == "object", Fv = (e) => e === !0 || e === !1, ho = (e) => {
|
|
798
798
|
if (or(e) !== "object")
|
|
799
799
|
return !1;
|
|
800
800
|
const t = _l(e);
|
|
801
801
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
802
|
-
}, qv = Ma("Date"), Bv = Ma("File"), Uv = Ma("Blob"), Hv = Ma("FileList"), Gv = (e) => ir(e) &&
|
|
802
|
+
}, qv = Ma("Date"), Bv = Ma("File"), Uv = Ma("Blob"), Hv = Ma("FileList"), Gv = (e) => ir(e) && ra(e.pipe), Wv = (e) => {
|
|
803
803
|
let t;
|
|
804
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
805
|
-
t === "object" &&
|
|
804
|
+
return e && (typeof FormData == "function" && e instanceof FormData || ra(e.append) && ((t = or(e)) === "formdata" || // detect form-data instance
|
|
805
|
+
t === "object" && ra(e.toString) && e.toString() === "[object FormData]"));
|
|
806
806
|
}, Yv = Ma("URLSearchParams"), [Zv, Qv, $v, Jv] = ["ReadableStream", "Request", "Response", "Headers"].map(Ma), Kv = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
807
807
|
function qs(e, t, { allOwnKeys: a = !1 } = {}) {
|
|
808
808
|
if (e === null || typeof e > "u")
|
|
@@ -838,7 +838,7 @@ function vi() {
|
|
|
838
838
|
return t;
|
|
839
839
|
}
|
|
840
840
|
const Xv = (e, t, a, { allOwnKeys: n } = {}) => (qs(t, (s, o) => {
|
|
841
|
-
a &&
|
|
841
|
+
a && ra(s) ? e[o] = pp(s, a) : e[o] = s;
|
|
842
842
|
}, { allOwnKeys: n }), e), eg = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), tg = (e, t, a, n) => {
|
|
843
843
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
844
844
|
value: t.prototype
|
|
@@ -896,10 +896,10 @@ const Xv = (e, t, a, { allOwnKeys: n } = {}) => (qs(t, (s, o) => {
|
|
|
896
896
|
}), Object.defineProperties(e, n);
|
|
897
897
|
}, dg = (e) => {
|
|
898
898
|
vp(e, (t, a) => {
|
|
899
|
-
if (
|
|
899
|
+
if (ra(e) && ["arguments", "caller", "callee"].indexOf(a) !== -1)
|
|
900
900
|
return !1;
|
|
901
901
|
const n = e[a];
|
|
902
|
-
if (
|
|
902
|
+
if (ra(n)) {
|
|
903
903
|
if (t.enumerable = !1, "writable" in t) {
|
|
904
904
|
t.writable = !1;
|
|
905
905
|
return;
|
|
@@ -929,7 +929,7 @@ const Xv = (e, t, a, { allOwnKeys: n } = {}) => (qs(t, (s, o) => {
|
|
|
929
929
|
return a;
|
|
930
930
|
};
|
|
931
931
|
function yg(e) {
|
|
932
|
-
return !!(e &&
|
|
932
|
+
return !!(e && ra(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
933
933
|
}
|
|
934
934
|
const vg = (e) => {
|
|
935
935
|
const t = new Array(10), a = (n, s) => {
|
|
@@ -948,13 +948,13 @@ const vg = (e) => {
|
|
|
948
948
|
return n;
|
|
949
949
|
};
|
|
950
950
|
return a(e, 0);
|
|
951
|
-
}, gg = Ma("AsyncFunction"), bg = (e) => e && (ir(e) ||
|
|
951
|
+
}, gg = Ma("AsyncFunction"), bg = (e) => e && (ir(e) || ra(e)) && ra(e.then) && ra(e.catch), bp = ((e, t) => e ? setImmediate : t ? ((a, n) => (pn.addEventListener("message", ({ source: s, data: o }) => {
|
|
952
952
|
s === pn && o === a && n.length && n.shift()();
|
|
953
953
|
}, !1), (s) => {
|
|
954
954
|
n.push(s), pn.postMessage(a, "*");
|
|
955
955
|
}))(`axios@${Math.random()}`, []) : (a) => setTimeout(a))(
|
|
956
956
|
typeof setImmediate == "function",
|
|
957
|
-
|
|
957
|
+
ra(pn.postMessage)
|
|
958
958
|
), wg = typeof queueMicrotask < "u" ? queueMicrotask.bind(pn) : typeof process < "u" && process.nextTick || bp, pe = {
|
|
959
959
|
isArray: Jn,
|
|
960
960
|
isArrayBuffer: fp,
|
|
@@ -975,7 +975,7 @@ const vg = (e) => {
|
|
|
975
975
|
isFile: Bv,
|
|
976
976
|
isBlob: Uv,
|
|
977
977
|
isRegExp: ug,
|
|
978
|
-
isFunction:
|
|
978
|
+
isFunction: ra,
|
|
979
979
|
isStream: Gv,
|
|
980
980
|
isURLSearchParams: Yv,
|
|
981
981
|
isTypedArray: og,
|
|
@@ -2534,7 +2534,7 @@ function hb(e, t, a, n) {
|
|
|
2534
2534
|
}, e.rawStore.IQueryInfo = JSON.stringify(o);
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function pa(e, t, a) {
|
|
2538
2538
|
const n = t;
|
|
2539
2539
|
if (e !== void 0) {
|
|
2540
2540
|
const s = JSON.parse(e.rawStore.IQueryInfo ?? "{}");
|
|
@@ -2544,7 +2544,7 @@ function fa(e, t, a) {
|
|
|
2544
2544
|
} : [];
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
|
-
const
|
|
2547
|
+
const Lt = (e, t = 300) => {
|
|
2548
2548
|
const a = setTimeout(async () => {
|
|
2549
2549
|
e && await e(), clearTimeout(a);
|
|
2550
2550
|
}, t);
|
|
@@ -11645,7 +11645,7 @@ const Fp = Object.freeze([
|
|
|
11645
11645
|
}
|
|
11646
11646
|
}, go = async (e, t, a) => {
|
|
11647
11647
|
let n = e instanceof Element ? e : document.querySelector(e), s = null;
|
|
11648
|
-
a !== void 0 && (n = e instanceof Element ? e : document.querySelectorAll(e)[a]), s = n?.getBoundingClientRect(), s && (
|
|
11648
|
+
a !== void 0 && (n = e instanceof Element ? e : document.querySelectorAll(e)[a]), s = n?.getBoundingClientRect(), s && (Ct() ? n?.scrollIntoView({
|
|
11649
11649
|
block: "center",
|
|
11650
11650
|
inline: "end",
|
|
11651
11651
|
behavior: s.left >= 1200 ? "auto" : "smooth"
|
|
@@ -11836,7 +11836,7 @@ async function Hp(e) {
|
|
|
11836
11836
|
e.setLoading && e.setLoading(!0);
|
|
11837
11837
|
const t = e.context.externalParams?.data?.form_config?.sub_table_async;
|
|
11838
11838
|
let a;
|
|
11839
|
-
t === !0 ? a = await zb(e) : a = await Vb(e), e.setLoading &&
|
|
11839
|
+
t === !0 ? a = await zb(e) : a = await Vb(e), e.setLoading && Lt(() => e.setLoading(!1), 300), await i(e.context)?.emit("custom:beforeEngineMounted", {
|
|
11840
11840
|
value: Ie(a.dataSet)
|
|
11841
11841
|
}), await i(e.context)?.emit("run-page-did-mounted", {}), await i(e.context)?.emit("engine-mounted", {
|
|
11842
11842
|
value: Ie(a.dataSet)
|
|
@@ -11890,7 +11890,7 @@ async function Vb(e) {
|
|
|
11890
11890
|
value: l.dataSet
|
|
11891
11891
|
}), await i(t)?.emit("engine-initialized", {
|
|
11892
11892
|
value: l.dataSet
|
|
11893
|
-
}), i(t).setData(l.dataSet),
|
|
11893
|
+
}), i(t).setData(l.dataSet), Lt(() => {
|
|
11894
11894
|
De(() => {
|
|
11895
11895
|
i(t)?.emit("custom:setSearchCache", { value: !1 });
|
|
11896
11896
|
});
|
|
@@ -11950,7 +11950,7 @@ async function zb(e) {
|
|
|
11950
11950
|
value: o.dataSet
|
|
11951
11951
|
}), await i(t)?.emit("engine-initialized", {
|
|
11952
11952
|
value: o.dataSet
|
|
11953
|
-
}), i(t).setData(o.dataSet),
|
|
11953
|
+
}), i(t).setData(o.dataSet), Lt(() => {
|
|
11954
11954
|
De(() => {
|
|
11955
11955
|
i(t)?.emit("custom:setSearchCache", { value: !1 });
|
|
11956
11956
|
});
|
|
@@ -11983,7 +11983,7 @@ function Ja(e, t, a, n, s) {
|
|
|
11983
11983
|
rightVariableBo: { type: u, value: c }
|
|
11984
11984
|
} = l;
|
|
11985
11985
|
u === "form" && c.forEach((d) => {
|
|
11986
|
-
const p =
|
|
11986
|
+
const p = kt(e.getDataBind(d));
|
|
11987
11987
|
if (!p)
|
|
11988
11988
|
return;
|
|
11989
11989
|
let f;
|
|
@@ -13400,7 +13400,7 @@ const Ln = () => [
|
|
|
13400
13400
|
col: 3,
|
|
13401
13401
|
time: [
|
|
13402
13402
|
+le().startOf("month").subtract(1, "months"),
|
|
13403
|
-
+le(
|
|
13403
|
+
+le().startOf("month").subtract(1, "day")
|
|
13404
13404
|
]
|
|
13405
13405
|
},
|
|
13406
13406
|
{
|
|
@@ -14450,7 +14450,7 @@ function x_(e) {
|
|
|
14450
14450
|
if (h.value = O, i(o) !== void 0) {
|
|
14451
14451
|
const x = k.getState(O.id) || {};
|
|
14452
14452
|
k.setState(O?.id, {
|
|
14453
|
-
...
|
|
14453
|
+
...kt(x),
|
|
14454
14454
|
selectedRowKeys: A || []
|
|
14455
14455
|
});
|
|
14456
14456
|
}
|
|
@@ -14644,7 +14644,7 @@ function zl() {
|
|
|
14644
14644
|
return we(Jp, null);
|
|
14645
14645
|
}
|
|
14646
14646
|
function Kp(e) {
|
|
14647
|
-
if (
|
|
14647
|
+
if (Nt(e?.children))
|
|
14648
14648
|
return ct([]);
|
|
14649
14649
|
const t = ct(
|
|
14650
14650
|
e.children.filter((a) => !a.props.isHide)
|
|
@@ -14678,7 +14678,7 @@ function ga(e, t = { lazyCount: 10 }) {
|
|
|
14678
14678
|
i(s)?.getInstance(f, m)?.props
|
|
14679
14679
|
), l = (f, m) => {
|
|
14680
14680
|
const y = i(s)?.getState("DISPLAY"), h = f.props ?? {};
|
|
14681
|
-
if (!
|
|
14681
|
+
if (!Nt(h.dataBind)) {
|
|
14682
14682
|
if (ka(h.dataBind)) {
|
|
14683
14683
|
const v = h.dataBind.dataCode, g = h.dataBind.fieldCode;
|
|
14684
14684
|
return m === void 0 ? y[v]?.[g] : y[v]?.[m]?.[g];
|
|
@@ -14919,7 +14919,7 @@ function at(e, t, a, n) {
|
|
|
14919
14919
|
isApproval: v
|
|
14920
14920
|
};
|
|
14921
14921
|
}
|
|
14922
|
-
function
|
|
14922
|
+
function la(e) {
|
|
14923
14923
|
const t = we("context");
|
|
14924
14924
|
i(t)?.isMounted ? e() : ft("engine-mounted", e);
|
|
14925
14925
|
}
|
|
@@ -14951,7 +14951,7 @@ function Bs(e) {
|
|
|
14951
14951
|
const k = L([]), O = D(
|
|
14952
14952
|
() => e.instance.type === "select-multiple" || e.instance.type === "select"
|
|
14953
14953
|
), A = (H) => {
|
|
14954
|
-
const G =
|
|
14954
|
+
const G = kt(H), W = typeof G == "string" && G && G !== "" ? [G] : G;
|
|
14955
14955
|
if (W)
|
|
14956
14956
|
for (let te = 0; te < W.length; te++) {
|
|
14957
14957
|
const ne = i(_).filter((ee) => ee.value === W[te]);
|
|
@@ -15047,7 +15047,7 @@ function Bs(e) {
|
|
|
15047
15047
|
!0
|
|
15048
15048
|
);
|
|
15049
15049
|
};
|
|
15050
|
-
return Z1(e.instance, q),
|
|
15050
|
+
return Z1(e.instance, q), la(() => {
|
|
15051
15051
|
u.value && e.instance?.props?.defaultShowOptions && e.rowIndex === void 0 && V("");
|
|
15052
15052
|
}), {
|
|
15053
15053
|
options: _,
|
|
@@ -15274,7 +15274,7 @@ function yr(e, t, a) {
|
|
|
15274
15274
|
(T) => T.key === f.key
|
|
15275
15275
|
).length && f.key)
|
|
15276
15276
|
if (w.length >= 20) {
|
|
15277
|
-
|
|
15277
|
+
Dt(
|
|
15278
15278
|
"warning",
|
|
15279
15279
|
B("LRT.message.appLauncherTabTip")
|
|
15280
15280
|
);
|
|
@@ -15354,7 +15354,7 @@ function af(e, t, a, n, s, o) {
|
|
|
15354
15354
|
(_) => {
|
|
15355
15355
|
_.instance?.id === a.id && (c.value = !_.value);
|
|
15356
15356
|
}
|
|
15357
|
-
)) : console.error("context is undefined")) : (
|
|
15357
|
+
)) : console.error("context is undefined")) : (la(() => {
|
|
15358
15358
|
u.value = e.value.length;
|
|
15359
15359
|
}), ft("list-change", (_) => {
|
|
15360
15360
|
_.instance?.id === a.id && (u.value = _.value.length);
|
|
@@ -15447,7 +15447,7 @@ function nf(e, t, a) {
|
|
|
15447
15447
|
});
|
|
15448
15448
|
if (g.code === Pe.SUCCESS)
|
|
15449
15449
|
return g.data;
|
|
15450
|
-
|
|
15450
|
+
Dt("fail", g?.message ?? "");
|
|
15451
15451
|
}, y = async () => {
|
|
15452
15452
|
const v = await m() || "";
|
|
15453
15453
|
if (!v)
|
|
@@ -15464,7 +15464,7 @@ function nf(e, t, a) {
|
|
|
15464
15464
|
uid: i(d)
|
|
15465
15465
|
}
|
|
15466
15466
|
});
|
|
15467
|
-
if (!
|
|
15467
|
+
if (!Ct())
|
|
15468
15468
|
t?.Dialog.confirm({
|
|
15469
15469
|
confirmButtonText: B("LRT.common.copy"),
|
|
15470
15470
|
message: B("LRT.control.title.message.copyConfirm")
|
|
@@ -15968,7 +15968,7 @@ function lS(e, t, a) {
|
|
|
15968
15968
|
for (W = 0; W < e.value.length; W++)
|
|
15969
15969
|
h.value += "•";
|
|
15970
15970
|
}, x = () => {
|
|
15971
|
-
|
|
15971
|
+
Lt(() => {
|
|
15972
15972
|
const W = a.value.getState(
|
|
15973
15973
|
e.instance?.id,
|
|
15974
15974
|
e.rowIndex
|
|
@@ -15983,7 +15983,7 @@ function lS(e, t, a) {
|
|
|
15983
15983
|
);
|
|
15984
15984
|
fl(() => {
|
|
15985
15985
|
v.value || x();
|
|
15986
|
-
}),
|
|
15986
|
+
}), la(() => {
|
|
15987
15987
|
x();
|
|
15988
15988
|
});
|
|
15989
15989
|
const U = (W) => {
|
|
@@ -16122,7 +16122,7 @@ function cS(e, t = !0) {
|
|
|
16122
16122
|
async (re, ie) => {
|
|
16123
16123
|
if (i(x)) {
|
|
16124
16124
|
if (re) {
|
|
16125
|
-
const me = tp(
|
|
16125
|
+
const me = tp(kt(i(T)));
|
|
16126
16126
|
w.value = me.filter((ge) => (ge.isLeaf = !0, ge.label.includes(re) || e.value?.includes(ge.value)));
|
|
16127
16127
|
} else
|
|
16128
16128
|
w.value = T.value;
|
|
@@ -16166,7 +16166,7 @@ function cS(e, t = !0) {
|
|
|
16166
16166
|
const $ = async (re) => {
|
|
16167
16167
|
await De(), re || ae(e.selectFilterVlaue);
|
|
16168
16168
|
}, ae = async (re, ie = !1) => {
|
|
16169
|
-
if (a.value && (
|
|
16169
|
+
if (a.value && (Ct() && e.rowIndex === void 0 || e.instance?.pageStatus === 2 || ie === !0)) {
|
|
16170
16170
|
e.setLoading && e.setLoading(!0);
|
|
16171
16171
|
const me = await i(g)?.emit("search", {
|
|
16172
16172
|
instance: e.instance,
|
|
@@ -16465,10 +16465,10 @@ function dS(e) {
|
|
|
16465
16465
|
}, G) => {
|
|
16466
16466
|
if (e.context === void 0)
|
|
16467
16467
|
return;
|
|
16468
|
-
I && T.abort(), T = new AbortController(), I = T.signal, b && _.abort(), _ = new AbortController(), b = _.signal,
|
|
16468
|
+
I && T.abort(), T = new AbortController(), I = T.signal, b && _.abort(), _ = new AbortController(), b = _.signal, Ct() ? (N || q) && e.setLoading?.(!0) : e.setLoading?.(!0);
|
|
16469
16469
|
const W = V && Ue(V);
|
|
16470
16470
|
y.value = Ue(
|
|
16471
|
-
|
|
16471
|
+
pa(i(e.context), s, "orders")
|
|
16472
16472
|
) ?? W ?? y.value;
|
|
16473
16473
|
const te = i(e.context?.externalParams);
|
|
16474
16474
|
if (te?.data) {
|
|
@@ -16538,7 +16538,7 @@ function dS(e) {
|
|
|
16538
16538
|
[Hs.id]: $e[bt]
|
|
16539
16539
|
});
|
|
16540
16540
|
})), Object.assign(ut, { [it]: $e[bt] });
|
|
16541
|
-
}), xe?.length && (
|
|
16541
|
+
}), xe?.length && (Ct() ? Object.assign(Te, {
|
|
16542
16542
|
[ut.custom_list_row_data_id]: ut
|
|
16543
16543
|
}) : Object.assign(xe[gt], { data_value_map: ut }));
|
|
16544
16544
|
}), i(e.context).rawStore.blListViewData = Te;
|
|
@@ -16557,7 +16557,7 @@ function dS(e) {
|
|
|
16557
16557
|
o || (x?.current || 1) > 1 && (Ye = [...i(l), ...Ye]), Ye && Ye.length && (Eb(Ye, e.instance), p.value = Nb(
|
|
16558
16558
|
Ye,
|
|
16559
16559
|
e.instance
|
|
16560
|
-
)), l.value = Ye, (
|
|
16560
|
+
)), l.value = Ye, (Nt(e.instance.props.countType) || e.instance.props.countType === "sync") && (f.value = {
|
|
16561
16561
|
current: Bt,
|
|
16562
16562
|
pageSize: Ya,
|
|
16563
16563
|
pageSizeOptions: [10, 20, 50, 100, 500, 1e3],
|
|
@@ -16643,7 +16643,7 @@ function dS(e) {
|
|
|
16643
16643
|
}
|
|
16644
16644
|
}
|
|
16645
16645
|
m.value;
|
|
16646
|
-
const ae =
|
|
16646
|
+
const ae = pa(
|
|
16647
16647
|
i(e.context),
|
|
16648
16648
|
s,
|
|
16649
16649
|
"page"
|
|
@@ -16656,7 +16656,7 @@ function dS(e) {
|
|
|
16656
16656
|
Ue(i(e.listViewSelectRef)?.filterValue)
|
|
16657
16657
|
));
|
|
16658
16658
|
const ce = Ue(
|
|
16659
|
-
|
|
16659
|
+
pa(i(e.context), s, "filters")
|
|
16660
16660
|
);
|
|
16661
16661
|
Array.isArray(ce) && ce.length > 0 && (se = se.concat(
|
|
16662
16662
|
ce.filter((Se) => Se.id === "querySelectedRows")
|
|
@@ -16696,7 +16696,7 @@ function dS(e) {
|
|
|
16696
16696
|
},
|
|
16697
16697
|
...Ee,
|
|
16698
16698
|
fill_fields: e?.fillFields || [],
|
|
16699
|
-
need_count: e.instance.props.countType === "sync" ||
|
|
16699
|
+
need_count: e.instance.props.countType === "sync" || Nt(e.instance.props.countType)
|
|
16700
16700
|
// === undefined,
|
|
16701
16701
|
}, ot = (await e.context?.emit("custom:listViewQuery", {
|
|
16702
16702
|
instance: e.instance,
|
|
@@ -16714,7 +16714,7 @@ function dS(e) {
|
|
|
16714
16714
|
}
|
|
16715
16715
|
e.context.emit("custom:saveFetchStatisticsDataParams", {
|
|
16716
16716
|
options: { params: ot }
|
|
16717
|
-
}), ot.show_relate_data =
|
|
16717
|
+
}), ot.show_relate_data = Ct();
|
|
16718
16718
|
async function vt(Se) {
|
|
16719
16719
|
const nt = (await r.default.CountDataPagePrivateV1ApiAppsPOST(
|
|
16720
16720
|
{
|
|
@@ -16784,7 +16784,7 @@ function dS(e) {
|
|
|
16784
16784
|
});
|
|
16785
16785
|
if (z.code === Pe.SUCCESS) {
|
|
16786
16786
|
e.message?.success(B("LRT.message.deleted"));
|
|
16787
|
-
const R =
|
|
16787
|
+
const R = pa(
|
|
16788
16788
|
i(e.context),
|
|
16789
16789
|
s,
|
|
16790
16790
|
"page"
|
|
@@ -16819,7 +16819,7 @@ function dS(e) {
|
|
|
16819
16819
|
e.setLoading?.(!0), z && (f.value = {});
|
|
16820
16820
|
const R = V && Ue(V);
|
|
16821
16821
|
y.value = Ue(
|
|
16822
|
-
|
|
16822
|
+
pa(i(e.context), s, "orders")
|
|
16823
16823
|
) ?? R ?? y.value;
|
|
16824
16824
|
const N = i(e.context?.externalParams);
|
|
16825
16825
|
if (N?.data) {
|
|
@@ -16832,7 +16832,7 @@ function dS(e) {
|
|
|
16832
16832
|
}
|
|
16833
16833
|
}
|
|
16834
16834
|
m.value;
|
|
16835
|
-
const H =
|
|
16835
|
+
const H = pa(
|
|
16836
16836
|
i(e.context),
|
|
16837
16837
|
s,
|
|
16838
16838
|
"page"
|
|
@@ -16845,7 +16845,7 @@ function dS(e) {
|
|
|
16845
16845
|
Ue(i(e.listViewSelectRef)?.filterValue)
|
|
16846
16846
|
));
|
|
16847
16847
|
const te = Ue(
|
|
16848
|
-
|
|
16848
|
+
pa(i(e.context), s, "filters")
|
|
16849
16849
|
);
|
|
16850
16850
|
Array.isArray(te) && te.length > 0 && (W = W.concat(
|
|
16851
16851
|
te.filter((ge) => ge.id === "querySelectedRows")
|
|
@@ -16884,7 +16884,7 @@ function dS(e) {
|
|
|
16884
16884
|
values: []
|
|
16885
16885
|
},
|
|
16886
16886
|
...se,
|
|
16887
|
-
need_count: e.instance.props.countType === "sync" ||
|
|
16887
|
+
need_count: e.instance.props.countType === "sync" || Nt(e.instance.props.countType)
|
|
16888
16888
|
// === undefined,
|
|
16889
16889
|
}, ie = (await e.context?.emit("custom:listViewQuery", {
|
|
16890
16890
|
instance: e.instance,
|
|
@@ -16894,7 +16894,7 @@ function dS(e) {
|
|
|
16894
16894
|
Lr(i(e.context), s, se), e.setLoading?.(!1);
|
|
16895
16895
|
return;
|
|
16896
16896
|
}
|
|
16897
|
-
ie.show_relate_data =
|
|
16897
|
+
ie.show_relate_data = Ct();
|
|
16898
16898
|
const me = await r.default.GetNoCountListMaxSizeDataPagePrivateV1ApiAppsPOST({
|
|
16899
16899
|
payload: ie
|
|
16900
16900
|
});
|
|
@@ -18838,11 +18838,11 @@ function TI(e, t) {
|
|
|
18838
18838
|
const T = [], _ = {}, I = e.instance.id, b = y.value ? "local" : localStorage.getItem("locale"), P = i(o)?.[b]?.[I];
|
|
18839
18839
|
n.value?.viewList.forEach((k) => {
|
|
18840
18840
|
T.push({
|
|
18841
|
-
[
|
|
18841
|
+
[Ct() ? "label" : "text"]: k.id === vn.ALL ? B("LRT.control.listView.all") : P?.[k.id] || k.title,
|
|
18842
18842
|
value: k.id
|
|
18843
18843
|
}), _[k.id] = {
|
|
18844
18844
|
headers: k.headers.map((O) => O.fieldCode),
|
|
18845
|
-
filters:
|
|
18845
|
+
filters: kt(k.filters)
|
|
18846
18846
|
};
|
|
18847
18847
|
}), l.value = T, u.value = _, d.value = n.value.showType, c.value = T[0]?.value, i(c) !== vn.ALL && m(i(c));
|
|
18848
18848
|
});
|
|
@@ -18855,7 +18855,7 @@ function TI(e, t) {
|
|
|
18855
18855
|
value: v.value?.id
|
|
18856
18856
|
}), u.value[v.value?.id] = {
|
|
18857
18857
|
headers: v.value?.headers.map((b) => b.fieldCode),
|
|
18858
|
-
filters:
|
|
18858
|
+
filters: kt(v.value?.filters)
|
|
18859
18859
|
}), l.value.concat(T).concat(_);
|
|
18860
18860
|
});
|
|
18861
18861
|
i(s)?.on(
|
|
@@ -18864,9 +18864,9 @@ function TI(e, t) {
|
|
|
18864
18864
|
v.value = null, h.value = T?.customViewList?.map(
|
|
18865
18865
|
(_) => (u.value[_.id] = {
|
|
18866
18866
|
headers: _.headers.map((I) => I.fieldCode),
|
|
18867
|
-
filters:
|
|
18867
|
+
filters: kt(_.filters)
|
|
18868
18868
|
}, {
|
|
18869
|
-
[
|
|
18869
|
+
[Ct() ? "label" : "text"]: _.title,
|
|
18870
18870
|
value: _.id
|
|
18871
18871
|
})
|
|
18872
18872
|
), T.isFirst && (T?.defaultViewId ? c.value = g.value.find(
|
|
@@ -18965,7 +18965,7 @@ function kI(e, t, a) {
|
|
|
18965
18965
|
}), g = () => {
|
|
18966
18966
|
r.value = !0;
|
|
18967
18967
|
}, w = Re(), S = async (P, k = []) => {
|
|
18968
|
-
const O =
|
|
18968
|
+
const O = pa(i(s), n.value, "orders"), A = await w.default.GetDataListByUidBizModelPrivateV1ApiAppsPOST({
|
|
18969
18969
|
payload: {
|
|
18970
18970
|
app_id: e.instance?.props.fillPayload.appId || i(s)?.externalParams?.data?.app_id,
|
|
18971
18971
|
data_code: e.instance?.props.fillPayload.dataCode,
|
|
@@ -19881,7 +19881,7 @@ function a1(e, t) {
|
|
|
19881
19881
|
selectedRows: vt,
|
|
19882
19882
|
subtableDiff: _e
|
|
19883
19883
|
}
|
|
19884
|
-
}),
|
|
19884
|
+
}), Lt(() => {
|
|
19885
19885
|
P.value = !1;
|
|
19886
19886
|
}, 500);
|
|
19887
19887
|
}
|
|
@@ -20153,7 +20153,7 @@ function s1(e, { changeUpdate: t = !1 } = {}) {
|
|
|
20153
20153
|
n.value = i(U);
|
|
20154
20154
|
}), k(G);
|
|
20155
20155
|
}, F = async (q) => {
|
|
20156
|
-
|
|
20156
|
+
Lt(() => {
|
|
20157
20157
|
q?.target?.select();
|
|
20158
20158
|
}, 0), O(q.target.value), n.value = Ec(q.target.value, v.value || 0), U.value = String(m.value);
|
|
20159
20159
|
}, z = (q, H) => {
|
|
@@ -20375,7 +20375,7 @@ function qi(e) {
|
|
|
20375
20375
|
t[n] = t[n] || [], t[n].push(a);
|
|
20376
20376
|
}), t;
|
|
20377
20377
|
}
|
|
20378
|
-
function
|
|
20378
|
+
function oa(e) {
|
|
20379
20379
|
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
20380
20380
|
a[n - 1] = arguments[n];
|
|
20381
20381
|
var s = 0, o = a.length;
|
|
@@ -20410,7 +20410,7 @@ function ra(e) {
|
|
|
20410
20410
|
function u1(e) {
|
|
20411
20411
|
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
|
|
20412
20412
|
}
|
|
20413
|
-
function
|
|
20413
|
+
function Mt(e, t) {
|
|
20414
20414
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || u1(t) && typeof e == "string" && !e);
|
|
20415
20415
|
}
|
|
20416
20416
|
function d1(e, t, a) {
|
|
@@ -20506,9 +20506,9 @@ function Ku(e, t) {
|
|
|
20506
20506
|
return e;
|
|
20507
20507
|
}
|
|
20508
20508
|
var Mf = function(t, a, n, s, o, r) {
|
|
20509
|
-
t.required && (!n.hasOwnProperty(t.field) ||
|
|
20509
|
+
t.required && (!n.hasOwnProperty(t.field) || Mt(a, r || t.type)) && s.push(oa(o.messages.required, t.fullField));
|
|
20510
20510
|
}, y1 = function(t, a, n, s, o) {
|
|
20511
|
-
(/^\s+$/.test(a) || a === "") && s.push(
|
|
20511
|
+
(/^\s+$/.test(a) || a === "") && s.push(oa(o.messages.whitespace, t.fullField));
|
|
20512
20512
|
}, Js, v1 = function() {
|
|
20513
20513
|
if (Js)
|
|
20514
20514
|
return Js;
|
|
@@ -20589,21 +20589,21 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20589
20589
|
return;
|
|
20590
20590
|
}
|
|
20591
20591
|
var r = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
|
|
20592
|
-
r.indexOf(l) > -1 ? ws[l](a) || s.push(
|
|
20592
|
+
r.indexOf(l) > -1 ? ws[l](a) || s.push(oa(o.messages.types[l], t.fullField, t.type)) : l && typeof a !== t.type && s.push(oa(o.messages.types[l], t.fullField, t.type));
|
|
20593
20593
|
}, b1 = function(t, a, n, s, o) {
|
|
20594
20594
|
var r = typeof t.len == "number", l = typeof t.min == "number", u = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = a, p = null, f = typeof a == "number", m = typeof a == "string", y = Array.isArray(a);
|
|
20595
20595
|
if (f ? p = "number" : m ? p = "string" : y && (p = "array"), !p)
|
|
20596
20596
|
return !1;
|
|
20597
|
-
y && (d = a.length), m && (d = a.replace(c, "_").length), r ? d !== t.len && s.push(
|
|
20597
|
+
y && (d = a.length), m && (d = a.replace(c, "_").length), r ? d !== t.len && s.push(oa(o.messages[p].len, t.fullField, t.len)) : l && !u && d < t.min ? s.push(oa(o.messages[p].min, t.fullField, t.min)) : u && !l && d > t.max ? s.push(oa(o.messages[p].max, t.fullField, t.max)) : l && u && (d < t.min || d > t.max) && s.push(oa(o.messages[p].range, t.fullField, t.min, t.max));
|
|
20598
20598
|
}, kn = "enum", w1 = function(t, a, n, s, o) {
|
|
20599
|
-
t[kn] = Array.isArray(t[kn]) ? t[kn] : [], t[kn].indexOf(a) === -1 && s.push(
|
|
20599
|
+
t[kn] = Array.isArray(t[kn]) ? t[kn] : [], t[kn].indexOf(a) === -1 && s.push(oa(o.messages[kn], t.fullField, t[kn].join(", ")));
|
|
20600
20600
|
}, _1 = function(t, a, n, s, o) {
|
|
20601
20601
|
if (t.pattern) {
|
|
20602
20602
|
if (t.pattern instanceof RegExp)
|
|
20603
|
-
t.pattern.lastIndex = 0, t.pattern.test(a) || s.push(
|
|
20603
|
+
t.pattern.lastIndex = 0, t.pattern.test(a) || s.push(oa(o.messages.pattern.mismatch, t.fullField, a, t.pattern));
|
|
20604
20604
|
else if (typeof t.pattern == "string") {
|
|
20605
20605
|
var r = new RegExp(t.pattern);
|
|
20606
|
-
r.test(a) || s.push(
|
|
20606
|
+
r.test(a) || s.push(oa(o.messages.pattern.mismatch, t.fullField, a, t.pattern));
|
|
20607
20607
|
}
|
|
20608
20608
|
}
|
|
20609
20609
|
}, Qe = {
|
|
@@ -20616,15 +20616,15 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20616
20616
|
}, S1 = function(t, a, n, s, o) {
|
|
20617
20617
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20618
20618
|
if (l) {
|
|
20619
|
-
if (
|
|
20619
|
+
if (Mt(a, "string") && !t.required)
|
|
20620
20620
|
return n();
|
|
20621
|
-
Qe.required(t, a, s, r, o, "string"),
|
|
20621
|
+
Qe.required(t, a, s, r, o, "string"), Mt(a, "string") || (Qe.type(t, a, s, r, o), Qe.range(t, a, s, r, o), Qe.pattern(t, a, s, r, o), t.whitespace === !0 && Qe.whitespace(t, a, s, r, o));
|
|
20622
20622
|
}
|
|
20623
20623
|
n(r);
|
|
20624
20624
|
}, I1 = function(t, a, n, s, o) {
|
|
20625
20625
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20626
20626
|
if (l) {
|
|
20627
|
-
if (
|
|
20627
|
+
if (Mt(a) && !t.required)
|
|
20628
20628
|
return n();
|
|
20629
20629
|
Qe.required(t, a, s, r, o), a !== void 0 && Qe.type(t, a, s, r, o);
|
|
20630
20630
|
}
|
|
@@ -20632,7 +20632,7 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20632
20632
|
}, T1 = function(t, a, n, s, o) {
|
|
20633
20633
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20634
20634
|
if (l) {
|
|
20635
|
-
if (a === "" && (a = void 0),
|
|
20635
|
+
if (a === "" && (a = void 0), Mt(a) && !t.required)
|
|
20636
20636
|
return n();
|
|
20637
20637
|
Qe.required(t, a, s, r, o), a !== void 0 && (Qe.type(t, a, s, r, o), Qe.range(t, a, s, r, o));
|
|
20638
20638
|
}
|
|
@@ -20640,7 +20640,7 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20640
20640
|
}, P1 = function(t, a, n, s, o) {
|
|
20641
20641
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20642
20642
|
if (l) {
|
|
20643
|
-
if (
|
|
20643
|
+
if (Mt(a) && !t.required)
|
|
20644
20644
|
return n();
|
|
20645
20645
|
Qe.required(t, a, s, r, o), a !== void 0 && Qe.type(t, a, s, r, o);
|
|
20646
20646
|
}
|
|
@@ -20648,15 +20648,15 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20648
20648
|
}, C1 = function(t, a, n, s, o) {
|
|
20649
20649
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20650
20650
|
if (l) {
|
|
20651
|
-
if (
|
|
20651
|
+
if (Mt(a) && !t.required)
|
|
20652
20652
|
return n();
|
|
20653
|
-
Qe.required(t, a, s, r, o),
|
|
20653
|
+
Qe.required(t, a, s, r, o), Mt(a) || Qe.type(t, a, s, r, o);
|
|
20654
20654
|
}
|
|
20655
20655
|
n(r);
|
|
20656
20656
|
}, k1 = function(t, a, n, s, o) {
|
|
20657
20657
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20658
20658
|
if (l) {
|
|
20659
|
-
if (
|
|
20659
|
+
if (Mt(a) && !t.required)
|
|
20660
20660
|
return n();
|
|
20661
20661
|
Qe.required(t, a, s, r, o), a !== void 0 && (Qe.type(t, a, s, r, o), Qe.range(t, a, s, r, o));
|
|
20662
20662
|
}
|
|
@@ -20664,7 +20664,7 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20664
20664
|
}, M1 = function(t, a, n, s, o) {
|
|
20665
20665
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20666
20666
|
if (l) {
|
|
20667
|
-
if (
|
|
20667
|
+
if (Mt(a) && !t.required)
|
|
20668
20668
|
return n();
|
|
20669
20669
|
Qe.required(t, a, s, r, o), a !== void 0 && (Qe.type(t, a, s, r, o), Qe.range(t, a, s, r, o));
|
|
20670
20670
|
}
|
|
@@ -20680,7 +20680,7 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20680
20680
|
}, O1 = function(t, a, n, s, o) {
|
|
20681
20681
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20682
20682
|
if (l) {
|
|
20683
|
-
if (
|
|
20683
|
+
if (Mt(a) && !t.required)
|
|
20684
20684
|
return n();
|
|
20685
20685
|
Qe.required(t, a, s, r, o), a !== void 0 && Qe.type(t, a, s, r, o);
|
|
20686
20686
|
}
|
|
@@ -20688,7 +20688,7 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20688
20688
|
}, D1 = "enum", E1 = function(t, a, n, s, o) {
|
|
20689
20689
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20690
20690
|
if (l) {
|
|
20691
|
-
if (
|
|
20691
|
+
if (Mt(a) && !t.required)
|
|
20692
20692
|
return n();
|
|
20693
20693
|
Qe.required(t, a, s, r, o), a !== void 0 && Qe[D1](t, a, s, r, o);
|
|
20694
20694
|
}
|
|
@@ -20696,17 +20696,17 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20696
20696
|
}, N1 = function(t, a, n, s, o) {
|
|
20697
20697
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20698
20698
|
if (l) {
|
|
20699
|
-
if (
|
|
20699
|
+
if (Mt(a, "string") && !t.required)
|
|
20700
20700
|
return n();
|
|
20701
|
-
Qe.required(t, a, s, r, o),
|
|
20701
|
+
Qe.required(t, a, s, r, o), Mt(a, "string") || Qe.pattern(t, a, s, r, o);
|
|
20702
20702
|
}
|
|
20703
20703
|
n(r);
|
|
20704
20704
|
}, L1 = function(t, a, n, s, o) {
|
|
20705
20705
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20706
20706
|
if (l) {
|
|
20707
|
-
if (
|
|
20707
|
+
if (Mt(a, "date") && !t.required)
|
|
20708
20708
|
return n();
|
|
20709
|
-
if (Qe.required(t, a, s, r, o), !
|
|
20709
|
+
if (Qe.required(t, a, s, r, o), !Mt(a, "date")) {
|
|
20710
20710
|
var u;
|
|
20711
20711
|
a instanceof Date ? u = a : u = new Date(a), Qe.type(t, u, s, r, o), u && Qe.range(t, u.getTime(), s, r, o);
|
|
20712
20712
|
}
|
|
@@ -20718,15 +20718,15 @@ var Mf = function(t, a, n, s, o, r) {
|
|
|
20718
20718
|
}, Jr = function(t, a, n, s, o) {
|
|
20719
20719
|
var r = t.type, l = [], u = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20720
20720
|
if (u) {
|
|
20721
|
-
if (
|
|
20721
|
+
if (Mt(a, r) && !t.required)
|
|
20722
20722
|
return n();
|
|
20723
|
-
Qe.required(t, a, s, l, o, r),
|
|
20723
|
+
Qe.required(t, a, s, l, o, r), Mt(a, r) || Qe.type(t, a, s, l, o);
|
|
20724
20724
|
}
|
|
20725
20725
|
n(l);
|
|
20726
20726
|
}, x1 = function(t, a, n, s, o) {
|
|
20727
20727
|
var r = [], l = t.required || !t.required && s.hasOwnProperty(t.field);
|
|
20728
20728
|
if (l) {
|
|
20729
|
-
if (
|
|
20729
|
+
if (Mt(a) && !t.required)
|
|
20730
20730
|
return n();
|
|
20731
20731
|
Qe.required(t, a, s, r, o);
|
|
20732
20732
|
}
|
|
@@ -20881,7 +20881,7 @@ var Ui = Bi(), Tn = /* @__PURE__ */ function() {
|
|
|
20881
20881
|
v(P);
|
|
20882
20882
|
else {
|
|
20883
20883
|
if (g.required && !h.value)
|
|
20884
|
-
return g.message !== void 0 ? P = [].concat(g.message).map(Ju(g, l)) : u.error && (P = [u.error(g,
|
|
20884
|
+
return g.message !== void 0 ? P = [].concat(g.message).map(Ju(g, l)) : u.error && (P = [u.error(g, oa(u.messages.required, g.field))]), v(P);
|
|
20885
20885
|
var k = {};
|
|
20886
20886
|
g.defaultField && Object.keys(h.value).map(function(x) {
|
|
20887
20887
|
k[x] = g.defaultField;
|
|
@@ -20921,7 +20921,7 @@ var Ui = Bi(), Tn = /* @__PURE__ */ function() {
|
|
|
20921
20921
|
}, l);
|
|
20922
20922
|
}, t.getType = function(n) {
|
|
20923
20923
|
if (n.type === void 0 && n.pattern instanceof RegExp && (n.type = "pattern"), typeof n.validator != "function" && n.type && !Cs.hasOwnProperty(n.type))
|
|
20924
|
-
throw new Error(
|
|
20924
|
+
throw new Error(oa("Unknown rule type %s", n.type));
|
|
20925
20925
|
return n.type || "string";
|
|
20926
20926
|
}, t.getValidationMethod = function(n) {
|
|
20927
20927
|
if (typeof n.validator == "function")
|
|
@@ -21393,7 +21393,7 @@ function Af(e, t = !1) {
|
|
|
21393
21393
|
};
|
|
21394
21394
|
return;
|
|
21395
21395
|
}
|
|
21396
|
-
const O = u?.value.getState(e.value.id), A =
|
|
21396
|
+
const O = u?.value.getState(e.value.id), A = kt(O[d.value]);
|
|
21397
21397
|
P.externalParams.parent = {
|
|
21398
21398
|
uid: A.uid,
|
|
21399
21399
|
rowIndex: d.value,
|
|
@@ -21482,7 +21482,7 @@ function Af(e, t = !1) {
|
|
|
21482
21482
|
value: [x],
|
|
21483
21483
|
options: {
|
|
21484
21484
|
type: "pushs",
|
|
21485
|
-
pageSize:
|
|
21485
|
+
pageSize: Ct() ? a.value.pageSize : Math.max(
|
|
21486
21486
|
a.value.totalCount + 1,
|
|
21487
21487
|
a.value.pageSize
|
|
21488
21488
|
)
|
|
@@ -21528,7 +21528,7 @@ const Of = (e, t, a) => {
|
|
|
21528
21528
|
e.props.headers.filter((s) => !s.children[0].props.isHide)
|
|
21529
21529
|
);
|
|
21530
21530
|
return Zn((s) => {
|
|
21531
|
-
if (i(t)?.inList(s.instance.id) === e.id && (t?.value.getInstanceRowIndex(s.instance) === -1 || s.rowIndex === -1) && (
|
|
21531
|
+
if (i(t)?.inList(s.instance.id) === e.id && (t?.value.getInstanceRowIndex(s.instance) === -1 || s.rowIndex === -1) && (Ct() || (n.value = e.props.headers.filter(
|
|
21532
21532
|
(o) => !o.children[0].props.isHide
|
|
21533
21533
|
)), s.props === "isHide" && i(a)?.setColumnsVisible(
|
|
21534
21534
|
[s.instance.id],
|
|
@@ -21539,13 +21539,13 @@ const Of = (e, t, a) => {
|
|
|
21539
21539
|
), i(a)?.setColumnsVisible(
|
|
21540
21540
|
["symbolIndex"],
|
|
21541
21541
|
s.value === "readonly"
|
|
21542
|
-
)), !(!
|
|
21542
|
+
)), !(!Ct() && e.props.mobileShowType === "tile") && s.rowIndex !== void 0) {
|
|
21543
21543
|
const o = i(a)?.getDisplayedRowAtIndex(
|
|
21544
21544
|
s.rowIndex
|
|
21545
21545
|
);
|
|
21546
21546
|
if (!o)
|
|
21547
21547
|
return;
|
|
21548
|
-
(
|
|
21548
|
+
(Ct() ? Fp : qp).includes(s.instance.type) ? i(a)?.refreshCells({
|
|
21549
21549
|
force: !0,
|
|
21550
21550
|
rowNodes: [o],
|
|
21551
21551
|
columns: [s.instance.id]
|
|
@@ -21597,7 +21597,7 @@ function G1(e, t) {
|
|
|
21597
21597
|
uid: i(r)
|
|
21598
21598
|
}
|
|
21599
21599
|
});
|
|
21600
|
-
|
|
21600
|
+
Ct() ? Ne.openWindow(p, "_blank") : t?.Dialog.confirm({
|
|
21601
21601
|
confirmButtonText: B("LRT.common.copy"),
|
|
21602
21602
|
message: B("LRT.control.title.message.copyConfirm")
|
|
21603
21603
|
}).then(() => {
|
|
@@ -21621,7 +21621,7 @@ window.okuiConfig = {
|
|
|
21621
21621
|
env: "PRD",
|
|
21622
21622
|
apiPath: td,
|
|
21623
21623
|
sourceHost: Tr,
|
|
21624
|
-
basePath:
|
|
21624
|
+
basePath: ma.getFullPath("/apps"),
|
|
21625
21625
|
options: Df,
|
|
21626
21626
|
cardPath: td
|
|
21627
21627
|
};
|
|
@@ -21746,7 +21746,7 @@ function W1(e, t) {
|
|
|
21746
21746
|
return N.append("file", F.blob()), N.append("deletable", "false"), new Promise((q, H) => {
|
|
21747
21747
|
dr({
|
|
21748
21748
|
method: "post",
|
|
21749
|
-
url:
|
|
21749
|
+
url: ma.getFullPath("/apps/api/v1/private/attachment/uploadImages"),
|
|
21750
21750
|
data: N,
|
|
21751
21751
|
withCredentials: !0,
|
|
21752
21752
|
headers: tr({
|
|
@@ -22857,23 +22857,16 @@ function Rf(e) {
|
|
|
22857
22857
|
}), q = L(""), H = D(() => {
|
|
22858
22858
|
const ce = u.value.unitPosition;
|
|
22859
22859
|
let re;
|
|
22860
|
-
N.value?.amount ? re = N.value.currency : re = r.value?.find(
|
|
22861
|
-
(ge) => ge.value === m.value
|
|
22862
|
-
)?.fieldValue[h.value || "name"] || "";
|
|
22860
|
+
N.value?.amount ? re = N.value.currency : re = r.value?.find((me) => me.value === m.value)?.label;
|
|
22863
22861
|
let ie = !1;
|
|
22864
22862
|
return re && ce === "align-right" && (ie = !0), q.value = re, ie;
|
|
22865
22863
|
}), G = D(() => {
|
|
22866
22864
|
if (e.value?.amount || e.value?.amount === 0) {
|
|
22867
22865
|
const ce = u.value.unitPosition;
|
|
22868
22866
|
let re, ie;
|
|
22869
|
-
|
|
22870
|
-
|
|
22871
|
-
|
|
22872
|
-
const ge = r.value?.find(
|
|
22873
|
-
(ve) => ve.value === m.value
|
|
22874
|
-
);
|
|
22875
|
-
re = c.value, ie = ge?.fieldValue[h.value || "name"] || "";
|
|
22876
|
-
}
|
|
22867
|
+
N.value?.amount ? (re = N.value?.amount, ie = N.value.currency) : (ie = r.value?.find(
|
|
22868
|
+
(ge) => ge.value === m.value
|
|
22869
|
+
)?.label, re = c.value);
|
|
22877
22870
|
let me;
|
|
22878
22871
|
switch (ce) {
|
|
22879
22872
|
case "left":
|
|
@@ -23120,7 +23113,7 @@ const ad = /* @__PURE__ */ be(VA, [["render", HA], ["__scopeId", "data-v-674be8b
|
|
|
23120
23113
|
placeholder: i(s),
|
|
23121
23114
|
onBlur: i(h),
|
|
23122
23115
|
onFocus: i(v)
|
|
23123
|
-
},
|
|
23116
|
+
}, fa({ _: 2 }, [
|
|
23124
23117
|
i(_) === "left" ? {
|
|
23125
23118
|
name: "label",
|
|
23126
23119
|
fn: Q(() => [
|
|
@@ -24163,7 +24156,7 @@ function wD(e, t, a, n, s, o) {
|
|
|
24163
24156
|
color: e.buttonType === "blue" ? "#4c78fc" : "",
|
|
24164
24157
|
loading: e.loading || e.instance.props.isLoading,
|
|
24165
24158
|
onClick: e.clickHandle
|
|
24166
|
-
},
|
|
24159
|
+
}, fa({ _: 2 }, [
|
|
24167
24160
|
e.showText ? {
|
|
24168
24161
|
name: "default",
|
|
24169
24162
|
fn: Q(() => [
|
|
@@ -24465,11 +24458,11 @@ const wn = /* @__PURE__ */ be(FD, [["render", UD], ["__scopeId", "data-v-b6700b5
|
|
|
24465
24458
|
isSubtable: p,
|
|
24466
24459
|
instanceProps: f
|
|
24467
24460
|
} = Bs(t), m = L(""), y = L(!1), h = L([]);
|
|
24468
|
-
|
|
24461
|
+
Lt(() => {
|
|
24469
24462
|
h.value = t.value;
|
|
24470
24463
|
}, 500);
|
|
24471
24464
|
const v = () => {
|
|
24472
|
-
|
|
24465
|
+
Lt(() => {
|
|
24473
24466
|
const b = [];
|
|
24474
24467
|
n.value.forEach((P) => {
|
|
24475
24468
|
h.value.includes(P.value) && b.push(P.label);
|
|
@@ -24698,12 +24691,12 @@ function qf() {
|
|
|
24698
24691
|
const { query: e, params: t } = Me.config.globalProperties.$route, { resolve: a } = Me.config.globalProperties.$router, { state: n } = Me.config.globalProperties.$store;
|
|
24699
24692
|
return {
|
|
24700
24693
|
cancelHandle: (o) => {
|
|
24701
|
-
if (
|
|
24694
|
+
if (ma.getFullPath("/"), e.listUrl)
|
|
24702
24695
|
window.location.href = decodeURIComponent(
|
|
24703
24696
|
e.listUrl
|
|
24704
24697
|
);
|
|
24705
24698
|
else if (e.menuId)
|
|
24706
|
-
if (process.env.VUE_APP_CODE_OUT === "codeout"
|
|
24699
|
+
if (process.env.VUE_APP_CODE_OUT === "codeout")
|
|
24707
24700
|
window.location.href = a({
|
|
24708
24701
|
name: "platform-form-complete",
|
|
24709
24702
|
params: t,
|
|
@@ -24718,15 +24711,20 @@ function qf() {
|
|
|
24718
24711
|
name: "platform-form-complete",
|
|
24719
24712
|
params: t,
|
|
24720
24713
|
query: e
|
|
24721
|
-
}).href : window.location.href = `${
|
|
24714
|
+
}).href : window.location.href = `${ma.getFullPath(
|
|
24722
24715
|
n.userInfo.task_redirect_url_bo.mobile_my_approval
|
|
24723
24716
|
)}?type=draft`;
|
|
24724
24717
|
else if (history.state?.back) {
|
|
24725
24718
|
const r = window.location.href;
|
|
24726
24719
|
let l;
|
|
24727
|
-
process.env.VUE_APP_CODE_OUT === "codeout"
|
|
24720
|
+
if (process.env.VUE_APP_CODE_OUT === "codeout") {
|
|
24721
|
+
history.back();
|
|
24722
|
+
return;
|
|
24723
|
+
} else
|
|
24724
|
+
l = `${r.slice(0, location.href.indexOf("sapp") - 1)}${history.state.back}`;
|
|
24725
|
+
window.location.href = l;
|
|
24728
24726
|
} else
|
|
24729
|
-
window.location.href =
|
|
24727
|
+
window.location.href = ma.getFullPath("/");
|
|
24730
24728
|
}
|
|
24731
24729
|
};
|
|
24732
24730
|
}
|
|
@@ -25195,7 +25193,7 @@ const PE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25195
25193
|
class: "ok-render-control ok-date-picker",
|
|
25196
25194
|
"auto-validate": !i(T),
|
|
25197
25195
|
"instance-props": i(a)
|
|
25198
|
-
},
|
|
25196
|
+
}, fa({
|
|
25199
25197
|
default: Q(() => [
|
|
25200
25198
|
kE,
|
|
25201
25199
|
i(T) ? (C(), j(he, { key: 0 }, [
|
|
@@ -25205,7 +25203,7 @@ const PE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25205
25203
|
readonly: "",
|
|
25206
25204
|
"is-link": U.value === "",
|
|
25207
25205
|
onClick: N[2] || (N[2] = (ee) => O.value = !0)
|
|
25208
|
-
},
|
|
25206
|
+
}, fa({ _: 2 }, [
|
|
25209
25207
|
U.value !== "" ? {
|
|
25210
25208
|
name: "button",
|
|
25211
25209
|
fn: Q(() => [
|
|
@@ -25701,7 +25699,7 @@ const qE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25701
25699
|
class: "ok-render-control ok-date-range odr1",
|
|
25702
25700
|
"auto-validate": !i(b),
|
|
25703
25701
|
"instance-props": i(a)
|
|
25704
|
-
},
|
|
25702
|
+
}, fa({
|
|
25705
25703
|
default: Q(() => [
|
|
25706
25704
|
i(b) ? (C(), j(he, { key: 0 }, [
|
|
25707
25705
|
BE,
|
|
@@ -25714,7 +25712,7 @@ const qE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25714
25712
|
readonly: "",
|
|
25715
25713
|
"is-link": U.value[0] === "",
|
|
25716
25714
|
onClick: ne[2] || (ne[2] = (se) => z(0))
|
|
25717
|
-
},
|
|
25715
|
+
}, fa({ _: 2 }, [
|
|
25718
25716
|
U.value[0] !== "" ? {
|
|
25719
25717
|
name: "button",
|
|
25720
25718
|
fn: Q(() => [
|
|
@@ -25737,7 +25735,7 @@ const qE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25737
25735
|
readonly: "",
|
|
25738
25736
|
"is-link": U.value[1] === "",
|
|
25739
25737
|
onClick: ne[4] || (ne[4] = (se) => z(1))
|
|
25740
|
-
},
|
|
25738
|
+
}, fa({ _: 2 }, [
|
|
25741
25739
|
U.value[1] !== "" ? {
|
|
25742
25740
|
name: "button",
|
|
25743
25741
|
fn: Q(() => [
|
|
@@ -25927,7 +25925,7 @@ function Gf(e) {
|
|
|
25927
25925
|
})) : n(e.value).then(() => {
|
|
25928
25926
|
}));
|
|
25929
25927
|
};
|
|
25930
|
-
return
|
|
25928
|
+
return la(o), {
|
|
25931
25929
|
options: a,
|
|
25932
25930
|
getDisplayValue: n,
|
|
25933
25931
|
initValue: o
|
|
@@ -26162,7 +26160,7 @@ function Wf(e, t) {
|
|
|
26162
26160
|
{
|
|
26163
26161
|
immediate: !0
|
|
26164
26162
|
}
|
|
26165
|
-
),
|
|
26163
|
+
), la(() => {
|
|
26166
26164
|
Y(), A.value = !1;
|
|
26167
26165
|
}), {
|
|
26168
26166
|
pageStatus: n,
|
|
@@ -26354,7 +26352,7 @@ function xN(e) {
|
|
|
26354
26352
|
})) : s(e.value).then(() => {
|
|
26355
26353
|
}));
|
|
26356
26354
|
};
|
|
26357
|
-
return
|
|
26355
|
+
return la(o), {
|
|
26358
26356
|
options: a,
|
|
26359
26357
|
getDisplayValue: s,
|
|
26360
26358
|
initValue: o
|
|
@@ -27129,7 +27127,7 @@ const tL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
27129
27127
|
const R = d.value || a?.value.getState(e.instance?.id, e.rowIndex);
|
|
27130
27128
|
T({ contract_id: R });
|
|
27131
27129
|
};
|
|
27132
|
-
return
|
|
27130
|
+
return la(() => {
|
|
27133
27131
|
_();
|
|
27134
27132
|
}), {
|
|
27135
27133
|
queryStatus: _,
|
|
@@ -27772,7 +27770,7 @@ function $f(e) {
|
|
|
27772
27770
|
]);
|
|
27773
27771
|
ee = null, de?.code === Pe.SUCCESS && x(de.data || []);
|
|
27774
27772
|
};
|
|
27775
|
-
return
|
|
27773
|
+
return la(async () => {
|
|
27776
27774
|
if (!b.value && !b.value.length && !i(o)) {
|
|
27777
27775
|
const ae = await sd.default.SearchMulUserUserPrivateV1ApiAppsPOST({
|
|
27778
27776
|
payload: {
|
|
@@ -28496,7 +28494,7 @@ class am {
|
|
|
28496
28494
|
);
|
|
28497
28495
|
if (!(s && s.ctrl_behavior === Ut.HIDDEN) && t.props.isHide !== a && (this.engine.setInstance(t, "isHide", a, n), document.activeElement)) {
|
|
28498
28496
|
const o = document.activeElement;
|
|
28499
|
-
document.activeElement?.blur(),
|
|
28497
|
+
document.activeElement?.blur(), Lt(() => {
|
|
28500
28498
|
o.focus();
|
|
28501
28499
|
});
|
|
28502
28500
|
}
|
|
@@ -28935,7 +28933,7 @@ class sm {
|
|
|
28935
28933
|
});
|
|
28936
28934
|
this.updateStore(S, v);
|
|
28937
28935
|
} else
|
|
28938
|
-
|
|
28936
|
+
Dt("fail", h?.message ?? B("LRT.message.fillingFailed"));
|
|
28939
28937
|
}
|
|
28940
28938
|
}
|
|
28941
28939
|
}
|
|
@@ -29029,13 +29027,13 @@ class om {
|
|
|
29029
29027
|
r && (this.headerData.bizKey = r.value);
|
|
29030
29028
|
}
|
|
29031
29029
|
const s = this.engine.externalParams?.data;
|
|
29032
|
-
this.showDescript ? this.headerData.descript = s?.descript ?? "" : this.headerData.descript = "", s?.process_param?.process_instance_id || (t.props.config.indexOf(
|
|
29033
|
-
|
|
29034
|
-
|
|
29030
|
+
this.showDescript ? this.headerData.descript = s?.descript ?? "" : this.headerData.descript = "", s?.process_param?.process_instance_id || (t.props.config.indexOf(da.ShowBizKey) > -1 ? t.props.config.indexOf(da.ShowTitle) > -1 ? this.engine.setInstance(t, "config", [
|
|
29031
|
+
da.ShowBizKey,
|
|
29032
|
+
da.ShowTitle
|
|
29035
29033
|
]) : this.engine.setInstance(t, "config", [
|
|
29036
|
-
|
|
29037
|
-
]) : t.props.config.indexOf(
|
|
29038
|
-
|
|
29034
|
+
da.ShowBizKey
|
|
29035
|
+
]) : t.props.config.indexOf(da.ShowTitle) > -1 ? this.engine.setInstance(t, "config", [
|
|
29036
|
+
da.ShowTitle
|
|
29039
29037
|
]) : this.engine.setInstance(t, "config", [])), this.engine.setState(a, this.headerData);
|
|
29040
29038
|
}
|
|
29041
29039
|
}
|
|
@@ -30293,7 +30291,7 @@ class vm {
|
|
|
30293
30291
|
}
|
|
30294
30292
|
getProcessParam() {
|
|
30295
30293
|
let t = this.engine?.externalParams?.data?.process_param;
|
|
30296
|
-
return
|
|
30294
|
+
return Nt(t) && (t = this.engine?.externalParams?.data?.form_process_param), t;
|
|
30297
30295
|
}
|
|
30298
30296
|
getPageData() {
|
|
30299
30297
|
const t = this.engine?.externalParams?.data.data_set;
|
|
@@ -30408,7 +30406,7 @@ class gm {
|
|
|
30408
30406
|
}
|
|
30409
30407
|
async handlerFormSubmit(t) {
|
|
30410
30408
|
if (this.engine.isMounted === !1) {
|
|
30411
|
-
|
|
30409
|
+
Dt("fail", B("LRT.common.hasError"));
|
|
30412
30410
|
return;
|
|
30413
30411
|
}
|
|
30414
30412
|
const a = t.options?.type, n = this.engine.externalParams.data?.form_process_param?.draft, s = a === "saveAs", o = !!this.uId;
|
|
@@ -30549,7 +30547,7 @@ class gm {
|
|
|
30549
30547
|
return this.handlerFormSubmit(t);
|
|
30550
30548
|
}
|
|
30551
30549
|
}
|
|
30552
|
-
var
|
|
30550
|
+
var At = /* @__PURE__ */ ((e) => (e.openLink = "openLink", e.openPage = "openPage", e.setInstance = "setInstance", e.batchSetInstances = "batchSetInstances", e.batchSetControlProps = "batchSetControlPropsHandler", e.setState = "setState", e.querySvc = "querySvc", e.unknown = "unknown", e.jsMethod = "jsMethod", e.optPage = "optPage", e.calcDifference = "calcDifference", e.triggerOtherControlEvent = "triggerOtherControlEvent", e.actionOperate = "actionOperate", e.confirmDialog = "confirmDialog", e.print = "print", e.changeLog = "change_log", e.saveAs = "save_as", e))(At || {}), Qi = /* @__PURE__ */ ((e) => (e.batch_save = "batch_save", e.batch_modify = "batch_modify", e.batch_remove = "batch_remove", e.insert = "insert", e.update = "update", e.delete = "delete", e.selectOne = "selectOne", e.selectMore = "selectMore", e.count = "count", e.other = "other", e))(Qi || {}), Ss = /* @__PURE__ */ ((e) => (e.custom = "custom", e.form = "form", e.system = "system", e.fx = "fx", e))(Ss || {}), $i = /* @__PURE__ */ ((e) => (e.newTab = "newTab", e.currentTab = "currentTab", e.redirect = "redirect", e))($i || {});
|
|
30553
30551
|
const Vx = {
|
|
30554
30552
|
user_name: "employee_name",
|
|
30555
30553
|
current_user_id: "employee_id",
|
|
@@ -30699,7 +30697,7 @@ class ic {
|
|
|
30699
30697
|
const s = this.engine.getAction().actionUtils;
|
|
30700
30698
|
switch (t) {
|
|
30701
30699
|
case "prefix_path":
|
|
30702
|
-
n =
|
|
30700
|
+
n = ma.getPrefixPath();
|
|
30703
30701
|
break;
|
|
30704
30702
|
case "app_id":
|
|
30705
30703
|
n = this.engine.externalParams.appId;
|
|
@@ -30949,7 +30947,7 @@ async function wm(e) {
|
|
|
30949
30947
|
window.open(f);
|
|
30950
30948
|
else if (g === $i.currentTab)
|
|
30951
30949
|
if (n)
|
|
30952
|
-
t.href === f ? Gp(i(u)) : new RegExp("^(http://|https://)", "ig").test(f) ? window.location.href = f : (/^\/apps/.test(f) && (f = f.replace("/apps", "")), f =
|
|
30950
|
+
t.href === f ? Gp(i(u)) : new RegExp("^(http://|https://)", "ig").test(f) ? window.location.href = f : (/^\/apps/.test(f) && (f = f.replace("/apps", "")), f = ma.getPrefixPath() + Ne.isPc() ? f.replace("/desktop", "") : f.replace("/mobile", ""), y(f));
|
|
30953
30951
|
else {
|
|
30954
30952
|
const w = f.indexOf("?") > -1 ? "&" : "?";
|
|
30955
30953
|
window.location.href = f + `${w}header=none`;
|
|
@@ -31591,7 +31589,7 @@ async function Wx(e) {
|
|
|
31591
31589
|
};
|
|
31592
31590
|
{
|
|
31593
31591
|
const _ = T.message || B("LRT.message.calledServiceFail");
|
|
31594
|
-
return
|
|
31592
|
+
return Dt("fail", _), {
|
|
31595
31593
|
input: d,
|
|
31596
31594
|
output: T.data,
|
|
31597
31595
|
error: T
|
|
@@ -31630,7 +31628,7 @@ async function Yx(e) {
|
|
|
31630
31628
|
}
|
|
31631
31629
|
} catch (r) {
|
|
31632
31630
|
const l = B("LRT.message.callJsFailed");
|
|
31633
|
-
return
|
|
31631
|
+
return Dt("fail", l), console.error("调用js方法内--" + s.method + "--函数🐛🐛🐛" + r), {
|
|
31634
31632
|
input: e,
|
|
31635
31633
|
output: {},
|
|
31636
31634
|
error: { data: r, state: "FAIL" }
|
|
@@ -31746,7 +31744,7 @@ const Jx = async (e, t) => {
|
|
|
31746
31744
|
type: c
|
|
31747
31745
|
}
|
|
31748
31746
|
};
|
|
31749
|
-
window.location.href =
|
|
31747
|
+
window.location.href = ma.getFullPath(
|
|
31750
31748
|
n.resolve(h).href
|
|
31751
31749
|
);
|
|
31752
31750
|
}
|
|
@@ -31923,10 +31921,10 @@ const sj = async (e) => {
|
|
|
31923
31921
|
},
|
|
31924
31922
|
success: async () => new Promise((S) => {
|
|
31925
31923
|
let T = "";
|
|
31926
|
-
g === "save" ? T = Rn().form.save : T = Rn().process.save,
|
|
31924
|
+
g === "save" ? T = Rn().form.save : T = Rn().process.save, Dt("success", T, S);
|
|
31927
31925
|
}),
|
|
31928
31926
|
fail: async (S) => {
|
|
31929
|
-
|
|
31927
|
+
Dt("fail", S, () => {
|
|
31930
31928
|
});
|
|
31931
31929
|
}
|
|
31932
31930
|
}
|
|
@@ -31946,10 +31944,10 @@ const sj = async (e) => {
|
|
|
31946
31944
|
optType: e?.optType
|
|
31947
31945
|
},
|
|
31948
31946
|
success: async () => new Promise((S) => {
|
|
31949
|
-
|
|
31947
|
+
Dt("success", Rn().form.saveAs, S);
|
|
31950
31948
|
}),
|
|
31951
31949
|
fail: async (S) => {
|
|
31952
|
-
|
|
31950
|
+
Dt("fail", S, () => {
|
|
31953
31951
|
});
|
|
31954
31952
|
}
|
|
31955
31953
|
}
|
|
@@ -31961,8 +31959,8 @@ const sj = async (e) => {
|
|
|
31961
31959
|
t = await v.default.InvokeOptOperatorPrivateV1ApiAppsPOST({
|
|
31962
31960
|
//由于后端接口参数不固定且无法提供可选参数
|
|
31963
31961
|
payload: y
|
|
31964
|
-
}), t.code === Pe.SUCCESS ?
|
|
31965
|
-
}) :
|
|
31962
|
+
}), t.code === Pe.SUCCESS ? Dt("success", Rn().opertaion.button, () => {
|
|
31963
|
+
}) : Dt("fail", t.message, () => {
|
|
31966
31964
|
});
|
|
31967
31965
|
break;
|
|
31968
31966
|
default:
|
|
@@ -32010,7 +32008,7 @@ const sj = async (e) => {
|
|
|
32010
32008
|
header: l.query.header,
|
|
32011
32009
|
open_mode: l.query.open_mode
|
|
32012
32010
|
}
|
|
32013
|
-
}, c =
|
|
32011
|
+
}, c = ma.getFullPath(r.resolve(u).href);
|
|
32014
32012
|
return o ? (Ne.openWindow(c), window.multipleTabs.closePage({ hasTip: !1 })) : window.opener !== void 0 ? window.location.href = c : (Ne.openWindow(c), window.closeIframe()), !1;
|
|
32015
32013
|
}
|
|
32016
32014
|
return !0;
|
|
@@ -32038,10 +32036,10 @@ const sj = async (e) => {
|
|
|
32038
32036
|
break;
|
|
32039
32037
|
}
|
|
32040
32038
|
}
|
|
32041
|
-
return
|
|
32039
|
+
return Dt(l, u ?? "", () => {
|
|
32042
32040
|
}, 3), !0;
|
|
32043
32041
|
} else
|
|
32044
|
-
return
|
|
32042
|
+
return Dt("fail", r.message ?? "", () => {
|
|
32045
32043
|
}, 3), !1;
|
|
32046
32044
|
};
|
|
32047
32045
|
async function rj(e) {
|
|
@@ -32196,23 +32194,23 @@ async function fj(e) {
|
|
|
32196
32194
|
};
|
|
32197
32195
|
}
|
|
32198
32196
|
const mj = {
|
|
32199
|
-
[
|
|
32200
|
-
[
|
|
32201
|
-
[
|
|
32202
|
-
[
|
|
32203
|
-
[
|
|
32204
|
-
[
|
|
32205
|
-
[
|
|
32206
|
-
[
|
|
32207
|
-
[
|
|
32208
|
-
[
|
|
32209
|
-
[
|
|
32210
|
-
[
|
|
32211
|
-
[
|
|
32212
|
-
[
|
|
32213
|
-
[
|
|
32214
|
-
[
|
|
32215
|
-
[
|
|
32197
|
+
[At.openLink]: wm,
|
|
32198
|
+
[At.openPage]: Bx,
|
|
32199
|
+
[At.setInstance]: Ux,
|
|
32200
|
+
[At.setState]: Hx,
|
|
32201
|
+
[At.querySvc]: Wx,
|
|
32202
|
+
[At.jsMethod]: Yx,
|
|
32203
|
+
[At.optPage]: Kx,
|
|
32204
|
+
[At.calcDifference]: Xx,
|
|
32205
|
+
[At.batchSetInstances]: ej,
|
|
32206
|
+
[At.batchSetControlProps]: tj,
|
|
32207
|
+
[At.confirmDialog]: nj,
|
|
32208
|
+
[At.actionOperate]: rj,
|
|
32209
|
+
[At.print]: dj,
|
|
32210
|
+
[At.changeLog]: pj,
|
|
32211
|
+
[At.saveAs]: fj,
|
|
32212
|
+
[At.triggerOtherControlEvent]: uj,
|
|
32213
|
+
[At.unknown]: function(t) {
|
|
32216
32214
|
return new Promise((a) => {
|
|
32217
32215
|
a({ input: {}, output: {}, error: {} });
|
|
32218
32216
|
});
|
|
@@ -32264,7 +32262,7 @@ class Tm {
|
|
|
32264
32262
|
// 审批提交数据
|
|
32265
32263
|
async submitData(t, a, n) {
|
|
32266
32264
|
if (this.engine.isMounted === !1) {
|
|
32267
|
-
|
|
32265
|
+
Dt("fail", B("LRT.common.hasError"));
|
|
32268
32266
|
return;
|
|
32269
32267
|
}
|
|
32270
32268
|
ed(t, "ApprovalPlugin.ts, submitData, ~777~");
|
|
@@ -32327,7 +32325,7 @@ class Tm {
|
|
|
32327
32325
|
if (y?.includes(!1))
|
|
32328
32326
|
n && n();
|
|
32329
32327
|
else {
|
|
32330
|
-
l.opt_code &&
|
|
32328
|
+
l.opt_code && Dt("success", Rn().opertaion.button, () => {
|
|
32331
32329
|
});
|
|
32332
32330
|
let h = m.data?.handlers;
|
|
32333
32331
|
r && m.data?.continue_approval_task_id && (h = m.data?.handlers?.map(
|
|
@@ -32614,7 +32612,7 @@ class Cm {
|
|
|
32614
32612
|
if (!g.trim() && this.engine.assertInstance(n, M.EMPLOYEE2))
|
|
32615
32613
|
return;
|
|
32616
32614
|
const S = c?.keywordMapping;
|
|
32617
|
-
!
|
|
32615
|
+
!Nt(S) && S !== "" ? w = [
|
|
32618
32616
|
{
|
|
32619
32617
|
ctrl_value: g,
|
|
32620
32618
|
field_code: S
|
|
@@ -32716,7 +32714,7 @@ class Cm {
|
|
|
32716
32714
|
Array.isArray(l) ? g = l.map((I) => I?.trim()).join(",") : It(l) ? g = l?.trim() : g = l;
|
|
32717
32715
|
let w = [];
|
|
32718
32716
|
const S = c?.keywordMapping;
|
|
32719
|
-
!
|
|
32717
|
+
!Nt(S) && S !== "" ? w = [
|
|
32720
32718
|
{
|
|
32721
32719
|
ctrl_value: g,
|
|
32722
32720
|
field_code: S
|
|
@@ -33652,7 +33650,7 @@ class Em extends ic {
|
|
|
33652
33650
|
this.tenantTitle !== "" && (n = a + "|" + this.tenantTitle), t.windowTitle = n;
|
|
33653
33651
|
}
|
|
33654
33652
|
showWindowTitle(t) {
|
|
33655
|
-
t?.windowTitle !== void 0 &&
|
|
33653
|
+
t?.windowTitle !== void 0 && Lt(() => {
|
|
33656
33654
|
document.title = t.windowTitle;
|
|
33657
33655
|
}, 1e3);
|
|
33658
33656
|
}
|
|
@@ -34347,7 +34345,7 @@ function Aj(e, t, a, n) {
|
|
|
34347
34345
|
}, 4e4);
|
|
34348
34346
|
}
|
|
34349
34347
|
}
|
|
34350
|
-
function
|
|
34348
|
+
function Ot(e, t) {
|
|
34351
34349
|
const a = "🍍 " + e;
|
|
34352
34350
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(a, t) : t === "error" ? console.error(a) : t === "warn" ? console.warn(a) : console.log(a);
|
|
34353
34351
|
}
|
|
@@ -34356,29 +34354,29 @@ function uc(e) {
|
|
|
34356
34354
|
}
|
|
34357
34355
|
function Um() {
|
|
34358
34356
|
if (!("clipboard" in navigator))
|
|
34359
|
-
return
|
|
34357
|
+
return Ot("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
34360
34358
|
}
|
|
34361
34359
|
function Hm(e) {
|
|
34362
|
-
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (
|
|
34360
|
+
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (Ot('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
34363
34361
|
}
|
|
34364
34362
|
async function Oj(e) {
|
|
34365
34363
|
if (!Um())
|
|
34366
34364
|
try {
|
|
34367
|
-
await navigator.clipboard.writeText(JSON.stringify(e.state.value)),
|
|
34365
|
+
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), Ot("Global state copied to clipboard.");
|
|
34368
34366
|
} catch (t) {
|
|
34369
34367
|
if (Hm(t))
|
|
34370
34368
|
return;
|
|
34371
|
-
|
|
34369
|
+
Ot("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
34372
34370
|
}
|
|
34373
34371
|
}
|
|
34374
34372
|
async function Dj(e) {
|
|
34375
34373
|
if (!Um())
|
|
34376
34374
|
try {
|
|
34377
|
-
Gm(e, JSON.parse(await navigator.clipboard.readText())),
|
|
34375
|
+
Gm(e, JSON.parse(await navigator.clipboard.readText())), Ot("Global state pasted from clipboard.");
|
|
34378
34376
|
} catch (t) {
|
|
34379
34377
|
if (Hm(t))
|
|
34380
34378
|
return;
|
|
34381
|
-
|
|
34379
|
+
Ot("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
34382
34380
|
}
|
|
34383
34381
|
}
|
|
34384
34382
|
async function Ej(e) {
|
|
@@ -34387,7 +34385,7 @@ async function Ej(e) {
|
|
|
34387
34385
|
type: "text/plain;charset=utf-8"
|
|
34388
34386
|
}), "pinia-state.json");
|
|
34389
34387
|
} catch (t) {
|
|
34390
|
-
|
|
34388
|
+
Ot("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
34391
34389
|
}
|
|
34392
34390
|
}
|
|
34393
34391
|
let Ba;
|
|
@@ -34412,9 +34410,9 @@ async function Lj(e) {
|
|
|
34412
34410
|
if (!a)
|
|
34413
34411
|
return;
|
|
34414
34412
|
const { text: n, file: s } = a;
|
|
34415
|
-
Gm(e, JSON.parse(n)),
|
|
34413
|
+
Gm(e, JSON.parse(n)), Ot(`Global state imported from "${s.name}".`);
|
|
34416
34414
|
} catch (t) {
|
|
34417
|
-
|
|
34415
|
+
Ot("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
|
|
34418
34416
|
}
|
|
34419
34417
|
}
|
|
34420
34418
|
function Gm(e, t) {
|
|
@@ -34513,7 +34511,7 @@ function Fj(e, t) {
|
|
|
34513
34511
|
componentStateTypes: Po,
|
|
34514
34512
|
app: e
|
|
34515
34513
|
}, (a) => {
|
|
34516
|
-
typeof a.now != "function" &&
|
|
34514
|
+
typeof a.now != "function" && Ot("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), a.addTimelineLayer({
|
|
34517
34515
|
id: rn,
|
|
34518
34516
|
label: "Pinia 🍍",
|
|
34519
34517
|
color: 15064968
|
|
@@ -34558,7 +34556,7 @@ function Fj(e, t) {
|
|
|
34558
34556
|
tooltip: 'Reset the state (with "$reset")',
|
|
34559
34557
|
action: (n) => {
|
|
34560
34558
|
const s = t._s.get(n);
|
|
34561
|
-
s ? typeof s.$reset != "function" ?
|
|
34559
|
+
s ? typeof s.$reset != "function" ? Ot(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), Ot(`Store "${n}" reset.`)) : Ot(`Cannot reset "${n}" store because it wasn't found.`, "warn");
|
|
34562
34560
|
}
|
|
34563
34561
|
}
|
|
34564
34562
|
]
|
|
@@ -34573,7 +34571,7 @@ function Fj(e, t) {
|
|
|
34573
34571
|
editable: !0,
|
|
34574
34572
|
value: l._isOptionsAPI ? {
|
|
34575
34573
|
_custom: {
|
|
34576
|
-
value:
|
|
34574
|
+
value: kt(l.$state),
|
|
34577
34575
|
actions: [
|
|
34578
34576
|
{
|
|
34579
34577
|
icon: "restore",
|
|
@@ -34617,7 +34615,7 @@ function Fj(e, t) {
|
|
|
34617
34615
|
if (n.app === e && n.inspectorId === Vt) {
|
|
34618
34616
|
const o = n.nodeId === Xi ? t : t._s.get(n.nodeId);
|
|
34619
34617
|
if (!o)
|
|
34620
|
-
return
|
|
34618
|
+
return Ot(`store "${n.nodeId}" not found`, "error");
|
|
34621
34619
|
const { path: r } = n;
|
|
34622
34620
|
uc(o) ? r.unshift("state") : (r.length !== 1 || !o._customProperties.has(r[0]) || r[0] in o.$state) && r.unshift("$state"), xn = !1, n.set(o, r, n.state.value), xn = !0;
|
|
34623
34621
|
}
|
|
@@ -34625,10 +34623,10 @@ function Fj(e, t) {
|
|
|
34625
34623
|
if (n.type.startsWith("🍍")) {
|
|
34626
34624
|
const s = n.type.replace(/^🍍\s*/, ""), o = t._s.get(s);
|
|
34627
34625
|
if (!o)
|
|
34628
|
-
return
|
|
34626
|
+
return Ot(`store "${s}" not found`, "error");
|
|
34629
34627
|
const { path: r } = n;
|
|
34630
34628
|
if (r[0] !== "state")
|
|
34631
|
-
return
|
|
34629
|
+
return Ot(`Invalid path for store "${s}":
|
|
34632
34630
|
${r}
|
|
34633
34631
|
Only state can be modified.`);
|
|
34634
34632
|
r[0] = "$state", xn = !1, n.set(o, r, n.state.value), xn = !0;
|
|
@@ -34762,13 +34760,13 @@ function qj(e, t) {
|
|
|
34762
34760
|
});
|
|
34763
34761
|
const { $dispose: o } = t;
|
|
34764
34762
|
t.$dispose = () => {
|
|
34765
|
-
o(), a.notifyComponentUpdate(), a.sendInspectorTree(Vt), a.sendInspectorState(Vt), a.getSettings().logStoreChanges &&
|
|
34766
|
-
}, a.notifyComponentUpdate(), a.sendInspectorTree(Vt), a.sendInspectorState(Vt), a.getSettings().logStoreChanges &&
|
|
34763
|
+
o(), a.notifyComponentUpdate(), a.sendInspectorTree(Vt), a.sendInspectorState(Vt), a.getSettings().logStoreChanges && Ot(`Disposed "${t.$id}" store 🗑`);
|
|
34764
|
+
}, a.notifyComponentUpdate(), a.sendInspectorTree(Vt), a.sendInspectorState(Vt), a.getSettings().logStoreChanges && Ot(`"${t.$id}" store installed 🆕`);
|
|
34767
34765
|
});
|
|
34768
34766
|
}
|
|
34769
34767
|
let Ym = 0, Xa;
|
|
34770
34768
|
function _d(e, t, a) {
|
|
34771
|
-
const n = t.reduce((s, o) => (s[o] =
|
|
34769
|
+
const n = t.reduce((s, o) => (s[o] = kt(e)[o], s), {});
|
|
34772
34770
|
for (const s in n)
|
|
34773
34771
|
e[s] = function() {
|
|
34774
34772
|
const o = Ym, r = a ? new Proxy(e, {
|
|
@@ -34789,7 +34787,7 @@ function Bj({ app: e, store: t, options: a }) {
|
|
|
34789
34787
|
return;
|
|
34790
34788
|
t._isOptionsAPI = !!a.state, _d(t, Object.keys(a.actions), t._isOptionsAPI);
|
|
34791
34789
|
const n = t._hotUpdate;
|
|
34792
|
-
|
|
34790
|
+
kt(t)._hotUpdate = function(s) {
|
|
34793
34791
|
n.apply(this, arguments), _d(t, Object.keys(s._hmrPayload.actions), !!t._isOptionsAPI);
|
|
34794
34792
|
}, qj(
|
|
34795
34793
|
e,
|
|
@@ -34860,7 +34858,7 @@ const Gj = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
34860
34858
|
function Wj(e) {
|
|
34861
34859
|
return !_n(e) || !e.hasOwnProperty(Gj);
|
|
34862
34860
|
}
|
|
34863
|
-
const { assign:
|
|
34861
|
+
const { assign: ca } = Object;
|
|
34864
34862
|
function Id(e) {
|
|
34865
34863
|
return !!(Ze(e) && e.effect);
|
|
34866
34864
|
}
|
|
@@ -34873,7 +34871,7 @@ function Td(e, t, a, n) {
|
|
|
34873
34871
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
34874
34872
|
Mo(L(s ? s() : {}).value)
|
|
34875
34873
|
) : Mo(a.state.value[e]);
|
|
34876
|
-
return
|
|
34874
|
+
return ca(d, o, Object.keys(r || {}).reduce((p, f) => (process.env.NODE_ENV !== "production" && f in d && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), p[f] = dn(D(() => {
|
|
34877
34875
|
zs(a);
|
|
34878
34876
|
const m = a._s.get(e);
|
|
34879
34877
|
return r[f].call(m, m);
|
|
@@ -34883,7 +34881,7 @@ function Td(e, t, a, n) {
|
|
|
34883
34881
|
}
|
|
34884
34882
|
function tl(e, t, a = {}, n, s, o) {
|
|
34885
34883
|
let r;
|
|
34886
|
-
const l =
|
|
34884
|
+
const l = ca({ actions: {} }, a);
|
|
34887
34885
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
|
34888
34886
|
throw new Error("Pinia destroyed");
|
|
34889
34887
|
const u = {
|
|
@@ -34918,7 +34916,7 @@ function tl(e, t, a = {}, n, s, o) {
|
|
|
34918
34916
|
const w = o ? function() {
|
|
34919
34917
|
const { state: A } = a, x = A ? A() : {};
|
|
34920
34918
|
this.$patch((V) => {
|
|
34921
|
-
|
|
34919
|
+
ca(V, x);
|
|
34922
34920
|
});
|
|
34923
34921
|
} : (
|
|
34924
34922
|
/* istanbul ignore next */
|
|
@@ -34974,11 +34972,11 @@ function tl(e, t, a = {}, n, s, o) {
|
|
|
34974
34972
|
type: La.direct,
|
|
34975
34973
|
events: m
|
|
34976
34974
|
}, U);
|
|
34977
|
-
},
|
|
34975
|
+
}, ca({}, u, A)));
|
|
34978
34976
|
return x;
|
|
34979
34977
|
},
|
|
34980
34978
|
$dispose: S
|
|
34981
|
-
}, b = zt(process.env.NODE_ENV !== "production" || Ms ?
|
|
34979
|
+
}, b = zt(process.env.NODE_ENV !== "production" || Ms ? ca(
|
|
34982
34980
|
{
|
|
34983
34981
|
_hmrPayload: _,
|
|
34984
34982
|
_customProperties: dn(/* @__PURE__ */ new Set())
|
|
@@ -35004,13 +35002,13 @@ function tl(e, t, a = {}, n, s, o) {
|
|
|
35004
35002
|
) : A, Pr && (k._getters || // @ts-expect-error: same
|
|
35005
35003
|
(k._getters = dn([]))).push(O));
|
|
35006
35004
|
}
|
|
35007
|
-
if (
|
|
35005
|
+
if (ca(b, k), ca(kt(b), k), Object.defineProperty(b, "$state", {
|
|
35008
35006
|
get: () => process.env.NODE_ENV !== "production" && s ? h.value : n.state.value[e],
|
|
35009
35007
|
set: (O) => {
|
|
35010
35008
|
if (process.env.NODE_ENV !== "production" && s)
|
|
35011
35009
|
throw new Error("cannot set hotState");
|
|
35012
35010
|
g((A) => {
|
|
35013
|
-
|
|
35011
|
+
ca(A, O);
|
|
35014
35012
|
});
|
|
35015
35013
|
}
|
|
35016
35014
|
}), process.env.NODE_ENV !== "production" && (b._hotUpdate = dn((O) => {
|
|
@@ -35049,7 +35047,7 @@ function tl(e, t, a = {}, n, s, o) {
|
|
|
35049
35047
|
enumerable: !1
|
|
35050
35048
|
};
|
|
35051
35049
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
|
|
35052
|
-
Object.defineProperty(b, A,
|
|
35050
|
+
Object.defineProperty(b, A, ca({ value: b[A] }, O));
|
|
35053
35051
|
});
|
|
35054
35052
|
}
|
|
35055
35053
|
return n._p.forEach((O) => {
|
|
@@ -35060,9 +35058,9 @@ function tl(e, t, a = {}, n, s, o) {
|
|
|
35060
35058
|
pinia: n,
|
|
35061
35059
|
options: l
|
|
35062
35060
|
}));
|
|
35063
|
-
Object.keys(A || {}).forEach((x) => b._customProperties.add(x)),
|
|
35061
|
+
Object.keys(A || {}).forEach((x) => b._customProperties.add(x)), ca(b, A);
|
|
35064
35062
|
} else
|
|
35065
|
-
|
|
35063
|
+
ca(b, r.run(() => O({
|
|
35066
35064
|
store: b,
|
|
35067
35065
|
app: n._a,
|
|
35068
35066
|
pinia: n,
|
|
@@ -35090,7 +35088,7 @@ This will fail in production.`);
|
|
|
35090
35088
|
l = Is, l._s.has(n) || (o ? tl(n, t, s, l) : Td(n, s, l), process.env.NODE_ENV !== "production" && (r._pinia = l));
|
|
35091
35089
|
const d = l._s.get(n);
|
|
35092
35090
|
if (process.env.NODE_ENV !== "production" && u) {
|
|
35093
|
-
const p = "__hot:" + n, f = o ? tl(p, t, s, l, !0) : Td(p,
|
|
35091
|
+
const p = "__hot:" + n, f = o ? tl(p, t, s, l, !0) : Td(p, ca({}, s), l, !0);
|
|
35094
35092
|
u._hotUpdate(f), delete l.state.value[p], l._s.delete(p);
|
|
35095
35093
|
}
|
|
35096
35094
|
if (process.env.NODE_ENV !== "production" && Pr) {
|
|
@@ -35234,13 +35232,13 @@ class $m {
|
|
|
35234
35232
|
v
|
|
35235
35233
|
)?.controlId;
|
|
35236
35234
|
let w = `.rok-subtable-content-${r.id}`;
|
|
35237
|
-
!
|
|
35235
|
+
!Ct() && r.props.mobileShowType === "tile" && (w = `[data-cid=${g}]`), await go(
|
|
35238
35236
|
w,
|
|
35239
35237
|
void 0,
|
|
35240
|
-
!
|
|
35238
|
+
!Ct() && r.props.mobileShowType === "tile" ? h - 1 : void 0
|
|
35241
35239
|
);
|
|
35242
35240
|
const S = t.getInstance(g, -1);
|
|
35243
|
-
|
|
35241
|
+
Ct() && await t?.emit("formsubmit:subtablebefore", {
|
|
35244
35242
|
instance: r,
|
|
35245
35243
|
value: Number(m[0]) - 1,
|
|
35246
35244
|
options: {
|
|
@@ -35250,7 +35248,7 @@ class $m {
|
|
|
35250
35248
|
}
|
|
35251
35249
|
});
|
|
35252
35250
|
const T = f?.[0]?.[0], _ = r.props.caption + ":" + (v ? T.includes(S?.props.caption || "") ? "" : S?.props.caption : "") + f?.[0]?.[0];
|
|
35253
|
-
|
|
35251
|
+
Dt("fail", _);
|
|
35254
35252
|
break;
|
|
35255
35253
|
case "calcResult": {
|
|
35256
35254
|
const I = n.source.controlId, b = n.result, P = n.rowIndex, k = t.getInstance(I, P), O = t.getState(I, P);
|
|
@@ -35822,7 +35820,7 @@ class Jm {
|
|
|
35822
35820
|
* @param control 控件
|
|
35823
35821
|
* */
|
|
35824
35822
|
getControlIsHide(t) {
|
|
35825
|
-
return t.props.isHide ? !0 :
|
|
35823
|
+
return t.props.isHide ? !0 : Nt(t.parent) ? !1 : this.getControlIsHide(t.parent);
|
|
35826
35824
|
}
|
|
35827
35825
|
apply(t) {
|
|
35828
35826
|
this.engine = t, this.watchControlChange(), this.watchSubtableChange(), this.watchSchemaHideChange(), this.watchWorkerDataStoreChange(), this.engine.on("engine-mounted", () => {
|
|
@@ -35842,7 +35840,7 @@ class Jm {
|
|
|
35842
35840
|
* */
|
|
35843
35841
|
allCalcControlComputed() {
|
|
35844
35842
|
this.calcControls.forEach((t) => {
|
|
35845
|
-
(t.props.calcOnMounted === !0 ||
|
|
35843
|
+
(t.props.calcOnMounted === !0 || Nt(t.props.dataBind?.result?.fieldCode) || t.props.dataBind?.result?.fieldCode === "") && this.computedCalcValue(t);
|
|
35846
35844
|
});
|
|
35847
35845
|
}
|
|
35848
35846
|
/**
|
|
@@ -36066,7 +36064,7 @@ class Km {
|
|
|
36066
36064
|
refreshToolbarStatus(t) {
|
|
36067
36065
|
ja(this.engine)?.children.map((n) => {
|
|
36068
36066
|
const s = n.props.optObj;
|
|
36069
|
-
if (!
|
|
36067
|
+
if (!Nt(s?.optCode) && s?.optCode !== "") {
|
|
36070
36068
|
const o = this.optItemConfig.find(
|
|
36071
36069
|
(u) => u.opt_code === s.optCode
|
|
36072
36070
|
), r = t.length > 1, l = t.length === 1;
|
|
@@ -37245,8 +37243,8 @@ const EV = /* @__PURE__ */ be(DV, [["__scopeId", "data-v-db040672"]]), NV = /* @
|
|
|
37245
37243
|
() => n.value.labelPosition === "top" ? "" : "104px"
|
|
37246
37244
|
), r = D(
|
|
37247
37245
|
() => n.value.isHideCaption || // instanceProps.value.isHideCaption === undefined
|
|
37248
|
-
|
|
37249
|
-
), l = D(() => n.value.isHideCaption ||
|
|
37246
|
+
Nt(n.value.isHideCaption) ? void 0 : n.value.caption
|
|
37247
|
+
), l = D(() => n.value.isHideCaption || Nt(n.value.isHideCaption) ? void 0 : i(r)), u = D(
|
|
37250
37248
|
() => n.value?.defaultState === "readonly" || e.control.pageStatus !== 2
|
|
37251
37249
|
), c = D(
|
|
37252
37250
|
() => n.value.required && e.control.pageStatus !== 5
|
|
@@ -37576,7 +37574,7 @@ const pz = {
|
|
|
37576
37574
|
const c = L({}), d = D(
|
|
37577
37575
|
() => i(s).selectionType === "multiple"
|
|
37578
37576
|
), p = D(
|
|
37579
|
-
() =>
|
|
37577
|
+
() => Ct() ? i(y) ? i(s).selectionType : void 0 : i(s).selectionType
|
|
37580
37578
|
);
|
|
37581
37579
|
ft("change", (g) => {
|
|
37582
37580
|
if (g.instance?.id === e?.id && g.rowIndex === void 0 && i(n)?.isMounted === !0) {
|
|
@@ -38492,7 +38490,7 @@ const $z = /* @__PURE__ */ be(mz, [["render", Qz], ["__scopeId", "data-v-4824bf5
|
|
|
38492
38490
|
column_name: "",
|
|
38493
38491
|
desc: -1
|
|
38494
38492
|
});
|
|
38495
|
-
let u =
|
|
38493
|
+
let u = pa(i(n), e.gridTableId, "orders");
|
|
38496
38494
|
const c = zt({
|
|
38497
38495
|
column_name: u && u.length ? u[0].columnName : "",
|
|
38498
38496
|
desc: u && u.length ? u[0].desc ? 0 : 1 : -1
|
|
@@ -39159,7 +39157,7 @@ const WF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
39159
39157
|
a.value = !1;
|
|
39160
39158
|
};
|
|
39161
39159
|
return mt(() => {
|
|
39162
|
-
|
|
39160
|
+
Lt(() => {
|
|
39163
39161
|
b.value = k();
|
|
39164
39162
|
}, 500);
|
|
39165
39163
|
}), hr({
|
|
@@ -39386,7 +39384,7 @@ const d2 = /* @__PURE__ */ be(u2, [["__scopeId", "data-v-35a35844"]]), p2 = /* @
|
|
|
39386
39384
|
const k = new FormData();
|
|
39387
39385
|
k.append("file", P), dr({
|
|
39388
39386
|
method: "post",
|
|
39389
|
-
url:
|
|
39387
|
+
url: ma.getFullPath("/apps/api/v1/private/attachment/uploadAttachments"),
|
|
39390
39388
|
data: k,
|
|
39391
39389
|
withCredentials: !0,
|
|
39392
39390
|
headers: tr({
|
|
@@ -40032,7 +40030,7 @@ function Q2(e, t, a, n) {
|
|
|
40032
40030
|
e.children.map((h) => {
|
|
40033
40031
|
h.pageStatus = 2, n?.setState(h.id, h.props.defaultValue || "");
|
|
40034
40032
|
});
|
|
40035
|
-
const d = await r(), p = document.querySelector(".sort-symbol-on"), f = p?.parentElement?.getAttribute("order-field-code"), m =
|
|
40033
|
+
const d = await r(), p = document.querySelector(".sort-symbol-on"), f = p?.parentElement?.getAttribute("order-field-code"), m = pa(i(n), i(c), "orders"), y = m?.findIndex(
|
|
40036
40034
|
(h) => h.columnName === f
|
|
40037
40035
|
);
|
|
40038
40036
|
y && m.splice(m.indexOf(y), 1), hb(i(n), i(c), "orders", m), p?.classList?.remove("sort-symbol-on"), t("onGetList", { queryInfo: d, isFilter: !1 }), i(n)?.emit("search-reset", {});
|
|
@@ -40043,7 +40041,7 @@ function Q2(e, t, a, n) {
|
|
|
40043
40041
|
u.children.filter((d) => d.type === "grid-table")[0].id
|
|
40044
40042
|
);
|
|
40045
40043
|
return mt(() => {
|
|
40046
|
-
const d =
|
|
40044
|
+
const d = pa(i(n), c.value, "query"), p = {};
|
|
40047
40045
|
e.children.forEach((m) => {
|
|
40048
40046
|
const y = d?.filter(
|
|
40049
40047
|
(h) => h.key === m.props.dataBind.fieldCode
|
|
@@ -40086,7 +40084,7 @@ const $2 = ue({
|
|
|
40086
40084
|
});
|
|
40087
40085
|
const p = async () => {
|
|
40088
40086
|
const f = await c.handleSubmit();
|
|
40089
|
-
a.value = !f,
|
|
40087
|
+
a.value = !f, Lt(() => {
|
|
40090
40088
|
l.emit("filterSearch");
|
|
40091
40089
|
}, 2e3);
|
|
40092
40090
|
};
|
|
@@ -40249,7 +40247,7 @@ const hh = /* @__PURE__ */ be($2, [["render", nq]]), sq = ue({
|
|
|
40249
40247
|
d.value,
|
|
40250
40248
|
void 0
|
|
40251
40249
|
), U = D(() => !V.value.isHide);
|
|
40252
|
-
|
|
40250
|
+
pa(
|
|
40253
40251
|
i(a),
|
|
40254
40252
|
u.value.id,
|
|
40255
40253
|
"orders"
|
|
@@ -40288,7 +40286,7 @@ const hh = /* @__PURE__ */ be($2, [["render", nq]]), sq = ue({
|
|
|
40288
40286
|
}, N = D(
|
|
40289
40287
|
() => r.value?.isAllLoaded ?? !0
|
|
40290
40288
|
);
|
|
40291
|
-
Zt("isDataLoad", N.value),
|
|
40289
|
+
Zt("isDataLoad", N.value), la(() => {
|
|
40292
40290
|
N.value && y.value.viewValue === "all" && R();
|
|
40293
40291
|
});
|
|
40294
40292
|
const q = u.value.id;
|
|
@@ -40546,7 +40544,7 @@ const Tq = /* @__PURE__ */ be(Iq, [["__scopeId", "data-v-4af498b3"]]), Pq = /* @
|
|
|
40546
40544
|
placeholder: i(n),
|
|
40547
40545
|
onBlur: i(m),
|
|
40548
40546
|
onFocus: i(f)
|
|
40549
|
-
},
|
|
40547
|
+
}, fa({ _: 2 }, [
|
|
40550
40548
|
i(s) ? {
|
|
40551
40549
|
name: "label",
|
|
40552
40550
|
fn: Q(() => [
|
|
@@ -40622,7 +40620,7 @@ function Rq(e) {
|
|
|
40622
40620
|
})) : s(e.value).then(() => {
|
|
40623
40621
|
}));
|
|
40624
40622
|
};
|
|
40625
|
-
return
|
|
40623
|
+
return la(o), {
|
|
40626
40624
|
options: a,
|
|
40627
40625
|
getDisplayValue: s,
|
|
40628
40626
|
initValue: o
|
|
@@ -41090,7 +41088,7 @@ const pB = /* @__PURE__ */ be(dB, [["__scopeId", "data-v-f8a08ca4"]]), fB = /* @
|
|
|
41090
41088
|
l();
|
|
41091
41089
|
}), p = D(() => c.value.required);
|
|
41092
41090
|
mt(() => {
|
|
41093
|
-
|
|
41091
|
+
Lt(() => {
|
|
41094
41092
|
n();
|
|
41095
41093
|
const m = r.value ? t.value : t.value || "--";
|
|
41096
41094
|
o.value?.setContent(m);
|
|
@@ -41701,7 +41699,7 @@ const qB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41701
41699
|
name: ee.name,
|
|
41702
41700
|
class: "ok-render-control ok-date-range",
|
|
41703
41701
|
"instance-props": i(a)
|
|
41704
|
-
},
|
|
41702
|
+
}, fa({
|
|
41705
41703
|
default: Q(() => [
|
|
41706
41704
|
i(b) ? (C(), j(he, { key: 0 }, [
|
|
41707
41705
|
E("div", UB, [
|
|
@@ -41719,7 +41717,7 @@ const qB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41719
41717
|
rules: i(g),
|
|
41720
41718
|
"is-link": V.value[0] === "",
|
|
41721
41719
|
onClick: $[2] || ($[2] = (ie) => R(0))
|
|
41722
|
-
},
|
|
41720
|
+
}, fa({ _: 2 }, [
|
|
41723
41721
|
V.value[0] !== "" ? {
|
|
41724
41722
|
name: "button",
|
|
41725
41723
|
fn: Q(() => [
|
|
@@ -41748,7 +41746,7 @@ const qB = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
41748
41746
|
rules: W.value,
|
|
41749
41747
|
"is-link": V.value[1] === "",
|
|
41750
41748
|
onClick: $[4] || ($[4] = (ie) => R(1))
|
|
41751
|
-
},
|
|
41749
|
+
}, fa({ _: 2 }, [
|
|
41752
41750
|
V.value[1] !== "" ? {
|
|
41753
41751
|
name: "button",
|
|
41754
41752
|
fn: Q(() => [
|
|
@@ -42551,7 +42549,7 @@ function KU(e, t, a, n, s, o, r) {
|
|
|
42551
42549
|
const I = await ZU(i(e), t), b = mr(
|
|
42552
42550
|
I?.data_model?.data_field_list ?? []
|
|
42553
42551
|
);
|
|
42554
|
-
if (
|
|
42552
|
+
if (Nt(b) || b?.field_code !== s) {
|
|
42555
42553
|
l = !1;
|
|
42556
42554
|
return;
|
|
42557
42555
|
}
|
|
@@ -42621,13 +42619,13 @@ function KU(e, t, a, n, s, o, r) {
|
|
|
42621
42619
|
const x = i(o).getAction().actionUtils.getPageStatus();
|
|
42622
42620
|
(x === "new" || x === "edit") && r.value.defaultState !== "readonly" || (c.value = "CSSCanViewForm");
|
|
42623
42621
|
}
|
|
42624
|
-
|
|
42622
|
+
la(() => {
|
|
42625
42623
|
l === !0 && S();
|
|
42626
42624
|
});
|
|
42627
42625
|
const T = () => {
|
|
42628
42626
|
const I = !!r.value?.priorityProcess && en(w.value) && w.value !== "", b = g.value.appId, P = i(o)?.externalParams.url.sappId, k = m.multipleTabs, O = k[P]?.panesList ?? [];
|
|
42629
42627
|
if (O?.length >= 20) {
|
|
42630
|
-
|
|
42628
|
+
Dt(
|
|
42631
42629
|
"warning",
|
|
42632
42630
|
B("LRT.message.appLauncherTabTip")
|
|
42633
42631
|
);
|
|
@@ -42662,7 +42660,7 @@ function KU(e, t, a, n, s, o, r) {
|
|
|
42662
42660
|
}
|
|
42663
42661
|
function XU(e, t, a = !1) {
|
|
42664
42662
|
mt(async () => {
|
|
42665
|
-
e !== void 0 && i(t) && (await De(), i(t).focus(), a === !0 &&
|
|
42663
|
+
e !== void 0 && i(t) && (await De(), i(t).focus(), a === !0 && Lt(() => {
|
|
42666
42664
|
i(t)?.select?.();
|
|
42667
42665
|
}, 100));
|
|
42668
42666
|
});
|
|
@@ -42751,7 +42749,7 @@ function e4(e) {
|
|
|
42751
42749
|
label: Dc(N, h.data)
|
|
42752
42750
|
}
|
|
42753
42751
|
];
|
|
42754
|
-
if (n(q), w.value = q, oi?.get(e.instance)?.set(h.value,
|
|
42752
|
+
if (n(q), w.value = q, oi?.get(e.instance)?.set(h.value, kt(h.data)), Y?.length) {
|
|
42755
42753
|
const H = t?.value.multistageFilling?.map((G) => ({
|
|
42756
42754
|
field_value: h.data.data_value_map[G.fieldCode],
|
|
42757
42755
|
field_code: G.fieldCode,
|
|
@@ -42803,7 +42801,7 @@ function e4(e) {
|
|
|
42803
42801
|
const U = s(e.value)[0];
|
|
42804
42802
|
e.value && (U ? w.value = [{ value: e.value, label: U }] : await _(e.value, !0));
|
|
42805
42803
|
};
|
|
42806
|
-
|
|
42804
|
+
la(async () => {
|
|
42807
42805
|
x();
|
|
42808
42806
|
});
|
|
42809
42807
|
const V = (U, Y) => (i(o)[Y] === Je.TIMESTAMP || i(o)[Y] === Je.DATETIME) && U ? le(Number(U)).format("YYYY-MM-DD HH:mm:ss") ?? "--" : Hd(U) || U === "" ? "--" : U;
|
|
@@ -43056,7 +43054,7 @@ const v4 = /* @__PURE__ */ be(y4, [["__scopeId", "data-v-485959a4"]]), g4 = /* @
|
|
|
43056
43054
|
ROKSimpleSearch: hh
|
|
43057
43055
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
43058
43056
|
function Sh(e) {
|
|
43059
|
-
if (
|
|
43057
|
+
if (Nt(e?.children))
|
|
43060
43058
|
return {
|
|
43061
43059
|
children: ct([])
|
|
43062
43060
|
};
|
|
@@ -43812,7 +43810,7 @@ function W4(e) {
|
|
|
43812
43810
|
instance: e.instance,
|
|
43813
43811
|
value: e.value
|
|
43814
43812
|
}), Y = async ($, ae, de) => {
|
|
43815
|
-
if (ci($) && ($ =
|
|
43813
|
+
if (ci($) && ($ = kt($)), typeof $ > "u" || $ === "" || Hd($) || typeof $ == "object" && !Object.keys($).length)
|
|
43816
43814
|
return "";
|
|
43817
43815
|
let se;
|
|
43818
43816
|
switch (ae.type) {
|
|
@@ -43876,7 +43874,7 @@ function W4(e) {
|
|
|
43876
43874
|
tt.props
|
|
43877
43875
|
), { getCacheDisplayValue: rt, updateCacheDisplay: Bt } = Kt(tt);
|
|
43878
43876
|
let Ya = rt($)[0];
|
|
43879
|
-
|
|
43877
|
+
Nt(Ya) && $ && $ != "" && nt($).then((ba) => {
|
|
43880
43878
|
if (ba === null) {
|
|
43881
43879
|
i(s)?.setState(tt.id, void 0, de);
|
|
43882
43880
|
return;
|
|
@@ -43971,7 +43969,7 @@ function W4(e) {
|
|
|
43971
43969
|
return;
|
|
43972
43970
|
}
|
|
43973
43971
|
}, W = L(!0);
|
|
43974
|
-
|
|
43972
|
+
Lt(() => {
|
|
43975
43973
|
W.value = !1;
|
|
43976
43974
|
}, 300);
|
|
43977
43975
|
const te = ($, ae) => {
|
|
@@ -44133,7 +44131,7 @@ const Y4 = (e) => (qe("data-v-1fc65aff"), e = e(), Be(), e), Z4 = { key: 0 }, Q4
|
|
|
44133
44131
|
class: fe([
|
|
44134
44132
|
!i(u)?.mobileIsTile && q.instance.pageStatus === 1 || q.instance.pageStatus !== 1 ? "hasTile" : "noTitle"
|
|
44135
44133
|
])
|
|
44136
|
-
},
|
|
44134
|
+
}, fa({
|
|
44137
44135
|
default: Q(() => [
|
|
44138
44136
|
E("div", n3, [
|
|
44139
44137
|
$.props.isHide ? oe("", !0) : (C(), X(ke(`rok-${$.type}`), {
|
|
@@ -44382,7 +44380,7 @@ function v3(e, t) {
|
|
|
44382
44380
|
), c = (w, S) => {
|
|
44383
44381
|
i(l)?.setColumnsVisible(w, !0), i(l)?.setColumnsVisible(S, !1);
|
|
44384
44382
|
}, { saveViewConfig: d } = y3(), p = L(!0), f = (w) => {
|
|
44385
|
-
l.value = w.api,
|
|
44383
|
+
l.value = w.api, Lt(() => {
|
|
44386
44384
|
i(a)?.isMounted && (p.value = !1);
|
|
44387
44385
|
}, 200), i(l)?.setGridOption("columnDefs", e.columns), t("gridReadyApi", w.api);
|
|
44388
44386
|
}, m = (w) => {
|
|
@@ -44390,7 +44388,7 @@ function v3(e, t) {
|
|
|
44390
44388
|
}, y = (w) => {
|
|
44391
44389
|
console.info("event", w, "col");
|
|
44392
44390
|
};
|
|
44393
|
-
|
|
44391
|
+
la(() => {
|
|
44394
44392
|
p.value = !1;
|
|
44395
44393
|
});
|
|
44396
44394
|
const h = () => {
|
|
@@ -45146,7 +45144,7 @@ function Nd(e) {
|
|
|
45146
45144
|
}
|
|
45147
45145
|
kr.parseTag = lH;
|
|
45148
45146
|
kr.parseAttr = uH;
|
|
45149
|
-
var hH = yc.FilterCSS,
|
|
45147
|
+
var hH = yc.FilterCSS, ua = yt, zh = kr, yH = zh.parseTag, vH = zh.parseAttr, Co = vc;
|
|
45150
45148
|
function io(e) {
|
|
45151
45149
|
return e == null;
|
|
45152
45150
|
}
|
|
@@ -45181,15 +45179,15 @@ function wH(e) {
|
|
|
45181
45179
|
function Fh(e) {
|
|
45182
45180
|
e = bH(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
|
|
45183
45181
|
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
45184
|
-
), e.onIgnoreTag =
|
|
45182
|
+
), e.onIgnoreTag = ua.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = wH(e.whiteList || e.allowList) : e.whiteList = ua.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : ua.attributeWrapSign, e.onTag = e.onTag || ua.onTag, e.onTagAttr = e.onTagAttr || ua.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || ua.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || ua.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || ua.safeAttrValue, e.escapeHtml = e.escapeHtml || ua.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new hH(e.css));
|
|
45185
45183
|
}
|
|
45186
45184
|
Fh.prototype.process = function(e) {
|
|
45187
45185
|
if (e = e || "", e = e.toString(), !e)
|
|
45188
45186
|
return "";
|
|
45189
45187
|
var t = this, a = t.options, n = a.whiteList, s = a.onTag, o = a.onIgnoreTag, r = a.onTagAttr, l = a.onIgnoreTagAttr, u = a.safeAttrValue, c = a.escapeHtml, d = t.attributeWrapSign, p = t.cssFilter;
|
|
45190
|
-
a.stripBlankChar && (e =
|
|
45188
|
+
a.stripBlankChar && (e = ua.stripBlankChar(e)), a.allowCommentTag || (e = ua.stripCommentTag(e));
|
|
45191
45189
|
var f = !1;
|
|
45192
|
-
a.stripIgnoreTagBody && (f =
|
|
45190
|
+
a.stripIgnoreTagBody && (f = ua.StripTagBody(
|
|
45193
45191
|
a.stripIgnoreTagBody,
|
|
45194
45192
|
o
|
|
45195
45193
|
), o = f.onIgnoreTag);
|
|
@@ -45387,7 +45385,7 @@ const PH = [
|
|
|
45387
45385
|
});
|
|
45388
45386
|
const g = s.getAction().actionUtils, { getCacheDisplayValue: w, updateCacheDisplay: S } = Kt(y);
|
|
45389
45387
|
let T = w(e.value)[0];
|
|
45390
|
-
|
|
45388
|
+
Nt(T) && e.value && e.value != "" && g.getDisplay(y, e.value).then((_) => {
|
|
45391
45389
|
if (_ === null) {
|
|
45392
45390
|
s.setState(y.id, void 0, m);
|
|
45393
45391
|
return;
|
|
@@ -45525,7 +45523,7 @@ const PH = [
|
|
|
45525
45523
|
if (e) {
|
|
45526
45524
|
const a = e.children[0];
|
|
45527
45525
|
return {
|
|
45528
|
-
cellRenderer: (
|
|
45526
|
+
cellRenderer: (Ct() ? Fp : qp).includes(a?.type) ? (s) => CH(s, a) : "CellRendererFramework"
|
|
45529
45527
|
};
|
|
45530
45528
|
}
|
|
45531
45529
|
};
|
|
@@ -45557,7 +45555,7 @@ ue({
|
|
|
45557
45555
|
), t = this.engine?.getDataBindMapping()[e.props?.datasourceBind?.dataCode], a = {};
|
|
45558
45556
|
return t?.fields?.forEach((n) => {
|
|
45559
45557
|
Object.assign(a, {
|
|
45560
|
-
[n?.fieldCode]:
|
|
45558
|
+
[n?.fieldCode]: kt(this.params.data[n.controlId])
|
|
45561
45559
|
});
|
|
45562
45560
|
}), Object.assign(a, {
|
|
45563
45561
|
uid: this.params.data?.uid || ""
|
|
@@ -46677,14 +46675,14 @@ const k5 = /* @__PURE__ */ be(C5, [["__scopeId", "data-v-eb906f92"]]), M5 = /* @
|
|
|
46677
46675
|
const t = e, a = qt();
|
|
46678
46676
|
ar();
|
|
46679
46677
|
const n = we("mobile-title-teleport", "") || "#rok-title-container", o = document.querySelector(n) ? n : null, r = D(() => i(t.instanceProps)?.position === "top"), l = D(() => i(t.instanceProps)?.caption), u = D(() => t.value?.descript), c = D(() => t.value?.bizKey), d = D(() => t.value?.submit_user), p = D(() => t.value?.submit_dept), f = D(() => t.value?.submit_time), m = D(() => i(t.instanceProps)?.config), y = D(
|
|
46680
|
-
() => i(m)?.includes(
|
|
46678
|
+
() => i(m)?.includes(da.ShowTitle)
|
|
46681
46679
|
), h = D(() => t.instance.id in a.state.subtableFullHiddenControlsId ? a.state.subtableFullHiddenControlsId[t.instance.id] : !1), v = D(
|
|
46682
|
-
() => i(m)?.includes(
|
|
46680
|
+
() => i(m)?.includes(da.ShowSubmitUser) && d.value
|
|
46683
46681
|
), g = D(() => {
|
|
46684
46682
|
const S = [];
|
|
46685
|
-
return v.value && S.push(d.value.employee_name), i(m)?.includes(
|
|
46683
|
+
return v.value && S.push(d.value.employee_name), i(m)?.includes(da.ShowSubmitDept) && p.value && S.push(p.value.department_name), i(m)?.includes(da.ShowSubmitTime) && f.value && S.push(f.value), S.join("_");
|
|
46686
46684
|
}), w = D(
|
|
46687
|
-
() => i(m)?.includes(
|
|
46685
|
+
() => i(m)?.includes(da.ShowBizKey) && c.value
|
|
46688
46686
|
);
|
|
46689
46687
|
return G1(t, { Dialog: In, Toast: Ge }), (S, T) => {
|
|
46690
46688
|
const _ = J("mok-avatar");
|
|
@@ -47620,7 +47618,7 @@ const mG = /* @__PURE__ */ be(fG, [["__scopeId", "data-v-27f80b28"]]), hG = /* @
|
|
|
47620
47618
|
const Oe = new FormData();
|
|
47621
47619
|
Oe.append("file", _e), dr({
|
|
47622
47620
|
method: "post",
|
|
47623
|
-
url:
|
|
47621
|
+
url: ma.getFullPath(
|
|
47624
47622
|
"/apps/api/v1/private/attachment/uploadAttachments"
|
|
47625
47623
|
),
|
|
47626
47624
|
data: Oe,
|
|
@@ -47708,9 +47706,9 @@ const mG = /* @__PURE__ */ be(fG, [["__scopeId", "data-v-27f80b28"]]), hG = /* @
|
|
|
47708
47706
|
e.instance.id,
|
|
47709
47707
|
[_e.data.f_id],
|
|
47710
47708
|
e.rowIndex
|
|
47711
|
-
) : _e.data.type, Oa ? (d.value = !1,
|
|
47709
|
+
) : _e.data.type, Oa ? (d.value = !1, Lt(() => {
|
|
47712
47710
|
d.value = !0;
|
|
47713
|
-
}, 100)) :
|
|
47711
|
+
}, 100)) : Lt(() => {
|
|
47714
47712
|
ie(e.value, "force");
|
|
47715
47713
|
}, 1500));
|
|
47716
47714
|
}, ge = (_e, Oe) => {
|
|
@@ -48033,8 +48031,8 @@ const mG = /* @__PURE__ */ be(fG, [["__scopeId", "data-v-27f80b28"]]), hG = /* @
|
|
|
48033
48031
|
};
|
|
48034
48032
|
}
|
|
48035
48033
|
});
|
|
48036
|
-
var
|
|
48037
|
-
return (
|
|
48034
|
+
var Et = function() {
|
|
48035
|
+
return (Et = Object.assign || function(e) {
|
|
48038
48036
|
for (var t, a = 1, n = arguments.length; a < n; a++)
|
|
48039
48037
|
for (var s in t = arguments[a])
|
|
48040
48038
|
Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
|
|
@@ -48244,7 +48242,7 @@ var Ld, Da, $o = (Ld = 0, function() {
|
|
|
48244
48242
|
};
|
|
48245
48243
|
}
|
|
48246
48244
|
return Da;
|
|
48247
|
-
},
|
|
48245
|
+
}, ia = function(e) {
|
|
48248
48246
|
cl().contentWindow && cl().contentWindow.postMessage(JSON.stringify(e), Gh("origin"));
|
|
48249
48247
|
};
|
|
48250
48248
|
function Wh(e, t, a) {
|
|
@@ -48255,23 +48253,23 @@ function Wh(e, t, a) {
|
|
|
48255
48253
|
l.eventName === a && l.msgId === s && (n(l.data), xt.remove(o));
|
|
48256
48254
|
}
|
|
48257
48255
|
};
|
|
48258
|
-
xt.add(o),
|
|
48256
|
+
xt.add(o), ia({ data: e, msgId: s, eventName: t });
|
|
48259
48257
|
});
|
|
48260
48258
|
}
|
|
48261
48259
|
var UG = function(e) {
|
|
48262
48260
|
return Wh(e, "wps.jssdk.api", "wps.api.reply");
|
|
48263
48261
|
}, ri = function(e) {
|
|
48264
48262
|
return Wh(e, "api.basic", "api.basic.reply");
|
|
48265
|
-
},
|
|
48263
|
+
}, Rt = { idMap: {} };
|
|
48266
48264
|
function Rd(e) {
|
|
48267
48265
|
return wt(this, void 0, void 0, function() {
|
|
48268
48266
|
var t, a, n, s, o, r, l, u, c, d;
|
|
48269
48267
|
return _t(this, function(p) {
|
|
48270
48268
|
switch (p.label) {
|
|
48271
48269
|
case 0:
|
|
48272
|
-
return us(e) ? [2] : (t = xt.parse(e.data), a = t.eventName, n = t.callbackId, s = t.data, n && (o =
|
|
48270
|
+
return us(e) ? [2] : (t = xt.parse(e.data), a = t.eventName, n = t.callbackId, s = t.data, n && (o = Rt.idMap[n]) ? (r = o.split(":"), l = r[0], u = r[1], a === "api.callback" && Rt[l] && Rt[l][u] ? [4, (d = Rt[l][u]).callback.apply(d, s.args)] : [3, 2]) : [3, 2]);
|
|
48273
48271
|
case 1:
|
|
48274
|
-
c = p.sent(),
|
|
48272
|
+
c = p.sent(), ia({ result: c, callbackId: n, eventName: "api.callback.reply" }), p.label = 2;
|
|
48275
48273
|
case 2:
|
|
48276
48274
|
return [2];
|
|
48277
48275
|
}
|
|
@@ -48281,8 +48279,8 @@ function Rd(e) {
|
|
|
48281
48279
|
var HG = function(e) {
|
|
48282
48280
|
return wt(void 0, void 0, void 0, function() {
|
|
48283
48281
|
function t() {
|
|
48284
|
-
return Object.keys(
|
|
48285
|
-
return
|
|
48282
|
+
return Object.keys(Rt.idMap).find(function(p) {
|
|
48283
|
+
return Rt.idMap[p] === n + ":" + a;
|
|
48286
48284
|
});
|
|
48287
48285
|
}
|
|
48288
48286
|
var a, n, s, o, r, l, u, c, d;
|
|
@@ -48291,7 +48289,7 @@ var HG = function(e) {
|
|
|
48291
48289
|
case 0:
|
|
48292
48290
|
return a = e.prop, n = e.parentObjId, [4, Yh([s = e.value])];
|
|
48293
48291
|
case 1:
|
|
48294
|
-
return o = p.sent(), r = o[0], l = o[1], e.value = r[0], u = Object.keys(l)[0], c =
|
|
48292
|
+
return o = p.sent(), r = o[0], l = o[1], e.value = r[0], u = Object.keys(l)[0], c = Rt[n], s === null && c && c[a] && ((d = t()) && delete Rt.idMap[d], delete c[a], Object.keys(c).length || delete Rt[n], Object.keys(Rt.idMap).length || xt.remove(Rd)), u && (Object.keys(Rt.idMap).length || xt.add(Rd), Rt[n] || (Rt[n] = {}), Rt[n][a] = { callbackId: u, callback: l[u] }, (d = t()) && delete Rt.idMap[d], Rt.idMap[u] = n + ":" + a), [2];
|
|
48295
48293
|
}
|
|
48296
48294
|
});
|
|
48297
48295
|
});
|
|
@@ -48313,7 +48311,7 @@ var HG = function(e) {
|
|
|
48313
48311
|
case 4:
|
|
48314
48312
|
return function(m) {
|
|
48315
48313
|
var y = m[0], h = m[1];
|
|
48316
|
-
typeof (y =
|
|
48314
|
+
typeof (y = Et({}, y)).data == "function" && (y.data = y.data()), h(), ia(y);
|
|
48317
48315
|
}([{ eventName: e, data: t, msgId: s }, function() {
|
|
48318
48316
|
var m = this, y = function(h) {
|
|
48319
48317
|
return wt(m, void 0, void 0, function() {
|
|
@@ -48323,7 +48321,7 @@ var HG = function(e) {
|
|
|
48323
48321
|
case 0:
|
|
48324
48322
|
return us(h) ? [2] : (v = xt.parse(h.data)).eventName === "api.callback" && v.callbackId && u[v.callbackId] ? [4, u[v.callbackId].apply(u, v.data.args)] : [3, 2];
|
|
48325
48323
|
case 1:
|
|
48326
|
-
g = S.sent(),
|
|
48324
|
+
g = S.sent(), ia({ result: g, eventName: "api.callback.reply", callbackId: v.callbackId }), S.label = 2;
|
|
48327
48325
|
case 2:
|
|
48328
48326
|
return v.eventName === e + ".reply" && v.msgId === s && (v.error ? ((w = new Error("")).stack = v.error + `
|
|
48329
48327
|
` + a, n && n(), r(w)) : o(v.result), xt.remove(y)), [2];
|
|
@@ -48380,7 +48378,7 @@ function Yh(e) {
|
|
|
48380
48378
|
}
|
|
48381
48379
|
var GG = function(e, t) {
|
|
48382
48380
|
t === void 0 && (t = !0);
|
|
48383
|
-
var a =
|
|
48381
|
+
var a = Et({}, e), n = a.headers, s = n === void 0 ? {} : n, o = a.subscriptions, r = o === void 0 ? {} : o, l = a.mode, u = l === void 0 ? Qo.nomal : l, c = a.commonOptions, d = s.backBtn, p = d === void 0 ? {} : d, f = s.shareBtn, m = f === void 0 ? {} : f, y = s.otherMenuBtn, h = y === void 0 ? {} : y, v = function(T, _) {
|
|
48384
48382
|
T.subscribe && typeof T.subscribe == "function" && (T.callback = _, r[_] = T.subscribe, t && delete T.subscribe);
|
|
48385
48383
|
};
|
|
48386
48384
|
if (v(p, "wpsconfig_back_btn"), v(m, "wpsconfig_share_btn"), v(h, "wpsconfig_other_menu_btn"), h.items && Array.isArray(h.items)) {
|
|
@@ -48413,15 +48411,15 @@ var GG = function(e, t) {
|
|
|
48413
48411
|
var S = "wpsconfig_print";
|
|
48414
48412
|
typeof r.print.subscribe == "function" && (r[S] = r.print.subscribe, a.print = { callback: S }, r.print.custom !== void 0 && (a.print.custom = r.print.custom)), delete r.print;
|
|
48415
48413
|
}
|
|
48416
|
-
return typeof r.exportPdf == "function" && (r[S = "wpsconfig_export_pdf"] = r.exportPdf, a.exportPdf = { callback: S }, delete r.exportPdf), a.commandBars && ko(a.commandBars, !1),
|
|
48414
|
+
return typeof r.exportPdf == "function" && (r[S = "wpsconfig_export_pdf"] = r.exportPdf, a.exportPdf = { callback: S }, delete r.exportPdf), a.commandBars && ko(a.commandBars, !1), Et(Et({}, a), { subscriptions: r });
|
|
48417
48415
|
}, WG = function(e) {
|
|
48418
|
-
var t =
|
|
48416
|
+
var t = Et({}, e);
|
|
48419
48417
|
t.fileToken = t.token || t.fileToken;
|
|
48420
48418
|
var a = t.appId, n = t.fileId, s = t.officeType, o = t.fileToken, r = t.endpoint, l = t.customArgs, u = l === void 0 ? "" : l;
|
|
48421
48419
|
if (!Object.values(Gn).includes(s))
|
|
48422
48420
|
throw Error("[WebOfficeSDK.init] officeType属性值错误,可选值参考WebOfficeSDK.OfficeType: " + JSON.stringify(Gn));
|
|
48423
48421
|
var c = o ? 1 : 0, d = { token: "" };
|
|
48424
|
-
if (typeof o == "string" ? d.token = o : Zo(o) && (d =
|
|
48422
|
+
if (typeof o == "string" ? d.token = o : Zo(o) && (d = Et({ tokenData: d }, o)), c && !d.token)
|
|
48425
48423
|
return console.error("[WebOfficeSDK.init] token设置无效"), t;
|
|
48426
48424
|
if (typeof r != "string")
|
|
48427
48425
|
throw Error("[WebOfficeSDK.init] endpoint期望为字符串");
|
|
@@ -48434,7 +48432,7 @@ var GG = function(e, t) {
|
|
|
48434
48432
|
}).join("&");
|
|
48435
48433
|
t.url = t.url + "&" + p;
|
|
48436
48434
|
}
|
|
48437
|
-
return
|
|
48435
|
+
return Et({}, t);
|
|
48438
48436
|
}, YG = function(e) {
|
|
48439
48437
|
e === void 0 && (e = "");
|
|
48440
48438
|
var t = "";
|
|
@@ -48463,7 +48461,7 @@ function ko(e, t) {
|
|
|
48463
48461
|
}
|
|
48464
48462
|
return n;
|
|
48465
48463
|
});
|
|
48466
|
-
return t &&
|
|
48464
|
+
return t && ia({ data: a, eventName: "setCommandBars" }), a;
|
|
48467
48465
|
}
|
|
48468
48466
|
var ZG = window.navigator.userAgent.toLowerCase(), QG = /Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(ZG), $G = function() {
|
|
48469
48467
|
try {
|
|
@@ -48474,10 +48472,10 @@ var ZG = window.navigator.userAgent.toLowerCase(), QG = /Android|webOS|iPhone|iP
|
|
|
48474
48472
|
}();
|
|
48475
48473
|
function Bn() {
|
|
48476
48474
|
var e = { status: As.requestFullscreen }, t = document, a = t.fullscreenElement || t.webkitFullscreenElement || t.mozFullScreenElement;
|
|
48477
|
-
e.status = a ? As.requestFullscreen : As.exitFullscreen,
|
|
48475
|
+
e.status = a ? As.requestFullscreen : As.exitFullscreen, ia({ data: e, eventName: "fullscreenchange" });
|
|
48478
48476
|
}
|
|
48479
48477
|
var JG = function() {
|
|
48480
|
-
|
|
48478
|
+
Rt.idMap = {};
|
|
48481
48479
|
};
|
|
48482
48480
|
function Zh() {
|
|
48483
48481
|
console.group("JSSDK 事件机制调整说明"), console.warn("jssdk.on、jssdk.off 和 jssdk.Application.Sub 将在后续版本中被弃用,建议使用改进后的 ApiEvent"), console.warn("具体请参考:https://wwo.wps.cn/docs/front-end/basic-usage/events/intro/"), console.groupEnd();
|
|
@@ -48503,7 +48501,7 @@ function KG(e, t) {
|
|
|
48503
48501
|
switch (function m(y, h, v) {
|
|
48504
48502
|
for (var g = h.slice(0), w = function() {
|
|
48505
48503
|
var S = g.shift();
|
|
48506
|
-
!S.alias && ~xd.indexOf(S.prop) && g.push(
|
|
48504
|
+
!S.alias && ~xd.indexOf(S.prop) && g.push(Et(Et({}, S), { alias: S.prop + "Async" })), Object.defineProperty(y, S.alias || S.prop, { get: function() {
|
|
48507
48505
|
var T = this;
|
|
48508
48506
|
if (!En) {
|
|
48509
48507
|
var _ = S.cache === 1, I = _ && this["__" + S.prop + "CacheValue"];
|
|
@@ -48514,7 +48512,7 @@ function KG(e, t) {
|
|
|
48514
48512
|
return S.caller !== void 0 ? function V(U, Y, F) {
|
|
48515
48513
|
for (var z = Y.slice(0), R = function() {
|
|
48516
48514
|
var N = z.shift();
|
|
48517
|
-
!N.alias && ~xd.indexOf(N.prop) && z.push(
|
|
48515
|
+
!N.alias && ~xd.indexOf(N.prop) && z.push(Et(Et({}, N), { alias: N.prop + "Async" })), Object.defineProperty(U, N.alias || N.prop, { get: function() {
|
|
48518
48516
|
var q = this;
|
|
48519
48517
|
if (!En) {
|
|
48520
48518
|
var H = N.cache === 1, G = H && this["__" + N.prop + "CacheValue"];
|
|
@@ -48606,7 +48604,7 @@ function KG(e, t) {
|
|
|
48606
48604
|
var p = function(m) {
|
|
48607
48605
|
var y = s[m];
|
|
48608
48606
|
Object.defineProperty(c.Sub, y, { set: function(h) {
|
|
48609
|
-
Zh(), d[y] = h,
|
|
48607
|
+
Zh(), d[y] = h, ia({ eventName: "api.event.register", data: { eventName: y, register: !!h, objId: Un += 1 } });
|
|
48610
48608
|
} });
|
|
48611
48609
|
};
|
|
48612
48610
|
for (var f in s)
|
|
@@ -48651,7 +48649,7 @@ function Qh(e, t, a, n, s, o, r) {
|
|
|
48651
48649
|
var F = Y.eventName, z = Y.handle;
|
|
48652
48650
|
aa?.ApiEvent.AddApiEventListener(F, z);
|
|
48653
48651
|
});
|
|
48654
|
-
}(t),
|
|
48652
|
+
}(t), ia({ eventName: "setConfig", data: Et(Et({}, a), { version: e.version }) }), e.tokenData && e.setToken(Et(Et({}, e.tokenData), { hasRefreshTokenConfig: !!a.refreshToken })), e.iframeReady = !0, [3, 15]));
|
|
48655
48653
|
case 1:
|
|
48656
48654
|
return p !== "error" ? [3, 2] : (t.emit(un.error, m), [3, 15]);
|
|
48657
48655
|
case 2:
|
|
@@ -48669,7 +48667,7 @@ function Qh(e, t, a, n, s, o, r) {
|
|
|
48669
48667
|
case 7:
|
|
48670
48668
|
return g = x.sent(), console.error("refreshToken: " + (g || "fail to get")), [3, 8];
|
|
48671
48669
|
case 8:
|
|
48672
|
-
return
|
|
48670
|
+
return ia({ eventName: Ea.getToken + ".reply", data: v }), [3, 15];
|
|
48673
48671
|
case 9:
|
|
48674
48672
|
if (p !== Ea.getClipboardData)
|
|
48675
48673
|
return [3, 14];
|
|
@@ -48681,7 +48679,7 @@ function Qh(e, t, a, n, s, o, r) {
|
|
|
48681
48679
|
case 12:
|
|
48682
48680
|
return S = x.sent(), console.error("getClipboardData: " + (S || "fail to get")), [3, 13];
|
|
48683
48681
|
case 13:
|
|
48684
|
-
return
|
|
48682
|
+
return ia({ eventName: Ea.getClipboardData + ".reply", data: w }), [3, 15];
|
|
48685
48683
|
case 14:
|
|
48686
48684
|
p === Ea.onToast ? s.onToast(m) : p === Ea.onHyperLinkOpen ? s.onHyperLinkOpen(m) : p === "stage" ? t.emit(un.stage, m) : p === "event.callback" ? (T = m.eventName, _ = m.data, I = T, T === "fullScreenChange" && (I = un.fullscreenChange), T === "file.saved" && (I = un.fileStatus), (!((O = a.commonOptions) === null || O === void 0) && O.isBrowserViewFullscreen || !((A = a.commonOptions) === null || A === void 0) && A.isParentFullscreen) && I === "fullscreenchange" && (b = _.status, P = _.isDispatchEvent, a.commonOptions.isBrowserViewFullscreen ? function(V, U, Y, F) {
|
|
48687
48685
|
if (V === 0) {
|
|
@@ -48762,7 +48760,7 @@ function gc(e) {
|
|
|
48762
48760
|
case 1:
|
|
48763
48761
|
k.sent(), function(O, A) {
|
|
48764
48762
|
var x = O.eventName, V = O.type, U = O.handle;
|
|
48765
|
-
A === "on" ? S.on(x, U) : S.off(x, U), V === "base.event" &&
|
|
48763
|
+
A === "on" ? S.on(x, U) : S.off(x, U), V === "base.event" && ia({ eventName: "basic.event", data: { eventName: x, action: A } }), Zh();
|
|
48766
48764
|
}(function(O, A) {
|
|
48767
48765
|
var x = O, V = "base.event";
|
|
48768
48766
|
switch (x) {
|
|
@@ -48824,7 +48822,7 @@ function gc(e) {
|
|
|
48824
48822
|
case 0:
|
|
48825
48823
|
return [4, v];
|
|
48826
48824
|
case 1:
|
|
48827
|
-
return b.sent(), aa.tokenData = I,
|
|
48825
|
+
return b.sent(), aa.tokenData = I, ia({ eventName: "setToken", data: I }), [2];
|
|
48828
48826
|
}
|
|
48829
48827
|
});
|
|
48830
48828
|
});
|
|
@@ -48835,7 +48833,7 @@ function gc(e) {
|
|
|
48835
48833
|
case 0:
|
|
48836
48834
|
return T.apiReadySended ? [3, 2] : [4, g];
|
|
48837
48835
|
case 1:
|
|
48838
|
-
I.sent(), T.apiReadySended = !0,
|
|
48836
|
+
I.sent(), T.apiReadySended = !0, ia({ eventName: "api.ready" }), I.label = 2;
|
|
48839
48837
|
case 2:
|
|
48840
48838
|
return [4, w];
|
|
48841
48839
|
case 3:
|
|
@@ -48933,13 +48931,13 @@ function gc(e) {
|
|
|
48933
48931
|
});
|
|
48934
48932
|
} } }, function(I, b, P, k, O, A) {
|
|
48935
48933
|
b && uo(b) && (O.refreshToken = b, I.refreshToken = { eventName: Ea.getToken }), A && uo(A) && (O.getClipboardData = A, I.getClipboardData = { eventName: Ea.getClipboardData }), P && uo(P) && (O.onToast = P, I.onToast = { eventName: Ea.onToast }), k && uo(k) && (O.onHyperLinkOpen = k, I.onHyperLinkOpen = { eventName: Ea.onHyperLinkOpen });
|
|
48936
|
-
}(n, c, d, p, T, f), Qh(aa, S, n, o, T, h), n.fileToken && (Zo(n.fileToken) ? aa.setToken(
|
|
48934
|
+
}(n, c, d, p, T, f), Qh(aa, S, n, o, T, h), n.fileToken && (Zo(n.fileToken) ? aa.setToken(Et({}, n.fileToken)) : aa.setToken({ token: n.fileToken })), aa;
|
|
48937
48935
|
} catch (I) {
|
|
48938
48936
|
console.error(I);
|
|
48939
48937
|
}
|
|
48940
48938
|
}
|
|
48941
48939
|
function $h(e) {
|
|
48942
|
-
var t, a, n =
|
|
48940
|
+
var t, a, n = Et({}, e);
|
|
48943
48941
|
if (n.url)
|
|
48944
48942
|
throw Error("[WebOfficeSDK.init] 不支持传递url,请使用appId、fileId、officeType、token等参数初始化!");
|
|
48945
48943
|
if (!n.appId || !n.fileId || !n.officeType)
|
|
@@ -49425,7 +49423,7 @@ const P9 = /* @__PURE__ */ ue({
|
|
|
49425
49423
|
let T = n?.rules.value;
|
|
49426
49424
|
const _ = e.rules, I = (
|
|
49427
49425
|
// props.required !== undefined ? { required: !!props.required } : []
|
|
49428
|
-
|
|
49426
|
+
Nt(e.required) ? [] : {
|
|
49429
49427
|
required: !!e.required
|
|
49430
49428
|
}
|
|
49431
49429
|
), b = li(T, u.value);
|