@unizhen/ui 0.1.70 → 0.1.72

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/lib/ui.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as te, toDisplayString as O, useId as k, vShow as A, watch as j, watchEffect as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as ne } from "vue";
2
- import { NButton as I, NButtonGroup as re, NCascader as L, NCheckbox as ie, NCheckboxGroup as ae, NColorPicker as oe, NConfigProvider as se, NDataTable as ce, NDatePicker as R, NDivider as le, NDrawer as ue, NDrawerContent as de, NDropdown as fe, NEllipsis as pe, NFlex as me, NForm as he, NFormItem as ge, NGrid as _e, NGridItem as ve, NIcon as z, NImage as ye, NImageGroup as be, NInput as xe, NInputGroup as Se, NInputGroupLabel as Ce, NInputNumber as we, NModal as Te, NPagination as Ee, NPopconfirm as De, NPopover as B, NRadio as Oe, NRadioGroup as ke, NSelect as Ae, NSkeleton as je, NSpace as Me, NSpin as Ne, NSwitch as Pe, NTabPane as Fe, NTabs as Ie, NTimePicker as Le, NTooltip as Re, NUpload as ze, NUploadDragger as Be, createDiscreteApi as Ve, darkTheme as V, dateZhCN as He, useNotification as Ue, zhCN as We } from "naive-ui";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as O, resolveDynamicComponent as ee, toDisplayString as k, useId as te, vShow as A, watch as j, watchEffect as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
2
+ import { NButton as L, NButtonGroup as ne, NCascader as re, NCheckbox as ie, NCheckboxGroup as R, NColorPicker as ae, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as le, NDrawer as ue, NDrawerContent as z, NDropdown as de, NEllipsis as fe, NFlex as pe, NForm as me, NFormItem as he, NGrid as ge, NGridItem as _e, NIcon as B, NImage as ve, NImageGroup as ye, NInput as be, NInputGroup as xe, NInputGroupLabel as Se, NInputNumber as Ce, NModal as we, NPagination as Te, NPopconfirm as Ee, NPopover as De, NRadio as Oe, NRadioGroup as ke, NSelect as Ae, NSkeleton as je, NSpace as Me, NSpin as Ne, NSwitch as Pe, NTabPane as Fe, NTabs as Ie, NTimePicker as Le, NTooltip as Re, NUpload as ze, NUploadDragger as Be, createDiscreteApi as Ve, darkTheme as V, dateZhCN as He, useNotification as Ue, zhCN as We } from "naive-ui";
3
3
  import Ge from "axios";
4
4
  import { createRouter as Ke, createWebHistory as qe, useRoute as Je, useRouter as Ye } from "vue-router";
5
5
  import { createI18n as Xe, useI18n as Ze } from "vue-i18n";
