@ithinkdt/ui 4.0.14 → 4.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,20 +2,20 @@ import { n as e } from "./use-i18n-D1TTDOML.js";
2
2
  import t, { cB as n, cE as r, useClsPrefix as i } from "./use-style.js";
3
3
  import { i as a } from "./directives-g3YmS-dM.js";
4
4
  import { _ as o, a as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C } from "./assets-bJgPKDh1.js";
5
- import { Fragment as w, computed as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, h as A, inject as ee, isVNode as j, markRaw as M, mergeProps as N, nextTick as te, reactive as P, ref as F, renderSlot as I, shallowRef as ne, toRaw as re, toRef as ie, toValue as L, unref as ae, watch as R, withDirectives as oe } from "vue";
5
+ import { Fragment as w, computed as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, h as A, inject as ee, isVNode as j, markRaw as M, mergeProps as N, nextTick as te, onBeforeUnmount as ne, reactive as P, ref as F, renderSlot as I, shallowRef as L, toRaw as re, toRef as ie, toValue as R, unref as ae, watch as z, withDirectives as oe } from "vue";
6
6
  import { until as se } from "@vueuse/core";
7
- import { NAnchor as ce, NAnchorLink as le, NAvatar as z, NAvatarGroup as ue, NButton as B, NCard as de, NCheckbox as V, NCheckboxGroup as fe, NDropdown as pe, NEllipsis as me, NEmpty as he, NFlex as H, NForm as ge, NFormItem as _e, NGi as ve, NGrid as ye, NIcon as U, NInput as be, NList as xe, NListItem as Se, NPagination as Ce, NPopover as W, NRadio as we, NRadioButton as Te, NRadioGroup as Ee, NSelect as De, NSpin as Oe, NTag as ke, NText as G, NTooltip as Ae, NTransfer as je, NTree as Me, NTreeSelect as Ne, formProps as Pe, useDialog as Fe } from "ithinkdt-ui";
8
- import { nanoid as Ie } from "nanoid";
9
- import { isNullish as Le, pickProps as K } from "@ithinkdt/common/object";
10
- import { VOverflow as Re, VResizeObserver as ze } from "vueuc";
11
- import { Sortable as Be } from "sortablejs/modular/sortable.core.esm.js";
12
- import { useFormItem as Ve } from "ithinkdt-ui/es/_mixins";
13
- import { measureText as He } from "@ithinkdt/common/string";
14
- import { useFormModal as Ue } from "@ithinkdt/page";
15
- import We from "ithinkdt-ui/es/_mixins/use-locale.mjs";
16
- import { flattenTree as Ge, walkTree as Ke } from "@ithinkdt/common";
7
+ import { NAnchor as ce, NAnchorLink as le, NAvatar as B, NAvatarGroup as ue, NButton as V, NCard as de, NCheckbox as H, NCheckboxGroup as fe, NDropdown as pe, NEllipsis as me, NEmpty as he, NFlex as U, NForm as ge, NFormItem as _e, NGi as ve, NGrid as ye, NIcon as W, NInput as be, NList as xe, NListItem as Se, NPagination as Ce, NPopover as we, NRadio as Te, NRadioButton as Ee, NRadioGroup as De, NSelect as Oe, NSpin as ke, NTag as Ae, NText as je, NTooltip as Me, NTransfer as Ne, NTree as Pe, NTreeSelect as Fe, formProps as Ie, useDialog as Le } from "ithinkdt-ui";
8
+ import { nanoid as Re } from "nanoid";
9
+ import { isNullish as ze, pickProps as G } from "@ithinkdt/common/object";
10
+ import { VOverflow as Be, VResizeObserver as Ve } from "vueuc";
11
+ import { Sortable as He } from "sortablejs/modular/sortable.core.esm.js";
12
+ import { useFormItem as Ue } from "ithinkdt-ui/es/_mixins";
13
+ import { measureText as We } from "@ithinkdt/common/string";
14
+ import { useFormModal as Ge } from "@ithinkdt/page";
15
+ import Ke from "ithinkdt-ui/es/_mixins/use-locale.mjs";
16
+ import { flattenTree as qe, walkTree as Je } from "@ithinkdt/common";
17
17
  //#region src/components/Checkboxes.jsx
