@byteluck-fe/runtime-mobile-controls 7.0.0-beta.1 → 7.0.0-beta.2

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,9 +1,9 @@
1
- import { ref as Y, reactive as Zr, readonly as OZ, provide as fa, inject as Ne, unref as m, onUnmounted as xo, shallowRef as pn, onBeforeUnmount as Sl, toRaw as xr, nextTick as dt, getCurrentInstance as Tl, computed as z, watch as Ae, isRef as qt, isProxy as YT, onBeforeUpdate as LZ, watchEffect as tP, toRefs as Rh, onMounted as sn, onBeforeMount as NZ, createVNode as le, defineComponent as ve, mergeDefaults as rt, resolveComponent as se, resolveDirective as nP, withDirectives as It, openBlock as R, createElementBlock as G, normalizeClass as _e, createElementVNode as q, Fragment as Ce, renderList as je, createBlock as oe, resolveDynamicComponent as Be, mergeProps as Wt, withCtx as ie, createTextVNode as At, toDisplayString as ae, createCommentVNode as ue, withModifiers as wn, normalizeStyle as Qt, vShow as xt, pushScopeId as ft, popScopeId as ht, toRef as Dd, createSlots as ha, renderSlot as sr, normalizeProps as hi, guardReactiveProps as Ao, h as Bh, effectScope as F3, markRaw as wu, hasInjectionContext as RZ, isReactive as rP, getCurrentScope as BZ, onScopeDispose as VZ, createApp as FZ, shallowReactive as zZ, useAttrs as mp, Teleport as z3, isVNode as jZ, cloneVNode as j3 } from "vue";
1
+ import { ref as Y, reactive as Zr, readonly as OZ, provide as fa, inject as Ne, unref as m, onUnmounted as xo, shallowRef as pn, onBeforeUnmount as Sl, toRaw as xr, nextTick as dt, getCurrentInstance as Tl, computed as z, watch as Ae, isRef as qt, isProxy as YT, onBeforeUpdate as LZ, watchEffect as tP, toRefs as Rh, onMounted as sn, onBeforeMount as NZ, createVNode as le, defineComponent as ve, mergeDefaults as rt, resolveComponent as se, resolveDirective as nP, withDirectives as It, openBlock as R, createElementBlock as G, normalizeClass as _e, createElementVNode as q, Fragment as Ce, renderList as je, createBlock as oe, resolveDynamicComponent as Be, mergeProps as Ht, withCtx as ie, createTextVNode as At, toDisplayString as ae, createCommentVNode as ue, withModifiers as wn, normalizeStyle as Qt, vShow as xt, pushScopeId as ft, popScopeId as ht, toRef as Dd, createSlots as ha, renderSlot as sr, normalizeProps as hi, guardReactiveProps as Ao, h as Bh, effectScope as F3, markRaw as wu, hasInjectionContext as RZ, isReactive as rP, getCurrentScope as BZ, onScopeDispose as VZ, createApp as FZ, shallowReactive as zZ, useAttrs as mp, Teleport as z3, isVNode as jZ, cloneVNode as j3 } from "vue";
2
2
  import { cloneDeep as Jn, omit as UZ, isUndefined as qZ, keyBy as uc, map as Vh, isNil as yr, isEqual as ds, debounce as Po, isArray as Gr, throttle as D_, uniqBy as dl, uniq as U3, once as $Z, get as Gm, mapValues as GZ, isEmpty as HZ, keys as lg, merge as WZ, set as YZ, isNull as q3, take as ZZ } from "lodash";
3
3
  import { useStore as Mr, createStore as XZ } from "vuex";
4
4
  import { getLocaleText as Q, LocaleEnum as om, getPlaceholder as ZT, updateLocalMessage as QZ, getLabel as $E } from "@byteluck-fe/locale-message";
5
5
  import ge from "moment";
6
- import { client as it, isDef as rl, getCustomRequestHeader as k_, getFetch as Xo, HttpCodes as Fh, isArray as Hr, isString as Zn, ModelFieldTypes as Dt, buildUUID as zh, cacheManager as Ht, isEmpty as va, isNumber as aP, isObject as iP, path as Li, getBrowserType as oP, isFunction as $3, CustomUtilsMounted as KZ, formatDisplayData as JZ, VoBizModel as GE, customClose as eX, customOpenOperate as HE, customUpdateCurrentTab as tX } from "@byteluck-fe/global-shared";
6
+ import { client as it, isDef as rl, getCustomRequestHeader as k_, getFetch as Xo, HttpCodes as Fh, isArray as Hr, isString as Zn, ModelFieldTypes as Dt, buildUUID as zh, cacheManager as Wt, isEmpty as va, isNumber as aP, isObject as iP, path as Li, getBrowserType as oP, isFunction as $3, CustomUtilsMounted as KZ, formatDisplayData as JZ, VoBizModel as GE, customClose as eX, customOpenOperate as HE, customUpdateCurrentTab as tX } from "@byteluck-fe/global-shared";
7
7
  import { camelizeKeys as ga, CONTROL_TYPE as W, CONTROL_BASE_TYPE as es, isArray as nX, isDataBind as Ni, JSONCopy as Ge, decamelizeKeys as Et, OperationButton as rX, FieldTypes as Yn, PAGE_STATUS as dn, FORM_TYPE as co, isPlainObject as sP, DataSourceBind as aX, FieldFilterConditions as iX, DATE_CONFIG_TYPE as WE, DATE_LIMIT_TYPE as ug, OrganizeType as Su, DepartmentType as G3, TitleConfigEnum as ri, logerror as oX, log as H3, error as sX, EventLogic as XT, DataSourceParamItem as lX, DataSourceOrderItem as uX, genNonDuplicateId as cX, CALC_TOKEN_TYPE as zo, CALC_AGGREGATE_TYPE as cg, MultistageFillingItem as dX, DisplayBoListItem as pX, baseControls as fX, formControls as hX, layoutControls as vX, listControls as gX, columnControls as yX, searchControls as mX, wrapControls as _X, loadRemoteControl as bX, registerCustomControls as YE, registerByteluckControls as wX, nativeFetch as SX, VersionBuilder as W3, upgradeCustomControlSchema as TX, RulesMessage as IX, ImageCompressType as CX, SCORE_TYPE as ka } from "@byteluck-fe/model-driven-core-all";