@@ -2047,7 +2047,9 @@ var G = Xe({
2047
2047
  action: "Action",
2048
2048
  back: "Back",
2049
2049
  scan: "Scan",
2050
- download: "Download"
2050
+ download: "Download",
2051
+ expand: "Expand",
2052
+ contract: "Contract"
2051
2053
  },
2052
2054
  Notice: {
2053
2055
  success: "Operation Success",
@@ -2085,7 +2087,9 @@ var G = Xe({
2085
2087
  action: "操作",
2086
2088
  back: "返回",
2087
2089
  scan: "扫一扫",
2088
- download: "下载"
2090
+ download: "下载",
2091
+ expand: "全部展开",
2092
+ contract: "全部收起"
2089
2093
  },
2090
2094
  Notice: {
2091
2095
  success: "操作成功",
@@ -2501,14 +2505,14 @@ var Td = "/apiserver/", Ed = () => {
2501
2505
  }
2502
2506
  e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
2503
2507
  }
2504
- return e.icon && (o.icon = () => f(z, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(I, a, o);
2508
+ return e.icon && (o.icon = () => f(B, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
2505
2509
  }, Hd = (e, t, n, r, i) => {
2506
2510
  let a = { placement: "left" };
2507
2511
  if (typeof t.onClick == "string") {
2508
2512
  let e = t.onClick;
2509
2513
  a["on-positive-click"] = () => Bd(e, n, r, i);
2510
2514
  } else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
2511
- return f(De, a, {
2515
+ return f(Ee, a, {
2512
2516
  default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
2513
2517
  trigger: () => e
2514
2518
  });
@@ -2522,7 +2526,7 @@ var Td = "/apiserver/", Ed = () => {
2522
2526
  let o = [];
2523
2527
  e.children && e.children.length > 0 && e.children.forEach((a, s) => {
2524
2528
  delete a.tooltipText, o.push(Ud(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
2525
- }), a.push(f(B, { trigger: "click" }, {
2529
+ }), a.push(f(De, { trigger: "click" }, {
2526
2530
  trigger: () => Vd({
2527
2531
  icon: e.icon,
2528
2532
  color: e.color || "default",
@@ -2530,7 +2534,7 @@ var Td = "/apiserver/", Ed = () => {
2530
2534
  disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled,
2531
2535
  loading: t[e.key] ?? !1
2532
2536
  }, t, n, r, i),
2533
- default: () => f(me, {
2537
+ default: () => f(pe, {
2534
2538
  vertical: !0,
2535
2539
  size: 12
2536
2540
  }, { default: () => o })
@@ -2642,8 +2646,8 @@ var Td = "/apiserver/", Ed = () => {
2642
2646
  name: "UzBack",
2643
2647
  components: {
2644
2648
  ArrowNarrowLeft: on,
2645
- NButton: I,
2646
- NIcon: z
2649
+ NButton: L,
2650
+ NIcon: B
2647
2651
  },
2648
2652
  props: {
2649
2653
  to: {
@@ -2674,7 +2678,7 @@ function ef(e, t, r, i, o, s) {
2674
2678
  default: N(() => [l(c)]),
2675
2679
  _: 1
2676
2680
  })]),
2677
- default: N(() => [a("span", null, O(e.text || e.$t("Common.back")), 1)]),
2681
+ default: N(() => [a("span", null, k(e.text || e.$t("Common.back")), 1)]),
2678
2682
  _: 1
2679
2683
  }, 8, ["onClick"]);
2680
2684
  }
@@ -2715,7 +2719,7 @@ var tf = /*#__PURE__*/ U($d, [["render", ef]]), nf = 120, rf = 10, af = nf / 2,
2715
2719
  }
2716
2720
  },
2717
2721
  setup(e) {
2718
- let n = k(), r = w(), i = w(), a = w();
2722
+ let n = te(), r = w(), i = w(), a = w();
2719
2723
  return {
2720
2724
  uniqueId: n,
2721
2725
  backgroundBg: t(() => `rgba(${lf(e.color)},0.1)`),
@@ -2820,8 +2824,8 @@ function jf(e, t, n, r, o, s) {
2820
2824
  transform: e.calculatePoint(),
2821
2825
  fill: "#fff"
2822
2826
  }, null, 8, vf),
2823
- a("text", yf, O(e.circle), 1),
2824
- a("text", bf, O(e.circleUnit), 1)
2827
+ a("text", yf, k(e.circle), 1),
2828
+ a("text", bf, k(e.circleUnit), 1)
2825
2829
  ])) : (x(), i("svg", xf, [
2826
2830
  a("defs", null, [a("linearGradient", {
2827
2831
  id: `uz-progress-grad-1-${e.uniqueId}`,
@@ -2870,7 +2874,7 @@ function jf(e, t, n, r, o, s) {
2870
2874
  "font-size": "2rem",
2871
2875
  "font-weight": "400"
2872
2876
  }
2873
- }, O(e.circle), 9, kf),
2877
+ }, k(e.circle), 9, kf),
2874
2878
  a("text", {
2875
2879
  cy: "90",
2876
2880
  fill: "var(--circle-unit-color)",
@@ -2880,25 +2884,25 @@ function jf(e, t, n, r, o, s) {
2880
2884
  "font-size": "0.6rem",
2881
2885
  "font-weight": "400"
2882
2886
  }
2883
- }, O(e.circleUnit), 9, Af)
2887
+ }, k(e.circleUnit), 9, Af)
2884
2888
  ]))]);
2885
2889
  }
2886
2890
  var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
2887
2891
  name: "UzFormItem",
2888
2892
  components: {
2889
- NIcon: z,
2890
- NInput: xe,
2893
+ NIcon: B,
2894
+ NInput: be,
2891
2895
  NSelect: Ae,
2892
- NInputNumber: we,
2893
- NDatePicker: R,
2896
+ NInputNumber: Ce,
2897
+ NDatePicker: ce,
2894
2898
  NTimePicker: Le,
2895
2899
  NSwitch: Pe,
2896
- NColorPicker: oe,
2900
+ NColorPicker: ae,
2897
2901
  NCheckbox: ie,
2898
- NCheckboxGroup: ae,
2899
- NCascader: L,
2902
+ NCheckboxGroup: R,
2903
+ NCascader: re,
2900
2904
  NTooltip: Re,
2901
- NDropdown: fe
2905
+ NDropdown: de
2902
2906
  },
2903
2907
  props: {
2904
2908
  item: {
@@ -3016,7 +3020,7 @@ var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
3016
3020
  }
3017
3021
  }), Pf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3018
3022
  function Ff(t, r, s, u, d, f) {
3019
- let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), te = D("UzFormItemUpload");
3023
+ let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), O = D("NSwitch"), ee = D("UzFormItemUpload");
3020
3024
  return t.item.input === "input" ? (x(), n(p, {
3021
3025
  key: 0,
3022
3026
  value: t.formValue[t.item.key],
@@ -3036,11 +3040,11 @@ function Ff(t, r, s, u, d, f) {
3036
3040
  }
3037
3041
  }, o({ _: 2 }, [t.item.params.prefix ? {
3038
3042
  name: "prefix",
3039
- fn: N(() => [c(O(t.item.params.prefix), 1)]),
3043
+ fn: N(() => [c(k(t.item.params.prefix), 1)]),
3040
3044
  key: "0"
3041
3045
  } : void 0, t.item.params.suffix ? {
3042
3046
  name: "suffix",
3043
- fn: N(() => [c(O(t.item.params.suffix), 1)]),
3047
+ fn: N(() => [c(k(t.item.params.suffix), 1)]),
3044
3048
  key: "1"
3045
3049
  } : void 0]), 1032, [
3046
3050
  "value",
@@ -3090,11 +3094,11 @@ function Ff(t, r, s, u, d, f) {
3090
3094
  }
3091
3095
  }, o({ _: 2 }, [t.item.params.prefix ? {
3092
3096
  name: "prefix",
3093
- fn: N(() => [c(O(t.item.params.prefix), 1)]),
3097
+ fn: N(() => [c(k(t.item.params.prefix), 1)]),
3094
3098
  key: "0"
3095
3099
  } : void 0, t.item.params.suffix ? {
3096
3100
  name: "suffix",
3097
- fn: N(() => [c(O(t.item.params.suffix), 1)]),
3101
+ fn: N(() => [c(k(t.item.params.suffix), 1)]),
3098
3102
  key: "1"
3099
3103
  } : void 0]), 1032, [
3100
3104
  "value",
@@ -3132,11 +3136,11 @@ function Ff(t, r, s, u, d, f) {
3132
3136
  }
3133
3137
  }, o({ _: 2 }, [t.item.params.prefix ? {
3134
3138
  name: "prefix",
3135
- fn: N(() => [c(O(t.item.params.prefix), 1)]),
3139
+ fn: N(() => [c(k(t.item.params.prefix), 1)]),
3136
3140
  key: "0"
3137
3141
  } : void 0, t.item.params.suffix ? {
3138
3142
  name: "suffix",
3139
- fn: N(() => [c(O(t.item.params.suffix), 1)]),
3143
+ fn: N(() => [c(k(t.item.params.suffix), 1)]),
3140
3144
  key: "1"
3141
3145
  } : void 0]), 1032, [
3142
3146
  "value",
@@ -3359,7 +3363,7 @@ function Ff(t, r, s, u, d, f) {
3359
3363
  "value",
3360
3364
  "disabled",
3361
3365
  "class"
3362
- ])) : t.item.input === "switch" ? (x(), n(ee, {
3366
+ ])) : t.item.input === "switch" ? (x(), n(O, {
3363
3367
  key: 12,
3364
3368
  "checked-value": 1,
3365
3369
  "unchecked-value": 0,
@@ -3371,13 +3375,13 @@ function Ff(t, r, s, u, d, f) {
3371
3375
  }
3372
3376
  }, o({ _: 2 }, [t.item.params.checked ? {
3373
3377
  name: "checked",
3374
- fn: N(() => [c(O(t.item.params.checked), 1)]),
3378
+ fn: N(() => [c(k(t.item.params.checked), 1)]),
3375
3379
  key: "0"
3376
3380
  } : void 0, t.item.params.unchecked ? {
3377
3381
  name: "unchecked",
3378
- fn: N(() => [c(O(t.item.params.unchecked), 1)]),
3382
+ fn: N(() => [c(k(t.item.params.unchecked), 1)]),
3379
3383
  key: "1"
3380
- } : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(te, {
3384
+ } : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(ee, {
3381
3385
  key: 13,
3382
3386
  value: t.formValue[t.item.key],
3383
3387
  "onUpdate:value": r[11] ||= (e) => t.formValue[t.item.key] = e,
@@ -3392,11 +3396,11 @@ function Ff(t, r, s, u, d, f) {
3392
3396
  var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
3393
3397
  name: "UzForm",
3394
3398
  components: {
3395
- NForm: he,
3396
- NFormItem: ge,
3399
+ NForm: me,
3400
+ NFormItem: he,
3397
3401
  NDivider: le,
3398
- NButton: I,
3399
- NIcon: z,
3402
+ NButton: L,
3403
+ NIcon: B,
3400
3404
  UzFormItem: If,
3401
3405
  Plus: dc
3402
3406
  },
@@ -3605,7 +3609,7 @@ var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
3605
3609
  }
3606
3610
  }), Rf = ["onClick"];
3607
3611
  function zf(t, o, s, u, d, f) {
3608
- let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = ee("media");
3612
+ let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = O("media");
3609
3613
  return x(), i(e, null, [l(C, {
3610
3614
  ref: "formRef",
3611
3615
  class: "uz-w-full uz-h-full",
@@ -3624,7 +3628,7 @@ function zf(t, o, s, u, d, f) {
3624
3628
  "show-feedback": t.showFeedback && s.input !== "divider"
3625
3629
  }, {
3626
3630
  label: N(() => [
3627
- a("div", null, O(typeof s.label == "function" ? s.label() : s.label), 1),
3631
+ a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
3628
3632
  t.status !== 2 && s.source && s.form.createButton ? (x(), i("a", {
3629
3633
  key: 0,
3630
3634
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
@@ -3636,7 +3640,7 @@ function zf(t, o, s, u, d, f) {
3636
3640
  s.form.showDays ? (x(), i("span", {
3637
3641
  key: 1,
3638
3642
  class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
3639
- }, O(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
3643
+ }, k(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
3640
3644
  ]),
3641
3645
  default: N(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
3642
3646
  key: 0,
@@ -3661,7 +3665,7 @@ function zf(t, o, s, u, d, f) {
3661
3665
  key: 2,
3662
3666
  "title-placement": s.params.placement
3663
3667
  }, {
3664
- default: N(() => [c(O(typeof s.label == "function" ? s.label() : s.label), 1)]),
3668
+ default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
3665
3669
  _: 2
3666
3670
  }, 1032, ["title-placement"])) : (x(), n(b, {
3667
3671
  key: 3,
@@ -3696,10 +3700,10 @@ function zf(t, o, s, u, d, f) {
3696
3700
  var Bf = /*#__PURE__*/ U(Lf, [["render", zf]]), Vf = d({
3697
3701
  name: "UzDraggableForm",
3698
3702
  components: {
3699
- NForm: he,
3700
- NFormItem: ge,
3701
- NButton: I,
3702
- NIcon: z,
3703
+ NForm: me,
3704
+ NFormItem: he,
3705
+ NButton: L,
3706
+ NIcon: B,
3703
3707
  NDivider: le,
3704
3708
  UzFormItem: If,
3705
3709
  Trash: xl,
@@ -3837,14 +3841,14 @@ function Wf(t, o, s, u, d, f) {
3837
3841
  path: s.key,
3838
3842
  rule: s.form.rule?.required ? s.form.rule : void 0,
3839
3843
  class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? "select" : s.input === "group" ? "group" : ""]),
3840
- onClick: ne((e) => t.onModeClick(s, u), ["stop"]),
3844
+ onClick: I((e) => t.onModeClick(s, u), ["stop"]),
3841
3845
  key: u,
3842
3846
  style: _(`grid-column: span ${s.form.span || 6} / span ${s.form.span || 6};`),
3843
3847
  "show-label": s.input !== "divider" && s.input !== "subTable",
3844
3848
  "show-feedback": t.showFeedback && s.input !== "divider"
3845
3849
  }, {
3846
3850
  label: N(() => [
3847
- a("div", null, O(typeof s.label == "function" ? s.label() : s.label), 1),
3851
+ a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
3848
3852
  s.source && s.form.createButton ? (x(), i("a", Hf, [l(m, null, {
3849
3853
  default: N(() => [l(p)]),
3850
3854
  _: 1
@@ -3856,7 +3860,7 @@ function Wf(t, o, s, u, d, f) {
3856
3860
  size: "small",
3857
3861
  type: "error",
3858
3862
  class: "uz-form-delete",
3859
- onClick: ne(t.onDelete, ["stop"])
3863
+ onClick: I(t.onDelete, ["stop"])
3860
3864
  }, {
3861
3865
  icon: N(() => [l(m, { color: "#FFF" }, {
3862
3866
  default: N(() => [l(h)]),
@@ -3890,7 +3894,7 @@ function Wf(t, o, s, u, d, f) {
3890
3894
  path: e.key,
3891
3895
  rule: e.form.rule?.required ? e.form.rule : void 0,
3892
3896
  class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === i ? "select" : ""]),
3893
- onClick: ne((n) => t.onModeClick(e, u, i), ["stop"]),
3897
+ onClick: I((n) => t.onModeClick(e, u, i), ["stop"]),
3894
3898
  key: i,
3895
3899
  style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
3896
3900
  "show-label": e.input !== "divider" && e.input !== "subTable",
@@ -3901,7 +3905,7 @@ function Wf(t, o, s, u, d, f) {
3901
3905
  size: "small",
3902
3906
  type: "error",
3903
3907
  class: "uz-form-delete",
3904
- onClick: ne(t.onDelete, ["stop"])
3908
+ onClick: I(t.onDelete, ["stop"])
3905
3909
  }, {
3906
3910
  icon: N(() => [l(m, { color: "#FFF" }, {
3907
3911
  default: N(() => [l(h)]),
@@ -3938,7 +3942,7 @@ function Wf(t, o, s, u, d, f) {
3938
3942
  key: 3,
3939
3943
  "title-placement": s.params.placement
3940
3944
  }, {
3941
- default: N(() => [c(O(typeof s.label == "function" ? s.label() : s.label), 1)]),
3945
+ default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
3942
3946
  _: 2
3943
3947
  }, 1032, ["title-placement"])) : (x(), n(b, {
3944
3948
  key: 4,
@@ -3980,13 +3984,13 @@ var Gf = /*#__PURE__*/ U(Vf, [["render", Wf]]), Kf = d({
3980
3984
  name: "UzFormItemUpload",
3981
3985
  components: {
3982
3986
  NUpload: ze,
3983
- NButton: I,
3984
- NIcon: z,
3985
- NImage: ye,
3986
- NPopover: B,
3987
- NPopconfirm: De,
3987
+ NButton: L,
3988
+ NIcon: B,
3989
+ NImage: ve,
3990
+ NPopover: De,
3991
+ NPopconfirm: Ee,
3988
3992
  NUploadDragger: Be,
3989
- NInputGroup: Se,
3993
+ NInputGroup: xe,
3990
3994
  NSpin: Ne,
3991
3995
  Trash: xl,
3992
3996
  FileText: zo,
@@ -4150,7 +4154,7 @@ function Xf(t, o, s, u, d, f) {
4150
4154
  }, 8, ["onClick"])), a("div", qf, [a("div", {
4151
4155
  class: "uz-form-upload-title uz-truncate",
4152
4156
  title: e.name
4153
- }, O(e.name), 9, Jf), t.status === 2 ? r("", !0) : (x(), i("div", Yf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4157
+ }, k(e.name), 9, Jf), t.status === 2 ? r("", !0) : (x(), i("div", Yf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4154
4158
  trigger: N(() => [l(S, {
4155
4159
  size: "small",
4156
4160
  tertiary: ""
@@ -4182,10 +4186,10 @@ function Xf(t, o, s, u, d, f) {
4182
4186
  var Zf = /*#__PURE__*/ U(Kf, [["render", Xf], ["__scopeId", "data-v-d4bd872d"]]), Qf = d({
4183
4187
  name: "UzFormItemImage",
4184
4188
  components: {
4185
- NImageGroup: be,
4186
- NImage: ye,
4187
- NIcon: z,
4188
- NPopover: B,
4189
+ NImageGroup: ye,
4190
+ NImage: ve,
4191
+ NIcon: B,
4192
+ NPopover: De,
4189
4193
  PhotoOff: sc,
4190
4194
  FileText: zo
4191
4195
  },
@@ -4255,7 +4259,7 @@ function ep(t, r, o, s, u, d) {
4255
4259
  default: N(() => [l(h)]),
4256
4260
  _: 1
4257
4261
  }, 8, ["onClick"])]),
4258
- default: N(() => [c(O(t.getFileName(r)), 1)]),
4262
+ default: N(() => [c(k(t.getFileName(r)), 1)]),
4259
4263
  _: 2
4260
4264
  }, 1024))], 64))), 256))])]),
4261
4265
  _: 1
@@ -4365,8 +4369,8 @@ function ip(e, t, n, r, a, o) {
4365
4369
  var ap = /*#__PURE__*/ U(np, [["render", ip], ["__scopeId", "data-v-c90165b1"]]), op = d({
4366
4370
  name: "UzCamera",
4367
4371
  components: {
4368
- NButton: I,
4369
- NModal: Te
4372
+ NButton: L,
4373
+ NModal: we
4370
4374
  },
4371
4375
  props: {
4372
4376
  mode: {
@@ -4467,7 +4471,7 @@ function dp(t, o, s, l, u, d) {
4467
4471
  loading: t.loading,
4468
4472
  onClick: t.doScan
4469
4473
  }, {
4470
- default: N(() => [c(O(t.$t("Common.scan")), 1)]),
4474
+ default: N(() => [c(k(t.$t("Common.scan")), 1)]),
4471
4475
  _: 1
4472
4476
  }, 8, ["loading", "onClick"])) : r("", !0),
4473
4477
  t.mode === "button" ? (x(), n(p, {
@@ -4515,14 +4519,14 @@ function dp(t, o, s, l, u, d) {
4515
4519
  var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
4516
4520
  name: "UzSearchBar",
4517
4521
  components: {
4518
- NIcon: z,
4519
- NButton: I,
4520
- NButtonGroup: re,
4521
- NGrid: _e,
4522
- NGridItem: ve,
4523
- NInputGroup: Se,
4524
- NInputGroupLabel: Ce,
4525
- NPopover: B,
4522
+ NIcon: B,
4523
+ NButton: L,
4524
+ NButtonGroup: ne,
4525
+ NGrid: ge,
4526
+ NGridItem: _e,
4527
+ NInputGroup: xe,
4528
+ NInputGroupLabel: Se,
4529
+ NPopover: De,
4526
4530
  UzFormItem: If,
4527
4531
  CaretDown: Ir,
4528
4532
  Refresh: jc,
@@ -4685,7 +4689,7 @@ var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
4685
4689
  class: "uz-flex uz-gap-2 uz-flex-1"
4686
4690
  };
4687
4691
  function _p(t, a, o, s, u, d) {
4688
- let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), te = D("Refresh"), k = ee("media");
4692
+ let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), ee = D("Refresh"), te = O("media");
4689
4693
  return x(), i("div", {
4690
4694
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
4691
4695
  onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
@@ -4708,7 +4712,7 @@ function _p(t, a, o, s, u, d) {
4708
4712
  secondary: "",
4709
4713
  onClick: (n) => t.tabItemChange(e.value)
4710
4714
  }, {
4711
- default: N(() => [c(O(e.label), 1)]),
4715
+ default: N(() => [c(k(e.label), 1)]),
4712
4716
  _: 2
4713
4717
  }, 1032, ["type", "onClick"]))), 128))]),
4714
4718
  _: 1
@@ -4730,10 +4734,10 @@ function _p(t, a, o, s, u, d) {
4730
4734
  overlap: ""
4731
4735
  }, {
4732
4736
  trigger: N(() => [l(h, { class: "uz-group-label" }, {
4733
- default: N(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4737
+ default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4734
4738
  _: 2
4735
4739
  }, 1024)]),
4736
- default: N(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4740
+ default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4737
4741
  _: 2
4738
4742
  }, 1024), l(v, {
4739
4743
  item: e,
@@ -4746,7 +4750,7 @@ function _p(t, a, o, s, u, d) {
4746
4750
  }, 1032, ["span"]))), 128))
4747
4751
  ]),
4748
4752
  _: 1
4749
- }, 8, ["cols", "collapsed"])])), [[k]])])) : r("", !0), t.enableHeader ? (x(), i("div", gp, [
4753
+ }, 8, ["cols", "collapsed"])])), [[te]])])) : r("", !0), t.enableHeader ? (x(), i("div", gp, [
4750
4754
  t.more ? (x(), n(f, {
4751
4755
  key: 0,
4752
4756
  quaternary: "",
@@ -4771,7 +4775,7 @@ function _p(t, a, o, s, u, d) {
4771
4775
  default: N(() => [l(w)]),
4772
4776
  _: 1
4773
4777
  })]),
4774
- default: N(() => [c(" " + O(t.$t("Common.search")), 1)]),
4778
+ default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4775
4779
  _: 1
4776
4780
  }, 8, ["loading"])) : r("", !0),
4777
4781
  t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
@@ -4781,10 +4785,10 @@ function _p(t, a, o, s, u, d) {
4781
4785
  onClick: t.clearAll
4782
4786
  }, {
4783
4787
  icon: N(() => [l(C, null, {
4784
- default: N(() => [l(te)]),
4788
+ default: N(() => [l(ee)]),
4785
4789
  _: 1
4786
4790
  })]),
4787
- default: N(() => [c(" " + O(t.$t("Common.reset")), 1)]),
4791
+ default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
4788
4792
  _: 1
4789
4793
  }, 8, ["loading", "onClick"])) : r("", !0),
4790
4794
  E(t.$slots, "action")
@@ -4793,14 +4797,14 @@ function _p(t, a, o, s, u, d) {
4793
4797
  var vp = /*#__PURE__*/ U(pp, [["render", _p]]), yp = d({
4794
4798
  name: "UzSearchMobileBar",
4795
4799
  components: {
4796
- NIcon: z,
4797
- NButton: I,
4800
+ NIcon: B,
4801
+ NButton: L,
4798
4802
  NDrawer: ue,
4799
- NDrawerContent: de,
4800
- NGrid: _e,
4801
- NGridItem: ve,
4802
- NInputGroup: Se,
4803
- NInputGroupLabel: Ce,
4803
+ NDrawerContent: z,
4804
+ NGrid: ge,
4805
+ NGridItem: _e,
4806
+ NInputGroup: xe,
4807
+ NInputGroupLabel: Se,
4804
4808
  Refresh: jc,
4805
4809
  Search: Zc,
4806
4810
  UzFormItem: If
@@ -4893,7 +4897,7 @@ function Cp(t, o, s, u, d, f) {
4893
4897
  default: N(() => [l(p)]),
4894
4898
  _: 1
4895
4899
  })]),
4896
- default: N(() => [c(" " + O(t.$t("Common.search")), 1)]),
4900
+ default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4897
4901
  _: 1
4898
4902
  })) : r("", !0), E(t.$slots, "action")])]), l(w, {
4899
4903
  show: t.drawer,
@@ -4919,7 +4923,7 @@ function Cp(t, o, s, u, d, f) {
4919
4923
  default: N(() => [l(S)]),
4920
4924
  _: 1
4921
4925
  })]),
4922
- default: N(() => [c(" " + O(t.$t("Common.reset")), 1)]),
4926
+ default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
4923
4927
  _: 1
4924
4928
  }, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
4925
4929
  key: 0,
@@ -4932,7 +4936,7 @@ function Cp(t, o, s, u, d, f) {
4932
4936
  default: N(() => [l(p)]),
4933
4937
  _: 1
4934
4938
  })]),
4935
- default: N(() => [c(" " + O(t.$t("Common.search")), 1)]),
4939
+ default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
4936
4940
  _: 1
4937
4941
  }, 8, ["loading"])) : r("", !0)])]),
4938
4942
  default: N(() => [l(b, {
@@ -4946,7 +4950,7 @@ function Cp(t, o, s, u, d, f) {
4946
4950
  }, {
4947
4951
  default: N(() => [l(v, null, {
4948
4952
  default: N(() => [l(g, { class: "uz-group-label" }, {
4949
- default: N(() => [c(O(typeof e.label == "function" ? e.label() : e.label), 1)]),
4953
+ default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
4950
4954
  _: 2
4951
4955
  }, 1024), l(_, {
4952
4956
  item: e,
@@ -5406,89 +5410,89 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5406
5410
  ...e.table,
5407
5411
  children: e.params.children.map((e) => e.key)
5408
5412
  })) : (m.push(e), h.push(e.key));
5409
- for await (let [e, p] of m.entries()) {
5410
- if (p.source && !p.table.render && (p.input === "select" || p.input === "cascader")) if (p.table.render = (e) => e[`${p.key}Str`], t || p.params.immediately || p.search.defaultValue) {
5411
- let { sourceData: t, n } = await Pp(p.source, a && e === 0);
5412
- if (t && Array.isArray(t)) if (p.sourceFn) {
5413
- let e = p.sourceFn, n = Function("sourceData", e);
5414
- p.params.options = n(t);
5415
- } else p.params.options = jp(p, t, n);
5416
- } else p.params.options = [{
5413
+ for await (let [e, s] of m.entries()) {
5414
+ if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
5415
+ let { sourceData: t, n } = await Pp(s.source, a && e === 0);
5416
+ if (t && Array.isArray(t)) if (s.sourceFn) {
5417
+ let e = s.sourceFn, n = Function("sourceData", e);
5418
+ s.params.options = n(t);
5419
+ } else s.params.options = jp(s, t, n);
5420
+ } else s.params.options = [{
5417
5421
  label: "加载中......",
5418
5422
  value: "loading",
5419
5423
  disabled: !0
5420
- }], p.params._async = !0, p.params._fetch = !1, p.params._asyncFn = async () => {
5421
- let { sourceData: e, n: t } = await Pp(p.source);
5422
- if (e && Array.isArray(e)) if (p.sourceFn) {
5423
- let t = p.sourceFn;
5424
+ }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5425
+ let { sourceData: e, n: t } = await Pp(s.source);
5426
+ if (e && Array.isArray(e)) if (s.sourceFn) {
5427
+ let t = s.sourceFn;
5424
5428
  return Function("sourceData", t)(e);
5425
- } else return jp(p, e, t);
5429
+ } else return jp(s, e, t);
5426
5430
  };
5427
- !p.table.render && !p.source && p.input === "select" && typeof p.params.options != "function" && p.params.options.length > 0 && (p.table.render = (e) => {
5428
- let t = p.params.options.find((t) => t.value === e[p.key]);
5431
+ !s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
5432
+ let t = s.params.options.find((t) => t.value === e[s.key]);
5429
5433
  if (t) return t.label;
5430
- }), p.input === "upload" && !p.table.render && (p.table.render = function(e) {
5431
- return f(tp, { value: e[p.key] }, { default: () => null });
5432
- }), s += Number(p.table.width || 140);
5433
- let m = {
5434
- input: p.input,
5435
- title: p.label,
5436
- key: p.key,
5437
- params: p.params,
5438
- form: p.form,
5434
+ }), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
5435
+ return f(tp, { value: e[s.key] }, { default: () => null });
5436
+ });
5437
+ let p = {
5438
+ input: s.input,
5439
+ title: s.label,
5440
+ key: s.key,
5441
+ params: s.params,
5442
+ form: s.form,
5439
5443
  ellipsisComponent: "performant-ellipsis",
5440
- ...p.table,
5441
- width: Number(p.table.width || 140),
5442
- ellipsis: p.table.ellipsis ? {
5444
+ ...s.table,
5445
+ width: Number(s.table.width || 140),
5446
+ ellipsis: s.table.ellipsis ? {
5443
5447
  tooltip: !0,
5444
- "line-clamp": p.table.clamp ?? 0
5448
+ "line-clamp": s.table.clamp ?? 0
5445
5449
  } : !1,
5446
- render: p.table.render ? await Ap(p.key, p.table.render, i) : void 0,
5447
- show: K.isMobile ? p.table.mobile ?? !1 : p.table.show ?? !0,
5448
- pin: !!p.table.fixed,
5449
- fixTemp: p.table.fixed
5450
+ render: s.table.render ? await Ap(s.key, s.table.render, i) : void 0,
5451
+ show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
5452
+ pin: !!s.table.fixed,
5453
+ fixTemp: s.table.fixed
5450
5454
  };
5451
- if (m.resizable && (m.minWidth = 80), t) if (!m.form.edit.show) m = null;
5455
+ if (p.resizable && (p.minWidth = 80), t) if (!p.form.edit.show) p = null;
5452
5456
  else {
5453
- if (m.ellipsis = !1, m.resizable = !0, K.isMobile && (m.show = p.table.mobile), p.table.show && (n === 0 && (m.show = p.form.create.show), n === 1 && (m.show = p.form.edit.show), n === 2 && (m.show = p.form.show)), o && (p.form.rule.validator = () => !0), o === !1 && p.form.rule?.required && typeof p.form.rule.validator == "string") {
5454
- delete p.form.rule.message;
5455
- let e = p.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
5456
- p.form.rule.validator === "" ? p.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(p.form.rule.message) : p.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
5457
+ if (p.ellipsis = !1, p.resizable = !0, K.isMobile && (p.show = s.table.mobile), s.table.show && (n === 0 && (p.show = s.form.create.show), n === 1 && (p.show = s.form.edit.show), n === 2 && (p.show = s.form.show)), o && (s.form.rule.validator = () => !0), o === !1 && s.form.rule?.required && typeof s.form.rule.validator == "string") {
5458
+ delete s.form.rule.message;
5459
+ let e = s.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
5460
+ s.form.rule.validator === "" ? s.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(s.form.rule.message) : s.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
5457
5461
  }
5458
- m.render = function(e, t) {
5459
- return f(ge, {
5462
+ p.render = function(e, t) {
5463
+ return f(he, {
5460
5464
  showLabel: !1,
5461
5465
  showFeedback: !1,
5462
- path: `child[${t}].${p.key}`,
5463
- rule: p.form.rule?.required ? {
5464
- ...p.form.rule,
5466
+ path: `child[${t}].${s.key}`,
5467
+ rule: s.form.rule?.required ? {
5468
+ ...s.form.rule,
5465
5469
  index: t
5466
5470
  } : void 0
5467
5471
  }, { default: () => f(If, {
5468
- item: p,
5472
+ item: s,
5469
5473
  formValue: e,
5470
5474
  status: n,
5471
5475
  itemIndex: t
5472
5476
  }) });
5473
5477
  };
5474
5478
  }
5475
- if (m && p.input !== "divider" && p.input !== "subTable" && (o && (m.show = p.form.expand.show), d.push(m)), p.input !== "divider" && p.input !== "switch" && p.input !== "subTable" && p.input !== "upload" && p.search.show) {
5476
- if (p.search.title && (p.label = p.search.title), p.search.source) if (p.input = "select", p.params.type = p.search.type, p.params.valueKey = p.search.valueKey, p.params.valueKey = p.search.valueKey, p.search.source === "from-up") p.params.options = p.params.options;
5477
- else if (p.params.immediately || p.search.defaultValue) {
5478
- let { sourceData: e, n: t } = await Pp(p.search.source);
5479
- if (e && Array.isArray(e)) if (p.sourceFn) {
5480
- let t = p.sourceFn, n = Function("sourceData", t);
5481
- p.params.options = n(e);
5482
- } else p.params.options = jp(p, e, t);
5483
- } else p.params._async = !0, p.params._fetch = !1, p.params._asyncFn = async () => {
5484
- let { sourceData: e, n: t } = await Pp(p.search.source);
5485
- if (e && Array.isArray(e)) if (p.sourceFn) {
5486
- let t = p.sourceFn;
5479
+ if (p && s.input !== "divider" && s.input !== "subTable" && (o && (p.show = s.form.expand.show), d.push(p)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
5480
+ if (s.search.title && (s.label = s.search.title), s.search.source) if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
5481
+ else if (s.params.immediately || s.search.defaultValue) {
5482
+ let { sourceData: e, n: t } = await Pp(s.search.source);
5483
+ if (e && Array.isArray(e)) if (s.sourceFn) {
5484
+ let t = s.sourceFn, n = Function("sourceData", t);
5485
+ s.params.options = n(e);
5486
+ } else s.params.options = jp(s, e, t);
5487
+ } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5488
+ let { sourceData: e, n: t } = await Pp(s.search.source);
5489
+ if (e && Array.isArray(e)) if (s.sourceFn) {
5490
+ let t = s.sourceFn;
5487
5491
  return Function("sourceData", t)(e);
5488
- } else return jp(p, e, t);
5492
+ } else return jp(s, e, t);
5489
5493
  };
5490
- if (p.search.multiple && (p.params.multiple = !0, p.search.defaultValue && (p.search.defaultValue = Op(p.search.defaultValue))), p.search.show) {
5491
- let e = H(p);
5494
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Op(s.search.defaultValue))), s.search.show) {
5495
+ let e = H(s);
5492
5496
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
5493
5497
  let { sourceData: t, n } = await Pp(e.source || e.search.source);
5494
5498
  if (t && Array.isArray(t)) if (e.sourceFn) {
@@ -5511,10 +5515,10 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5511
5515
  });
5512
5516
  }
5513
5517
  }
5514
- p.input === "subTable" && p.params.link && !p.params.quest && (l.push(p.params.link), p.params.expandable && (u = {
5515
- key: p.key,
5516
- link: p.params.link,
5517
- merge: p.params.merge
5518
+ s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
5519
+ key: s.key,
5520
+ link: s.params.link,
5521
+ merge: s.params.merge
5518
5522
  }));
5519
5523
  }
5520
5524
  let g = [];
@@ -5535,7 +5539,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5535
5539
  }
5536
5540
  d = g;
5537
5541
  }
5538
- return {
5542
+ return d.forEach((e) => {
5543
+ e.show && (s += e.width);
5544
+ }), {
5539
5545
  tableColumns: d,
5540
5546
  search: c,
5541
5547
  subTableIds: l,
@@ -5548,9 +5554,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5548
5554
  var Wp = d({
5549
5555
  name: "UzSpin",
5550
5556
  components: {
5551
- NButton: I,
5557
+ NButton: L,
5552
5558
  NSpin: Ne,
5553
- NEllipsis: pe
5559
+ NEllipsis: fe
5554
5560
  },
5555
5561
  emits: ["update:value"],
5556
5562
  props: {
@@ -5600,7 +5606,7 @@ function Gp(e, t, r, i, o, s) {
5600
5606
  "line-clamp": "3",
5601
5607
  tooltip: !1
5602
5608
  }, {
5603
- default: N(() => [c(O(e.status === 0 ? "操作进行中..." : e.message), 1)]),
5609
+ default: N(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
5604
5610
  _: 1
5605
5611
  }),
5606
5612
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
@@ -5611,7 +5617,7 @@ function Gp(e, t, r, i, o, s) {
5611
5617
  onMouseover: e.stopCountdown,
5612
5618
  onClick: e.handleClose
5613
5619
  }, {
5614
- default: N(() => [c(" 关闭(" + O(e.counts) + "s) ", 1)]),
5620
+ default: N(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
5615
5621
  _: 1
5616
5622
  }, 8, ["onMouseover", "onClick"]), [[A, e.status === 1]])
5617
5623
  ]),
@@ -5622,8 +5628,8 @@ function Gp(e, t, r, i, o, s) {
5622
5628
  var Kp = /*#__PURE__*/ U(Wp, [["render", Gp]]), qp = d({
5623
5629
  name: "UzTableExpand",
5624
5630
  components: {
5625
- NDataTable: ce,
5626
- NForm: he
5631
+ NDataTable: se,
5632
+ NForm: me
5627
5633
  },
5628
5634
  props: {
5629
5635
  data: {
@@ -5692,10 +5698,10 @@ function Jp(e, t, r, i, a, o) {
5692
5698
  var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5693
5699
  name: "UzTable",
5694
5700
  components: {
5695
- NDataTable: ce,
5696
- NPopover: B,
5697
- NButton: I,
5698
- NIcon: z,
5701
+ NDataTable: se,
5702
+ NPopover: De,
5703
+ NButton: L,
5704
+ NIcon: B,
5699
5705
  NSkeleton: je,
5700
5706
  NCheckbox: ie,
5701
5707
  NSpin: Ne,
@@ -5831,43 +5837,45 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5831
5837
  value: () => null,
5832
5838
  setValue: () => null
5833
5839
  });
5834
- let a = Je(), { t: o } = Ze(), s = Ue(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w({
5840
+ let a = Je(), { t: o } = Ze(), s = Ue(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w([]), O = w({
5835
5841
  params: [],
5836
5842
  query: {
5837
5843
  page: 1,
5838
5844
  pageMax: 1,
5839
5845
  pageSize: e.pageSize || 30
5840
5846
  }
5841
- }), ee = w([]), te = w(void 0), O = w(void 0), k = w([]), A = w([]), M = w([]), N = w([]), P = w({
5847
+ }), ee = w([]), k = w(void 0), te = w(void 0), A = w([]), M = w([]), N = w([]), P = w([]), F = w({
5842
5848
  fetch: null,
5843
5849
  when_drawer_open: "",
5844
5850
  when_before_save: ""
5845
- }), F = w(Vp()), ne = w(""), I = w(!1), re = w([]), L = w([]), ie = p("modules"), ae = (e) => e.id, oe = (e, t) => {
5851
+ }), I = w(Vp()), ne = w(""), re = w(!1), ie = w([]), R = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
5846
5852
  n("update:rowKeys", {
5847
5853
  keys: e,
5848
5854
  rows: H(t)
5849
5855
  });
5850
- }, se = (e, t, r) => {
5851
- if (re.value = e, r.action === "check" && L.value.push(r.row), r.action === "uncheck") {
5852
- let e = L.value.findIndex((e) => e.id === r.row?.id);
5853
- L.value.splice(e, 1);
5856
+ }, ce = (e, t, r) => {
5857
+ if (ie.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
5858
+ let e = R.value.findIndex((e) => e.id === r.row?.id);
5859
+ R.value.splice(e, 1);
5854
5860
  }
5855
5861
  r.action === "checkAll" && t.forEach((e) => {
5856
- e && L.value.push(e);
5857
- }), r.action === "uncheckAll" && (L.value = [], re.value = []), n("update:rowKeys", {
5858
- keys: H(re.value),
5859
- rows: H(L.value)
5862
+ e && R.value.push(e);
5863
+ }), r.action === "uncheckAll" && (R.value = [], ie.value = []), n("update:rowKeys", {
5864
+ keys: H(ie.value),
5865
+ rows: H(R.value)
5860
5866
  });
5861
- }, ce = (t) => {
5862
- let n = e.summary || F.value.summary;
5867
+ }, le = (e) => {
5868
+ D.value = e;
5869
+ }, ue = (t) => {
5870
+ let n = e.summary || I.value.summary;
5863
5871
  return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
5864
- }, R = (t = !1) => {
5872
+ }, z = (t = !1) => {
5865
5873
  let r = e.id || a.params.id;
5866
5874
  e.enableLoading && (g.value = !0, n("update:loading", !0));
5867
- let i = H(D.value);
5868
- if (t && delete i.orderby, P.value.fetch) Rd([P.value.fetch], "", i).then((e) => {
5875
+ let i = H(O.value);
5876
+ if (t && delete i.orderby, F.value.fetch) Rd([F.value.fetch], "", i).then((e) => {
5869
5877
  let t = ud(e);
5870
- D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
5878
+ O.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, O.value);
5871
5879
  }).catch(() => {
5872
5880
  g.value = !1, _.value = !0, n("update:loading", !1);
5873
5881
  });
@@ -5881,39 +5889,39 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5881
5889
  tableId: r
5882
5890
  }), t.then((e) => {
5883
5891
  let t = ud(e);
5884
- D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), F.value.cache && r && J(`tables_${r}`, D.value);
5892
+ O.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, O.value);
5885
5893
  }).catch(() => {
5886
5894
  g.value = !1, _.value = !0, n("update:loading", !1);
5887
5895
  });
5888
5896
  }
5889
- }, le = (e) => {
5890
- D.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), R();
5891
- }, ue = () => {
5892
- let e = D.value.query.page + 1;
5893
- e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), R();
5894
5897
  }, de = (e) => {
5895
- D.value.query.pageSize = e, D.value.query.page = 1, ld(), R();
5896
- }, fe = (e) => {
5897
- e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, R();
5898
- }, pe = () => {
5898
+ O.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), z();
5899
+ }, fe = () => {
5900
+ let e = O.value.query.page + 1;
5901
+ e > O.value.query.pageMax && (e = 1), O.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
5902
+ }, pe = (e) => {
5903
+ O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
5904
+ }, me = (e) => {
5905
+ e && e.order ? O.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete O.value.orderby, z();
5906
+ }, he = () => {
5899
5907
  if (typeof e.addFetch == "function") return e.addFetch();
5900
5908
  d.value?.addAndEdit(e.id || a.params.id, async () => {
5901
- let { form: e } = await z();
5909
+ let { form: e } = await be();
5902
5910
  return {
5903
5911
  form: e,
5904
5912
  data: {}
5905
5913
  };
5906
- }, F.value, P.value, 0, Oe);
5907
- }, me = (e) => {
5908
- e.show = !e.show, B();
5909
- }, he = (e) => {
5914
+ }, I.value, F.value, 0, je);
5915
+ }, ge = (e) => {
5916
+ e.show = !e.show, Ae();
5917
+ }, _e = (e) => {
5910
5918
  let t = [];
5911
5919
  e.forEach((e) => {
5912
5920
  e.show && t.push(e);
5913
5921
  }), x.value = t;
5914
- }, ge = (e) => {
5915
- D.value.params = e, R();
5916
- }, _e = () => [{
5922
+ }, B = (e) => {
5923
+ O.value.params = e, z();
5924
+ }, ve = () => [{
5917
5925
  title: "创建人/时间",
5918
5926
  key: "createTime",
5919
5927
  resizable: !0,
@@ -5931,14 +5939,14 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5931
5939
  ellipsis: !0,
5932
5940
  width: 180,
5933
5941
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => dd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
5934
- }], ve = (t) => !e.ruleFetch || !k.value || k.value && k.value[0] === "*" ? !1 : !k.value?.includes(t), z = async (e) => {
5935
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(A.value, e, () => d.value?.getFormValues());
5942
+ }], ye = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), be = async (e) => {
5943
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () => d.value?.getFormValues());
5936
5944
  return b.value = t, {
5937
5945
  form: t,
5938
5946
  fillingDefaultValue: n,
5939
5947
  formDefaultValue: r
5940
5948
  };
5941
- }, ye = async (t) => new Promise((n, r) => {
5949
+ }, xe = async (t) => new Promise((n, r) => {
5942
5950
  let i = e.id || a.params.id, o;
5943
5951
  o = e.fetch ? e.fetch({
5944
5952
  id: t.id,
@@ -5951,8 +5959,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5951
5959
  }).catch(() => {
5952
5960
  r();
5953
5961
  });
5954
- }), be = async (e, t) => {
5955
- let n = await ye(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await z(n || {}), a = {
5962
+ }), Se = async (e, t) => {
5963
+ let n = await xe(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await be(n || {}), a = {
5956
5964
  ...n,
5957
5965
  ...i
5958
5966
  };
@@ -5961,7 +5969,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5961
5969
  } catch (e) {
5962
5970
  q(e);
5963
5971
  }
5964
- let o = P.value.when_drawer_open;
5972
+ let o = F.value.when_drawer_open;
5965
5973
  if (o && typeof o == "string") try {
5966
5974
  a = await Function("data", "POST", o)(a, Z).catch((e) => {
5967
5975
  q(e);
@@ -5973,19 +5981,19 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
5973
5981
  form: r,
5974
5982
  data: a
5975
5983
  };
5976
- }, xe = (t, r) => {
5984
+ }, Ce = (t, r) => {
5977
5985
  let i = H(t.onClick), c = e.id || a.params.id;
5978
5986
  if (t.disabled) {
5979
5987
  if (typeof t.disabled == "string") {
5980
5988
  let e = Function("rowData", "rowIndex", t.disabled);
5981
- t.disabled = (n, r) => e(n, r) || ve(t.key);
5989
+ t.disabled = (n, r) => e(n, r) || ye(t.key);
5982
5990
  } else if (typeof t.disabled == "function") {
5983
5991
  let e = H(t);
5984
- t.disabled = (n, r) => e.disabled(n, r) || ve(t.key);
5992
+ t.disabled = (n, r) => e.disabled(n, r) || ye(t.key);
5985
5993
  }
5986
- } else t.disabled = () => ve(t.key);
5994
+ } else t.disabled = () => ye(t.key);
5987
5995
  if (t.loading = g.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
5988
- ye(e).then((r) => {
5996
+ xe(e).then((r) => {
5989
5997
  if (t.optionsType === "drawer:insider") {
5990
5998
  if (i) try {
5991
5999
  Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
@@ -6012,12 +6020,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6012
6020
  else if (t.type !== "group" && t.action === "detailInside") {
6013
6021
  let n = H(t.onClick);
6014
6022
  t.onClick = (t) => {
6015
- d.value?.addAndEdit(e.id || a.params.id, () => be(t, n), F.value, P.value, 2, Oe);
6023
+ d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 2, je);
6016
6024
  };
6017
6025
  } else if (t.type !== "group" && t.action === "editInside") {
6018
6026
  let n = H(t.onClick);
6019
6027
  t.onClick = (t) => {
6020
- d.value?.addAndEdit(e.id || a.params.id, () => be(t, n), F.value, P.value, 1, Oe);
6028
+ d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 1, je);
6021
6029
  };
6022
6030
  } else if (t.type !== "group" && t.action === "deleteInside") {
6023
6031
  let n = H(t.onClick);
@@ -6034,12 +6042,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6034
6042
  }), i.then(() => {
6035
6043
  if (n) try {
6036
6044
  Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
6037
- R();
6045
+ z();
6038
6046
  }).catch(() => null);
6039
6047
  } catch (e) {
6040
6048
  q(e);
6041
6049
  }
6042
- else R();
6050
+ else z();
6043
6051
  }).catch((e) => {
6044
6052
  q(e);
6045
6053
  });
@@ -6050,7 +6058,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6050
6058
  ...t,
6051
6059
  is_disabled: "1"
6052
6060
  }).then(() => {
6053
- R();
6061
+ z();
6054
6062
  }).catch(() => null);
6055
6063
  };
6056
6064
  else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
@@ -6059,7 +6067,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6059
6067
  ...t,
6060
6068
  is_disabled: "0"
6061
6069
  }).then(() => {
6062
- R();
6070
+ z();
6063
6071
  }).catch(() => null);
6064
6072
  };
6065
6073
  else if (t.type !== "group" && t.action) {
@@ -6081,7 +6089,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6081
6089
  s.success({
6082
6090
  content: e,
6083
6091
  duration: 3e3
6084
- }), R();
6092
+ }), z();
6085
6093
  }).catch((e) => {
6086
6094
  q(e);
6087
6095
  });
@@ -6095,27 +6103,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6095
6103
  s.success({
6096
6104
  content: () => o("Notice.success"),
6097
6105
  duration: 3e3
6098
- }), R();
6106
+ }), z();
6099
6107
  });
6100
6108
  return;
6101
6109
  }
6102
6110
  s.success({
6103
6111
  content: () => o("Notice.success"),
6104
6112
  duration: 3e3
6105
- }), R();
6113
+ }), z();
6106
6114
  }).catch(() => {
6107
6115
  s.error({
6108
6116
  content: () => o("Notice.failed"),
6109
6117
  duration: 3e3
6110
- }), R();
6118
+ }), z();
6111
6119
  });