18
- var qe = /* @__PURE__ */ k({
18
+ var Ye = /* @__PURE__ */ k({
19
19
  name: "Checkboxes",
20
20
  inheritAttrs: !1,
21
21
  props: {
@@ -70,7 +70,7 @@ var qe = /* @__PURE__ */ k({
70
70
  },
71
71
  setup(t, { emit: n, attrs: r }) {
72
72
  let { t: i } = e(), a = T(() => t.default ? t.default === !0 ? i("common.all") : typeof t.default == "string" ? t.default : t.default?.[t.labelField] ?? i("common.all") : ""), o = F([]);
73
- R(() => t.modelValue, (e) => o.value = e, { immediate: !0 });
73
+ z(() => t.modelValue, (e) => o.value = e, { immediate: !0 });
74
74
  let s = (e) => {
75
75
  n("update:modelValue", e), n("updateModelValue", e);
76
76
  }, c = () => {
@@ -80,20 +80,20 @@ var qe = /* @__PURE__ */ k({
80
80
  let e = D(fe, N(r, {
81
81
  value: o.value,
82
82
  onUpdateValue: s
83
- }), { default: () => [D(H, {
83
+ }), { default: () => [D(U, {
84
84
  size: t.gap ?? (t.vertical ? void 0 : "small"),
85
85
  vertical: t.vertical,
86
86
  style: !t.default && t.vertical ? { padding: "6px 0 0" } : {}
87
- }, { default: () => [t.options?.map((e) => D(V, {
87
+ }, { default: () => [t.options?.map((e) => D(H, {
88
88
  value: e[t.valueField],
89
89
  disabled: e[t.disabledField],
90
90
  style: u.value
91
91
  }, { default: () => [e[t.labelField]] }))] })] });
92
- return t.default ? D(H, {
92
+ return t.default ? D(U, {
93
93
  size: t.gap ?? (t.vertical ? void 0 : "small"),
94
94
  vertical: t.vertical,
95
95
  style: t.vertical ? { padding: "6px 0 0" } : {}
96
- }, { default: () => [D("span", null, [D(V, {
96
+ }, { default: () => [D("span", null, [D(H, {
97
97
  indeterminate: l.value,
98
98
  checked: o.value?.length > 0,
99
99
  onUpdateChecked: c,
@@ -101,7 +101,7 @@ var qe = /* @__PURE__ */ k({
101
101
  }, { default: () => [a.value] })]), e] }) : e;
102
102
  };
103
103
  }
104
- }), Je = /* @__PURE__ */ k({
104
+ }), Xe = /* @__PURE__ */ k({
105
105
  name: "DataActions",
106
106
  props: { options: {
107
107
  type: Array,
@@ -117,7 +117,7 @@ var qe = /* @__PURE__ */ k({
117
117
  }, l = () => {}, u = T(() => o.value === -1 ? [] : e.options.slice(o.value).map((e) => ({
118
118
  ...e,
119
119
  key: e.text
120
- }))), d = (e) => D(B, {
120
+ }))), d = (e) => D(V, {
121
121
  type: e.color === "danger" ? "error" : [
122
122
  "default",
123
123
  "tertiary",
@@ -131,7 +131,7 @@ var qe = /* @__PURE__ */ k({
131
131
  }, { default: () => [e.text] }), p = (e, t) => {
132
132
  t.onClick?.();
133
133
  };
134
- return () => D(ze, { onResize: r }, { default: () => [D(Re, {
134
+ return () => D(Ve, { onResize: r }, { default: () => [D(Be, {
135
135
  ref: t,
136
136
  getCounter: a,
137
137
  onUpdateCount: s,
@@ -139,7 +139,7 @@ var qe = /* @__PURE__ */ k({
139
139
  updateCounter: l,
140
140
  style: "margin-top: 2px"
141
141
  }, {
142
- default: () => e.options.map((e) => D(B, {
142
+ default: () => e.options.map((e) => D(V, {
143
143
  quaternary: !0,
144
144
  type: e.color === "danger" ? "error" : [
145
145
  "default",
@@ -160,7 +160,7 @@ var qe = /* @__PURE__ */ k({
160
160
  options: u.value,
161
161
  renderLabel: d,
162
162
  onSelect: p
163
- }, { default: () => [D(B, {
163
+ }, { default: () => [D(V, {
164
164
  quaternary: !0,
165
165
  size: "small"
166
166
  }, { default: () => [D(f, { style: "font-size: 14px; color: #888" }, null)] })] })])
@@ -169,10 +169,10 @@ var qe = /* @__PURE__ */ k({
169
169
  });
170
170
  //#endregion
171
171
  //#region src/components/DataCustom.jsx
172
- function q(e) {
172
+ function K(e) {
173
173
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
174
174
  }
175
- var Ye = /* @__PURE__ */ k({
175
+ var Ze = /* @__PURE__ */ k({
176
176
  name: "DataCustomRow",
177
177
  props: {
178
178
  label: [String, Function],
@@ -185,35 +185,35 @@ var Ye = /* @__PURE__ */ k({
185
185
  setup(e, { emit: t }) {
186
186
  return () => {
187
187
  let n;
188
- return D(H, {
188
+ return D(U, {
189
189
  align: "center",
190
190
  wrap: !1,
191
191
  size: "small"
192
192
  }, { default: () => [
193
- D(B, {
193
+ D(V, {
194
194
  type: "primary",
195
195
  text: !0,
196
196
  class: "icon-drag"
197
- }, { default: () => [D(U, { size: "18" }, { default: () => [D(b, null, null)] })] }),
198
- D(V, {
197
+ }, { default: () => [D(W, { size: "18" }, { default: () => [D(b, null, null)] })] }),
198
+ D(H, {
199
199
  checked: !e.hidden,
200
200
  disabled: e.disabled,
201
201
  onUpdateChecked: (e) => t("update-hidden", !e)
202
202
  }, null),
203
- D(me, { style: "flex: 1 1 auto" }, q(n = L(e.label)) ? n : { default: () => [n] }),
204
- e.showFixed ? [D(B, {
203
+ D(me, { style: "flex: 1 1 auto" }, K(n = R(e.label)) ? n : { default: () => [n] }),
204
+ e.showFixed ? [D(V, {
205
205
  text: !0,
206
206
  type: e.fixed === "left" ? "primary" : void 0,
207
207
  onClick: () => t("update-fixed", e.fixed === "left" ? !1 : "left")
208
- }, { default: () => [D(U, null, { default: () => [D(h, null, null)] })] }), D(B, {
208
+ }, { default: () => [D(W, null, { default: () => [D(h, null, null)] })] }), D(V, {
209
209
  text: !0,
210
210
  type: e.fixed === "right" ? "primary" : void 0,
211
211
  onClick: () => t("update-fixed", e.fixed === "right" ? !1 : "right")
212
- }, { default: () => [D(U, null, { default: () => [D(o, null, null)] })] })] : void 0
212
+ }, { default: () => [D(W, null, { default: () => [D(o, null, null)] })] })] : void 0
213
213
  ] });
214
214
  };
215
215
  }
216
- }), Xe = /* @__PURE__ */ k({
216
+ }), Qe = /* @__PURE__ */ k({
217
217
  name: "DataCustom",
218
218
  props: {
219
219
  data: {
@@ -264,9 +264,9 @@ var Ye = /* @__PURE__ */ k({
264
264
  [r]: i
265
265
  });
266
266
  }
267
- let o = F();
268
- return R(o, (e) => {
269
- e.$el && Be.create(e.$el, {
267
+ let o = F(), s;
268
+ return z(o, (e) => {
269
+ s?.destroy(), s = void 0, e.$el && (s = He.create(e.$el, {
270
270
  animation: 150,
271
271
  ghostClass: "ghost",
272
272
  handle: ".icon-drag",
@@ -275,34 +275,37 @@ var Ye = /* @__PURE__ */ k({
275
275
  let r = t.data.map((e) => e[t.keyField]), [i] = r.splice(e.oldIndex, 1);
276
276
  r.splice(e.newIndex, 0, i), n("custom", r);
277
277
  }
278
- });
279
- }), () => D(W, {
278
+ }));
279
+ }), ne(() => {
280
+ s?.destroy(), s = void 0;
281
+ }), () => D(we, {
280
282
  trigger: "click",
281
283
  scrollable: !0,
282
284
  placement: "left-start",
283
285
  displayDirective: "show",
284
286
  style: "max-height: 400px; width: 240px"
285
287
  }, {
286
- trigger: () => oe(D(B, {
288
+ trigger: () => oe(D(V, {
287
289
  text: !0,
288
290
  type: t.type
289
- }, { default: () => [D(U, { size: t.size }, { default: () => [D(p, null, null)] })] }), [[a, t.tooltip ?? r("common.page.custom.tooltip")]]),
291
+ }, { default: () => [D(W, { size: t.size }, { default: () => [D(p, null, null)] })] }), [[a, t.tooltip ?? r("common.page.custom.tooltip")]]),
290
292
  default: () => {
291
293
  let e, a;
292
- return D(H, { vertical: !0 }, { default: () => [D(H, { justify: "space-between" }, { default: () => [D("div", { style: "font-weight: bold" }, [t.tooltip ?? r("common.page.custom.tooltip")]), D(B, {
294
+ return D(U, { vertical: !0 }, { default: () => [D(U, { justify: "space-between" }, { default: () => [D("div", { style: "font-weight: bold" }, [t.tooltip ?? r("common.page.custom.tooltip")]), D(V, {
293
295
  text: !0,
294
296
  type: "primary",
295
297
  size: "small",
296
298
  onClick: () => n("custom", !0)
297
- }, q(e = r("common.page.custom.reset")) ? e : { default: () => [e] })] }), D(H, {
299
+ }, K(e = r("common.page.custom.reset")) ? e : { default: () => [e] })] }), D(U, {
298
300
  ref: o,
299
301
  vertical: !0
300
- }, q(a = t.data.filter((e) => e[t.visibleField] !== !1).map((e) => D(Ye, {
302
+ }, K(a = t.data.map((e) => D(Ze, {
301
303
  key: e[t.keyField],
302
304
  label: e[t.labelField],
303
305
  hidden: e[t.hiddenField],
304
306
  fixed: e[t.fixedField],
305
307
  showFixed: t.showFixed,
308
+ style: e[t.visibleField] === !1 ? "display: none" : void 0,
306
309
  onUpdateHidden: (t) => i(e, "hidden", t),
307
310
  onUpdateFixed: (t) => i(e, "fixed", t)
308
311
  }, null))) ? a : { default: () => [a] })] });
@@ -312,37 +315,37 @@ var Ye = /* @__PURE__ */ k({
312
315
  });
313
316
  //#endregion
314
317
  //#region src/components/DataDescriptions.jsx
315
- function Ze(e) {
318
+ function $e(e) {
316
319
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
317
320
  }
318
- function J(e, t) {
321
+ function q(e, t) {
319
322
  return typeof e == "function" ? e(t) : e;
320
323
  }
321
- function Qe(e, t) {
324
+ function et(e, t) {
322
325
  let n = e.children?.filter((e) => e.isGroup);
323
326
  return D(le, { href: `#${e.prop}` }, {
324
- title: () => J(e.label, t),
325
- default: n?.length ? () => n.map((e) => Qe(e, t)) : void 0
327
+ title: () => q(e.label, t),
328
+ default: n?.length ? () => n.map((e) => et(e, t)) : void 0
326
329
  });
327
330
  }
328
- function $e(e, t, n) {
331
+ function tt(e, t, n) {
329
332
  return typeof e == "function" ? e(t, n) : e;
330
333
  }
331
- function et(e, t, n, r) {
334
+ function nt(e, t, n, r) {
332
335
  return e.isGroup ? D("div", {
333
336
  key: e.prop,
334
337
  class: `${r}__group`,
335
338
  id: e.prop
336
- }, [D("div", { class: `${r}__title` }, [J(e.label, n)]), D("div", { class: `${r}__wrapper` }, [e.children?.map((e) => et(e, t, n, r))])]) : D("div", {
339
+ }, [D("div", { class: `${r}__title` }, [q(e.label, n)]), D("div", { class: `${r}__wrapper` }, [e.children?.map((e) => nt(e, t, n, r))])]) : D("div", {
337
340
  key: e.prop,
338
341
  class: `${r}__item`,
339
342
  style: {
340
- "--descriptions-col-span": $e(e.colSpan, t, n) ?? 1,
341
- "--descriptions-row-span": $e(e.rowSpan, t, n) ?? 1
343
+ "--descriptions-col-span": tt(e.colSpan, t, n) ?? 1,
344
+ "--descriptions-row-span": tt(e.rowSpan, t, n) ?? 1
342
345
  }
343
- }, [e.label ? D("div", { class: `${r}__label` }, [J(e.label, n)]) : void 0, D("div", { class: `${r}__content` }, [(n ? e.render ? e.render(n) : n[e.prop] : void 0) ?? D("span", { class: `${r}__nothing` }, [E("--")])])]);
346
+ }, [e.label ? D("div", { class: `${r}__label` }, [q(e.label, n)]) : void 0, D("div", { class: `${r}__content` }, [(n ? e.render ? e.render(n) : n[e.prop] : void 0) ?? D("span", { class: `${r}__nothing` }, [E("--")])])]);
344
347
  }
345
- var tt = /* @__PURE__ */ k({
348
+ var rt = /* @__PURE__ */ k({
346
349
  name: "DataDescriptions",
347
350
  props: {
348
351
  cols: {
@@ -362,9 +365,9 @@ var tt = /* @__PURE__ */ k({
362
365
  },
363
366
  setup(e) {
364
367
  let n = i(), r = `${n.value}-data-descriptions`;
365
- t("-data-descriptions", nt, n);
368
+ t("-data-descriptions", it, n);
366
369
  let a = F();
367
- R(() => e.items, () => {
370
+ z(() => e.items, () => {
368
371
  location.hash && se(a).toBeTruthy().then((e) => {
369
372
  e.scrollTo(location.hash);
370
373
  });
@@ -376,10 +379,10 @@ var tt = /* @__PURE__ */ k({
376
379
  affix: !0
377
380
  }, e.anchor && typeof e.anchor == "object" ? e.anchor : {}));
378
381
  return () => {
379
- let { cols: t, title: n, data: i, items: a, anchor: c } = e, l = Le(n) ? void 0 : D("div", { class: `${r}__header` }, [typeof n == "string" ? D("span", null, [n]) : n(i ?? void 0)]), u = a.filter((e) => !e.hidden).map((e) => et(e, t, i, r)), d;
382
+ let { cols: t, title: n, data: i, items: a, anchor: c } = e, l = ze(n) ? void 0 : D("div", { class: `${r}__header` }, [typeof n == "string" ? D("span", null, [n]) : n(i ?? void 0)]), u = a.filter((e) => !e.hidden).map((e) => nt(e, t, i, r)), d;
380
383
  if (c !== !1) {
381
384
  let e;
382
- d = D(ce, s.value, Ze(e = a.filter((e) => e.isGroup).map((e) => A(Qe(e, i), { key: e.prop }))) ? e : { default: () => [e] });
385
+ d = D(ce, s.value, $e(e = a.filter((e) => e.isGroup).map((e) => A(et(e, i), { key: e.prop }))) ? e : { default: () => [e] });
383
386
  }
384
387
  return D("div", {
385
388
  class: r,
@@ -391,7 +394,7 @@ var tt = /* @__PURE__ */ k({
391
394
  ]);
392
395
  };
393
396
  }
394
- }), nt = /* @__PURE__ */ n("data-descriptions", [
397
+ }), it = /* @__PURE__ */ n("data-descriptions", [
395
398
  r("header", {
396
399
  fontWeight: "bold",
397
400
  fontSize: "1.125rem",
@@ -427,7 +430,7 @@ var tt = /* @__PURE__ */ k({
427
430
  top: "40px",
428
431
  right: "40px"
429
432
  })
430
- ]), Y = {
433
+ ]), J = {
431
434
  size: {
432
435
  type: String,
433
436
  default: void 0
@@ -498,9 +501,9 @@ var tt = /* @__PURE__ */ k({
498
501
  default: void 0
499
502
  },
500
503
  nativeButtonType: Boolean
501
- }, rt = /* @__PURE__ */ k({
504
+ }, at = /* @__PURE__ */ k({
502
505
  name: "DataFormActions",
503
- props: Y,
506
+ props: J,
504
507
  emits: [
505
508
  "submit",
506
509
  "reset",
@@ -513,12 +516,12 @@ var tt = /* @__PURE__ */ k({
513
516
  n("reset");
514
517
  }, s = () => {
515
518
  n("cancel");
516
- }, { mergedDisabledRef: c, mergedSizeRef: l } = Ve(t);
519
+ }, { mergedDisabledRef: c, mergedSizeRef: l } = Ue(t);
517
520
  return () => {
518
521
  let e = l.value, n = c.value, { gap: u = e === "small" ? 8 : e === "medium" ? 12 : 16, submitText: d, resetText: f, cancelText: p, submitDisabled: m, submitLoading: h, showSubmitBtn: _, showResetBtn: v, showCancelBtn: b, succeeded: x, successText: S = d, failureText: C = d, nativeButtonType: w } = t;
519
- return D(H, { size: u === void 0 ? e : u }, { default: () => [
522
+ return D(U, { size: u === void 0 ? e : u }, { default: () => [
520
523
  I(r, "prefix"),
521
- _ === !1 ? void 0 : D(B, {
524
+ _ === !1 ? void 0 : D(V, {
522
525
  attrType: w ? "submit" : "button",
523
526
  size: e,
524
527
  type: x ? "success" : x === !1 ? "error" : "primary",
@@ -527,9 +530,9 @@ var tt = /* @__PURE__ */ k({
527
530
  onClick: w ? void 0 : a
528
531
  }, {
529
532
  default: () => (x ? S : x === !1 ? C : d) || i("common.page.form.submitText"),
530
- icon: () => x ? D(U, null, { default: () => [D(g, null, null)] }) : x === !1 ? D(U, null, { default: () => [D(y, null, null)] }) : void 0
533
+ icon: () => x ? D(W, null, { default: () => [D(g, null, null)] }) : x === !1 ? D(W, null, { default: () => [D(y, null, null)] }) : void 0
531
534
  }),
532
- v === !1 ? void 0 : D(B, {
535
+ v === !1 ? void 0 : D(V, {
533
536
  size: l.value,
534
537
  attrType: w ? "reset" : "button",
535
538
  disabled: n || h || x,
@@ -537,7 +540,7 @@ var tt = /* @__PURE__ */ k({
537
540
  secondary: b,
538
541
  onClick: w ? void 0 : o
539
542
  }, { default: () => [f || i("common.page.form.resetText")] }),
540
- b === !1 || x ? void 0 : D(B, {
543
+ b === !1 || x ? void 0 : D(V, {
541
544
  attrType: "button",
542
545
  disabled: n || h,
543
546
  onClick: s
@@ -549,18 +552,18 @@ var tt = /* @__PURE__ */ k({
549
552
  });
550
553
  //#endregion
551
554
  //#region src/components/DataForm.jsx
552
- function it(e) {
555
+ function ot(e) {
553
556
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
554
557
  }
555
- var at = /* @__PURE__ */ k({
558
+ var st = /* @__PURE__ */ k({
556
559
  name: "DataForm",
557
560
  props: {
558
561
  grid: {
559
562
  type: Object,
560
563
  default: () => ({})
561
564
  },
562
- ...K(Pe, "disabled", "model", "labelWidth", "labelAlign", "showFeedback", "size"),
563
- ...K(Y, "submitText", "resetText", "cancelText", "showSubmitBtn", "showResetBtn", "showCancelBtn", "submitDisabled", "succeeded", "successText", "failureText"),
565
+ ...G(Ie, "disabled", "model", "labelWidth", "labelAlign", "showFeedback", "size"),
566
+ ...G(J, "submitText", "resetText", "cancelText", "showSubmitBtn", "showResetBtn", "showCancelBtn", "submitDisabled", "succeeded", "successText", "failureText"),
564
567
  readonly: {
565
568
  type: Boolean,
566
569
  required: !1,
@@ -626,7 +629,7 @@ var at = /* @__PURE__ */ k({
626
629
  label: c === "start" ? " " : void 0,
627
630
  showLabel: e.labelPlacement !== "top",
628
631
  style: "padding-top: 16px"
629
- }, { default: () => [D(rt, {
632
+ }, { default: () => [D(at, {
630
633
  align: s,
631
634
  justify: c,
632
635
  gap: l,
@@ -657,17 +660,17 @@ var at = /* @__PURE__ */ k({
657
660
  validationStatus: f,
658
661
  showRequireMark: _.required && h
659
662
  }, _), {
660
- label: () => D(G, {
663
+ label: () => D(je, {
661
664
  depth: e.readonly ? 3 : 2,
662
665
  style: "display: inline-flex; align-items: flex-start; gap: 1px"
663
666
  }, { default: () => [
664
- D("span", null, [L(a)]),
665
- d === "icon" ? D(Ae, null, {
666
- default: () => L(u),
667
- trigger: () => D(B, {
667
+ D("span", null, [R(a)]),
668
+ d === "icon" ? D(Me, null, {
669
+ default: () => R(u),
670
+ trigger: () => D(V, {
668
671
  text: !0,
669
672
  style: "font-size: 1.25em; opacity: 0.8"
670
- }, { default: () => [D(U, null, { default: () => [D(m, null, null)] })] })
673
+ }, { default: () => [D(W, null, { default: () => [D(m, null, null)] })] })
671
674
  }) : void 0,
672
675
  e.showColon && o !== !1 ? D("span", { style: "place-self: center" }, [E(":")]) : void 0
673
676
  ] }),
@@ -677,10 +680,10 @@ var at = /* @__PURE__ */ k({
677
680
  size: e.size,
678
681
  readonly: e.readonly
679
682
  })]);
680
- return u && d === "bottom" && (!e.readonly || g) ? D("div", { style: "width: 100%; display: flex; flex-direction: column" }, [n, D(G, {
683
+ return u && d === "bottom" && (!e.readonly || g) ? D("div", { style: "width: 100%; display: flex; flex-direction: column" }, [n, D(je, {
681
684
  depth: 3,
682
685
  style: "font-size: calc(1rem - 3px); margin-top: 6px"
683
- }, it(t = L(u)) ? t : { default: () => [t] })]) : n;
686
+ }, ot(t = R(u)) ? t : { default: () => [t] })]) : n;
684
687
  },
685
688
  feedback: () => r[n]?.errors?.[0] ?? r[n]?.warnings?.[0]
686
689
  }), e.grid === !1 ? v : D(ve, {
@@ -688,7 +691,7 @@ var at = /* @__PURE__ */ k({
688
691
  offset: l,
689
692
  span: s,
690
693
  style: c ? { gridRowEnd: `span ${c}` } : void 0
691
- }, it(v) ? v : { default: () => [v] });
694
+ }, ot(v) ? v : { default: () => [v] });
692
695
  }), i === !1 || e.readonly === !0 && !n.action ? void 0 : D(ve, N({
693
696
  key: "action",
694
697
  span: 2 ** 53 - 1
@@ -708,14 +711,14 @@ var at = /* @__PURE__ */ k({
708
711
  }, p, { yGap: A ? 0 : p?.yGap ?? 24 }), { default: c })] });
709
712
  };
710
713
  }
711
- }), ot = /* @__PURE__ */ k({
714
+ }), ct = /* @__PURE__ */ k({
712
715
  name: "DataFilter",
713
716
  props: {
714
717
  grid: {
715
718
  type: Object,
716
719
  default: () => ({})
717
720
  },
718
- ...K(Pe, "disabled", "model"),
721
+ ...G(Ie, "disabled", "model"),
719
722
  labelWidth: {
720
723
  type: [String, Number],
721
724
  default: "5em"
@@ -784,7 +787,7 @@ var at = /* @__PURE__ */ k({
784
787
  });
785
788
  return () => {
786
789
  let { filterOnReset: e, filterText: n, resetText: u, customizable: d, defaultCollapsed: f, collapsible: p, grid: m, collapsedRows: h, ...g } = t;
787
- return D(at, N({ grid: {
790
+ return D(st, N({ grid: {
788
791
  cols: "12 768:18 1280:24 1536:30",
789
792
  yGap: 20,
790
793
  xGap: 8,
@@ -801,17 +804,17 @@ var at = /* @__PURE__ */ k({
801
804
  l.suffix = e?.collapsedOverflow || e?.contentEl.children.item(e?.contentEl.children.length - 1).offsetTop > 0;
802
805
  }), D("div", { style: "display: flex; gap: 12px; align-items: center; justify-content: " + (l.suffix ? "flex-end" : "flex-start") }, [
803
806
  l.suffix ? void 0 : D("span", null, [E("\xA0\xA0\xA0\xA0")]),
804
- D(B, {
807
+ D(V, {
805
808
  attrType: "submit",
806
809
  type: "primary",
807
810
  disabled: t.disabled,
808
811
  loading: t.loading
809
812
  }, { default: () => [n || i("common.page.filter.submitText")] }),
810
- D(B, {
813
+ D(V, {
811
814
  attrType: "reset",
812
815
  disabled: t.disabled || t.loading
813
816
  }, { default: () => [u || i("common.page.form.resetText")] }),
814
- d ? D(Xe, {
817
+ d ? D(Qe, {
815
818
  keyField: "name",
816
819
  showFixed: !1,
817
820
  data: g.items,
@@ -819,7 +822,7 @@ var at = /* @__PURE__ */ k({
819
822
  type: "primary",
820
823
  onCustom: (e) => r("custom", e)
821
824
  }, null) : void 0,
822
- p && e?.collapsedOverflow ? D(B, {
825
+ p && e?.collapsedOverflow ? D(V, {
823
826
  text: !0,
824
827
  type: "primary",
825
828
  iconPlacement: "right",
@@ -832,11 +835,11 @@ var at = /* @__PURE__ */ k({
832
835
  });
833
836
  //#endregion
834
837
  //#region src/components/DataLocaleInput.jsx
835
- function st(e) {
838
+ function lt(e) {
836
839
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
837
840
  }
838
- function ct(t, n, r = 1) {
839
- let { t: i } = e(), a = F(!1), o = [], { open: s, reinit: c } = Ue({
841
+ function ut(t, n, r = 1) {
842
+ let { t: i } = e(), a = F(!1), o = [], { open: s, reinit: c } = Ge({
840
843
  title: t,
841
844
  showColon: !0,
842
845
  submitText: i("common.confirm.defaultOk"),
@@ -863,7 +866,7 @@ function ct(t, n, r = 1) {
863
866
  }
864
867
  };
865
868
  }
866
- var lt = /* @__PURE__ */ k({
869
+ var dt = /* @__PURE__ */ k({
867
870
  name: "DataLocaleInput",
868
871
  props: {
869
872
  label: { type: [
@@ -910,31 +913,31 @@ var lt = /* @__PURE__ */ k({
910
913
  ...e.modelValue,
911
914
  [r]: n
912
915
  }, t("update:modelValue", n), t("updateModelValue", n);
913
- }, { open: r, setSupports: i } = ct(T(() => L(e.label)), (e) => {
916
+ }, { open: r, setSupports: i } = ut(T(() => R(e.label)), (e) => {
914
917
  t("update:modelValue", e), t("updateModelValue", e);
915
918
  }, ie(e, "defaultRows")), o = F(e.defaultExpanded);
916
- R(() => e.defaultExpanded, (e) => {
919
+ z(() => e.defaultExpanded, (e) => {
917
920
  o.value = e;
918
921
  });
919
- let s = () => D(B, {
922
+ let s = () => D(V, {
920
923
  quaternary: !0,
921
924
  onClick: () => {
922
925
  o.value = !o.value;
923
926
  },
924
927
  style: "--n-padding: 0 8px"
925
- }, { default: () => [D(U, {
928
+ }, { default: () => [D(W, {
926
929
  size: "20",
927
930
  depth: "3"
928
931
  }, { default: () => [o.value ? D(S, null, null) : D(l, null, null)] })] }), c = (t) => {
929
932
  let n = t.split("-")[0];
930
933
  return e.supports.some((e) => e.value !== t && e.value.startsWith(n)) ? t : n;
931
- }, d = `__slots${Ie(6)}`;
932
- R(() => e.supports, (e) => {
934
+ }, d = `__slots${Re(6)}`;
935
+ z(() => e.supports, (e) => {
933
936
  i(e);
934
937
  let t = 0;
935
938
  for (let [n, r] of e.entries()) {
936
939
  let e = c(r.value);
937
- t = Math.max(t, He(e, "monospace")), r[d] = M({
940
+ t = Math.max(t, We(e, "monospace")), r[d] = M({
938
941
  prefix: () => D("div", { style: {
939
942
  width: `${t + 4}px`,
940
943
  height: "100%",
@@ -949,7 +952,7 @@ var lt = /* @__PURE__ */ k({
949
952
  }, { immediate: !0 });
950
953
  let f = T(() => {
951
954
  let t = c(e.showLang ?? e.defaultLang);
952
- return [t, He(t, "monospace")];
955
+ return [t, We(t, "monospace")];
953
956
  }), p = {
954
957
  prefix: () => D("div", { style: {
955
958
  width: `${f.value[1] + 4}px`,
@@ -958,11 +961,11 @@ var lt = /* @__PURE__ */ k({
958
961
  fontSize: "12px",
959
962
  fontFamily: "monospace"
960
963
  } }, [f.value[0]]),
961
- suffix: () => D(B, {
964
+ suffix: () => D(V, {
962
965
  quaternary: !0,
963
966
  onClick: () => r(e.modelValue, e.disabled),
964
967
  style: "--n-padding: 0 8px"
965
- }, { default: () => [D(U, {
968
+ }, { default: () => [D(W, {
966
969
  size: "20",
967
970
  depth: "3"
968
971
  }, { default: () => [D(u, null, null)] })] })
@@ -977,11 +980,11 @@ var lt = /* @__PURE__ */ k({
977
980
  style: m,
978
981
  type: e.defaultRows > 1 ? "textarea" : "text",
979
982
  rows: e.defaultRows
980
- }, st(p) ? p : { default: () => [p] }) : D(H, {
983
+ }, lt(p) ? p : { default: () => [p] }) : D(U, {
981
984
  vertical: !0,
982
985
  wrap: !1,
983
986
  style: "width: 100%"
984
- }, st(t = e.supports.map((t, r) => {
987
+ }, lt(t = e.supports.map((t, r) => {
985
988
  if (!o.value && r !== 0) return;
986
989
  let i = r == 0;
987
990
  return oe(D(be, {
@@ -1002,7 +1005,7 @@ var lt = /* @__PURE__ */ k({
1002
1005
  })) ? t : { default: () => [t] });
1003
1006
  };
1004
1007
  }
1005
- }), X = /* @__PURE__ */ k({
1008
+ }), Y = /* @__PURE__ */ k({
1006
1009
  name: "DataPagination",
1007
1010
  props: {
1008
1011
  total: {
@@ -1027,7 +1030,7 @@ var lt = /* @__PURE__ */ k({
1027
1030
  }), a = (e) => n("change", {
1028
1031
  pageSize: e,
1029
1032
  currentPage: t.resetPageOnSizeChange ? 1 : t.currentPage ?? t.page?.currentPage ?? 1
1030
- }), o = ee(X.DEFAULT_PAGE_SIZES_INJECTION_KEY, () => [
1033
+ }), o = ee(Y.DEFAULT_PAGE_SIZES_INJECTION_KEY, () => [
1031
1034
  10,
1032
1035
  20,
1033
1036
  30,
@@ -1050,13 +1053,13 @@ var lt = /* @__PURE__ */ k({
1050
1053
  }, t.simple ? void 0 : s);
1051
1054
  }
1052
1055
  });
1053
- X.DEFAULT_PAGE_SIZES_INJECTION_KEY = Symbol();
1056
+ Y.DEFAULT_PAGE_SIZES_INJECTION_KEY = Symbol();
1054
1057
  //#endregion
1055
1058
  //#region src/components/DataSelection.jsx
1056
- function ut(e) {
1059
+ function ft(e) {
1057
1060
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
1058
1061
  }
1059
- var dt = /* @__PURE__ */ k({
1062
+ var pt = /* @__PURE__ */ k({
1060
1063
  name: "DataSelection",
1061
1064
  props: {
1062
1065
  modelValue: {
@@ -1076,34 +1079,34 @@ var dt = /* @__PURE__ */ k({
1076
1079
  let { t: r } = e();
1077
1080
  return () => {
1078
1081
  let e;
1079
- return t.modelValue !== "selection" && t.count === 0 ? D("div", null, null) : D("div", null, [D(H, {
1082
+ return t.modelValue !== "selection" && t.count === 0 ? D("div", null, null) : D("div", null, [D(U, {
1080
1083
  align: "center",
1081
1084
  "wrap-item": !1
1082
1085
  }, { default: () => [
1083
1086
  D("span", null, [r("common.page.selection.countText", { count: t.count })]),
1084
- D(B, {
1087
+ D(V, {
1085
1088
  text: !0,
1086
1089
  type: "primary",
1087
1090
  onClick: () => {
1088
1091
  n("update:modelValue", t.modelValue === "all" ? "selection" : "all");
1089
1092
  }
1090
1093
  }, { default: () => [t.modelValue === "all" ? r("common.page.selection.view") : r("common.page.selection.back")] }),
1091
- D(B, {
1094
+ D(V, {
1092
1095
  text: !0,
1093
1096
  onClick: () => {
1094
1097
  n("clear"), n("update:modelValue", "all");
1095
1098
  }
1096
- }, ut(e = r("common.page.selection.clear")) ? e : { default: () => [e] })
1099
+ }, ft(e = r("common.page.selection.clear")) ? e : { default: () => [e] })
1097
1100
  ] })]);
1098
1101
  };
1099
1102
  }
1100
1103
  });
1101
1104
  //#endregion
1102
1105
  //#region src/components/Radios.jsx
1103
- function ft(e) {
1106
+ function mt(e) {
1104
1107
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
1105
1108
  }
1106
- var pt = /* @__PURE__ */ k({
1109
+ var ht = /* @__PURE__ */ k({
1107
1110
  name: "Radios",
1108
1111
  props: {
1109
1112
  options: {
@@ -1163,7 +1166,7 @@ var pt = /* @__PURE__ */ k({
1163
1166
  n("update:modelValue", e), n("updateModelValue", e);
1164
1167
  };
1165
1168
  return () => {
1166
- let e = t.type === "button" ? Te : we, n = D(w, null, [t.default ? D(e, { value: typeof t.default == "object" ? t.default?.[t.valueField] : null }, { default: () => [i.value] }) : void 0, t.options?.map((n) => {
1169
+ let e = t.type === "button" ? Ee : Te, n = D(w, null, [t.default ? D(e, { value: typeof t.default == "object" ? t.default?.[t.valueField] : null }, { default: () => [i.value] }) : void 0, t.options?.map((n) => {
1167
1170
  let r = typeof n[t.labelField] == "string" ? n[t.labelField] : n[t.labelField]?.();
1168
1171
  return D(e, {
1169
1172
  value: n[t.valueField],
@@ -1172,31 +1175,31 @@ var pt = /* @__PURE__ */ k({
1172
1175
  paddingLeft: t.padding,
1173
1176
  paddingRight: t.padding
1174
1177
  } : {}
1175
- }, { default: () => [n.tip ? D(Ae, null, {
1178
+ }, { default: () => [n.tip ? D(Me, null, {
1176
1179
  default: () => n.tip,
1177
1180
  trigger: () => r
1178
1181
  }) : r] });
1179
1182
  })]);
1180
- return D(Ee, {
1183
+ return D(De, {
1181
1184
  style: t.vertical ? {
1182
1185
  ...a.value,
1183
1186
  padding: "6px 0 0"
1184
1187
  } : a.value,
1185
1188
  value: t.modelValue,
1186
1189
  onUpdateValue: o
1187
- }, { default: () => [t.type === "radio" ? D(H, {
1190
+ }, { default: () => [t.type === "radio" ? D(U, {
1188
1191
  size: t.vertical ? void 0 : "small",
1189
1192
  vertical: t.vertical
1190
- }, ft(n) ? n : { default: () => [n] }) : n] });
1193
+ }, mt(n) ? n : { default: () => [n] }) : n] });
1191
1194
  };
1192
1195
  }
1193
1196
  });
1194
1197
  //#endregion
1195
1198
  //#region src/components/UserDept.jsx
1196
- function Z(e) {
1199
+ function X(e) {
1197
1200
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !j(e);
1198
1201
  }
1199
- var mt = /* @__PURE__ */ k({
1202
+ var gt = /* @__PURE__ */ k({
1200
1203
  name: "UserDept",
1201
1204
  inheritAttrs: !1,
1202
1205
  props: {
@@ -1265,15 +1268,15 @@ var mt = /* @__PURE__ */ k({
1265
1268
  },
1266
1269
  emits: ["update:modelValue", "updateModelValue"],
1267
1270
  setup(t, { emit: n, attrs: r }) {
1268
- let { t: i } = e(), { localeRef: a } = We("Popconfirm"), o = T(() => t.valueField || (t.type === "user" ? "username" : "code")), l = T(() => {
1271
+ let { t: i } = e(), { localeRef: a } = Ke("Popconfirm"), o = T(() => t.valueField || (t.type === "user" ? "username" : "code")), l = T(() => {
1269
1272
  if (t.multiple) return t.modelValue || [];
1270
1273
  let e = t.modelValue?.trim();
1271
1274
  return e ? [e] : [];
1272
- }), u = /* @__PURE__ */ new Map(), f = T(() => (u.clear(), t.users.map((e) => (e = P(e), e.label = e.nickname + e.username, e.value = e[o.value], e.type = "user", u.set(e[o.value], e), e)))), p = ne([]);
1273
- R(() => t.depts, (e) => {
1274
- Ke(e, (e) => {
1275
+ }), u = /* @__PURE__ */ new Map(), f = T(() => (u.clear(), t.users.map((e) => (e = P(e), e.label = e.nickname + e.username, e.value = e[o.value], e.type = "user", u.set(e[o.value], e), e)))), p = L([]);
1276
+ z(() => t.depts, (e) => {
1277
+ Je(e, (e) => {
1275
1278
  e.label = e.name, e.value = e[o.value], e.type = "dept", e.children?.length || delete e.children;
1276
- }), p.value = Ge(e);
1279
+ }), p.value = qe(e);
1277
1280
  }, { immediate: !0 });
1278
1281
  let m = T(() => [
1279
1282
  ...t.depts,
@@ -1297,7 +1300,7 @@ var mt = /* @__PURE__ */ k({
1297
1300
  })];
1298
1301
  }, y = /* @__PURE__ */ new WeakMap(), b = (e, n, r) => {
1299
1302
  let a;
1300
- if (t.type === "dept") return D(Me, {
1303
+ if (t.type === "dept") return D(Pe, {
1301
1304
  data: t.depts,
1302
1305
  keyField: "value",
1303
1306
  labelField: "name",
@@ -1319,7 +1322,7 @@ var mt = /* @__PURE__ */ k({
1319
1322
  }
1320
1323
  }, null);
1321
1324
  let o = e ? y.get(e) : /* @__PURE__ */ new Set();
1322
- if (e && !o && (o = new Set(e), y.set(e, o)), g.value === !1) return D(Oe, { show: !0 }, null);
1325
+ if (e && !o && (o = new Set(e), y.set(e, o)), g.value === !1) return D(ke, { show: !0 }, null);
1323
1326
  let l = g.value || m.value;
1324
1327
  r = r?.trim(), r && (l = l?.filter((e) => e.label.includes(r) || e.value.includes(r)));
1325
1328
  let u = h.value;
@@ -1327,22 +1330,22 @@ var mt = /* @__PURE__ */ k({
1327
1330
  u.length >= 2 ? u.at(-2).label : i("common.all"),
1328
1331
  D("span", { style: "padding: 0 4px" }, [D(d, null, null)]),
1329
1332
  u.at(-1).label
1330
- ]), D(B, {
1333
+ ]), D(V, {
1331
1334
  text: !0,
1332
1335
  type: "warning",
1333
1336
  onClick: () => {
1334
1337
  if (u.pop(), g.value = u.length > 0 ? !1 : void 0, u.length > 0) _(u.at(-1));
1335
1338
  else for (let e of f.value) e.disabled = !1;
1336
1339
  }
1337
- }, { default: () => [D(U, null, { default: () => [D(v, null, null)] }), i("common.back")] })]) : D("span", null, [i("common.all")])]), l?.length ? D(xe, {
1340
+ }, { default: () => [D(W, null, { default: () => [D(v, null, null)] }), i("common.back")] })]) : D("span", null, [i("common.all")])]), l?.length ? D(xe, {
1338
1341
  showDivider: !1,
1339
1342
  style: "padding: 0 16px"
1340
- }, Z(a = l.map((r) => {
1343
+ }, X(a = l.map((r) => {
1341
1344
  let i, a;
1342
1345
  return D(Se, {
1343
1346
  key: r.type + "_" + r.value,
1344
1347
  style: "padding: 6px 0"
1345
- }, { default: () => [r.type === "user" ? t.multiple ? D(V, {
1348
+ }, { default: () => [r.type === "user" ? t.multiple ? D(H, {
1346
1349
  checked: o.has(r.value) || !1,
1347
1350
  onUpdateChecked: (i) => {
1348
1351
  if (i && t.max && e.length >= t.max) return;
@@ -1355,20 +1358,20 @@ var mt = /* @__PURE__ */ k({
1355
1358
  n(a);
1356
1359
  },
1357
1360
  style: "margin-left: 3px"
1358
- }, Z(i = $([r], {
1361
+ }, X(i = Q([r], {
1359
1362
  max: 1,
1360
1363
  size: 24,
1361
1364
  placement: "right",
1362
1365
  tooltip: !1,
1363
1366
  username: !0,
1364
1367
  renderInfo: t.renderUserInfo
1365
- })) ? i : { default: () => [i] }) : D(we, {
1368
+ })) ? i : { default: () => [i] }) : D(Te, {
1366
1369
  checked: o.has(r.value) || !1,
1367
1370
  onUpdateChecked: (e) => {
1368
1371
  n(e ? [r.value] : []);
1369
1372
  },
1370
1373
  style: "margin-left: 3px;"
1371
- }, Z(a = $([r], {
1374
+ }, X(a = Q([r], {
1372
1375
  max: 1,
1373
1376
  size: 24,
1374
1377
  placement: "right",
@@ -1381,21 +1384,21 @@ var mt = /* @__PURE__ */ k({
1381
1384
  },
1382
1385
  style: "cursor: pointer; display: flex; align-items: center; gap: 8px"
1383
1386
  }, [
1384
- r.type === "dept" ? D(z, {
1387
+ r.type === "dept" ? D(B, {
1385
1388
  size: 24,
1386
1389
  style: "background-color: red"
1387
- }, { default: () => [D(U, null, { default: () => [D(s, null, null)] })] }) : D(z, {
1390
+ }, { default: () => [D(W, null, { default: () => [D(s, null, null)] })] }) : D(B, {
1388
1391
  size: 24,
1389
1392
  style: "background-color: green"
1390
- }, { default: () => [D(U, null, { default: () => [D(c, null, null)] })] }),
1393
+ }, { default: () => [D(W, null, { default: () => [D(c, null, null)] })] }),
1391
1394
  D("span", { style: "flex: 1 1 auto" }, [r.label]),
1392
- D(U, null, { default: () => [D(d, null, null)] })
1395
+ D(W, null, { default: () => [D(d, null, null)] })
1393
1396
  ])] });
1394
1397
  })) ? a : { default: () => [a] }) : D(he, null, null)]);
1395
1398
  }, x = () => D(he, { description: t.placeholder }, null), S = ({ option: e }) => e.type === "user" ? D("span", null, [e.nickname, D("span", { style: {
1396
1399
  opacity: .4,
1397
1400
  marginLeft: "8px"
1398
- } }, [e.username])]) : D("span", null, [e.label]), C = (e, n, r, i, a) => D(je, N(e, {
1401
+ } }, [e.username])]) : D("span", null, [e.label]), C = (e, n, r, i, a) => D(Ne, N(e, {
1399
1402
  key: t.type,
1400
1403
  options: n,
1401
1404
  renderSourceList: ({ onCheck: e, pattern: t }) => b(r, e, t),
@@ -1412,7 +1415,7 @@ var mt = /* @__PURE__ */ k({
1412
1415
  onUpdateValue: (e) => {
1413
1416
  a?.(e);
1414
1417
  }
1415
- }), null), E = ({ option: e, handleClose: n }) => D(ke, {
1418
+ }), null), E = ({ option: e, handleClose: n }) => D(Ae, {
1416
1419
  type: t.type === "user" ? "primary" : "info",
1417
1420
  closable: !0,
1418
1421
  onMousedown: (e) => e.preventDefault(),
@@ -1421,10 +1424,10 @@ var mt = /* @__PURE__ */ k({
1421
1424
  }
1422
1425
  }, { default: () => [e.label] }), O = (e, r = "updateModelValue") => {
1423
1426
  t.multiple ? n(r, e) : n(r, e?.[0]);
1424
- }, k = F(), A = !1, ee = Fe(), j = () => {
1427
+ }, k = F(), A = !1, ee = Le(), j = () => {
1425
1428
  if (A) return;
1426
1429
  A = !0;
1427
- let e = ne([...l.value || []]);
1430
+ let e = L([...l.value || []]);
1428
1431
  ee.create({
1429
1432
  showIcon: !1,
1430
1433
  title: t.placeholder,
@@ -1441,10 +1444,10 @@ var mt = /* @__PURE__ */ k({
1441
1444
  });
1442
1445
  }
1443
1446
  });
1444
- }, M = { arrow: () => D(U, null, { default: () => [t.type === "user" ? D(c, null, null) : D(s, null, null)] }) };
1447
+ }, M = { arrow: () => D(W, null, { default: () => [t.type === "user" ? D(c, null, null) : D(s, null, null)] }) };
1445
1448
  return () => {
1446
1449
  let e = t.type === "user" ? f.value : p.value;
1447
- if (t.selectType === "dropdown" && t.type === "dept") return D(Ne, {
1450
+ if (t.selectType === "dropdown" && t.type === "dept") return D(Fe, {
1448
1451
  options: e,
1449
1452
  keyField: "value",
1450
1453
  defaultExpandAll: t.defaultExpandAll,
@@ -1458,10 +1461,10 @@ var mt = /* @__PURE__ */ k({
1458
1461
  "onUpdate:value": (e) => {
1459
1462
  t.multiple && t.max && e?.length > t.max || n("update:modelValue", e);
1460
1463
  }
1461
- }, Z(M) ? M : { default: () => [M] });
1464
+ }, X(M) ? M : { default: () => [M] });
1462
1465
  if (t.selectType === "transfer") return C(r, e, l.value, (e) => O(e, "update:modelValue"), (e) => O(e, "updateModelValue"));
1463
1466
  let i = t.selectType === "dropdown";
1464
- return D(De, N(r, {
1467
+ return D(Oe, N(r, {
1465
1468
  key: t.type,
1466
1469
  ref: k,
1467
1470
  show: i ? void 0 : !1,
@@ -1480,22 +1483,22 @@ var mt = /* @__PURE__ */ k({
1480
1483
  "onUpdate:value": (e) => {
1481
1484
  n("update:modelValue", e);
1482
1485
  }
1483
- }), Z(M) ? M : { default: () => [M] });
1486
+ }), X(M) ? M : { default: () => [M] });
1484
1487
  };
1485
1488
  }
1486
1489
  });
1487
- function Q(e, t, { placement: n = "left", size: r = 24, tooltip: i = !0, username: a = !1, renderInfo: o }) {
1490
+ function Z(e, t, { placement: n = "left", size: r = 24, tooltip: i = !0, username: a = !1, renderInfo: o }) {
1488
1491
  let s = e.nickname.split(" ").at(-1), c = s;
1489
1492
  if (/^[\u4E00-\u9FA5]+$/.test(s)) {
1490
1493
  let e = s.length;
1491
1494
  c = e === 3 || e === 4 ? s.slice(-2) : e > 4 ? s.slice(0, 1) : s;
1492
- } else s.length > 4 && (c = D(U, null, { default: () => [D(x, null, null)] }));
1493
- let l = (e) => D(z, {
1495
+ } else s.length > 4 && (c = D(W, null, { default: () => [D(x, null, null)] }));
1496
+ let l = (e) => D(B, {
1494
1497
  color: "var(--color-primary)",
1495
1498
  round: !0,
1496
1499
  size: e
1497
- }, Z(c) ? c : { default: () => [c] });
1498
- return D(W, {
1500
+ }, X(c) ? c : { default: () => [c] });
1501
+ return D(we, {
1499
1502
  key: e.username,
1500
1503
  raw: !0,
1501
1504
  placement: n,
@@ -1511,9 +1514,9 @@ function Q(e, t, { placement: n = "left", size: r = 24, tooltip: i = !0, usernam
1511
1514
  }
1512
1515
  });
1513
1516
  }
1514
- function $(e, t = {}) {
1517
+ function Q(e, t = {}) {
1515
1518
  let { max: n = 4, size: r = 24 } = t;
1516
- return e.length <= 1 ? e[0] ? Q(e[0], !0, t) : null : D("span", { style: {
1519
+ return e.length <= 1 ? e[0] ? Z(e[0], !0, t) : null : D("span", { style: {
1517
1520
  display: "inline-block",
1518
1521
  height: r + "px"
1519
1522
  } }, [D(ue, {
@@ -1522,16 +1525,16 @@ function $(e, t = {}) {
1522
1525
  max: n || 4,
1523
1526
  style: "top: -2px"
1524
1527
  }, {
1525
- avatar: ({ option: e }) => Q(e, !1, t),
1528
+ avatar: ({ option: e }) => Z(e, !1, t),
1526
1529
  rest: ({ options: e, rest: t }) => D(pe, {
1527
1530
  options: e,
1528
1531
  keyField: "username",
1529
1532
  labelField: "nickname",
1530
- renderOption: ({ option: t }) => Q(t, !1, e)
1531
- }, { default: () => [D(z, null, { default: () => [E("+"), t] })] })
1533
+ renderOption: ({ option: t }) => Z(t, !1, e)
1534
+ }, { default: () => [D(B, null, { default: () => [E("+"), t] })] })
1532
1535
  })]);
1533
1536
  }
1534
- var ht = /* @__PURE__ */ k({
1537
+ var _t = /* @__PURE__ */ k({
1535
1538
  name: "DeptRender",
1536
1539
  props: {
1537
1540
  value: [String, Array],
@@ -1540,7 +1543,7 @@ var ht = /* @__PURE__ */ k({
1540
1543
  },
1541
1544
  setup(e) {
1542
1545
  let t = F([]), n = {};
1543
- return R([() => e.modelValue, () => e.multiple], ([r, i]) => {
1546
+ return z([() => e.modelValue, () => e.multiple], ([r, i]) => {
1544
1547
  t.value = [];
1545
1548
  let a = r ? i ? Array.isArray(r) ? r : r.trim() ? r.trim().split(",") : [] : [r] : [], o = [];
1546
1549
  for (let [e, r] of a.entries()) n[r] || (n[r] = P({
@@ -1550,9 +1553,9 @@ var ht = /* @__PURE__ */ k({
1550
1553
  o.length > 0 && e.getDeptsByCode(o).then((e) => {
1551
1554
  for (let t of e) Object.assign(n[t.code], t);
1552
1555
  });
1553
- }, { immediate: !0 }), () => t.value.map((e) => D(ke, { key: e.code }, { default: () => [e.name] }));
1556
+ }, { immediate: !0 }), () => t.value.map((e) => D(Ae, { key: e.code }, { default: () => [e.name] }));
1554
1557
  }
1555
- }), gt = /* @__PURE__ */ k({
1558
+ }), vt = /* @__PURE__ */ k({
1556
1559
  name: "UserRender",
1557
1560
  props: {
1558
1561
  value: [String, Array],
@@ -1565,7 +1568,7 @@ var ht = /* @__PURE__ */ k({
1565
1568
  },
1566
1569
  setup(e) {
1567
1570
  let t = F([]), n = {};
1568
- return R([() => e.value, () => e.multiple], ([r, i]) => {
1571
+ return z([() => e.value, () => e.multiple], ([r, i]) => {
1569
1572
  t.value = [];
1570
1573
  let a = r ? i ? Array.isArray(r) ? r : r.trim() ? r.trim().split(",") : [] : [r] : [], o = [];
1571
1574
  for (let [e, r] of a.entries()) n[r] || (n[r] = P({
@@ -1575,9 +1578,9 @@ var ht = /* @__PURE__ */ k({
1575
1578
  o.length > 0 && e.getUsersByUsername(o).then((e) => {
1576
1579
  for (let t of e) Object.assign(n[t.username], t);
1577
1580
  });
1578
- }, { immediate: !0 }), () => $(t.value, e);
1581
+ }, { immediate: !0 }), () => Q(t.value, e);
1579
1582
  }
1580
- }), _t = {
1583
+ }), $ = {
1581
1584
  disabled: {
1582
1585
  type: Boolean,
1583
1586
  default: void 0
@@ -1606,21 +1609,21 @@ var ht = /* @__PURE__ */ k({
1606
1609
  ],
1607
1610
  default: void 0
1608
1611
  }
1609
- }, vt = /* @__PURE__ */ k({
1612
+ }, yt = /* @__PURE__ */ k({
1610
1613
  name: "StateButton",
1611
- props: _t,
1614
+ props: $,
1612
1615
  setup(e, { slots: t }) {
1613
1616
  return () => {
1614
1617
  let { type: n, disabled: r, succeeded: i, successText: a, failureText: o } = e;
1615
- return D(B, {
1618
+ return D(V, {
1616
1619
  type: i ? "success" : i === !1 ? "error" : n,
1617
1620
  disabled: typeof i == "boolean" ? !0 : r
1618
1621
  }, {
1619
1622
  default: () => (i ? I(t, "success", void 0, () => [a]) : i === !1 ? I(t, "failure", void 0, () => [o]) : I(t, "default")) ?? I(t, "default"),
1620
- icon: () => i ? I(t, "successIcon", void 0, () => [D(U, null, { default: () => [D(g, null, null)] })]) : i === !1 ? I(t, "failureIcon", void 0, () => [D(U, null, { default: () => [D(y, null, null)] })]) : I(t, "icon")
1623
+ icon: () => i ? I(t, "successIcon", void 0, () => [D(W, null, { default: () => [D(g, null, null)] })]) : i === !1 ? I(t, "failureIcon", void 0, () => [D(W, null, { default: () => [D(y, null, null)] })]) : I(t, "icon")
1621
1624
  });
1622
1625
  };
1623
1626
  }
1624
- }), yt = O(() => import("./DataTable-C5hx-Wo8.js").then((e) => e.DataTable));
1627
+ }), bt = O(() => import("./DataTable-DXZ3G4ZO.js").then((e) => e.DataTable));
1625
1628
  //#endregion
1626
- export { Je as DataActions, Xe as DataCustom, tt as DataDescriptions, ot as DataFilter, at as DataForm, rt as DataFormActions, lt as DataLocaleInput, X as DataPagination, dt as DataSelection, yt as DataTable, ht as DtDeptRender, mt as DtUserDept, gt as DtUserRender, qe as NCheckboxes, pt as NRadios, vt as NStateButton, _t as StateButtonProps, Y as dataFormActionsProps, $ as renderUsers, ct as useLocaleEdit };
1629
+ export { Xe as DataActions, Qe as DataCustom, rt as DataDescriptions, ct as DataFilter, st as DataForm, at as DataFormActions, dt as DataLocaleInput, Y as DataPagination, pt as DataSelection, bt as DataTable, _t as DtDeptRender, gt as DtUserDept, vt as DtUserRender, Ye as NCheckboxes, ht as NRadios, yt as NStateButton, $ as StateButtonProps, J as dataFormActionsProps, Q as renderUsers, ut as useLocaleEdit };