@ithinkdt/ui 4.0.16 → 4.0.17

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/esm/page.d.ts CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  CheckboxProps, DatePickerProps, DatePickerSlots, DrawerContentProps, DrawerProps, InputNumberProps, InputNumberSlots,
3
3
  InputProps, InputSlots, ModalOptions, SelectGroupOption, SelectOption, SelectProps, SelectSlots, UploadFileInfo, UploadProps,
4
4
  } from 'ithinkdt-ui'
5
- import { MaybeRef, VNode, VNodeChild } from 'vue'
5
+ import { ClassValue, MaybeRef, VNode, VNodeChild } from 'vue'
6
6
 
7
7
  import { Awaitable, PublicProps } from '@ithinkdt/common'
8
8
  import { DictItem, DictTypeKey } from '@ithinkdt/common/dict'
@@ -183,6 +183,7 @@ declare module '@ithinkdt/page' {
183
183
  }
184
184
 
185
185
  export declare function createFormItemHelper(options?: {
186
+ formItemFilledClass?: ClassValue
186
187
  getUserGroups?: (() => Promise<UserGroupOption[]>) | undefined
187
188
  getUsersByGroup?: ((code: string) => Promise<{ username: string, nickname: string }[]>) | undefined
188
189
  getUsersByDept?: ((code: string) => Promise<{ username: string, nickname: string }[]>) | undefined
package/esm/page.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as e } from "./use-i18n-D1TTDOML.js";
2
- import { DataForm as t, DtDeptRender as n, DtUserDept as r, DtUserRender as i, NCheckboxes as a, NRadios as o } from "./components.js";
1
+ import { n as e } from "./use-i18n-BUP_StIp.js";
2
+ import { _ as t, a as n, c as r, i, o as a, w as o } from "./components-DfV9ybsT.js";
3
3
  import { computed as s, createVNode as c, defineAsyncComponent as l, defineComponent as u, h as d, isVNode as f, mergeProps as p, nextTick as m, ref as h, renderSlot as g, shallowRef as _, toValue as v, unref as y } from "vue";
4
4
  import { until as b, useClipboard as x } from "@vueuse/core";
5
5
  import { NButton as S, NCheckbox as C, NColorPicker as w, NDrawer as T, NDrawerContent as E, NFlex as D, NIcon as O, NInput as k, NInputNumber as A, NModal as j, NScrollbar as M, NSelect as N, NText as P, NUpload as F, useMessage as I } from "ithinkdt-ui";
@@ -16,7 +16,7 @@ var W = (e) => Object.fromEntries(Object.entries(e || {}).map(([e, t]) => [e, y(
16
16
  function G(e) {
17
17
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
18
18
  }
19
- function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: r, previewFileUrl: a }) {
19
+ function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: n, previewFileUrl: r }) {
20
20
  let o = (e) => (t, n, { params: r = {} }) => {
21
21
  if (t != null) return R(t, r.formatter ?? e);
22
22
  }, s = (e = {}) => c("svg", p({
@@ -157,26 +157,26 @@ function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: r, previewF
157
157
  size: "small"
158
158
  }, null),
159
159
  image: () => (e, t, { params: n = {} }) => {
160
- let r;
160
+ let i;
161
161
  if (e) return c(D, {
162
162
  gap: "8",
163
163
  wrap: !0
164
- }, G(r = (Array.isArray(e) ? e : n?.multiple ? e.split(",") : [e]).map((e) => a(e)).map((e) => c("img", {
164
+ }, G(i = (Array.isArray(e) ? e : n?.multiple ? e.split(",") : [e]).map((e) => r(e)).map((e) => c("img", {
165
165
  key: e,
166
166
  src: e,
167
167
  style: "max-height: 32px; max-width: 100px; object-fit: contain"
168
- }, null))) ? r : { default: () => [r] });
168
+ }, null))) ? i : { default: () => [i] });
169
169
  },
170
170
  file: () => {
171
171
  let e = L();
172
- return (t, n, { params: i = {} }) => {
172
+ return (t, r, { params: i = {} }) => {
173
173
  let a;
174
- if (t) return n.__file_urls ??= {}, n.__file_urls[e] || r(Array.isArray(t) ? t : i?.multiple ? t.split(",") : [t]).then((t) => {
175
- n.__file_urls[e] = t;
174
+ if (t) return r.__file_urls ??= {}, r.__file_urls[e] || n(Array.isArray(t) ? t : i?.multiple ? t.split(",") : [t]).then((t) => {
175
+ r.__file_urls[e] = t;
176
176
  }), c(D, {
177
177
  gap: "8",
178
178
  wrap: !0
179
- }, G(a = (n.__file_urls[e] || []).map((e) => c("a", {
179
+ }, G(a = (r.__file_urls[e] || []).map((e) => c("a", {
180
180
  key: e.id,
181
181
  href: e.url,
182
182
  target: "_blank",
@@ -185,10 +185,10 @@ function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: r, previewF
185
185
  }, [e.name]))) ? a : { default: () => [a] });
186
186
  };
187
187
  },
188
- dept: () => (t, r, { params: i = {} }) => {
189
- if (t) return c(n, {
188
+ dept: () => (t, n, { params: r = {} }) => {
189
+ if (t) return c(i, {
190
190
  value: t,
191
- multiple: i?.multiple,
191
+ multiple: r?.multiple,
192
192
  getDeptsByCode: e
193
193
  }, null);
194
194
  },
@@ -196,7 +196,7 @@ function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: r, previewF
196
196
  let e = { style: "padding-block: 0" };
197
197
  return {
198
198
  renderer: (e, n, { params: r = {} }) => {
199
- if (e) return c(i, {
199
+ if (e) return c(a, {
200
200
  value: e,
201
201
  multiple: r?.multiple,
202
202
  getUsersByUsername: t
@@ -293,13 +293,16 @@ var J = /* @__PURE__ */ l(() => import("ithinkdt-ui/es/date-picker/index.mjs").t
293
293
  };
294
294
  }
295
295
  });
296
- function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersByDept: s, getUsersByUsername: l, uploadFile: u, getFileInfos: f }) {
297
- let m = (e) => e, v = (e) => V(e) ? e : String(e), x = (e) => V(e) ? e : Number(e);
296
+ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: i, getUsersByDept: s, getUsersByUsername: l, uploadFile: u, getFileInfos: f, formItemFilledClass: m = "formitem--filled" }) {
297
+ let v = (e) => e, x = (e) => V(e) ? e : String(e), S = (e) => V(e) ? e : Number(e);
298
298
  return {
299
299
  input: () => ({ slots: e, props: t }, { modelValue: n, "onUpdate:modelValue": r, required: i, readonly: a, ...o }) => a ? c(P, {
300
300
  depth: 2,
301
301
  style: "line-height: 1.25"
302
- }, { default: () => [n ?? ""] }) : (t = W(t), d(k, p({ clearable: !0 }, t, o, {
302
+ }, { default: () => [n ?? ""] }) : (t = W(t), d(k, p({
303
+ class: { [m]: !V(n) && (Array.isArray(n) ? n.length > 0 : !0) },
304
+ clearable: !0
305
+ }, t, o, {
303
306
  value: n,
304
307
  "onUpdate:value": r
305
308
  }), e)),
@@ -310,11 +313,14 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
310
313
  depth: 2,
311
314
  style: "line-height: 1.25"
312
315
  }, { default: () => [i ?? ""] });
313
- let { valueType: u = "number", ...f } = W(r), m = u === "string" ? x(i) : i;
316
+ let { valueType: u = "number", ...f } = W(r), h = u === "string" ? S(i) : i;
314
317
  return e = a, u === "string" && !t && (t = (t, ...n) => {
315
- e(v(t), ...n);
316
- }), d(A, p({ clearable: !0 }, f, l, {
317
- value: m,
318
+ e(x(t), ...n);
319
+ }), d(A, p({
320
+ class: { [m]: !V(i) && (Array.isArray(i) ? i.length > 0 : !0) },
321
+ clearable: !0
322
+ }, f, l, {
323
+ value: h,
318
324
  "onUpdate:value": u === "string" ? t : e
319
325
  }), n);
320
326
  };
@@ -322,46 +328,47 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
322
328
  select: () => {
323
329
  let e, t, n, r, i, a;
324
330
  return ({ slots: o, props: s }, { modelValue: l, "onUpdate:modelValue": u, required: f, readonly: g, ..._ }) => {
325
- let { dictType: b, options: S, valueType: C = "string", ...w } = W(s), T = C === "number" ? v : m, E, D, O;
326
- S ? typeof S == "function" ? (E = !0, n ??= h(!1), D = (e) => {
327
- n.value = !0, Promise.resolve(S(e.trim())).then((e) => {
331
+ let { dictType: b, options: C, valueType: w = "string", ...T } = W(s), E = w === "number" ? x : v, D, O, k;
332
+ C ? typeof C == "function" ? (D = !0, n ??= h(!1), O = (e) => {
333
+ n.value = !0, Promise.resolve(C(e.trim())).then((e) => {
328
334
  t = e;
329
335
  }).finally(() => {
330
336
  n.value = !1;
331
337
  });
332
- }, O = () => {
333
- D("");
334
- }, O()) : (n = void 0, t = S) : (n = void 0, e !== b && (e = b, !t && e && (t = H(e))));
335
- let k = w.multiple ? l?.map(T) : T(l);
336
- if (g) if (w.multiple) {
338
+ }, k = () => {
339
+ O("");
340
+ }, k()) : (n = void 0, t = C) : (n = void 0, e !== b && (e = b, !t && e && (t = H(e))));
341
+ let A = T.multiple ? l?.map(E) : E(l);
342
+ if (g) if (T.multiple) {
337
343
  let e;
338
344
  return c(P, {
339
345
  depth: 2,
340
346
  style: "line-height: 1.25"
341
- }, q(e = (k?.map((e) => y(t)?.find((t) => t[w.valueField || "value"] === e)) ?? []).map((e, t, n) => {
342
- let r = e ? w.renderLabel ? w.renderLabel(e) ?? "" : e[w.labelField || "label"] ?? "" : k[t] ?? "";
343
- return c("span", { key: e ? e[w.valueField || "value"] : k[t] ?? "" }, [r, t < n.length - 1 ? ", " : ""]);
347
+ }, q(e = (A?.map((e) => y(t)?.find((t) => t[T.valueField || "value"] === e)) ?? []).map((e, t, n) => {
348
+ let r = e ? T.renderLabel ? T.renderLabel(e) ?? "" : e[T.labelField || "label"] ?? "" : A[t] ?? "";
349
+ return c("span", { key: e ? e[T.valueField || "value"] : A[t] ?? "" }, [r, t < n.length - 1 ? ", " : ""]);
344
350
  })) ? e : { default: () => [e] });
345
351
  } else {
346
- let e = y(t)?.find((e) => e[w.valueField || "value"] === k);
352
+ let e = y(t)?.find((e) => e[T.valueField || "value"] === A);
347
353
  return c(P, {
348
354
  depth: 2,
349
355
  style: "line-height: 1.25"
350
- }, { default: () => [e ? w.renderLabel ? w.renderLabel(e) ?? "" : e[w.labelField || "label"] ?? "" : k ?? ""] });
356
+ }, { default: () => [e ? T.renderLabel ? T.renderLabel(e) ?? "" : e[T.labelField || "label"] ?? "" : A ?? ""] });
351
357
  }
352
- return r = w.multiple, i = u, C === "number" && !a && (a = (e, ...t) => {
353
- i(r ? e?.map(x) : x(e), ...t);
358
+ return r = T.multiple, i = u, w === "number" && !a && (a = (e, ...t) => {
359
+ i(r ? e?.map(S) : S(e), ...t);
354
360
  }), d(N, p({
361
+ class: { [m]: !V(l) && (Array.isArray(l) ? l.length > 0 : !0) },
355
362
  clearable: !0,
356
363
  filterable: y(t)?.length > 9,
357
364
  loading: n?.value || t?.loading,
358
- remote: E,
359
- onSearch: D,
360
- onClear: O
361
- }, w, _, {
365
+ remote: D,
366
+ onSearch: O,
367
+ onClear: k
368
+ }, T, _, {
362
369
  options: y(t),
363
- value: k,
364
- "onUpdate:value": C === "number" ? a : i
370
+ value: A,
371
+ "onUpdate:value": w === "number" ? a : i
365
372
  }), o);
366
373
  };
367
374
  },
@@ -373,55 +380,55 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
373
380
  style: "line-height: 1.25"
374
381
  }, q(r) ? r : { default: () => [r] });
375
382
  }
376
- return d(C, p(t, o, {
383
+ return d(C, p({ class: { [m]: !V(n) && (Array.isArray(n) ? n.length > 0 : !0) } }, t, o, {
377
384
  checked: n,
378
385
  "onUpdate:checked": r
379
386
  }), e);
380
387
  },
381
388
  checkboxes: () => {
382
389
  let e, t, n, r;
383
- return ({ props: i }, { modelValue: o, "onUpdate:modelValue": s, required: l, readonly: u, ...f }) => {
384
- let { dictType: h, options: g, valueType: _ = "string", ...y } = W(i), b = _ === "number" ? v : m;
390
+ return ({ props: i }, { modelValue: a, "onUpdate:modelValue": s, required: l, readonly: u, ...f }) => {
391
+ let { dictType: h, options: g, valueType: _ = "string", ...y } = W(i), b = _ === "number" ? x : v;
385
392
  g ? t = g : e !== h && (e = h, !t && e && (t = H(e)));
386
- let S = o?.map(b) ?? [];
393
+ let C = a?.map(b) ?? [];
387
394
  if (u) {
388
395
  let e;
389
396
  return c(P, {
390
397
  depth: 2,
391
398
  style: "line-height: 2.4"
392
- }, q(e = (S?.map((e) => t?.find((t) => t[y.valueField || "value"] === e)) ?? []).map((e, t, n) => {
393
- let r = e ? e[y.labelField ?? "label"] ?? "" : S[t] ?? "";
394
- return c("span", { key: e ? e[y.valueField ?? "value"] : S[t] ?? "" }, [r, t < n.length - 1 ? ", " : ""]);
399
+ }, q(e = (C?.map((e) => t?.find((t) => t[y.valueField || "value"] === e)) ?? []).map((e, t, n) => {
400
+ let r = e ? e[y.labelField ?? "label"] ?? "" : C[t] ?? "";
401
+ return c("span", { key: e ? e[y.valueField ?? "value"] : C[t] ?? "" }, [r, t < n.length - 1 ? ", " : ""]);
395
402
  })) ? e : { default: () => [e] });
396
403
  }
397
404
  return n = s, _ === "number" && !r && (r = (e, ...t) => {
398
- n(e?.map(x), ...t);
399
- }), d(a, p(y, f, {
405
+ n(e?.map(S), ...t);
406
+ }), d(o, p({ class: { [m]: !V(a) && (Array.isArray(a) ? a.length > 0 : !0) } }, y, f, {
400
407
  options: t,
401
- modelValue: S,
408
+ modelValue: C,
402
409
  "onUpdate:modelValue": _ === "number" ? r : n
403
410
  }));
404
411
  };
405
412
  },
406
413
  radios: () => {
407
- let e, t, n, r;
408
- return ({ props: i }, { modelValue: a, "onUpdate:modelValue": s, required: l, readonly: u, ...f }) => {
409
- let { dictType: h, options: g, valueType: _ = "string", ...y } = W(i), b = _ === "number" ? v : m;
414
+ let e, t, n, i;
415
+ return ({ props: a }, { modelValue: o, "onUpdate:modelValue": s, required: l, readonly: u, ...f }) => {
416
+ let { dictType: h, options: g, valueType: _ = "string", ...y } = W(a), b = _ === "number" ? x : v;
410
417
  g ? t = g : e !== h && (e = h, !t && e && (t = H(e)));
411
- let S = b(a);
418
+ let C = b(o);
412
419
  if (u) {
413
- let e = t?.find((e) => e[y.valueField ?? "value"] === S);
420
+ let e = t?.find((e) => e[y.valueField ?? "value"] === C);
414
421
  return c(P, {
415
422
  depth: 2,
416
423
  style: "line-height: 1.25"
417
- }, { default: () => [e ? e[y.labelField ?? "label"] ?? "" : S ?? ""] });
424
+ }, { default: () => [e ? e[y.labelField ?? "label"] ?? "" : C ?? ""] });
418
425
  }
419
- return n = s, _ === "number" && !r && (r = (e, ...t) => {
420
- n(x(e), ...t);
421
- }), d(o, p(y, f, {
426
+ return n = s, _ === "number" && !i && (i = (e, ...t) => {
427
+ n(S(e), ...t);
428
+ }), d(r, p({ class: { [m]: !V(o) && (Array.isArray(o) ? o.length > 0 : !0) } }, y, f, {
422
429
  options: t,
423
- modelValue: S,
424
- "onUpdate:modelValue": _ === "number" ? r : n
430
+ modelValue: C,
431
+ "onUpdate:modelValue": _ === "number" ? i : n
425
432
  }));
426
433
  };
427
434
  },
@@ -434,6 +441,7 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
434
441
  depth: 2,
435
442
  style: "line-height: 1.25"
436
443
  }, { default: () => [n ? R(n, l) : ""] }) : d(J, p({
444
+ class: { [m]: !V(n) && (Array.isArray(n) ? n.length > 0 : !0) },
437
445
  actions: null,
438
446
  updateValueOnClose: !0,
439
447
  closeOnSelect: !0,
@@ -459,7 +467,7 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
459
467
  style: "max-width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
460
468
  }, [e.name]))) ? e : { default: () => [e] }) : void 0;
461
469
  }
462
- return d(Y, p(t, o, {
470
+ return d(Y, p({ class: { [m]: !V(n) && (Array.isArray(n) ? n.length > 0 : !0) } }, t, o, {
463
471
  defaultUpload: !1,
464
472
  uploadFile: u,
465
473
  fileList: n,
@@ -479,9 +487,9 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
479
487
  });
480
488
  }, o, s;
481
489
  return {
482
- renderer: ({ slots: i, props: l }, { modelValue: f, "onUpdate:modelValue": m, required: h, readonly: g, ...v }) => {
483
- let y = W(l);
484
- if (s = y.maxSize, o = y.ref ??= _(), e !== f && (e = f, a(f?.split(",") ?? [])), g) {
490
+ renderer: ({ slots: i, props: l }, { modelValue: f, "onUpdate:modelValue": h, required: g, readonly: v, ...y }) => {
491
+ let b = W(l);
492
+ if (s = b.maxSize, o = b.ref ??= _(), e !== f && (e = f, a(f?.split(",") ?? [])), v) {
485
493
  let e;
486
494
  return r.value.length === 0 ? void 0 : c(D, {
487
495
  gap: "8",
@@ -497,13 +505,13 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
497
505
  style: "max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block"
498
506
  }, [e.name]))) ? e : { default: () => [e] });
499
507
  }
500
- return d(Y, p(y, v, {
508
+ return d(Y, p({ class: { [m]: !V(f) && (Array.isArray(f) ? f.length > 0 : !0) } }, b, y, {
501
509
  uploadFile: u,
502
510
  fileList: r.value,
503
511
  onUpdateFileList: (e = []) => {
504
512
  n.clear();
505
513
  for (let r of e) r.file?.fileId && t.set(r.id, r.file.fileId), r.file?.fileId ? n.set(r.file.fileId, r) : n.set(r.id, r);
506
- r.value = e, m(r.value.map((e) => t.get(e.id) || e.id).join(",") || null);
514
+ r.value = e, h(r.value.map((e) => t.get(e.id) || e.id).join(",") || null);
507
515
  }
508
516
  }), i);
509
517
  },
@@ -514,31 +522,32 @@ function X({ getUserGroups: e, getUsersByGroup: t, getDeptsByCode: n, getUsersBy
514
522
  };
515
523
  },
516
524
  user: () => {
517
- let a, o, u;
518
- return ({ slots: f, props: m }, { modelValue: h, "onUpdate:modelValue": g, required: v, readonly: y, ...b }) => {
519
- let x = W(m);
520
- return a || (a = _([]), o = _([]), u = _([]), l().then((e) => {
521
- a.value = e;
525
+ let r, o, u;
526
+ return ({ slots: f, props: h }, { modelValue: g, "onUpdate:modelValue": v, required: y, readonly: b, ...x }) => {
527
+ let S = W(h);
528
+ return r || (r = _([]), o = _([]), u = _([]), l().then((e) => {
529
+ r.value = e;
522
530
  }), e().then((e) => {
523
531
  o.value = e;
524
- }), n().then((e) => {
532
+ }), i().then((e) => {
525
533
  u.value = e;
526
- })), y ? c(i, {
527
- value: h,
528
- multiple: x.multiple,
534
+ })), b ? c(a, {
535
+ value: g,
536
+ multiple: S.multiple,
529
537
  getUsersByUsername: l,
530
- renderInfo: x.renderInfo
531
- }, null) : d(r, p({
538
+ renderInfo: S.renderInfo
539
+ }, null) : d(n, p({
540
+ class: { [m]: !V(g) && (Array.isArray(g) ? g.length > 0 : !0) },
532
541
  type: "user",
533
- users: a.value,
542
+ users: r.value,
534
543
  depts: u.value,
535
544
  groups: o.value,
536
545
  getUsersByDept: s,
537
546
  getUsersByGroup: t
538
- }, x, b, {
539
- renderUserInfo: x.renderInfo,
540
- modelValue: h,
541
- "onUpdate:modelValue": g
547
+ }, S, x, {
548
+ renderUserInfo: S.renderInfo,
549
+ modelValue: g,
550
+ "onUpdate:modelValue": v
542
551
  }), f);
543
552
  };
544
553
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
@@ -62,12 +62,12 @@
62
62
  "sideEffects": false,
63
63
  "dependencies": {
64
64
  "@vueuse/core": "^14.3.0",
65
- "date-fns": "^4.1.0",
65
+ "date-fns": "^4.3.0",
66
66
  "vueuc": ">=0.4.65",
67
67
  "sortablejs": "^1.15.7",
68
68
  "@types/sortablejs": "^1.15.9",
69
69
  "nanoid": "^5.1.11",
70
- "@ithinkdt/common": "^4.0.8"
70
+ "@ithinkdt/common": "^4.0.9"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@ithinkdt/page": ">=4.0",
@@ -86,14 +86,14 @@
86
86
  },
87
87
  "devDependencies": {
88
88
  "@vitejs/plugin-vue-jsx": "^5.1.5",
89
- "ithinkdt-ui": "^1.9.1",
89
+ "ithinkdt-ui": "^1.9.4",
90
90
  "typescript": "~6.0.3",
91
- "unocss": "^66.6.8",
92
- "vite": "^8.0.10",
91
+ "unocss": "^66.7.0",
92
+ "vite": "^8.0.14",
93
93
  "vue": "^3.5.34",
94
- "vue-router": "^5.0.6",
94
+ "vue-router": "^5.0.7",
95
95
  "@vue/test-utils": "^2.4.10",
96
- "@ithinkdt/page": "^4.0.19"
96
+ "@ithinkdt/page": "^4.0.20"
97
97
  },
98
98
  "scripts": {
99
99
  "dev": "vite build --watch",
@@ -1,187 +0,0 @@
1
- import { createVNode as e, mergeProps as t } from "vue";
2
- //#region src/components/assets.jsx
3
- var n = (n) => e("svg", t({
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
6
- role: "img",
7
- width: "1em",
8
- height: "1em",
9
- viewBox: "0 0 24 24"
10
- }, n), [e("path", {
11
- fill: "currentColor",
12
- d: "M11 18h2v-2h-2v2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-14a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2a2 2 0 0 1 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4Z"
13
- }, null)]), r = (n) => e("svg", t({
14
- xmlns: "http://www.w3.org/2000/svg",
15
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
16
- role: "img",
17
- width: "1em",
18
- height: "1em",
19
- viewBox: "0 0 1024 1024"
20
- }, n), [e("path", {
21
- fill: "currentColor",
22
- d: "m924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1c0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1l74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3l-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2l-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9l-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5l-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5c0-15.3 1.2-30.6 3.7-45.5l6.5-40l-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2l31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3l17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97l38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8l92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"
23
- }, null)]), i = (n) => e("svg", t({
24
- xmlns: "http://www.w3.org/2000/svg",
25
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
26
- role: "img",
27
- width: "1em",
28
- height: "1em",
29
- viewBox: "0 0 1024 1024"
30
- }, n), [e("path", {
31
- fill: "currentColor",
32
- d: "M300 276.497a56 56 0 1 0 56-96.994a56 56 0 0 0-56 96.994Zm0 284a56 56 0 1 0 56-96.994a56 56 0 0 0-56 96.994ZM640 228a56 56 0 1 0 112 0a56 56 0 0 0-112 0Zm0 284a56 56 0 1 0 112 0a56 56 0 0 0-112 0ZM300 844.497a56 56 0 1 0 56-96.994a56 56 0 0 0-56 96.994ZM640 796a56 56 0 1 0 112 0a56 56 0 0 0-112 0Z"
33
- }, null)]), a = (n) => e("svg", t({
34
- xmlns: "http://www.w3.org/2000/svg",
35
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
36
- role: "img",
37
- width: "1em",
38
- height: "1em",
39
- viewBox: "0 0 1024 1024"
40
- }, n), [e("path", {
41
- fill: "currentColor",
42
- d: "M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z"
43
- }, null)]), o = (n) => e("svg", t({
44
- xmlns: "http://www.w3.org/2000/svg",
45
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
46
- role: "img",
47
- width: "1em",
48
- height: "1em",
49
- viewBox: "0 0 1024 1024"
50
- }, n), [e("path", {
51
- fill: "currentColor",
52
- d: "M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512L265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512L267.1 157.9A7.95 7.95 0 0 0 254 164z"
53
- }, null)]), s = (n) => e("svg", t({
54
- xmlns: "http://www.w3.org/2000/svg",
55
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
56
- role: "img",
57
- width: "1em",
58
- height: "1em",
59
- viewBox: "0 0 24 24"
60
- }, n), [e("path", {
61
- fill: "currentColor",
62
- d: "M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6z"
63
- }, null)]), c = (n) => e("svg", t({
64
- xmlns: "http://www.w3.org/2000/svg",
65
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
66
- role: "img",
67
- width: "1em",
68
- height: "1em",
69
- viewBox: "0 0 24 24"
70
- }, n), [e("path", {
71
- fill: "currentColor",
72
- d: "M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z"
73
- }, null)]), l = (n) => e("svg", t({
74
- xmlns: "http://www.w3.org/2000/svg",
75
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
76
- role: "img",
77
- width: "1em",
78
- height: "1em",
79
- viewBox: "0 0 32 32"
80
- }, n), [e("path", {
81
- fill: "currentColor",
82
- d: "M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z"
83
- }, null)]), u = (n) => e("svg", t({
84
- xmlns: "http://www.w3.org/2000/svg",
85
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
86
- role: "img",
87
- width: "1em",
88
- height: "1em",
89
- viewBox: "0 0 32 32"
90
- }, n), [e("path", {
91
- fill: "currentColor",
92
- d: "m16 10l10 10l-1.4 1.4l-8.6-8.6l-8.6 8.6L6 20z"
93
- }, null)]), d = (n) => e("svg", t({
94
- xmlns: "http://www.w3.org/2000/svg",
95
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
96
- role: "img",
97
- width: "1em",
98
- height: "1em",
99
- viewBox: "0 0 24 24"
100
- }, n), [e("path", {
101
- fill: "currentColor",
102
- d: "m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4z"
103
- }, null)]), f = (n) => e("svg", t({
104
- xmlns: "http://www.w3.org/2000/svg",
105
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
106
- role: "img",
107
- width: "1em",
108
- height: "1em",
109
- viewBox: "0 0 24 24"
110
- }, n), [e("path", {
111
- fill: "currentColor",
112
- d: "M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.788-3.887t2.15-3.175t3.187-2.15T12 2q2.075 0 3.888.788t3.174 2.15t2.15 3.175T22 12q0 2.05-.788 3.875t-2.15 3.188t-3.175 2.15T12 22m0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95m-2.6-.4q-.45-.825-.787-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55m5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55M4.25 14h3.4q-.075-.5-.112-.987T7.5 12t.038-1.012T7.65 10h-3.4q-.125.5-.187.988T4 12t.063 1.013t.187.987m5.4 0h4.7q.075-.5.113-.987T14.5 12t-.038-1.012T14.35 10h-4.7q-.075.5-.112.988T9.5 12t.038 1.013t.112.987m6.7 0h3.4q.125-.5.188-.987T20 12t-.062-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12t-.038 1.013t-.112.987m-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8M10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8m-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8"
113
- }, null)]), p = (n) => e("svg", t({
114
- xmlns: "http://www.w3.org/2000/svg",
115
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
116
- role: "img",
117
- width: "1em",
118
- height: "1em",
119
- viewBox: "0 0 24 24"
120
- }, n), [e("path", {
121
- fill: "currentColor",
122
- d: "m12 19.24l-4.95-4.95l-1.41 1.42L12 22.07l6.36-6.36l-1.41-1.42zM5.64 8.29l1.41 1.42L12 4.76l4.95 4.95l1.41-1.42L12 1.93z"
123
- }, null)]), m = (n) => e("svg", t({
124
- xmlns: "http://www.w3.org/2000/svg",
125
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
126
- role: "img",
127
- width: "1em",
128
- height: "1em",
129
- viewBox: "0 0 24 24"
130
- }, n), [e("path", {
131
- fill: "currentColor",
132
- d: "M12 7.59L7.05 2.64L5.64 4.05L12 10.41l6.36-6.36l-1.41-1.41zM5.64 19.95l1.41 1.41L12 16.41l4.95 4.95l1.41-1.41L12 13.59z"
133
- }, null)]), h = (n) => e("svg", t({
134
- xmlns: "http://www.w3.org/2000/svg",
135
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
136
- role: "img",
137
- width: "1em",
138
- height: "1em",
139
- viewBox: "0 0 20 20"
140
- }, n), [e("path", {
141
- fill: "currentColor",
142
- fillRule: "evenodd",
143
- d: "M2.5 7.5a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5m15 0a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5m-7.274 0a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5"
144
- }, null)]), g = (n) => e("svg", t({
145
- xmlns: "http://www.w3.org/2000/svg",
146
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
147
- width: "1em",
148
- height: "1em",
149
- viewBox: "0 0 12 12"
150
- }, n), [e("path", {
151
- fill: "currentColor",
152
- d: "M5.5 4.937a2 2 0 1 1 1 0V6h2a1 1 0 0 1 1 1v1.063a2 2 0 1 1-1 0V7h-5v1.063a2 2 0 1 1-1 0V7a1 1 0 0 1 1-1h2zM6 4a1 1 0 1 0 0-2a1 1 0 0 0 0 2m-3 7a1 1 0 1 0 0-2a1 1 0 0 0 0 2m5-1a1 1 0 1 0 2 0a1 1 0 0 0-2 0"
153
- }, null)]), _ = (n) => e("svg", t({
154
- xmlns: "http://www.w3.org/2000/svg",
155
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
156
- width: "1em",
157
- height: "1em",
158
- viewBox: "0 0 24 24"
159
- }, n), [e("g", {
160
- fill: "none",
161
- fillRule: "evenodd"
162
- }, [e("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }, null), e("path", {
163
- fill: "currentColor",
164
- d: "M13 13a4 4 0 0 1 4 4v2a1 1 0 1 1-2 0v-2a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v2a1 1 0 1 1-2 0v-2a4 4 0 0 1 4-4zm6 0a3 3 0 0 1 3 3v2a1 1 0 1 1-2 0v-2a1 1 0 0 0-1-1h-1.416a5.02 5.02 0 0 0-1.583-2zM9.5 3a4.5 4.5 0 1 1 0 9a4.5 4.5 0 0 1 0-9M18 6a3 3 0 1 1 0 6a3 3 0 0 1 0-6M9.5 5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5M18 8a1 1 0 1 0 0 2a1 1 0 0 0 0-2"
165
- }, null)])]), v = (n) => e("svg", t({
166
- xmlns: "http://www.w3.org/2000/svg",
167
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
168
- role: "img",
169
- width: "1em",
170
- height: "1em",
171
- viewBox: "0 0 256 256"
172
- }, n), [e("path", {
173
- fill: "currentColor",
174
- d: "M235.4 210a124.2 124.2 0 0 0-61.8-53.2a76 76 0 1 0-91.2 0A124.2 124.2 0 0 0 20.6 210a12 12 0 0 0 20.8 12a100 100 0 0 1 173.2 0a12.1 12.1 0 0 0 10.4 6a11.7 11.7 0 0 0 6-1.6a12 12 0 0 0 4.4-16.4ZM76 96a52 52 0 1 1 52 52a52 52 0 0 1-52-52Z"
175
- }, null)]), y = (n) => e("svg", t({
176
- xmlns: "http://www.w3.org/2000/svg",
177
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
178
- role: "img",
179
- width: "1em",
180
- height: "1em",
181
- viewBox: "0 0 24 24"
182
- }, n), [e("path", {
183
- fill: "currentColor",
184
- d: "m6.4 18.308l-.708-.708l5.6-5.6l-5.6-5.6l.708-.708l5.6 5.6l5.6-5.6l.708.708l-5.6 5.6l5.6 5.6l-.708.708l-5.6-5.6z"
185
- }, null)]);
186
- //#endregion
187
- export { o as _, g as a, _ as c, p as d, f, c as g, h, r as i, n as l, a as m, d as n, l as o, s as p, y as r, i as s, v as t, m as u, u as v };