6112
6120
  }).catch(() => null);
6113
6121
  };
6114
6122
  }
6115
- }, Se = async () => {
6116
- I.value = !1, Np();
6117
- let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(A.value, e.child, 0, () => ({}), ie);
6118
- !c.value && F.value.index && t.unshift({
6123
+ }, we = async () => {
6124
+ re.value = !1, Np();
6125
+ let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}), ae);
6126
+ !c.value && I.value.index && t.unshift({
6119
6127
  title: "#",
6120
6128
  key: "index",
6121
6129
  align: "center",
@@ -6126,25 +6134,25 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6126
6134
  show: !0,
6127
6135
  render(e, t) {
6128
6136
  return f("span", {}, { default: () => {
6129
- let e = D.value.query.page || 1, n = D.value.query.pageSize || 30;
6137
+ let e = O.value.query.page || 1, n = O.value.query.pageSize || 30;
6130
6138
  return (e - 1) * n + (t + 1);
6131
6139
  } });
6132
6140
  }
6133
- }), !c.value && (e.selection || F.value.selection !== 0) && t.unshift({
6141
+ }), !c.value && (e.selection || I.value.selection !== 0) && t.unshift({
6134
6142
  type: "selection",
6135
6143
  fixed: "left",
6136
6144
  width: 60,
6137
6145
  hide: !0,
6138
6146
  show: !0,
6139
- multiple: e.selection === 2 || F.value.selection === 2,
6147
+ multiple: e.selection === 2 || I.value.selection === 2,
6140
6148
  options: ["all", "none"]
6141
6149
  });