8
8
  import { loopDataViewControl as xX, parseModule as ZE, Engine as Hm, ES6ModulePlugin as AX, LifecycleEventPlugin as PX, ControlsEventPlugin as MX, StylePlugin as DX } from "@byteluck-fe/model-driven-engine";
9
9
  import "@byteluck-fe/model-driven-settings";
@@ -13437,11 +13437,11 @@ async function Vue(n) {
13437
13437
  } : void 0,
13438
13438
  t
13439
13439
  ]);
13440
- r && r.data_set && Ht.handleAllDisplayData(
13440
+ r && r.data_set && Wt.handleAllDisplayData(
13441
13441
  r?.data_set.values,
13442
13442
  r?.data_set.data_code
13443
13443
  ), r?.extend_data_set && r?.extend_data_set.forEach((u) => {
13444
- Ht.handleAllDisplayData(u.values, u.data_code);
13444
+ Wt.handleAllDisplayData(u.values, u.data_code);
13445
13445
  }), a && a.subDataDisplay && a.orginData && PP(a);
13446
13446
  const i = r ?? {
13447
13447
  data_set: {}
@@ -13494,11 +13494,11 @@ async function Fue(n) {
13494
13494
  data_set: m(e).externalParams.data.data_set,
13495
13495
  header_data: m(e).externalParams.data.header_data
13496
13496
  });
13497
- t && t.data_set && Ht.handleAllDisplayData(
13497
+ t && t.data_set && Wt.handleAllDisplayData(
13498
13498
  t?.data_set.values,
13499
13499
  t?.data_set.data_code
13500
13500
  ), t?.extend_data_set && t?.extend_data_set.forEach((s) => {
13501
- Ht.handleAllDisplayData(s.values, s.data_code);
13501
+ Wt.handleAllDisplayData(s.values, s.data_code);
13502
13502
  }), rl(n.uId) && n.uId !== "" && O4({
13503
13503
  context: e,
13504
13504
  uId: n.uId,
@@ -15743,7 +15743,7 @@ function Pde(n, e) {
15743
15743
  const PP = (n) => {
15744
15744
  for (const e in n.subDataDisplay) {
15745
15745
  const t = n.subDataDisplay[e];
15746
- Ht.batchSetMapCache({
15746
+ Wt.batchSetMapCache({
15747
15747
  dic_map: t.dic_map,
15748
15748
  display_map: { [e]: t.display_map }
15749
15749
  });
@@ -15782,7 +15782,7 @@ const ba = (n) => {
15782
15782
  return;
15783
15783
  }
15784
15784
  s?.forEach((u, c) => {
15785
- l[c] && Ht.setStorageCache(
15785
+ l[c] && Wt.setStorageCache(
15786
15786
  r.fieldType,
15787
15787
  u,
15788
15788
  l[c]
@@ -15793,10 +15793,10 @@ const ba = (n) => {
15793
15793
  if (!s)
15794
15794
  return [];
15795
15795
  const l = typeof s == "string" && s ? [s] : s;
15796
- return Ht.getCacheDisplay(r, l);
15796
+ return Wt.getCacheDisplay(r, l);
15797
15797
  },
15798
15798
  updateCacheDisplay: (s, l, u) => {
15799
- Ht.updateDisplayCache(
15799
+ Wt.updateDisplayCache(
15800
15800
  r,
15801
15801
  s,
15802
15802
  l || "value",
@@ -18865,18 +18865,21 @@ function EP(n) {
18865
18865
  }), e;
18866
18866
  }
18867
18867
  function G4(n) {
18868
- const e = pn(
18869
- n.headers.filter((r) => !r.isHide)
18868
+ const e = () => {
18869
+ const a = n?.headers ?? n?.instance?.props?.headers;
18870
+ return Array.isArray(a) ? a : [];
18871
+ }, t = pn(
18872
+ e().filter((a) => !a.isHide)
18870
18873
  );
18871
- bp((r) => {
18872
- n.headers.includes(r.instance) && r.props === "isHide" && (e.value = n.headers.filter((a) => !a.props?.isHide));
18874
+ bp((a) => {
18875
+ e().includes(a.instance) && a.props === "isHide" && (t.value = e().filter((i) => !i.props?.isHide));
18873
18876
  });
18874
- const t = z(
18875
- () => m(e).find(
18876
- (r) => r.type === "operation-column"
18877
+ const r = z(
18878
+ () => m(t).find(
18879
+ (a) => a.type === "operation-column"
18877
18880
  )?.children || []
18878
18881
  );
18879
- return { headers: e, operationBtns: t };
18882
+ return { headers: t, operationBtns: r };
18880
18883
  }
18881
18884
  function _fe(n) {
18882
18885
  const e = [];
@@ -22400,7 +22403,7 @@ function I_e(n, e) {
22400
22403
  getInfoById: !0
22401
22404
  }
22402
22405
  });
22403
- return Ht.updateDisplayCache(
22406
+ return Wt.updateDisplayCache(
22404
22407
  n.instance.props?.dataBind,
22405
22408
  te(be).data,
22406
22409
  "department_id",
@@ -77187,7 +77190,7 @@ const tYe = {}, nYe = { style: { display: "none" } }, rYe = { class: "action-bar
77187
77190
  ])
77188
77191
  }, [
77189
77192
  q("div", nYe, [
77190
- (R(!0), G(Ce, null, je(a.value, (C) => (R(), oe(Be(`rok-${C.type}`), Wt({
77193
+ (R(!0), G(Ce, null, je(a.value, (C) => (R(), oe(Be(`rok-${C.type}`), Ht({
77191
77194
  key: C.id,
77192
77195
  instance: C,
77193
77196
  ref_for: !0
@@ -77205,7 +77208,7 @@ const tYe = {}, nYe = { style: { display: "none" } }, rYe = { class: "action-bar
77205
77208
  ]])
77206
77209
  }, [
77207
77210
  g.value.length > 4 ? (R(), G(Ce, { key: 0 }, [
77208
- (R(!0), G(Ce, null, je(g.value.slice(0, 3), (C) => (R(), oe(Be(`rok-${C.type}`), Wt({
77211
+ (R(!0), G(Ce, null, je(g.value.slice(0, 3), (C) => (R(), oe(Be(`rok-${C.type}`), Ht({
77209
77212
  key: C.id,
77210
77213
  instance: C,
77211
77214
  ref_for: !0
@@ -77225,7 +77228,7 @@ const tYe = {}, nYe = { style: { display: "none" } }, rYe = { class: "action-bar
77225
77228
  ]),
77226
77229
  _: 1
77227
77230
  })
77228
- ], 64)) : (R(!0), G(Ce, { key: 1 }, je(g.value, (C) => (R(), oe(Be(`rok-${C.type}`), Wt({
77231
+ ], 64)) : (R(!0), G(Ce, { key: 1 }, je(g.value, (C) => (R(), oe(Be(`rok-${C.type}`), Ht({
77229
77232
  key: C.id,
77230
77233
  instance: C,
77231
77234
  ref_for: !0
@@ -77245,7 +77248,7 @@ const tYe = {}, nYe = { style: { display: "none" } }, rYe = { class: "action-bar
77245
77248
  key: C.id,
77246
77249
  class: "action-bar-btn"
77247
77250
  }, [
77248
- (R(), oe(Be(`rok-${C.type}`), Wt({
77251
+ (R(), oe(Be(`rok-${C.type}`), Ht({
77249
77252
  instance: C,
77250
77253
  ref_for: !0
77251
77254
  }, C.props, {
@@ -78067,7 +78070,7 @@ function J9(n) {
78067
78070
  }), $ = (ee) => {
78068
78071
  d.value = ee, a({ amount: ee, currency: f.value }), k(), g?.value.isMounted === !0 && P({ amount: ee, currency: f.value });
78069
78072
  }, H = (ee) => {
78070
- Ht.setCache(
78073
+ Wt.setCache(
78071
78074
  l.value.dataBind.currency.dataCode,
78072
78075
  l.value.dataBind.currency.fieldCode,
78073
78076
  ee.value,
@@ -78746,7 +78749,7 @@ function eY(n) {
78746
78749
  Me[ze] = he[ze];
78747
78750
  });
78748
78751
  }, D = (he, be) => {
78749
- Ht.updateDisplayCache(
78752
+ Wt.updateDisplayCache(
78750
78753
  n.instance.props.dataBind,
78751
78754
  he.data,
78752
78755
  "file_id",
@@ -78870,7 +78873,7 @@ function eY(n) {
78870
78873
  return T++, Me;
78871
78874
  });
78872
78875
  }, fe = z(
78873
- () => Ht.getCacheDisplay(n.instance.props.dataBind, n.value)
78876
+ () => Wt.getCacheDisplay(n.instance.props.dataBind, n.value)
78874
78877
  );
78875
78878
  let pe = null;
78876
78879
  const Ie = async (he) => {
@@ -79941,7 +79944,7 @@ const _Ze = /* @__PURE__ */ Pe(mZe, [["__scopeId", "data-v-70a97fb5"]]), bZe = /
79941
79944
  ])) : ue("", !0)
79942
79945
  ])) : ue("", !0),
79943
79946
  m(r) && m(r).length && o.value ? (R(), G("div", CZe, [
79944
- (R(!0), G(Ce, null, je(m(a), (p) => (R(), oe(Be(`rok-${p.type}`), Wt({
79947
+ (R(!0), G(Ce, null, je(m(a), (p) => (R(), oe(Be(`rok-${p.type}`), Ht({
79945
79948
  key: p.id,
79946
79949
  instance: p,
79947
79950
  ref_for: !0
@@ -79967,7 +79970,7 @@ const _Ze = /* @__PURE__ */ Pe(mZe, [["__scopeId", "data-v-70a97fb5"]]), bZe = /
79967
79970
  ])) : ue("", !0)
79968
79971
  ])) : ue("", !0),
79969
79972
  It(q("div", null, [
79970
- (R(!0), G(Ce, null, je(m(a), (p) => (R(), oe(Be(`rok-${p.type}`), Wt({
79973
+ (R(!0), G(Ce, null, je(m(a), (p) => (R(), oe(Be(`rok-${p.type}`), Ht({
79971
79974
  key: p.id,
79972
79975
  instance: p,
79973
79976
  ref_for: !0
@@ -81072,7 +81075,7 @@ const GXe = ["id"], HXe = { key: 0 }, WXe = {
81072
81075
  }, {
81073
81076
  default: ie(() => [
81074
81077
  (R(!0), G(Ce, null, je(n.instance.children, (Re) => (R(), G(Ce, null, [
81075
- Re.props.isHide ? ue("", !0) : (R(), oe(Be(`rok-${Re.type}`), Wt({
81078
+ Re.props.isHide ? ue("", !0) : (R(), oe(Be(`rok-${Re.type}`), Ht({
81076
81079
  key: Re.id,
81077
81080
  instance: Re,
81078
81081
  ref_for: !0
@@ -82330,7 +82333,7 @@ function lY(n) {
82330
82333
  }
82331
82334
  return s.data;
82332
82335
  }, a = z(
82333
- () => Ht.getCacheDisplay(n.instance.props.dataBind, n.value)
82336
+ () => Wt.getCacheDisplay(n.instance.props.dataBind, n.value)
82334
82337
  ), i = () => {
82335
82338
  n?.value?.length && (a.value.length ? t.value = a.value?.map(
82336
82339
  (o) => ga(o)
@@ -82518,7 +82521,7 @@ function uY(n, e) {
82518
82521
  _(E);
82519
82522
  const V = E.map((j) => j.department_id).filter((j) => j);
82520
82523
  for (let j = 0; j < (V || [])?.length; j++)
82521
- Ht.setStorageCache(
82524
+ Wt.setStorageCache(
82522
82525
  // props.instance.props.dataBind.fieldType,//dataBind中的fieldType可能为空
82523
82526
  n.instance.fieldType,
82524
82527
  (V || [])[j],
@@ -82566,7 +82569,7 @@ function uY(n, e) {
82566
82569
  if (B?.code === qe.SUCCESS) {
82567
82570
  E = B.data;
82568
82571
  for (let F = 0; F < (E || [])?.length; F++)
82569
- Ht.setStorageCache(
82572
+ Wt.setStorageCache(
82570
82573
  // props.instance.props.dataBind.fieldType,
82571
82574
  n.instance.fieldType,
82572
82575
  (E || [])[F].department_id,
@@ -82801,7 +82804,7 @@ const TKe = /* @__PURE__ */ Pe(SKe, [["__scopeId", "data-v-b949b090"]]), IKe = /
82801
82804
  }, Symbol.toStringTag, { value: "Module" }));
82802
82805
  function CKe(n) {
82803
82806
  const e = yt(), t = Y([]), r = z(
82804
- () => Ht.getCacheDisplay(n.instance.props.dataBind, n.value)
82807
+ () => Wt.getCacheDisplay(n.instance.props.dataBind, n.value)
82805
82808
  ), a = async (o = []) => {
82806
82809
  if (!o.length)
82807
82810
  return [];
@@ -82873,7 +82876,7 @@ function cY(n, e, t) {
82873
82876
  w(V);
82874
82877
  const j = V.map((B) => B.department_id).filter((B) => B);
82875
82878
  for (let B = 0; B < (j || [])?.length; B++)
82876
- Ht.setStorageCache(
82879
+ Wt.setStorageCache(
82877
82880
  // props.instance.props.dataBind.fieldType,//dataBind中的fieldType可能为空
82878
82881
  n.instance.fieldType,
82879
82882
  (j || [])[B],
@@ -82905,7 +82908,7 @@ function cY(n, e, t) {
82905
82908
  if (F?.code === qe.SUCCESS) {
82906
82909
  V = F.data;
82907
82910
  for (let $ = 0; $ < (V || [])?.length; $++)
82908
- Ht.setStorageCache(
82911
+ Wt.setStorageCache(
82909
82912
  // props.instance.props.dataBind.fieldType,
82910
82913
  n.instance.fieldType,
82911
82914
  (V || [])[$].department_id,
@@ -84099,7 +84102,7 @@ function fY(n) {
84099
84102
  } = Zt(e, n.instance, n.rowIndex), c = yt(), d = Y(), p = z(() => e?.value.multiple), f = z(() => e?.value.rangeOptions || []), h = z(
84100
84103
  () => n.value ? Array.isArray(n.value) ? n.value : n.value.split(",") : []
84101
84104
  ), v = z(
84102
- () => Ht.getCacheDisplay(
84105
+ () => Wt.getCacheDisplay(
84103
84106
  {
84104
84107
  ...n.instance?.props.dataBind,
84105
84108
  fieldType: n.instance.fieldType
@@ -84120,7 +84123,7 @@ function fY(n) {
84120
84123
  S($ && $.length ? $ : F);
84121
84124
  const H = F.map((Z) => Z.employee_id).filter((Z) => Z), K = H;
84122
84125
  for (let Z = 0; Z < (K || [])?.length; Z++)
84123
- Ht.setStorageCache(
84126
+ Wt.setStorageCache(
84124
84127
  // props.instance.props.dataBind.fieldType,//dataBind中的fieldType可能为空
84125
84128
  n.instance.fieldType,
84126
84129
  (K || [])[Z],
@@ -84163,7 +84166,7 @@ function fY(n) {
84163
84166
  if (K?.code === qe.SUCCESS) {
84164
84167
  F = K.data;
84165
84168
  for (let Z = 0; Z < (F || [])?.length; Z++)
84166
- Ht.setStorageCache(
84169
+ Wt.setStorageCache(
84167
84170
  // props.instance.props.dataBind.fieldType,
84168
84171
  n.instance.fieldType,
84169
84172
  (F || [])[Z].employee_id,
@@ -84441,7 +84444,7 @@ function hY(n) {
84441
84444
  () => n.value ? Array.isArray(n.value) ? n.value : n.value.split(",") : []
84442
84445
  );
84443
84446
  const A = z(
84444
- () => Ht.getCacheDisplay(
84447
+ () => Wt.getCacheDisplay(
84445
84448
  {
84446
84449
  ...n.instance?.props.dataBind,
84447
84450
  fieldType: n.instance.fieldType
@@ -84462,7 +84465,7 @@ function hY(n) {
84462
84465
  M(fe && fe.length ? fe : te);
84463
84466
  const Ie = te.map((ye) => ye.employee_id).filter((ye) => ye);
84464
84467
  for (let ye = 0; ye < (Ie || [])?.length; ye++)
84465
- Ht.setStorageCache(
84468
+ Wt.setStorageCache(
84466
84469
  // props.instance.props.dataBind.fieldType,//dataBind中的fieldType可能为空
84467
84470
  n.instance.fieldType,
84468
84471
  (Ie || [])[ye],
@@ -84508,7 +84511,7 @@ function hY(n) {
84508
84511
  if (Ie?.code === qe.SUCCESS) {
84509
84512
  te = Ie.data;
84510
84513
  for (let ye = 0; ye < (te || [])?.length; ye++)
84511
- Ht.setStorageCache(
84514
+ Wt.setStorageCache(
84512
84515
  // props.instance.props.dataBind.fieldType,
84513
84516
  n.instance.fieldType,
84514
84517
  (te || [])[ye].employee_id,
@@ -90129,7 +90132,7 @@ class M6 {
90129
90132
  });
90130
90133
  const r = e.instance.props;
90131
90134
  t.filter((i) => {
90132
- const o = r.optionConfig === "custom" ? r.options : Ht.getCacheDisplay(r.dataBind, i.option_ids).map((s, l) => ({
90135
+ const o = r.optionConfig === "custom" ? r.options : Wt.getCacheDisplay(r.dataBind, i.option_ids).map((s, l) => ({
90133
90136
  value: i.option_ids[l],
90134
90137
  label: s,
90135
90138
  id: i.option_ids[l]
@@ -92007,7 +92010,7 @@ class $6 {
92007
92010
  );
92008
92011
  let i;
92009
92012
  const o = z(
92010
- () => Ht.getCacheDisplay(e.props?.dataBind, a)
92013
+ () => Wt.getCacheDisplay(e.props?.dataBind, a)
92011
92014
  );
92012
92015
  if (o.value.length > 0)
92013
92016
  return i = o.value, i;
@@ -92020,7 +92023,7 @@ class $6 {
92020
92023
  dic_map: e,
92021
92024
  display_map: t
92022
92025
  }) {
92023
- Ht.batchSetMapCache({
92026
+ Wt.batchSetMapCache({
92024
92027
  dic_map: e,
92025
92028
  display_map: t
92026
92029
  });
@@ -99577,7 +99580,7 @@ const yst = ["data-engine-id"], mst = /* @__PURE__ */ ve({
99577
99580
  class: _e(["render-engine a1", ["page-status-" + v.pageStatus, "render-engine-" + m(l)?.id]]),
99578
99581
  "data-engine-id": m(l)?.id
99579
99582
  }, [
99580
- (R(!0), G(Ce, null, je(m(u), (T) => (R(), oe(Be(`${m(d)}${T.type}`), Wt({
99583
+ (R(!0), G(Ce, null, je(m(u), (T) => (R(), oe(Be(`${m(d)}${T.type}`), Ht({
99581
99584
  key: T.id,
99582
99585
  instance: T,
99583
99586
  "relation-value": v.relationValue,
@@ -99789,7 +99792,7 @@ function Fst(n, e, t, r, a, i) {
99789
99792
  n.loading ? (R(), G("div", Vst, [
99790
99793
  le(o, { size: "50" })
99791
99794
  ])) : ue("", !0),
99792
- n.findForm ? n.hasPermission ? n.supportMobile ? n.state.data !== null ? (R(), oe(c, Wt({
99795
+ n.findForm ? n.hasPermission ? n.supportMobile ? n.state.data !== null ? (R(), oe(c, Ht({
99793
99796
  key: 4,
99794
99797
  ref: "renderEngine",
99795
99798
  state: n.state,
@@ -99950,7 +99953,7 @@ const jst = {
99950
99953
  onEngineMounted: c,
99951
99954
  onEngineSubmitted: d
99952
99955
  } = zst(e, a);
99953
- return (p, f) => m(i) ? (R(), oe(m(Ov), Wt({
99956
+ return (p, f) => m(i) ? (R(), oe(m(Ov), Ht({
99954
99957
  key: 0,
99955
99958
  visible: m(i),
99956
99959
  "onUpdate:visible": f[0] || (f[0] = (h) => qt(i) ? i.value = h : null),
@@ -100298,7 +100301,7 @@ const olt = /* @__PURE__ */ Pe(ilt, [["__scopeId", "data-v-c9ab5d57"]]), slt = /
100298
100301
  return (e, t) => e.isStatic ? (R(), G("div", clt, [
100299
100302
  sr(e.$slots, "default", {}, void 0, !0)
100300
100303
  ])) : (R(), G("div", ult, [
100301
- (R(!0), G(Ce, null, je(e.instance.children, (r) => (R(), oe(Be(`rok-${r.type}`), Wt({
100304
+ (R(!0), G(Ce, null, je(e.instance.children, (r) => (R(), oe(Be(`rok-${r.type}`), Ht({
100302
100305
  key: r.id,
100303
100306
  instance: r,
100304
100307
  ref_for: !0
@@ -100348,7 +100351,7 @@ const flt = /* @__PURE__ */ Pe(plt, [["__scopeId", "data-v-884aa8c2"]]), hlt = /
100348
100351
  key: s.id
100349
100352
  }, [
100350
100353
  s.type !== "subtable" ? (R(), G("div", mlt)) : ue("", !0),
100351
- (R(), oe(Be(`rok-${s.type}`), Wt({
100354
+ (R(), oe(Be(`rok-${s.type}`), Ht({
100352
100355
  instance: s,
100353
100356
  ref_for: !0
100354
100357
  }, s.props, {
@@ -100398,7 +100401,7 @@ const Tlt = /* @__PURE__ */ Pe(Slt, [["__scopeId", "data-v-1e5471b3"]]), Ilt = /
100398
100401
  class: "rok-grid-row"
100399
100402
  }, {
100400
100403
  default: ie(() => [
100401
- (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Wt({
100404
+ (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Ht({
100402
100405
  key: u.id,
100403
100406
  instance: u,
100404
100407
  ref_for: !0
@@ -101294,7 +101297,7 @@ function mut(n, e, t, r, a, i) {
101294
101297
  key: v.id,
101295
101298
  class: "base-block-box"
101296
101299
  }, [
101297
- g !== 0 ? (R(), oe(Be(`rok-${v.type}`), Wt({
101300
+ g !== 0 ? (R(), oe(Be(`rok-${v.type}`), Ht({
101298
101301
  key: 0,
101299
101302
  instance: v,
101300
101303
  ref_for: !0
@@ -101316,7 +101319,7 @@ function mut(n, e, t, r, a, i) {
101316
101319
  class: _e(["btn-class", n.baseTableHandlerBtns[0].type]),
101317
101320
  "data-cid": n.baseTableHandlerBtns[0].id
101318
101321
  }, [
101319
- (R(), oe(Be(`rok-${n.baseTableHandlerBtns[0].type}`), Wt({
101322
+ (R(), oe(Be(`rok-${n.baseTableHandlerBtns[0].type}`), Ht({
101320
101323
  instance: n.baseTableHandlerBtns[0]
101321
101324
  }, n.baseTableHandlerBtns[0].props, {
101322
101325
  onClick: e[6] || (e[6] = (v) => n.handleTypeClick(n.baseTableHandlerBtns[0])?.changeListStatus?.())
@@ -101428,7 +101431,7 @@ function mut(n, e, t, r, a, i) {
101428
101431
  class: _e(["btn-class", n.batchTableHandlerBtns[0].type]),
101429
101432
  "data-cid": n.batchTableHandlerBtns[0].id
101430
101433
  }, [
101431
- (R(), oe(Be(`rok-${n.batchTableHandlerBtns[0].type}`), Wt({
101434
+ (R(), oe(Be(`rok-${n.batchTableHandlerBtns[0].type}`), Ht({
101432
101435
  instance: n.batchTableHandlerBtns[0]
101433
101436
  }, n.batchTableHandlerBtns[0].props, {
101434
101437
  onClick: e[11] || (e[11] = (v) => n.batchClick(n.batchTableHandlerBtns[0]))
@@ -101442,7 +101445,7 @@ function mut(n, e, t, r, a, i) {
101442
101445
  key: v.id,
101443
101446
  class: "batch-base-block-box"
101444
101447
  }, [
101445
- (R(), oe(Be(`rok-${v.type}`), Wt({
101448
+ (R(), oe(Be(`rok-${v.type}`), Ht({
101446
101449
  instance: v,
101447
101450
  ref_for: !0
101448
101451
  }, v.props, {
@@ -101665,8 +101668,7 @@ const Lut = /* @__PURE__ */ Pe(but, [["render", Out], ["__scopeId", "data-v-288c
101665
101668
  u?.viewValue !== Hd.ALL ? i.value = c : i.value = a;
101666
101669
  }
101667
101670
  ), (u, c) => (R(), G("div", Nut, [
101668
- le(m(_ut), {
101669
- instance: n.instance,
101671
+ le(m(_ut), Ht({ instance: n.instance }, n.instance.props, {
101670
101672
  columns: i.value,
101671
101673
  "data-source": n.value,
101672
101674
  pagination: n.pagination,
@@ -101675,11 +101677,11 @@ const Lut = /* @__PURE__ */ Pe(but, [["render", Out], ["__scopeId", "data-v-288c
101675
101677
  onOnGetList: o,
101676
101678
  onOnDelRow: s,
101677
101679
  onOnDetails: l
101678
- }, null, 8, ["instance", "columns", "data-source", "pagination", "show-checkbox", "primaryKey"])
101680
+ }), null, 16, ["instance", "columns", "data-source", "pagination", "show-checkbox", "primaryKey"])
101679
101681
  ]));
101680
101682
  }
101681
101683
  });
101682
- const V7 = /* @__PURE__ */ Pe(But, [["__scopeId", "data-v-340378e0"]]), Vut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
101684
+ const V7 = /* @__PURE__ */ Pe(But, [["__scopeId", "data-v-50b9dffd"]]), Vut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
101683
101685
  __proto__: null,
101684
101686
  RokGridTable: V7
101685
101687
  }, Symbol.toStringTag, { value: "Module" })), Fut = {
@@ -101718,7 +101720,7 @@ const V7 = /* @__PURE__ */ Pe(But, [["__scopeId", "data-v-340378e0"]]), Vut = /*
101718
101720
  (R(!0), G(Ce, null, je(s.value, (c) => (R(), G(Ce, {
101719
101721
  key: c.id
101720
101722
  }, [
101721
- c.props.isHide ? ue("", !0) : (R(), oe(Be(`rok-${c.type}`), Wt({
101723
+ c.props.isHide ? ue("", !0) : (R(), oe(Be(`rok-${c.type}`), Ht({
101722
101724
  key: 0,
101723
101725
  class: [
101724
101726
  m(t) === "approval" ? "rok-grid-approval" : "rok-grid-box",
@@ -102017,7 +102019,7 @@ function F7(n) {
102017
102019
  H[K] = F[K];
102018
102020
  });
102019
102021
  }, S = (F, $) => {
102020
- Ht.updateDisplayCache(
102022
+ Wt.updateDisplayCache(
102021
102023
  n.instance.props.dataBind,
102022
102024
  F.data,
102023
102025
  "file_id",
@@ -102128,7 +102130,7 @@ function F7(n) {
102128
102130
  return g++, H;
102129
102131
  });
102130
102132
  }, E = z(
102131
- () => Ht.getCacheDisplay(n.instance.props.dataBind, n.value)
102133
+ () => Wt.getCacheDisplay(n.instance.props.dataBind, n.value)
102132
102134
  ), V = async (F) => {
102133
102135
  let $;
102134
102136
  if (E.value && E.value.length === F.length)
@@ -102674,7 +102676,7 @@ const Qct = /* @__PURE__ */ ve({
102674
102676
  default: ie(() => [
102675
102677
  le(i, null, {
102676
102678
  default: ie(() => [
102677
- le(U7, Wt(e, {
102679
+ le(U7, Ht(e, {
102678
102680
  disabled: r.disabled,
102679
102681
  "svc-code": "ocr_mixed_receipt_template"
102680
102682
  }), null, 16, ["disabled"])
@@ -102959,7 +102961,7 @@ const pdt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
102959
102961
  ]),
102960
102962
  _: 1
102961
102963
  }),
102962
- le(v, Wt({ type: "primary" }, m(l), {
102964
+ le(v, Ht({ type: "primary" }, m(l), {
102963
102965
  onClick: m(s),
102964
102966
  "data-i18n": "LRT.common.enter"
102965
102967
  }), {
@@ -103002,7 +103004,7 @@ const Tdt = {
103002
103004
  ...Tdt,
103003
103005
  setup(n) {
103004
103006
  const e = Ne("context"), { visible: t, value: r, handlerClickOk: a, onEngineInit: i, props: o, instanceProps: s } = Sdt(e), l = mp();
103005
- return (u, c) => m(t) ? (R(), oe(m(I_), Wt({
103007
+ return (u, c) => m(t) ? (R(), oe(m(I_), Ht({
103006
103008
  key: 0,
103007
103009
  visible: m(t),
103008
103010
  "onUpdate:visible": c[0] || (c[0] = (d) => qt(t) ? t.value = d : null),
@@ -103036,7 +103038,7 @@ const Tdt = {
103036
103038
  const e = mp();
103037
103039
  return (t, r) => {
103038
103040
  const a = se("rok-button");
103039
- return R(), oe(a, Wt({
103041
+ return R(), oe(a, Ht({
103040
103042
  instance: n.instance,
103041
103043
  name: n.instance.type
103042
103044
  }, m(e)), null, 16, ["instance", "name"]);
@@ -103097,7 +103099,7 @@ const Tdt = {
103097
103099
  };
103098
103100
  return (d, p) => {
103099
103101
  const f = se("rok-button");
103100
- return R(), oe(f, Wt({
103102
+ return R(), oe(f, Ht({
103101
103103
  instance: n.instance,
103102
103104
  name: n.instance.type
103103
103105
  }, m(u), {
@@ -104055,7 +104057,7 @@ const Mpt = /* @__PURE__ */ Pe(Ppt, [["__scopeId", "data-v-f5f2e44f"]]), Dpt = /
104055
104057
  }, Symbol.toStringTag, { value: "Module" }));
104056
104058
  function kpt(n) {
104057
104059
  const e = yt(), t = Y([]), r = z(
104058
- () => Ht.getCacheDisplay(n.instance.props.dataBind, n.value)
104060
+ () => Wt.getCacheDisplay(n.instance.props.dataBind, n.value)
104059
104061
  ), a = async (o = []) => {
104060
104062
  if (!o.length)
104061
104063
  return [];
@@ -104125,7 +104127,7 @@ function H7(n, e, t) {
104125
104127
  w(E);
104126
104128
  const V = E.map((j) => j.department_id).filter((j) => j);
104127
104129
  for (let j = 0; j < (V || [])?.length; j++)
104128
- Ht.setStorageCache(
104130
+ Wt.setStorageCache(
104129
104131
  (n.instance?.props.dataBind).fieldType,
104130
104132
  (V || [])[j],
104131
104133
  E[j]
@@ -104156,7 +104158,7 @@ function H7(n, e, t) {
104156
104158
  if (B?.code === qe.SUCCESS) {
104157
104159
  E = B.data;
104158
104160
  for (let F = 0; F < (E || [])?.length; F++)
104159
- Ht.setStorageCache(
104161
+ Wt.setStorageCache(
104160
104162
  (n.instance?.props.dataBind).fieldType,
104161
104163
  (E || [])[F].department_id,
104162
104164
  E[F]
@@ -104863,7 +104865,7 @@ const Fft = /* @__PURE__ */ Pe(Vft, [["__scopeId", "data-v-337fb89d"]]), zft = /
104863
104865
  class: "rok-row"
104864
104866
  }, {
104865
104867
  default: ie(() => [
104866
- (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Wt({
104868
+ (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Ht({
104867
104869
  key: u.id,
104868
104870
  instance: u,
104869
104871
  ref_for: !0
@@ -104921,7 +104923,7 @@ const Fft = /* @__PURE__ */ Pe(Vft, [["__scopeId", "data-v-337fb89d"]]), zft = /
104921
104923
  isButton: u.type === "button" || u.type === "list-select-button" || u.type === "form-select-button"
104922
104924
  })
104923
104925
  }, [
104924
- (R(), oe(Be(`rok-${u.type}`), Wt({
104926
+ (R(), oe(Be(`rok-${u.type}`), Ht({
104925
104927
  instance: u,
104926
104928
  ref_for: !0
104927
104929
  }, u.props, {
@@ -107122,7 +107124,7 @@ const Ovt = {}, K7 = (n) => (ft("data-v-0fddc337"), n = n(), ht(), n), Lvt = /*
107122
107124
  });
107123
107125
  });
107124
107126
  const b = async (C) => {
107125
- Ht.updateDisplayCache(
107127
+ Wt.updateDisplayCache(
107126
107128
  e.instance.props.dataBind,
107127
107129
  C.selectedRows,
107128
107130
  "uid",
@@ -107823,7 +107825,7 @@ function Igt(n, e, t, r, a, i) {
107823
107825
  q("div", {
107824
107826
  class: _e(["rok-subtable-column-right", `rok-${o.type}`])
107825
107827
  }, [
107826
- (R(), oe(Be(`rok-${o.type}`), Wt({
107828
+ (R(), oe(Be(`rok-${o.type}`), Ht({
107827
107829
  instance: o,
107828
107830
  ref_for: !0
107829
107831
  }, o.props, {
@@ -107888,7 +107890,7 @@ function Pgt(n, e, t, r, a, i) {
107888
107890
  key: o.id,
107889
107891
  class: _e(["rok-subtable-row", [n.isEdit ? "is-edit" : "", `rok-${o.type}`]])
107890
107892
  }, [
107891
- !o.props.isHide || !o.children[0].props.isHide ? (R(), oe(Be(`rok-${o.type}`), Wt({
107893
+ !o.props.isHide || !o.children[0].props.isHide ? (R(), oe(Be(`rok-${o.type}`), Ht({
107892
107894
  key: 0,
107893
107895
  instance: o,
107894
107896
  ref_for: !0
@@ -108612,7 +108614,7 @@ function Wgt(n) {
108612
108614
  case W.EMPLOYEE2:
108613
108615
  case W.EMPLOYEE:
108614
108616
  J.props.dataBind.fieldType || (J.props.dataBind.fieldType = J.fieldType);
108615
- const Me = Ht.getCacheDisplay(
108617
+ const Me = Wt.getCacheDisplay(
108616
108618
  J.props.dataBind,
108617
108619
  X
108618
108620
  );
@@ -108625,7 +108627,7 @@ function Wgt(n) {
108625
108627
  case W.DEPARTMENT2:
108626
108628
  case W.ORGANIZATION_SELECTION:
108627
108629
  J.props.dataBind.fieldType || (J.props.dataBind.fieldType = J.fieldType);
108628
- const xe = Ht.getCacheDisplay(
108630
+ const xe = Wt.getCacheDisplay(
108629
108631
  J.props.dataBind,
108630
108632
  X
108631
108633
  );
@@ -111050,7 +111052,7 @@ const Umt = /* @__PURE__ */ Pe(jmt, [["__scopeId", "data-v-ad246901"]]), qmt = {
111050
111052
  `rok-subtable-content-${r.instance.id}`
111051
111053
  ]])
111052
111054
  }, [
111053
- t.value ? (R(), oe(cyt, hi(Wt({ key: 0 }, e)), null, 16)) : (R(), oe(Umt, hi(Wt({ key: 1 }, e)), null, 16))
111055
+ t.value ? (R(), oe(cyt, hi(Ht({ key: 0 }, e)), null, 16)) : (R(), oe(Umt, hi(Ht({ key: 1 }, e)), null, 16))
111054
111056
  ], 2));
111055
111057
  }
111056
111058
  });
@@ -111187,7 +111189,7 @@ const Jmt = /* @__PURE__ */ Pe(Kmt, [["__scopeId", "data-v-77fd0629"]]), e0t = /
111187
111189
  },
111188
111190
  setup(n) {
111189
111191
  const e = n, { getState: t, children: r, getInstanceProps: a } = wr(e.instance);
111190
- return (i, o) => (R(!0), G(Ce, null, je(m(r), (s) => (R(), oe(Be(`rok-${s.type}`), Wt({
111192
+ return (i, o) => (R(!0), G(Ce, null, je(m(r), (s) => (R(), oe(Be(`rok-${s.type}`), Ht({
111191
111193
  key: s.id,
111192
111194
  instance: s,
111193
111195
  ref_for: !0
@@ -111245,7 +111247,7 @@ const Jmt = /* @__PURE__ */ Pe(Kmt, [["__scopeId", "data-v-77fd0629"]]), e0t = /
111245
111247
  q("div", s0t, ae(p.props.caption), 1)
111246
111248
  ], 8, o0t),
111247
111249
  q("div", l0t, [
111248
- (R(), oe(Be(`rok-${p.type}`), Wt({
111250
+ (R(), oe(Be(`rok-${p.type}`), Ht({
111249
111251
  instance: p,
111250
111252
  ref_for: !0
111251
111253
  }, p.props, {
@@ -111275,7 +111277,7 @@ const Jmt = /* @__PURE__ */ Pe(Kmt, [["__scopeId", "data-v-77fd0629"]]), e0t = /
111275
111277
  key: p.id,
111276
111278
  class: "rok-tab-edit-box"
111277
111279
  }, [
111278
- (R(), oe(Be(`rok-${p.type}`), Wt({
111280
+ (R(), oe(Be(`rok-${p.type}`), Ht({
111279
111281
  instance: p,
111280
111282
  ref_for: !0
111281
111283
  }, p.props, {
@@ -111313,7 +111315,7 @@ const p0t = /* @__PURE__ */ Pe(d0t, [["__scopeId", "data-v-183693b1"]]), f0t = /
111313
111315
  class: "rok-table-layout-row"
111314
111316
  }, {
111315
111317
  default: ie(() => [
111316
- (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Wt({
111318
+ (R(!0), G(Ce, null, je(m(r), (u) => (R(), oe(Be(`rok-${u.type}`), Ht({
111317
111319
  key: u.id,
111318
111320
  instance: u,
111319
111321
  ref_for: !0
@@ -111404,7 +111406,7 @@ const A0t = /* @__PURE__ */ Pe(x0t, [["__scopeId", "data-v-648de15b"]]), P0t = /
111404
111406
  const e = n, { getState: t, children: r, getInstanceProps: a } = wr(e.instance), i = z(() => e.instanceProps?.value.isHide);
111405
111407
  return (o, s) => !o.isStatic && !i.value ? (R(), G("div", D0t, [
111406
111408
  k0t,
111407
- (R(!0), G(Ce, null, je(m(r), (l) => (R(), oe(Be(`rok-${l.type}`), Wt({
111409
+ (R(!0), G(Ce, null, je(m(r), (l) => (R(), oe(Be(`rok-${l.type}`), Ht({
111408
111410
  key: l.id,
111409
111411
  instance: l,
111410
111412
  ref_for: !0