@tu-design/vue 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { clsx } from "clsx";
2
2
  import { twMerge } from "tailwind-merge";
3
- import { Comment, Fragment, Teleport, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isVNode, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useModel, useSlots, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
+ import { Comment, Fragment, Teleport, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isVNode, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useModel, useSlots, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
4
4
  import { cva } from "class-variance-authority";
5
5
  import { Checkbox } from "@ark-ui/vue/checkbox";
6
6
  import { Switch } from "@ark-ui/vue/switch";
@@ -23,6 +23,7 @@ import { getCoreRowModel, getExpandedRowModel, getPaginationRowModel, getSortedR
23
23
  import { Tabs } from "@ark-ui/vue/tabs";
24
24
  import { Progress } from "@ark-ui/vue/progress";
25
25
  import { Toast, Toaster, createToaster } from "@ark-ui/vue/toast";
26
+ import { Drawer } from "@ark-ui/vue/drawer";
26
27
  //#region src/lib/utils.ts
27
28
  function cn(...inputs) {
28
29
  return twMerge(clsx(inputs));
@@ -39,6 +40,7 @@ function cn(...inputs) {
39
40
  */
40
41
  const COMPONENT_NAMES = [
41
42
  "Alert",
43
+ "AlertDialog",
42
44
  "Avatar",
43
45
  "AvatarGroup",
44
46
  "Badge",
@@ -47,10 +49,12 @@ const COMPONENT_NAMES = [
47
49
  "Card",
48
50
  "Cascader",
49
51
  "Checkbox",
52
+ "ContextMenu",
50
53
  "CurrencyInput",
51
54
  "DatePicker",
52
55
  "DateRangePicker",
53
56
  "Dialog",
57
+ "Drawer",
54
58
  "DropdownMenu",
55
59
  "Empty",
56
60
  "Form",
@@ -68,6 +72,7 @@ const COMPONENT_NAMES = [
68
72
  "NumberInput",
69
73
  "PasswordInput",
70
74
  "PinInput",
75
+ "Popconfirm",
71
76
  "Popover",
72
77
  "Progress",
73
78
  "RadioGroup",
@@ -151,7 +156,7 @@ const Slot = defineComponent({
151
156
  });
152
157
  //#endregion
153
158
  //#region src/components/button/Button.vue
154
- const _sfc_main$4 = /*@__PURE__*/ defineComponent({
159
+ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
155
160
  __name: "Button",
156
161
  props: {
157
162
  variant: {},
@@ -216,7 +221,7 @@ const FIELD_KEY = Symbol("tu-form-field");
216
221
  const FORM_ITEM_KEY = Symbol("tu-form-item");
217
222
  //#endregion
218
223
  //#region src/components/form/Form.vue
219
- const _sfc_main$15 = /*@__PURE__*/ defineComponent({
224
+ const _sfc_main$18 = /*@__PURE__*/ defineComponent({
220
225
  __name: "Form",
221
226
  props: {
222
227
  form: {},
@@ -240,7 +245,7 @@ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
240
245
  * 把 id / aria-invalid / aria-describedby 合并到唯一子元素(cloneVNode)。
241
246
  * aria 全同步计算:description/message 的 presence 由 FormItem 的 refs 提供。
242
247
  */
243
- const _sfc_main$16 = defineComponent({
248
+ const _sfc_main$19 = defineComponent({
244
249
  name: "TuFormControl",
245
250
  props: { class: {
246
251
  type: String,
@@ -272,8 +277,8 @@ const _sfc_main$16 = defineComponent({
272
277
  });
273
278
  //#endregion
274
279
  //#region src/components/form/FormDescription.vue
275
- const _hoisted_1$29 = ["id"];
276
- const _sfc_main$17 = /*@__PURE__*/ defineComponent({
280
+ const _hoisted_1$32 = ["id"];
281
+ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
277
282
  __name: "FormDescription",
278
283
  props: { class: {} },
279
284
  setup(__props) {
@@ -286,7 +291,7 @@ const _sfc_main$17 = /*@__PURE__*/ defineComponent({
286
291
  return openBlock(), createElementBlock("p", {
287
292
  id: unref(itemCtx)?.descriptionId,
288
293
  class: normalizeClass(unref(cn)("text-muted-foreground text-sm", props.class))
289
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$29);
294
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$32);
290
295
  };
291
296
  }
292
297
  });
@@ -297,7 +302,7 @@ const _sfc_main$17 = /*@__PURE__*/ defineComponent({
297
302
  * field 实例只能在 form.Field 的插槽执行期取得(时序早于子组件 setup),
298
303
  * 故用 defineComponent + render function 在插槽回调中写入 ShallowRef。
299
304
  */
300
- const _sfc_main$18 = defineComponent({
305
+ const _sfc_main$21 = defineComponent({
301
306
  name: "TuFormField",
302
307
  props: {
303
308
  /** 字段名(TanStack 深层 key 的运行时形态) */
@@ -337,8 +342,8 @@ const _sfc_main$18 = defineComponent({
337
342
  });
338
343
  //#endregion
339
344
  //#region src/components/form/FormItem.vue
340
- const _hoisted_1$28 = ["data-invalid"];
341
- const _sfc_main$19 = /*@__PURE__*/ defineComponent({
345
+ const _hoisted_1$31 = ["data-invalid"];
346
+ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
342
347
  __name: "FormItem",
343
348
  setup(__props) {
344
349
  const fieldCtx = inject(FIELD_KEY);
@@ -362,14 +367,14 @@ const _sfc_main$19 = /*@__PURE__*/ defineComponent({
362
367
  return openBlock(), createElementBlock("div", {
363
368
  class: normalizeClass(unref(cn)("group flex flex-col gap-1.5")),
364
369
  "data-invalid": isInvalid.value ? "" : void 0
365
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$28);
370
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$31);
366
371
  };
367
372
  }
368
373
  });
369
374
  //#endregion
370
375
  //#region src/components/form/FormLabel.vue
371
- const _hoisted_1$27 = ["for", "data-invalid"];
372
- const _sfc_main$20 = /*@__PURE__*/ defineComponent({
376
+ const _hoisted_1$30 = ["for", "data-invalid"];
377
+ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
373
378
  __name: "FormLabel",
374
379
  props: { class: {} },
375
380
  setup(__props) {
@@ -382,14 +387,14 @@ const _sfc_main$20 = /*@__PURE__*/ defineComponent({
382
387
  for: unref(itemCtx)?.controlId,
383
388
  "data-invalid": isInvalid.value ? "" : void 0,
384
389
  class: normalizeClass(unref(cn)("text-sm font-medium leading-none data-invalid:text-destructive", props.class))
385
- }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$27);
390
+ }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$30);
386
391
  };
387
392
  }
388
393
  });
389
394
  //#endregion
390
395
  //#region src/components/form/FormMessage.vue
391
- const _hoisted_1$26 = ["id"];
392
- const _sfc_main$21 = /*@__PURE__*/ defineComponent({
396
+ const _hoisted_1$29 = ["id"];
397
+ const _sfc_main$24 = /*@__PURE__*/ defineComponent({
393
398
  __name: "FormMessage",
394
399
  props: {
395
400
  message: {},
@@ -413,13 +418,13 @@ const _sfc_main$21 = /*@__PURE__*/ defineComponent({
413
418
  key: 0,
414
419
  id: unref(itemCtx)?.messageId,
415
420
  class: normalizeClass(unref(cn)("text-destructive text-sm", props.class))
416
- }, toDisplayString(errorText.value), 11, _hoisted_1$26)) : createCommentVNode("v-if", true);
421
+ }, toDisplayString(errorText.value), 11, _hoisted_1$29)) : createCommentVNode("v-if", true);
417
422
  };
418
423
  }
419
424
  });
420
425
  //#endregion
421
426
  //#region src/components/form/FormSubscribe.vue
422
- const _sfc_main$23 = /*@__PURE__*/ defineComponent({
427
+ const _sfc_main$26 = /*@__PURE__*/ defineComponent({
423
428
  __name: "FormSubscribe",
424
429
  setup(__props) {
425
430
  const form = inject(FORM_KEY, void 0);
@@ -443,7 +448,7 @@ const _sfc_main$23 = /*@__PURE__*/ defineComponent({
443
448
  * aria 接线(id/aria-invalid/aria-describedby)由 FormControl 的 cloneVNode 机制继承。
444
449
  * widget 调用发生在 FormField 插槽期,拿到 field 实例后组装 WidgetContext。
445
450
  */
446
- const _sfc_main$58 = defineComponent({
451
+ const _sfc_main$62 = defineComponent({
447
452
  name: "TuFormRenderField",
448
453
  props: {
449
454
  item: {
@@ -462,7 +467,7 @@ const _sfc_main$58 = defineComponent({
462
467
  }
463
468
  },
464
469
  setup(props) {
465
- return () => h(_sfc_main$18, {
470
+ return () => h(_sfc_main$21, {
466
471
  name: String(props.item.key),
467
472
  validators: props.item.validators
468
473
  }, { default: ({ field }) => {
@@ -470,22 +475,22 @@ const _sfc_main$58 = defineComponent({
470
475
  if (import.meta.env.DEV) console.warn("[tu-design] <FormRenderField> 未取得 field 上下文(FormRender 缺 definition/form?)");
471
476
  return null;
472
477
  }
473
- return h(_sfc_main$19, { class: props.item.class }, { default: () => [
474
- props.item.hideLabel ? null : h(_sfc_main$20, () => props.item.title),
475
- h(_sfc_main$16, () => props.widget({
478
+ return h(_sfc_main$22, { class: props.item.class }, { default: () => [
479
+ props.item.hideLabel ? null : h(_sfc_main$23, () => props.item.title),
480
+ h(_sfc_main$19, () => props.widget({
476
481
  field,
477
482
  item: props.item,
478
483
  values: props.values
479
484
  })),
480
- props.item.description ? h(_sfc_main$17, () => props.item.description) : null,
481
- h(_sfc_main$21)
485
+ props.item.description ? h(_sfc_main$20, () => props.item.description) : null,
486
+ h(_sfc_main$24)
482
487
  ] });
483
488
  } });
484
489
  }
485
490
  });
486
491
  //#endregion
487
492
  //#region src/components/checkbox/Checkbox.vue
488
- const _hoisted_1$25 = {
493
+ const _hoisted_1$28 = {
489
494
  key: 0,
490
495
  viewBox: "0 0 24 24",
491
496
  fill: "none",
@@ -494,7 +499,7 @@ const _hoisted_1$25 = {
494
499
  "stroke-linecap": "round",
495
500
  class: "size-3.5"
496
501
  };
497
- const _hoisted_2$14 = {
502
+ const _hoisted_2$17 = {
498
503
  key: 1,
499
504
  viewBox: "0 0 24 24",
500
505
  fill: "none",
@@ -504,7 +509,7 @@ const _hoisted_2$14 = {
504
509
  "stroke-linejoin": "round",
505
510
  class: "size-3.5"
506
511
  };
507
- const _sfc_main$8 = /*@__PURE__*/ defineComponent({
512
+ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
508
513
  __name: "Checkbox",
509
514
  props: {
510
515
  checked: {
@@ -558,7 +563,7 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
558
563
  createVNode(unref(Checkbox).HiddenInput),
559
564
  createVNode(unref(Checkbox).Control, { class: "border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 peer size-4 shrink-0 rounded-[4px] border bg-transparent shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50" }, {
560
565
  default: withCtx(() => [createVNode(unref(Checkbox).Indicator, { class: "flex items-center justify-center text-current" }, {
561
- default: withCtx(() => [createCommentVNode(" 半选态(data-state=indeterminate)显示短横线,选中态显示对勾 "), isChecked.value === "indeterminate" ? (openBlock(), createElementBlock("svg", _hoisted_1$25, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M5 12h14" }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_2$14, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])]))]),
566
+ default: withCtx(() => [createCommentVNode(" 半选态(data-state=indeterminate)显示短横线,选中态显示对勾 "), isChecked.value === "indeterminate" ? (openBlock(), createElementBlock("svg", _hoisted_1$28, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M5 12h14" }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_2$17, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])]))]),
562
567
  _: 1
563
568
  })]),
564
569
  _: 1
@@ -584,7 +589,7 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
584
589
  });
585
590
  //#endregion
586
591
  //#region src/components/switch/Switch.vue
587
- const _sfc_main$38 = /*@__PURE__*/ defineComponent({
592
+ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
588
593
  __name: "Switch",
589
594
  props: {
590
595
  checked: {
@@ -682,14 +687,14 @@ function bindField(field, spec) {
682
687
  * 单行布局倾向 hideLabel + label 经 item.title 展示由使用者决定。
683
688
  */
684
689
  function renderCheckboxItem(options = {}) {
685
- return (ctx) => h(_sfc_main$8, {
690
+ return (ctx) => h(_sfc_main$9, {
686
691
  ...options,
687
692
  ...bindField(ctx.field, CHECKED),
688
693
  ...ctx.item.componentProps
689
694
  });
690
695
  }
691
696
  function renderSwitchItem(options = {}) {
692
- return (ctx) => h(_sfc_main$38, {
697
+ return (ctx) => h(_sfc_main$42, {
693
698
  ...options,
694
699
  ...bindField(ctx.field, CHECKED),
695
700
  ...ctx.item.componentProps
@@ -743,14 +748,14 @@ function formatCurrency(value, valueUnit, labelUnit) {
743
748
  }
744
749
  //#endregion
745
750
  //#region src/components/currency-input/CurrencyInput.vue
746
- const _hoisted_1$24 = ["data-invalid"];
747
- const _hoisted_2$13 = [
751
+ const _hoisted_1$27 = ["data-invalid"];
752
+ const _hoisted_2$16 = [
748
753
  "value",
749
754
  "placeholder",
750
755
  "disabled",
751
756
  "aria-invalid"
752
757
  ];
753
- const _sfc_main$9 = /*@__PURE__*/ defineComponent({
758
+ const _sfc_main$11 = /*@__PURE__*/ defineComponent({
754
759
  inheritAttrs: false,
755
760
  __name: "CurrencyInput",
756
761
  props: {
@@ -819,10 +824,10 @@ const _sfc_main$9 = /*@__PURE__*/ defineComponent({
819
824
  "aria-invalid": props.invalid || void 0,
820
825
  class: "bg-transparent h-full w-full min-w-0 flex-1 px-3 text-sm tabular-nums outline-none disabled:cursor-not-allowed disabled:opacity-50",
821
826
  onInput
822
- }), null, 16, _hoisted_2$13), createElementVNode("div", {
827
+ }), null, 16, _hoisted_2$16), createElementVNode("div", {
823
828
  "aria-hidden": "true",
824
829
  class: normalizeClass(unref(cn)("border-input text-muted-foreground flex h-full shrink-0 items-center border-l bg-muted/40 px-3 text-sm", props.disabled && "opacity-50"))
825
- }, toDisplayString(props.labelUnit), 3)], 10, _hoisted_1$24);
830
+ }, toDisplayString(props.labelUnit), 3)], 10, _hoisted_1$27);
826
831
  };
827
832
  }
828
833
  });
@@ -939,7 +944,7 @@ const navBtnCls = "text-muted-foreground inline-flex size-8 items-center justify
939
944
  const viewTriggerCls = "hover:bg-accent inline-flex items-center gap-1 rounded-[3px] px-3 py-1.5 text-sm font-semibold text-foreground outline-none transition-colors disabled:pointer-events-none";
940
945
  const viewTitleCls = "text-sm font-semibold text-foreground";
941
946
  /** 年代范围文本(zag 无现成 part,由 focusedValue.year 推算):2026 → "2020 - 2029" */
942
- const _sfc_main$57 = /*@__PURE__*/ defineComponent({
947
+ const _sfc_main$61 = /*@__PURE__*/ defineComponent({
943
948
  __name: "CalendarNav",
944
949
  props: {
945
950
  /** 导航条服务的视图,决定中间内容形态:day=ViewTrigger(上钻)/ month=年份 / year=年代 */
@@ -1009,7 +1014,7 @@ view: {
1009
1014
  });
1010
1015
  //#endregion
1011
1016
  //#region src/components/calendar/CalendarBody.vue
1012
- const _hoisted_1$23 = { class: "flex gap-6" };
1017
+ const _hoisted_1$26 = { class: "flex gap-6" };
1013
1018
  const dayTriggerCls = "group relative flex h-8 w-full cursor-pointer items-center justify-center outline-none data-[outside-view]:pointer-events-none data-[disabled]:pointer-events-none data-[in-range]:not-data-[outside-view]:not-data-[range-start]:not-data-[range-end]:bg-primary/10 data-[range-start]:rounded-l-[3px] data-[range-end]:rounded-r-[3px] data-[week-selected]:bg-primary data-[week-selected]:data-[outside-view]:bg-primary/40 data-[week-selected]:hover:data-[outside-view]:bg-primary/40 group-hover/week-row:not-data-[week-selected]:not-data-[outside-view]:bg-primary/10 group-hover/week-row:data-[outside-view]:not-data-[week-selected]:bg-primary/5";
1014
1019
  const dayDotCls = "flex size-6 items-center justify-center rounded-[3px] text-sm transition-colors group-hover:not-group-data-[week-selected]:bg-accent group-data-[focus]:not-group-data-[outside-view]:not-group-data-[week-selected]:bg-accent group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:bg-primary group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:font-medium group-data-[selected]:not-group-data-[week-selected]:not-group-data-[outside-view]:text-primary-foreground group-data-[week-selected]:bg-transparent group-data-[week-selected]:font-medium group-data-[week-selected]:text-primary-foreground group-data-[week-selected]:hover:bg-white/20 group-data-[today]:not-group-data-[selected]:text-primary group-data-[today]:not-group-data-[selected]:font-semibold group-data-[unavailable]:line-through group-data-[unavailable]:opacity-30 group-data-[disabled]:opacity-40 group-data-[outside-view]:opacity-30";
1015
1020
  const cellCls = "flex h-9 w-full items-center justify-center rounded-[3px] text-sm outline-none hover:bg-accent data-[selected]:bg-primary data-[selected]:font-medium data-[selected]:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-40";
@@ -1018,7 +1023,7 @@ const headCellCls = "text-muted-foreground h-8 border-x-0! border-t-0! border-b
1018
1023
  const bodyCellCls = "border-0! p-0! text-center";
1019
1024
  const rowCls = "bg-transparent!";
1020
1025
  /** 表 i 的锚点月起点(zag getOffset({months: i-1}).visibleRange.start) */
1021
- const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1026
+ const _sfc_main$60 = /*@__PURE__*/ defineComponent({
1022
1027
  __name: "CalendarBody",
1023
1028
  props: {
1024
1029
  mode: { default: "day" },
@@ -1059,9 +1064,9 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1059
1064
  createVNode(unref(DatePicker).View, { view: "day" }, {
1060
1065
  default: withCtx(() => [
1061
1066
  createCommentVNode(" day 视图导航条在 View 内:viewProps=day → GOTO.NEXT=focusNextPage(翻月) "),
1062
- createVNode(_sfc_main$57, { view: "day" }),
1067
+ createVNode(_sfc_main$61, { view: "day" }),
1063
1068
  createVNode(unref(DatePicker).Context, null, {
1064
- default: withCtx((context) => [createElementVNode("div", _hoisted_1$23, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.numOfMonths, (i) => {
1069
+ default: withCtx((context) => [createElementVNode("div", _hoisted_1$26, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.numOfMonths, (i) => {
1065
1070
  return openBlock(), createBlock(unref(DatePicker).Table, {
1066
1071
  key: i,
1067
1072
  class: normalizeClass(tableCls)
@@ -1118,7 +1123,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1118
1123
  createVNode(unref(DatePicker).View, { view: "month" }, {
1119
1124
  default: withCtx(() => [
1120
1125
  createCommentVNode(" 切换视图导航条也在 View 内:DatePicker 切月视图后 GOTO.NEXT=focusNextYear(修复 backlog) "),
1121
- createVNode(_sfc_main$57, { view: "month" }),
1126
+ createVNode(_sfc_main$61, { view: "month" }),
1122
1127
  createVNode(unref(DatePicker).Context, null, {
1123
1128
  default: withCtx((context) => [createVNode(unref(DatePicker).Table, { class: normalizeClass(tableCls) }, {
1124
1129
  default: withCtx(() => [createVNode(unref(DatePicker).TableBody, null, {
@@ -1156,7 +1161,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1156
1161
  _: 1
1157
1162
  }),
1158
1163
  createVNode(unref(DatePicker).View, { view: "year" }, {
1159
- default: withCtx(() => [createVNode(_sfc_main$57, { view: "year" }), createVNode(unref(DatePicker).Context, null, {
1164
+ default: withCtx(() => [createVNode(_sfc_main$61, { view: "year" }), createVNode(unref(DatePicker).Context, null, {
1160
1165
  default: withCtx((context) => [createVNode(unref(DatePicker).Table, { class: normalizeClass(tableCls) }, {
1161
1166
  default: withCtx(() => [createVNode(unref(DatePicker).TableBody, null, {
1162
1167
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(context.getYearsGrid({ columns: 4 }), (yearsRow, id) => {
@@ -1194,7 +1199,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1194
1199
  }, {
1195
1200
  default: withCtx(() => [
1196
1201
  createCommentVNode(" 导航条必须在 View 子树内:Prev/NextTrigger 才能拿到 view=\"month\"(GOTO.NEXT=focusNextYear) "),
1197
- createVNode(_sfc_main$57, { view: "month" }),
1202
+ createVNode(_sfc_main$61, { view: "month" }),
1198
1203
  createVNode(unref(DatePicker).Context, null, {
1199
1204
  default: withCtx((context) => [createVNode(unref(DatePicker).Table, { class: normalizeClass(tableCls) }, {
1200
1205
  default: withCtx(() => [createVNode(unref(DatePicker).TableBody, null, {
@@ -1236,7 +1241,7 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1236
1241
  }, {
1237
1242
  default: withCtx(() => [
1238
1243
  createCommentVNode(" 导航条必须在 View 子树内:Prev/NextTrigger 才能拿到 view=\"year\"(GOTO.NEXT=focusNextDecade) "),
1239
- createVNode(_sfc_main$57, { view: "year" }),
1244
+ createVNode(_sfc_main$61, { view: "year" }),
1240
1245
  createVNode(unref(DatePicker).Context, null, {
1241
1246
  default: withCtx((context) => [createVNode(unref(DatePicker).Table, { class: normalizeClass(tableCls) }, {
1242
1247
  default: withCtx(() => [createVNode(unref(DatePicker).TableBody, null, {
@@ -1275,11 +1280,11 @@ const _sfc_main$56 = /*@__PURE__*/ defineComponent({
1275
1280
  });
1276
1281
  //#endregion
1277
1282
  //#region src/components/calendar/Calendar.vue
1278
- const _hoisted_1$22 = {
1283
+ const _hoisted_1$25 = {
1279
1284
  key: 0,
1280
1285
  class: "w-fit"
1281
1286
  };
1282
- const _sfc_main$5 = /*@__PURE__*/ defineComponent({
1287
+ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
1283
1288
  __name: "Calendar",
1284
1289
  props: {
1285
1290
  /** 视图形态:day=日网格(可切月/年);standalone 时 month/year 同时派生视图锁定 */
@@ -1347,7 +1352,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
1347
1352
  emit("update:modelValue", value);
1348
1353
  }
1349
1354
  return (_ctx, _cache) => {
1350
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n standalone 独立形态:自建 Root。:open=\"true\" 恒开——独立卡片没有输入框/触发钮\n 去打开弹层,不恒开则 Content hidden 整卡不可见。沿用已验证的 Root > Content 直渲形态\n (无 Positioner:卡片非浮层,就地渲染)。\n 外层 div 承接 attrs(Ark Root 不透传 attrs,实测 class/id 会丢);w-fit 收缩包裹卡片宽度。\n "), standalone ? (openBlock(), createElementBlock("div", _hoisted_1$22, [createVNode(unref(DatePicker).Root, {
1355
+ return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n standalone 独立形态:自建 Root。:open=\"true\" 恒开——独立卡片没有输入框/触发钮\n 去打开弹层,不恒开则 Content hidden 整卡不可见。沿用已验证的 Root > Content 直渲形态\n (无 Positioner:卡片非浮层,就地渲染)。\n 外层 div 承接 attrs(Ark Root 不透传 attrs,实测 class/id 会丢);w-fit 收缩包裹卡片宽度。\n "), standalone ? (openBlock(), createElementBlock("div", _hoisted_1$25, [createVNode(unref(DatePicker).Root, {
1351
1356
  "model-value": rootValue.value,
1352
1357
  open: true,
1353
1358
  "num-of-months": props.numOfMonths,
@@ -1360,7 +1365,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
1360
1365
  "onUpdate:modelValue": handleValueUpdate
1361
1366
  }, {
1362
1367
  default: withCtx(() => [createVNode(unref(DatePicker).Content, null, {
1363
- default: withCtx(() => [createVNode(_sfc_main$56, {
1368
+ default: withCtx(() => [createVNode(_sfc_main$60, {
1364
1369
  mode: props.mode,
1365
1370
  "num-of-months": props.numOfMonths,
1366
1371
  week: props.week,
@@ -1383,7 +1388,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
1383
1388
  "max",
1384
1389
  "is-date-unavailable",
1385
1390
  "locale"
1386
- ])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" embedded 内嵌形态:宿主 Picker 的 Root 供能,纯卡片内核 "), createVNode(_sfc_main$56, {
1391
+ ])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" embedded 内嵌形态:宿主 Picker 的 Root 供能,纯卡片内核 "), createVNode(_sfc_main$60, {
1387
1392
  mode: props.mode,
1388
1393
  "num-of-months": props.numOfMonths,
1389
1394
  week: props.week,
@@ -1406,8 +1411,8 @@ var export_helper_default = (sfc, props) => {
1406
1411
  };
1407
1412
  //#endregion
1408
1413
  //#region src/components/date-shared/CalendarIcon.vue
1409
- const _sfc_main$55 = {};
1410
- const _hoisted_1$21 = {
1414
+ const _sfc_main$59 = {};
1415
+ const _hoisted_1$24 = {
1411
1416
  viewBox: "0 0 24 24",
1412
1417
  fill: "none",
1413
1418
  stroke: "currentColor",
@@ -1417,7 +1422,7 @@ const _hoisted_1$21 = {
1417
1422
  class: "size-4"
1418
1423
  };
1419
1424
  function _sfc_render$3(_ctx, _cache) {
1420
- return openBlock(), createElementBlock("svg", _hoisted_1$21, [..._cache[0] || (_cache[0] = [
1425
+ return openBlock(), createElementBlock("svg", _hoisted_1$24, [..._cache[0] || (_cache[0] = [
1421
1426
  createElementVNode("rect", {
1422
1427
  width: "18",
1423
1428
  height: "18",
@@ -1430,11 +1435,11 @@ function _sfc_render$3(_ctx, _cache) {
1430
1435
  createElementVNode("path", { d: "M3 10h18" }, null, -1)
1431
1436
  ])]);
1432
1437
  }
1433
- var CalendarIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$55, [["render", _sfc_render$3]]);
1438
+ var CalendarIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$59, [["render", _sfc_render$3]]);
1434
1439
  //#endregion
1435
1440
  //#region src/components/date-shared/ClearIcon.vue
1436
- const _sfc_main$54 = {};
1437
- const _hoisted_1$20 = {
1441
+ const _sfc_main$58 = {};
1442
+ const _hoisted_1$23 = {
1438
1443
  viewBox: "0 0 24 24",
1439
1444
  fill: "none",
1440
1445
  stroke: "currentColor",
@@ -1444,12 +1449,12 @@ const _hoisted_1$20 = {
1444
1449
  class: "size-4"
1445
1450
  };
1446
1451
  function _sfc_render$2(_ctx, _cache) {
1447
- return openBlock(), createElementBlock("svg", _hoisted_1$20, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
1452
+ return openBlock(), createElementBlock("svg", _hoisted_1$23, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
1448
1453
  }
1449
- var ClearIcon_default$1 = /*#__PURE__*/ export_helper_default(_sfc_main$54, [["render", _sfc_render$2]]);
1454
+ var ClearIcon_default$1 = /*#__PURE__*/ export_helper_default(_sfc_main$58, [["render", _sfc_render$2]]);
1450
1455
  //#endregion
1451
1456
  //#region src/components/date-picker/DatePicker.vue
1452
- const _sfc_main$10 = /*@__PURE__*/ defineComponent({
1457
+ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
1453
1458
  inheritAttrs: false,
1454
1459
  __name: "DatePicker",
1455
1460
  props: {
@@ -1591,7 +1596,7 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
1591
1596
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患。 "),
1592
1597
  (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(DatePicker).Positioner, { class: "z-50" }, {
1593
1598
  default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 rounded-md border shadow-md")) }, {
1594
- default: withCtx(() => [createVNode(unref(_sfc_main$5))]),
1599
+ default: withCtx(() => [createVNode(unref(_sfc_main$6))]),
1595
1600
  _: 1
1596
1601
  }, 8, ["class"])]),
1597
1602
  _: 1
@@ -1616,7 +1621,7 @@ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
1616
1621
  });
1617
1622
  //#endregion
1618
1623
  //#region src/components/date-range-picker/DateRangePicker.vue
1619
- const _sfc_main$11 = /*@__PURE__*/ defineComponent({
1624
+ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
1620
1625
  inheritAttrs: false,
1621
1626
  __name: "DateRangePicker",
1622
1627
  props: {
@@ -1797,7 +1802,7 @@ const _sfc_main$11 = /*@__PURE__*/ defineComponent({
1797
1802
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患。 "),
1798
1803
  (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(DatePicker).Positioner, { class: "z-50" }, {
1799
1804
  default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 rounded-md border shadow-md")) }, {
1800
- default: withCtx(() => [createVNode(unref(_sfc_main$5), { "num-of-months": props.numOfMonths }, null, 8, ["num-of-months"])]),
1805
+ default: withCtx(() => [createVNode(unref(_sfc_main$6), { "num-of-months": props.numOfMonths }, null, 8, ["num-of-months"])]),
1801
1806
  _: 1
1802
1807
  }, 8, ["class"])]),
1803
1808
  _: 1
@@ -1823,7 +1828,7 @@ const _sfc_main$11 = /*@__PURE__*/ defineComponent({
1823
1828
  });
1824
1829
  //#endregion
1825
1830
  //#region src/components/month-picker/MonthPicker.vue
1826
- const _sfc_main$26 = /*@__PURE__*/ defineComponent({
1831
+ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
1827
1832
  inheritAttrs: false,
1828
1833
  __name: "MonthPicker",
1829
1834
  props: {
@@ -1965,7 +1970,7 @@ const _sfc_main$26 = /*@__PURE__*/ defineComponent({
1965
1970
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患。 "),
1966
1971
  (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(DatePicker).Positioner, { class: "z-50" }, {
1967
1972
  default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 rounded-md border shadow-md")) }, {
1968
- default: withCtx(() => [createVNode(unref(_sfc_main$5), { mode: "month" })]),
1973
+ default: withCtx(() => [createVNode(unref(_sfc_main$6), { mode: "month" })]),
1969
1974
  _: 1
1970
1975
  }, 8, ["class"])]),
1971
1976
  _: 1
@@ -1995,7 +2000,7 @@ function numberOrNull(details) {
1995
2000
  }
1996
2001
  //#endregion
1997
2002
  //#region src/components/number-input/NumberInput.vue
1998
- const _sfc_main$27 = /*@__PURE__*/ defineComponent({
2003
+ const _sfc_main$30 = /*@__PURE__*/ defineComponent({
1999
2004
  inheritAttrs: false,
2000
2005
  __name: "NumberInput",
2001
2006
  props: {
@@ -2104,8 +2109,8 @@ const _sfc_main$27 = /*@__PURE__*/ defineComponent({
2104
2109
  });
2105
2110
  //#endregion
2106
2111
  //#region src/components/password-input/PasswordInput.vue
2107
- const _hoisted_1$19 = ["data-invalid"];
2108
- const _hoisted_2$12 = [
2112
+ const _hoisted_1$22 = ["data-invalid"];
2113
+ const _hoisted_2$15 = [
2109
2114
  "type",
2110
2115
  "value",
2111
2116
  "autocomplete",
@@ -2113,7 +2118,7 @@ const _hoisted_2$12 = [
2113
2118
  "disabled",
2114
2119
  "aria-invalid"
2115
2120
  ];
2116
- const _hoisted_3$10 = [
2121
+ const _hoisted_3$11 = [
2117
2122
  "aria-label",
2118
2123
  "aria-pressed",
2119
2124
  "disabled"
@@ -2140,7 +2145,7 @@ const _hoisted_5$7 = {
2140
2145
  class: "size-4",
2141
2146
  "aria-hidden": "true"
2142
2147
  };
2143
- const _sfc_main$28 = /*@__PURE__*/ defineComponent({
2148
+ const _sfc_main$31 = /*@__PURE__*/ defineComponent({
2144
2149
  inheritAttrs: false,
2145
2150
  __name: "PasswordInput",
2146
2151
  props: {
@@ -2206,7 +2211,7 @@ const _sfc_main$28 = /*@__PURE__*/ defineComponent({
2206
2211
  "aria-invalid": props.invalid || void 0,
2207
2212
  class: "bg-transparent h-full w-full min-w-0 flex-1 rounded-md px-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
2208
2213
  onInput
2209
- }), null, 16, _hoisted_2$12), createElementVNode("button", {
2214
+ }), null, 16, _hoisted_2$15), createElementVNode("button", {
2210
2215
  type: "button",
2211
2216
  "aria-label": isVisible.value ? "隐藏密码" : "显示密码",
2212
2217
  "aria-pressed": isVisible.value ? "true" : "false",
@@ -2227,14 +2232,14 @@ const _sfc_main$28 = /*@__PURE__*/ defineComponent({
2227
2232
  cx: "12",
2228
2233
  cy: "12",
2229
2234
  r: "3"
2230
- }, null, -1)])]))])], 8, _hoisted_3$10)], 10, _hoisted_1$19);
2235
+ }, null, -1)])]))])], 8, _hoisted_3$11)], 10, _hoisted_1$22);
2231
2236
  };
2232
2237
  }
2233
2238
  });
2234
2239
  //#endregion
2235
2240
  //#region src/components/textarea/Textarea.vue
2236
- const _hoisted_1$18 = ["aria-invalid"];
2237
- const _sfc_main$41 = /*@__PURE__*/ defineComponent({
2241
+ const _hoisted_1$21 = ["aria-invalid"];
2242
+ const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2238
2243
  __name: "Textarea",
2239
2244
  props: /*@__PURE__*/ mergeModels({
2240
2245
  class: {},
@@ -2252,13 +2257,13 @@ const _sfc_main$41 = /*@__PURE__*/ defineComponent({
2252
2257
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
2253
2258
  "aria-invalid": props.invalid ? "true" : void 0,
2254
2259
  class: normalizeClass(unref(cn)("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive md:text-sm", props.class))
2255
- }, null, 10, _hoisted_1$18)), [[vModelText, modelValue.value]]);
2260
+ }, null, 10, _hoisted_1$21)), [[vModelText, modelValue.value]]);
2256
2261
  };
2257
2262
  }
2258
2263
  });
2259
2264
  //#endregion
2260
2265
  //#region src/components/week-picker/WeekPicker.vue
2261
- const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2266
+ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
2262
2267
  inheritAttrs: false,
2263
2268
  __name: "WeekPicker",
2264
2269
  props: {
@@ -2414,7 +2419,7 @@ const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2414
2419
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患。 "),
2415
2420
  (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(DatePicker).Positioner, { class: "z-50" }, {
2416
2421
  default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 rounded-md border shadow-md")) }, {
2417
- default: withCtx(() => [createVNode(unref(_sfc_main$5), {
2422
+ default: withCtx(() => [createVNode(unref(_sfc_main$6), {
2418
2423
  week: "",
2419
2424
  locale: props.locale
2420
2425
  }, null, 8, ["locale"])]),
@@ -2440,7 +2445,7 @@ const _sfc_main$45 = /*@__PURE__*/ defineComponent({
2440
2445
  });
2441
2446
  //#endregion
2442
2447
  //#region src/components/year-picker/YearPicker.vue
2443
- const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2448
+ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
2444
2449
  inheritAttrs: false,
2445
2450
  __name: "YearPicker",
2446
2451
  props: {
@@ -2579,7 +2584,7 @@ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2579
2584
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM——隔离外层 FormControl 的 group class\n (group-hover 会污染面板内全部格子),并消除 overflow 容器裁剪弹层的隐患。 "),
2580
2585
  (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(DatePicker).Positioner, { class: "z-50" }, {
2581
2586
  default: withCtx(() => [createVNode(unref(DatePicker).Content, { class: normalizeClass(unref(cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 rounded-md border shadow-md")) }, {
2582
- default: withCtx(() => [createVNode(unref(_sfc_main$5), { mode: "year" })]),
2587
+ default: withCtx(() => [createVNode(unref(_sfc_main$6), { mode: "year" })]),
2583
2588
  _: 1
2584
2589
  }, 8, ["class"])]),
2585
2590
  _: 1
@@ -2610,7 +2615,7 @@ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
2610
2615
  */
2611
2616
  /** password widget:密码输入(autoComplete 为组件真实 prop,直接派生透传) */
2612
2617
  function renderPasswordItem(options = {}) {
2613
- return (ctx) => h(_sfc_main$28, {
2618
+ return (ctx) => h(_sfc_main$31, {
2614
2619
  placeholder: ctx.item.placeholder,
2615
2620
  ...options,
2616
2621
  ...bindField(ctx.field, MODEL_VALUE),
@@ -2619,7 +2624,7 @@ function renderPasswordItem(options = {}) {
2619
2624
  }
2620
2625
  /** number widget:数值输入(modelValue: number|null) */
2621
2626
  function renderNumberItem(options = {}) {
2622
- return (ctx) => h(_sfc_main$27, {
2627
+ return (ctx) => h(_sfc_main$30, {
2623
2628
  ...options,
2624
2629
  ...bindField(ctx.field, MODEL_VALUE),
2625
2630
  ...ctx.item.componentProps
@@ -2627,7 +2632,7 @@ function renderNumberItem(options = {}) {
2627
2632
  }
2628
2633
  /** currency widget:金额输入(labelUnit/valueUnit 单位展示) */
2629
2634
  function renderCurrencyItem(options = {}) {
2630
- return (ctx) => h(_sfc_main$9, {
2635
+ return (ctx) => h(_sfc_main$11, {
2631
2636
  placeholder: ctx.item.placeholder,
2632
2637
  ...options,
2633
2638
  ...bindField(ctx.field, MODEL_VALUE),
@@ -2636,7 +2641,7 @@ function renderCurrencyItem(options = {}) {
2636
2641
  }
2637
2642
  /** textarea widget:多行文本(placeholder/rows 为原生 attr 透传) */
2638
2643
  function renderTextareaItem(options = {}) {
2639
- return (ctx) => h(_sfc_main$41, {
2644
+ return (ctx) => h(_sfc_main$45, {
2640
2645
  placeholder: ctx.item.placeholder,
2641
2646
  ...options,
2642
2647
  ...bindField(ctx.field, MODEL_VALUE),
@@ -2656,25 +2661,25 @@ function pickerRenderer(component, options) {
2656
2661
  });
2657
2662
  }
2658
2663
  function renderDatePickerItem(options = {}) {
2659
- return pickerRenderer(_sfc_main$10, options);
2664
+ return pickerRenderer(_sfc_main$12, options);
2660
2665
  }
2661
2666
  function renderMonthPickerItem(options = {}) {
2662
- return pickerRenderer(_sfc_main$26, options);
2667
+ return pickerRenderer(_sfc_main$29, options);
2663
2668
  }
2664
2669
  function renderYearPickerItem(options = {}) {
2665
- return pickerRenderer(_sfc_main$46, options);
2670
+ return pickerRenderer(_sfc_main$50, options);
2666
2671
  }
2667
2672
  /** dateRangePicker widget:[start, end] | null 形态 */
2668
2673
  function renderDateRangePickerItem(options = {}) {
2669
- return pickerRenderer(_sfc_main$11, options);
2674
+ return pickerRenderer(_sfc_main$13, options);
2670
2675
  }
2671
2676
  function renderWeekPickerItem(options = {}) {
2672
- return pickerRenderer(_sfc_main$45, options);
2677
+ return pickerRenderer(_sfc_main$49, options);
2673
2678
  }
2674
2679
  //#endregion
2675
2680
  //#region src/components/input/Input.vue
2676
- const _hoisted_1$17 = ["aria-invalid"];
2677
- const _sfc_main$24 = /*@__PURE__*/ defineComponent({
2681
+ const _hoisted_1$20 = ["aria-invalid"];
2682
+ const _sfc_main$27 = /*@__PURE__*/ defineComponent({
2678
2683
  __name: "Input",
2679
2684
  props: /*@__PURE__*/ mergeModels({
2680
2685
  class: {},
@@ -2692,7 +2697,7 @@ const _sfc_main$24 = /*@__PURE__*/ defineComponent({
2692
2697
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
2693
2698
  "aria-invalid": props.invalid ? "true" : void 0,
2694
2699
  class: normalizeClass(unref(cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive", props.class))
2695
- }, null, 10, _hoisted_1$17)), [[vModelText, modelValue.value]]);
2700
+ }, null, 10, _hoisted_1$20)), [[vModelText, modelValue.value]]);
2696
2701
  };
2697
2702
  }
2698
2703
  });
@@ -2700,7 +2705,7 @@ const _sfc_main$24 = /*@__PURE__*/ defineComponent({
2700
2705
  //#region src/components/form-render/widgets/input.ts
2701
2706
  /** input widget:单行文本输入(placeholder 为原生 attr 透传,aria-invalid 由 FormControl 接线) */
2702
2707
  function renderInputItem(options = {}) {
2703
- return (ctx) => h(_sfc_main$24, {
2708
+ return (ctx) => h(_sfc_main$27, {
2704
2709
  placeholder: ctx.item.placeholder,
2705
2710
  ...options,
2706
2711
  ...bindField(ctx.field, MODEL_VALUE),
@@ -2717,7 +2722,7 @@ function normalizeSelectItem(item) {
2717
2722
  }
2718
2723
  //#endregion
2719
2724
  //#region src/components/select/Select.vue
2720
- const _sfc_main$33 = /*@__PURE__*/ defineComponent({
2725
+ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
2721
2726
  __name: "Select",
2722
2727
  props: {
2723
2728
  /** 选项列表:字符串(label = value)或 { label, value, disabled? } */
@@ -2867,7 +2872,7 @@ const _sfc_main$33 = /*@__PURE__*/ defineComponent({
2867
2872
  */
2868
2873
  function renderSelectItem(options) {
2869
2874
  const { placeholder, items, ...rootProps } = options;
2870
- return (ctx) => h(_sfc_main$33, {
2875
+ return (ctx) => h(_sfc_main$37, {
2871
2876
  ...rootProps,
2872
2877
  items,
2873
2878
  placeholder: placeholder ?? ctx.item.placeholder,
@@ -2877,7 +2882,7 @@ function renderSelectItem(options) {
2877
2882
  }
2878
2883
  //#endregion
2879
2884
  //#region src/components/radio-group/RadioGroup.vue
2880
- const _sfc_main$32 = /*@__PURE__*/ defineComponent({
2885
+ const _sfc_main$36 = /*@__PURE__*/ defineComponent({
2881
2886
  __name: "RadioGroup",
2882
2887
  props: {
2883
2888
  items: {},
@@ -2962,7 +2967,7 @@ const _sfc_main$32 = /*@__PURE__*/ defineComponent({
2962
2967
  });
2963
2968
  //#endregion
2964
2969
  //#region src/components/slider/Slider.vue
2965
- const _sfc_main$36 = /*@__PURE__*/ defineComponent({
2970
+ const _sfc_main$40 = /*@__PURE__*/ defineComponent({
2966
2971
  __name: "Slider",
2967
2972
  props: {
2968
2973
  modelValue: {},
@@ -3027,7 +3032,7 @@ const _sfc_main$36 = /*@__PURE__*/ defineComponent({
3027
3032
  * 命名穿透:选项字段为组件 required prop `items`,整体直传,widget 不做组装。
3028
3033
  */
3029
3034
  function renderRadioGroupItem(options) {
3030
- return (ctx) => h(_sfc_main$32, {
3035
+ return (ctx) => h(_sfc_main$36, {
3031
3036
  ...options,
3032
3037
  ...bindField(ctx.field, VALUE),
3033
3038
  ...ctx.item.componentProps
@@ -3038,7 +3043,7 @@ function renderRadioGroupItem(options) {
3038
3043
  * (值 prop 为 `value`,事件却是 `update:modelValue` 且数组语义,由 SLIDER spec 转换)。
3039
3044
  */
3040
3045
  function renderSliderItem(options = {}) {
3041
- return (ctx) => h(_sfc_main$36, {
3046
+ return (ctx) => h(_sfc_main$40, {
3042
3047
  ...options,
3043
3048
  ...bindField(ctx.field, SLIDER),
3044
3049
  ...ctx.item.componentProps
@@ -3046,8 +3051,8 @@ function renderSliderItem(options = {}) {
3046
3051
  }
3047
3052
  //#endregion
3048
3053
  //#region src/components/tree-shared/ChevronIcon.vue
3049
- const _sfc_main$53 = {};
3050
- const _hoisted_1$16 = {
3054
+ const _sfc_main$57 = {};
3055
+ const _hoisted_1$19 = {
3051
3056
  viewBox: "0 0 24 24",
3052
3057
  fill: "none",
3053
3058
  stroke: "currentColor",
@@ -3058,13 +3063,13 @@ const _hoisted_1$16 = {
3058
3063
  class: "size-4 shrink-0 transition-transform"
3059
3064
  };
3060
3065
  function _sfc_render$1(_ctx, _cache) {
3061
- return openBlock(), createElementBlock("svg", _hoisted_1$16, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)])]);
3066
+ return openBlock(), createElementBlock("svg", _hoisted_1$19, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)])]);
3062
3067
  }
3063
- var ChevronIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$53, [["render", _sfc_render$1]]);
3068
+ var ChevronIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$57, [["render", _sfc_render$1]]);
3064
3069
  //#endregion
3065
3070
  //#region src/components/tree-shared/ClearIcon.vue
3066
- const _sfc_main$52 = {};
3067
- const _hoisted_1$15 = {
3071
+ const _sfc_main$56 = {};
3072
+ const _hoisted_1$18 = {
3068
3073
  viewBox: "0 0 24 24",
3069
3074
  fill: "none",
3070
3075
  stroke: "currentColor",
@@ -3074,21 +3079,21 @@ const _hoisted_1$15 = {
3074
3079
  class: "size-4 shrink-0"
3075
3080
  };
3076
3081
  function _sfc_render(_ctx, _cache) {
3077
- return openBlock(), createElementBlock("svg", _hoisted_1$15, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
3082
+ return openBlock(), createElementBlock("svg", _hoisted_1$18, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M18 6 6 18" }, null, -1), createElementVNode("path", { d: "m6 6 12 12" }, null, -1)])]);
3078
3083
  }
3079
- var ClearIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$52, [["render", _sfc_render]]);
3084
+ var ClearIcon_default = /*#__PURE__*/ export_helper_default(_sfc_main$56, [["render", _sfc_render]]);
3080
3085
  //#endregion
3081
3086
  //#region src/components/tree-shared/ValueTags.vue
3082
- const _hoisted_1$14 = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-1" };
3083
- const _hoisted_2$11 = ["data-key"];
3084
- const _hoisted_3$9 = { class: "truncate" };
3087
+ const _hoisted_1$17 = { class: "flex min-w-0 flex-1 flex-wrap items-center gap-1" };
3088
+ const _hoisted_2$14 = ["data-key"];
3089
+ const _hoisted_3$10 = { class: "truncate" };
3085
3090
  const _hoisted_4$8 = ["aria-label", "onClick"];
3086
3091
  const _hoisted_5$6 = {
3087
3092
  key: 0,
3088
3093
  "data-part": "tag-overflow",
3089
3094
  class: "text-xs text-muted-foreground"
3090
3095
  };
3091
- const _sfc_main$51 = /*@__PURE__*/ defineComponent({
3096
+ const _sfc_main$55 = /*@__PURE__*/ defineComponent({
3092
3097
  __name: "ValueTags",
3093
3098
  props: {
3094
3099
  /** 展示的选中值(key + label) */
@@ -3118,14 +3123,14 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
3118
3123
  const shown = computed(() => props.maxTagCount === void 0 ? props.values : props.values.slice(0, props.maxTagCount));
3119
3124
  const overflow = computed(() => props.maxTagCount === void 0 ? 0 : Math.max(0, props.values.length - props.maxTagCount));
3120
3125
  return (_ctx, _cache) => {
3121
- return openBlock(), createElementBlock("span", _hoisted_1$14, [
3126
+ return openBlock(), createElementBlock("span", _hoisted_1$17, [
3122
3127
  (openBlock(true), createElementBlock(Fragment, null, renderList(shown.value, (v) => {
3123
3128
  return openBlock(), createElementBlock("span", {
3124
3129
  key: v.key,
3125
3130
  "data-part": "tag",
3126
3131
  "data-key": v.key,
3127
3132
  class: "inline-flex max-w-full items-center gap-0.5 rounded-sm bg-accent px-1.5 py-0.5 text-xs font-normal text-accent-foreground"
3128
- }, [createElementVNode("span", _hoisted_3$9, toDisplayString(v.label), 1), !__props.disabled ? (openBlock(), createElementBlock("button", {
3133
+ }, [createElementVNode("span", _hoisted_3$10, toDisplayString(v.label), 1), !__props.disabled ? (openBlock(), createElementBlock("button", {
3129
3134
  key: 0,
3130
3135
  type: "button",
3131
3136
  "data-part": "tag-remove",
@@ -3140,7 +3145,7 @@ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
3140
3145
  "stroke-linecap": "round",
3141
3146
  class: "size-3",
3142
3147
  "aria-hidden": "true"
3143
- }, [createElementVNode("path", { d: "M18 6 6 18" }), createElementVNode("path", { d: "m6 6 12 12" })], -1)])], 8, _hoisted_4$8)) : createCommentVNode("v-if", true)], 8, _hoisted_2$11);
3148
+ }, [createElementVNode("path", { d: "M18 6 6 18" }), createElementVNode("path", { d: "m6 6 12 12" })], -1)])], 8, _hoisted_4$8)) : createCommentVNode("v-if", true)], 8, _hoisted_2$14);
3144
3149
  }), 128)),
3145
3150
  overflow.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_5$6, "+" + toDisplayString(overflow.value), 1)) : createCommentVNode("v-if", true),
3146
3151
  __props.clearable && !__props.disabled ? (openBlock(), createElementBlock("button", {
@@ -3749,12 +3754,12 @@ function nextActiveKey(flattened, activeKey, key, options) {
3749
3754
  }
3750
3755
  //#endregion
3751
3756
  //#region src/components/cascader/CascaderPanel.vue
3752
- const _hoisted_1$13 = {
3757
+ const _hoisted_1$16 = {
3753
3758
  "data-part": "cascader-panel",
3754
3759
  class: "flex overflow-x-auto"
3755
3760
  };
3756
- const _hoisted_2$10 = ["aria-label"];
3757
- const _hoisted_3$8 = [
3761
+ const _hoisted_2$13 = ["aria-label"];
3762
+ const _hoisted_3$9 = [
3758
3763
  "data-key",
3759
3764
  "aria-selected",
3760
3765
  "aria-checked",
@@ -3789,7 +3794,7 @@ const _hoisted_8$2 = {
3789
3794
  key: 0,
3790
3795
  class: "px-3 py-1.5 text-sm text-muted-foreground"
3791
3796
  };
3792
- const _sfc_main$50 = /*@__PURE__*/ defineComponent({
3797
+ const _sfc_main$54 = /*@__PURE__*/ defineComponent({
3793
3798
  __name: "CascaderPanel",
3794
3799
  props: {
3795
3800
  /** 列数据:columns[0] 为根层,后续每列为展开路径的子层 */
@@ -3853,7 +3858,7 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
3853
3858
  if (!node.disabled) emit("check", node);
3854
3859
  }
3855
3860
  return (_ctx, _cache) => {
3856
- return openBlock(), createElementBlock("div", _hoisted_1$13, [(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (column, ci) => {
3861
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [(openBlock(true), createElementBlock(Fragment, null, renderList(props.columns, (column, ci) => {
3857
3862
  return openBlock(), createElementBlock("div", {
3858
3863
  key: ci,
3859
3864
  role: "listbox",
@@ -3889,20 +3894,20 @@ const _sfc_main$50 = /*@__PURE__*/ defineComponent({
3889
3894
  key: 1,
3890
3895
  class: normalizeClass(unref(cn)("size-3.5 shrink-0 text-muted-foreground", props.isExpanded(node) && "rotate-90"))
3891
3896
  }, null, 8, ["class"])) : createCommentVNode("v-if", true)
3892
- ], 40, _hoisted_3$8);
3893
- }), 128)), !column.length ? (openBlock(), createElementBlock("div", _hoisted_8$2, "无数据")) : createCommentVNode("v-if", true)], 8, _hoisted_2$10);
3897
+ ], 40, _hoisted_3$9);
3898
+ }), 128)), !column.length ? (openBlock(), createElementBlock("div", _hoisted_8$2, "无数据")) : createCommentVNode("v-if", true)], 8, _hoisted_2$13);
3894
3899
  }), 128))]);
3895
3900
  };
3896
3901
  }
3897
3902
  });
3898
3903
  //#endregion
3899
3904
  //#region src/components/cascader/Cascader.vue
3900
- const _hoisted_1$12 = ["aria-expanded", "aria-disabled"];
3901
- const _hoisted_2$9 = {
3905
+ const _hoisted_1$15 = ["aria-expanded", "aria-disabled"];
3906
+ const _hoisted_2$12 = {
3902
3907
  key: 1,
3903
3908
  class: "truncate text-muted-foreground"
3904
3909
  };
3905
- const _hoisted_3$7 = {
3910
+ const _hoisted_3$8 = {
3906
3911
  key: 0,
3907
3912
  class: "truncate"
3908
3913
  };
@@ -3911,7 +3916,7 @@ const _hoisted_4$6 = {
3911
3916
  class: "truncate text-muted-foreground"
3912
3917
  };
3913
3918
  const _hoisted_5$4 = { class: "ml-auto flex shrink-0 items-center gap-1" };
3914
- const _sfc_main$7 = /*@__PURE__*/ defineComponent({
3919
+ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
3915
3920
  inheritAttrs: false,
3916
3921
  __name: "Cascader",
3917
3922
  props: {
@@ -4206,7 +4211,7 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
4206
4211
  class: unref(cn)(unref(controlCls), "min-h-9 cursor-pointer gap-2 px-3 py-1.5 text-sm", props.disabled && "cursor-not-allowed opacity-50", props.class),
4207
4212
  onClick: openFromInput,
4208
4213
  onKeydown: handleKeydown
4209
- }), [isMulti.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [tags.value.length ? (openBlock(), createBlock(_sfc_main$51, {
4214
+ }), [isMulti.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [tags.value.length ? (openBlock(), createBlock(_sfc_main$55, {
4210
4215
  key: 0,
4211
4216
  values: tags.value,
4212
4217
  "max-tag-count": props.maxTagCount,
@@ -4216,14 +4221,14 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
4216
4221
  "values",
4217
4222
  "max-tag-count",
4218
4223
  "disabled"
4219
- ])) : createCommentVNode("v-if", true), !tags.value.length ? (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(props.placeholder), 1)) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [singleLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$7, toDisplayString(singleLabel.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(props.placeholder), 1))], 64)), createElementVNode("span", _hoisted_5$4, [props.clearable && hasValue.value && !props.disabled ? (openBlock(), createElementBlock("span", {
4224
+ ])) : createCommentVNode("v-if", true), !tags.value.length ? (openBlock(), createElementBlock("span", _hoisted_2$12, toDisplayString(props.placeholder), 1)) : createCommentVNode("v-if", true)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [singleLabel.value ? (openBlock(), createElementBlock("span", _hoisted_3$8, toDisplayString(singleLabel.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$6, toDisplayString(props.placeholder), 1))], 64)), createElementVNode("span", _hoisted_5$4, [props.clearable && hasValue.value && !props.disabled ? (openBlock(), createElementBlock("span", {
4220
4225
  key: 0,
4221
4226
  role: "button",
4222
4227
  "data-part": "clear",
4223
4228
  class: "text-muted-foreground hover:text-foreground",
4224
4229
  "aria-label": "清空",
4225
4230
  onClick: withModifiers(handleClear, ["stop"])
4226
- }, [createVNode(ClearIcon_default)])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("text-muted-foreground transition-transform", isOpen.value ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$12)]),
4231
+ }, [createVNode(ClearIcon_default)])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("text-muted-foreground transition-transform", isOpen.value ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$15)]),
4227
4232
  _: 1
4228
4233
  }), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(unref(Popover).Positioner, null, {
4229
4234
  default: withCtx(() => [createVNode(unref(Popover).Content, {
@@ -4231,7 +4236,7 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
4231
4236
  style: normalizeStyle({ minWidth: panelMinWidth.value }),
4232
4237
  onKeydown: handleKeydown
4233
4238
  }, {
4234
- default: withCtx(() => [createVNode(_sfc_main$50, {
4239
+ default: withCtx(() => [createVNode(_sfc_main$54, {
4235
4240
  columns: columns.value,
4236
4241
  "expand-trigger": props.expandTrigger,
4237
4242
  "selected-keys": isMulti.value ? selectedKeys.value : [],
@@ -4263,11 +4268,11 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
4263
4268
  });
4264
4269
  //#endregion
4265
4270
  //#region src/components/tree-select/TreePanel.vue
4266
- const _hoisted_1$11 = {
4271
+ const _hoisted_1$14 = {
4267
4272
  class: "max-h-[280px] overflow-auto p-1",
4268
4273
  role: "tree"
4269
4274
  };
4270
- const _hoisted_2$8 = [
4275
+ const _hoisted_2$11 = [
4271
4276
  "aria-level",
4272
4277
  "aria-selected",
4273
4278
  "aria-checked",
@@ -4279,7 +4284,7 @@ const _hoisted_2$8 = [
4279
4284
  "data-active",
4280
4285
  "onClick"
4281
4286
  ];
4282
- const _hoisted_3$6 = ["aria-label", "onClick"];
4287
+ const _hoisted_3$7 = ["aria-label", "onClick"];
4283
4288
  const _hoisted_4$5 = {
4284
4289
  key: 1,
4285
4290
  class: "size-4 shrink-0",
@@ -4310,7 +4315,7 @@ const _hoisted_9$1 = {
4310
4315
  key: 0,
4311
4316
  class: "px-2 py-6 text-center text-sm text-muted-foreground"
4312
4317
  };
4313
- const _sfc_main$49 = /*@__PURE__*/ defineComponent({
4318
+ const _sfc_main$53 = /*@__PURE__*/ defineComponent({
4314
4319
  __name: "TreePanel",
4315
4320
  props: {
4316
4321
  /** 展开态扁平化的可见节点序列(来自 treeMate.getFlattenedNodes(expandedKeys)) */
@@ -4372,7 +4377,7 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
4372
4377
  return props.indeterminateKeys.includes(node.key);
4373
4378
  }
4374
4379
  return (_ctx, _cache) => {
4375
- return openBlock(), createElementBlock("div", _hoisted_1$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes, (node) => {
4380
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes, (node) => {
4376
4381
  return openBlock(), createElementBlock("div", {
4377
4382
  key: node.key,
4378
4383
  role: "treeitem",
@@ -4396,7 +4401,7 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
4396
4401
  class: "flex size-4 shrink-0 items-center justify-center text-muted-foreground",
4397
4402
  "aria-label": isExpanded(node) ? "折叠" : "展开",
4398
4403
  onClick: withModifiers(($event) => emit("toggle", node), ["stop"])
4399
- }, [createVNode(ChevronIcon_default, { class: normalizeClass(isExpanded(node) ? "rotate-90" : "") }, null, 8, ["class"])], 8, _hoisted_3$6)) : (openBlock(), createElementBlock("span", _hoisted_4$5)),
4404
+ }, [createVNode(ChevronIcon_default, { class: normalizeClass(isExpanded(node) ? "rotate-90" : "") }, null, 8, ["class"])], 8, _hoisted_3$7)) : (openBlock(), createElementBlock("span", _hoisted_4$5)),
4400
4405
  props.checkable ? (openBlock(), createElementBlock("span", {
4401
4406
  key: 2,
4402
4407
  "data-part": "checkbox",
@@ -4406,16 +4411,16 @@ const _sfc_main$49 = /*@__PURE__*/ defineComponent({
4406
4411
  "aria-hidden": "true"
4407
4412
  }, [isChecked(node) ? (openBlock(), createElementBlock("svg", _hoisted_6$3, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M20 6 9 17l-5-5" }, null, -1)])])) : isIndeterminate(node) ? (openBlock(), createElementBlock("svg", _hoisted_7$3, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M5 12h14" }, null, -1)])])) : createCommentVNode("v-if", true)], 8, _hoisted_5$3)) : createCommentVNode("v-if", true),
4408
4413
  createElementVNode("span", _hoisted_8$1, toDisplayString(label(node)), 1)
4409
- ], 12, _hoisted_2$8);
4414
+ ], 12, _hoisted_2$11);
4410
4415
  }), 128)), __props.nodes.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_9$1, " 无数据 ")) : createCommentVNode("v-if", true)]);
4411
4416
  };
4412
4417
  }
4413
4418
  });
4414
4419
  //#endregion
4415
4420
  //#region src/components/tree-select/TreeSelect.vue
4416
- const _hoisted_1$10 = ["aria-expanded", "aria-disabled"];
4417
- const _hoisted_2$7 = ["placeholder", "aria-label"];
4418
- const _hoisted_3$5 = {
4421
+ const _hoisted_1$13 = ["aria-expanded", "aria-disabled"];
4422
+ const _hoisted_2$10 = ["placeholder", "aria-label"];
4423
+ const _hoisted_3$6 = {
4419
4424
  key: 2,
4420
4425
  class: "truncate text-muted-foreground"
4421
4426
  };
@@ -4429,7 +4434,7 @@ const _hoisted_6$2 = {
4429
4434
  class: "truncate text-muted-foreground"
4430
4435
  };
4431
4436
  const _hoisted_7$2 = { class: "ml-auto flex shrink-0 items-center gap-1" };
4432
- const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4437
+ const _sfc_main$48 = /*@__PURE__*/ defineComponent({
4433
4438
  inheritAttrs: false,
4434
4439
  __name: "TreeSelect",
4435
4440
  props: {
@@ -4741,7 +4746,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4741
4746
  onClick: openFromInput,
4742
4747
  onKeydown: handleKeydown
4743
4748
  }), [isMulti.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4744
- tags.value.length ? (openBlock(), createBlock(_sfc_main$51, {
4749
+ tags.value.length ? (openBlock(), createBlock(_sfc_main$55, {
4745
4750
  key: 0,
4746
4751
  values: tags.value,
4747
4752
  "max-tag-count": props.maxTagCount,
@@ -4760,8 +4765,8 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4760
4765
  class: "h-5 w-12 min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
4761
4766
  placeholder: tags.value.length ? "" : props.placeholder,
4762
4767
  "aria-label": props.placeholder
4763
- }, null, 8, _hoisted_2$7)), [[vModelText, pattern.value]]) : createCommentVNode("v-if", true),
4764
- !tags.value.length && !props.filterable ? (openBlock(), createElementBlock("span", _hoisted_3$5, toDisplayString(props.placeholder), 1)) : createCommentVNode("v-if", true)
4768
+ }, null, 8, _hoisted_2$10)), [[vModelText, pattern.value]]) : createCommentVNode("v-if", true),
4769
+ !tags.value.length && !props.filterable ? (openBlock(), createElementBlock("span", _hoisted_3$6, toDisplayString(props.placeholder), 1)) : createCommentVNode("v-if", true)
4765
4770
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [props.filterable ? withDirectives((openBlock(), createElementBlock("input", {
4766
4771
  key: 0,
4767
4772
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => pattern.value = $event),
@@ -4777,7 +4782,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4777
4782
  class: "text-muted-foreground hover:text-foreground",
4778
4783
  "aria-label": "清空",
4779
4784
  onClick: withModifiers(handleClear, ["stop"])
4780
- }, [createVNode(ClearIcon_default)])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("text-muted-foreground transition-transform", isOpen.value ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$10)]),
4785
+ }, [createVNode(ClearIcon_default)])) : createCommentVNode("v-if", true), createVNode(ChevronIcon_default, { class: normalizeClass(unref(cn)("text-muted-foreground transition-transform", isOpen.value ? "-rotate-90" : "rotate-90")) }, null, 8, ["class"])])], 16, _hoisted_1$13)]),
4781
4786
  _: 1
4782
4787
  }),
4783
4788
  createCommentVNode(" 弹层 Teleport 到 body:脱离表单 DOM,消除 overflow 容器裁剪隐患(DatePicker 同款) "),
@@ -4787,7 +4792,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4787
4792
  style: normalizeStyle({ minWidth: panelMinWidth.value }),
4788
4793
  onKeydown: handleKeydown
4789
4794
  }, {
4790
- default: withCtx(() => [createVNode(_sfc_main$49, {
4795
+ default: withCtx(() => [createVNode(_sfc_main$53, {
4791
4796
  nodes: filteredNodes.value,
4792
4797
  "selected-keys": selectedKeys.value,
4793
4798
  "expanded-keys": expandedKeys.value,
@@ -4820,7 +4825,7 @@ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
4820
4825
  //#region src/components/form-render/widgets/tree.ts
4821
4826
  function renderTreeSelectItem(options) {
4822
4827
  const { placeholder, ...rest } = options;
4823
- return (ctx) => h(_sfc_main$44, {
4828
+ return (ctx) => h(_sfc_main$48, {
4824
4829
  placeholder: placeholder ?? ctx.item.placeholder,
4825
4830
  ...rest,
4826
4831
  ...bindField(ctx.field, MODEL_VALUE),
@@ -4829,7 +4834,7 @@ function renderTreeSelectItem(options) {
4829
4834
  }
4830
4835
  function renderCascaderItem(options) {
4831
4836
  const { placeholder, ...rest } = options;
4832
- return (ctx) => h(_sfc_main$7, {
4837
+ return (ctx) => h(_sfc_main$8, {
4833
4838
  placeholder: placeholder ?? ctx.item.placeholder,
4834
4839
  ...rest,
4835
4840
  ...bindField(ctx.field, MODEL_VALUE),
@@ -4867,11 +4872,11 @@ function widgetRenders() {
4867
4872
  }
4868
4873
  //#endregion
4869
4874
  //#region src/components/form-render/FormRender.vue
4870
- const _hoisted_1$9 = {
4875
+ const _hoisted_1$12 = {
4871
4876
  key: 0,
4872
4877
  class: "col-span-full flex justify-end gap-2"
4873
4878
  };
4874
- const _sfc_main$22 = /*@__PURE__*/ defineComponent({
4879
+ const _sfc_main$25 = /*@__PURE__*/ defineComponent({
4875
4880
  __name: "FormRender",
4876
4881
  props: {
4877
4882
  /** 聚合式(推荐):defineForm 返回的定义对象 */
@@ -4957,7 +4962,7 @@ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
4957
4962
  return openBlock(), createElementBlock("div", {
4958
4963
  key: String(item.key),
4959
4964
  style: normalizeStyle(spanStyle(item.span))
4960
- }, [createVNode(_sfc_main$58, {
4965
+ }, [createVNode(_sfc_main$62, {
4961
4966
  item,
4962
4967
  widget: widgetOf(item),
4963
4968
  values: unref(valuesRef)
@@ -4966,15 +4971,15 @@ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
4966
4971
  "widget",
4967
4972
  "values"
4968
4973
  ])], 4);
4969
- }), 128)), showActions.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "actions", {}, () => [
4970
- __props.searchable ? (openBlock(), createBlock(unref(_sfc_main$4), {
4974
+ }), 128)), showActions.value ? (openBlock(), createElementBlock("div", _hoisted_1$12, [renderSlot(_ctx.$slots, "actions", {}, () => [
4975
+ __props.searchable ? (openBlock(), createBlock(unref(_sfc_main$5), {
4971
4976
  key: 0,
4972
4977
  onClick: _cache[0] || (_cache[0] = ($event) => submit("search"))
4973
4978
  }, {
4974
4979
  default: withCtx(() => [createTextVNode(toDisplayString(__props.searchText ?? "搜索"), 1)]),
4975
4980
  _: 1
4976
4981
  })) : createCommentVNode("v-if", true),
4977
- showReset.value ? (openBlock(), createBlock(unref(_sfc_main$4), {
4982
+ showReset.value ? (openBlock(), createBlock(unref(_sfc_main$5), {
4978
4983
  key: 1,
4979
4984
  variant: "outline",
4980
4985
  onClick: onReset
@@ -4982,14 +4987,14 @@ const _sfc_main$22 = /*@__PURE__*/ defineComponent({
4982
4987
  default: withCtx(() => [createTextVNode(toDisplayString(__props.resetText ?? "重置"), 1)]),
4983
4988
  _: 1
4984
4989
  })) : createCommentVNode("v-if", true),
4985
- __props.submitable ? (openBlock(), createBlock(unref(_sfc_main$4), {
4990
+ __props.submitable ? (openBlock(), createBlock(unref(_sfc_main$5), {
4986
4991
  key: 2,
4987
4992
  onClick: _cache[1] || (_cache[1] = ($event) => submit("submit"))
4988
4993
  }, {
4989
4994
  default: withCtx(() => [createTextVNode(toDisplayString(__props.submitText ?? "提交"), 1)]),
4990
4995
  _: 1
4991
4996
  })) : createCommentVNode("v-if", true),
4992
- showCancel.value ? (openBlock(), createBlock(unref(_sfc_main$4), {
4997
+ showCancel.value ? (openBlock(), createBlock(unref(_sfc_main$5), {
4993
4998
  key: 3,
4994
4999
  variant: "outline",
4995
5000
  onClick: _cache[2] || (_cache[2] = ($event) => emit("cancel"))
@@ -5043,7 +5048,7 @@ function defineForm(config) {
5043
5048
  }
5044
5049
  //#endregion
5045
5050
  //#region src/components/avatar/Avatar.vue
5046
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
5051
+ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
5047
5052
  __name: "Avatar",
5048
5053
  props: {
5049
5054
  src: {},
@@ -5134,7 +5139,7 @@ const avatarVariants = cva("inline-flex shrink-0 overflow-hidden bg-muted", { va
5134
5139
  const avatarGroupKey = Symbol("tu-avatar-group");
5135
5140
  //#endregion
5136
5141
  //#region src/components/avatar-group/AvatarGroup.vue
5137
- const _sfc_main$2 = /*@__PURE__*/ defineComponent({
5142
+ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
5138
5143
  __name: "AvatarGroup",
5139
5144
  props: {
5140
5145
  max: {},
@@ -5173,7 +5178,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
5173
5178
  onMouseleave: onLeave
5174
5179
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleVnodes.value, (vnode, i) => {
5175
5180
  return openBlock(), createBlock(resolveDynamicComponent(vnode), { key: vnode.key ?? i });
5176
- }), 128)), showRest.value ? (openBlock(), createBlock(unref(_sfc_main$1), {
5181
+ }), 128)), showRest.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
5177
5182
  key: 0,
5178
5183
  class: "!inline-flex font-medium"
5179
5184
  }, {
@@ -5185,7 +5190,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
5185
5190
  });
5186
5191
  //#endregion
5187
5192
  //#region src/components/badge/Badge.vue
5188
- const _sfc_main$3 = /*@__PURE__*/ defineComponent({
5193
+ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
5189
5194
  __name: "Badge",
5190
5195
  props: {
5191
5196
  variant: {},
@@ -5218,7 +5223,7 @@ const actionClass = "col-start-2 row-span-2 row-start-1 flex items-center gap-2
5218
5223
  const coverClass = "-mx-px -mt-px overflow-hidden rounded-t-[inherit]";
5219
5224
  const contentClass = "p-6 pt-0";
5220
5225
  const footerClass = "flex items-center p-6 pt-0";
5221
- const _sfc_main$6 = /*@__PURE__*/ defineComponent({
5226
+ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
5222
5227
  __name: "Card",
5223
5228
  props: {
5224
5229
  title: { default: void 0 },
@@ -5342,15 +5347,15 @@ const cardVariants = cva("relative rounded-xl border border-border bg-card text-
5342
5347
  });
5343
5348
  //#endregion
5344
5349
  //#region src/components/dialog/Dialog.vue
5345
- const _hoisted_1$8 = {
5350
+ const _hoisted_1$11 = {
5346
5351
  key: 0,
5347
5352
  class: "flex flex-col gap-2 text-center sm:text-left"
5348
5353
  };
5349
- const _hoisted_2$6 = {
5354
+ const _hoisted_2$9 = {
5350
5355
  key: 1,
5351
5356
  class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"
5352
5357
  };
5353
- const _sfc_main$12 = /*@__PURE__*/ defineComponent({
5358
+ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
5354
5359
  __name: "Dialog",
5355
5360
  props: {
5356
5361
  /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
@@ -5432,7 +5437,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
5432
5437
  default: withCtx(() => [createVNode(unref(Dialog).Content, { class: normalizeClass(contentClass.value) }, {
5433
5438
  default: withCtx(() => [
5434
5439
  createCommentVNode(" 标题/描述:#title / #description 插槽优先,回退 title/description props;皆无则不渲染对应 DOM "),
5435
- hasHeader.value || _ctx.$slots.title || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_1$8, [_ctx.$slots.title || props.title ? (openBlock(), createBlock(unref(Dialog).Title, {
5440
+ hasHeader.value || _ctx.$slots.title || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_1$11, [_ctx.$slots.title || props.title ? (openBlock(), createBlock(unref(Dialog).Title, {
5436
5441
  key: 0,
5437
5442
  class: "text-lg font-semibold leading-none tracking-tight"
5438
5443
  }, {
@@ -5448,7 +5453,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
5448
5453
  createCommentVNode(" 默认插槽:弹层内容区(原 TDialogContent 的 body 部分) "),
5449
5454
  renderSlot(_ctx.$slots, "default"),
5450
5455
  createCommentVNode(" 底部操作区:#footer=\"{ close }\" 注入关闭函数,替代原 TDialogClose "),
5451
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2$6, [renderSlot(_ctx.$slots, "footer", { close })])) : createCommentVNode("v-if", true),
5456
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2$9, [renderSlot(_ctx.$slots, "footer", { close })])) : createCommentVNode("v-if", true),
5452
5457
  props.showCloseButton ? (openBlock(), createBlock(unref(Dialog).CloseTrigger, {
5453
5458
  key: 2,
5454
5459
  class: "absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none"
@@ -5485,7 +5490,7 @@ const _sfc_main$12 = /*@__PURE__*/ defineComponent({
5485
5490
  const itemCls = "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0";
5486
5491
  const labelCls = "px-2 py-1.5 text-sm font-medium";
5487
5492
  const separatorCls = "-mx-1 my-1 h-px bg-muted";
5488
- const _sfc_main$48 = /*@__PURE__*/ defineComponent({
5493
+ const _sfc_main$52 = /*@__PURE__*/ defineComponent({
5489
5494
  __name: "MenuItems",
5490
5495
  props: { items: {} },
5491
5496
  setup(__props) {
@@ -5529,8 +5534,8 @@ const _sfc_main$48 = /*@__PURE__*/ defineComponent({
5529
5534
  });
5530
5535
  //#endregion
5531
5536
  //#region src/components/dropdown-menu/DropdownMenu.vue
5532
- const contentCls = "bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95";
5533
- const _sfc_main$13 = /*@__PURE__*/ defineComponent({
5537
+ const contentCls$1 = "bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95";
5538
+ const _sfc_main$16 = /*@__PURE__*/ defineComponent({
5534
5539
  name: "DropdownMenu",
5535
5540
  inheritAttrs: false,
5536
5541
  __name: "DropdownMenu",
@@ -5600,8 +5605,8 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
5600
5605
  _: 3
5601
5606
  }, 8, ["class"]),
5602
5607
  createVNode(unref(Menu).Positioner, { class: "z-50" }, {
5603
- default: withCtx(() => [createVNode(unref(Menu).Content, mergeProps(unref(attrs), { class: unref(cn)(contentCls, props.contentClass) }), {
5604
- default: withCtx(() => [createVNode(_sfc_main$48, { items: props.items }, createSlots({ _: 2 }, [_ctx.$slots.item ? {
5608
+ default: withCtx(() => [createVNode(unref(Menu).Content, mergeProps(unref(attrs), { class: unref(cn)(contentCls$1, props.contentClass) }), {
5609
+ default: withCtx(() => [createVNode(_sfc_main$52, { items: props.items }, createSlots({ _: 2 }, [_ctx.$slots.item ? {
5605
5610
  name: "item",
5606
5611
  fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(slotProps)))]),
5607
5612
  key: "0"
@@ -5622,7 +5627,7 @@ const _sfc_main$13 = /*@__PURE__*/ defineComponent({
5622
5627
  });
5623
5628
  //#endregion
5624
5629
  //#region src/components/label/Label.vue
5625
- const _sfc_main$25 = /*@__PURE__*/ defineComponent({
5630
+ const _sfc_main$28 = /*@__PURE__*/ defineComponent({
5626
5631
  __name: "Label",
5627
5632
  props: { class: {} },
5628
5633
  setup(__props) {
@@ -5634,7 +5639,7 @@ const _sfc_main$25 = /*@__PURE__*/ defineComponent({
5634
5639
  });
5635
5640
  //#endregion
5636
5641
  //#region src/components/pin-input/PinInput.vue
5637
- const _sfc_main$29 = /*@__PURE__*/ defineComponent({
5642
+ const _sfc_main$32 = /*@__PURE__*/ defineComponent({
5638
5643
  inheritAttrs: false,
5639
5644
  __name: "PinInput",
5640
5645
  props: {
@@ -5738,7 +5743,7 @@ const _sfc_main$29 = /*@__PURE__*/ defineComponent({
5738
5743
  });
5739
5744
  //#endregion
5740
5745
  //#region src/components/popover/Popover.vue
5741
- const _sfc_main$30 = /*@__PURE__*/ defineComponent({
5746
+ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
5742
5747
  inheritAttrs: false,
5743
5748
  __name: "Popover",
5744
5749
  props: {
@@ -5833,8 +5838,8 @@ const _sfc_main$30 = /*@__PURE__*/ defineComponent({
5833
5838
  });
5834
5839
  //#endregion
5835
5840
  //#region src/components/separator/Separator.vue
5836
- const _hoisted_1$7 = ["data-orientation"];
5837
- const _sfc_main$34 = /*@__PURE__*/ defineComponent({
5841
+ const _hoisted_1$10 = ["data-orientation"];
5842
+ const _sfc_main$38 = /*@__PURE__*/ defineComponent({
5838
5843
  __name: "Separator",
5839
5844
  props: {
5840
5845
  orientation: { default: "horizontal" },
@@ -5847,13 +5852,13 @@ const _sfc_main$34 = /*@__PURE__*/ defineComponent({
5847
5852
  return openBlock(), createElementBlock("div", {
5848
5853
  "data-orientation": props.orientation,
5849
5854
  class: normalizeClass(unref(cn)("bg-border shrink-0", orientationClass.value, props.class))
5850
- }, null, 10, _hoisted_1$7);
5855
+ }, null, 10, _hoisted_1$10);
5851
5856
  };
5852
5857
  }
5853
5858
  });
5854
5859
  //#endregion
5855
5860
  //#region src/components/skeleton/Skeleton.vue
5856
- const _sfc_main$35 = /*@__PURE__*/ defineComponent({
5861
+ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
5857
5862
  __name: "Skeleton",
5858
5863
  props: { class: {} },
5859
5864
  setup(__props) {
@@ -5900,7 +5905,7 @@ function columnRenders() {
5900
5905
  const entryVariant = typeof entry === "object" ? entry.variant : void 0;
5901
5906
  if (entryVariant !== void 0 || options?.badge !== void 0) {
5902
5907
  const variant = entryVariant ?? (options?.badge === true ? void 0 : options?.badge);
5903
- return h(_sfc_main$3, { variant }, () => label);
5908
+ return h(_sfc_main$4, { variant }, () => label);
5904
5909
  }
5905
5910
  return label;
5906
5911
  };
@@ -5928,7 +5933,7 @@ function columnRenders() {
5928
5933
  if (items.length === 0) return "";
5929
5934
  return h("div", { class: "flex items-center gap-1" }, items.map((item) => {
5930
5935
  const action = typeof item === "string" ? { text: item } : item;
5931
- return h(_sfc_main$4, {
5936
+ return h(_sfc_main$5, {
5932
5937
  size: "sm",
5933
5938
  variant: action.variant ?? "link",
5934
5939
  disabled: action.disabled?.(record, index),
@@ -5941,7 +5946,7 @@ function columnRenders() {
5941
5946
  }
5942
5947
  //#endregion
5943
5948
  //#region src/components/tooltip/Tooltip.vue
5944
- const _sfc_main$43 = /*@__PURE__*/ defineComponent({
5949
+ const _sfc_main$47 = /*@__PURE__*/ defineComponent({
5945
5950
  __name: "Tooltip",
5946
5951
  props: {
5947
5952
  /** 提示文字;#content 插槽可覆盖以渲染富内容 */
@@ -6037,11 +6042,11 @@ const _sfc_main$43 = /*@__PURE__*/ defineComponent({
6037
6042
  });
6038
6043
  //#endregion
6039
6044
  //#region src/components/table-render/TablePagination.vue
6040
- const _hoisted_1$6 = { class: "flex w-full items-center justify-between gap-4 border-t p-2 text-sm" };
6041
- const _hoisted_2$5 = { class: "flex items-center gap-2 text-muted-foreground" };
6042
- const _hoisted_3$4 = ["value"];
6045
+ const _hoisted_1$9 = { class: "flex w-full items-center justify-between gap-4 border-t p-2 text-sm" };
6046
+ const _hoisted_2$8 = { class: "flex items-center gap-2 text-muted-foreground" };
6047
+ const _hoisted_3$5 = ["value"];
6043
6048
  const _hoisted_4$3 = ["value"];
6044
- const _sfc_main$47 = /*@__PURE__*/ defineComponent({
6049
+ const _sfc_main$51 = /*@__PURE__*/ defineComponent({
6045
6050
  __name: "TablePagination",
6046
6051
  props: {
6047
6052
  pageIndex: {},
@@ -6074,8 +6079,8 @@ const _sfc_main$47 = /*@__PURE__*/ defineComponent({
6074
6079
  return items;
6075
6080
  });
6076
6081
  return (_ctx, _cache) => {
6077
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
6078
- createElementVNode("div", _hoisted_2$5, [createElementVNode("span", null, "共 " + toDisplayString(__props.total) + " 条", 1), createElementVNode("select", {
6082
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
6083
+ createElementVNode("div", _hoisted_2$8, [createElementVNode("span", null, "共 " + toDisplayString(__props.total) + " 条", 1), createElementVNode("select", {
6079
6084
  class: "h-8 rounded-md border bg-transparent px-2 text-sm",
6080
6085
  value: __props.pageSize,
6081
6086
  onChange: _cache[0] || (_cache[0] = ($event) => emit("update:pageSize", Number($event.target.value)))
@@ -6084,7 +6089,7 @@ const _sfc_main$47 = /*@__PURE__*/ defineComponent({
6084
6089
  key: size,
6085
6090
  value: size
6086
6091
  }, toDisplayString(size) + " 条/页", 9, _hoisted_4$3);
6087
- }), 128))], 40, _hoisted_3$4)]),
6092
+ }), 128))], 40, _hoisted_3$5)]),
6088
6093
  createCommentVNode(" Root 渲染为裸 nav 且 Ellipsis 是块级 div,必须显式 flex 才不会断行 "),
6089
6094
  createVNode(unref(PaginationRoot), {
6090
6095
  class: "flex items-center gap-1",
@@ -6544,12 +6549,12 @@ function useTableRender(options) {
6544
6549
  }
6545
6550
  //#endregion
6546
6551
  //#region src/components/table-render/TableRender.vue
6547
- const _hoisted_1$5 = { class: "w-full" };
6548
- const _hoisted_2$4 = {
6552
+ const _hoisted_1$8 = { class: "w-full" };
6553
+ const _hoisted_2$7 = {
6549
6554
  key: 0,
6550
6555
  class: "mb-2 flex items-end justify-between gap-2"
6551
6556
  };
6552
- const _hoisted_3$3 = { class: "flex items-center justify-end gap-3 px-3 py-2" };
6557
+ const _hoisted_3$4 = { class: "flex items-center justify-end gap-3 px-3 py-2" };
6553
6558
  const _hoisted_4$2 = ["disabled"];
6554
6559
  const _hoisted_5$1 = { class: "max-h-64 overflow-y-auto py-1" };
6555
6560
  const _hoisted_6$1 = ["data-column-key", "onClick"];
@@ -6628,7 +6633,7 @@ const _hoisted_29 = {
6628
6633
  };
6629
6634
  const _hoisted_30 = ["colspan"];
6630
6635
  const SELECTION_CELL = "__selection__";
6631
- const _sfc_main$39 = /*@__PURE__*/ defineComponent({
6636
+ const _sfc_main$43 = /*@__PURE__*/ defineComponent({
6632
6637
  __name: "TableRender",
6633
6638
  props: {
6634
6639
  /** 聚合式(推荐):defineTable 返回的定义对象 */
@@ -7017,7 +7022,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7017
7022
  * VNode(render 工厂)单元格经 cloneVNode 复制进触发位(VNode 不可二次挂载)。 */
7018
7023
  function tooltipCell(value, text) {
7019
7024
  const trigger = isVNode(value) ? cloneVNode(value) : h("span", { class: "block truncate" }, text);
7020
- return h(_sfc_main$43, {
7025
+ return h(_sfc_main$47, {
7021
7026
  delayDuration: 0,
7022
7027
  content: text
7023
7028
  }, { default: () => [trigger] });
@@ -7040,10 +7045,10 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7040
7045
  clearSelection: instance.clearSelection
7041
7046
  });
7042
7047
  return (_ctx, _cache) => {
7043
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
7048
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
7044
7049
  createCommentVNode(" 搜索区 + 列设置触发器:同行右对齐(items-end);无搜索时触发器位于表格上方 "),
7045
- unref(search) || showColumnSettings.value ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
7046
- unref(search) ? (openBlock(), createBlock(unref(_sfc_main$22), {
7050
+ unref(search) || showColumnSettings.value ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
7051
+ unref(search) ? (openBlock(), createBlock(unref(_sfc_main$25), {
7047
7052
  key: 0,
7048
7053
  class: "min-w-0 flex-1",
7049
7054
  definition: unref(search),
@@ -7053,12 +7058,12 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7053
7058
  }, null, 8, ["definition"])) : createCommentVNode("v-if", true),
7054
7059
  createCommentVNode(" 列设置:Popover 面板(R20 最少一列 / R21 重置 / R22 不含选择列);\n 触发钮 Tooltip 手动受控开合(Tooltip 与 Popover 触发器嵌套会吞点击,故并列渲染、不走 hover 自动触发) "),
7055
7060
  showColumnSettings.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
7056
- createVNode(unref(_sfc_main$30), {
7061
+ createVNode(unref(_sfc_main$34), {
7057
7062
  align: "end",
7058
7063
  "content-class": "w-56 p-0"
7059
7064
  }, {
7060
7065
  content: withCtx(() => [
7061
- createElementVNode("div", _hoisted_3$3, [createElementVNode("button", {
7066
+ createElementVNode("div", _hoisted_3$4, [createElementVNode("button", {
7062
7067
  type: "button",
7063
7068
  class: "text-muted-foreground hover:text-foreground cursor-pointer text-xs disabled:cursor-not-allowed disabled:opacity-50",
7064
7069
  disabled: allColumnsVisible.value,
@@ -7068,7 +7073,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7068
7073
  class: "text-muted-foreground hover:text-foreground cursor-pointer text-xs",
7069
7074
  onClick: resetColumns
7070
7075
  }, " 重置 ")]),
7071
- createVNode(unref(_sfc_main$34)),
7076
+ createVNode(unref(_sfc_main$38)),
7072
7077
  createElementVNode("div", _hoisted_5$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(columns.value, (column) => {
7073
7078
  return openBlock(), createElementBlock("div", {
7074
7079
  key: column.key,
@@ -7077,7 +7082,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7077
7082
  class: "hover:bg-accent/50 flex h-8 cursor-pointer items-center gap-2 px-3",
7078
7083
  onClick: ($event) => toggleColumnVisible(column.key)
7079
7084
  }, [
7080
- createVNode(unref(_sfc_main$8), {
7085
+ createVNode(unref(_sfc_main$9), {
7081
7086
  checked: isColumnVisible(column.key),
7082
7087
  disabled: !canHideColumn(column.key),
7083
7088
  onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
@@ -7088,7 +7093,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7088
7093
  ], 8, _hoisted_6$1);
7089
7094
  }), 128))])
7090
7095
  ]),
7091
- default: withCtx(() => [createVNode(unref(_sfc_main$4), {
7096
+ default: withCtx(() => [createVNode(unref(_sfc_main$5), {
7092
7097
  variant: "ghost",
7093
7098
  size: "icon",
7094
7099
  "aria-label": "列设置",
@@ -7125,7 +7130,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7125
7130
  _: 1
7126
7131
  }),
7127
7132
  createCommentVNode(" 纯受控气泡(无默认插槽,不渲染触发器):开合由触发钮 pointerenter/leave 驱动 "),
7128
- createVNode(unref(_sfc_main$43), {
7133
+ createVNode(unref(_sfc_main$47), {
7129
7134
  open: settingsTipOpen.value,
7130
7135
  content: "列设置"
7131
7136
  }, null, 8, ["open"])
@@ -7151,7 +7156,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7151
7156
  scope: "col",
7152
7157
  class: normalizeClass(["h-10 w-12 px-2 align-middle font-medium text-muted-foreground", stickyClass(SELECTION_CELL)]),
7153
7158
  style: normalizeStyle([{ width: `${selection.value.width}px` }, stickyStyle(SELECTION_CELL, true)])
7154
- }, [selection.value.type === "checkbox" ? (openBlock(), createBlock(unref(_sfc_main$8), {
7159
+ }, [selection.value.type === "checkbox" ? (openBlock(), createBlock(unref(_sfc_main$9), {
7155
7160
  key: 0,
7156
7161
  checked: headerIndeterminate.value ? "indeterminate" : headerChecked.value,
7157
7162
  "aria-label": "全选本页",
@@ -7184,12 +7189,12 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7184
7189
  key: 0,
7185
7190
  class: normalizeClass(["p-2 align-middle", stickyClass(SELECTION_CELL)]),
7186
7191
  style: normalizeStyle(stickyStyle(SELECTION_CELL, false))
7187
- }, [createVNode(unref(_sfc_main$35), { class: "size-4" })], 6)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(visibleColumns.value, (column) => {
7192
+ }, [createVNode(unref(_sfc_main$39), { class: "size-4" })], 6)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(visibleColumns.value, (column) => {
7188
7193
  return openBlock(), createElementBlock("td", {
7189
7194
  key: column.key,
7190
7195
  class: normalizeClass(["p-2 align-middle", stickyClass(column.key)]),
7191
7196
  style: normalizeStyle([{ textAlign: column.align }, stickyStyle(column.key, false)])
7192
- }, [createVNode(unref(_sfc_main$35), { class: "h-4 w-full" })], 6);
7197
+ }, [createVNode(unref(_sfc_main$39), { class: "h-4 w-full" })], 6);
7193
7198
  }), 128))]);
7194
7199
  }), 64)) : showError.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 错误态:error 优先于正常数据;插槽可自定义(slot props { error, retry }) "), createElementVNode("tr", _hoisted_14, [createElementVNode("td", {
7195
7200
  colspan: columnCount.value,
@@ -7197,7 +7202,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7197
7202
  }, [renderSlot(_ctx.$slots, "error", {
7198
7203
  error: loadError.value,
7199
7204
  retry
7200
- }, () => [createElementVNode("div", _hoisted_16, [createElementVNode("p", null, toDisplayString(loadError.value?.message ?? "加载失败"), 1), createVNode(unref(_sfc_main$4), {
7205
+ }, () => [createElementVNode("div", _hoisted_16, [createElementVNode("p", null, toDisplayString(loadError.value?.message ?? "加载失败"), 1), createVNode(unref(_sfc_main$5), {
7201
7206
  variant: "outline",
7202
7207
  size: "sm",
7203
7208
  onClick: retry
@@ -7239,7 +7244,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7239
7244
  disabled: !item.line.canSelect,
7240
7245
  "aria-label": `选择第 ${item.line.index + 1} 行`,
7241
7246
  onClick: ($event) => onRowSelect(item.line, !unref(selectedKeys).has(item.line.key))
7242
- }, null, 8, _hoisted_19)) : (openBlock(), createBlock(unref(_sfc_main$8), {
7247
+ }, null, 8, _hoisted_19)) : (openBlock(), createBlock(unref(_sfc_main$9), {
7243
7248
  key: 1,
7244
7249
  checked: unref(selectedKeys).has(item.line.key),
7245
7250
  disabled: !item.line.canSelect,
@@ -7317,7 +7322,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7317
7322
  disabled: !line.canSelect,
7318
7323
  "aria-label": `选择第 ${line.index + 1} 行`,
7319
7324
  onClick: ($event) => onRowSelect(line, !unref(selectedKeys).has(line.key))
7320
- }, null, 8, _hoisted_25)) : (openBlock(), createBlock(unref(_sfc_main$8), {
7325
+ }, null, 8, _hoisted_25)) : (openBlock(), createBlock(unref(_sfc_main$9), {
7321
7326
  key: 1,
7322
7327
  checked: unref(selectedKeys).has(line.key),
7323
7328
  disabled: !line.canSelect,
@@ -7371,7 +7376,7 @@ const _sfc_main$39 = /*@__PURE__*/ defineComponent({
7371
7376
  class: "p-8 text-center text-muted-foreground"
7372
7377
  }, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(__props.emptyText ?? "暂无数据"), 1)])], 8, _hoisted_30)])) : createCommentVNode("v-if", true)
7373
7378
  ])])], 4),
7374
- showPagination.value ? (openBlock(), createBlock(_sfc_main$47, {
7379
+ showPagination.value ? (openBlock(), createBlock(_sfc_main$51, {
7375
7380
  key: 1,
7376
7381
  "page-index": unref(instance).page.pageIndex,
7377
7382
  "page-size": unref(instance).page.pageSize,
@@ -7412,8 +7417,8 @@ function defineTable(config) {
7412
7417
  }
7413
7418
  //#endregion
7414
7419
  //#region src/components/tabs/Tabs.vue
7415
- const _hoisted_1$4 = ["data-state"];
7416
- const _sfc_main$40 = /*@__PURE__*/ defineComponent({
7420
+ const _hoisted_1$7 = ["data-state"];
7421
+ const _sfc_main$44 = /*@__PURE__*/ defineComponent({
7417
7422
  __name: "Tabs",
7418
7423
  props: {
7419
7424
  items: {},
@@ -7479,7 +7484,7 @@ const _sfc_main$40 = /*@__PURE__*/ defineComponent({
7479
7484
  }, api.getContentProps({ value: item.value }), {
7480
7485
  "data-state": currentValue.value === item.value ? "open" : "closed",
7481
7486
  class: "flex-1 outline-none"
7482
- }), [renderSlot(_ctx.$slots, "panel", { item })], 16, _hoisted_1$4)) : createCommentVNode("v-if", true)], 64);
7487
+ }), [renderSlot(_ctx.$slots, "panel", { item })], 16, _hoisted_1$7)) : createCommentVNode("v-if", true)], 64);
7483
7488
  }), 128))]),
7484
7489
  _: 3
7485
7490
  })
@@ -7491,9 +7496,9 @@ const _sfc_main$40 = /*@__PURE__*/ defineComponent({
7491
7496
  });
7492
7497
  //#endregion
7493
7498
  //#region src/components/alert/Alert.vue
7494
- const _hoisted_1$3 = ["role"];
7495
- const _hoisted_2$3 = ["d"];
7496
- const _hoisted_3$2 = { class: "min-w-0 flex-1" };
7499
+ const _hoisted_1$6 = ["role"];
7500
+ const _hoisted_2$6 = ["d"];
7501
+ const _hoisted_3$3 = { class: "min-w-0 flex-1" };
7497
7502
  const _hoisted_4$1 = {
7498
7503
  key: 0,
7499
7504
  class: "font-medium leading-snug"
@@ -7549,8 +7554,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
7549
7554
  "stroke-linejoin": "round",
7550
7555
  "aria-hidden": "true",
7551
7556
  class: normalizeClass(unref(cn)(unref(alertIconVariants)({ variant: props.variant })))
7552
- }, [createElementVNode("path", { d: iconPath.value }, null, 8, _hoisted_2$3)], 2)) : createCommentVNode("v-if", true)]),
7553
- createElementVNode("div", _hoisted_3$2, [props.title || unref(slots).title ? (openBlock(), createElementBlock("div", _hoisted_4$1, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(props.title), 1)])])) : createCommentVNode("v-if", true), props.description || unref(slots).default ? (openBlock(), createElementBlock("div", {
7557
+ }, [createElementVNode("path", { d: iconPath.value }, null, 8, _hoisted_2$6)], 2)) : createCommentVNode("v-if", true)]),
7558
+ createElementVNode("div", _hoisted_3$3, [props.title || unref(slots).title ? (openBlock(), createElementBlock("div", _hoisted_4$1, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(props.title), 1)])])) : createCommentVNode("v-if", true), props.description || unref(slots).default ? (openBlock(), createElementBlock("div", {
7554
7559
  key: 1,
7555
7560
  class: normalizeClass(unref(cn)("text-sm leading-relaxed", (props.title || unref(slots).title) && "text-muted-foreground mt-1"))
7556
7561
  }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(props.description), 1)])], 2)) : createCommentVNode("v-if", true)]),
@@ -7571,7 +7576,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
7571
7576
  "aria-hidden": "true",
7572
7577
  class: "size-4"
7573
7578
  }, [createElementVNode("path", { d: "M18 6 6 18M6 6l12 12" })], -1)])])) : createCommentVNode("v-if", true)])
7574
- ], 10, _hoisted_1$3)) : createCommentVNode("v-if", true);
7579
+ ], 10, _hoisted_1$6)) : createCommentVNode("v-if", true);
7575
7580
  };
7576
7581
  }
7577
7582
  });
@@ -7614,13 +7619,13 @@ const alertIconPaths = {
7614
7619
  };
7615
7620
  //#endregion
7616
7621
  //#region src/components/empty/Empty.vue
7617
- const _hoisted_1$2 = { class: "text-muted-foreground/60 [&_svg]:size-24" };
7618
- const _hoisted_2$2 = { class: "text-sm text-muted-foreground" };
7619
- const _hoisted_3$1 = {
7622
+ const _hoisted_1$5 = { class: "text-muted-foreground/60 [&_svg]:size-24" };
7623
+ const _hoisted_2$5 = { class: "text-sm text-muted-foreground" };
7624
+ const _hoisted_3$2 = {
7620
7625
  key: 0,
7621
7626
  class: "mt-2 flex items-center gap-3"
7622
7627
  };
7623
- const _sfc_main$14 = /*@__PURE__*/ defineComponent({
7628
+ const _sfc_main$17 = /*@__PURE__*/ defineComponent({
7624
7629
  __name: "Empty",
7625
7630
  props: {
7626
7631
  class: {},
@@ -7633,16 +7638,16 @@ const _sfc_main$14 = /*@__PURE__*/ defineComponent({
7633
7638
  role: "status",
7634
7639
  class: normalizeClass(unref(cn)("flex flex-col items-center justify-center gap-3 px-6 py-16 text-center", props.class))
7635
7640
  }, [
7636
- createElementVNode("div", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createCommentVNode(" 内置插画:简洁空盒 "), _cache[0] || (_cache[0] = createStaticVNode("<svg viewBox=\"0 0 96 96\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M48 18 78 34v28L48 78 18 62V34L48 18Z\" opacity=\"0.55\"></path><path d=\"M18 34l30 16 30-16\" opacity=\"0.55\"></path><path d=\"M48 50v28\" opacity=\"0.55\"></path><path d=\"M48 18l-8 26 8 6 8-6-8-26Z\" fill=\"currentColor\" fill-opacity=\"0.12\" stroke=\"none\"></path><path d=\"M40 44l8 6 8-6\" opacity=\"0.75\"></path></svg>", 1))])]),
7637
- createElementVNode("p", _hoisted_2$2, toDisplayString(props.description), 1),
7638
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_3$1, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("v-if", true)
7641
+ createElementVNode("div", _hoisted_1$5, [renderSlot(_ctx.$slots, "icon", {}, () => [createCommentVNode(" 内置插画:简洁空盒 "), _cache[0] || (_cache[0] = createStaticVNode("<svg viewBox=\"0 0 96 96\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M48 18 78 34v28L48 78 18 62V34L48 18Z\" opacity=\"0.55\"></path><path d=\"M18 34l30 16 30-16\" opacity=\"0.55\"></path><path d=\"M48 50v28\" opacity=\"0.55\"></path><path d=\"M48 18l-8 26 8 6 8-6-8-26Z\" fill=\"currentColor\" fill-opacity=\"0.12\" stroke=\"none\"></path><path d=\"M40 44l8 6 8-6\" opacity=\"0.75\"></path></svg>", 1))])]),
7642
+ createElementVNode("p", _hoisted_2$5, toDisplayString(props.description), 1),
7643
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("v-if", true)
7639
7644
  ], 2);
7640
7645
  };
7641
7646
  }
7642
7647
  });
7643
7648
  //#endregion
7644
7649
  //#region src/components/progress/Progress.vue
7645
- const _sfc_main$31 = /*@__PURE__*/ defineComponent({
7650
+ const _sfc_main$35 = /*@__PURE__*/ defineComponent({
7646
7651
  __name: "Progress",
7647
7652
  props: {
7648
7653
  value: {},
@@ -7714,9 +7719,9 @@ const _sfc_main$31 = /*@__PURE__*/ defineComponent({
7714
7719
  });
7715
7720
  //#endregion
7716
7721
  //#region src/components/spin/Spin.vue
7717
- const _hoisted_1$1 = ["inert"];
7718
- const _hoisted_2$1 = ["aria-busy", "aria-label"];
7719
- const _sfc_main$37 = /*@__PURE__*/ defineComponent({
7722
+ const _hoisted_1$4 = ["inert"];
7723
+ const _hoisted_2$4 = ["aria-busy", "aria-label"];
7724
+ const _sfc_main$41 = /*@__PURE__*/ defineComponent({
7720
7725
  __name: "Spin",
7721
7726
  props: {
7722
7727
  size: { default: "default" },
@@ -7767,7 +7772,7 @@ const _sfc_main$37 = /*@__PURE__*/ defineComponent({
7767
7772
  stroke: "currentColor",
7768
7773
  "stroke-width": "3",
7769
7774
  "stroke-linecap": "round"
7770
- }, null, -1)])], 2))], 10, _hoisted_2$1)) : createCommentVNode("v-if", true)], 10, _hoisted_1$1)) : createCommentVNode("v-if", true);
7775
+ }, null, -1)])], 2))], 10, _hoisted_2$4)) : createCommentVNode("v-if", true)], 10, _hoisted_1$4)) : createCommentVNode("v-if", true);
7771
7776
  };
7772
7777
  }
7773
7778
  });
@@ -7856,7 +7861,7 @@ function useToast() {
7856
7861
  }
7857
7862
  //#endregion
7858
7863
  //#region src/components/toast/ToastProvider.vue
7859
- const _hoisted_1 = {
7864
+ const _hoisted_1$3 = {
7860
7865
  key: 0,
7861
7866
  viewBox: "0 0 24 24",
7862
7867
  fill: "none",
@@ -7866,7 +7871,7 @@ const _hoisted_1 = {
7866
7871
  "stroke-linejoin": "round",
7867
7872
  class: "size-4"
7868
7873
  };
7869
- const _hoisted_2 = {
7874
+ const _hoisted_2$3 = {
7870
7875
  key: 1,
7871
7876
  viewBox: "0 0 24 24",
7872
7877
  fill: "none",
@@ -7876,7 +7881,7 @@ const _hoisted_2 = {
7876
7881
  "stroke-linejoin": "round",
7877
7882
  class: "size-4"
7878
7883
  };
7879
- const _hoisted_3 = {
7884
+ const _hoisted_3$1 = {
7880
7885
  key: 2,
7881
7886
  viewBox: "0 0 24 24",
7882
7887
  fill: "none",
@@ -7913,7 +7918,7 @@ const _hoisted_7 = { class: "flex shrink-0 items-center gap-1" };
7913
7918
  * 内部按 props 重建 useToast 单例 store,随后所有 toast 方法经单例转发到这里渲染。
7914
7919
  */
7915
7920
  const rootBase = "flex w-[22rem] max-w-[calc(100vw-2rem)] items-start gap-3 rounded-md border p-4 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[placement*=top]:data-[state=open]:slide-in-from-top-2 data-[placement*=top]:data-[state=closed]:slide-out-to-top-2 data-[placement*=bottom]:data-[state=open]:slide-in-from-bottom-2 data-[placement*=bottom]:data-[state=closed]:slide-out-to-bottom-2";
7916
- const _sfc_main$42 = /*@__PURE__*/ defineComponent({
7921
+ const _sfc_main$46 = /*@__PURE__*/ defineComponent({
7917
7922
  __name: "ToastProvider",
7918
7923
  props: {
7919
7924
  /** 弹出位置 */
@@ -7959,7 +7964,7 @@ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
7959
7964
  t.type ? (openBlock(), createElementBlock("span", {
7960
7965
  key: 0,
7961
7966
  class: normalizeClass(["mt-0.5 shrink-0", { "animate-spin": t.type === "loading" }])
7962
- }, [t.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21.801 10A10 10 0 1 1 17 3.335" }, null, -1), createElementVNode("path", { d: "m9 11 3 3L22 4" }, null, -1)])])) : t.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_2, [..._cache[1] || (_cache[1] = [
7967
+ }, [t.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21.801 10A10 10 0 1 1 17 3.335" }, null, -1), createElementVNode("path", { d: "m9 11 3 3L22 4" }, null, -1)])])) : t.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_2$3, [..._cache[1] || (_cache[1] = [
7963
7968
  createElementVNode("circle", {
7964
7969
  cx: "12",
7965
7970
  cy: "12",
@@ -7967,7 +7972,7 @@ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
7967
7972
  }, null, -1),
7968
7973
  createElementVNode("path", { d: "m15 9-6 6" }, null, -1),
7969
7974
  createElementVNode("path", { d: "m9 9 6 6" }, null, -1)
7970
- ])])) : t.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[2] || (_cache[2] = [
7975
+ ])])) : t.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_3$1, [..._cache[2] || (_cache[2] = [
7971
7976
  createElementVNode("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }, null, -1),
7972
7977
  createElementVNode("path", { d: "M12 9v4" }, null, -1),
7973
7978
  createElementVNode("path", { d: "M12 17h.01" }, null, -1)
@@ -8017,4 +8022,530 @@ const _sfc_main$42 = /*@__PURE__*/ defineComponent({
8017
8022
  }
8018
8023
  });
8019
8024
  //#endregion
8020
- export { _sfc_main as Alert, _sfc_main$1 as Avatar, _sfc_main$2 as AvatarGroup, _sfc_main$3 as Badge, _sfc_main$4 as Button, CHECKED, COMPONENT_NAMES, _sfc_main$5 as Calendar, _sfc_main$6 as Card, _sfc_main$7 as Cascader, _sfc_main$8 as Checkbox, _sfc_main$9 as CurrencyInput, _sfc_main$10 as DatePicker, _sfc_main$11 as DateRangePicker, _sfc_main$12 as Dialog, _sfc_main$13 as DropdownMenu, _sfc_main$14 as Empty, _sfc_main$15 as Form, _sfc_main$16 as FormControl, _sfc_main$17 as FormDescription, _sfc_main$18 as FormField, _sfc_main$19 as FormItem, _sfc_main$20 as FormLabel, _sfc_main$21 as FormMessage, _sfc_main$22 as FormRender, _sfc_main$23 as FormSubscribe, _sfc_main$24 as Input, _sfc_main$25 as Label, MODEL_VALUE, _sfc_main$26 as MonthPicker, _sfc_main$27 as NumberInput, _sfc_main$28 as PasswordInput, _sfc_main$29 as PinInput, _sfc_main$30 as Popover, _sfc_main$31 as Progress, _sfc_main$32 as RadioGroup, SLIDER, _sfc_main$33 as Select, _sfc_main$34 as Separator, _sfc_main$35 as Skeleton, _sfc_main$36 as Slider, Slot, _sfc_main$37 as Spin, _sfc_main$38 as Switch, _sfc_main$39 as TableRender, _sfc_main$40 as Tabs, _sfc_main$41 as Textarea, _sfc_main$42 as ToastProvider, _sfc_main$43 as Tooltip, _sfc_main$44 as TreeSelect, TuDesignResolver, VALUE, _sfc_main$45 as WeekPicker, _sfc_main$46 as YearPicker, alertIconPaths, alertIconVariants, alertVariants, avatarGroupKey, avatarVariants, badgeVariants, bindField, buttonVariants, cardVariants, cn, columnRenders, defineColumns, defineForm, defineTable, formatCurrency, numberOrNull, parseCurrency, useFormRender, useTableRender, useToast, widgetRenders };
8025
+ //#region src/components/alert-dialog/AlertDialog.vue
8026
+ const _hoisted_1$2 = { class: "flex flex-col gap-2 text-center sm:text-left" };
8027
+ const _hoisted_2$2 = { class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" };
8028
+ const _hoisted_3 = {
8029
+ key: 0,
8030
+ viewBox: "0 0 24 24",
8031
+ fill: "none",
8032
+ stroke: "currentColor",
8033
+ "stroke-width": "2",
8034
+ "stroke-linecap": "round",
8035
+ class: "size-4 animate-spin",
8036
+ "aria-hidden": "true"
8037
+ };
8038
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
8039
+ __name: "AlertDialog",
8040
+ props: {
8041
+ /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
8042
+ open: {
8043
+ type: Boolean,
8044
+ default: void 0
8045
+ },
8046
+ /** 标题文案(#title 插槽优先) */
8047
+ title: {
8048
+ type: String,
8049
+ required: true
8050
+ },
8051
+ /** 描述文案(#description 插槽优先,可不传) */
8052
+ description: {
8053
+ type: String,
8054
+ default: void 0
8055
+ },
8056
+ /** 确认按钮文案 */
8057
+ confirmText: {
8058
+ type: String,
8059
+ default: "确定"
8060
+ },
8061
+ /** 取消按钮文案 */
8062
+ cancelText: {
8063
+ type: String,
8064
+ default: "取消"
8065
+ },
8066
+ /** 确认按钮使用 destructive 语义色(危险操作场景) */
8067
+ destructive: {
8068
+ type: Boolean,
8069
+ default: false
8070
+ }
8071
+ },
8072
+ emits: [
8073
+ "update:open",
8074
+ "confirm",
8075
+ "cancel"
8076
+ ],
8077
+ setup(__props, { emit: __emit }) {
8078
+ const props = __props;
8079
+ const emit = __emit;
8080
+ const instance = getCurrentInstance();
8081
+ const internalOpen = ref(false);
8082
+ const isOpen = computed(() => props.open ?? internalOpen.value);
8083
+ function handleUpdate(open) {
8084
+ if (!open && loading.value) return;
8085
+ internalOpen.value = open;
8086
+ emit("update:open", open);
8087
+ }
8088
+ /** 关闭弹窗:走受控桥把 open 置 false,退出动画/焦点还原由 zag 处理 */
8089
+ function close() {
8090
+ handleUpdate(false);
8091
+ }
8092
+ const loading = ref(false);
8093
+ const locked = computed(() => loading.value);
8094
+ /**
8095
+ * 确认:emit 不会回传处理器返回值,因此从 vnode 上直接取原始 onConfirm 处理器调用——
8096
+ * 返回 Promise 时进入 loading 并锁定关闭,resolve 后自动关闭,reject 保持打开且退出 loading;
8097
+ * 同步处理器(或无处理器)直接关闭。
8098
+ */
8099
+ function handleConfirm() {
8100
+ if (loading.value) return;
8101
+ const handler = instance?.vnode.props?.onConfirm;
8102
+ const result = handler?.();
8103
+ if (!handler) emit("confirm");
8104
+ if (result instanceof Promise) {
8105
+ loading.value = true;
8106
+ result.then(() => {
8107
+ loading.value = false;
8108
+ close();
8109
+ }).catch(() => {
8110
+ loading.value = false;
8111
+ });
8112
+ } else close();
8113
+ }
8114
+ /** 取消:pending 时同样锁定;确认关闭并派发 cancel */
8115
+ function handleCancel() {
8116
+ if (loading.value) return;
8117
+ emit("cancel");
8118
+ close();
8119
+ }
8120
+ const contentClass = computed(() => cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed left-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-md"));
8121
+ return (_ctx, _cache) => {
8122
+ return openBlock(), createBlock(unref(Dialog).Root, {
8123
+ open: isOpen.value,
8124
+ "close-on-escape": !locked.value,
8125
+ "close-on-interact-outside": !locked.value,
8126
+ "onUpdate:open": handleUpdate
8127
+ }, {
8128
+ default: withCtx(() => [createVNode(unref(Dialog).Backdrop, { class: "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }), createVNode(unref(Dialog).Positioner, { class: "fixed inset-0 z-50 flex items-center justify-center p-4" }, {
8129
+ default: withCtx(() => [createCommentVNode(" role=\"alertdialog\":覆盖 Ark Content 默认 role=\"dialog\",补偿无上游 AlertDialog 原语的角色语义 "), createVNode(unref(Dialog).Content, {
8130
+ class: normalizeClass(contentClass.value),
8131
+ role: "alertdialog",
8132
+ "aria-modal": "true"
8133
+ }, {
8134
+ default: withCtx(() => [
8135
+ createElementVNode("div", _hoisted_1$2, [createVNode(unref(Dialog).Title, { class: "text-lg font-semibold leading-none tracking-tight" }, {
8136
+ default: withCtx(() => [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(props.title), 1)])]),
8137
+ _: 3
8138
+ }), _ctx.$slots.description || props.description ? (openBlock(), createBlock(unref(Dialog).Description, {
8139
+ key: 0,
8140
+ class: "text-sm text-muted-foreground"
8141
+ }, {
8142
+ default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(props.description), 1)])]),
8143
+ _: 3
8144
+ })) : createCommentVNode("v-if", true)]),
8145
+ createCommentVNode(" 默认插槽:补充正文(可选) "),
8146
+ renderSlot(_ctx.$slots, "default"),
8147
+ createCommentVNode(" 底部操作区:取消 outline,确认按 destructive 切换语义色;pending 时确认钮转 loading "),
8148
+ createElementVNode("div", _hoisted_2$2, [createVNode(unref(_sfc_main$5), {
8149
+ variant: "outline",
8150
+ disabled: loading.value,
8151
+ onClick: handleCancel
8152
+ }, {
8153
+ default: withCtx(() => [createTextVNode(toDisplayString(props.cancelText), 1)]),
8154
+ _: 1
8155
+ }, 8, ["disabled"]), createVNode(unref(_sfc_main$5), {
8156
+ variant: props.destructive ? "destructive" : "default",
8157
+ disabled: loading.value,
8158
+ onClick: handleConfirm
8159
+ }, {
8160
+ default: withCtx(() => [loading.value ? (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }, null, -1)])])) : createCommentVNode("v-if", true), createTextVNode(" " + toDisplayString(props.confirmText), 1)]),
8161
+ _: 1
8162
+ }, 8, ["variant", "disabled"])])
8163
+ ]),
8164
+ _: 3
8165
+ }, 8, ["class"])]),
8166
+ _: 3
8167
+ })]),
8168
+ _: 3
8169
+ }, 8, [
8170
+ "open",
8171
+ "close-on-escape",
8172
+ "close-on-interact-outside"
8173
+ ]);
8174
+ };
8175
+ }
8176
+ });
8177
+ //#endregion
8178
+ //#region src/components/context-menu/ContextMenu.vue
8179
+ const contentCls = "bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95";
8180
+ const _sfc_main$10 = /*@__PURE__*/ defineComponent({
8181
+ name: "ContextMenu",
8182
+ inheritAttrs: false,
8183
+ __name: "ContextMenu",
8184
+ props: {
8185
+ /** 菜单项描述列表,与 DropdownMenu 的 items 完全同构(item/label/separator/group 四种形态,group 可嵌套) */
8186
+ items: {
8187
+ type: Array,
8188
+ required: true
8189
+ } },
8190
+ emits: ["select"],
8191
+ setup(__props, { emit: __emit }) {
8192
+ const props = __props;
8193
+ const emit = __emit;
8194
+ const attrs = useAttrs();
8195
+ function handleSelect(details) {
8196
+ emit("select", details);
8197
+ }
8198
+ return (_ctx, _cache) => {
8199
+ return openBlock(), createBlock(unref(Menu).Root, { onSelect: handleSelect }, {
8200
+ default: withCtx(() => [
8201
+ createCommentVNode(" 默认插槽 = 触发元素本身(ContextTrigger as-child 透传,右键唤出并定位到指针处) "),
8202
+ createVNode(unref(Menu).ContextTrigger, { "as-child": "" }, {
8203
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
8204
+ _: 3
8205
+ }),
8206
+ createVNode(unref(Menu).Positioner, { class: "z-50" }, {
8207
+ default: withCtx(() => [createVNode(unref(Menu).Content, mergeProps(unref(attrs), { class: unref(cn)(contentCls) }), {
8208
+ default: withCtx(() => [createVNode(_sfc_main$52, { items: props.items }, null, 8, ["items"])]),
8209
+ _: 1
8210
+ }, 16, ["class"])]),
8211
+ _: 1
8212
+ })
8213
+ ]),
8214
+ _: 3
8215
+ });
8216
+ };
8217
+ }
8218
+ });
8219
+ //#endregion
8220
+ //#region src/components/drawer/Drawer.vue
8221
+ const _hoisted_1$1 = {
8222
+ key: 0,
8223
+ class: "flex flex-col gap-1.5"
8224
+ };
8225
+ const _hoisted_2$1 = {
8226
+ key: 1,
8227
+ class: "mt-auto flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end"
8228
+ };
8229
+ const _sfc_main$15 = /*@__PURE__*/ defineComponent({
8230
+ __name: "Drawer",
8231
+ props: {
8232
+ /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
8233
+ open: {
8234
+ type: Boolean,
8235
+ default: void 0
8236
+ },
8237
+ /** 非受控时的初始开关 */
8238
+ defaultOpen: {
8239
+ type: Boolean,
8240
+ default: false
8241
+ },
8242
+ /** 首次打开前不挂载内容 */
8243
+ lazyMount: {
8244
+ type: Boolean,
8245
+ default: false
8246
+ },
8247
+ /** 关闭后卸载内容(关闭动画结束后) */
8248
+ unmountOnExit: {
8249
+ type: Boolean,
8250
+ default: false
8251
+ },
8252
+ /** 抽屉弹出方向 */
8253
+ placement: {
8254
+ type: String,
8255
+ default: "right"
8256
+ },
8257
+ /** 尺寸档位:侧向(left/right)为宽度,顶/底向(top/bottom)为高度 */
8258
+ size: {
8259
+ type: String,
8260
+ default: "default"
8261
+ },
8262
+ /** 标题文案(#title 插槽优先,两者皆无则不渲染标题) */
8263
+ title: {
8264
+ type: String,
8265
+ default: void 0
8266
+ },
8267
+ /** 描述文案(#description 插槽优先,两者皆无则不渲染描述) */
8268
+ description: {
8269
+ type: String,
8270
+ default: void 0
8271
+ },
8272
+ /** 是否渲染右上角内置关闭按钮(aria-label="关闭") */
8273
+ showCloseButton: {
8274
+ type: Boolean,
8275
+ default: true
8276
+ }
8277
+ },
8278
+ emits: ["update:open"],
8279
+ setup(__props, { emit: __emit }) {
8280
+ const props = __props;
8281
+ const emit = __emit;
8282
+ const internalOpen = ref(props.defaultOpen);
8283
+ const isOpen = computed(() => props.open ?? internalOpen.value);
8284
+ function handleUpdate(open) {
8285
+ internalOpen.value = open;
8286
+ emit("update:open", open);
8287
+ }
8288
+ /** 关闭抽屉(#footer 作用域插槽注入) */
8289
+ function close() {
8290
+ handleUpdate(false);
8291
+ }
8292
+ const hasHeader = computed(() => Boolean(props.title || props.description));
8293
+ const placementConfig = {
8294
+ right: {
8295
+ positioner: "justify-end",
8296
+ content: "inset-y-0 right-0 h-full border-l",
8297
+ sizes: {
8298
+ sm: "sm:w-80",
8299
+ default: "sm:w-96",
8300
+ lg: "sm:w-[40rem]"
8301
+ }
8302
+ },
8303
+ left: {
8304
+ positioner: "justify-start",
8305
+ content: "inset-y-0 left-0 h-full border-r",
8306
+ sizes: {
8307
+ sm: "sm:w-80",
8308
+ default: "sm:w-96",
8309
+ lg: "sm:w-[40rem]"
8310
+ }
8311
+ },
8312
+ top: {
8313
+ positioner: "items-start",
8314
+ content: "inset-x-0 top-0 w-full border-b",
8315
+ sizes: {
8316
+ sm: "sm:h-64",
8317
+ default: "sm:h-80",
8318
+ lg: "sm:h-[28rem]"
8319
+ }
8320
+ },
8321
+ bottom: {
8322
+ positioner: "items-end",
8323
+ content: "inset-x-0 bottom-0 w-full border-t",
8324
+ sizes: {
8325
+ sm: "sm:h-64",
8326
+ default: "sm:h-80",
8327
+ lg: "sm:h-[28rem]"
8328
+ }
8329
+ }
8330
+ };
8331
+ const placementAnimations = {
8332
+ right: "data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",
8333
+ left: "data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
8334
+ top: "data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
8335
+ bottom: "data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom"
8336
+ };
8337
+ const config = computed(() => placementConfig[props.placement]);
8338
+ const isLateral = computed(() => props.placement === "left" || props.placement === "right");
8339
+ const contentClass = computed(() => cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 overflow-y-auto p-6 shadow-lg duration-200", config.value.content, isLateral.value ? cn("w-full", config.value.sizes[props.size]) : cn("h-full", config.value.sizes[props.size]), placementAnimations[props.placement]));
8340
+ return (_ctx, _cache) => {
8341
+ return openBlock(), createBlock(unref(Drawer).Root, {
8342
+ open: isOpen.value,
8343
+ "lazy-mount": props.lazyMount,
8344
+ "unmount-on-exit": props.unmountOnExit,
8345
+ "onUpdate:open": handleUpdate
8346
+ }, {
8347
+ default: withCtx(() => [
8348
+ _ctx.$slots.trigger ? (openBlock(), createBlock(unref(Drawer).Trigger, {
8349
+ key: 0,
8350
+ "as-child": ""
8351
+ }, {
8352
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger")]),
8353
+ _: 3
8354
+ })) : createCommentVNode("v-if", true),
8355
+ createVNode(unref(Drawer).Backdrop, { class: "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }),
8356
+ createVNode(unref(Drawer).Positioner, { class: normalizeClass(unref(cn)("fixed inset-0 z-50 flex", config.value.positioner)) }, {
8357
+ default: withCtx(() => [createVNode(unref(Drawer).Content, { class: normalizeClass(contentClass.value) }, {
8358
+ default: withCtx(() => [
8359
+ hasHeader.value || _ctx.$slots.title || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_1$1, [_ctx.$slots.title || props.title ? (openBlock(), createBlock(unref(Drawer).Title, {
8360
+ key: 0,
8361
+ class: "text-lg font-semibold leading-none tracking-tight"
8362
+ }, {
8363
+ default: withCtx(() => [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(props.title), 1)])]),
8364
+ _: 3
8365
+ })) : createCommentVNode("v-if", true), _ctx.$slots.description || props.description ? (openBlock(), createBlock(unref(Drawer).Description, {
8366
+ key: 1,
8367
+ class: "text-sm text-muted-foreground"
8368
+ }, {
8369
+ default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(props.description), 1)])]),
8370
+ _: 3
8371
+ })) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
8372
+ renderSlot(_ctx.$slots, "default"),
8373
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_2$1, [renderSlot(_ctx.$slots, "footer", { close })])) : createCommentVNode("v-if", true),
8374
+ props.showCloseButton ? (openBlock(), createBlock(unref(Drawer).CloseTrigger, {
8375
+ key: 2,
8376
+ "aria-label": "关闭",
8377
+ class: "absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none"
8378
+ }, {
8379
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
8380
+ viewBox: "0 0 24 24",
8381
+ fill: "none",
8382
+ stroke: "currentColor",
8383
+ "stroke-width": "2",
8384
+ "stroke-linecap": "round",
8385
+ "stroke-linejoin": "round",
8386
+ class: "size-4"
8387
+ }, [createElementVNode("path", { d: "M18 6 6 18" }), createElementVNode("path", { d: "m6 6 12 12" })], -1), createElementVNode("span", { class: "sr-only" }, "关闭", -1)])]),
8388
+ _: 1
8389
+ })) : createCommentVNode("v-if", true)
8390
+ ]),
8391
+ _: 3
8392
+ }, 8, ["class"])]),
8393
+ _: 3
8394
+ }, 8, ["class"])
8395
+ ]),
8396
+ _: 3
8397
+ }, 8, [
8398
+ "open",
8399
+ "lazy-mount",
8400
+ "unmount-on-exit"
8401
+ ]);
8402
+ };
8403
+ }
8404
+ });
8405
+ //#endregion
8406
+ //#region src/components/popconfirm/Popconfirm.vue
8407
+ const _hoisted_1 = { class: "mt-3 flex items-center justify-end gap-2" };
8408
+ const _hoisted_2 = {
8409
+ key: 0,
8410
+ viewBox: "0 0 24 24",
8411
+ fill: "none",
8412
+ stroke: "currentColor",
8413
+ "stroke-width": "2",
8414
+ "stroke-linecap": "round",
8415
+ class: "size-4 animate-spin",
8416
+ "aria-hidden": "true"
8417
+ };
8418
+ /**
8419
+ * 气泡确认:Popover 的一体式薄壳变体,面板内容内置 title/description + 确认/取消按钮。
8420
+ * 行为与 M2 AlertDialog 对齐:@confirm 处理器返回 Promise 时确认钮进入 loading 并锁定全部
8421
+ * 关闭通道(ESC/点外部/触发器/取消钮),resolve 后自动关闭、reject 保持打开;
8422
+ * 同步处理器点击确认/取消后自动关闭并派发对应事件。
8423
+ */
8424
+ const _sfc_main$33 = /*@__PURE__*/ defineComponent({
8425
+ inheritAttrs: false,
8426
+ __name: "Popconfirm",
8427
+ props: {
8428
+ /** 气泡标题(渲染为 Ark Popover.Title,content 自动接线 aria-labelledby) */
8429
+ title: {
8430
+ type: String,
8431
+ required: true
8432
+ },
8433
+ /** 气泡描述(可选,渲染为 Ark Popover.Description,content 自动接线 aria-describedby) */
8434
+ description: {
8435
+ type: String,
8436
+ default: void 0
8437
+ },
8438
+ /** 确认按钮文案 */
8439
+ confirmText: {
8440
+ type: String,
8441
+ default: "确定"
8442
+ },
8443
+ /** 取消按钮文案 */
8444
+ cancelText: {
8445
+ type: String,
8446
+ default: "取消"
8447
+ },
8448
+ /** 确认按钮风格:default 主色 / destructive 危险色 */
8449
+ variant: {
8450
+ type: String,
8451
+ default: "default"
8452
+ },
8453
+ /** 受控开关(配合 v-model:open);不传时为非受控,由内部状态管理 */
8454
+ open: {
8455
+ type: Boolean,
8456
+ default: void 0
8457
+ }
8458
+ },
8459
+ emits: [
8460
+ "update:open",
8461
+ "confirm",
8462
+ "cancel"
8463
+ ],
8464
+ setup(__props, { emit: __emit }) {
8465
+ const props = __props;
8466
+ const emit = __emit;
8467
+ const attrs = useAttrs();
8468
+ const instance = getCurrentInstance();
8469
+ const loading = ref(false);
8470
+ const internalOpen = ref(false);
8471
+ const isOpen = computed(() => props.open ?? internalOpen.value);
8472
+ function handleUpdate(open) {
8473
+ if (!open && loading.value) return;
8474
+ internalOpen.value = open;
8475
+ emit("update:open", open);
8476
+ }
8477
+ /** 关闭气泡:走受控桥把 open 置 false,定位回退/动画由 zag 处理 */
8478
+ function close() {
8479
+ handleUpdate(false);
8480
+ }
8481
+ /**
8482
+ * 确认:emit 不回传监听器返回值,因此从 vnode 取原始 onConfirm 处理器直接调用
8483
+ * (该调用本身就是父级监听器,不会重复派发)。返回 Promise 时进入 loading 并锁定关闭,
8484
+ * resolve 后自动关闭,reject 保持打开并退出 loading;同步处理器直接关闭。
8485
+ */
8486
+ function handleConfirm() {
8487
+ if (loading.value) return;
8488
+ const handler = instance?.vnode.props?.onConfirm;
8489
+ const result = handler?.();
8490
+ if (!handler) emit("confirm");
8491
+ if (result instanceof Promise) {
8492
+ loading.value = true;
8493
+ result.then(() => {
8494
+ loading.value = false;
8495
+ close();
8496
+ }).catch(() => {
8497
+ loading.value = false;
8498
+ });
8499
+ } else close();
8500
+ }
8501
+ /** 取消:pending 期间锁定;派发 cancel 并关闭 */
8502
+ function handleCancel() {
8503
+ if (loading.value) return;
8504
+ emit("cancel");
8505
+ close();
8506
+ }
8507
+ return (_ctx, _cache) => {
8508
+ return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" 薄壳复用 Popover:触发器 asChild、受控桥、定位与进出场动画均由 Popover 提供 "), createVNode(unref(_sfc_main$34), mergeProps(unref(attrs), {
8509
+ open: isOpen.value,
8510
+ "content-class": "w-64 p-3",
8511
+ "onUpdate:open": handleUpdate
8512
+ }), {
8513
+ content: withCtx(() => [
8514
+ createVNode(unref(Popover).Title, { class: "text-sm font-medium" }, {
8515
+ default: withCtx(() => [createTextVNode(toDisplayString(props.title), 1)]),
8516
+ _: 1
8517
+ }),
8518
+ props.description ? (openBlock(), createBlock(unref(Popover).Description, {
8519
+ key: 0,
8520
+ class: "mt-1 text-xs text-muted-foreground"
8521
+ }, {
8522
+ default: withCtx(() => [createTextVNode(toDisplayString(props.description), 1)]),
8523
+ _: 1
8524
+ })) : createCommentVNode("v-if", true),
8525
+ createCommentVNode(" 操作区:取消 outline,确认按 variant 切换语义色;pending 时双钮禁用 + 确认钮转 loading "),
8526
+ createElementVNode("div", _hoisted_1, [createVNode(unref(_sfc_main$5), {
8527
+ variant: "outline",
8528
+ size: "sm",
8529
+ disabled: loading.value,
8530
+ onClick: handleCancel
8531
+ }, {
8532
+ default: withCtx(() => [createTextVNode(toDisplayString(props.cancelText), 1)]),
8533
+ _: 1
8534
+ }, 8, ["disabled"]), createVNode(unref(_sfc_main$5), {
8535
+ variant: props.variant === "destructive" ? "destructive" : "default",
8536
+ size: "sm",
8537
+ disabled: loading.value,
8538
+ onClick: handleConfirm
8539
+ }, {
8540
+ default: withCtx(() => [loading.value ? (openBlock(), createElementBlock("svg", _hoisted_2, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }, null, -1)])])) : createCommentVNode("v-if", true), createTextVNode(" " + toDisplayString(props.confirmText), 1)]),
8541
+ _: 1
8542
+ }, 8, ["variant", "disabled"])])
8543
+ ]),
8544
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
8545
+ _: 3
8546
+ }, 16, ["open"])], 2112);
8547
+ };
8548
+ }
8549
+ });
8550
+ //#endregion
8551
+ export { _sfc_main as Alert, _sfc_main$1 as AlertDialog, _sfc_main$2 as Avatar, _sfc_main$3 as AvatarGroup, _sfc_main$4 as Badge, _sfc_main$5 as Button, CHECKED, COMPONENT_NAMES, _sfc_main$6 as Calendar, _sfc_main$7 as Card, _sfc_main$8 as Cascader, _sfc_main$9 as Checkbox, _sfc_main$10 as ContextMenu, _sfc_main$11 as CurrencyInput, _sfc_main$12 as DatePicker, _sfc_main$13 as DateRangePicker, _sfc_main$14 as Dialog, _sfc_main$15 as Drawer, _sfc_main$16 as DropdownMenu, _sfc_main$17 as Empty, _sfc_main$18 as Form, _sfc_main$19 as FormControl, _sfc_main$20 as FormDescription, _sfc_main$21 as FormField, _sfc_main$22 as FormItem, _sfc_main$23 as FormLabel, _sfc_main$24 as FormMessage, _sfc_main$25 as FormRender, _sfc_main$26 as FormSubscribe, _sfc_main$27 as Input, _sfc_main$28 as Label, MODEL_VALUE, _sfc_main$29 as MonthPicker, _sfc_main$30 as NumberInput, _sfc_main$31 as PasswordInput, _sfc_main$32 as PinInput, _sfc_main$33 as Popconfirm, _sfc_main$34 as Popover, _sfc_main$35 as Progress, _sfc_main$36 as RadioGroup, SLIDER, _sfc_main$37 as Select, _sfc_main$38 as Separator, _sfc_main$39 as Skeleton, _sfc_main$40 as Slider, Slot, _sfc_main$41 as Spin, _sfc_main$42 as Switch, _sfc_main$43 as TableRender, _sfc_main$44 as Tabs, _sfc_main$45 as Textarea, _sfc_main$46 as ToastProvider, _sfc_main$47 as Tooltip, _sfc_main$48 as TreeSelect, TuDesignResolver, VALUE, _sfc_main$49 as WeekPicker, _sfc_main$50 as YearPicker, alertIconPaths, alertIconVariants, alertVariants, avatarGroupKey, avatarVariants, badgeVariants, bindField, buttonVariants, cardVariants, cn, columnRenders, defineColumns, defineForm, defineTable, formatCurrency, numberOrNull, parseCurrency, useFormRender, useTableRender, useToast, widgetRenders };