6142
6150
  let s = e.id || a.params.id;
6143
- if (!c.value && F.value.commonTime && t.push(..._e()), e.enableAction === !0 && M.value && M.value.length > 0) {
6144
- let e = H(M.value);
6151
+ if (!c.value && I.value.commonTime && t.push(...ve()), e.enableAction === !0 && N.value && N.value.length > 0) {
6152
+ let e = H(N.value);
6145
6153
  for (let t of e) t.type === "group" ? t.children.forEach((e) => {
6146
- xe(e, r);
6147
- }) : xe(t, r);
6154
+ Ce(e, r);
6155
+ }) : Ce(t, r);
6148
6156
  let n = {
6149
6157
  title: () => o("Common.action"),
6150
6158
  key: "action",
@@ -6154,12 +6162,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6154
6162
  checked: !0,
6155
6163
  show: !0,
6156
6164
  hide: !0,
6157
- width: Number(typeof F.value.actionWidth == "string" ? F.value.actionWidth.replace("px", "") : F.value.actionWidth),
6165
+ width: Number(typeof I.value.actionWidth == "string" ? I.value.actionWidth.replace("px", "") : I.value.actionWidth),
6158
6166
  render(t) {
6159
6167
  return Wd({
6160
6168
  buttons: e,
6161
6169
  rowData: t,
6162
- callback: R,
6170
+ callback: z,
6163
6171
  tableId: s
6164
6172
  });
6165
6173
  }
@@ -6180,6 +6188,9 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6180
6188
  hide: !0,
6181
6189
  width: 40,
6182
6190
  fixed: "left",
6191
+ filter: "default",
6192
+ filterOptionValue: null,
6193
+ renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => o("Common.expand") }), f(L, { onClick: ze }, { default: () => o("Common.contract") })]),
6183
6194
  renderExpand: (e) => f(Yp, {
6184
6195
  data: i,
6185
6196
  value: e
@@ -6189,13 +6200,13 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6189
6200
  l.forEach((e) => {
6190
6201
  e.show && (u += Number(e.width || 140));
6191
6202
  }), C.value = l, ee.value = n, E.value = u;
6192
- }, Ce = (e) => typeof e == "number" ? `${e}px` : e, we = () => {
6203
+ }, Te = (e) => typeof e == "number" ? `${e}px` : e, Ee = () => {
6193
6204
  if (e.height) {
6194
- let t = Ce(e.height);
6195
- te.value = t, O.value = t;
6205
+ let t = Te(e.height);
6206
+ k.value = t, te.value = t;
6196
6207
  return;
6197
6208
  }
6198
- }, Te = (t) => {
6209
+ }, De = (t) => {
6199
6210
  let n = e.id || a.params.id;
6200
6211
  if (n) {
6201
6212
  let e = 0;
@@ -6206,7 +6217,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6206
6217
  data: JSON.stringify(t)
6207
6218
  }).catch(() => null);
6208
6219
  }
