@byteluck-fe/runtime-desktop-controls 2.0.14 → 2.0.15

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.
@@ -1,16 +1,16 @@
1
1
  import * as xA from "vue";
2
- import { ref as B, reactive as ca, readonly as NA, provide as Yn, inject as Me, unref as i, onUnmounted as Oa, shallowRef as Nt, onBeforeUnmount as Yi, toRaw as Jt, computed as V, isRef as kt, watch as De, nextTick as Ye, getCurrentInstance as qs, isProxy as vv, watchEffect as Yo, h as Rt, onBeforeUpdate as RA, toRefs as Yr, onMounted as qt, onBeforeMount as Xd, createVNode as F, defineComponent as ce, isReactive as wc, isVNode as Vc, createApp as bv, resolveComponent as oe, openBlock as k, createElementBlock as H, normalizeClass as Te, mergeProps as Ut, createCommentVNode as le, createElementVNode as G, resolveDirective as kn, withDirectives as Xe, createTextVNode as Ce, toDisplayString as re, createBlock as Z, vShow as St, createSlots as Ko, renderList as Be, withCtx as K, renderSlot as gn, normalizeProps as Ht, guardReactiveProps as Xt, resolveDynamicComponent as Je, Fragment as Pe, Teleport as LA, withModifiers as Dt, pushScopeId as bn, popScopeId as wn, normalizeStyle as $t, useCssVars as Gi, toRef as qr, defineAsyncComponent as wv, effectScope as CS, markRaw as vs, hasInjectionContext as jA, getCurrentScope as VA, onScopeDispose as FA, shallowReactive as BA, useAttrs as Ym, cloneVNode as qA, onActivated as OS, withKeys as zA, onDeactivated as UA, defineProps as $A } from "vue";
2
+ import { ref as B, reactive as ca, readonly as NA, provide as Yn, inject as Me, unref as i, onUnmounted as Oa, shallowRef as Nt, onBeforeUnmount as Yi, toRaw as Jt, computed as V, isRef as kt, watch as De, nextTick as Ye, getCurrentInstance as qs, isProxy as vv, watchEffect as Yo, h as Rt, onBeforeUpdate as RA, toRefs as Yr, onMounted as qt, onBeforeMount as Xd, createVNode as F, defineComponent as ce, isReactive as wc, isVNode as Vc, createApp as bv, resolveComponent as oe, openBlock as k, createElementBlock as H, normalizeClass as Te, mergeProps as Ut, createCommentVNode as le, createElementVNode as G, resolveDirective as kn, withDirectives as Xe, createTextVNode as Ce, toDisplayString as re, createBlock as Z, vShow as St, createSlots as Ko, renderList as Be, withCtx as K, renderSlot as vn, normalizeProps as Ht, guardReactiveProps as Xt, resolveDynamicComponent as Je, Fragment as Pe, Teleport as LA, withModifiers as Dt, pushScopeId as bn, popScopeId as wn, normalizeStyle as $t, useCssVars as Gi, toRef as qr, defineAsyncComponent as wv, effectScope as CS, markRaw as vs, hasInjectionContext as jA, getCurrentScope as VA, onScopeDispose as FA, shallowReactive as BA, useAttrs as Ym, cloneVNode as qA, onActivated as OS, withKeys as zA, onDeactivated as UA, defineProps as $A } from "vue";
3
3
  import HA, { isUndefined as YA, omit as Ch, get as _c, debounce as Zn, isEqual as mr, isNil as En, cloneDeep as Wt, isArray as ma, isString as kS, throttle as GA, keyBy as Ya, uniqBy as Gr, isEmpty as ep, toLower as WA, toUpper as QA, uniq as Gm, flatten as KA, once as ZA, map as Oi, mapValues as JA, keys as mu, merge as XA, set as eD, difference as Wu, pick as tD, isNull as AS, concat as nD, compact as aD, isNumber as oD, findIndex as rD, invert as sD } from "lodash";
4
4
  import * as iD from "ant-design-vue";
5
5
  import { Modal as Zt, Input as Wm, Select as yo, Switch as lD, Checkbox as cD, Popover as uD, Table as dD, message as Ae, Spin as bi, notification as pD, Steps as tp, Space as bs, Button as ha, Badge as wd, Upload as Oh, TreeSelect as _v, Tag as Qm, Radio as Ua, Typography as Sc, Row as Qu, Col as is, Tabs as Sv, Tooltip as Tl, RadioGroup as fD } from "ant-design-vue";
6
6
  import { useStore as jt, createStore as hD } from "vuex";
7
7
  import he from "moment";
8
8
  import * as Iv from "@byteluck-fe/global-shared";
9
- import { client as nt, isDef as oa, getFetch as qa, CacheManager as mD, path as vn, getCustomRequestHeader as Fc, isArray as Un, isString as Cn, ModelFieldTypes as He, cacheManager as ga, isEmpty as Gn, isNumber as fr, isObject as Km, buildUUID as _d, getIframeUrl as yD, Postmate as Zm, isBoolean as Pl, isFunction as Sd, getBrowserType as gD, customClose as vD, formatDisplayData as bD, HttpCodes as ki, customUpdateCurrentTab as wD, customOpenOperate as kh, parseHeadersValue as _D } from "@byteluck-fe/global-shared";
9
+ import { client as nt, isDef as oa, getFetch as qa, CacheManager as mD, path as pn, getCustomRequestHeader as Fc, isArray as Un, isString as Cn, ModelFieldTypes as He, cacheManager as ga, isEmpty as Gn, isNumber as fr, isObject as Km, buildUUID as _d, getIframeUrl as yD, Postmate as Zm, isBoolean as Pl, isFunction as Sd, getBrowserType as gD, customClose as vD, formatDisplayData as bD, HttpCodes as ki, customUpdateCurrentTab as wD, customOpenOperate as kh, parseHeadersValue as _D } from "@byteluck-fe/global-shared";
10
10
  import * as SD from "@byteluck/ok-vue-i18n";
11
11
  import { i18n as te, LocaleEnum as tc, getPlaceholder as Ah, locale as Jm, getLabel as Ia } from "@byteluck/ok-vue-i18n";
12
12
  import * as Tv from "@byteluck-fe/model-driven-core-all";
13
- import { FieldTypes as mn, loadRemoteControl as DS, loadRemoteControls as ID, loadScriptFromFetch as TD, loadScriptFromTag as PD, nativeFetch as MS, debounce as CD, CONTROL_TYPE as q, OptionSetting as OD, DataBind as kD, ObjectDataBind as AD, PAGE_STATUS as cn, camelizeKeys as va, CONTROL_BASE_TYPE as dr, isArray as Ic, isDataBind as ao, JSONCopy as Qe, decamelizeKeys as mt, OperationButton as DD, DATE_CONFIG_TYPE as Pv, DATE_LIMIT_TYPE as xr, isPlainObject as Xm, DataSourceBind as MD, FieldFilterConditions as ED, AddressValue as xD, FORM_TYPE as Ds, OrganizeType as Ms, DepartmentType as Bc, TitleConfigEnum as za, logerror as ND, log as ES, error as RD, EventLogic as xS, DataSourceParamItem as LD, DataSourceOrderItem as jD, genNonDuplicateId as VD, CALC_TOKEN_TYPE as lr, CALC_AGGREGATE_TYPE as yu, MultistageFillingItem as FD, DisplayBoListItem as BD, baseControls as qD, formControls as zD, layoutControls as UD, listControls as $D, columnControls as HD, searchControls as YD, wrapControls as GD, registerCustomControls as Cv, registerByteluckControls as WD, VersionBuilder as NS, upgradeCustomControlSchema as QD, RulesMessage as KD, ViewOperationItem as of, SCORE_TYPE as ls } from "@byteluck-fe/model-driven-core-all";
13
+ import { FieldTypes as yn, loadRemoteControl as DS, loadRemoteControls as ID, loadScriptFromFetch as TD, loadScriptFromTag as PD, nativeFetch as MS, debounce as CD, CONTROL_TYPE as q, OptionSetting as OD, DataBind as kD, ObjectDataBind as AD, PAGE_STATUS as cn, camelizeKeys as va, CONTROL_BASE_TYPE as dr, isArray as Ic, isDataBind as ao, JSONCopy as Qe, decamelizeKeys as mt, OperationButton as DD, DATE_CONFIG_TYPE as Pv, DATE_LIMIT_TYPE as xr, isPlainObject as Xm, DataSourceBind as MD, FieldFilterConditions as ED, AddressValue as xD, FORM_TYPE as Ds, OrganizeType as Ms, DepartmentType as Bc, TitleConfigEnum as za, logerror as ND, log as ES, error as RD, EventLogic as xS, DataSourceParamItem as LD, DataSourceOrderItem as jD, genNonDuplicateId as VD, CALC_TOKEN_TYPE as lr, CALC_AGGREGATE_TYPE as yu, MultistageFillingItem as FD, DisplayBoListItem as BD, baseControls as qD, formControls as zD, layoutControls as UD, listControls as $D, columnControls as HD, searchControls as YD, wrapControls as GD, registerCustomControls as Cv, registerByteluckControls as WD, VersionBuilder as NS, upgradeCustomControlSchema as QD, RulesMessage as KD, ViewOperationItem as of, SCORE_TYPE as ls } from "@byteluck-fe/model-driven-core-all";
14
14
  import * as Ov from "@byteluck-fe/model-driven-engine";
