@jt-home/mfe-components 1.0.26 → 1.0.27

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/index.mjs CHANGED
@@ -1,34 +1,36 @@
1
1
  import './style.css';
2
- import { defineComponent as ce, useAttrs as Kn, computed as P, openBlock as k, createBlock as U, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as Gt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as Yn, withKeys as Hn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as Kt, nextTick as Un, useSlots as Ee, normalizeClass as Ue, createVNode as we, withModifiers as Yt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Jn, mergeModels as Tt, shallowRef as Ve, onMounted as Ht, onBeforeUnmount as Wn, createTextVNode as Ye, resolveComponent as Zn, onErrorCaptured as Qn } from "vue";
3
- import { ElButton as It, ElIcon as Ut, ElCascader as Xn, ElDatePicker as Jt, ElInput as Wt, ElSelect as Zt, ElOption as Qt, ElFormItem as Xt, ElForm as en, ElTable as tn, ElTableColumn as nn, ElPagination as eo, ElLoadingDirective as to, ElInputNumber as no, ElSwitch as oo, ElRow as ro, ElCol as ao, ElPopconfirm as so } from "element-plus/es";
4
- import { cascaderEmits as io, inputEmits as Ot, selectEmits as Dt } from "element-plus";
5
- const gt = 2, lo = 3;
6
- function co(e) {
2
+ import { defineComponent as ce, useAttrs as xn, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as xt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, createVNode as we, withModifiers as Gt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
3
+ import { ElButton as It, ElIcon as Yt, ElCascader as Wn, ElDatePicker as Ut, ElInput as Ht, ElSelect as Jt, ElOption as Wt, ElFormItem as Zt, ElForm as Qt, ElTable as Xt, ElTableColumn as en, ElPagination as Zn, ElLoadingDirective as Qn, ElInputNumber as Xn, ElSwitch as eo, ElRow as to, ElCol as no, ElPopconfirm as oo } from "element-plus/es";
4
+ import { JtAttachmentPreview as Tt } from "./JtAttachmentPreview/index.mjs";
5
+ import { JtAttachmentPreviewByParams as Ha, setupJtAttachmentPreview as Ja } from "./JtAttachmentPreview/index.mjs";
6
+ import { cascaderEmits as ro, inputEmits as Ot, selectEmits as Dt } from "element-plus";
7
+ const gt = 2, ao = 3;
8
+ function so(e) {
7
9
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
8
10
  }
9
- function on(e) {
11
+ function tn(e) {
10
12
  if (!e.startsWith("on") || e.length <= gt)
11
13
  return !1;
12
14
  const t = e.charCodeAt(gt);
13
15
  return t < 97 || t > 122;
14
16
  }
15
- function uo(e) {
17
+ function io(e) {
16
18
  if (e.startsWith("on-"))
17
- return e.slice(lo);
18
- const [t, n] = e.slice(gt).split(":"), o = co(t);
19
+ return e.slice(ao);
20
+ const [t, n] = e.slice(gt).split(":"), o = so(t);
19
21
  return n ? `${o}:${n}` : o;
20
22
  }
21
- function rn(e, t = /* @__PURE__ */ new Set()) {
23
+ function nn(e, t = /* @__PURE__ */ new Set()) {
22
24
  return Object.fromEntries(
23
- Object.entries(e).filter(([n, o]) => !t.has(n) && on(n) && typeof o == "function").map(([n, o]) => [uo(n), o])
25
+ Object.entries(e).filter(([n, o]) => !t.has(n) && tn(n) && typeof o == "function").map(([n, o]) => [io(n), o])
24
26
  );
25
27
  }
26
- function an(e, t = /* @__PURE__ */ new Set()) {
28
+ function on(e, t = /* @__PURE__ */ new Set()) {
27
29
  return Object.fromEntries(
28
- Object.entries(e).filter(([n]) => !t.has(n) && !on(n))
30
+ Object.entries(e).filter(([n]) => !t.has(n) && !tn(n))
29
31
  );
30
32
  }
31
- const fo = /* @__PURE__ */ ce({
33
+ const lo = /* @__PURE__ */ ce({
32
34
  name: "JtButton",
33
35
  __name: "index",
34
36
  props: {
@@ -53,18 +55,18 @@ const fo = /* @__PURE__ */ ce({
53
55
  tag: {}
54
56
  },
55
57
  setup(e) {
56
- const t = e, n = Kn(), o = P(() => {
58
+ const t = e, n = xn(), o = V(() => {
57
59
  const { icon: i, ...s } = t;
58
60
  return {
59
- ...an(n),
61
+ ...on(n),
60
62
  ...s
61
63
  };
62
- }), r = P(() => rn(n));
64
+ }), r = V(() => nn(n));
63
65
  return (i, s) => {
64
- const l = Ut, a = It;
65
- return k(), U(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
66
+ const l = Yt, a = It;
67
+ return k(), H(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
66
68
  default: J(() => [
67
- i.$slots.icon ? (k(), U(l, {
69
+ i.$slots.icon ? (k(), H(l, {
68
70
  key: 0,
69
71
  class: "jt-button__icon"
70
72
  }, {
@@ -72,12 +74,12 @@ const fo = /* @__PURE__ */ ce({
72
74
  ee(i.$slots, "icon", {}, void 0, !0)
73
75
  ]),
74
76
  _: 3
75
- })) : t.icon ? (k(), U(l, {
77
+ })) : t.icon ? (k(), H(l, {
76
78
  key: 1,
77
79
  class: "jt-button__icon"
78
80
  }, {
79
81
  default: J(() => [
80
- (k(), U(Gt(t.icon)))
82
+ (k(), H(xt(t.icon)))
81
83
  ]),
82
84
  _: 1
83
85
  })) : ue("", !0),
@@ -92,7 +94,7 @@ const fo = /* @__PURE__ */ ce({
92
94
  for (const [o, r] of t)
93
95
  n[o] = r;
94
96
  return n;
95
- }, tt = /* @__PURE__ */ ye(fo, [["__scopeId", "data-v-fbcdce34"]]), po = {
97
+ }, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-fbcdce34"]]), co = {
96
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
97
99
  options: () => [],
98
100
  placeholder: "请选择",
@@ -105,16 +107,16 @@ function Ft(e) {
105
107
  Object.entries(e).filter(([, t]) => t !== void 0)
106
108
  );
107
109
  }
108
- function mo(e) {
110
+ function uo(e) {
109
111
  const t = Ft(e);
110
112
  return t.props && (t.props = Ft(
111
113
  t.props
112
114
  )), t;
113
115
  }
114
- const vo = /* @__PURE__ */ ce({
116
+ const fo = /* @__PURE__ */ ce({
115
117
  name: "JtCascader",
116
118
  __name: "index",
117
- props: /* @__PURE__ */ Yn({
119
+ props: /* @__PURE__ */ qn({
118
120
  size: {},
119
121
  placeholder: {},
120
122
  disabled: { type: Boolean },
@@ -152,10 +154,10 @@ const vo = /* @__PURE__ */ ce({
152
154
  emptyValues: {},
153
155
  valueOnClear: { type: [String, Number, Boolean, Function, null] },
154
156
  options: {}
155
- }, po),
156
- emits: io,
157
+ }, co),
158
+ emits: ro,
157
159
  setup(e, { emit: t }) {
158
- const n = e, o = P(() => mo(n)), r = he(n.modelValue);
160
+ const n = e, o = V(() => uo(n)), r = he(n.modelValue);
159
161
  Be(
160
162
  () => n.modelValue,
161
163
  (g) => {
@@ -192,8 +194,8 @@ const vo = /* @__PURE__ */ ce({
192
194
  s("removeTag", g);
193
195
  }
194
196
  return (g, w) => {
195
- const S = Xn;
196
- return k(), U(S, oe({ class: "jt-cascader" }, o.value, {
197
+ const S = Wn;
198
+ return k(), H(S, oe({ class: "jt-cascader" }, o.value, {
197
199
  "model-value": r.value,
198
200
  "onUpdate:modelValue": l,
199
201
  onChange: a,
@@ -206,7 +208,7 @@ const vo = /* @__PURE__ */ ce({
206
208
  }), null, 16, ["model-value"]);
207
209
  };
208
210
  }
209
- }), ho = /* @__PURE__ */ ce({
211
+ }), po = /* @__PURE__ */ ce({
210
212
  name: "JtDatePicker",
211
213
  __name: "index",
212
214
  props: {
@@ -260,7 +262,7 @@ const vo = /* @__PURE__ */ ce({
260
262
  teleported: { type: Boolean }
261
263
  },
262
264
  setup(e) {
263
- const t = e, n = P(() => ({
265
+ const t = e, n = V(() => ({
264
266
  ...t,
265
267
  teleported: t.teleported ?? !1,
266
268
  startPlaceholder: t.startPlaceholder ?? (o(t.type) ? "开始日期" : void 0),
@@ -270,13 +272,13 @@ const vo = /* @__PURE__ */ ce({
270
272
  return r?.includes("range") ?? !1;
271
273
  }
272
274
  return (r, i) => {
273
- const s = Jt;
274
- return k(), U(s, oe({ class: "jt-date-picker" }, n.value, {
275
+ const s = Ut;
276
+ return k(), H(s, oe({ class: "jt-date-picker" }, n.value, {
275
277
  "onUpdate:modelValue": i[0] || (i[0] = (l) => r.$emit("update:modelValue", l))
276
278
  }), null, 16);
277
279
  };
278
280
  }
279
- }), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-4ac673ef"]]), yo = /* @__PURE__ */ ce({
281
+ }), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-4ac673ef"]]), vo = /* @__PURE__ */ ce({
280
282
  name: "JtInput",
281
283
  __name: "index",
282
284
  props: {
@@ -319,20 +321,20 @@ const vo = /* @__PURE__ */ ce({
319
321
  enter: () => !0
320
322
  },
321
323
  setup(e, { emit: t }) {
322
- const n = e, o = t, r = P(() => Object.fromEntries(
324
+ const n = e, o = t, r = V(() => Object.fromEntries(
323
325
  Object.keys(Ot).map((i) => [
324
326
  i,
325
327
  (...s) => o(i, ...s)
326
328
  ])
327
329
  ));
328
330
  return (i, s) => {
329
- const l = Wt;
330
- return k(), U(l, oe({ class: "jt-input" }, n, Ze(r.value), {
331
- onKeyup: s[0] || (s[0] = Hn((a) => o("enter"), ["enter"]))
331
+ const l = Ht;
332
+ return k(), H(l, oe({ class: "jt-input" }, n, Ze(r.value), {
333
+ onKeyup: s[0] || (s[0] = Gn((a) => o("enter"), ["enter"]))
332
334
  }), null, 16);
333
335
  };
334
336
  }
335
- }), mt = /* @__PURE__ */ ye(yo, [["__scopeId", "data-v-c4e9cb3f"]]), bo = /* @__PURE__ */ ce({
337
+ }), mt = /* @__PURE__ */ ye(vo, [["__scopeId", "data-v-c4e9cb3f"]]), ho = /* @__PURE__ */ ce({
336
338
  name: "JtSelect",
337
339
  __name: "index",
338
340
  props: {
@@ -391,23 +393,23 @@ const vo = /* @__PURE__ */ ce({
391
393
  },
392
394
  emits: Dt,
393
395
  setup(e, { emit: t }) {
394
- const n = e, o = P(() => {
396
+ const n = e, o = V(() => {
395
397
  const { options: s, ...l } = n;
396
398
  return {
397
399
  ...l,
398
400
  teleported: n.teleported ?? !1
399
401
  };
400
- }), r = t, i = P(() => Object.fromEntries(
402
+ }), r = t, i = V(() => Object.fromEntries(
401
403
  Object.keys(Dt).map((s) => [
402
404
  s,
403
405
  (...l) => r(s, ...l)
404
406
  ])
405
407
  ));
406
408
  return (s, l) => {
407
- const a = Qt, c = Zt;
408
- return k(), U(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
409
+ const a = Wt, c = Jt;
410
+ return k(), H(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
409
411
  default: J(() => [
410
- (k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), U(a, oe({
412
+ (k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), H(a, oe({
411
413
  key: m.value,
412
414
  ref_for: !0
413
415
  }, m), null, 16))), 128))
@@ -416,7 +418,7 @@ const vo = /* @__PURE__ */ ce({
416
418
  }, 16);
417
419
  };
418
420
  }
419
- }), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-b5f022d9"]]), wo = { class: "jt-form-items" }, vt = 4, Io = /* @__PURE__ */ ce({
421
+ }), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-b5f022d9"]]), yo = { class: "jt-form-items" }, vt = 4, bo = /* @__PURE__ */ ce({
420
422
  name: "JTFormItems",
421
423
  __name: "JtFormItems",
422
424
  props: {
@@ -427,16 +429,16 @@ const vo = /* @__PURE__ */ ce({
427
429
  setup(e) {
428
430
  const t = e, n = {
429
431
  input: mt,
430
- select: So,
431
- cascader: vo,
432
- "date-picker": go
432
+ select: go,
433
+ cascader: fo,
434
+ "date-picker": mo
433
435
  }, o = {
434
436
  "remote-select": "select",
435
437
  date: "date-picker",
436
438
  daterange: "date-picker",
437
439
  "date-range": "date-picker",
438
440
  dateRange: "date-picker"
439
- }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = P(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
441
+ }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = V(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
440
442
  const { itemType: h } = I;
441
443
  if (!h) return mt;
442
444
  if (typeof h != "string") return h;
@@ -445,7 +447,7 @@ const vo = /* @__PURE__ */ ce({
445
447
  `[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
446
448
  ), mt);
447
449
  }, c = (I) => {
448
- const h = an(I, r);
450
+ const h = on(I, r);
449
451
  return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
450
452
  ...h,
451
453
  options: I.options
@@ -453,7 +455,7 @@ const vo = /* @__PURE__ */ ce({
453
455
  ...h,
454
456
  type: "daterange"
455
457
  } : h;
456
- }, m = (I) => rn(I, r), _ = (I) => ({
458
+ }, m = (I) => nn(I, r), _ = (I) => ({
457
459
  rules: I.rules,
458
460
  ...I.formItemProps
459
461
  }), $ = (I, h) => {
@@ -469,12 +471,12 @@ const vo = /* @__PURE__ */ ce({
469
471
  };
470
472
  }
471
473
  function A(I, h) {
472
- Un(() => {
474
+ Kn(() => {
473
475
  s.get(I)?.validate(h).catch(() => {
474
476
  });
475
477
  });
476
478
  }
477
- const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = P(() => {
479
+ const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = V(() => {
478
480
  const h = l.value.reduce(
479
481
  (T, p) => T + g(t.span || p.span),
480
482
  0
@@ -491,9 +493,9 @@ const vo = /* @__PURE__ */ ce({
491
493
  return I === "daterange" || I === "date-range" || I === "dateRange";
492
494
  }
493
495
  return (I, h) => {
494
- const T = Xt;
495
- return k(), Y("div", wo, [
496
- (k(!0), Y(be, null, ge(l.value, (p) => (k(), U(T, oe({
496
+ const T = Zt;
497
+ return k(), Y("div", yo, [
498
+ (k(!0), Y(be, null, ge(l.value, (p) => (k(), H(T, oe({
497
499
  key: p.prop,
498
500
  ref_for: !0,
499
501
  ref: b(p.prop),
@@ -503,7 +505,7 @@ const vo = /* @__PURE__ */ ce({
503
505
  prop: p.prop
504
506
  }, _(p)), {
505
507
  default: J(() => [
506
- p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), U(Gt(a(p)), oe({
508
+ p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(p)), oe({
507
509
  key: 1,
508
510
  "model-value": I.formData[p.prop],
509
511
  ref_for: !0
@@ -515,10 +517,10 @@ const vo = /* @__PURE__ */ ce({
515
517
  ]),
516
518
  _: 2
517
519
  }, 1040, ["style", "label", "prop"]))), 128)),
518
- I.$slots.actions ? (k(), U(T, {
520
+ I.$slots.actions ? (k(), H(T, {
519
521
  key: 0,
520
522
  class: "jt-form-items__actions",
521
- style: Kt(w.value)
523
+ style: qt(w.value)
522
524
  }, {
523
525
  default: J(() => [
524
526
  ee(I.$slots, "actions", {}, void 0, !0)
@@ -528,8 +530,8 @@ const vo = /* @__PURE__ */ ce({
528
530
  ]);
529
531
  };
530
532
  }
531
- }), _o = /* @__PURE__ */ ye(Io, [["__scopeId", "data-v-136dd5e5"]]);
532
- function $o() {
533
+ }), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-136dd5e5"]]);
534
+ function wo() {
533
535
  const e = he(!1);
534
536
  function t() {
535
537
  e.value = !0;
@@ -543,7 +545,7 @@ function $o() {
543
545
  searchDone: n
544
546
  };
545
547
  }
546
- const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", To = { class: "jt-filter-bar__btns" }, Oo = ["src"], Do = ["src"], Fo = ["src"], Bo = /* @__PURE__ */ ce({
548
+ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", _o = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", $o = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Co = { class: "jt-filter-bar__btns" }, ko = ["src"], Mo = ["src"], To = ["src"], Oo = /* @__PURE__ */ ce({
547
549
  name: "JtFilterBar",
548
550
  __name: "JtFilterBar",
549
551
  props: {
@@ -557,62 +559,62 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
557
559
  searchDisabled: a,
558
560
  searchLoading: c,
559
561
  searchDone: m
560
- } = $o(), _ = P(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = P(() => o.columns.filter((V) => V.search === !0)), A = P(
562
+ } = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = V(() => o.columns.filter((P) => P.search === !0)), A = V(
561
563
  () => Math.max(1, _.value.searchSpan ?? 4)
562
- ), g = P(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = P(() => A.value), S = P(
564
+ ), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), S = V(
563
565
  () => Math.max(1, w.value * g.value)
564
- ), j = P(() => A.value), I = P(() => F.value ? "264px" : "174px"), h = P(() => H(_.value.searchLabelWidth ?? 84)), T = P(() => _.value.searchLabelPosition ?? "top"), p = P(() => G(_.value.searchGutter, 14)), N = P(() => G(_.value.searchRowGap, 14)), y = P(() => X(_.value.searchPadding ?? "18px 4px 0")), F = P(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = P(() => {
566
+ ), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), h = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), p = V(() => G(_.value.searchGutter, 14)), N = V(() => G(_.value.searchRowGap, 14)), y = V(() => X(_.value.searchPadding ?? "18px 4px 0")), F = V(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = V(() => {
565
567
  if (!F.value || !$.value) return b.value;
566
- let V = 0;
568
+ let P = 0;
567
569
  return b.value.filter((Z) => {
568
570
  const ae = E(Z);
569
- return V + ae > S.value ? !1 : (V += ae, !0);
571
+ return P + ae > S.value ? !1 : (P += ae, !0);
570
572
  });
571
- }), z = P(
572
- () => O.value.filter((V) => !!s[`${V.prop}-search`])
573
- ), ne = P(() => {
574
- const [V] = O.value;
575
- return !!V && O.value.length === 1 && E(V) < A.value;
576
- }), x = P(() => {
577
- const [V] = O.value;
578
- return `${Math.min(A.value, V ? E(V) + 1 : 1)}`;
579
- }), R = P(
580
- () => O.value.map((V) => B(V))
573
+ }), z = V(
574
+ () => O.value.filter((P) => !!s[`${P.prop}-search`])
575
+ ), ne = V(() => {
576
+ const [P] = O.value;
577
+ return !!P && O.value.length === 1 && E(P) < A.value;
578
+ }), x = V(() => {
579
+ const [P] = O.value;
580
+ return `${Math.min(A.value, P ? E(P) + 1 : 1)}`;
581
+ }), R = V(
582
+ () => O.value.map((P) => B(P))
581
583
  );
582
584
  Be(
583
585
  () => _.value.searchCollapsed,
584
- (V) => {
585
- typeof V == "boolean" && ($.value = V);
586
+ (P) => {
587
+ typeof P == "boolean" && ($.value = P);
586
588
  }
587
589
  ), Be(
588
590
  () => o.modelValue,
589
- (V) => {
590
- l.value = { ...V };
591
+ (P) => {
592
+ l.value = { ...P };
591
593
  },
592
594
  { deep: !0, immediate: !0 }
593
595
  );
594
- function D(V, Z) {
596
+ function D(P, Z) {
595
597
  if (a.value) return;
596
- const ae = { ...l.value, [V]: Z };
598
+ const ae = { ...l.value, [P]: Z };
597
599
  l.value = ae, r("update:modelValue", ae);
598
600
  }
599
- function B(V) {
600
- const Z = V.searchProps ?? {};
601
+ function B(P) {
602
+ const Z = P.searchProps ?? {};
601
603
  return {
602
604
  ...Z,
603
- prop: V.prop,
604
- label: V.searchLabel ?? V.label,
605
- span: E(V),
606
- itemType: V.searchType ?? "input",
605
+ prop: P.prop,
606
+ label: P.searchLabel ?? P.label,
607
+ span: E(P),
608
+ itemType: P.searchType ?? "input",
607
609
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
608
- showSlot: !!s[`${V.prop}-search`],
609
- options: Z.options ?? V.searchOptions ?? V.dicData,
610
- placeholder: Z.placeholder ?? V.searchPlaceholder,
611
- valueFormat: Z.valueFormat ?? V.searchValueFormat,
610
+ showSlot: !!s[`${P.prop}-search`],
611
+ options: Z.options ?? P.searchOptions ?? P.dicData,
612
+ placeholder: Z.placeholder ?? P.searchPlaceholder,
613
+ valueFormat: Z.valueFormat ?? P.searchValueFormat,
612
614
  disabled: a.value || Z.disabled === !0,
613
615
  formItemProps: {
614
- required: V.searchRequired,
615
- class: ["jt-filter-bar__item", { "is-required": V.searchRequired }]
616
+ required: P.searchRequired,
617
+ class: ["jt-filter-bar__item", { "is-required": P.searchRequired }]
616
618
  },
617
619
  // 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
618
620
  onEnter: (...ae) => {
@@ -620,16 +622,16 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
620
622
  },
621
623
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
622
624
  "onUpdate:modelValue": (ae) => {
623
- u(Z["onUpdate:modelValue"], ae), D(V.prop, ae);
625
+ u(Z["onUpdate:modelValue"], ae), D(P.prop, ae);
624
626
  }
625
627
  };
626
628
  }
627
- function u(V, ...Z) {
628
- if (Array.isArray(V)) {
629
- V.forEach((ae) => u(ae, ...Z));
629
+ function u(P, ...Z) {
630
+ if (Array.isArray(P)) {
631
+ P.forEach((ae) => u(ae, ...Z));
630
632
  return;
631
633
  }
632
- typeof V == "function" && V(...Z);
634
+ typeof P == "function" && P(...Z);
633
635
  }
634
636
  async function v() {
635
637
  if (!a.value) {
@@ -648,20 +650,20 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
648
650
  function L() {
649
651
  $.value = !$.value;
650
652
  }
651
- function E(V) {
652
- return Math.min(A.value, Math.max(1, V.searchSpan ?? 1));
653
+ function E(P) {
654
+ return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
653
655
  }
654
- function q(V) {
655
- return V.reduce((Z, ae) => Z + E(ae), 0);
656
+ function q(P) {
657
+ return P.reduce((Z, ae) => Z + E(ae), 0);
656
658
  }
657
- function H(V) {
658
- return typeof V == "number" ? `${V}px` : V;
659
+ function U(P) {
660
+ return typeof P == "number" ? `${P}px` : P;
659
661
  }
660
- function G(V, Z) {
661
- return typeof V == "number" ? V : Z;
662
+ function G(P, Z) {
663
+ return typeof P == "number" ? P : Z;
662
664
  }
663
- function X(V) {
664
- return typeof V == "number" ? `${V}px` : V;
665
+ function X(P) {
666
+ return typeof P == "number" ? `${P}px` : P;
665
667
  }
666
668
  return t({
667
669
  /** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
@@ -672,11 +674,11 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
672
674
  searchLoading: c,
673
675
  /** 关闭筛选表单禁用。 */
674
676
  searchDone: m
675
- }), (V, Z) => {
676
- const ae = en;
677
+ }), (P, Z) => {
678
+ const ae = Qt;
677
679
  return k(), Y("div", {
678
- class: Ue(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
679
- style: Kt({
680
+ class: He(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
681
+ style: qt({
680
682
  "--jt-filter-columns": A.value,
681
683
  "--jt-filter-field-columns": j.value,
682
684
  "--jt-filter-btns-width": I.value,
@@ -695,34 +697,34 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
695
697
  "label-position": T.value,
696
698
  "label-width": h.value,
697
699
  disabled: re(a),
698
- onSubmit: Z[0] || (Z[0] = Yt(() => {
700
+ onSubmit: Z[0] || (Z[0] = Gt(() => {
699
701
  }, ["prevent"]))
700
702
  }, {
701
703
  default: J(() => [
702
- we(re(_o), {
704
+ we(re(So), {
703
705
  configs: R.value,
704
706
  "form-data": l.value
705
707
  }, je({
706
708
  actions: J(() => [
707
- te("div", To, [
708
- ee(V.$slots, "search-menu", {
709
+ te("div", Co, [
710
+ ee(P.$slots, "search-menu", {
709
711
  search: v,
710
712
  reset: C,
711
713
  disabled: re(a),
712
714
  collapsed: $.value,
713
715
  toggleCollapse: L
714
716
  }, () => [
715
- F.value ? (k(), U(re(tt), {
717
+ F.value ? (k(), H(re(tt), {
716
718
  key: 0,
717
719
  class: "jt-filter-bar__btn-collapse",
718
720
  onClick: L
719
721
  }, {
720
722
  icon: J(() => [
721
723
  te("img", {
722
- class: Ue(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
723
- src: re(Co),
724
+ class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
725
+ src: re(Io),
724
726
  alt: ""
725
- }, null, 10, Oo)
727
+ }, null, 10, ko)
726
728
  ]),
727
729
  default: J(() => [
728
730
  te("span", null, fe($.value ? "展 开" : "收 起"), 1)
@@ -736,9 +738,9 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
736
738
  }, {
737
739
  icon: J(() => [
738
740
  te("img", {
739
- src: re(ko),
741
+ src: re(_o),
740
742
  alt: ""
741
- }, null, 8, Do)
743
+ }, null, 8, Mo)
742
744
  ]),
743
745
  default: J(() => [
744
746
  te("span", null, fe(_.value.resetBtnText ?? "重 置"), 1)
@@ -753,9 +755,9 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
753
755
  }, {
754
756
  icon: J(() => [
755
757
  te("img", {
756
- src: re(Mo),
758
+ src: re($o),
757
759
  alt: ""
758
- }, null, 8, Fo)
760
+ }, null, 8, To)
759
761
  ]),
760
762
  default: J(() => [
761
763
  te("span", null, fe(_.value.searchBtnText ?? "查 询"), 1)
@@ -770,7 +772,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
770
772
  ge(z.value, (pe) => ({
771
773
  name: pe.prop,
772
774
  fn: J(() => [
773
- ee(V.$slots, `${pe.prop}-search`, {
775
+ ee(P.$slots, `${pe.prop}-search`, {
774
776
  value: l.value[pe.prop],
775
777
  column: pe,
776
778
  setValue: (de) => D(pe.prop, de),
@@ -787,7 +789,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
787
789
  ], 6);
788
790
  };
789
791
  }
790
- }), Eo = /* @__PURE__ */ ye(Bo, [["__scopeId", "data-v-860e6c98"]]), Lo = { key: 1 }, Po = { key: 2 }, Vo = { key: 3 }, Ao = /* @__PURE__ */ ce({
792
+ }), Do = /* @__PURE__ */ ye(Oo, [["__scopeId", "data-v-860e6c98"]]), Fo = { key: 1 }, Bo = { key: 2 }, Eo = { key: 3 }, Lo = /* @__PURE__ */ ce({
791
793
  name: "JtTable",
792
794
  __name: "JtTable",
793
795
  props: {
@@ -797,7 +799,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
797
799
  tableEvents: {}
798
800
  },
799
801
  setup(e, { expose: t }) {
800
- const n = e, o = Ee(), r = he(), i = P(() => n.option ?? {}), s = P(() => n.columns.filter((b) => !b.hide));
802
+ const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((b) => !b.hide));
801
803
  function l(b) {
802
804
  return !!o[`${b}-header`];
803
805
  }
@@ -825,8 +827,8 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
825
827
  return b.find((g) => g.value === A)?.label ?? String(A ?? "");
826
828
  }
827
829
  return t({ tableRef: r }), (b, A) => {
828
- const g = nn, w = tn;
829
- return k(), U(w, oe({
830
+ const g = en, w = Xt;
831
+ return k(), H(w, oe({
830
832
  ref_key: "tableRef",
831
833
  ref: r,
832
834
  data: b.data,
@@ -837,20 +839,20 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
837
839
  class: "jt-table"
838
840
  }, i.value.tableProps, Ze(b.tableEvents)), {
839
841
  default: J(() => [
840
- i.value.selection ? (k(), U(g, {
842
+ i.value.selection ? (k(), H(g, {
841
843
  key: 0,
842
844
  type: "selection",
843
845
  width: "55",
844
846
  align: "center"
845
847
  })) : ue("", !0),
846
- i.value.index ? (k(), U(g, {
848
+ i.value.index ? (k(), H(g, {
847
849
  key: 1,
848
850
  type: "index",
849
851
  label: i.value.indexLabel ?? "序号",
850
852
  width: "60",
851
853
  align: "center"
852
854
  }, null, 8, ["label"])) : ue("", !0),
853
- (k(!0), Y(be, null, ge(s.value, (S) => (k(), U(g, oe({
855
+ (k(!0), Y(be, null, ge(s.value, (S) => (k(), H(g, oe({
854
856
  key: S.prop,
855
857
  prop: S.prop,
856
858
  label: S.label,
@@ -870,12 +872,12 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
870
872
  a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
871
873
  key: 0,
872
874
  ref_for: !0
873
- }, j), void 0, !0) : S.dicData ? (k(), Y("span", Lo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Po, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Vo, fe(j.row[S.prop]), 1))
875
+ }, j), void 0, !0) : S.dicData ? (k(), Y("span", Fo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Bo, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[S.prop]), 1))
874
876
  ]),
875
877
  key: "1"
876
878
  } : void 0
877
879
  ]), 1040, ["prop", "label", "formatter"]))), 128)),
878
- i.value.menu ? (k(), U(g, {
880
+ i.value.menu ? (k(), H(g, {
879
881
  key: 2,
880
882
  label: i.value.menuLabel ?? "操作",
881
883
  width: i.value.menuWidth,
@@ -893,7 +895,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
893
895
  }, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
894
896
  };
895
897
  }
896
- }), jo = /* @__PURE__ */ ye(Ao, [["__scopeId", "data-v-2f881a67"]]), No = { class: "jt-pagination" }, Ro = { class: "jt-pagination__count" }, zo = /* @__PURE__ */ ce({
898
+ }), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-2f881a67"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ ce({
897
899
  name: "JtPagination",
898
900
  __name: "JtPagination",
899
901
  props: {
@@ -904,13 +906,13 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
904
906
  },
905
907
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
906
908
  setup(e, { emit: t }) {
907
- const n = e, o = P(() => n.option ?? {}), r = t;
909
+ const n = e, o = V(() => n.option ?? {}), r = t;
908
910
  function i(s) {
909
911
  r("current-change", s), r("page-change", s);
910
912
  }
911
913
  return (s, l) => {
912
- const a = eo;
913
- return k(), Y("div", No, [
914
+ const a = Zn;
915
+ return k(), Y("div", Po, [
914
916
  we(a, {
915
917
  "current-page": s.currentPage,
916
918
  "page-size": s.pageSize,
@@ -922,17 +924,17 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
922
924
  onCurrentChange: i,
923
925
  onSizeChange: l[2] || (l[2] = (c) => s.$emit("size-change", c))
924
926
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
925
- te("span", Ro, "共" + fe(s.total) + "条记录", 1)
927
+ te("span", Ao, "共" + fe(s.total) + "条记录", 1)
926
928
  ]);
927
929
  };
928
930
  }
929
- }), xo = /* @__PURE__ */ ye(zo, [["__scopeId", "data-v-c6757399"]]), qo = { class: "jt-crud-table" }, Go = {
931
+ }), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-c6757399"]]), Ro = { class: "jt-crud-table" }, zo = {
930
932
  key: 1,
931
933
  class: "jt-crud-table__toolbar"
932
- }, Ko = /* @__PURE__ */ ce({
934
+ }, xo = /* @__PURE__ */ ce({
933
935
  name: "JtCrudTable",
934
936
  __name: "JtCrudTable",
935
- props: /* @__PURE__ */ Tt({
937
+ props: /* @__PURE__ */ Mt({
936
938
  columns: {},
937
939
  option: { default: () => ({}) },
938
940
  data: {},
@@ -946,13 +948,13 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
946
948
  searchModel: { default: () => ({}) },
947
949
  searchModelModifiers: {}
948
950
  }),
949
- emits: /* @__PURE__ */ Tt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
951
+ emits: /* @__PURE__ */ Mt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
950
952
  setup(e, { expose: t, emit: n }) {
951
- const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = P(() => o.option), $ = P(() => _.value.searchShow !== !1), b = P(() => _.value.paginationShow !== !1), A = P(
953
+ const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), b = V(() => _.value.paginationShow !== !1), A = V(
952
954
  () => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
953
- ), g = P(
955
+ ), g = V(
954
956
  () => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
955
- ), w = P(
957
+ ), w = V(
956
958
  () => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
957
959
  );
958
960
  function S() {
@@ -975,7 +977,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
975
977
  }
976
978
  return t({
977
979
  /** 获取内部 el-table 实例 */
978
- tableRef: P(() => c.value?.tableRef),
980
+ tableRef: V(() => c.value?.tableRef),
979
981
  /** 获取内部筛选条实例 */
980
982
  filterBarRef: m,
981
983
  /** 开启筛选表单禁用。 */
@@ -983,10 +985,10 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
983
985
  /** 关闭筛选表单禁用。 */
984
986
  searchDone: T
985
987
  }), (p, N) => {
986
- const y = to;
987
- return k(), Y("div", qo, [
988
+ const y = Qn;
989
+ return k(), Y("div", Ro, [
988
990
  ee(p.$slots, "header", {}, void 0, !0),
989
- $.value ? (k(), U(Eo, {
991
+ $.value ? (k(), H(Do, {
990
992
  key: 0,
991
993
  ref_key: "filterBarRef",
992
994
  ref: m,
@@ -1004,10 +1006,10 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1004
1006
  ])
1005
1007
  }))
1006
1008
  ]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
1007
- re(a).toolbar ? (k(), Y("div", Go, [
1009
+ re(a).toolbar ? (k(), Y("div", zo, [
1008
1010
  ee(p.$slots, "toolbar", {}, void 0, !0)
1009
1011
  ])) : ue("", !0),
1010
- Jn((k(), U(jo, {
1012
+ Yn((k(), H(Vo, {
1011
1013
  ref_key: "jtTableRef",
1012
1014
  ref: c,
1013
1015
  data: p.data,
@@ -1037,7 +1039,7 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1037
1039
  ]), 1032, ["data", "columns", "option", "table-events"])), [
1038
1040
  [y, _.value.loading]
1039
1041
  ]),
1040
- b.value ? (k(), U(xo, {
1042
+ b.value ? (k(), H(No, {
1041
1043
  key: 2,
1042
1044
  "current-page": i.value,
1043
1045
  "onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
@@ -1051,52 +1053,10 @@ const Co = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1051
1053
  ]);
1052
1054
  };
1053
1055
  }
1054
- }), Ya = /* @__PURE__ */ ye(Ko, [["__scopeId", "data-v-6df082c6"]]);
1055
- let Bt = null;
1056
- function _t() {
1057
- return Bt ??= import("./service-bNdH26sx.js"), Bt;
1058
- }
1059
- function sn() {
1060
- let e = !1, t = null;
1061
- return {
1062
- handler: {
1063
- close: () => {
1064
- e = !0, t?.close();
1065
- }
1066
- },
1067
- setInnerHandler: (n) => {
1068
- if (e) {
1069
- n.close();
1070
- return;
1071
- }
1072
- t = n;
1073
- }
1074
- };
1075
- }
1076
- function Yo(e) {
1077
- const t = sn();
1078
- return _t().then((n) => {
1079
- t.setInnerHandler(n.JtAttachmentPreview(e));
1080
- }), t.handler;
1081
- }
1082
- function Ho(e) {
1083
- _t().then((t) => {
1084
- t.setupJtAttachmentPreview(e);
1085
- });
1086
- }
1087
- function Uo(e) {
1088
- const t = sn();
1089
- return _t().then((n) => {
1090
- t.setInnerHandler(n.JtAttachmentPreviewByParams(e));
1091
- }), t.handler;
1092
- }
1093
- const Et = Object.assign(Yo, {
1094
- openByParams: Uo,
1095
- setup: Ho
1096
- }), Jo = { class: "jt-page-header__title" }, Wo = { key: 0 }, Zo = {
1056
+ }), za = /* @__PURE__ */ ye(xo, [["__scopeId", "data-v-6df082c6"]]), qo = { class: "jt-page-header__title" }, Go = { key: 0 }, Ko = {
1097
1057
  key: 0,
1098
1058
  class: "jt-page-header__operates"
1099
- }, Qo = /* @__PURE__ */ ce({
1059
+ }, Yo = /* @__PURE__ */ ce({
1100
1060
  name: "JtPageHeader",
1101
1061
  __name: "index",
1102
1062
  props: {
@@ -1106,21 +1066,21 @@ const Et = Object.assign(Yo, {
1106
1066
  },
1107
1067
  emits: ["operate-click"],
1108
1068
  setup(e, { emit: t }) {
1109
- const n = e, o = t, r = Ee(), i = P(() => n.operates.length > 0 || !!r.operates);
1069
+ const n = e, o = t, r = Ee(), i = V(() => n.operates.length > 0 || !!r.operates);
1110
1070
  function s(l, a) {
1111
1071
  l.onClick?.(l, a), o("operate-click", l, a);
1112
1072
  }
1113
1073
  return (l, a) => (k(), Y("div", oe({
1114
1074
  class: ["jt-page-header", `jt-page-header--${l.type}`]
1115
1075
  }, l.$attrs), [
1116
- te("div", Jo, [
1076
+ te("div", qo, [
1117
1077
  ee(l.$slots, "title", {}, () => [
1118
- l.title ? (k(), Y("span", Wo, fe(l.title), 1)) : ue("", !0)
1078
+ l.title ? (k(), Y("span", Go, fe(l.title), 1)) : ue("", !0)
1119
1079
  ], !0)
1120
1080
  ]),
1121
- i.value ? (k(), Y("div", Zo, [
1081
+ i.value ? (k(), Y("div", Ko, [
1122
1082
  ee(l.$slots, "operates", { operates: l.operates }, () => [
1123
- (k(!0), Y(be, null, ge(l.operates, (c) => (k(), U(re(tt), oe({
1083
+ (k(!0), Y(be, null, ge(l.operates, (c) => (k(), H(re(tt), oe({
1124
1084
  key: c.key ?? c.label,
1125
1085
  ref_for: !0
1126
1086
  }, c.buttonProps, {
@@ -1142,8 +1102,8 @@ const Et = Object.assign(Yo, {
1142
1102
  ])) : ue("", !0)
1143
1103
  ], 16));
1144
1104
  }
1145
- }), Ha = /* @__PURE__ */ ye(Qo, [["__scopeId", "data-v-9fe9e823"]]);
1146
- function Xo(e, t) {
1105
+ }), xa = /* @__PURE__ */ ye(Yo, [["__scopeId", "data-v-9fe9e823"]]);
1106
+ function Uo(e, t) {
1147
1107
  t = t || (() => "default-use-once-sync");
1148
1108
  const n = /* @__PURE__ */ new Map();
1149
1109
  async function o(...r) {
@@ -1161,7 +1121,7 @@ function Xo(e, t) {
1161
1121
  }
1162
1122
  return o.bind(e);
1163
1123
  }
1164
- function ln(e, t) {
1124
+ function rn(e, t) {
1165
1125
  t = t || (() => "default-use-queue-sync");
1166
1126
  const n = /* @__PURE__ */ new Map();
1167
1127
  async function o(...r) {
@@ -1180,7 +1140,7 @@ var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1180
1140
  function st(e) {
1181
1141
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1182
1142
  }
1183
- var cn = { exports: {} };
1143
+ var an = { exports: {} };
1184
1144
  (function(e, t) {
1185
1145
  (function(n, o) {
1186
1146
  e.exports = o();
@@ -1275,24 +1235,24 @@ var cn = { exports: {} };
1275
1235
  return C ? Se : Se.endOf(c);
1276
1236
  }, q = function(pe, de) {
1277
1237
  return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
1278
- }, H = this.$W, G = this.$M, X = this.$D, V = "set" + (this.$u ? "UTC" : "");
1238
+ }, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
1279
1239
  switch (L) {
1280
1240
  case b:
1281
1241
  return C ? E(1, 0) : E(31, 11);
1282
1242
  case _:
1283
1243
  return C ? E(1, G) : E(0, G + 1);
1284
1244
  case m:
1285
- var Z = this.$locale().weekStart || 0, ae = (H < Z ? H + 7 : H) - Z;
1245
+ var Z = this.$locale().weekStart || 0, ae = (U < Z ? U + 7 : U) - Z;
1286
1246
  return E(C ? X - ae : X + (6 - ae), G);
1287
1247
  case c:
1288
1248
  case A:
1289
- return q(V + "Hours", 0);
1249
+ return q(P + "Hours", 0);
1290
1250
  case a:
1291
- return q(V + "Minutes", 1);
1251
+ return q(P + "Minutes", 1);
1292
1252
  case l:
1293
- return q(V + "Seconds", 2);
1253
+ return q(P + "Seconds", 2);
1294
1254
  case s:
1295
- return q(V + "Milliseconds", 3);
1255
+ return q(P + "Milliseconds", 3);
1296
1256
  default:
1297
1257
  return this.clone();
1298
1258
  }
@@ -1301,8 +1261,8 @@ var cn = { exports: {} };
1301
1261
  }, D.$set = function(B, u) {
1302
1262
  var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
1303
1263
  if (C === _ || C === b) {
1304
- var H = this.clone().set(A, 1);
1305
- H.$d[E](q), H.init(), this.$d = H.set(A, Math.min(this.$D, H.daysInMonth())).$d;
1264
+ var U = this.clone().set(A, 1);
1265
+ U.$d[E](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
1306
1266
  } else E && this.$d[E](q);
1307
1267
  return this.init(), this;
1308
1268
  }, D.set = function(B, u) {
@@ -1320,18 +1280,18 @@ var cn = { exports: {} };
1320
1280
  if (L === b) return this.set(b, this.$y + B);
1321
1281
  if (L === c) return E(1);
1322
1282
  if (L === m) return E(7);
1323
- var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, H = this.$d.getTime() + B * q;
1324
- return z.w(H, this);
1283
+ var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, U = this.$d.getTime() + B * q;
1284
+ return z.w(U, this);
1325
1285
  }, D.subtract = function(B, u) {
1326
1286
  return this.add(-1 * B, u);
1327
1287
  }, D.format = function(B) {
1328
1288
  var u = this, v = this.$locale();
1329
1289
  if (!this.isValid()) return v.invalidDate || g;
1330
- var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, H = this.$M, G = v.weekdays, X = v.months, V = v.meridiem, Z = function(de, Se, Oe, Ie) {
1290
+ var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = v.weekdays, X = v.months, P = v.meridiem, Z = function(de, Se, Oe, Ie) {
1331
1291
  return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
1332
1292
  }, ae = function(de) {
1333
1293
  return z.s(E % 12 || 12, de, "0");
1334
- }, pe = V || function(de, Se, Oe) {
1294
+ }, pe = P || function(de, Se, Oe) {
1335
1295
  var Ie = de < 12 ? "AM" : "PM";
1336
1296
  return Oe ? Ie.toLowerCase() : Ie;
1337
1297
  };
@@ -1343,13 +1303,13 @@ var cn = { exports: {} };
1343
1303
  case "YYYY":
1344
1304
  return z.s(u.$y, 4, "0");
1345
1305
  case "M":
1346
- return H + 1;
1306
+ return U + 1;
1347
1307
  case "MM":
1348
- return z.s(H + 1, 2, "0");
1308
+ return z.s(U + 1, 2, "0");
1349
1309
  case "MMM":
1350
- return Z(v.monthsShort, H, X, 3);
1310
+ return Z(v.monthsShort, U, X, 3);
1351
1311
  case "MMMM":
1352
- return Z(X, H);
1312
+ return Z(X, U);
1353
1313
  case "D":
1354
1314
  return u.$D;
1355
1315
  case "DD":
@@ -1393,7 +1353,7 @@ var cn = { exports: {} };
1393
1353
  }, D.utcOffset = function() {
1394
1354
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1395
1355
  }, D.diff = function(B, u, v) {
1396
- var C, L = this, E = z.p(u), q = O(B), H = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
1356
+ var C, L = this, E = z.p(u), q = O(B), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
1397
1357
  return z.m(L, q);
1398
1358
  };
1399
1359
  switch (E) {
@@ -1407,10 +1367,10 @@ var cn = { exports: {} };
1407
1367
  C = X() / 3;
1408
1368
  break;
1409
1369
  case m:
1410
- C = (G - H) / 6048e5;
1370
+ C = (G - U) / 6048e5;
1411
1371
  break;
1412
1372
  case c:
1413
- C = (G - H) / 864e5;
1373
+ C = (G - U) / 864e5;
1414
1374
  break;
1415
1375
  case a:
1416
1376
  C = G / r;
@@ -1455,10 +1415,10 @@ var cn = { exports: {} };
1455
1415
  return O(1e3 * R);
1456
1416
  }, O.en = p[T], O.Ls = p, O.p = {}, O;
1457
1417
  });
1458
- })(cn);
1459
- var er = cn.exports;
1460
- const $t = /* @__PURE__ */ st(er);
1461
- var un = { exports: {} };
1418
+ })(an);
1419
+ var Ho = an.exports;
1420
+ const _t = /* @__PURE__ */ st(Ho);
1421
+ var sn = { exports: {} };
1462
1422
  (function(e, t) {
1463
1423
  (function(n, o) {
1464
1424
  e.exports = o();
@@ -1557,9 +1517,9 @@ var un = { exports: {} };
1557
1517
  z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
1558
1518
  try {
1559
1519
  if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
1560
- var E = g(v)(u), q = E.year, H = E.month, G = E.day, X = E.hours, V = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || H ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
1561
- q && !H || (ze = H > 0 ? H - 1 : Se.getMonth());
1562
- var xe, et = X || 0, qe = V || 0, f = Z || 0, d = ae || 0;
1520
+ var E = g(v)(u), q = E.year, U = E.month, G = E.day, X = E.hours, P = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
1521
+ q && !U || (ze = U > 0 ? U - 1 : Se.getMonth());
1522
+ var xe, et = X || 0, qe = P || 0, f = Z || 0, d = ae || 0;
1563
1523
  return pe ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d + 60 * pe.offset * 1e3)) : C ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d)) : (xe = new Date(Ie, ze, Oe, et, qe, f, d), de && (xe = L(xe).week(de).toDate()), xe);
1564
1524
  } catch {
1565
1525
  return /* @__PURE__ */ new Date("");
@@ -1578,10 +1538,10 @@ var un = { exports: {} };
1578
1538
  };
1579
1539
  };
1580
1540
  });
1581
- })(un);
1582
- var tr = un.exports;
1583
- const nr = /* @__PURE__ */ st(tr);
1584
- var dn = { exports: {} };
1541
+ })(sn);
1542
+ var Jo = sn.exports;
1543
+ const Wo = /* @__PURE__ */ st(Jo);
1544
+ var ln = { exports: {} };
1585
1545
  (function(e, t) {
1586
1546
  (function(n, o) {
1587
1547
  e.exports = o();
@@ -1641,10 +1601,10 @@ var dn = { exports: {} };
1641
1601
  };
1642
1602
  };
1643
1603
  });
1644
- })(dn);
1645
- var or = dn.exports;
1646
- const rr = /* @__PURE__ */ st(or);
1647
- var fn = { exports: {} };
1604
+ })(ln);
1605
+ var Zo = ln.exports;
1606
+ const Qo = /* @__PURE__ */ st(Zo);
1607
+ var cn = { exports: {} };
1648
1608
  (function(e, t) {
1649
1609
  (function(n, o) {
1650
1610
  e.exports = o();
@@ -1716,12 +1676,12 @@ var fn = { exports: {} };
1716
1676
  };
1717
1677
  };
1718
1678
  });
1719
- })(fn);
1720
- var ar = fn.exports;
1721
- const sr = /* @__PURE__ */ st(ar);
1722
- $t.extend(sr);
1723
- $t.extend(rr);
1724
- $t.extend(nr);
1679
+ })(cn);
1680
+ var Xo = cn.exports;
1681
+ const er = /* @__PURE__ */ st(Xo);
1682
+ _t.extend(er);
1683
+ _t.extend(Qo);
1684
+ _t.extend(Wo);
1725
1685
  const ht = /\$\{([^}]+)\}/g;
1726
1686
  function Re(e) {
1727
1687
  if (!e)
@@ -1730,9 +1690,9 @@ function Re(e) {
1730
1690
  return (e.cascadeDependFields ?? []).forEach((n) => {
1731
1691
  const o = String(n ?? "").trim();
1732
1692
  o && t.add(o);
1733
- }), ir(e.interface).forEach((n) => t.add(n)), [...t];
1693
+ }), tr(e.interface).forEach((n) => t.add(n)), [...t];
1734
1694
  }
1735
- function ir(e) {
1695
+ function tr(e) {
1736
1696
  if (!e || typeof e != "object")
1737
1697
  return [];
1738
1698
  const t = e.params;
@@ -1758,10 +1718,10 @@ function yt(e, t) {
1758
1718
  !e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
1759
1719
  }
1760
1720
  function Qe(e) {
1761
- return Vt(e.type || e.fieldType || e.frontInputType) || Vt(e.renderType) || "text";
1721
+ return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
1762
1722
  }
1763
- function Ct(e) {
1764
- return At(e.type || e.fieldType || e.frontInputType) || At(e.renderType) || "text";
1723
+ function $t(e) {
1724
+ return Vt(e.type || e.fieldType || e.frontInputType) || Vt(e.renderType) || "text";
1765
1725
  }
1766
1726
  function Ce(e) {
1767
1727
  if (e == null) return !0;
@@ -1775,42 +1735,42 @@ function Ce(e) {
1775
1735
  }
1776
1736
  return !1;
1777
1737
  }
1778
- function pn(e) {
1738
+ function un(e) {
1779
1739
  if (e instanceof Error) return !0;
1780
1740
  if (!e || typeof e != "object") return !1;
1781
1741
  const t = e;
1782
1742
  return typeof t.message == "string" && (typeof t.stack == "string" || t.name === "Error");
1783
1743
  }
1784
- function mn(e, t, n = "-") {
1785
- const o = Ct(e);
1786
- return o === "empty" || Ce(t) ? n : pn(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? hr(e, t, n) : o === "switch" ? vn(t) ? "是" : "否" : o === "file" ? gr(t, n) : o === "multi-row" ? yr(t, n) : String(t);
1744
+ function dn(e, t, n = "-") {
1745
+ const o = $t(e);
1746
+ return o === "empty" || Ce(t) ? n : un(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? ur(e, t, n) : o === "switch" ? fn(t) ? "是" : "否" : o === "file" ? dr(t, n) : o === "multi-row" ? fr(t, n) : String(t);
1787
1747
  }
1788
1748
  function it(e, t) {
1789
1749
  return Array.isArray(t) ? t : ct(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [t] : [t];
1790
1750
  }
1791
- function lr(e, t) {
1751
+ function nr(e, t) {
1792
1752
  return ct(e) ? it(e, t) : t;
1793
1753
  }
1794
- function cr(e, t) {
1754
+ function or(e, t) {
1795
1755
  return !ct(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
1796
1756
  }
1797
- function vn(e) {
1757
+ function fn(e) {
1798
1758
  if (typeof e == "boolean") return e;
1799
1759
  if (typeof e == "number") return e !== 0;
1800
1760
  const t = String(e ?? "").trim().toLowerCase();
1801
1761
  return ["true", "1", "y", "yes", "t", "是"].includes(t);
1802
1762
  }
1803
1763
  function lt(e, t, n, o = {}) {
1804
- const r = pr(o);
1805
- return e.filter((i) => i.visible ? !mr(i, t, n, r, o.rows) : !1);
1764
+ const r = ir(o);
1765
+ return e.filter((i) => i.visible ? !lr(i, t, n, r, o.rows) : !1);
1806
1766
  }
1807
- function Lt(e) {
1808
- return gn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
1767
+ function Bt(e) {
1768
+ return mn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
1809
1769
  }
1810
- function Pt(e) {
1811
- return gn(e).includes("seqno");
1770
+ function Et(e) {
1771
+ return mn(e).includes("seqno");
1812
1772
  }
1813
- function ur(e) {
1773
+ function rr(e) {
1814
1774
  return [
1815
1775
  e.type,
1816
1776
  e.fieldType,
@@ -1818,12 +1778,12 @@ function ur(e) {
1818
1778
  e.raw?.type,
1819
1779
  e.raw?.fieldType,
1820
1780
  e.raw?.frontInputType
1821
- ].some((t) => yn(t) === "attach");
1781
+ ].some((t) => vn(t) === "attach");
1822
1782
  }
1823
- function hn(e, t, n = "-") {
1824
- return !ur(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => dr(r, i, n)).filter((r) => !!r);
1783
+ function pn(e, t, n = "-") {
1784
+ return !rr(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => ar(r, i, n)).filter((r) => !!r);
1825
1785
  }
1826
- function dr(e, t, n) {
1786
+ function ar(e, t, n) {
1827
1787
  if (Ce(e)) return null;
1828
1788
  if (typeof e == "string") {
1829
1789
  const o = e.trim();
@@ -1842,7 +1802,7 @@ function dr(e, t, n) {
1842
1802
  text: e.name || n
1843
1803
  };
1844
1804
  if (e && typeof e == "object") {
1845
- const o = e, r = fr(o, n), i = De(o.url);
1805
+ const o = e, r = sr(o, n), i = De(o.url);
1846
1806
  if (i) {
1847
1807
  const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
1848
1808
  return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
@@ -1874,24 +1834,24 @@ function dr(e, t, n) {
1874
1834
  text: String(e).trim() || n
1875
1835
  };
1876
1836
  }
1877
- function fr(e, t) {
1837
+ function sr(e, t) {
1878
1838
  return De(e.name) || De(e.fileName) || De(e.filename) || De(e.url) || De(e.fileId) || t;
1879
1839
  }
1880
1840
  function De(e) {
1881
1841
  return String(e ?? "").trim();
1882
1842
  }
1883
- function Vt(e) {
1843
+ function Lt(e) {
1884
1844
  const t = String(e ?? "").toLowerCase();
1885
1845
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" ? "select" : t === "text" || t === "textarea" || t === "select" || t === "select_remote" || t === "date" || t === "number" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : "";
1886
1846
  }
1887
- function At(e) {
1847
+ function Vt(e) {
1888
1848
  const t = String(e ?? "").toLowerCase();
1889
1849
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" || t === "select_remote" ? "select" : t === "select" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : t === "textarea" || t === "date" || t === "number" || t === "text" ? "text" : "";
1890
1850
  }
1891
- function pr(e) {
1851
+ function ir(e) {
1892
1852
  return e.rows?.length ? e.rows : [e.values ?? {}];
1893
1853
  }
1894
- function mr(e, t, n, o, r) {
1854
+ function lr(e, t, n, o, r) {
1895
1855
  const i = n?.hiddenRule;
1896
1856
  return i ? o.some((s) => {
1897
1857
  try {
@@ -1910,8 +1870,8 @@ function mr(e, t, n, o, r) {
1910
1870
  }
1911
1871
  }) : !1;
1912
1872
  }
1913
- function gn(e) {
1914
- return vr([
1873
+ function mn(e) {
1874
+ return cr([
1915
1875
  e.id,
1916
1876
  e.key,
1917
1877
  e.code,
@@ -1920,34 +1880,34 @@ function gn(e) {
1920
1880
  e.prop
1921
1881
  ]);
1922
1882
  }
1923
- function vr(e) {
1924
- return Array.from(new Set(e.map((t) => yn(t)).filter(Boolean)));
1883
+ function cr(e) {
1884
+ return Array.from(new Set(e.map((t) => vn(t)).filter(Boolean)));
1925
1885
  }
1926
- function yn(e) {
1886
+ function vn(e) {
1927
1887
  return String(e ?? "").trim().toLowerCase();
1928
1888
  }
1929
- function hr(e, t, n) {
1889
+ function ur(e, t, n) {
1930
1890
  const o = ct(e);
1931
1891
  if (Array.isArray(t) || o) {
1932
- const r = it(e, t).map((s) => jt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
1892
+ const r = it(e, t).map((s) => Pt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
1933
1893
  return r.length > 0 ? r.join(i) : n;
1934
1894
  }
1935
- return jt(e, t) || String(t).trim() || n;
1895
+ return Pt(e, t) || String(t).trim() || n;
1936
1896
  }
1937
1897
  function ct(e) {
1938
- return !!e.props?.multiple && (Qe(e) === "select" || Ct(e) === "select");
1898
+ return !!e.props?.multiple && (Qe(e) === "select" || $t(e) === "select");
1939
1899
  }
1940
- function jt(e, t) {
1900
+ function Pt(e, t) {
1941
1901
  return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
1942
1902
  }
1943
- function gr(e, t) {
1903
+ function dr(e, t) {
1944
1904
  if (Array.isArray(e)) {
1945
- const n = e.map((o) => Nt(o)).filter(Boolean);
1905
+ const n = e.map((o) => At(o)).filter(Boolean);
1946
1906
  return n.length > 0 ? n.join("、") : t;
1947
1907
  }
1948
- return Nt(e) || t;
1908
+ return At(e) || t;
1949
1909
  }
1950
- function Nt(e) {
1910
+ function At(e) {
1951
1911
  if (typeof File < "u" && e instanceof File) return e.name;
1952
1912
  if (e && typeof e == "object") {
1953
1913
  const t = e;
@@ -1955,11 +1915,11 @@ function Nt(e) {
1955
1915
  }
1956
1916
  return String(e ?? "").trim();
1957
1917
  }
1958
- function yr(e, t) {
1959
- return Array.isArray(e) ? e.map((o) => pn(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Ce(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
1918
+ function fr(e, t) {
1919
+ return Array.isArray(e) ? e.map((o) => un(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Ce(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
1960
1920
  `) || t : String(e).trim() || t;
1961
1921
  }
1962
- function br(e = null) {
1922
+ function pr(e = null) {
1963
1923
  return {
1964
1924
  scheme: null,
1965
1925
  node: null,
@@ -1972,23 +1932,23 @@ function br(e = null) {
1972
1932
  raw: e
1973
1933
  };
1974
1934
  }
1975
- function Rt(e) {
1976
- const t = Cn(e), n = $n(t), o = Dr(t).flatMap((r) => _n(r, n));
1935
+ function jt(e) {
1936
+ const t = In(e), n = wn(t), o = $r(t).flatMap((r) => Sn(r, n));
1977
1937
  return {
1978
- ...br(e),
1938
+ ...pr(e),
1979
1939
  scheme: n,
1980
1940
  topNodes: o,
1981
1941
  treeNodes: o
1982
1942
  };
1983
1943
  }
1984
- function bn(e, t, n) {
1944
+ function hn(e, t, n) {
1985
1945
  return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
1986
1946
  ...o,
1987
- children: bn(o.children, t, n)
1947
+ children: hn(o.children, t, n)
1988
1948
  });
1989
1949
  }
1990
- function Sr(e, t = {}, n = null) {
1991
- const o = Cn(e), r = $n(o, t), i = _r(o, t, n), s = Object.fromEntries(i.map((l) => [l.key, l]));
1950
+ function mr(e, t = {}, n = null) {
1951
+ const o = In(e), r = wn(o, t), i = gr(o, t, n), s = Object.fromEntries(i.map((l) => [l.key, l]));
1992
1952
  return {
1993
1953
  scheme: r,
1994
1954
  node: n,
@@ -2001,10 +1961,10 @@ function Sr(e, t = {}, n = null) {
2001
1961
  raw: e
2002
1962
  };
2003
1963
  }
2004
- function wr(e) {
1964
+ function vr(e) {
2005
1965
  return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
2006
1966
  }
2007
- function Ir(e, t = {}) {
1967
+ function hr(e, t = {}) {
2008
1968
  const n = e.renderType === "table" ? e.rows.map((a) => bt(St(a))) : [bt(St(e.model))], o = le(e.operationInfo), r = le(o.editInfoSet), i = le(r.params), s = le(o.queryInfoSet), l = le(s.params);
2009
1969
  return {
2010
1970
  ...t,
@@ -2023,18 +1983,18 @@ function Ir(e, t = {}) {
2023
1983
  }
2024
1984
  function bt(e) {
2025
1985
  return Object.fromEntries(
2026
- Object.entries(e).map(([t, n]) => [t, Sn(n)])
1986
+ Object.entries(e).map(([t, n]) => [t, gn(n)])
2027
1987
  );
2028
1988
  }
2029
- function Sn(e) {
2030
- return e === "" ? null : Array.isArray(e) ? e.map(Sn) : e && typeof e == "object" ? bt(e) : e;
1989
+ function gn(e) {
1990
+ return e === "" ? null : Array.isArray(e) ? e.map(gn) : e && typeof e == "object" ? bt(e) : e;
2031
1991
  }
2032
- function Ua(e) {
1992
+ function qa(e) {
2033
1993
  const t = e;
2034
1994
  return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
2035
1995
  }
2036
- function wn(e) {
2037
- const t = kn(e);
1996
+ function yn(e) {
1997
+ const t = _n(e);
2038
1998
  return (Array.isArray(t) ? t : Je(le(t), ["options", "list", "records", "data"])).map((o) => {
2039
1999
  const r = le(o), i = r.fieldvalue ?? r.fieldValue;
2040
2000
  return {
@@ -2047,12 +2007,12 @@ function wn(e) {
2047
2007
  };
2048
2008
  });
2049
2009
  }
2050
- function _r(e, t, n) {
2010
+ function gr(e, t, n) {
2051
2011
  const o = Je(e, ["sections", "sets", "list"]);
2052
- return o.length > 0 ? o.map((r) => zt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [zt(e, t, n, !0)] : [];
2012
+ return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
2053
2013
  }
2054
- function zt(e, t, n, o) {
2055
- const r = le(e), i = $r(r.infSetMark ?? r), s = Cr(r.infSetFields ?? r.fields ?? []), l = wr(i), a = Mr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : In(s), m = le(r.tag), _ = Q(
2014
+ function Nt(e, t, n, o) {
2015
+ const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = vr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), m = le(r.tag), _ = Q(
2056
2016
  r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
2057
2017
  ), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
2058
2018
  key: T,
@@ -2074,7 +2034,7 @@ function zt(e, t, n, o) {
2074
2034
  };
2075
2035
  return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
2076
2036
  }
2077
- function $r(e) {
2037
+ function yr(e) {
2078
2038
  const t = le(e), n = Q(t.htmlDisplay || "F");
2079
2039
  return {
2080
2040
  name: Q(t.name ?? t.title),
@@ -2089,21 +2049,21 @@ function $r(e) {
2089
2049
  raw: t
2090
2050
  };
2091
2051
  }
2092
- function Cr(e) {
2093
- return (Array.isArray(e) ? e : []).map((n, o) => kr(n, o));
2052
+ function br(e) {
2053
+ return (Array.isArray(e) ? e : []).map((n, o) => Sr(n, o));
2094
2054
  }
2095
- function kr(e, t) {
2096
- const n = le(e), o = Q(n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`), r = Q(n.label ?? n.name ?? n.tagName ?? o), i = Mn(n.interface ?? n.interfaceField), s = xt(n.cascadeDependFields);
2055
+ function Sr(e, t) {
2056
+ const n = le(e), o = Q(n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`), r = Q(n.label ?? n.name ?? n.tagName ?? o), i = $n(n.interface ?? n.interfaceField), s = Rt(n.cascadeDependFields);
2097
2057
  return {
2098
2058
  id: Q(n.id ?? n.key ?? n.prop ?? o),
2099
2059
  key: Q(n.key ?? n.prop ?? o),
2100
2060
  code: o,
2101
2061
  label: r,
2102
2062
  value: n.value ?? n.defaultValue ?? "",
2103
- type: Er(n),
2063
+ type: Mr(n),
2104
2064
  fieldType: ie(n.fieldType),
2105
2065
  frontInputType: ie(n.frontInputType),
2106
- renderType: Br(n),
2066
+ renderType: kr(n),
2107
2067
  required: $e(n.required ?? n.isRequired),
2108
2068
  readonly: $e(n.readonly ?? n.disabled),
2109
2069
  visible: n.visible === void 0 ? $e(n.visibled ?? !0) : $e(n.visible),
@@ -2111,39 +2071,39 @@ function kr(e, t) {
2111
2071
  multRow: $e(n.multRow),
2112
2072
  isRequired: $e(n.isRequired),
2113
2073
  disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
2114
- span: Dn(n.span ?? n.colSpan),
2115
- width: qt(n.width),
2116
- minWidth: qt(n.minWidth),
2074
+ span: Mn(n.span ?? n.colSpan),
2075
+ width: zt(n.width),
2076
+ minWidth: zt(n.minWidth),
2117
2077
  placeholder: ie(n.placeholder),
2118
- options: wn(n.options),
2078
+ options: yn(n.options),
2119
2079
  interface: i,
2120
- cascadeClearFields: xt(n.cascadeClearFields),
2080
+ cascadeClearFields: Rt(n.cascadeClearFields),
2121
2081
  cascadeDependFields: Re({
2122
2082
  cascadeDependFields: s,
2123
2083
  interface: i
2124
2084
  }),
2125
- props: Lr(n),
2126
- formItemProps: Tn(n.formItemProps),
2085
+ props: Tr(n),
2086
+ formItemProps: Cn(n.formItemProps),
2127
2087
  raw: n
2128
2088
  };
2129
2089
  }
2130
- function Mr(e, t, n) {
2090
+ function wr(e, t, n) {
2131
2091
  if (Array.isArray(e) && e.some((i) => {
2132
2092
  const s = le(i);
2133
2093
  return t.some((l) => s[l.code] !== void 0 || s[l.key] !== void 0);
2134
2094
  }))
2135
2095
  return e.map((i, s) => ({ ...le(i), __rowKey: Q(le(i).__rowKey ?? le(i).key ?? s) }));
2136
- const o = In(t);
2096
+ const o = bn(t);
2137
2097
  return n === "form" && Object.keys(o).length ? [{ ...o, __rowKey: "0" }] : [];
2138
2098
  }
2139
- function In(e) {
2099
+ function bn(e) {
2140
2100
  return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
2141
2101
  }
2142
- function _n(e, t, n = "") {
2143
- const o = le(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) => _n(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Fr(o.infSetList);
2144
- return r.length === 0 && i.length > 0 ? i.map((s, l) => Or(o, s, t, n, l)) : [Tr(o, t, n, r)];
2102
+ function Sn(e, t, n = "") {
2103
+ const o = le(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) => Sn(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Cr(o.infSetList);
2104
+ return r.length === 0 && i.length > 0 ? i.map((s, l) => _r(o, s, t, n, l)) : [Ir(o, t, n, r)];
2145
2105
  }
2146
- function Tr(e, t, n, o) {
2106
+ function Ir(e, t, n, o) {
2147
2107
  const r = Q(e.tagId ?? e.id ?? e.key), i = Q(e.tagName ?? e.name ?? e.label ?? r);
2148
2108
  return {
2149
2109
  key: Q(e.key ?? r),
@@ -2152,7 +2112,7 @@ function Tr(e, t, n, o) {
2152
2112
  tagName: i,
2153
2113
  label: i,
2154
2114
  tagLevel: ie(e.tagLevel ?? e.level) ?? null,
2155
- level: On(e.tagLevel ?? e.level),
2115
+ level: kn(e.tagLevel ?? e.level),
2156
2116
  parentTagId: ie(e.parentTagId ?? e.parentId ?? n),
2157
2117
  parentId: ie(e.parentTagId ?? e.parentId ?? n) ?? null,
2158
2118
  infSchmId: ie(e.infSchmId ?? t?.infSchmId),
@@ -2167,7 +2127,7 @@ function Tr(e, t, n, o) {
2167
2127
  raw: e
2168
2128
  };
2169
2129
  }
2170
- function Or(e, t, n, o, r) {
2130
+ function _r(e, t, n, o, r) {
2171
2131
  const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
2172
2132
  return {
2173
2133
  key: c,
@@ -2176,7 +2136,7 @@ function Or(e, t, n, o, r) {
2176
2136
  tagName: s,
2177
2137
  label: s,
2178
2138
  tagLevel: ie(e.tagLevel ?? e.level) ?? null,
2179
- level: On(e.tagLevel ?? e.level),
2139
+ level: kn(e.tagLevel ?? e.level),
2180
2140
  parentTagId: ie(e.parentTagId ?? e.parentId ?? o),
2181
2141
  parentId: ie(e.parentTagId ?? e.parentId ?? o) ?? null,
2182
2142
  infSchmId: ie(e.infSchmId ?? n?.infSchmId),
@@ -2196,7 +2156,7 @@ function Or(e, t, n, o, r) {
2196
2156
  }
2197
2157
  };
2198
2158
  }
2199
- function $n(e, t = {}) {
2159
+ function wn(e, t = {}) {
2200
2160
  const n = le(e.globalInfoSchmMark ?? e.scheme ?? e), o = Q(n.infSchmId ?? t.infSchmId), r = Q(n.emplid ?? t.emplid);
2201
2161
  return !o && !r && Object.keys(n).length === 0 ? null : {
2202
2162
  infSchmId: o,
@@ -2207,13 +2167,13 @@ function $n(e, t = {}) {
2207
2167
  raw: n
2208
2168
  };
2209
2169
  }
2210
- function Dr(e) {
2170
+ function $r(e) {
2211
2171
  if (Array.isArray(e.globalInfoSchmConfig))
2212
2172
  return e.globalInfoSchmConfig;
2213
2173
  const t = le(e.globalInfoSchmConfig), n = Je(t, ["children", "tree", "list", "tags"]);
2214
2174
  return n.length ? n : Je(e, ["children", "tree", "list", "tags", "records"]);
2215
2175
  }
2216
- function Fr(e) {
2176
+ function Cr(e) {
2217
2177
  return Array.isArray(e) ? e.map((t) => {
2218
2178
  const n = le(t);
2219
2179
  return {
@@ -2226,10 +2186,10 @@ function Fr(e) {
2226
2186
  };
2227
2187
  }) : [];
2228
2188
  }
2229
- function Cn(e) {
2230
- return le(kn(e));
2189
+ function In(e) {
2190
+ return le(_n(e));
2231
2191
  }
2232
- function kn(e) {
2192
+ function _n(e) {
2233
2193
  const t = le(e);
2234
2194
  return t.data ?? t.result ?? e;
2235
2195
  }
@@ -2245,50 +2205,50 @@ function St(e) {
2245
2205
  const t = { ...e };
2246
2206
  return delete t.__rowKey, delete t.fields, t;
2247
2207
  }
2248
- function Mn(e) {
2208
+ function $n(e) {
2249
2209
  const t = le(e);
2250
2210
  if (!(!t.method && !t.url && !t.params))
2251
2211
  return {
2252
2212
  ...t,
2253
2213
  method: ie(t.method),
2254
2214
  url: ie(t.url),
2255
- params: Tn(t.params)
2215
+ params: Cn(t.params)
2256
2216
  };
2257
2217
  }
2258
2218
  function ut(e) {
2259
2219
  const t = le(e);
2260
2220
  if (Object.keys(t).length !== 0)
2261
2221
  return Object.fromEntries(
2262
- Object.entries(t).map(([n, o]) => [n, Mn(o) ?? o])
2222
+ Object.entries(t).map(([n, o]) => [n, $n(o) ?? o])
2263
2223
  );
2264
2224
  }
2265
- function xt(e) {
2225
+ function Rt(e) {
2266
2226
  if (!Array.isArray(e))
2267
2227
  return;
2268
2228
  const t = e.map((n) => Q(n)).filter(Boolean);
2269
2229
  return t.length ? t : void 0;
2270
2230
  }
2271
- function Br(e) {
2231
+ function kr(e) {
2272
2232
  if ($e(e.htmlDisplay)) return "html";
2273
2233
  if ($e(e.multRow)) return "multi-row";
2274
2234
  const t = Q(e.renderType).toLowerCase();
2275
2235
  return t === "code" || t === "empty" ? t : "text";
2276
2236
  }
2277
- function Er(e) {
2237
+ function Mr(e) {
2278
2238
  const t = Q(e.fieldType ?? e.type ?? e.frontInputType ?? e.renderType).toLowerCase();
2279
2239
  return t === "dtpicker" || t.includes("date") ? "date" : t === "select_remote" ? "select_remote" : t.includes("select") || t.includes("enum") || t.includes("radio") || t.includes("checkbox") ? "select" : t.includes("number") || t.includes("int") ? "number" : t.includes("bool") || t.includes("switch") ? "switch" : t.includes("file") || t.includes("upload") || t.includes("attachment") || t === "attach" ? "file" : t.includes("textarea") || t.includes("text_area") ? "textarea" : "text";
2280
2240
  }
2281
- function Tn(e) {
2241
+ function Cn(e) {
2282
2242
  const t = le(e);
2283
2243
  return Object.keys(t).length ? t : void 0;
2284
2244
  }
2285
- function Lr(e) {
2245
+ function Tr(e) {
2286
2246
  const t = {
2287
2247
  ...le(e.props)
2288
2248
  };
2289
2249
  return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
2290
2250
  }
2291
- function qt(e) {
2251
+ function zt(e) {
2292
2252
  return typeof e == "string" || typeof e == "number" ? e : void 0;
2293
2253
  }
2294
2254
  function le(e) {
@@ -2300,11 +2260,11 @@ function Q(e) {
2300
2260
  function ie(e) {
2301
2261
  return Q(e) || void 0;
2302
2262
  }
2303
- function On(e) {
2304
- const t = Dn(e);
2263
+ function kn(e) {
2264
+ const t = Mn(e);
2305
2265
  return t === void 0 ? null : t;
2306
2266
  }
2307
- function Dn(e) {
2267
+ function Mn(e) {
2308
2268
  if (e == null || e === "") return;
2309
2269
  const t = Number(e);
2310
2270
  return Number.isFinite(t) ? t : void 0;
@@ -2312,7 +2272,7 @@ function Dn(e) {
2312
2272
  function $e(e) {
2313
2273
  return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
2314
2274
  }
2315
- const Pe = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Pr = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Pr).filter(Boolean))), Ke = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
2275
+ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Or = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Or).filter(Boolean))), Ke = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
2316
2276
  e?.key,
2317
2277
  e?.id,
2318
2278
  e?.setId,
@@ -2321,7 +2281,7 @@ const Pe = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Pr = (e) => Str
2321
2281
  e?.code,
2322
2282
  ...(e?.infSetList ?? []).map((t) => t.infSetId),
2323
2283
  ...(e?.infSetList ?? []).map((t) => t.setId)
2324
- ]), Vr = (e) => Xe([
2284
+ ]), Dr = (e) => Xe([
2325
2285
  e.key,
2326
2286
  e.id,
2327
2287
  e.setId,
@@ -2329,16 +2289,16 @@ const Pe = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Pr = (e) => Str
2329
2289
  e.tagId,
2330
2290
  e.code
2331
2291
  ]);
2332
- function Fn(e, t, n) {
2333
- const o = Vr(e), r = Xe([n, ...We(t)]);
2292
+ function Tn(e, t, n) {
2293
+ const o = Dr(e), r = Xe([n, ...We(t)]);
2334
2294
  return r.length === 0 ? !1 : r.some((i) => o.includes(i));
2335
2295
  }
2336
- function Ar(e, t, n) {
2337
- return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Fn(r, t, n));
2296
+ function Fr(e, t, n) {
2297
+ return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Tn(r, t, n));
2338
2298
  }
2339
- function jr(e, t, n = {}) {
2340
- const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Pe(t), i = typeof t == "string" ? e.fields.find((a) => Pe(a) === r || a.code === r) : t, l = Re(i).some((a) => {
2341
- if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Rr(e, a))
2299
+ function Br(e, t, n = {}) {
2300
+ const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), i = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, l = Re(i).some((a) => {
2301
+ if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Lr(e, a))
2342
2302
  return !1;
2343
2303
  const c = o[a];
2344
2304
  return c == null || c === "";
@@ -2351,35 +2311,35 @@ function jr(e, t, n = {}) {
2351
2311
  missingDependField: l
2352
2312
  };
2353
2313
  }
2354
- function Nr(e) {
2314
+ function Er(e) {
2355
2315
  return !!(e && e.type !== "select_remote" && Re(e).length === 0 && (e.options ?? []).length > 0);
2356
2316
  }
2357
- function Rr(e, t) {
2358
- return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Pe(n) === t);
2317
+ function Lr(e, t) {
2318
+ return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
2359
2319
  }
2360
- function zr(e) {
2361
- return wn(e);
2320
+ function Vr(e) {
2321
+ return yn(e);
2362
2322
  }
2363
2323
  const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, nt = (e) => {
2364
2324
  const t = Te(e);
2365
2325
  return !!(t.url || t.method || t.params);
2366
2326
  };
2367
- function xr(e) {
2327
+ function Pr(e) {
2368
2328
  const t = Te(e.operationInfo).openTag;
2369
2329
  return nt(t) ? t : void 0;
2370
2330
  }
2371
- function qr(e, t, n) {
2331
+ function Ar(e, t, n) {
2372
2332
  const o = Te(e?.operationInfo).queryInfoSet;
2373
2333
  if (nt(o))
2374
2334
  return o;
2375
2335
  const r = t?.infSetList.find((s) => s.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
2376
2336
  return nt(i) ? i : void 0;
2377
2337
  }
2378
- function Gr(e) {
2338
+ function jr(e) {
2379
2339
  const t = Te(e.operationInfo).editInfoSet;
2380
2340
  return nt(t) ? t : void 0;
2381
2341
  }
2382
- async function Bn(e) {
2342
+ async function On(e) {
2383
2343
  const t = e.params === void 0 ? void 0 : Te(e.params);
2384
2344
  return !e.formatter || e.requestSource !== "inner" ? t : e.formatter({
2385
2345
  operation: e.operation,
@@ -2403,10 +2363,10 @@ async function Bn(e) {
2403
2363
  params: t
2404
2364
  });
2405
2365
  }
2406
- async function Kr(e) {
2366
+ async function Nr(e) {
2407
2367
  if (!e.service.requestOperation)
2408
2368
  throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
2409
- const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = e.context?.params === void 0 ? t : Te(e.context.params), o = await Bn({
2369
+ const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = e.context?.params === void 0 ? t : Te(e.context.params), o = await On({
2410
2370
  formatter: e.formatter,
2411
2371
  params: n,
2412
2372
  operation: e.operation,
@@ -2429,7 +2389,7 @@ async function Kr(e) {
2429
2389
  e.context ? { ...e.context, params: o } : e.context
2430
2390
  );
2431
2391
  }
2432
- function He(e = {}) {
2392
+ function Ue(e = {}) {
2433
2393
  return {
2434
2394
  // loading:当前 section 是否正在拉详情。
2435
2395
  loading: !1,
@@ -2445,18 +2405,18 @@ function He(e = {}) {
2445
2405
  ...e
2446
2406
  };
2447
2407
  }
2448
- function Yr(e) {
2449
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Ar(e.nextViewModel.sections, e.node, e.targetKey), s = Xe([e.targetKey, ...We(e.node)]).length > 0, l = i.find((a) => Fn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
2408
+ function Rr(e) {
2409
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Fr(e.nextViewModel.sections, e.node, e.targetKey), s = Xe([e.targetKey, ...We(e.node)]).length > 0, l = i.find((a) => Tn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
2450
2410
  return i.forEach((a) => {
2451
2411
  const c = ke(a);
2452
- t[c] = a, o.includes(c) || o.push(c), r[c] = He({
2412
+ t[c] = a, o.includes(c) || o.push(c), r[c] = Ue({
2453
2413
  ...r[c],
2454
2414
  loaded: !0,
2455
2415
  loading: !1,
2456
2416
  error: null,
2457
2417
  editing: e.editingSectionKeys.includes(c)
2458
2418
  });
2459
- }), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = He({
2419
+ }), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Ue({
2460
2420
  ...r[e.targetKey],
2461
2421
  loaded: !0,
2462
2422
  loading: !1,
@@ -2471,17 +2431,17 @@ function Yr(e) {
2471
2431
  targetSections: i
2472
2432
  };
2473
2433
  }
2474
- const En = "信息集不能为空,最后一条数据不可删除";
2475
- function Hr(e, t = [], n = {}) {
2476
- return !e.mark.isRequired || t.length > 0 ? null : Ur(
2434
+ const Dn = "信息集不能为空,最后一条数据不可删除";
2435
+ function zr(e, t = [], n = {}) {
2436
+ return !e.mark.isRequired || t.length > 0 ? null : xr(
2477
2437
  n.emptyMessage,
2478
2438
  { section: e, infSetValues: t }
2479
- ) || En;
2439
+ ) || Dn;
2480
2440
  }
2481
- function Ur(e, t) {
2482
- return typeof e == "function" ? e(t) : typeof e == "string" ? e : En;
2441
+ function xr(e, t) {
2442
+ return typeof e == "function" ? e(t) : typeof e == "string" ? e : Dn;
2483
2443
  }
2484
- const Ne = (e) => new Error(`[GlobalInfo] ${e}`), Jr = (e) => [
2444
+ const Ne = (e) => new Error(`[GlobalInfo] ${e}`), qr = (e) => [
2485
2445
  String(e.method ?? "").toLowerCase(),
2486
2446
  String(e.url ?? ""),
2487
2447
  wt(Te(e.params))
@@ -2489,13 +2449,13 @@ const Ne = (e) => new Error(`[GlobalInfo] ${e}`), Jr = (e) => [
2489
2449
  function wt(e) {
2490
2450
  return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
2491
2451
  }
2492
- const Wr = (e) => {
2493
- const t = he(!1), n = he(!1), o = he(!1), r = Ve(null), i = Ve([]), s = Ve(null), l = Ve(null), a = Ve(null), c = Ve({}), m = Ve({}), _ = he([]), $ = Ve({}), b = he([]), A = P(
2452
+ const Gr = (e) => {
2453
+ const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), m = Pe({}), _ = he([]), $ = Pe({}), b = he([]), A = V(
2494
2454
  () => {
2495
2455
  const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
2496
2456
  return [...f, ...d];
2497
2457
  }
2498
- ), g = P(() => ({
2458
+ ), g = V(() => ({
2499
2459
  // 整棵树是否正在加载。
2500
2460
  loading: t.value,
2501
2461
  // 当前详情是否正在加载。
@@ -2549,7 +2509,7 @@ const Wr = (e) => {
2549
2509
  infSetId: d?.infSetId ?? f?.infSetId,
2550
2510
  // setId 同样优先取 section,避免保存时拿错节点 setId。
2551
2511
  setId: d?.setId ?? f?.setId
2552
- }), I = async (f, d) => Kr({
2512
+ }), I = async (f, d) => Nr({
2553
2513
  service: e.service,
2554
2514
  formatter: e.formatOperationParams,
2555
2515
  operation: f,
@@ -2558,15 +2518,15 @@ const Wr = (e) => {
2558
2518
  sections: A.value,
2559
2519
  activeNode: l.value,
2560
2520
  activeSection: a.value
2561
- }), h = Xo(
2521
+ }), h = Uo(
2562
2522
  async (f, d) => {
2563
2523
  if (!e.service.requestOperation)
2564
2524
  throw Ne("service.requestOperation is required");
2565
2525
  return e.service.requestOperation(f, d);
2566
2526
  },
2567
- (f) => Jr(f)
2527
+ (f) => qr(f)
2568
2528
  ), T = async (f, d) => {
2569
- const M = await Bn({
2529
+ const M = await On({
2570
2530
  formatter: e.formatOperationParams,
2571
2531
  params: d?.params,
2572
2532
  operation: f,
@@ -2626,9 +2586,9 @@ const Wr = (e) => {
2626
2586
  }, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
2627
2587
  const d = O(f);
2628
2588
  if (!d)
2629
- return He();
2589
+ return Ue();
2630
2590
  const M = m.value[d] ?? d;
2631
- return He({
2591
+ return Ue({
2632
2592
  ...$.value[d],
2633
2593
  ...$.value[M],
2634
2594
  // 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
@@ -2640,7 +2600,7 @@ const Wr = (e) => {
2640
2600
  const M = O(f);
2641
2601
  M && ($.value = {
2642
2602
  ...$.value,
2643
- [M]: He({
2603
+ [M]: Ue({
2644
2604
  // 保留已有状态。
2645
2605
  ...$.value[M],
2646
2606
  // 合并本次状态补丁。
@@ -2673,7 +2633,7 @@ const Wr = (e) => {
2673
2633
  raw: f
2674
2634
  }, a.value = K;
2675
2635
  }, B = (f, d = l.value, M) => {
2676
- const K = Yr({
2636
+ const K = Rr({
2677
2637
  currentMap: c.value,
2678
2638
  currentAliasMap: m.value,
2679
2639
  currentOrder: _.value,
@@ -2715,7 +2675,7 @@ const Wr = (e) => {
2715
2675
  if (W.length === 0)
2716
2676
  throw Ne("node.infSetList is required");
2717
2677
  const _e = await Promise.all(W.map(async (se) => {
2718
- const ve = qr(d, M, se.infSetId), Ae = {
2678
+ const ve = Ar(d, M, se.infSetId), Ae = {
2719
2679
  ...j(M, d),
2720
2680
  infSetId: se.infSetId,
2721
2681
  setId: se.setId,
@@ -2730,7 +2690,7 @@ const Wr = (e) => {
2730
2690
  section: d,
2731
2691
  params: Ae
2732
2692
  });
2733
- return Sr(dt, Ae, M);
2693
+ return mr(dt, Ae, M);
2734
2694
  }
2735
2695
  throw Ne("infoSet.operationInfo.queryInfoSet is required");
2736
2696
  })), me = {
@@ -2752,7 +2712,7 @@ const Wr = (e) => {
2752
2712
  const d = O(f);
2753
2713
  return d ? c.value[m.value[d] ?? d] ?? null : null;
2754
2714
  }, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
2755
- const d = xr(f);
2715
+ const d = Pr(f);
2756
2716
  if (!d)
2757
2717
  return f.children;
2758
2718
  const M = S(f), K = await I(d, {
@@ -2762,22 +2722,22 @@ const Wr = (e) => {
2762
2722
  node: f,
2763
2723
  params: M
2764
2724
  });
2765
- return Rt(K).treeNodes;
2766
- }, H = async (f) => {
2725
+ return jt(K).treeNodes;
2726
+ }, U = async (f) => {
2767
2727
  if (f.loaded)
2768
2728
  return f.children;
2769
2729
  const d = await q(f);
2770
- return d.length > 0 && (i.value = bn(i.value, f.key, d)), d;
2730
+ return d.length > 0 && (i.value = hn(i.value, f.key, d)), d;
2771
2731
  }, G = async (f) => {
2772
2732
  const d = typeof f == "string" ? p(i.value, f) : f;
2773
- return d ? (l.value = d, a.value = null, b.value = [], await H(d), D(s.value?.raw, d), d) : null;
2733
+ return d ? (l.value = d, a.value = null, b.value = [], await U(d), D(s.value?.raw, d), d) : null;
2774
2734
  }, X = async () => {
2775
2735
  const f = e.service.templateTree;
2776
2736
  if (!f)
2777
2737
  throw Ne("service.templateTree is required");
2778
2738
  t.value = !0, r.value = null;
2779
2739
  try {
2780
- const d = await f(w()), M = Rt(d), K = await Promise.all(
2740
+ const d = await f(w()), M = jt(d), K = await Promise.all(
2781
2741
  M.treeNodes.map(async (_e) => {
2782
2742
  const me = await q(_e);
2783
2743
  return {
@@ -2801,7 +2761,7 @@ const Wr = (e) => {
2801
2761
  } finally {
2802
2762
  t.value = !1;
2803
2763
  }
2804
- }, V = async () => {
2764
+ }, P = async () => {
2805
2765
  const f = N();
2806
2766
  await C(a.value ?? l.value);
2807
2767
  const d = A.value.find(
@@ -2820,9 +2780,9 @@ const Wr = (e) => {
2820
2780
  (M) => M !== d
2821
2781
  ), R(d, { editing: !1 }));
2822
2782
  }, de = (f, d, M) => {
2823
- const K = typeof d == "string" ? d : Pe(d);
2783
+ const K = typeof d == "string" ? d : Ve(d);
2824
2784
  u(f, (W) => {
2825
- const me = (typeof d == "string" ? W.fields.find((ve) => Pe(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
2785
+ const me = (typeof d == "string" ? W.fields.find((ve) => Ve(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
2826
2786
  ...W.model,
2827
2787
  [K]: M
2828
2788
  };
@@ -2837,7 +2797,7 @@ const Wr = (e) => {
2837
2797
  rows: W.renderType === "form" ? [{ ...W.rows[0], ...se }] : W.rows,
2838
2798
  // 同步 fields.value,保证只读 renderer 立即显示新值。
2839
2799
  fields: W.fields.map((ve) => {
2840
- const Ae = Pe(ve);
2800
+ const Ae = Ve(ve);
2841
2801
  return Ae === K || ve.code === K ? { ...ve, value: M } : me.includes(Ae) || me.includes(ve.code) ? { ...ve, value: "" } : ve;
2842
2802
  })
2843
2803
  };
@@ -2855,19 +2815,19 @@ const Wr = (e) => {
2855
2815
  sourceModel: ve,
2856
2816
  sourceRow: Ae,
2857
2817
  missingDependField: dt
2858
- } = jr(W, d, _e), ft = se?.interface;
2818
+ } = Br(W, d, _e), ft = se?.interface;
2859
2819
  if (!se || !ft)
2860
2820
  return se?.options ?? [];
2861
- if (Nr(se))
2821
+ if (Er(se))
2862
2822
  return se.options ?? [];
2863
2823
  if (dt)
2864
2824
  return u(W, (Ge) => ({
2865
2825
  ...Ge,
2866
2826
  fields: Ge.fields.map(
2867
- (Le) => Pe(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
2827
+ (Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
2868
2828
  )
2869
2829
  })), [];
2870
- const Gn = await T(
2830
+ const zn = await T(
2871
2831
  {
2872
2832
  ...ft
2873
2833
  },
@@ -2884,13 +2844,13 @@ const Wr = (e) => {
2884
2844
  row: Ae,
2885
2845
  searchText: K.searchText
2886
2846
  }
2887
- ), Mt = zr(Gn);
2847
+ ), kt = Vr(zn);
2888
2848
  return u(W, (Ge) => ({
2889
2849
  ...Ge,
2890
2850
  fields: Ge.fields.map(
2891
- (Le) => Pe(Le) === me || Le.code === me ? { ...Le, options: Mt } : Le
2851
+ (Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: kt } : Le
2892
2852
  )
2893
- })), Mt;
2853
+ })), kt;
2894
2854
  }, Oe = (f, d) => {
2895
2855
  if (Array.isArray(d)) {
2896
2856
  Ie(f, d);
@@ -2905,7 +2865,7 @@ const Wr = (e) => {
2905
2865
  // fields.value 也同步成 model 中的值。
2906
2866
  fields: M.fields.map((K) => ({
2907
2867
  ...K,
2908
- value: d[Pe(K)]
2868
+ value: d[Ve(K)]
2909
2869
  }))
2910
2870
  }));
2911
2871
  }, Ie = (f, d) => {
@@ -2922,7 +2882,7 @@ const Wr = (e) => {
2922
2882
  // 加载当前节点详情。
2923
2883
  loadDetail: E,
2924
2884
  // 刷新当前详情。
2925
- reloadActiveSection: V,
2885
+ reloadActiveSection: P,
2926
2886
  // 加载指定节点或 section。
2927
2887
  loadSection: v,
2928
2888
  // 重新加载指定节点或 section。
@@ -2960,7 +2920,7 @@ const Wr = (e) => {
2960
2920
  const d = N(f), M = y(f);
2961
2921
  if (!M)
2962
2922
  return null;
2963
- const K = Gr(M);
2923
+ const K = jr(M);
2964
2924
  if (!K)
2965
2925
  throw Ne("section.operationInfo.editInfoSet is required");
2966
2926
  o.value = !0, r.value = null, d && d !== ke(M) && R(d, { saving: !0, error: null }), R(M, { saving: !0, error: null });
@@ -2968,7 +2928,7 @@ const Wr = (e) => {
2968
2928
  const {
2969
2929
  tagId: W,
2970
2930
  ..._e
2971
- } = j(l.value, M), me = Ir(M, _e), se = Hr(
2931
+ } = j(l.value, M), me = hr(M, _e), se = zr(
2972
2932
  M,
2973
2933
  me.infSetValues ?? [],
2974
2934
  {
@@ -3006,7 +2966,7 @@ const Wr = (e) => {
3006
2966
  () => {
3007
2967
  (e.autoLoad ?? !0) && X();
3008
2968
  }
3009
- ), Ht(() => {
2969
+ ), Kt(() => {
3010
2970
  (e.autoLoad ?? !0) && X();
3011
2971
  }), {
3012
2972
  // 当前 viewModel。
@@ -3028,7 +2988,7 @@ const Wr = (e) => {
3028
2988
  // 给页面消费的操作集合。
3029
2989
  actions: qe
3030
2990
  };
3031
- }, Ja = /* @__PURE__ */ ce({
2991
+ }, Ga = /* @__PURE__ */ ce({
3032
2992
  name: "GlobalInfoProvider",
3033
2993
  __name: "GlobalInfoProvider",
3034
2994
  props: {
@@ -3041,7 +3001,7 @@ const Wr = (e) => {
3041
3001
  formatOperationParams: {}
3042
3002
  },
3043
3003
  setup(e) {
3044
- const t = e, n = Wr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
3004
+ const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
3045
3005
  return (m, _) => ee(m.$slots, "default", Me(Fe({
3046
3006
  viewModel: re(o),
3047
3007
  nodes: re(r),
@@ -3054,31 +3014,31 @@ const Wr = (e) => {
3054
3014
  })));
3055
3015
  }
3056
3016
  });
3057
- function Ln(e) {
3017
+ function Fn(e) {
3058
3018
  if (e.action) {
3059
3019
  if (e.action.type === "direct") {
3060
- Et(e.action.options);
3020
+ Tt(e.action.options);
3061
3021
  return;
3062
3022
  }
3063
- Et.openByParams(e.action.params);
3023
+ Tt.openByParams(e.action.params);
3064
3024
  }
3065
3025
  }
3066
- const Zr = ["disabled", "accept", "multiple"], Qr = {
3026
+ const Kr = ["disabled", "accept", "multiple"], Yr = {
3067
3027
  key: 0,
3068
3028
  class: "global-info-field-control__file-preview-list"
3069
- }, Xr = ["onClick"], ea = {
3029
+ }, Ur = ["onClick"], Hr = {
3070
3030
  key: 1,
3071
3031
  class: "global-info-field-control__file-text"
3072
- }, ta = {
3032
+ }, Jr = {
3073
3033
  key: 2,
3074
3034
  class: "global-info-field-control__file-separator"
3075
- }, na = {
3035
+ }, Wr = {
3076
3036
  key: 1,
3077
3037
  class: "global-info-field-control__file-text"
3078
- }, oa = {
3038
+ }, Zr = {
3079
3039
  key: 2,
3080
3040
  class: "global-info-field-control__file-upload"
3081
- }, ra = /* @__PURE__ */ ce({
3041
+ }, Qr = /* @__PURE__ */ ce({
3082
3042
  name: "GlobalInfoFieldControl",
3083
3043
  __name: "GlobalInfoFieldControl",
3084
3044
  props: {
@@ -3088,14 +3048,14 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3088
3048
  },
3089
3049
  emits: ["update:modelValue", "change", "loadOptions"],
3090
3050
  setup(e, { emit: t }) {
3091
- const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = P(() => Qe(n.field)), l = P(() => s.value === "select_remote"), a = P(() => n.disabled || n.field.disabled || n.field.readonly), c = P(() => !!n.field.props?.multiple), m = P(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = P(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = P(() => {
3051
+ const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple), m = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = V(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = V(() => {
3092
3052
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
3093
3053
  const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3094
3054
  return Number.isFinite(x) ? x : void 0;
3095
- }), b = P(() => lr(n.field, n.modelValue)), A = P(() => {
3055
+ }), b = V(() => nr(n.field, n.modelValue)), A = V(() => {
3096
3056
  const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], R = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3097
- return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : vn(n.modelValue);
3098
- }), g = P(() => s.value === "code" ? 5 : 1), w = P(() => s.value === "file" && !Ce(n.modelValue)), S = P(() => mn(n.field, n.modelValue, "请选择文件")), j = P(() => hn(n.field, n.modelValue, "请选择文件")), I = P(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
3057
+ return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : fn(n.modelValue);
3058
+ }), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), S = V(() => dn(n.field, n.modelValue, "请选择文件")), j = V(() => pn(n.field, n.modelValue, "请选择文件")), I = V(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
3099
3059
  let h;
3100
3060
  function T(x) {
3101
3061
  o("update:modelValue", N(x));
@@ -3104,7 +3064,7 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3104
3064
  o("change", N(x));
3105
3065
  }
3106
3066
  function N(x) {
3107
- return s.value === "select" || s.value === "select_remote" ? cr(n.field, x) : x;
3067
+ return s.value === "select" || s.value === "select_remote" ? or(n.field, x) : x;
3108
3068
  }
3109
3069
  function y(x) {
3110
3070
  x && o("loadOptions", l.value ? { searchText: "" } : void 0);
@@ -3118,9 +3078,9 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3118
3078
  a.value || i.value?.click();
3119
3079
  }
3120
3080
  function z(x) {
3121
- Ln(x);
3081
+ Fn(x);
3122
3082
  }
3123
- Wn(() => {
3083
+ Un(() => {
3124
3084
  h && clearTimeout(h);
3125
3085
  });
3126
3086
  function ne(x) {
@@ -3128,8 +3088,8 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3128
3088
  T(B), p(B);
3129
3089
  }
3130
3090
  return (x, R) => {
3131
- const D = Qt, B = Zt, u = Jt, v = no, C = oo, L = Wt;
3132
- return s.value === "select" || s.value === "select_remote" ? (k(), U(B, oe({
3091
+ const D = Wt, B = Jt, u = Ut, v = Xn, C = eo, L = Ht;
3092
+ return s.value === "select" || s.value === "select_remote" ? (k(), H(B, oe({
3133
3093
  key: 0,
3134
3094
  class: "global-info-field-control"
3135
3095
  }, x.field.props, {
@@ -3148,14 +3108,14 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3148
3108
  onChange: p
3149
3109
  }), {
3150
3110
  default: J(() => [
3151
- (k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), U(D, {
3111
+ (k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), H(D, {
3152
3112
  key: String(E.value),
3153
3113
  label: E.label,
3154
3114
  value: E.value
3155
3115
  }, null, 8, ["label", "value"]))), 128))
3156
3116
  ]),
3157
3117
  _: 1
3158
- }, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), U(u, oe({
3118
+ }, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), H(u, oe({
3159
3119
  key: 1,
3160
3120
  class: "global-info-field-control"
3161
3121
  }, x.field.props, {
@@ -3166,7 +3126,7 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3166
3126
  "value-format": "YYYY-MM-DD",
3167
3127
  "onUpdate:modelValue": T,
3168
3128
  onChange: p
3169
- }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), U(v, oe({
3129
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(v, oe({
3170
3130
  key: 2,
3171
3131
  class: "global-info-field-control"
3172
3132
  }, x.field.props, {
@@ -3176,7 +3136,7 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3176
3136
  "controls-position": "right",
3177
3137
  "onUpdate:modelValue": T,
3178
3138
  onChange: p
3179
- }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), U(C, oe({
3139
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), H(C, oe({
3180
3140
  key: 3,
3181
3141
  class: "global-info-field-control global-info-field-control--switch"
3182
3142
  }, x.field.props, {
@@ -3186,7 +3146,7 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3186
3146
  onChange: p
3187
3147
  }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
3188
3148
  key: 4,
3189
- class: Ue(["global-info-field-control global-info-field-control--file", {
3149
+ class: He(["global-info-field-control global-info-field-control--file", {
3190
3150
  "is-disabled": a.value,
3191
3151
  "is-empty": !w.value,
3192
3152
  "is-filled": w.value
@@ -3202,8 +3162,8 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3202
3162
  accept: String(x.field.props?.accept ?? ""),
3203
3163
  multiple: !!x.field.props?.multiple,
3204
3164
  onChange: ne
3205
- }, null, 40, Zr),
3206
- j.value.length ? (k(), Y("span", Qr, [
3165
+ }, null, 40, Kr),
3166
+ j.value.length ? (k(), Y("span", Yr, [
3207
3167
  (k(!0), Y(be, null, ge(j.value, (E, q) => (k(), Y(be, {
3208
3168
  key: E.key
3209
3169
  }, [
@@ -3211,18 +3171,18 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3211
3171
  key: 0,
3212
3172
  class: "global-info-field-control__file-preview",
3213
3173
  type: "button",
3214
- onClick: Yt((H) => z(E), ["stop", "prevent"])
3215
- }, fe(E.text), 9, Xr)) : (k(), Y("span", ea, fe(E.text), 1)),
3216
- q < j.value.length - 1 ? (k(), Y("span", ta, "、")) : ue("", !0)
3174
+ onClick: Gt((U) => z(E), ["stop", "prevent"])
3175
+ }, fe(E.text), 9, Ur)) : (k(), Y("span", Hr, fe(E.text), 1)),
3176
+ q < j.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
3217
3177
  ], 64))), 128))
3218
- ])) : w.value ? (k(), Y("span", na, fe(S.value), 1)) : (k(), Y("span", oa, "上 传"))
3219
- ], 2)) : s.value === "empty" ? (k(), U(L, {
3178
+ ])) : w.value ? (k(), Y("span", Wr, fe(S.value), 1)) : (k(), Y("span", Zr, "上 传"))
3179
+ ], 2)) : s.value === "empty" ? (k(), H(L, {
3220
3180
  key: 5,
3221
3181
  class: "global-info-field-control",
3222
3182
  "model-value": "",
3223
3183
  disabled: "",
3224
3184
  placeholder: "-"
3225
- })) : (k(), U(L, oe({
3185
+ })) : (k(), H(L, oe({
3226
3186
  key: 6,
3227
3187
  class: ["global-info-field-control", {
3228
3188
  "global-info-field-control--textarea": r.includes(s.value),
@@ -3240,13 +3200,13 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3240
3200
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3241
3201
  };
3242
3202
  }
3243
- }), Pn = /* @__PURE__ */ ye(ra, [["__scopeId", "data-v-ba6b38f5"]]), aa = ["innerHTML"], sa = {
3203
+ }), Bn = /* @__PURE__ */ ye(Qr, [["__scopeId", "data-v-ba6b38f5"]]), Xr = ["innerHTML"], ea = {
3244
3204
  key: 1,
3245
3205
  class: "global-info-field-value global-info-field-value--code"
3246
- }, ia = {
3206
+ }, ta = {
3247
3207
  key: 2,
3248
3208
  class: "global-info-field-value global-info-field-value--file"
3249
- }, la = ["onClick"], ca = { key: 1 }, ua = { key: 2 }, da = /* @__PURE__ */ ce({
3209
+ }, na = ["onClick"], oa = { key: 1 }, ra = { key: 2 }, aa = /* @__PURE__ */ ce({
3250
3210
  name: "GlobalInfoFieldValue",
3251
3211
  __name: "GlobalInfoFieldValue",
3252
3212
  props: {
@@ -3255,15 +3215,15 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3255
3215
  emptyText: { default: "-" }
3256
3216
  },
3257
3217
  setup(e) {
3258
- const t = e, n = P(() => Ct(t.field)), o = P(() => n.value === "empty" || Ce(t.value)), r = P(() => mn(t.field, t.value, t.emptyText)), i = P(() => hn(t.field, t.value, t.emptyText));
3218
+ const t = e, n = V(() => $t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => dn(t.field, t.value, t.emptyText)), i = V(() => pn(t.field, t.value, t.emptyText));
3259
3219
  function s(l) {
3260
- Ln(l);
3220
+ Fn(l);
3261
3221
  }
3262
3222
  return (l, a) => n.value === "html" && !o.value ? (k(), Y("span", {
3263
3223
  key: 0,
3264
3224
  class: "global-info-field-value global-info-field-value--html",
3265
3225
  innerHTML: r.value
3266
- }, null, 8, aa)) : n.value === "code" && !o.value ? (k(), Y("pre", sa, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ia, [
3226
+ }, null, 8, Xr)) : n.value === "code" && !o.value ? (k(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ta, [
3267
3227
  (k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
3268
3228
  key: c.key
3269
3229
  }, [
@@ -3272,19 +3232,19 @@ const Zr = ["disabled", "accept", "multiple"], Qr = {
3272
3232
  class: "global-info-field-value__attachment-preview",
3273
3233
  type: "button",
3274
3234
  onClick: (_) => s(c)
3275
- }, fe(c.text), 9, la)) : (k(), Y("span", ca, fe(c.text), 1)),
3276
- m < i.value.length - 1 ? (k(), Y("span", ua, "、")) : ue("", !0)
3235
+ }, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
3236
+ m < i.value.length - 1 ? (k(), Y("span", ra, "、")) : ue("", !0)
3277
3237
  ], 64))), 128))
3278
3238
  ])) : (k(), Y("span", {
3279
3239
  key: 3,
3280
- class: Ue(["global-info-field-value", {
3240
+ class: He(["global-info-field-value", {
3281
3241
  "global-info-field-value--multi-row": n.value === "multi-row",
3282
3242
  "global-info-field-value--file": n.value === "file" && !o.value
3283
3243
  }])
3284
3244
  }, fe(r.value), 3));
3285
3245
  }
3286
- }), Vn = /* @__PURE__ */ ye(da, [["__scopeId", "data-v-efe9888d"]]);
3287
- function fa(e) {
3246
+ }), En = /* @__PURE__ */ ye(aa, [["__scopeId", "data-v-efe9888d"]]);
3247
+ function sa(e) {
3288
3248
  const t = Qe(e);
3289
3249
  return (t === "select" || t === "select_remote") && !!e.interface;
3290
3250
  }
@@ -3295,28 +3255,28 @@ function ot(e, t, n = {}, o = "") {
3295
3255
  function rt(e, t, n) {
3296
3256
  return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Re(e).length === 0 : !1;
3297
3257
  }
3298
- function An(e = {}) {
3258
+ function Ln(e = {}) {
3299
3259
  return Object.prototype.hasOwnProperty.call(e, "searchText");
3300
3260
  }
3301
- function jn(e, t) {
3261
+ function Vn(e, t) {
3302
3262
  const n = new Set(
3303
3263
  [t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
3304
3264
  );
3305
3265
  return n.size === 0 ? !1 : Re(e).some((o) => n.has(o));
3306
3266
  }
3307
- function Nn(e, t, n) {
3267
+ function Pn(e, t, n) {
3308
3268
  const o = Qe(e);
3309
- return fa(e) ? n ? !0 : !Ce(t) : !1;
3269
+ return sa(e) ? n ? !0 : !Ce(t) : !1;
3310
3270
  }
3311
- function Rn(e, t) {
3271
+ function An(e, t) {
3312
3272
  return Qe(e) !== "select_remote" ? {} : {
3313
3273
  searchText: t == null ? "" : String(t)
3314
3274
  };
3315
3275
  }
3316
- const pa = { class: "global-info-form-renderer__label" }, ma = {
3276
+ const ia = { class: "global-info-form-renderer__label" }, la = {
3317
3277
  key: 0,
3318
3278
  class: "global-info-form-renderer__required"
3319
- }, va = /* @__PURE__ */ ce({
3279
+ }, ca = /* @__PURE__ */ ce({
3320
3280
  name: "GlobalInfoFormRenderer",
3321
3281
  __name: "GlobalInfoFormRenderer",
3322
3282
  props: {
@@ -3330,12 +3290,12 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3330
3290
  renderConfig: {}
3331
3291
  },
3332
3292
  setup(e) {
3333
- const t = e, n = Ee(), o = P(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = P(() => lt(
3293
+ const t = e, n = Ee(), o = V(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = V(() => lt(
3334
3294
  t.section.fields,
3335
3295
  t.section,
3336
3296
  t.renderConfig,
3337
3297
  { values: o.value }
3338
- )), s = ln(
3298
+ )), s = rn(
3339
3299
  async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
3340
3300
  (h) => `${t.section.key}:${S(h)}`
3341
3301
  );
@@ -3386,7 +3346,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3386
3346
  }
3387
3347
  async function $(h, T = {}, p = o.value) {
3388
3348
  const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
3389
- if (!An(T) && rt(h, O, F)) {
3349
+ if (!Ln(T) && rt(h, O, F)) {
3390
3350
  r.set(y, F);
3391
3351
  return;
3392
3352
  }
@@ -3402,7 +3362,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3402
3362
  }
3403
3363
  async function b(h = o.value, T) {
3404
3364
  for (const p of i.value) {
3405
- if (T && !jn(p, T)) continue;
3365
+ if (T && !Vn(p, T)) continue;
3406
3366
  const N = h[p.code];
3407
3367
  if (!j(p, N)) continue;
3408
3368
  const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
@@ -3410,7 +3370,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3410
3370
  r.set(F, y);
3411
3371
  continue;
3412
3372
  }
3413
- O !== y && await $(p, Rn(p, N), h);
3373
+ O !== y && await $(p, An(p, N), h);
3414
3374
  }
3415
3375
  }
3416
3376
  Be(
@@ -3453,14 +3413,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3453
3413
  return h.key || h.id || h.code;
3454
3414
  }
3455
3415
  function j(h, T) {
3456
- return Nn(h, T, t.editing);
3416
+ return Pn(h, T, t.editing);
3457
3417
  }
3458
3418
  function I(h) {
3459
3419
  return h.required || h.isRequired;
3460
3420
  }
3461
3421
  return (h, T) => {
3462
- const p = Xt, N = ao, y = ro, F = en;
3463
- return k(), U(F, {
3422
+ const p = Zt, N = no, y = to, F = Qt;
3423
+ return k(), H(F, {
3464
3424
  class: "global-info-form-renderer",
3465
3425
  model: o.value,
3466
3426
  "label-position": "top"
@@ -3468,7 +3428,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3468
3428
  default: J(() => [
3469
3429
  we(y, { gutter: 24 }, {
3470
3430
  default: J(() => [
3471
- (k(!0), Y(be, null, ge(i.value, (O) => (k(), U(N, {
3431
+ (k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
3472
3432
  key: S(O),
3473
3433
  span: w(O)
3474
3434
  }, {
@@ -3478,8 +3438,8 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3478
3438
  ref_for: !0
3479
3439
  }, O.formItemProps), {
3480
3440
  label: J(() => [
3481
- te("span", pa, [
3482
- I(O) ? (k(), Y("span", ma, "*")) : ue("", !0),
3441
+ te("span", ia, [
3442
+ I(O) ? (k(), Y("span", la, "*")) : ue("", !0),
3483
3443
  Ye(" " + fe(O.label), 1)
3484
3444
  ])
3485
3445
  ]),
@@ -3487,14 +3447,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3487
3447
  g(O) ? ee(h.$slots, g(O), oe({
3488
3448
  key: 0,
3489
3449
  ref_for: !0
3490
- }, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), U(Pn, {
3450
+ }, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), H(Bn, {
3491
3451
  key: 1,
3492
3452
  field: O,
3493
3453
  "model-value": o.value[O.code],
3494
3454
  section: h.section,
3495
3455
  onLoadOptions: (z) => $(O, z),
3496
3456
  "onUpdate:modelValue": (z) => l(O, z)
3497
- }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), U(Vn, {
3457
+ }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
3498
3458
  key: 2,
3499
3459
  field: O,
3500
3460
  value: o.value[O.code],
@@ -3514,7 +3474,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3514
3474
  }, 8, ["model"]);
3515
3475
  };
3516
3476
  }
3517
- }), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-c4e2b568"]]), ga = /* @__PURE__ */ ce({
3477
+ }), ua = /* @__PURE__ */ ye(ca, [["__scopeId", "data-v-c4e2b568"]]), da = /* @__PURE__ */ ce({
3518
3478
  name: "GlobalInfoDeleteConfirm",
3519
3479
  __name: "GlobalInfoDeleteConfirm",
3520
3480
  props: {
@@ -3525,8 +3485,8 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3525
3485
  emits: ["confirm", "cancel"],
3526
3486
  setup(e) {
3527
3487
  return (t, n) => {
3528
- const o = so;
3529
- return k(), U(o, {
3488
+ const o = oo;
3489
+ return k(), H(o, {
3530
3490
  title: t.title,
3531
3491
  "confirm-button-text": t.confirmText,
3532
3492
  "cancel-button-text": t.cancelText,
@@ -3543,10 +3503,10 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3543
3503
  }, 8, ["title", "confirm-button-text", "cancel-button-text"]);
3544
3504
  };
3545
3505
  }
3546
- }), ya = { class: "global-info-table-renderer__table-scroll" }, ba = { class: "global-info-table-renderer__header" }, Sa = {
3506
+ }), fa = { class: "global-info-table-renderer__table-scroll" }, pa = { class: "global-info-table-renderer__header" }, ma = {
3547
3507
  key: 0,
3548
3508
  class: "global-info-table-renderer__required"
3549
- }, wa = /* @__PURE__ */ ce({
3509
+ }, va = /* @__PURE__ */ ce({
3550
3510
  name: "GlobalInfoTableRenderer",
3551
3511
  __name: "GlobalInfoTableRenderer",
3552
3512
  props: {
@@ -3560,10 +3520,10 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3560
3520
  renderConfig: {}
3561
3521
  },
3562
3522
  setup(e) {
3563
- const t = e, n = Ee(), o = P(() => t.section.fields.some((u) => Pt(u))), r = P(() => o.value), i = P(() => t.renderConfig?.sequenceLabel ?? "序号"), s = P(() => t.renderConfig?.sequenceWidth ?? 56), l = P(() => {
3523
+ const t = e, n = Ee(), o = V(() => t.section.fields.some((u) => Et(u))), r = V(() => o.value), i = V(() => t.renderConfig?.sequenceLabel ?? "序号"), s = V(() => t.renderConfig?.sequenceWidth ?? 56), l = V(() => {
3564
3524
  const u = t.renderConfig?.sequenceStart;
3565
3525
  return typeof u == "number" && Number.isFinite(u) ? u : 1;
3566
- }), a = P(() => {
3526
+ }), a = V(() => {
3567
3527
  const u = lt(
3568
3528
  t.section.fields,
3569
3529
  t.section,
@@ -3571,7 +3531,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3571
3531
  { rows: t.section.rows, values: t.section.model }
3572
3532
  );
3573
3533
  return r.value ? u.filter((v) => !ne(v)) : u;
3574
- }), c = /* @__PURE__ */ new Map(), m = ln(
3534
+ }), c = /* @__PURE__ */ new Map(), m = rn(
3575
3535
  async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
3576
3536
  (u, v) => `${t.section.key}:${D(v)}:${O(u)}`
3577
3537
  );
@@ -3590,22 +3550,22 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3590
3550
  }) : u.allowDelete !== !1);
3591
3551
  }
3592
3552
  function b(u, v, C, L) {
3593
- const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], H = {
3553
+ const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], U = {
3594
3554
  ...u,
3595
3555
  __rowKey: D(u),
3596
3556
  [C.code]: L
3597
3557
  };
3598
3558
  q.forEach((G) => {
3599
- H[G] = "";
3559
+ U[G] = "";
3600
3560
  }), E[v] = {
3601
- ...H
3602
- }, t.actions.updateTableRows(t.section, E), A(C, L, H, v, E), I(C, H);
3561
+ ...U
3562
+ }, t.actions.updateTableRows(t.section, E), A(C, L, U, v, E), I(C, U);
3603
3563
  }
3604
3564
  function A(u, v, C, L, E) {
3605
3565
  const q = t.renderConfig?.onFieldBusinessChange;
3606
3566
  if (q)
3607
3567
  try {
3608
- const H = g(u, v), G = { ...t.section.model, ...C }, X = {
3568
+ const U = g(u, v), G = { ...t.section.model, ...C }, X = {
3609
3569
  field: u,
3610
3570
  value: v,
3611
3571
  section: t.section,
@@ -3619,14 +3579,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3619
3579
  sections: w(),
3620
3580
  sectionValues: S(t.section, E),
3621
3581
  actions: t.actions,
3622
- selectedOption: H[0],
3623
- selectedOptions: H
3582
+ selectedOption: U[0],
3583
+ selectedOptions: U
3624
3584
  };
3625
- Promise.resolve(q(X)).catch((V) => {
3626
- console.error("[GlobalInfoTableRenderer] field business change failed", V);
3585
+ Promise.resolve(q(X)).catch((P) => {
3586
+ console.error("[GlobalInfoTableRenderer] field business change failed", P);
3627
3587
  });
3628
- } catch (H) {
3629
- console.error("[GlobalInfoTableRenderer] field business change failed", H);
3588
+ } catch (U) {
3589
+ console.error("[GlobalInfoTableRenderer] field business change failed", U);
3630
3590
  }
3631
3591
  }
3632
3592
  function g(u, v) {
@@ -3639,14 +3599,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3639
3599
  function S(u, v) {
3640
3600
  const L = w().flatMap((E) => {
3641
3601
  const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
3642
- return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((H) => [String(H), q]);
3602
+ return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), q]);
3643
3603
  });
3644
3604
  return Object.fromEntries(L);
3645
3605
  }
3646
3606
  async function j(u, v, C = {}, L = v) {
3647
- const E = D(L), q = `${E}:${O(u)}`, H = ot(t.section.key, u, L, E), G = c.get(q);
3648
- if (!An(C) && rt(u, G, H)) {
3649
- c.set(q, H);
3607
+ const E = D(L), q = `${E}:${O(u)}`, U = ot(t.section.key, u, L, E), G = c.get(q);
3608
+ if (!Ln(C) && rt(u, G, U)) {
3609
+ c.set(q, U);
3650
3610
  return;
3651
3611
  }
3652
3612
  try {
@@ -3654,9 +3614,9 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3654
3614
  await m(u, L, C);
3655
3615
  return;
3656
3616
  }
3657
- await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, H);
3658
- } catch (V) {
3659
- console.error("[GlobalInfoTableRenderer] load field options failed", V);
3617
+ await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, U);
3618
+ } catch (P) {
3619
+ console.error("[GlobalInfoTableRenderer] load field options failed", P);
3660
3620
  }
3661
3621
  }
3662
3622
  async function I(u, v) {
@@ -3664,15 +3624,15 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3664
3624
  for (const L of C) {
3665
3625
  const E = D(L);
3666
3626
  for (const q of a.value) {
3667
- if (u && !jn(q, u)) continue;
3668
- const H = L[q.code];
3669
- if (!N(q, H)) continue;
3670
- const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, V = c.get(X);
3671
- if (rt(q, V, G)) {
3627
+ if (u && !Vn(q, u)) continue;
3628
+ const U = L[q.code];
3629
+ if (!N(q, U)) continue;
3630
+ const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, P = c.get(X);
3631
+ if (rt(q, P, G)) {
3672
3632
  c.set(X, G);
3673
3633
  continue;
3674
3634
  }
3675
- V !== G && await j(q, L, Rn(q, H));
3635
+ P !== G && await j(q, L, An(q, U));
3676
3636
  }
3677
3637
  }
3678
3638
  }
@@ -3703,14 +3663,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3703
3663
  return !u.readonly && !u.disabled;
3704
3664
  }
3705
3665
  function N(u, v) {
3706
- return Nn(u, v, t.editing);
3666
+ return Pn(u, v, t.editing);
3707
3667
  }
3708
3668
  function y(u) {
3709
- return u.width ?? (Lt(u) ? 56 : void 0);
3669
+ return u.width ?? (Bt(u) ? 56 : void 0);
3710
3670
  }
3711
3671
  function F(u) {
3712
3672
  if (!u.width)
3713
- return u.minWidth ?? (Lt(u) ? 56 : void 0);
3673
+ return u.minWidth ?? (Bt(u) ? 56 : void 0);
3714
3674
  }
3715
3675
  function O(u) {
3716
3676
  return u.key || u.id || u.code;
@@ -3719,7 +3679,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3719
3679
  return l.value + u;
3720
3680
  }
3721
3681
  function ne(u) {
3722
- return Pt(u);
3682
+ return Et(u);
3723
3683
  }
3724
3684
  let x = 0;
3725
3685
  const R = /* @__PURE__ */ new WeakMap();
@@ -3747,12 +3707,12 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3747
3707
  },
3748
3708
  { immediate: !0 }
3749
3709
  ), (u, v) => {
3750
- const C = nn, L = Zn("Delete"), E = Ut, q = It, H = tn;
3710
+ const C = en, L = Hn("Delete"), E = Yt, q = It, U = Xt;
3751
3711
  return k(), Y("div", {
3752
- class: Ue(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
3712
+ class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
3753
3713
  }, [
3754
- te("div", ya, [
3755
- we(H, {
3714
+ te("div", fa, [
3715
+ we(U, {
3756
3716
  class: "global-info-table-renderer__table",
3757
3717
  data: u.section.rows,
3758
3718
  fit: !0,
@@ -3760,14 +3720,14 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3760
3720
  "row-key": D
3761
3721
  }, {
3762
3722
  default: J(() => [
3763
- r.value ? (k(), U(C, {
3723
+ r.value ? (k(), H(C, {
3764
3724
  key: 0,
3765
3725
  type: "index",
3766
3726
  label: i.value,
3767
3727
  width: s.value,
3768
3728
  index: z
3769
3729
  }, null, 8, ["label", "width"])) : ue("", !0),
3770
- (k(!0), Y(be, null, ge(a.value, (G) => (k(), U(C, {
3730
+ (k(!0), Y(be, null, ge(a.value, (G) => (k(), H(C, {
3771
3731
  key: O(G),
3772
3732
  prop: G.code,
3773
3733
  label: G.label,
@@ -3775,45 +3735,45 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3775
3735
  "min-width": F(G)
3776
3736
  }, {
3777
3737
  header: J(() => [
3778
- te("span", ba, [
3779
- B(G) ? (k(), Y("span", Sa, "*")) : ue("", !0),
3738
+ te("span", pa, [
3739
+ B(G) ? (k(), Y("span", ma, "*")) : ue("", !0),
3780
3740
  te("span", null, fe(G.label), 1)
3781
3741
  ])
3782
3742
  ]),
3783
- default: J(({ row: X, $index: V }) => [
3743
+ default: J(({ row: X, $index: P }) => [
3784
3744
  T(G) ? ee(u.$slots, T(G), oe({
3785
3745
  key: 0,
3786
3746
  ref_for: !0
3787
- }, h(G, X, V)), void 0, !0) : u.editing && p(G) ? (k(), U(Pn, {
3747
+ }, h(G, X, P)), void 0, !0) : u.editing && p(G) ? (k(), H(Bn, {
3788
3748
  key: 1,
3789
3749
  field: G,
3790
3750
  "model-value": X[G.code],
3791
3751
  section: u.section,
3792
3752
  row: X,
3793
- "row-index": V,
3753
+ "row-index": P,
3794
3754
  onLoadOptions: (Z) => j(G, X, Z),
3795
- "onUpdate:modelValue": (Z) => b(X, V, G, Z)
3796
- }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), U(Vn, {
3755
+ "onUpdate:modelValue": (Z) => b(X, P, G, Z)
3756
+ }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
3797
3757
  key: 2,
3798
3758
  field: G,
3799
3759
  value: X[G.code],
3800
3760
  section: u.section,
3801
3761
  row: X,
3802
- "row-index": V
3762
+ "row-index": P
3803
3763
  }, null, 8, ["field", "value", "section", "row", "row-index"]))
3804
3764
  ]),
3805
3765
  _: 2
3806
3766
  }, 1032, ["prop", "label", "width", "min-width"]))), 128)),
3807
- u.editing ? (k(), U(C, {
3767
+ u.editing ? (k(), H(C, {
3808
3768
  key: 1,
3809
3769
  label: "操作",
3810
3770
  width: "104",
3811
3771
  fixed: "right"
3812
3772
  }, {
3813
3773
  default: J(({ row: G, $index: X }) => [
3814
- $(G, X) ? (k(), U(ga, {
3774
+ $(G, X) ? (k(), H(da, {
3815
3775
  key: 0,
3816
- onConfirm: (V) => _(X)
3776
+ onConfirm: (P) => _(X)
3817
3777
  }, {
3818
3778
  default: J(() => [
3819
3779
  we(q, {
@@ -3845,7 +3805,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3845
3805
  ], 2);
3846
3806
  };
3847
3807
  }
3848
- }), Ia = /* @__PURE__ */ ye(wa, [["__scopeId", "data-v-bfc7b8fe"]]), _a = /* @__PURE__ */ ce({
3808
+ }), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-bfc7b8fe"]]), ga = /* @__PURE__ */ ce({
3849
3809
  name: "GlobalInfoAutoRenderer",
3850
3810
  __name: "GlobalInfoAutoRenderer",
3851
3811
  props: {
@@ -3857,7 +3817,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3857
3817
  renderConfig: {}
3858
3818
  },
3859
3819
  setup(e) {
3860
- return (t, n) => t.section.renderType === "table" ? (k(), U(Ia, {
3820
+ return (t, n) => t.section.renderType === "table" ? (k(), H(ha, {
3861
3821
  key: 0,
3862
3822
  section: t.section,
3863
3823
  node: t.node,
@@ -3865,7 +3825,7 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3865
3825
  state: t.state,
3866
3826
  actions: t.actions,
3867
3827
  "render-config": t.renderConfig
3868
- }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), U(ha, {
3828
+ }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(ua, {
3869
3829
  key: 1,
3870
3830
  section: t.section,
3871
3831
  node: t.node,
@@ -3876,23 +3836,23 @@ const pa = { class: "global-info-form-renderer__label" }, ma = {
3876
3836
  }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
3877
3837
  }
3878
3838
  });
3879
- function zn(e) {
3880
- return qn(e.code);
3839
+ function jn(e) {
3840
+ return Rn(e.code);
3881
3841
  }
3882
- function xn(e, t) {
3883
- return zn(e) || qn(t?.code);
3842
+ function Nn(e, t) {
3843
+ return jn(e) || Rn(t?.code);
3884
3844
  }
3885
- function kt(e, t, n) {
3845
+ function Ct(e, t, n) {
3886
3846
  if (!n) return "";
3887
3847
  const o = `${t}-${n}`;
3888
3848
  if (e[o]) return o;
3889
3849
  const r = o.toLowerCase();
3890
3850
  return r !== o && e[r] ? r : "";
3891
3851
  }
3892
- function qn(e) {
3852
+ function Rn(e) {
3893
3853
  return typeof e == "string" ? e.trim() : "";
3894
3854
  }
3895
- const $a = /* @__PURE__ */ ce({
3855
+ const ya = /* @__PURE__ */ ce({
3896
3856
  name: "GlobalInfoSectionOutlet",
3897
3857
  __name: "GlobalInfoSectionOutlet",
3898
3858
  props: {
@@ -3904,7 +3864,7 @@ const $a = /* @__PURE__ */ ce({
3904
3864
  renderConfig: {}
3905
3865
  },
3906
3866
  setup(e) {
3907
- const t = e, n = Ee(), o = P(() => lt(
3867
+ const t = e, n = Ee(), o = V(() => lt(
3908
3868
  t.section.fields,
3909
3869
  t.section,
3910
3870
  t.renderConfig,
@@ -3912,11 +3872,11 @@ const $a = /* @__PURE__ */ ce({
3912
3872
  values: t.section.model,
3913
3873
  rows: t.section.renderType === "table" ? t.section.rows : void 0
3914
3874
  }
3915
- )), r = P(() => t.editing ?? t.actions.isEditing(t.section)), i = P(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = P(() => {
3916
- const a = kt(
3875
+ )), r = V(() => t.editing ?? t.actions.isEditing(t.section)), i = V(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = V(() => {
3876
+ const a = Ct(
3917
3877
  n,
3918
3878
  "section",
3919
- xn(t.node ?? {}, t.section)
3879
+ Nn(t.node ?? {}, t.section)
3920
3880
  ), c = l(t.section.renderType);
3921
3881
  return [
3922
3882
  a,
@@ -3939,7 +3899,7 @@ const $a = /* @__PURE__ */ ce({
3939
3899
  renderConfig: a.renderConfig,
3940
3900
  state: a.state,
3941
3901
  actions: a.actions
3942
- }) : (k(), U(_a, {
3902
+ }) : (k(), H(ga, {
3943
3903
  key: 1,
3944
3904
  section: a.section,
3945
3905
  node: a.node,
@@ -3949,7 +3909,7 @@ const $a = /* @__PURE__ */ ce({
3949
3909
  "render-config": a.renderConfig
3950
3910
  }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
3951
3911
  }
3952
- }), Ca = ce({
3912
+ }), ba = ce({
3953
3913
  name: "GlobalInfoSlotErrorBoundary",
3954
3914
  props: {
3955
3915
  boundaryKey: {
@@ -3971,7 +3931,7 @@ const $a = /* @__PURE__ */ ce({
3971
3931
  () => {
3972
3932
  o.value = !1;
3973
3933
  }
3974
- ), Qn((i) => (r(i), !1));
3934
+ ), Jn((i) => (r(i), !1));
3975
3935
  function r(i) {
3976
3936
  o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, i), t("error", i);
3977
3937
  }
@@ -3985,13 +3945,13 @@ const $a = /* @__PURE__ */ ce({
3985
3945
  }
3986
3946
  };
3987
3947
  }
3988
- }), ka = { class: "global-info-section-block" }, Ma = {
3948
+ }), Sa = { class: "global-info-section-block" }, wa = {
3989
3949
  key: 0,
3990
3950
  class: "global-info-section-block__header"
3991
- }, Ta = { class: "global-info-section-block__title-wrap" }, Oa = { class: "global-info-section-block__title" }, Da = {
3951
+ }, Ia = { class: "global-info-section-block__title-wrap" }, _a = { class: "global-info-section-block__title" }, $a = {
3992
3952
  key: 0,
3993
3953
  class: "global-info-section-block__actions"
3994
- }, Fa = { class: "global-info-section-block__body" }, Ba = /* @__PURE__ */ ce({
3954
+ }, Ca = { class: "global-info-section-block__body" }, ka = /* @__PURE__ */ ce({
3995
3955
  name: "GlobalInfoSectionBlock",
3996
3956
  __name: "GlobalInfoSectionBlock",
3997
3957
  props: {
@@ -4005,16 +3965,16 @@ const $a = /* @__PURE__ */ ce({
4005
3965
  onSave: { type: Function }
4006
3966
  },
4007
3967
  setup(e) {
4008
- const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = P(() => !!t.hideHeader), l = P(() => t.actions.getSectionStatus(t.node)), a = P(() => t.actions.getSection(t.node) ?? i.value), c = P(() => {
3968
+ const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = V(() => !!t.hideHeader), l = V(() => t.actions.getSectionStatus(t.node)), a = V(() => t.actions.getSection(t.node) ?? i.value), c = V(() => {
4009
3969
  const y = a.value;
4010
3970
  return y ? lt(y.fields, y, t.renderConfig, {
4011
3971
  values: y.model,
4012
3972
  rows: y.renderType === "table" ? y.rows : void 0
4013
3973
  }) : [];
4014
- }), m = P(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = P(() => !!(a.value && t.actions.isEditing(a.value))), $ = P(() => a.value?.renderType === "table"), b = P(() => o.value || l.value.loading), A = P(() => S(r.value || l.value.error)), g = P(() => {
3974
+ }), m = V(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = V(() => !!(a.value && t.actions.isEditing(a.value))), $ = V(() => a.value?.renderType === "table"), b = V(() => o.value || l.value.loading), A = V(() => S(r.value || l.value.error)), g = V(() => {
4015
3975
  const y = a.value;
4016
3976
  return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
4017
- }), w = P(() => ({
3977
+ }), w = V(() => ({
4018
3978
  node: t.node,
4019
3979
  section: a.value,
4020
3980
  sectionView: a.value,
@@ -4079,7 +4039,7 @@ const $a = /* @__PURE__ */ ce({
4079
4039
  o.value = !1;
4080
4040
  }
4081
4041
  }
4082
- return Ht(() => {
4042
+ return Kt(() => {
4083
4043
  N();
4084
4044
  }), Be(
4085
4045
  () => t.node.key,
@@ -4088,15 +4048,15 @@ const $a = /* @__PURE__ */ ce({
4088
4048
  }
4089
4049
  ), (y, F) => {
4090
4050
  const O = It;
4091
- return k(), Y("section", ka, [
4092
- s.value ? ue("", !0) : (k(), Y("header", Ma, [
4051
+ return k(), Y("section", Sa, [
4052
+ s.value ? ue("", !0) : (k(), Y("header", wa, [
4093
4053
  ee(y.$slots, "header", Me(Fe(w.value)), () => [
4094
- te("div", Ta, [
4054
+ te("div", Ia, [
4095
4055
  F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
4096
- te("h3", Oa, fe(m.value), 1)
4056
+ te("h3", _a, fe(m.value), 1)
4097
4057
  ]),
4098
4058
  ee(y.$slots, "actions", Me(Fe(w.value)), () => [
4099
- a.value ? (k(), Y("div", Da, [
4059
+ a.value ? (k(), Y("div", $a, [
4100
4060
  _.value ? (k(), Y(be, { key: 1 }, [
4101
4061
  we(O, {
4102
4062
  class: "global-info-section-block__cancel",
@@ -4108,7 +4068,7 @@ const $a = /* @__PURE__ */ ce({
4108
4068
  ])),
4109
4069
  _: 1
4110
4070
  }, 8, ["disabled"]),
4111
- $.value ? (k(), U(O, {
4071
+ $.value ? (k(), H(O, {
4112
4072
  key: 0,
4113
4073
  class: "global-info-section-block__add",
4114
4074
  disabled: l.value.saving,
@@ -4129,7 +4089,7 @@ const $a = /* @__PURE__ */ ce({
4129
4089
  ]),
4130
4090
  _: 1
4131
4091
  }, 8, ["loading"])
4132
- ], 64)) : (k(), U(O, {
4092
+ ], 64)) : (k(), H(O, {
4133
4093
  key: 0,
4134
4094
  class: "global-info-section-block__edit",
4135
4095
  disabled: l.value.saving || b.value,
@@ -4155,12 +4115,12 @@ const $a = /* @__PURE__ */ ce({
4155
4115
  ], !0)
4156
4116
  ], !0)
4157
4117
  ])),
4158
- te("div", Fa, [
4118
+ te("div", Ca, [
4159
4119
  b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
4160
4120
  F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
4161
4121
  ], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
4162
4122
  F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4163
- ], !0) : (k(), U(Ca, {
4123
+ ], !0) : (k(), H(ba, {
4164
4124
  key: 2,
4165
4125
  "boundary-key": y.node.key,
4166
4126
  label: m.value,
@@ -4172,7 +4132,7 @@ const $a = /* @__PURE__ */ ce({
4172
4132
  ], !0)
4173
4133
  ]),
4174
4134
  default: J(() => [
4175
- we($a, {
4135
+ we(ya, {
4176
4136
  section: a.value,
4177
4137
  node: y.node,
4178
4138
  editing: _.value,
@@ -4194,7 +4154,7 @@ const $a = /* @__PURE__ */ ce({
4194
4154
  ]);
4195
4155
  };
4196
4156
  }
4197
- }), Ea = /* @__PURE__ */ ye(Ba, [["__scopeId", "data-v-8a4b5280"]]), La = { class: "global-info-group" }, Pa = { class: "global-info-group__header" }, Va = { class: "global-info-group__title" }, Aa = { class: "global-info-group__body" }, ja = ["id"], Na = /* @__PURE__ */ ce({
4157
+ }), Ma = /* @__PURE__ */ ye(ka, [["__scopeId", "data-v-8a4b5280"]]), Ta = { class: "global-info-group" }, Oa = { class: "global-info-group__header" }, Da = { class: "global-info-group__title" }, Fa = { class: "global-info-group__body" }, Ba = ["id"], Ea = /* @__PURE__ */ ce({
4198
4158
  name: "GlobalInfoGroup",
4199
4159
  __name: "GlobalInfoGroup",
4200
4160
  props: {
@@ -4206,7 +4166,7 @@ const $a = /* @__PURE__ */ ce({
4206
4166
  renderConfig: {}
4207
4167
  },
4208
4168
  setup(e) {
4209
- const t = e, n = Ee(), o = P(() => t.group.tagName || t.group.label || "-"), r = P(() => t.children.length <= 1);
4169
+ const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
4210
4170
  function i(c, m) {
4211
4171
  const _ = t.actions.getSection(c);
4212
4172
  return {
@@ -4229,7 +4189,7 @@ const $a = /* @__PURE__ */ ce({
4229
4189
  }
4230
4190
  function s(c) {
4231
4191
  const m = t.actions.getSection(c);
4232
- return kt(n, "section", xn(c, m));
4192
+ return Ct(n, "section", Nn(c, m));
4233
4193
  }
4234
4194
  function l(c, m) {
4235
4195
  return c.key || c.id || c.infSetId || c.tagId || `${m}`;
@@ -4237,7 +4197,7 @@ const $a = /* @__PURE__ */ ce({
4237
4197
  function a(c) {
4238
4198
  return `global-info-section-${l(c, 0)}`;
4239
4199
  }
4240
- return (c, m) => (k(), Y("section", La, [
4200
+ return (c, m) => (k(), Y("section", Ta, [
4241
4201
  ee(c.$slots, "header", {
4242
4202
  group: c.group,
4243
4203
  children: c.children,
@@ -4248,12 +4208,12 @@ const $a = /* @__PURE__ */ ce({
4248
4208
  index: c.index,
4249
4209
  isEmpty: c.children.length === 0
4250
4210
  }, () => [
4251
- te("header", Pa, [
4211
+ te("header", Oa, [
4252
4212
  m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
4253
- te("h2", Va, fe(o.value), 1)
4213
+ te("h2", Da, fe(o.value), 1)
4254
4214
  ])
4255
4215
  ], !0),
4256
- te("div", Aa, [
4216
+ te("div", Fa, [
4257
4217
  re(n).default ? ee(c.$slots, "default", {
4258
4218
  key: 0,
4259
4219
  group: c.group,
@@ -4275,7 +4235,7 @@ const $a = /* @__PURE__ */ ce({
4275
4235
  }, i(_, $)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
4276
4236
  key: 1,
4277
4237
  ref_for: !0
4278
- }, i(_, $)), void 0, !0) : (k(), U(Ea, {
4238
+ }, i(_, $)), void 0, !0) : (k(), H(Ma, {
4279
4239
  key: 2,
4280
4240
  node: _,
4281
4241
  state: c.state,
@@ -4290,7 +4250,7 @@ const $a = /* @__PURE__ */ ce({
4290
4250
  ])
4291
4251
  }))
4292
4252
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
4293
- ], 8, ja))), 128)),
4253
+ ], 8, Ba))), 128)),
4294
4254
  c.children.length === 0 ? ee(c.$slots, "empty", {
4295
4255
  key: 0,
4296
4256
  node: null,
@@ -4307,7 +4267,7 @@ const $a = /* @__PURE__ */ ce({
4307
4267
  ])
4308
4268
  ]));
4309
4269
  }
4310
- }), Ra = /* @__PURE__ */ ye(Na, [["__scopeId", "data-v-e86fcaf6"]]), za = { class: "global-info-sections" }, xa = /* @__PURE__ */ ce({
4270
+ }), La = /* @__PURE__ */ ye(Ea, [["__scopeId", "data-v-e86fcaf6"]]), Va = { class: "global-info-sections" }, Pa = /* @__PURE__ */ ce({
4311
4271
  name: "GlobalInfoSections",
4312
4272
  __name: "GlobalInfoSections",
4313
4273
  props: {
@@ -4317,7 +4277,7 @@ const $a = /* @__PURE__ */ ce({
4317
4277
  renderConfig: {}
4318
4278
  },
4319
4279
  setup(e) {
4320
- const t = e, n = Ee(), o = P(() => {
4280
+ const t = e, n = Ee(), o = V(() => {
4321
4281
  const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
4322
4282
  if (A.length === 0)
4323
4283
  return $.length > 0 ? g : c(b);
@@ -4331,7 +4291,7 @@ const $a = /* @__PURE__ */ ce({
4331
4291
  return !String(m.parentId || m.parentTagId || "").trim();
4332
4292
  }
4333
4293
  function s(m) {
4334
- return kt(n, "group", zn(m));
4294
+ return Ct(n, "group", jn(m));
4335
4295
  }
4336
4296
  function l(m, _) {
4337
4297
  return m.key || m.id || m.tagId || `${_}`;
@@ -4358,7 +4318,7 @@ const $a = /* @__PURE__ */ ce({
4358
4318
  children: $
4359
4319
  }));
4360
4320
  }
4361
- return (m, _) => (k(), Y("div", za, [
4321
+ return (m, _) => (k(), Y("div", Va, [
4362
4322
  (k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
4363
4323
  key: l($.group, b)
4364
4324
  }, [
@@ -4380,7 +4340,7 @@ const $a = /* @__PURE__ */ ce({
4380
4340
  renderConfig: m.renderConfig,
4381
4341
  index: b,
4382
4342
  isEmpty: $.children.length === 0
4383
- }, void 0, !0) : (k(), U(Ra, {
4343
+ }, void 0, !0) : (k(), H(La, {
4384
4344
  key: 2,
4385
4345
  group: $.group,
4386
4346
  children: $.children,
@@ -4399,41 +4359,41 @@ const $a = /* @__PURE__ */ ce({
4399
4359
  ], 64))), 128))
4400
4360
  ]));
4401
4361
  }
4402
- }), Wa = /* @__PURE__ */ ye(xa, [["__scopeId", "data-v-6f22a098"]]);
4362
+ }), Ka = /* @__PURE__ */ ye(Pa, [["__scopeId", "data-v-6f22a098"]]);
4403
4363
  export {
4404
- En as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
4405
- _a as GlobalInfoAutoRenderer,
4406
- ga as GlobalInfoDeleteConfirm,
4407
- Pn as GlobalInfoFieldControl,
4408
- Vn as GlobalInfoFieldValue,
4409
- ha as GlobalInfoFormRenderer,
4410
- Ra as GlobalInfoGroup,
4411
- Ja as GlobalInfoProvider,
4412
- Ea as GlobalInfoSectionBlock,
4413
- $a as GlobalInfoSectionOutlet,
4414
- Wa as GlobalInfoSections,
4415
- Ia as GlobalInfoTableRenderer,
4416
- Et as JtAttachmentPreview,
4417
- Uo as JtAttachmentPreviewByParams,
4364
+ Dn as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
4365
+ ga as GlobalInfoAutoRenderer,
4366
+ da as GlobalInfoDeleteConfirm,
4367
+ Bn as GlobalInfoFieldControl,
4368
+ En as GlobalInfoFieldValue,
4369
+ ua as GlobalInfoFormRenderer,
4370
+ La as GlobalInfoGroup,
4371
+ Ga as GlobalInfoProvider,
4372
+ Ma as GlobalInfoSectionBlock,
4373
+ ya as GlobalInfoSectionOutlet,
4374
+ Ka as GlobalInfoSections,
4375
+ ha as GlobalInfoTableRenderer,
4376
+ Tt as JtAttachmentPreview,
4377
+ Ha as JtAttachmentPreviewByParams,
4418
4378
  tt as JtButton,
4419
- vo as JtCascader,
4420
- Ya as JtCrudTable,
4421
- go as JtDatePicker,
4422
- Eo as JtFilterBar,
4423
- _o as JtFormItems,
4379
+ fo as JtCascader,
4380
+ za as JtCrudTable,
4381
+ mo as JtDatePicker,
4382
+ Do as JtFilterBar,
4383
+ So as JtFormItems,
4424
4384
  mt as JtInput,
4425
- Ha as JtPageHeader,
4426
- xo as JtPagination,
4427
- So as JtSelect,
4428
- jo as JtTable,
4429
- Ir as buildGlobalInfoUpdatePayload,
4430
- br as createEmptyGlobalInfoViewModel,
4431
- Ua as isGlobalInfoNode,
4432
- bn as mergeGlobalInfoChildren,
4433
- Sr as normalizeGlobalInfoDetail,
4434
- Rt as normalizeGlobalInfoTree,
4435
- wr as resolveGlobalInfoRenderType,
4436
- Ho as setupJtAttachmentPreview,
4437
- Wr as useGlobalInfoController,
4438
- Hr as validateGlobalInfoRequiredInfoSet
4385
+ xa as JtPageHeader,
4386
+ No as JtPagination,
4387
+ go as JtSelect,
4388
+ Vo as JtTable,
4389
+ hr as buildGlobalInfoUpdatePayload,
4390
+ pr as createEmptyGlobalInfoViewModel,
4391
+ qa as isGlobalInfoNode,
4392
+ hn as mergeGlobalInfoChildren,
4393
+ mr as normalizeGlobalInfoDetail,
4394
+ jt as normalizeGlobalInfoTree,
4395
+ vr as resolveGlobalInfoRenderType,
4396
+ Ja as setupJtAttachmentPreview,
4397
+ Gr as useGlobalInfoController,
4398
+ zr as validateGlobalInfoRequiredInfoSet
4439
4399
  };