6209
- }, { run: Ee } = Tp(Te), { run: De } = Tp((e, t) => {
6220
+ }, { run: Oe } = Tp(De), { run: ke } = Tp((e, t) => {
6210
6221
  let n = [];
6211
6222
  C.value.forEach((r) => {
6212
6223
  r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
@@ -6216,8 +6227,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6216
6227
  fixed: r.fixed,
6217
6228
  width: r.key === t ? Number(e.toFixed(0)) : r.width
6218
6229
  });
6219
- }), Te(n);
6220
- }), B = () => {
6230
+ }), De(n);
6231
+ }), Ae = () => {
6221
6232
  let e = [];
6222
6233
  C.value.forEach((t) => {
6223
6234
  t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
@@ -6227,8 +6238,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6227
6238
  fixed: t.fixed,
6228
6239
  width: t.width
6229
6240
  });
6230
- }), Ee(e);
6231
- }, Oe = (t, n, r) => {
6241
+ }), Oe(e);
6242
+ }, je = (t, n, r) => {
6232
6243
  let i, o = e.id || a.params.id;
6233
6244
  i = e.formFetch ? e.formFetch({
6234
6245
  tableId: o,
@@ -6237,27 +6248,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6237
6248
  tableId: o,
6238
6249
  ...t
6239
6250
  }), i.then(() => {
6240
- R(), n();
6251
+ z(), n();
6241
6252
  }).catch((e) => {
6242
6253
  r(e);
6243
6254
  });
6244
- }, ke = () => {
6245
- v.value = "", A.value = [], M.value = [], N.value = [], P.value = {
6255
+ }, Me = () => {
6256
+ v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
6246
6257
  fetch: null,
6247
6258
  when_drawer_open: "",
6248
6259
  when_before_save: ""
6249
- }, F.value = Vp();
6250
- }, Ae = (t) => {
6260
+ }, I.value = Vp();
6261
+ }, Ne = (t) => {
6251
6262
  let n = rt.parse(t.viewJson);
6252
- v.value = t.tableTitle, A.value = Lp(n.table), M.value = Qd(e.actions || n.action);
6263
+ v.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
6253
6264
  let r = Qd(n.suffix || []);
6254
- N.value = r.filter((e) => e.main).map((e) => (Me(e), e)), P.value = zp(n.trigger);
6265
+ P.value = r.filter((e) => e.main).map((e) => (Fe(e), e)), F.value = zp(n.trigger);
6255
6266
  let i = Vp(e.options ?? n.option);
6256
- t.tableTitle && i.title && fd(t.tableTitle), F.value = i;
6257
- }, je = async () => {
6258
- _.value = !1, ke();
6267
+ t.tableTitle && i.title && fd(t.tableTitle), I.value = i;
6268
+ }, Pe = async () => {
6269
+ _.value = !1, Me();
6259
6270
  let t = e.id || a.params.id;
6260
- if (D.value = {
6271
+ if (O.value = {
6261
6272
  params: [],
6262
6273
  query: {
6263
6274
  page: 1,
@@ -6265,17 +6276,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6265
6276
  pageSize: e.pageSize || 30
6266
6277
  }
6267
6278
  }, T.value = [], e.ruleFetch) try {
6268
- k.value = await e.ruleFetch(t);
6279
+ A.value = await e.ruleFetch(t);
6269
6280
  } catch {
6270
- ne.value = o("Notice.network"), I.value = !0;
6281
+ ne.value = o("Notice.network"), re.value = !0;
6271
6282
  return;
6272
6283
  }
6273
- we(), e.columns ? (A.value = e.columns || [], M.value = e.actions || [], N.value = e.suffixes || [], F.value = Vp(e.options), await Se()) : await Fp(t).then(async (e) => {
6274
- Ae(e), await Se();
6284
+ Ee(), e.columns ? (M.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value = Vp(e.options), await we()) : await Fp(t).then(async (e) => {
6285
+ Ne(e), await we();
6275
6286
  }).catch((e) => {
6276
- ne.value = e?.message || o("Notice.network"), I.value = !0;
6287
+ ne.value = e?.message || o("Notice.network"), re.value = !0;
6277
6288
  });
6278
- }, Me = (e) => {
6289
+ }, Fe = (e) => {
6279
6290
  if (e.type !== "group" && e.optionsType) {
6280
6291
  let t = H(e.onClick);
6281
6292
  e.onClick = () => {
@@ -6297,7 +6308,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6297
6308
  if (t && typeof t == "string") {
6298
6309
  try {
6299
6310
  let e = Function("POST", "fnNotification", t);
6300
- await e(Z, s, e), R();
6311
+ await e(Z, s, e), z();
6301
6312
  } catch (e) {
6302
6313
  q(e);
6303
6314
  }
@@ -6305,36 +6316,52 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6305
6316
  }
6306
6317
  };
6307
6318
  }
6319
+ }, Ie = () => {
6320
+ if (g.value) return;
6321
+ g.value = !0;
6322
+ let t = e.id || a.params.id;
6323
+ t && (od(`tables_filter_${t}`), Ld({
6324
+ table_id: t,
6325
+ data: null
6326
+ }).catch(() => null).finally(() => {
6327
+ we(), g.value = !1;
6328
+ }));
6329
+ }, Le = (e, t, n) => {
6330
+ ke(e, n.key);
6331
+ }, Re = () => {
6332
+ D.value = T.value.map((e) => e.id);
6333
+ }, ze = () => {
6334
+ D.value = [];
6308
6335
  };
6309
6336
  return r({
6310
- rebuild: je,
6311
- init: R,
6312
- nextPage: ue
6337
+ rebuild: Pe,
6338
+ init: z,
6339
+ nextPage: fe
6313
6340
  }), y(async () => {
6314
- await je(), h(() => {
6341
+ await Pe(), h(() => {
6315
6342
  u.value?.scrollTo({
6316
6343
  left: 0,
6317
6344
  right: 0
6318
6345
  });
6319
6346
  });
6320
6347
  }), j(() => C.value, (e) => {
6321
- he(e);
6348
+ _e(e);
6322
6349
  }, { deep: !0 }), j(() => e.height, () => {
6323
- we();
6350
+ Ee();
6324
6351
  }), j([() => a.params.id, () => e.id], async () => {
6325
- ld(), await je();
6352
+ ld(), await Pe();
6326
6353
  }), j(() => e.defaultCheckedRowKeys, (e) => {
6327
- let t = e || [], n = L.value.filter((e) => t.includes(e.id));
6328
- re.value = t, L.value = n;
6354
+ let t = e || [], n = R.value.filter((e) => t.includes(e.id));
6355
+ ie.value = t, R.value = n;
6329
6356
  }, { deep: !0 }), {
6330
6357
  loading: g,
6331
- minH: te,
6332
- maxH: O,
6358
+ minH: k,
6359
+ maxH: te,
6333
6360
  drawerRef: d,
6334
- tableOption: F,
6361
+ tableOption: I,
6335
6362
  tableCols: x,
6336
6363
  tableData: T,
6337
- tableQueries: D,
6364
+ tableQueries: O,
6338
6365
  searchData: ee,
6339
6366
  filterColumns: C,
6340
6367
  isSlotHeader: m,
@@ -6342,40 +6369,32 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6342
6369
  dynamicLoading: _,
6343
6370
  spinMsg: ne,
6344
6371
  tableScrollX: E,
6345
- suffixes: N,
6346
- spinError: I,
6372
+ suffixes: P,
6373
+ spinError: re,
6347
6374
  isMobile: c,
6348
6375
  mRef: l,
6349
- checkRowKeys: re,
6376
+ checkRowKeys: ie,
6350
6377
  route: a,
6351
- rowKey: ae,
6352
- pageChange: le,
6353
- pageSizeChange: de,
6354
- pageSorter: fe,
6355
- showChange: me,
6356
- submit: ge,
6357
- handleAdd: pe,
6358
- handleColumnChange: B,
6359
- handleCheckRowKeys: se,
6360
- checkRole: ve,
6361
- rebuild: je,
6362
- summaryFn: ce,
6363
- handleMobileCheckRowKeys: oe,
6364
- isTypeofNumber: Ce,
6365
- resetFilter: () => {
6366
- if (g.value) return;
6367
- g.value = !0;
6368
- let t = e.id || a.params.id;
6369
- t && (od(`tables_filter_${t}`), Ld({
6370
- table_id: t,
6371
- data: null
6372
- }).catch(() => null).finally(() => {
6373
- Se(), g.value = !1;
6374
- }));
6375
- },
6376
- handleColumnResize: (e, t, n) => {
6377
- De(e, n.key);
6378
- }
6378
+ rowKey: oe,
6379
+ pageChange: de,
6380
+ pageSizeChange: pe,
6381
+ pageSorter: me,
6382
+ showChange: ge,
6383
+ submit: B,
6384
+ handleAdd: he,
6385
+ handleColumnChange: Ae,
6386
+ handleCheckRowKeys: ce,
6387
+ handleExpandedRowKeys: le,
6388
+ checkRole: ye,
6389
+ rebuild: Pe,
6390
+ summaryFn: ue,
6391
+ handleMobileCheckRowKeys: se,
6392
+ isTypeofNumber: Te,
6393
+ resetFilter: Ie,
6394
+ handleColumnResize: Le,
6395
+ expandedRowKeys: D,
6396
+ handleExpandAll: Re,
6397
+ handleContractAll: ze
6379
6398
  };
6380
6399
  }
6381
6400
  }), Zp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Qp = { class: "uz-flex uz-justify-between" }, $p = { class: "uz-flex uz-gap-1" }, em = { class: "uz-com-title" }, tm = {
@@ -6386,7 +6405,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
6386
6405
  class: "uz-transform-fade-in"
6387
6406
  }, rm = { class: "uz-com-title" }, im = ["data-index"];
6388
6407
  function am(t, s, u, d, f, p) {
6389
- let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), te = D("GridDots"), k = D("VueDraggable"), j = D("NPopover"), M = D("UzSearchBar"), F = D("NDataTable"), ne = D("NSpin"), I = D("UzTableDrawer");
6408
+ let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), ee = D("GridDots"), te = D("VueDraggable"), j = D("NPopover"), M = D("UzSearchBar"), F = D("NDataTable"), I = D("NSpin"), L = D("UzTableDrawer");
6390
6409
  return x(), i("div", {
6391
6410
  class: "uz-table",
6392
6411
  style: _({ width: t.isTypeofNumber(t.width) })
@@ -6424,12 +6443,12 @@ function am(t, s, u, d, f, p) {
6424
6443
  width: "100%",
6425
6444
  size: "medium"
6426
6445
  })], 512), [[A, !t.dynamicLoading]]),