15
15
  import { loopDataViewControl as ZD, buildUUID as rf, parseModule as kv, Engine as Id, ES6ModulePlugin as JD, LifecycleEventPlugin as XD, ControlsEventPlugin as eM, StylePlugin as tM } from "@byteluck-fe/model-driven-engine";
16
16
  import { defineInstance as nM, createBaseFields as aM, createFormBaseFields as oM } from "@byteluck-fe/model-driven-settings";
@@ -210,7 +210,7 @@ const Vn = () => {
210
210
  let e = !1;
211
211
  return e = nt.isPc(), window.location.pathname.indexOf("/mobile/preview") > -1 && (e = !1), e;
212
212
  }, gM = () => window.navigator.userAgent.match(/(iPhone)/i);
213
- function yn(e, t, n, a = 1) {
213
+ function gn(e, t, n, a = 1) {
214
214
  nt.isPc() ? e === "success" ? et.config.globalProperties.$message.success({
215
215
  content: t,
216
216
  duration: a,
@@ -242,7 +242,7 @@ async function bM(e, ...[t, n = 0]) {
242
242
  try {
243
243
  await nc.get(e);
244
244
  } catch (o) {
245
- throw yn("fail", o.message), o;
245
+ throw gn("fail", o.message), o;
246
246
  } finally {
247
247
  nc.delete(e);
248
248
  }
@@ -450,7 +450,7 @@ function SM(e) {
450
450
  const IM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
451
  __proto__: null,
452
452
  CacheManager: mD,
453
- FieldTypes: mn,
453
+ FieldTypes: yn,
454
454
  createBaseFields: aM,
455
455
  createFormBaseFields: oM,
456
456
  defineInstance: _M,
@@ -460,7 +460,7 @@ const IM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
460
460
  loadScriptFromFetch: TD,
461
461
  loadScriptFromTag: PD,
462
462
  nativeFetch: MS,
463
- path: vn
463
+ path: pn
464
464
  }, Symbol.toStringTag, { value: "Module" })), TM = "context";
465
465
  function PM(e) {
466
466
  Yn(TM, e);
@@ -11076,7 +11076,7 @@ function ns(e) {
11076
11076
  }
11077
11077
  function tt() {
11078
11078
  const e = ns(
11079
- qa(process.env.VUE_APP_BASE_PATH ?? "/")
11079
+ qa((process.env.VUE_APP_CODE_OUT === "codeout" ? process.env.VUE_APP_CODE_OUT_API_PATH : process.env.VUE_APP_BASE_PATH ?? "") + "/")
11080
11080
  );
11081
11081
  if (ff === void 0 && (ff = new ux(e)), hf === void 0) {
11082
11082
  const t = ns(
@@ -14312,11 +14312,11 @@ function SR(e, t) {
14312
14312
  return Object.prototype.toString.call(t) === "[object Object]" && (t.hasOwnProperty("amount") ? e.type !== q.AMOUNT && (n = t.amount) : (t.hasOwnProperty("min") || t.hasOwnProperty("max")) && e.type !== q.DATE_RANGE && (n = "")), n;
14313
14313
  }
14314
14314
  const q0 = [
14315
- mn.ADDRESS,
14315
+ yn.ADDRESS,
14316
14316
  // 地址
14317
- mn.JSON,
14317
+ yn.JSON,
14318
14318
  // JSON字段
14319
- mn.ANY
14319
+ yn.ANY
14320
14320
  // 任意类型
14321
14321
  ];
14322
14322
  function IR(e) {
@@ -14371,7 +14371,7 @@ function TR(e, t) {
14371
14371
  break;
14372
14372
  }
14373
14373
  function n(a) {
14374
- return a.children[0].fieldType === mn.MONEY ? a.children[0].props.dataBind.amount.fieldCode : a.children[0].fieldType === mn.CALC ? a.children[0].props.dataBind.result.fieldCode : a.children[0].fieldType === mn.TIMESCOPE ? a.children[0].props.dataBind.min.fieldCode : a.children[0].props.dataBind.fieldCode;
14374
+ return a.children[0].fieldType === yn.MONEY ? a.children[0].props.dataBind.amount.fieldCode : a.children[0].fieldType === yn.CALC ? a.children[0].props.dataBind.result.fieldCode : a.children[0].fieldType === yn.TIMESCOPE ? a.children[0].props.dataBind.min.fieldCode : a.children[0].props.dataBind.fieldCode;
14375
14375
  }
14376
14376
  }
14377
14377
  const mp = (e) => {
@@ -15695,9 +15695,9 @@ function UR(e, t) {
15695
15695
  { ...j.attachment_dto, support_online_view: !1 }
15696
15696
  ] : p.value = [j.attachment_dto], ya(i(a)).then(() => {
15697
15697
  c(!1);
15698
- })) : j?.print_status === "FAIL" && (yn("fail", j?.msg), ya(i(a)).then(() => {
15698
+ })) : j?.print_status === "FAIL" && (gn("fail", j?.msg), ya(i(a)).then(() => {
15699
15699
  c(!1);
15700
- })) : (yn("fail", x), ya(i(a)).then(() => {
15700
+ })) : (gn("fail", x), ya(i(a)).then(() => {
15701
15701
  c(!1);
15702
15702
  }));
15703
15703
  }, m = async (D, E) => {
@@ -15716,12 +15716,12 @@ function UR(e, t) {
15716
15716
  template_id: D
15717
15717
  }
15718
15718
  });
15719
- x !== Le.SUCCESS ? (yn("fail", j), c(!1)) : (a.value = Tc(
15719
+ x !== Le.SUCCESS ? (gn("fail", j), c(!1)) : (a.value = Tc(
15720
15720
  async () => await f($),
15721
15721
  1e3
15722
15722
  ), setTimeout(async () => {
15723
15723
  ya(i(a)).then(() => {
15724
- yn("fail", "Timeout!"), c(!1);
15724
+ gn("fail", "Timeout!"), c(!1);
15725
15725
  });
15726
15726
  }, 3e5));
15727
15727
  }
@@ -15981,7 +15981,7 @@ function el(e, t, n) {
15981
15981
  (g) => g.key === f.key
15982
15982
  ).length && f.key)
15983
15983
  if (T.length >= 20) {
15984
- yn(
15984
+ gn(
15985
15985
  "warning",
15986
15986
  KR("message.appLauncherTabTip")
15987
15987
  );
@@ -16087,7 +16087,7 @@ function XR(e, t, n, a, o, r) {
16087
16087
  { immediate: !0 }
16088
16088
  );
16089
16089
  const p = V(() => JR(i(e), i(s), i(l))), f = V(() => c.value), m = V(
16090
- () => Math.floor(i(c) / i(l)) + 1
16090
+ () => Math.ceil(i(c) / i(l)) + 1
16091
16091
  );
16092
16092
  async function y(O) {
16093
16093
  s.value = O, b(O, i(l));
@@ -22338,7 +22338,7 @@ window.okuiConfig = {
22338
22338
  env: "PRD",
22339
22339
  apiPath: aw,
22340
22340
  sourceHost: SI,
22341
- basePath: vn.getFullPath("/apps"),
22341
+ basePath: pn.getFullPath("/apps"),
22342
22342
  options: II,
22343
22343
  cardPath: aw,
22344
22344
  locale: Jm
@@ -22465,7 +22465,7 @@ function nz(e, t) {
22465
22465
  return Y.append("file", z.blob()), Y.append("deletable", "false"), new Promise((W, J) => {
22466
22466
  ly({
22467
22467
  method: "post",
22468
- url: vn.getFullPath("/apps/api/v1/private/attachment/uploadImages"),
22468
+ url: pn.getFullPath("/apps/api/v1/private/attachment/uploadImages"),
22469
22469
  data: Y,
22470
22470
  withCredentials: !0,
22471
22471
  headers: Fc({
@@ -23850,7 +23850,7 @@ var VI = ul, dl = tU, xU = hU, NU = Gc, Su = VI("%WeakMap%", !0), Iu = VI("%Map%
23850
23850
  }
23851
23851
  var f = s.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
23852
23852
  return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), f.length > 0 ? m + f : "";
23853
- }, Ni = BI, pm = Object.prototype.hasOwnProperty, d$ = Array.isArray, hn = {
23853
+ }, Ni = BI, pm = Object.prototype.hasOwnProperty, d$ = Array.isArray, mn = {
23854
23854
  allowDots: !1,
23855
23855
  allowEmptyArrays: !1,
23856
23856
  allowPrototypes: !1,
@@ -23887,10 +23887,10 @@ var VI = ul, dl = tU, xU = hU, NU = Gc, Su = VI("%WeakMap%", !0), Iu = VI("%Map%
23887
23887
  for (c = 0; c < s.length; ++c)
23888
23888
  if (c !== l) {
23889
23889
  var d = s[c], p = d.indexOf("]="), f = p === -1 ? d.indexOf("=") : p + 1, m, y;
23890
- f === -1 ? (m = n.decoder(d, hn.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (m = n.decoder(d.slice(0, f), hn.decoder, u, "key"), y = Ni.maybeMap(
23890
+ f === -1 ? (m = n.decoder(d, mn.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (m = n.decoder(d.slice(0, f), mn.decoder, u, "key"), y = Ni.maybeMap(
23891
23891
  $I(d.slice(f + 1), n),
23892
23892
  function(b) {
23893
- return n.decoder(b, hn.decoder, u, "value");
23893
+ return n.decoder(b, mn.decoder, u, "value");
23894
23894
  }
23895
23895
  )), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = p$(y)), d.indexOf("[]=") > -1 && (y = d$(y) ? [y] : y);
23896
23896
  var v = pm.call(a, m);
@@ -23932,7 +23932,7 @@ var VI = ul, dl = tU, xU = hU, NU = Gc, Su = VI("%WeakMap%", !0), Iu = VI("%Map%
23932
23932
  }
23933
23933
  }, v$ = function(t) {
23934
23934
  if (!t)
23935
- return hn;
23935
+ return mn;
23936
23936
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
23937
23937
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
23938
23938
  if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
@@ -23941,32 +23941,32 @@ var VI = ul, dl = tU, xU = hU, NU = Gc, Su = VI("%WeakMap%", !0), Iu = VI("%Map%
23941
23941
  throw new TypeError("Decoder has to be a function.");
23942
23942
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
23943
23943
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
23944
- var n = typeof t.charset > "u" ? hn.charset : t.charset, a = typeof t.duplicates > "u" ? hn.duplicates : t.duplicates;
23944
+ var n = typeof t.charset > "u" ? mn.charset : t.charset, a = typeof t.duplicates > "u" ? mn.duplicates : t.duplicates;
23945
23945
  if (a !== "combine" && a !== "first" && a !== "last")
23946
23946
  throw new TypeError("The duplicates option must be either combine, first, or last");
23947
- var o = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : hn.allowDots : !!t.allowDots;
23947
+ var o = typeof t.allowDots > "u" ? t.decodeDotInKeys === !0 ? !0 : mn.allowDots : !!t.allowDots;
23948
23948
  return {
23949
23949
  allowDots: o,
23950
- allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : hn.allowEmptyArrays,
23951
- allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : hn.allowPrototypes,
23952
- allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : hn.allowSparse,
23953
- arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : hn.arrayLimit,
23950
+ allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : mn.allowEmptyArrays,
23951
+ allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : mn.allowPrototypes,
23952
+ allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : mn.allowSparse,
23953
+ arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : mn.arrayLimit,
23954
23954
  charset: n,
23955
- charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : hn.charsetSentinel,
23956
- comma: typeof t.comma == "boolean" ? t.comma : hn.comma,
23957
- decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : hn.decodeDotInKeys,
23958
- decoder: typeof t.decoder == "function" ? t.decoder : hn.decoder,
23959
- delimiter: typeof t.delimiter == "string" || Ni.isRegExp(t.delimiter) ? t.delimiter : hn.delimiter,
23955
+ charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : mn.charsetSentinel,
23956
+ comma: typeof t.comma == "boolean" ? t.comma : mn.comma,
23957
+ decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : mn.decodeDotInKeys,
23958
+ decoder: typeof t.decoder == "function" ? t.decoder : mn.decoder,
23959
+ delimiter: typeof t.delimiter == "string" || Ni.isRegExp(t.delimiter) ? t.delimiter : mn.delimiter,
23960
23960
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
23961
- depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : hn.depth,
23961
+ depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : mn.depth,
23962
23962
  duplicates: a,
23963
23963
  ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
23964
- interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : hn.interpretNumericEntities,
23965
- parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : hn.parameterLimit,
23964
+ interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : mn.interpretNumericEntities,
23965
+ parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : mn.parameterLimit,
23966
23966
  parseArrays: t.parseArrays !== !1,
23967
- plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : hn.plainObjects,
23968
- strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : hn.strictDepth,
23969
- strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : hn.strictNullHandling
23967
+ plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : mn.plainObjects,
23968
+ strictDepth: typeof t.strictDepth == "boolean" ? !!t.strictDepth : mn.strictDepth,
23969
+ strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : mn.strictNullHandling
23970
23970
  };
23971
23971
  }, b$ = function(e, t) {
23972
23972
  var n = v$(t);
@@ -28547,7 +28547,7 @@ function s9(e, t, n, a, o, r) {
28547
28547
  Be(Object.keys(e.$slots), (c) => ({
28548
28548
  name: c,
28549
28549
  fn: K((u) => [
28550
- gn(e.$slots, c, Ht(Xt(u)), void 0, !0)
28550
+ vn(e.$slots, c, Ht(Xt(u)), void 0, !0)
28551
28551
  ])
28552
28552
  })),
28553
28553
  Be(e.columns, (c) => ({
@@ -28898,7 +28898,7 @@ const h9 = /* @__PURE__ */ ke(f9, [["__scopeId", "data-v-9ff8a41b"]]), m9 = /* @
28898
28898
  ref: r,
28899
28899
  class: "ok-drawer-content"
28900
28900
  }, [
28901
- gn(p.$slots, "default")
28901
+ vn(p.$slots, "default")
28902
28902
  ], 512)
28903
28903
  ]),
28904
28904
  _: 3
@@ -31337,10 +31337,10 @@ function wW(e, t, n, a, o, r) {
31337
31337
  style: { "grid-column-start": "span 1" },
31338
31338
  key: s.id
31339
31339
  }, [
31340
- gn(e.$slots, "option", { option: s })
31340
+ vn(e.$slots, "option", { option: s })
31341
31341
  ]))), 128)),
31342
31342
  Xe(G("div", bW, [
31343
- gn(e.$slots, "lastOption")
31343
+ vn(e.$slots, "lastOption")
31344
31344
  ], 512), [
31345
31345
  [St, e.openLastOption]
31346
31346
  ])
@@ -31422,13 +31422,13 @@ function PW(e, t, n, a, o, r) {
31422
31422
  type: e.htmlType,
31423
31423
  onClick: t[0] || (t[0] = (...s) => e.handlerClick && e.handlerClick(...s))
31424
31424
  }, [
31425
- gn(e.$slots, "icon", { class: "ok-icon-button" }, () => [
31425
+ vn(e.$slots, "icon", { class: "ok-icon-button" }, () => [
31426
31426
  e.icon ? (k(), H("i", {
31427
31427
  key: 0,
31428
31428
  class: Te(["ok-button-icon", e.icon])
31429
31429
  }, null, 2)) : le("", !0)
31430
31430
  ], !0),
31431
- gn(e.$slots, "default", {}, void 0, !0)
31431
+ vn(e.$slots, "default", {}, void 0, !0)
31432
31432
  ], 10, TW);
31433
31433
  }
31434
31434
  const UT = /* @__PURE__ */ ke(IW, [["render", PW], ["__scopeId", "data-v-e147d962"]]), CW = ce({
@@ -31460,7 +31460,7 @@ const UT = /* @__PURE__ */ ke(IW, [["render", PW], ["__scopeId", "data-v-e147d96
31460
31460
  "instance-props": i(s)
31461
31461
  }, {
31462
31462
  "label-suffix": K(() => [
31463
- gn(y.$slots, "label-suffix")
31463
+ vn(y.$slots, "label-suffix")
31464
31464
  ]),
31465
31465
  default: K(() => [
31466
31466
  F(UT, {
@@ -31483,7 +31483,7 @@ const UT = /* @__PURE__ */ ke(IW, [["render", PW], ["__scopeId", "data-v-e147d96
31483
31483
  i(u) ? {
31484
31484
  name: "default",
31485
31485
  fn: K(() => [
31486
- i(d) ? gn(y.$slots, "default", { key: 0 }, () => [
31486
+ i(d) ? vn(y.$slots, "default", { key: 0 }, () => [
31487
31487
  F(b, { placement: "top" }, {
31488
31488
  content: K(() => [
31489
31489
  G("p", null, re(i(f)), 1)
@@ -31493,14 +31493,14 @@ const UT = /* @__PURE__ */ ke(IW, [["render", PW], ["__scopeId", "data-v-e147d96
31493
31493
  ]),
31494
31494
  _: 1
31495
31495
  })
31496
- ]) : gn(y.$slots, "default", { key: 1 }, () => [
31496
+ ]) : vn(y.$slots, "default", { key: 1 }, () => [
31497
31497
  Ce(re(i(f)), 1)
31498
31498
  ])
31499
31499
  ]),
31500
31500
  key: "1"
31501
31501
  } : void 0
31502
31502
  ]), 1032, ["type", "text", "plain", "disabled", "loading", "onClick"]),
31503
- gn(y.$slots, "suffix")
31503
+ vn(y.$slots, "suffix")
31504
31504
  ]),
31505
31505
  _: 3
31506
31506
  }, 8, ["control", "name", "instance-props"]);
@@ -31979,13 +31979,13 @@ function O7(e) {
31979
31979
  const b = n?.multipleTabs[r.sappId]?.panesList, _ = window.multipleTabs?.isInternally();
31980
31980
  if (c && _ && r.sappId !== "sappId") {
31981
31981
  const T = b?.map((w) => w.key);
31982
- (!b || !T?.includes(l)) && (process.env.NODE_ENV === "production" ? window.location.href = vn.getFullPath(
31982
+ (!b || !T?.includes(l)) && (process.env.NODE_ENV === "production" ? window.location.href = pn.getFullPath(
31983
31983
  "/apps/desktop/multipleTabs?app=processcenter"
31984
- ) : window.location.href = vn.getFullPath(
31984
+ ) : window.location.href = pn.getFullPath(
31985
31985
  "/desktop/multipleTabs?app=processcenter"
31986
31986
  )), C7({ type: "removeApp" }), d.emit("header-remove-tab", {});
31987
31987
  } else
31988
- f !== "WXWorkDesktop" && window.close(), window.location.href = vn.getFullPath(
31988
+ f !== "WXWorkDesktop" && window.close(), window.location.href = pn.getFullPath(
31989
31989
  n.userInfo.task_redirect_url_bo.pc_todo_task
31990
31990
  );
31991
31991
  };
@@ -35242,9 +35242,9 @@ class tP {
35242
35242
  });
35243
35243
  });
35244
35244
  }
35245
- checkToResetSubTableHeader(t, n, a, o) {
35246
- if (o.rowIndex === void 0 && this.engine.inList(t))
35247
- return this.engine.setInstance(t, "isHide", a, -1), !0;
35245
+ checkToResetSubTableHeader(t, n, a) {
35246
+ if (a.rowIndex === void 0 && this.engine.inList(t))
35247
+ return this.engine.setInstance(t, "isHide", n, -1), !0;
35248
35248
  }
35249
35249
  /**
35250
35250
  * @description 修改控件的显隐,并逐级修改父级的显隐
@@ -35618,11 +35618,11 @@ class aP {
35618
35618
  const g = y.data;
35619
35619
  if (g) {
35620
35620
  const O = this.engine.getInstance(_.controlId), P = [
35621
- mn.ARRAY,
35622
- mn.DEPARTMENTS,
35623
- mn.FILE,
35624
- mn.IMAGE,
35625
- mn.EMPLOYEES
35621
+ yn.ARRAY,
35622
+ yn.DEPARTMENTS,
35623
+ yn.FILE,
35624
+ yn.IMAGE,
35625
+ yn.EMPLOYEES
35626
35626
  ].includes(O?.fieldType), S = Un(g) ? g.map((A) => A?.fieldValue[_.fieldCode]) : ai(g?.[_.fieldCode]) ? [] : [g?.[_.fieldCode]], C = Un(g) ? g.map((A) => A?.fieldValue ?? A) : ai(g?.fieldValue ?? g) ? [] : [g?.fieldValue ?? g];
35627
35627
  w.display = C, w.field_value = P ? S : S.join(",");
35628
35628
  }
@@ -35694,7 +35694,7 @@ class aP {
35694
35694
  });
35695
35695
  this.updateStore(w, b);
35696
35696
  } else
35697
- yn("fail", v?.message ?? te.$t("message.fillingFailed"));
35697
+ gn("fail", v?.message ?? te.$t("message.fillingFailed"));
35698
35698
  }
35699
35699
  }
35700
35700
  }
@@ -35727,15 +35727,15 @@ class aP {
35727
35727
  convertValueBeforeUpdate(t, n) {
35728
35728
  const a = Object.prototype.toString.call(t);
35729
35729
  switch (n?.fieldType) {
35730
- case mn.EMPLOYEES:
35731
- case mn.DEPARTMENTS:
35730
+ case yn.EMPLOYEES:
35731
+ case yn.DEPARTMENTS:
35732
35732
  t === "" ? t = void 0 : Un(t) && (t = n.props.multiple ? t : t.slice(0, 1));
35733
35733
  break;
35734
- case mn.MONEY:
35734
+ case yn.MONEY:
35735
35735
  let o = n.props.defaultValue;
35736
35736
  a === "[object Object]" ? o = t : (a === "[object String]" || a === "[object Number]") && (o.amount = Number(t)), t = o;
35737
35737
  break;
35738
- case mn.TIMESCOPE:
35738
+ case yn.TIMESCOPE:
35739
35739
  (a === "[object String]" || a === "[object Number]") && (t = {
35740
35740
  min: Number(t),
35741
35741
  max: Number(t)
@@ -36272,7 +36272,7 @@ class sP {
36272
36272
  }
36273
36273
  async handlerFormSubmit(t) {
36274
36274
  if (this.engine.isMounted === !1) {
36275
- yn("fail", te.$t("common.hasError"));
36275
+ gn("fail", te.$t("common.hasError"));
36276
36276
  return;
36277
36277
  }
36278
36278
  const n = t.options?.type, a = this.engine.externalParams.data?.form_process_param?.draft, o = n === "saveAs", r = !!this.uId;
@@ -36563,7 +36563,7 @@ class _g {
36563
36563
  const o = this.engine.getAction().actionUtils;
36564
36564
  switch (t) {
36565
36565
  case "prefix_path":
36566
- a = vn.getPrefixPath();
36566
+ a = pn.getPrefixPath();
36567
36567
  break;
36568
36568
  case "app_id":
36569
36569
  a = this.engine.externalParams.appId;
@@ -36813,7 +36813,7 @@ async function lP(e) {
36813
36813
  window.open(f);
36814
36814
  else if (_ === Tm.currentTab)
36815
36815
  if (a)
36816
- t.href === f ? x0(i(c)) : new RegExp("^(http://|https://)", "ig").test(f) ? window.location.href = f : (/^\/apps/.test(f) && (f = f.replace("/apps", "")), f = vn.getPrefixPath() + nt.isPc() ? f.replace("/desktop", "") : f.replace("/mobile", ""), y(f));
36816
+ t.href === f ? x0(i(c)) : new RegExp("^(http://|https://)", "ig").test(f) ? window.location.href = f : (/^\/apps/.test(f) && (f = f.replace("/apps", "")), f = pn.getPrefixPath() + nt.isPc() ? f.replace("/desktop", "") : f.replace("/mobile", ""), y(f));
36817
36817
  else {
36818
36818
  const T = f.indexOf("?") > -1 ? "&" : "?";
36819
36819
  window.location.href = f + `${T}header=none`;
@@ -37287,9 +37287,9 @@ async function VK(e) {
37287
37287
  };
37288
37288
  }, w = (g, O, P, S) => {
37289
37289
  const C = e.engine.getInstance(g), A = [
37290
- mn.FILE,
37291
- mn.IMAGE,
37292
- mn.ARRAY
37290
+ yn.FILE,
37291
+ yn.IMAGE,
37292
+ yn.ARRAY
37293
37293
  ].includes(C?.fieldType), M = P[O][S]?.value ?? P[O][S];
37294
37294
  return A && !ma(M) ? Gn(M) ? [] : M?.split(",") : M;
37295
37295
  };
@@ -37420,7 +37420,7 @@ async function VK(e) {
37420
37420
  };
37421
37421
  {
37422
37422
  const O = g.message || te.$t("message.calledServiceFail");
37423
- return yn("fail", O), {
37423
+ return gn("fail", O), {
37424
37424
  input: d,
37425
37425
  output: g.data,
37426
37426
  error: g
@@ -37459,7 +37459,7 @@ async function FK(e) {
37459
37459
  }
37460
37460
  } catch (s) {
37461
37461
  const l = te.$t("message.callJsFailed");
37462
- return yn("fail", l), console.error("调用js方法内--" + o.method + "--函数🐛🐛🐛" + s), {
37462
+ return gn("fail", l), console.error("调用js方法内--" + o.method + "--函数🐛🐛🐛" + s), {
37463
37463
  input: e,
37464
37464
  output: {},
37465
37465
  error: { data: s, state: "FAIL" }
@@ -37475,7 +37475,7 @@ function BK() {
37475
37475
  const { query: e } = et.config.globalProperties.$route, { state: t } = et.config.globalProperties.$store;
37476
37476
  return {
37477
37477
  cancelHandle: (a) => {
37478
- if (vn.getFullPath("/"), e.listUrl)
37478
+ if (pn.getFullPath("/"), e.listUrl)
37479
37479
  window.location.href = decodeURIComponent(
37480
37480
  e.listUrl
37481
37481
  );
@@ -37483,17 +37483,15 @@ function BK() {
37483
37483
  const o = window.location.href;
37484
37484
  window.location.href = o.slice(0, o.lastIndexOf("box")) + "box/apphomede-fault";
37485
37485
  } else if (a === "draft")
37486
- window.location.href = `${vn.getFullPath(
37486
+ window.location.href = `${pn.getFullPath(
37487
37487
  t.userInfo.task_redirect_url_bo.mobile_my_approval
37488
37488
  )}?type=draft`;
37489
37489
  else if (history.state?.back) {
37490
37490
  const o = window.location.href;
37491
- window.location.href = `${o.slice(
37492
- 0,
37493
- location.href.indexOf("sapp") - 1
37494
- )}${history.state.back}`;
37491
+ let r;
37492
+ process.env.VUE_APP_CODE_OUT === "codeout" ? r = pn.getFullPath("/mobile.html#") + history.state?.back : r = `${o.slice(0, location.href.indexOf("sapp") - 1)}${history.state.back}`, window.location.href = r;
37495
37493
  } else
37496
- window.location.href = vn.getFullPath("/");
37494
+ window.location.href = pn.getFullPath("/");
37497
37495
  }
37498
37496
  };
37499
37497
  }
@@ -37589,7 +37587,7 @@ const qK = async (e, t) => {
37589
37587
  type: u
37590
37588
  }
37591
37589
  };
37592
- window.location.href = vn.getFullPath(
37590
+ window.location.href = pn.getFullPath(
37593
37591
  a.resolve(v).href
37594
37592
  );
37595
37593
  }
@@ -37766,10 +37764,10 @@ const WK = async (e) => {
37766
37764
  },
37767
37765
  success: async () => new Promise((w) => {
37768
37766
  let g = "";
37769
- _ === "save" ? g = yi().form.save : g = yi().process.save, yn("success", g, w);
37767
+ _ === "save" ? g = yi().form.save : g = yi().process.save, gn("success", g, w);
37770
37768
  }),
37771
37769
  fail: async (w) => {
37772
- yn("fail", w, () => {
37770
+ gn("fail", w, () => {
37773
37771
  });
37774
37772
  }
37775
37773
  }
@@ -37789,10 +37787,10 @@ const WK = async (e) => {
37789
37787
  optType: e?.optType
37790
37788
  },
37791
37789
  success: async () => new Promise((w) => {
37792
- yn("success", yi().form.saveAs, w);
37790
+ gn("success", yi().form.saveAs, w);
37793
37791
  }),
37794
37792
  fail: async (w) => {
37795
- yn("fail", w, () => {
37793
+ gn("fail", w, () => {
37796
37794
  });
37797
37795
  }
37798
37796
  }
@@ -37804,8 +37802,8 @@ const WK = async (e) => {
37804
37802
  t = await b.default.InvokeOptOperatorPrivateV1ApiAppsPOST({
37805
37803
  //由于后端接口参数不固定且无法提供可选参数
37806
37804
  payload: y
37807
- }), t.code === Le.SUCCESS ? yn("success", yi().opertaion.button, () => {
37808
- }) : yn("fail", t.message, () => {
37805
+ }), t.code === Le.SUCCESS ? gn("success", yi().opertaion.button, () => {
37806
+ }) : gn("fail", t.message, () => {
37809
37807
  });
37810
37808
  break;
37811
37809
  default:
@@ -37853,7 +37851,7 @@ const WK = async (e) => {
37853
37851
  header: l.query.header,
37854
37852
  open_mode: l.query.open_mode
37855
37853
  }
37856
- }, u = vn.getFullPath(s.resolve(c).href);
37854
+ }, u = pn.getFullPath(s.resolve(c).href);
37857
37855
  return r ? (nt.openWindow(u), window.multipleTabs.closePage({ hasTip: !1 })) : window.opener !== void 0 ? window.location.href = u : (nt.openWindow(u), window.closeIframe()), !1;
37858
37856
  }
37859
37857
  return !0;
@@ -37881,10 +37879,10 @@ const WK = async (e) => {
37881
37879
  break;
37882
37880
  }
37883
37881
  }
37884
- return yn(l, c ?? "", () => {
37882
+ return gn(l, c ?? "", () => {
37885
37883
  }, 3), !0;
37886
37884
  } else
37887
- return yn("fail", s.message ?? "", () => {
37885
+ return gn("fail", s.message ?? "", () => {
37888
37886
  }, 3), !1;
37889
37887
  };
37890
37888
  async function KK(e) {
@@ -38103,7 +38101,7 @@ class dP {
38103
38101
  // 审批提交数据
38104
38102
  async submitData(t, n, a) {
38105
38103
  if (this.engine.isMounted === !1) {
38106
- yn("fail", te.$t("common.hasError"));
38104
+ gn("fail", te.$t("common.hasError"));
38107
38105
  return;
38108
38106
  }
38109
38107
  nw(t, "ApprovalPlugin.ts, submitData, ~777~");
@@ -38166,7 +38164,7 @@ class dP {
38166
38164
  if (y?.includes(!1))
38167
38165
  a && a();
38168
38166
  else {
38169
- l.opt_code && yn("success", yi().opertaion.button, () => {
38167
+ l.opt_code && gn("success", yi().opertaion.button, () => {
38170
38168
  });
38171
38169
  let v = m.data?.handlers;
38172
38170
  s && m.data?.continue_approval_task_id && (v = m.data?.handlers?.map(
@@ -41088,7 +41086,7 @@ class jP {
41088
41086
  }
41089
41087
  });
41090
41088
  const g = f?.[0]?.[0], O = s.props.caption + ":" + (b ? g.includes(w?.props.caption || "") ? "" : w?.props.caption : "") + f?.[0]?.[0];
41091
- yn("fail", O);
41089
+ gn("fail", O);
41092
41090
  break;
41093
41091
  case "calcResult": {
41094
41092
  const P = a.source.controlId, S = a.result, C = a.rowIndex, A = t.getInstance(P, C), M = t.getState(P, C);
@@ -43365,7 +43363,7 @@ const bJ = ["layout", "data-cid", "data-index", "data-name"], wJ = ["required",
43365
43363
  }])
43366
43364
  }, [
43367
43365
  G("div", TJ, [
43368
- gn(X.$slots, "default", {}, void 0, !0),
43366
+ vn(X.$slots, "default", {}, void 0, !0),
43369
43367
  l.value.length ? (k(), H("div", PJ, re(l.value.join("/")), 1)) : le("", !0)
43370
43368
  ])
43371
43369
  ], 2)
@@ -43516,7 +43514,7 @@ const kJ = /* @__PURE__ */ ke(OJ, [["__scopeId", "data-v-cb62a71b"]]), AJ = /* @
43516
43514
  validate: c,
43517
43515
  scrollToField: m
43518
43516
  }), (y, v) => (k(), H("form", xJ, [
43519
- gn(y.$slots, "default")
43517
+ vn(y.$slots, "default")
43520
43518
  ]));
43521
43519
  }
43522
43520
  }), LJ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -46204,7 +46202,7 @@ const jX = /* @__PURE__ */ ke(LX, [["__scopeId", "data-v-0f51e84b"]]), JP = (e)
46204
46202
  size: i(Xn)
46205
46203
  }, {
46206
46204
  default: K(() => [
46207
- gn(vt.$slots, "toolbarRight", {}, void 0, !0),
46205
+ vn(vt.$slots, "toolbarRight", {}, void 0, !0),
46208
46206
  i(ea) ? Xe((k(), H("div", BX, zX)), [
46209
46207
  [gl, {
46210
46208
  content: vt.$t(
@@ -47113,7 +47111,7 @@ const hte = /* @__PURE__ */ ke(fte, [["__scopeId", "data-v-0ea07bdd"]]), mte = /
47113
47111
  props: Ue[q.INVOICE_CHECK_BUTTON],
47114
47112
  emits: [],
47115
47113
  setup(e, { emit: t }) {
47116
- const n = e, a = t, o = vn.getFullPath(
47114
+ const n = e, a = t, o = pn.getFullPath(
47117
47115
  "/apps/api/v1/private/attachment/uploadAttachments"
47118
47116
  ), { params: r } = Lt(), s = Me("context"), l = r.appId, c = (S) => {
47119
47117
  Ae.warning(S);
@@ -48569,7 +48567,7 @@ const Mne = /* @__PURE__ */ ke(Dne, [["__scopeId", "data-v-5e825cb2"]]), Ene = /
48569
48567
  })
48570
48568
  ]),
48571
48569
  default: K(() => [
48572
- gn(l.$slots, "default", { showMenu: o.value }, void 0, !0)
48570
+ vn(l.$slots, "default", { showMenu: o.value }, void 0, !0)
48573
48571
  ]),
48574
48572
  _: 3
48575
48573
  }, 8, ["open"]);
@@ -49005,12 +49003,12 @@ var Gne = ["evt"], _a = function(t, n) {
49005
49003
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = a.evt, r = Lne(a, Gne);
49006
49004
  nu.pluginEvent.bind(pt)(t, n, Qo({
49007
49005
  dragEl: Ve,
49008
- parentEl: pn,
49006
+ parentEl: fn,
49009
49007
  ghostEl: bt,
49010
49008
  rootEl: sn,
49011
49009
  nextEl: ps,
49012
49010
  lastDownEl: hd,
49013
- cloneEl: fn,
49011
+ cloneEl: hn,
49014
49012
  cloneHidden: Er,
49015
49013
  dragStarted: Kl,
49016
49014
  putSortable: Wn,
@@ -49040,7 +49038,7 @@ var Gne = ["evt"], _a = function(t, n) {
49040
49038
  function pa(e) {
49041
49039
  Yne(Qo({
49042
49040
  putSortable: Wn,
49043
- cloneEl: fn,
49041
+ cloneEl: hn,
49044
49042
  targetEl: Ve,
49045
49043
  rootEl: sn,
49046
49044
  oldIndex: vi,
@@ -49049,7 +49047,7 @@ function pa(e) {
49049
49047
  newDraggableIndex: Dr
49050
49048
  }, e));
49051
49049
  }
49052
- var Ve, pn, bt, sn, ps, hd, fn, Er, vi, Va, yc, Dr, Nu, Wn, pi = !1, $d = !1, Hd = [], rs, fo, rh, sh, Z_, J_, Kl, ii, gc, vc = !1, Ru = !1, md, ta, ih = [], Nm = !1, Yd = [], Rp = typeof document < "u", Lu = cC, X_ = tu || wr ? "cssFloat" : "float", Wne = Rp && !Vne && !cC && "draggable" in document.createElement("div"), mC = function() {
49050
+ var Ve, fn, bt, sn, ps, hd, hn, Er, vi, Va, yc, Dr, Nu, Wn, pi = !1, $d = !1, Hd = [], rs, fo, rh, sh, Z_, J_, Kl, ii, gc, vc = !1, Ru = !1, md, ta, ih = [], Nm = !1, Yd = [], Rp = typeof document < "u", Lu = cC, X_ = tu || wr ? "cssFloat" : "float", Wne = Rp && !Vne && !cC && "draggable" in document.createElement("div"), mC = function() {
49053
49051
  if (Rp) {
49054
49052
  if (wr)
49055
49053
  return !1;
@@ -49231,7 +49229,7 @@ pt.prototype = /** @lends Sortable.prototype */
49231
49229
  var o = this, r = o.el, s = o.options, l = r.ownerDocument, c;
49232
49230
  if (a && !Ve && a.parentNode === r) {
49233
49231
  var u = jn(a);
49234
- if (sn = r, Ve = a, pn = Ve.parentNode, ps = Ve.nextSibling, hd = a, Nu = s.group, pt.dragged = Ve, rs = {
49232
+ if (sn = r, Ve = a, fn = Ve.parentNode, ps = Ve.nextSibling, hd = a, Nu = s.group, pt.dragged = Ve, rs = {
49235
49233
  target: Ve,
49236
49234
  clientX: (n || t).clientX,
49237
49235
  clientY: (n || t).clientY
@@ -49359,8 +49357,8 @@ pt.prototype = /** @lends Sortable.prototype */
49359
49357
  this._onDrop();
49360
49358
  return;
49361
49359
  }
49362
- _a("setupClone", this), pt.eventCanceled || (fn = hC(Ve), fn.draggable = !1, fn.style["will-change"] = "", this._hideClone(), ja(fn, this.options.chosenClass, !1), pt.clone = fn), a.cloneId = yd(function() {
49363
- _a("clone", a), !pt.eventCanceled && (a.options.removeCloneOnHide || sn.insertBefore(fn, Ve), a._hideClone(), pa({
49360
+ _a("setupClone", this), pt.eventCanceled || (hn = hC(Ve), hn.draggable = !1, hn.style["will-change"] = "", this._hideClone(), ja(hn, this.options.chosenClass, !1), pt.clone = hn), a.cloneId = yd(function() {
49361
+ _a("clone", a), !pt.eventCanceled && (a.options.removeCloneOnHide || sn.insertBefore(hn, Ve), a._hideClone(), pa({
49364
49362
  sortable: a,
49365
49363
  name: "clone"
49366
49364
  }));
@@ -49413,23 +49411,23 @@ pt.prototype = /** @lends Sortable.prototype */
49413
49411
  return v;
49414
49412
  if (Ve.contains(t.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
49415
49413
  return T(!1);
49416
- if ($d = !1, u && !l.disabled && (d ? p || (s = pn !== sn) : Wn === this || (this.lastPutMode = Nu.checkPull(this, u, Ve, t)) && c.checkPut(this, u, Ve, t))) {
49414
+ if ($d = !1, u && !l.disabled && (d ? p || (s = fn !== sn) : Wn === this || (this.lastPutMode = Nu.checkPull(this, u, Ve, t)) && c.checkPut(this, u, Ve, t))) {
49417
49415
  if (m = this._getDirection(t, a) === "vertical", o = jn(Ve), b("dragOverValid"), pt.eventCanceled)
49418
49416
  return v;
49419
49417
  if (s)
49420
- return pn = sn, _(), this._hideClone(), b("revert"), pt.eventCanceled || (ps ? sn.insertBefore(Ve, ps) : sn.appendChild(Ve)), T(!0);
49418
+ return fn = sn, _(), this._hideClone(), b("revert"), pt.eventCanceled || (ps ? sn.insertBefore(Ve, ps) : sn.appendChild(Ve)), T(!0);
49421
49419
  var g = Dg(n, l.draggable);
49422
49420
  if (!g || tae(t, m, this) && !g.animated) {
49423
49421
  if (g === Ve)
49424
49422
  return T(!1);
49425
49423
  if (g && n === t.target && (a = g), a && (r = jn(a)), ju(sn, n, Ve, o, a, r, t, !!a) !== !1)
49426
- return _(), n.appendChild(Ve), pn = n, w(), T(!0);
49424
+ return _(), n.appendChild(Ve), fn = n, w(), T(!0);
49427
49425
  } else if (g && eae(t, m, this)) {
49428
49426
  var O = $i(n, 0, l, !0);
49429
49427
  if (O === Ve)
49430
49428
  return T(!1);
49431
49429
  if (a = O, r = jn(a), ju(sn, n, Ve, o, a, r, t, !1) !== !1)
49432
- return _(), n.insertBefore(Ve, O), pn = n, w(), T(!0);
49430
+ return _(), n.insertBefore(Ve, O), fn = n, w(), T(!0);
49433
49431
  } else if (a.parentNode === n) {
49434
49432
  r = jn(a);
49435
49433
  var P = 0, S, C = Ve.parentNode !== n, A = !Qne(Ve.animated && Ve.toRect || o, a.animated && a.toRect || r, m), M = m ? "top" : "left", D = Q_(a, "top", "top") || Q_(Ve, "top", "top"), E = D ? D.scrollTop : void 0;
@@ -49438,7 +49436,7 @@ pt.prototype = /** @lends Sortable.prototype */
49438
49436
  if (P !== 0) {
49439
49437
  var j = Ja(Ve);
49440
49438
  do
49441
- j -= P, x = pn.children[j];
49439
+ j -= P, x = fn.children[j];
49442
49440
  while (x && (dt(x, "display") === "none" || x === bt));
49443
49441
  }
49444
49442
  if (P === 0 || x === a)
@@ -49448,7 +49446,7 @@ pt.prototype = /** @lends Sortable.prototype */
49448
49446
  z = P === 1;
49449
49447
  var N = ju(sn, n, Ve, o, a, r, t, z);
49450
49448
  if (N !== !1)
49451
- return (N === 1 || N === -1) && (z = N === 1), Nm = !0, setTimeout(Xne, 30), _(), z && !$ ? n.appendChild(Ve) : a.parentNode.insertBefore(Ve, z ? $ : a), D && fC(D, 0, E - D.scrollTop), pn = Ve.parentNode, S !== void 0 && !Ru && (md = Math.abs(S - jn(a)[M])), w(), T(!0);
49449
+ return (N === 1 || N === -1) && (z = N === 1), Nm = !0, setTimeout(Xne, 30), _(), z && !$ ? n.appendChild(Ve) : a.parentNode.insertBefore(Ve, z ? $ : a), D && fC(D, 0, E - D.scrollTop), fn = Ve.parentNode, S !== void 0 && !Ru && (md = Math.abs(S - jn(a)[M])), w(), T(!0);
49452
49450
  }
49453
49451
  if (n.contains(Ve))
49454
49452
  return T(!1);
@@ -49467,58 +49465,58 @@ pt.prototype = /** @lends Sortable.prototype */
49467
49465
  var n = this.el, a = this.options;
49468
49466
  if (Va = Ja(Ve), Dr = Ja(Ve, a.draggable), _a("drop", this, {
49469
49467
  evt: t
49470
- }), pn = Ve && Ve.parentNode, Va = Ja(Ve), Dr = Ja(Ve, a.draggable), pt.eventCanceled) {
49468
+ }), fn = Ve && Ve.parentNode, Va = Ja(Ve), Dr = Ja(Ve, a.draggable), pt.eventCanceled) {
49471
49469
  this._nulling();
49472
49470
  return;
49473
49471
  }
49474
- pi = !1, Ru = !1, vc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Rm(this.cloneId), Rm(this._dragStartId), this.nativeDraggable && (xt(document, "drop", this), xt(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), hc && dt(document.body, "user-select", ""), dt(Ve, "transform", ""), t && (Kl && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (sn === pn || Wn && Wn.lastPutMode !== "clone") && fn && fn.parentNode && fn.parentNode.removeChild(fn), Ve && (this.nativeDraggable && xt(Ve, "dragend", this), lh(Ve), Ve.style["will-change"] = "", Kl && !pi && ja(Ve, Wn ? Wn.options.ghostClass : this.options.ghostClass, !1), ja(Ve, this.options.chosenClass, !1), pa({
49472
+ pi = !1, Ru = !1, vc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Rm(this.cloneId), Rm(this._dragStartId), this.nativeDraggable && (xt(document, "drop", this), xt(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), hc && dt(document.body, "user-select", ""), dt(Ve, "transform", ""), t && (Kl && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), bt && bt.parentNode && bt.parentNode.removeChild(bt), (sn === fn || Wn && Wn.lastPutMode !== "clone") && hn && hn.parentNode && hn.parentNode.removeChild(hn), Ve && (this.nativeDraggable && xt(Ve, "dragend", this), lh(Ve), Ve.style["will-change"] = "", Kl && !pi && ja(Ve, Wn ? Wn.options.ghostClass : this.options.ghostClass, !1), ja(Ve, this.options.chosenClass, !1), pa({
49475
49473
  sortable: this,
49476
49474
  name: "unchoose",
49477
- toEl: pn,
49475
+ toEl: fn,
49478
49476
  newIndex: null,
49479
49477
  newDraggableIndex: null,
49480
49478
  originalEvent: t
49481
- }), sn !== pn ? (Va >= 0 && (pa({
49482
- rootEl: pn,
49479
+ }), sn !== fn ? (Va >= 0 && (pa({
49480
+ rootEl: fn,
49483
49481
  name: "add",
49484
- toEl: pn,
49482
+ toEl: fn,
49485
49483
  fromEl: sn,
49486
49484
  originalEvent: t
49487
49485
  }), pa({
49488
49486
  sortable: this,
49489
49487
  name: "remove",
49490
- toEl: pn,
49488
+ toEl: fn,
49491
49489
  originalEvent: t
49492
49490
  }), pa({
49493
- rootEl: pn,
49491
+ rootEl: fn,
49494
49492
  name: "sort",
49495
- toEl: pn,
49493
+ toEl: fn,
49496
49494
  fromEl: sn,
49497
49495
  originalEvent: t
49498
49496
  }), pa({
49499
49497
  sortable: this,
49500
49498
  name: "sort",
49501
- toEl: pn,
49499
+ toEl: fn,
49502
49500
  originalEvent: t
49503
49501
  })), Wn && Wn.save()) : Va !== vi && Va >= 0 && (pa({
49504
49502
  sortable: this,
49505
49503
  name: "update",
49506
- toEl: pn,
49504
+ toEl: fn,
49507
49505
  originalEvent: t
49508
49506
  }), pa({
49509
49507
  sortable: this,
49510
49508
  name: "sort",
49511
- toEl: pn,
49509
+ toEl: fn,
49512
49510
  originalEvent: t
49513
49511
  })), pt.active && ((Va == null || Va === -1) && (Va = vi, Dr = yc), pa({
49514
49512
  sortable: this,
49515
49513
  name: "end",
49516
- toEl: pn,
49514
+ toEl: fn,
49517
49515
  originalEvent: t
49518
49516
  }), this.save()))), this._nulling();
49519
49517
  },
49520
49518
  _nulling: function() {
49521
- _a("nulling", this), sn = Ve = pn = bt = ps = fn = hd = Er = rs = fo = Kl = Va = Dr = vi = yc = ii = gc = Wn = Nu = pt.dragged = pt.ghost = pt.clone = pt.active = null, Yd.forEach(function(t) {
49519
+ _a("nulling", this), sn = Ve = fn = bt = ps = hn = hd = Er = rs = fo = Kl = Va = Dr = vi = yc = ii = gc = Wn = Nu = pt.dragged = pt.ghost = pt.clone = pt.active = null, Yd.forEach(function(t) {
49522
49520
  t.checked = !0;
49523
49521
  }), Yd.length = rh = sh = 0;
49524
49522
  },
@@ -49602,7 +49600,7 @@ pt.prototype = /** @lends Sortable.prototype */
49602
49600
  if (!Er) {
49603
49601
  if (_a("hideClone", this), pt.eventCanceled)
49604
49602
  return;
49605
- dt(fn, "display", "none"), this.options.removeCloneOnHide && fn.parentNode && fn.parentNode.removeChild(fn), Er = !0;
49603
+ dt(hn, "display", "none"), this.options.removeCloneOnHide && hn.parentNode && hn.parentNode.removeChild(hn), Er = !0;
49606
49604
  }
49607
49605
  },
49608
49606
  _showClone: function(t) {
@@ -49613,7 +49611,7 @@ pt.prototype = /** @lends Sortable.prototype */
49613
49611
  if (Er) {
49614
49612
  if (_a("showClone", this), pt.eventCanceled)
49615
49613
  return;
49616
- Ve.parentNode == sn && !this.options.group.revertClone ? sn.insertBefore(fn, Ve) : ps ? sn.insertBefore(fn, ps) : sn.appendChild(fn), this.options.group.revertClone && this.animate(Ve, fn), dt(fn, "display", ""), Er = !1;
49614
+ Ve.parentNode == sn && !this.options.group.revertClone ? sn.insertBefore(hn, Ve) : ps ? sn.insertBefore(hn, ps) : sn.appendChild(hn), this.options.group.revertClone && this.animate(Ve, hn), dt(hn, "display", ""), Er = !1;
49617
49615
  }
49618
49616
  }
49619
49617
  };
@@ -50275,7 +50273,7 @@ function Nae(e, t, n, a, o, r) {
50275
50273
  }
50276
50274
  }, {
50277
50275
  default: K(({ data: f }) => [
50278
- gn(e.$slots, "default", { data: f }, void 0, !0)
50276
+ vn(e.$slots, "default", { data: f }, void 0, !0)
50279
50277
  ]),
50280
50278
  _: 2
50281
50279
  }, 1032, ["list", "disabled", "onCut", "onRemove"])
@@ -50287,7 +50285,7 @@ function Nae(e, t, n, a, o, r) {
50287
50285
  disabled: e.disabled
50288
50286
  }, null, 8, ["checked", "onUpdate:checked", "disabled"])) : le("", !0),
50289
50287
  G("div", Eae, [
50290
- gn(e.$slots, "default", { data: d }, () => [
50288
+ vn(e.$slots, "default", { data: d }, () => [
50291
50289
  F(u, { data: d }, null, 8, ["data"])
50292
50290
  ], !0)
50293
50291
  ]),
@@ -50449,7 +50447,7 @@ function qae(e, t, n, a, o, r) {
50449
50447
  }, re(e.$t("control.listView.clear")), 1)
50450
50448
  ])) : (k(), H("div", Fae)),
50451
50449
  G("div", Bae, [
50452
- gn(e.$slots, "head", {}, void 0, !0)
50450
+ vn(e.$slots, "head", {}, void 0, !0)
50453
50451
  ]),
50454
50452
  F(s, {
50455
50453
  class: "mt10",
@@ -50462,7 +50460,7 @@ function qae(e, t, n, a, o, r) {
50462
50460
  onMyDelete: e.removeItemPlusPro
50463
50461
  }, {
50464
50462
  default: K(({ data: l }) => [
50465
- gn(e.$slots, "default", { data: l }, void 0, !0)
50463
+ vn(e.$slots, "default", { data: l }, void 0, !0)
50466
50464
  ]),
50467
50465
  _: 3
50468
50466
  }, 8, ["list", "deepth", "is-show-filter", "disabled", "onCut", "onRemove", "onMyDelete"])
@@ -52364,7 +52362,7 @@ const _r = (e) => (bn("data-v-67d382ff"), e = e(), wn(), e), Eoe = { class: "lis
52364
52362
  flex: e.viewShowType === "select" ? "" : 1
52365
52363
  })
52366
52364
  }, [
52367
- gn(ie.$slots, "default", {}, void 0, !0)
52365
+ vn(ie.$slots, "default", {}, void 0, !0)
52368
52366
  ], 4),
52369
52367
  G("div", {
52370
52368
  class: "overflow-x-scroll overflow-y-hidden no-scrollbar",
@@ -54944,7 +54942,7 @@ const bie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
54944
54942
  name: c.id,
54945
54943
  gutter: o.value
54946
54944
  }, null, 8, ["instance", "name", "gutter"]))), 128)),
54947
- gn(s.$slots, "default", {}, void 0, !0)
54945
+ vn(s.$slots, "default", {}, void 0, !0)
54948
54946
  ], 4));
54949
54947
  }
54950
54948
  });
@@ -54975,7 +54973,7 @@ const Sie = /* @__PURE__ */ ke(_ie, [["__scopeId", "data-v-c0bb30f0"]]), Iie = {
54975
54973
  name: c.id
54976
54974
  }, null, 8, ["instance", "value", "name"])) : le("", !0)
54977
54975
  ], 64))), 256)),
54978
- gn(s.$slots, "default", {}, void 0, !0)
54976
+ vn(s.$slots, "default", {}, void 0, !0)
54979
54977
  ], 6));
54980
54978
  }
54981
54979
  });
@@ -58081,7 +58079,7 @@ function Ale(e, t, n, a, o, r, s) {
58081
58079
  const g = () => {
58082
58080
  const P = !!s.value?.priorityProcess && oa(T.value) && T.value !== "", S = _.value.appId, C = i(r)?.externalParams.url.sappId, A = m.multipleTabs, M = A[C]?.panesList ?? [];
58083
58081
  if (M?.length >= 20) {
58084
- yn(
58082
+ gn(
58085
58083
  "warning",
58086
58084
  fS("message.appLauncherTabTip")
58087
58085
  );
@@ -59307,7 +59305,7 @@ const ZC = [
59307
59305
  isShowUnit: v.props?.isShowUnit,
59308
59306
  unit: b
59309
59307
  });
59310
- } else if (t?.fieldType === mn.MONEY && t.type === q.AMOUNT) {
59308
+ } else if (t?.fieldType === yn.MONEY && t.type === q.AMOUNT) {
59311
59309
  const v = t, b = v.props.defaultValue.currency, _ = v.props.datasourceBind.displayBoList[0]?.value, T = Cce.find(
59312
59310
  (P) => P[v.props.datasourceBind.valueFieldCode] === b
59313
59311
  ), { getCacheDisplayValue: w } = An(v), g = w(e.value.currency)[0], O = g || T[_];
@@ -61316,7 +61314,7 @@ const {
61316
61314
  desc: p[i(o).id] === "desc"
61317
61315
  }
61318
61316
  ]), T.push({ column_name: "id", desc: !1 }), await new Promise(
61319
- (g, O) => fetch(vn.getFullPath("/apps/api/v1/private/import/subDataExport"), {
61317
+ (g, O) => fetch(pn.getFullPath("/apps/api/v1/private/import/subDataExport"), {
61320
61318
  method: "POST",
61321
61319
  headers: {
61322
61320
  "Content-Type": "application/json"
@@ -61345,11 +61343,11 @@ const {
61345
61343
  (w) => w.template?.uid === i(u)
61346
61344
  );
61347
61345
  _ === 0 && window.open(
61348
- vn.getFullPath(
61346
+ pn.getFullPath(
61349
61347
  `/apps/api/v1/private/import/downloadTemplate?template_code=${T?.template?.code}`
61350
61348
  )
61351
61349
  ), _ === 1 && window.open(
61352
- vn.getFullPath(
61350
+ pn.getFullPath(
61353
61351
  `/attachment/api/v1/private/download/${T?.template?.example_file}`
61354
61352
  )
61355
61353
  );
@@ -61555,11 +61553,11 @@ const due = { class: "flex items-center" }, pue = {
61555
61553
  (P) => P.template?.uid === i(u)
61556
61554
  );
61557
61555
  g === 0 && window.open(
61558
- vn.getFullPath(
61556
+ pn.getFullPath(
61559
61557
  `/apps/api/v1/private/import/downloadTemplate?template_code=${O?.template?.code}`
61560
61558
  )
61561
61559
  ), g === 1 && window.open(
61562
- vn.getFullPath(
61560
+ pn.getFullPath(
61563
61561
  `/attachment/api/v1/private/download/${O?.template?.example_file}`
61564
61562
  )
61565
61563
  );
@@ -62977,7 +62975,7 @@ const ppe = (e) => e.split(" ")[0], fpe = (e) => e.split(" ")[1].slice(0, 5), hp
62977
62975
  ), s = V(
62978
62976
  () => i(r) && t.eventItem?.operation_type === ec.UPDATE
62979
62977
  ), l = V(
62980
- () => t.eventItem?.field_type === mn.FILE || t.eventItem?.field_type === mn.IMAGE
62978
+ () => t.eventItem?.field_type === yn.FILE || t.eventItem?.field_type === yn.IMAGE
62981
62979
  ), c = (p) => p, u = V(() => i(a) ? te.$t("changeLog.createRecord") : i(o) ? te.$t("changeLog.editedForm") : ""), d = V(() => {
62982
62980
  if (i(n))
62983
62981
  return i(u);
@@ -63393,7 +63391,7 @@ const zpe = /* @__PURE__ */ ke(qpe, [["__scopeId", "data-v-0beb6757"]]), Upe = /
63393
63391
  const Oe = new FormData();
63394
63392
  Oe.append("file", ye), ly({
63395
63393
  method: "post",
63396
- url: vn.getFullPath(
63394
+ url: pn.getFullPath(
63397
63395
  "/apps/api/v1/private/attachment/uploadAttachments"
63398
63396
  ),
63399
63397
  data: Oe,
@@ -65065,7 +65063,7 @@ const Qfe = /* @__PURE__ */ ke($fe, [["render", Wfe]]), Kfe = /* @__PURE__ */ Ob
65065
65063
  });
65066
65064
  function Jfe(e, t, n, a, o, r) {
65067
65065
  return k(), H("div", null, [
65068
- gn(e.$slots, "default")
65066
+ vn(e.$slots, "default")
65069
65067
  ]);
65070
65068
  }
65071
65069
  const Xfe = /* @__PURE__ */ ke(Zfe, [["render", Jfe]]);
@@ -66365,7 +66363,7 @@ const {
66365
66363
  },
66366
66364
  // *下载高级导入模板 0模板 1示例
66367
66365
  handleDownloadExternalTemplate(e) {
66368
- this.templateConfig ? (e === 0 && window.open(vn.getFullPath(`/apps/api/v1/private/import/downloadTemplate?template_code=${this.templateConfig.template?.code}`)), e === 1 && window.open(vn.getFullPath(`/attachment/api/v1/private/download/${this.templateConfig.template?.example_file}`))) : Ae.warning($e("control.gridTable.selectImportTemplate"));
66366
+ this.templateConfig ? (e === 0 && window.open(pn.getFullPath(`/apps/api/v1/private/import/downloadTemplate?template_code=${this.templateConfig.template?.code}`)), e === 1 && window.open(pn.getFullPath(`/attachment/api/v1/private/download/${this.templateConfig.template?.example_file}`))) : Ae.warning($e("control.gridTable.selectImportTemplate"));
66369
66367
  },
66370
66368
  handleDownloadResult(e) {
66371
66369
  const t = e.download_url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-desktop-controls",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-desktop-controls.js",