6427
- P(l(ne, {
6446
+ P(l(I, {
6428
6447
  show: t.spinError,
6429
6448
  class: "uz-table-n-spin"
6430
6449
  }, {
6431
6450
  description: N(() => [
6432
- a("div", null, O(t.spinMsg), 1),
6451
+ a("div", null, k(t.spinMsg), 1),
6433
6452
  s[2] ||= a("div", { class: "uz-br" }, null, -1),
6434
6453
  l(h, {
6435
6454
  type: "primary",
@@ -6461,7 +6480,7 @@ function am(t, s, u, d, f, p) {
6461
6480
  default: N(() => [l(v)]),
6462
6481
  _: 1
6463
6482
  })]),
6464
- default: N(() => [c(" " + O(t.$t("Common.add")), 1)]),
6483
+ default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
6465
6484
  _: 1
6466
6485
  }, 8, ["disabled", "onClick"])) : r("", !0),
6467
6486
  t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
@@ -6482,7 +6501,7 @@ function am(t, s, u, d, f, p) {
6482
6501
  key: "0"
6483
6502
  } : {
6484
6503
  name: "header",
6485
- fn: N(() => [a("div", em, O(t.title), 1)]),
6504
+ fn: N(() => [a("div", em, k(t.title), 1)]),
6486
6505
  key: "1"
6487
6506
  }]), 1032, [
6488
6507
  "data",
@@ -6529,10 +6548,10 @@ function am(t, s, u, d, f, p) {
6529
6548
  default: N(() => [l(w)]),
6530
6549
  _: 1
6531
6550
  })]),
6532
- default: N(() => [c(" " + O(t.$t("Common.columns")), 1)]),
6551
+ default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
6533
6552
  _: 1
6534
6553
  })]),
6535
- default: N(() => [l(k, {
6554
+ default: N(() => [l(te, {
6536
6555
  modelValue: t.filterColumns,
6537
6556
  "onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
6538
6557
  animation: 200,
@@ -6547,19 +6566,19 @@ function am(t, s, u, d, f, p) {
6547
6566
  key: e.key,
6548
6567
  class: "uz-table-sort",
6549
6568
  "data-index": n
6550
- }, [l(ee, {
6569
+ }, [l(O, {
6551
6570
  checked: e.show,
6552
6571
  "on-update:checked": () => t.showChange(e),
6553
6572
  size: "large"
6554
6573
  }, {
6555
- default: N(() => [c(O(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
6574
+ default: N(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
6556
6575
  _: 2
6557
6576
  }, 1032, ["checked", "on-update:checked"]), l(h, {
6558
6577
  quaternary: "",
6559
6578
  class: "uz-drag-handle"
6560
6579
  }, {
6561
6580
  icon: N(() => [l(y, { size: "18" }, {
6562
- default: N(() => [l(te)]),
6581
+ default: N(() => [l(ee)]),
6563
6582
  _: 1
6564
6583
  })]),
6565
6584
  _: 1
@@ -6569,7 +6588,7 @@ function am(t, s, u, d, f, p) {
6569
6588
  loading: t.loading,
6570
6589
  onClick: t.resetFilter
6571
6590
  }, {
6572
- default: N(() => [c(O(t.$t("Common.reset")), 1)]),
6591
+ default: N(() => [c(k(t.$t("Common.reset")), 1)]),
6573
6592
  _: 1
6574
6593
  }, 8, ["loading", "onClick"])]),
6575
6594
  _: 1
@@ -6586,7 +6605,7 @@ function am(t, s, u, d, f, p) {
6586
6605
  default: N(() => [l(v)]),
6587
6606
  _: 1
6588
6607
  })]),
6589
- default: N(() => [c(" " + O(t.$t("Common.add")), 1)]),
6608
+ default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
6590
6609
  _: 1
6591
6610
  }, 8, ["disabled", "onClick"])) : r("", !0),
6592
6611
  t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
@@ -6607,7 +6626,7 @@ function am(t, s, u, d, f, p) {
6607
6626
  key: "0"
6608
6627
  } : {
6609
6628
  name: "header",
6610
- fn: N(() => [a("div", rm, O(t.title), 1)]),
6629
+ fn: N(() => [a("div", rm, k(t.title), 1)]),
6611
6630
  key: "1"
6612
6631
  }]), 1032, [
6613
6632
  "data",
@@ -6640,7 +6659,9 @@ function am(t, s, u, d, f, p) {
6640
6659
  size: 8,
6641
6660
  trigger: "hover"
6642
6661
  },
6662
+ "expanded-row-keys": t.expandedRowKeys,
6643
6663
  "onUpdate:checkedRowKeys": t.handleCheckRowKeys,
6664
+ "onUpdate:expandedRowKeys": t.handleExpandedRowKeys,
6644
6665
  "sticky-expanded-rows": "",
6645
6666
  remote: ""
6646
6667
  }, null, 8, [
@@ -6660,21 +6681,23 @@ function am(t, s, u, d, f, p) {
6660
6681
  "checked-row-keys",
6661
6682
  "summary",
6662
6683
  "on-unstable-column-resize",
6663
- "onUpdate:checkedRowKeys"
6684
+ "expanded-row-keys",
6685
+ "onUpdate:checkedRowKeys",
6686
+ "onUpdate:expandedRowKeys"
6664
6687
  ])]))]),
6665
6688
  _: 3
6666
6689
  }, 8, ["show"]), [[A, t.dynamicLoading]]),
6667
- l(I, { ref: "drawerRef" }, null, 512)
6690
+ l(L, { ref: "drawerRef" }, null, 512)
6668
6691
  ], 4);
6669
6692
  }
6670
6693
  var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6671
6694
  name: "UzTableChild",
6672
6695
  components: {
6673
6696
  NSpin: Ne,
6674
- NButton: I,
6675
- NIcon: z,
6676
- NDataTable: ce,
6677
- NForm: he,
6697
+ NButton: L,
6698
+ NIcon: B,
6699
+ NDataTable: se,
6700
+ NForm: me,
6678
6701
  NDivider: le,
6679
6702
  Plus: dc,
6680
6703
  GridDots: ts
@@ -6699,7 +6722,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6699
6722
  let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Ze(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
6700
6723
  let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
6701
6724
  return C.value = r, i;
6702
- }, ee = async (t) => {
6725
+ }, O = async (t) => {
6703
6726
  if (_.value) return;
6704
6727
  _.value = !0;
6705
6728
  let n = await D(t), r = H(t).map((e, t) => ({
@@ -6726,7 +6749,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6726
6749
  } else h(() => {
6727
6750
  F();
6728
6751
  });
6729
- }, te = (e) => e.delete ? "uz-table-child-delete" : "", O = async (t, n = !1) => {
6752
+ }, ee = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
6730
6753
  g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
6731
6754
  let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
6732
6755
  r.unshift({
@@ -6736,7 +6759,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6736
6759
  titleAlign: "center",
6737
6760
  width: 10,
6738
6761
  show: !0
6739
- }), s += 60, e.item.params.draggable && e.status !== 2 && (r.unshift({
6762
+ }), s += 10, e.item.params.draggable && e.status !== 2 && (r.unshift({
6740
6763
  title: " ",
6741
6764
  key: "draggable",
6742
6765
  align: "center",
@@ -6747,7 +6770,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6747
6770
  hide: !0,
6748
6771
  show: !0,
6749
6772
  render() {
6750
- return f("div", { class: "flex justify-center" }, f(z, {}, { default: () => f(ts) }));
6773
+ return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(ts) }));
6751
6774
  }
6752
6775
  }), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
6753
6776
  title: () => l("Common.action"),
@@ -6782,8 +6805,8 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6782
6805
  let c = [];
6783
6806
  r.forEach((e) => {
6784
6807
  e.show && c.push(e);
6785
- }), b.value = c, s += 180, E.value = s, g.value = !1;
6786
- }, k = (t) => {
6808
+ }), b.value = c, s += 60, E.value = s, g.value = !1;
6809
+ }, te = (t) => {
6787
6810
  if (e.item.params.summary) {
6788
6811
  if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
6789
6812
  try {
@@ -6865,19 +6888,19 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6865
6888
  validate: P,
6866
6889
  restoreValidation: N
6867
6890
  }), j(() => e.item.params.columns, (e, t) => {
6868
- JSON.stringify(e) !== JSON.stringify(t) && O(e);
6891
+ JSON.stringify(e) !== JSON.stringify(t) && k(e);
6869
6892
  }, {
6870
6893
  deep: !0,
6871
6894
  immediate: !0
6872
6895
  }), j(() => e.value, (e) => {
6873
- JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
6896
+ JSON.stringify(e) !== JSON.stringify(x.value.child) && O(e);
6874
6897
  }, {
6875
6898
  deep: !0,
6876
6899
  immediate: !0
6877
6900
  }), j(() => x.value.child, (t) => {
6878
6901
  e.status !== 2 && n("update:value", t);
6879
6902
  }, { deep: !0 }), j(() => c.value, async () => {
6880
- await O(void 0, !0);
6903
+ await k(void 0, !0);
6881
6904
  }), {
6882
6905
  spin: g,
6883
6906
  loading: _,
@@ -6885,14 +6908,14 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
6885
6908
  tableRef: u,
6886
6909
  columns: b,
6887
6910
  tableData: x,
6888
- summaryData: k,
6911
+ summaryData: te,
6889
6912
  message: S,
6890
6913
  tableScrollX: E,
6891
6914
  tableShow: y,
6892
6915
  suffixes: T,
6893
6916
  onAdd: A,
6894
6917
  onAddFormData: M,
6895
- rowClassName: te,
6918
+ rowClassName: ee,
6896
6919
  doSuffixClick: (e) => {
6897
6920
  i({
6898
6921
  open: e.optionsType,
@@ -6916,14 +6939,14 @@ function pm(t, s, u, d, f, p) {
6916
6939
  class: "uz-flex-1 uz-w-full"
6917
6940
  }, {
6918
6941
  default: N(() => [
6919
- a("div", cm, [a("div", lm, [c(O(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", um, " \xA0* ")) : r("", !0)]), a("div", dm, [
6942
+ a("div", cm, [a("div", lm, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", um, " \xA0* ")) : r("", !0)]), a("div", dm, [
6920
6943
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
6921
6944
  key: e.key,
6922
6945
  type: e.color,
6923
6946
  secondary: "",
6924
6947
  onClick: (n) => t.doSuffixClick(e)
6925
6948
  }, o({
6926
- default: N(() => [c(" " + O(e.buttonText), 1)]),
6949
+ default: N(() => [c(" " + k(e.buttonText), 1)]),
6927
6950
  _: 2
6928
6951
  }, [e.icon ? {
6929
6952
  name: "icon",
@@ -7025,7 +7048,7 @@ function pm(t, s, u, d, f, p) {
7025
7048
  }
7026
7049
  var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
7027
7050
  name: "UzTableQuestChild",
7028
- components: { NDataTable: ce },
7051
+ components: { NDataTable: se },
7029
7052
  props: {
7030
7053
  formValue: {
7031
7054
  type: Object,
@@ -7129,7 +7152,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
7129
7152
  function ym(e, t, n, r, o, s) {
7130
7153
  let c = D("NDataTable"), u = D("UzTableDrawer");
7131
7154
  return x(), i("div", gm, [
7132
- a("div", _m, [a("div", vm, O(e.item.label), 1)]),
7155
+ a("div", _m, [a("div", vm, k(e.item.label), 1)]),
7133
7156
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
7134
7157
  l(c, {
7135
7158
  columns: e.columns,
@@ -7157,13 +7180,13 @@ function ym(e, t, n, r, o, s) {
7157
7180
  var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
7158
7181
  name: "UzTableDrawer",
7159
7182
  components: {
7160
- NButton: I,
7161
- NDrawerContent: de,
7183
+ NButton: L,
7184
+ NDrawerContent: z,
7162
7185
  NDrawer: ue,
7163
7186
  NSkeleton: je,
7164
7187
  NSpin: Ne,
7165
- NPopover: B,
7166
- NModal: Te
7188
+ NPopover: De,
7189
+ NModal: we
7167
7190
  },
7168
7191
  emits: ["update:show", "on-submit"],
7169
7192
  setup(e, { emit: n, expose: r }) {
@@ -7343,7 +7366,7 @@ function Em(t, s, u, d, f, p) {
7343
7366
  closable: ""
7344
7367
  }, o({
7345
7368
  default: N(() => [l(_, { show: t.spinError }, {
7346
- description: N(() => [c(O(t.$t("Notice.error")), 1)]),
7369
+ description: N(() => [c(k(t.$t("Notice.error")), 1)]),
7347
7370
  default: N(() => [l(g, {
7348
7371
  value: t.spinShow,
7349
7372
  "onUpdate:value": s[0] ||= (e) => t.spinShow = e,
@@ -7419,7 +7442,7 @@ function Em(t, s, u, d, f, p) {
7419
7442
  class: "uz-drawer-button",
7420
7443
  onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
7421
7444
  }, {
7422
- default: N(() => [c(O(t.$t("OCR.ocr")), 1)]),
7445
+ default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
7423
7446
  _: 1
7424
7447
  }, 8, ["loading"]), a("div", Tm, [
7425
7448
  l(v, {
@@ -7428,7 +7451,7 @@ function Em(t, s, u, d, f, p) {
7428
7451
  secondary: "",
7429
7452
  onClick: t.drawerCheck
7430
7453
  }, {
7431
- default: N(() => [c(O(t.$t("Common.cancel")), 1)]),
7454
+ default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
7432
7455
  _: 1
7433
7456
  }, 8, ["loading", "onClick"]),
7434
7457
  t.formStatus === 0 ? (x(), n(y, {
@@ -7442,7 +7465,7 @@ function Em(t, s, u, d, f, p) {
7442
7465
  secondary: "",
7443
7466
  onClick: t.doCacheToStore
7444
7467
  }, {
7445
- default: N(() => [c(O(t.$t("Common.cache")), 1)]),
7468
+ default: N(() => [c(k(t.$t("Common.cache")), 1)]),
7446
7469
  _: 1
7447
7470
  }, 8, ["loading", "onClick"])]),
7448
7471
  default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
@@ -7454,7 +7477,7 @@ function Em(t, s, u, d, f, p) {
7454
7477
  type: "primary",
7455
7478
  onClick: t.drawerSubmit
7456
7479
  }, {
7457
- default: N(() => [c(O(t.$t("Common.apply")), 1)]),
7480
+ default: N(() => [c(k(t.$t("Common.apply")), 1)]),
7458
7481
  _: 1
7459
7482
  }, 8, ["loading", "onClick"])
7460
7483
  ])])]),
@@ -7516,14 +7539,14 @@ function jm(t, o, s, c, l, u) {
7516
7539
  key: o.key,
7517
7540
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
7518
7541
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
7519
- }, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(te(() => {
7542
+ }, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(ee(() => {
7520
7543
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7521
7544
  }), {
7522
7545
  key: 0,
7523
7546
  class: "mobile"
7524
- })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, O(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(te(() => {
7547
+ })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(ee(() => {
7525
7548
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7526
- }), { key: 0 })) : (x(), i("div", Am, O(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7549
+ }), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7527
7550
  }
7528
7551
  //#endregion
7529
7552
  //#region components/table/mobile.vue?vue&type=script&lang.ts
@@ -7532,8 +7555,8 @@ var Mm = d({
7532
7555
  components: {
7533
7556
  NCheckbox: ie,
7534
7557
  NRadio: Oe,
7535
- NPagination: Ee,
7536
- NCheckboxGroup: ae,
7558
+ NPagination: Te,
7559
+ NCheckboxGroup: R,
7537
7560
  NRadioGroup: ke,
7538
7561
  UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
7539
7562
  },
@@ -7768,10 +7791,10 @@ var Wm = d({
7768
7791
  components: {
7769
7792
  NTabs: Ie,
7770
7793
  NTabPane: Fe,
7771
- NButton: I,
7772
- NIcon: z,
7773
- NPopconfirm: De,
7774
- NFlex: me,
7794
+ NButton: L,
7795
+ NIcon: B,
7796
+ NPopconfirm: Ee,
7797
+ NFlex: pe,
7775
7798
  Trash: xl
7776
7799
  },
7777
7800
  props: { option: {
@@ -7889,7 +7912,7 @@ var rh = {
7889
7912
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
7890
7913
  }, ih = V, ah = d({
7891
7914
  name: "UzWrap",
7892
- components: { NConfigProvider: se },
7915
+ components: { NConfigProvider: oe },
7893
7916
  setup() {
7894
7917
  return {
7895
7918
  zhCN: We,
@@ -8013,7 +8036,7 @@ function uh(e, t) {
8013
8036
  var dh = d({
8014
8037
  name: "UzOcr",
8015
8038
  components: {
8016
- NButton: I,
8039
+ NButton: L,
8017
8040
  NUpload: ze,
8018
8041
  NSelect: Ae,
8019
8042
  NSwitch: Pe,
@@ -8178,7 +8201,7 @@ function Ih(e, t, o, s, u, d) {
8178
8201
  src: e.processedImage,
8179
8202
  alt: "Processed Preview",
8180
8203
  class: "uz-ocr-preview-img"
8181
- }, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh, O(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + O(e.thresholdUsed), 1)) : r("", !0)])]),
8204
+ }, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
8182
8205
  _: 1
8183
8206
  }, 8, ["tab"]), l(p, {
8184
8207
  name: "raw",
@@ -8210,7 +8233,7 @@ function Ih(e, t, o, s, u, d) {
8210
8233
  loading: e.ocrLoading,
8211
8234
  onClick: e.handleManualOcr
8212
8235
  }, {
8213
- default: N(() => [c(O(e.t("OCR.reRecognize")), 1)]),
8236
+ default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
8214
8237
  _: 1
8215
8238
  }, 8, ["loading", "onClick"])]),
8216
8239
  _: 1
@@ -8230,25 +8253,25 @@ function Ih(e, t, o, s, u, d) {
8230
8253
  height: "40",
8231
8254
  fill: "currentColor"
8232
8255
  }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
8233
- a("div", hh, O(e.t("OCR.scan")), 1),
8256
+ a("div", hh, k(e.t("OCR.scan")), 1),
8234
8257
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8235
8258
  ])]),
8236
8259
  _: 1
8237
- }, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh, O(e.t("OCR.preprocess")), 1), l(_, {
8260
+ }, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh, k(e.t("OCR.preprocess")), 1), l(_, {
8238
8261
  value: e.preEnabled,
8239
8262
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8240
8263
  size: "small"
8241
- }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh, O(e.t("OCR.scale")), 1), l(v, {
8264
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh, k(e.t("OCR.scale")), 1), l(v, {
8242
8265
  value: e.preScale,
8243
8266
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8244
8267
  options: e.scaleOptions,
8245
8268
  size: "small",
8246
8269
  class: "uz-settings-select"
8247
- }, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh, O(e.t("OCR.contrast")), 1), l(_, {
8270
+ }, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh, k(e.t("OCR.contrast")), 1), l(_, {
8248
8271
  value: e.preContrast,
8249
8272
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8250
8273
  size: "small"
8251
- }, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ah, [a("div", jh, [a("span", Mh, "识别结果 (" + O(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Fh, O(e.fullText), 1)) : (x(), i("div", Nh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Ph, O(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8274
+ }, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ah, [a("div", jh, [a("span", Mh, "识别结果 (" + k(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Fh, k(e.fullText), 1)) : (x(), i("div", Nh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Ph, k(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8252
8275
  }
8253
8276
  var Lh = /*#__PURE__*/ U(dh, [["render", Ih], ["__scopeId", "data-v-c7224ff5"]]), Rh = /* @__PURE__ */ ut({
8254
8277
  AccessPoint: () => ht,
@@ -8529,7 +8552,7 @@ function qh(e, t, n) {
8529
8552
  }
8530
8553
  //#endregion
8531
8554
  //#region package.json
8532
- var Jh = "0.1.70", Yh;
8555
+ var Jh = "0.1.72", Yh;
8533
8556
  async function Xh() {
8534
8557
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
8535
8558
  method: "HEAD",