@pantograph/vue 0.30.3 → 0.30.5

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.
Files changed (168) hide show
  1. package/README.md +31 -31
  2. package/dist/ActionButton/index.js +1 -1
  3. package/dist/ActionButton/index.umd.cjs +1 -1
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-7KKRWq3t.js → ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js} +1 -1
  5. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BYkFlZWU.js → ActionButton.vue_vue_type_script_setup_true_lang-CH_Oquxt.js} +1 -1
  6. package/dist/Alert/index.js +2 -2
  7. package/dist/Alert/index.umd.cjs +1 -1
  8. package/dist/Avatar/index.js +2 -2
  9. package/dist/Avatar/index.umd.cjs +1 -1
  10. package/dist/{Avatar.vue_vue_type_style_index_0_lang-CzFkAcKT.js → Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js} +57 -57
  11. package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +1 -0
  12. package/dist/AvatarGroup/index.js +1 -1
  13. package/dist/AvatarGroup/index.umd.cjs +1 -1
  14. package/dist/Badge/index.js +1 -1
  15. package/dist/Badge/index.umd.cjs +1 -1
  16. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Ck1_dbLq.js → Badge.vue_vue_type_script_setup_true_lang-BVE5H-tP.js} +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-CxBSrreK.js → Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js} +1 -1
  18. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +1 -0
  19. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DAiX2m7y.js → BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js} +19 -19
  20. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +1 -0
  21. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-qkW0olhp.js → BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js} +66 -62
  22. package/dist/Button/Button.d.ts +1 -1
  23. package/dist/Button/index.js +1 -1
  24. package/dist/Button/index.umd.cjs +1 -1
  25. package/dist/{Button.vue_vue_type_script_setup_true_lang-BFY3zxov.js → Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js} +1 -1
  26. package/dist/{Button.vue_vue_type_script_setup_true_lang-BtiJfT68.js → Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js} +1 -1
  27. package/dist/ButtonGroup/ButtonGroup.d.ts +0 -1
  28. package/dist/ButtonGroup/index.js +1 -1
  29. package/dist/ButtonGroup/index.umd.cjs +1 -1
  30. package/dist/Checkbox/index.js +2 -2
  31. package/dist/Checkbox/index.umd.cjs +1 -1
  32. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CAdNvT8f.js → Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js} +1 -1
  33. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-u9Jw1VwG.js → Checkbox.vue_vue_type_style_index_0_lang-D-7D_c_A.js} +10 -9
  34. package/dist/CheckboxGroup/index.js +1 -1
  35. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  36. package/dist/ColorPicker/index.js +2 -2
  37. package/dist/ColorPicker/index.umd.cjs +1 -1
  38. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Did8RS1T.js → ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js} +3 -3
  39. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BVjzmZnp.js → ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js} +1 -1
  40. package/dist/ColorSwatch/index.js +32 -34
  41. package/dist/ColorSwatch/index.umd.cjs +1 -1
  42. package/dist/ColorSwatchGroup/index.js +1 -1
  43. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  44. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +1 -0
  45. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-C_XuCb0R.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-oV_EmLx_.js} +14 -12
  46. package/dist/ColorTrigger/ColorTrigger.d.ts +0 -1
  47. package/dist/ColorTrigger/index.js +2 -2
  48. package/dist/ColorTrigger/index.umd.cjs +1 -1
  49. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +89 -0
  50. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +1 -0
  51. package/dist/Combobox/Combobox.d.ts +2 -7
  52. package/dist/Combobox/index.js +73 -70
  53. package/dist/Combobox/index.umd.cjs +1 -1
  54. package/dist/Comment/CommentActions.d.ts +0 -8
  55. package/dist/Comment/CommentEditor.d.ts +0 -16
  56. package/dist/Comment/CommentMention.d.ts +4 -12
  57. package/dist/Comment/CommentReactions.d.ts +0 -4
  58. package/dist/Comment/CommentTrigger.d.ts +2 -1
  59. package/dist/Comment/index.js +12 -10
  60. package/dist/Comment/index.umd.cjs +1 -1
  61. package/dist/DataTable/index.js +7 -7
  62. package/dist/DataTable/index.umd.cjs +1 -1
  63. package/dist/DropZone/index.js +11 -9
  64. package/dist/DropZone/index.umd.cjs +1 -1
  65. package/dist/FloatButton/FloatButton.d.ts +1 -1
  66. package/dist/FloatButton/index.js +1 -1
  67. package/dist/FloatButton/index.umd.cjs +1 -1
  68. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js → FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js} +1 -1
  69. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Y3NGu4lx.js → FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js} +1 -1
  70. package/dist/Form/Form.d.ts +3 -1
  71. package/dist/Form/FormItem.d.ts +0 -1
  72. package/dist/Form/index.js +3 -3
  73. package/dist/Form/index.umd.cjs +2 -2
  74. package/dist/GOPicker/GOPicker.d.ts +0 -1
  75. package/dist/GOPicker/index.js +10 -7
  76. package/dist/GOPicker/index.umd.cjs +1 -1
  77. package/dist/GraphicalObject/index.js +1 -1
  78. package/dist/GraphicalObject/index.umd.cjs +1 -1
  79. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js → GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js} +1 -1
  80. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CgjAIWEo.js → GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js} +1 -1
  81. package/dist/IconButton/IconButton.d.ts +1 -1
  82. package/dist/IconButton/index.js +1 -1
  83. package/dist/IconButton/index.umd.cjs +1 -1
  84. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js → IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js} +1 -1
  85. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js → IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js} +1 -1
  86. package/dist/IndentLevel/index.js +2 -2
  87. package/dist/IndentLevel/index.umd.cjs +1 -1
  88. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUUUBn2Z.js → IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js} +1 -1
  89. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Bv3yL1Lk.js → IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js} +1 -1
  90. package/dist/Indicator/index.js +1 -1
  91. package/dist/Indicator/index.umd.cjs +1 -1
  92. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BYE7yX5H.js → Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js} +1 -1
  93. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Rv1Cz38f.js → Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js} +1 -1
  94. package/dist/Input/index.js +1 -1
  95. package/dist/Input/index.umd.cjs +1 -1
  96. package/dist/{Input.vue_vue_type_script_setup_true_lang-ByHGhDsA.js → Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js} +26 -25
  97. package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +1 -0
  98. package/dist/InputNumber/index.js +1 -1
  99. package/dist/InputNumber/index.umd.cjs +1 -1
  100. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +1 -0
  101. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-C4GMpH6O.js → InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js} +86 -85
  102. package/dist/Menu/index.js +2 -2
  103. package/dist/Menu/index.umd.cjs +1 -1
  104. package/dist/MenuItem/MenuItem.d.ts +5 -1
  105. package/dist/MenuItem/index.js +2 -2
  106. package/dist/MenuItem/index.umd.cjs +1 -1
  107. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-ByicYJot.js → MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js} +212 -209
  108. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +1 -0
  109. package/dist/Pagination/index.js +22 -20
  110. package/dist/Pagination/index.umd.cjs +1 -1
  111. package/dist/RadioGroup/index.js +1 -1
  112. package/dist/RadioGroup/index.umd.cjs +1 -1
  113. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js} +8 -6
  114. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js → RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js} +1 -1
  115. package/dist/Segmented/index.js +2 -2
  116. package/dist/Segmented/index.umd.cjs +1 -1
  117. package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +1 -0
  118. package/dist/{Segmented.vue_vue_type_style_index_0_lang-BXQbBiaE.js → Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js} +9 -7
  119. package/dist/Select/Select.d.ts +0 -1
  120. package/dist/Select/index.js +2 -2
  121. package/dist/Select/index.umd.cjs +1 -1
  122. package/dist/{Select.vue_vue_type_style_index_0_lang-7Tq97moQ.js → Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js} +114 -112
  123. package/dist/{Select.vue_vue_type_style_index_0_lang-C0JCB5l1.js → Select.vue_vue_type_style_index_0_lang-DI_YhCCT.js} +1 -1
  124. package/dist/Steps/Step.d.ts +1 -0
  125. package/dist/Steps/index.js +1 -1
  126. package/dist/Steps/index.umd.cjs +1 -1
  127. package/dist/SubMenu/index.js +1 -1
  128. package/dist/SubMenu/index.umd.cjs +1 -1
  129. package/dist/Switch/index.js +2 -2
  130. package/dist/Switch/index.umd.cjs +1 -1
  131. package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +1 -0
  132. package/dist/{Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js → Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js} +17 -15
  133. package/dist/Tabs/index.js +2 -2
  134. package/dist/Tabs/index.umd.cjs +1 -1
  135. package/dist/Textarea/index.js +43 -42
  136. package/dist/Textarea/index.umd.cjs +1 -1
  137. package/dist/Toast/Toast.d.ts +40 -3
  138. package/dist/Toast/index.d.ts +2 -2
  139. package/dist/Toast/index.js +148 -104
  140. package/dist/Toast/index.umd.cjs +1 -1
  141. package/dist/Tree/Tree.d.ts +0 -1
  142. package/dist/Tree/index.js +1 -1
  143. package/dist/Tree/index.umd.cjs +1 -1
  144. package/dist/Upload/index.js +29 -27
  145. package/dist/Upload/index.umd.cjs +1 -1
  146. package/dist/{index-AwKp_D1S.js → index-ClFtJyYC.js} +2 -2
  147. package/dist/index-DBiL8Htz.js +1 -0
  148. package/dist/index-DzG8mnap.js +1 -0
  149. package/dist/{index-BdPkHVwS.js → index-Y3XMSR_o.js} +72 -69
  150. package/dist/index.js +24 -24
  151. package/dist/index.umd.cjs +1 -1
  152. package/dist/style/index.css +1 -1
  153. package/dist/use/index.js +25 -25
  154. package/dist/use/index.umd.cjs +1 -1
  155. package/package.json +3 -3
  156. package/dist/Avatar.vue_vue_type_style_index_0_lang-CX1z2Bid.js +0 -1
  157. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-O-9lK4KI.js +0 -1
  158. package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1jasaOz.js +0 -1
  159. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDF1AL9P.js +0 -1
  160. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BkJ15M1P.js +0 -88
  161. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bm5rLiVf.js +0 -1
  162. package/dist/Input.vue_vue_type_script_setup_true_lang-CTIaAkrW.js +0 -1
  163. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DW-JqPiv.js +0 -1
  164. package/dist/MenuItem.vue_vue_type_style_index_0_lang-zBvtuEx_.js +0 -1
  165. package/dist/Segmented.vue_vue_type_style_index_0_lang-CLYRU64q.js +0 -1
  166. package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +0 -1
  167. package/dist/index-CLWvy5OA.js +0 -1
  168. package/dist/index-J_dmgfpe.js +0 -1
@@ -1,15 +1,18 @@
1
- import { defineComponent as T, useSlots as N, computed as f, createElementBlock as i, openBlock as a, normalizeClass as t, unref as e, renderSlot as u, createCommentVNode as c, createElementVNode as y, createBlock as w, createVNode as g, normalizeStyle as V, createSlots as S, withCtx as z, createTextVNode as B, toDisplayString as v } from "vue";
2
- import { cva as E } from "class-variance-authority";
3
- import { getComponentOptions as I, getBemBlock as D, generateVariantClassList as k, normCls as r, getBemElement as n, getComponentName as L } from "@pantograph/utils";
4
- import { _ as O } from "../IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js";
5
- import { _ as P } from "../Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js";
1
+ import { defineComponent as R, useSlots as j, computed as P, createElementBlock as q, openBlock as T, normalizeClass as w, unref as p, renderSlot as F, createVNode as N, createBlock as G, createCommentVNode as J, h as s } from "vue";
2
+ import { cva as K } from "class-variance-authority";
3
+ import { getComponentOptions as M, getBemBlock as Q, generateVariantClassList as $, normCls as a, getBemElement as l, getComponentName as U } from "@pantograph/utils";
4
+ import { isEmptyElement as d, installComponent as W } from "@pantograph/utils-vue";
5
+ import { _ as X } from "../index-ClFtJyYC.js";
6
+ import { _ as Y } from "../IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js";
7
+ import { _ as D } from "../Button.vue_vue_type_script_setup_true_lang-d-VCkYuL.js";
8
+ import { _ as Z } from "../Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js";
6
9
  import "../Progress/index.js";
7
- import { getCssCoreVar as R } from "@pantograph/tokens";
8
- import { i as j } from "../isNumber-BduWbB-B.js";
9
- import { _ as q } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
10
- import { installComponent as A } from "@pantograph/utils-vue";
11
- const F = ["info", "success", "warning", "error"], G = /* @__PURE__ */ T({
12
- ...I("Toast"),
10
+ import { getCssCoreVar as x } from "@pantograph/tokens";
11
+ import "../Button/index.js";
12
+ import { i as oo } from "../isNumber-BduWbB-B.js";
13
+ import { _ as to } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
14
+ const eo = ["info", "success", "warning", "error"], no = /* @__PURE__ */ R({
15
+ ...M("Toast"),
13
16
  __name: "Toast",
14
17
  props: {
15
18
  type: {},
@@ -17,6 +20,7 @@ const F = ["info", "success", "warning", "error"], G = /* @__PURE__ */ T({
17
20
  progress: { type: Boolean, default: !1 },
18
21
  closable: { type: Boolean, default: !0 },
19
22
  paused: { type: Boolean },
23
+ actions: { type: Boolean },
20
24
  title: {},
21
25
  description: {},
22
26
  icon: {},
@@ -29,16 +33,24 @@ const F = ["info", "success", "warning", "error"], G = /* @__PURE__ */ T({
29
33
  actionsCls: {},
30
34
  headerCls: {},
31
35
  closeCls: {},
32
- onCloseNotification: {}
36
+ okProps: { default: () => ({
37
+ text: "Confirm"
38
+ }) },
39
+ cancelProps: { default: () => ({
40
+ text: "Dismiss",
41
+ type: "ghost",
42
+ color: "neutral"
43
+ }) }
33
44
  },
34
- setup(b) {
35
- const p = b, l = N(), s = D("toast"), $ = E(s, {
45
+ emits: ["ok", "cancel", "closeNotification"],
46
+ setup(L, { emit: E }) {
47
+ const t = L, o = j(), f = E, c = Q("toast"), V = K(c, {
36
48
  variants: {
37
- type: k(F, s),
38
- paused: k("paused", s)
49
+ type: $(eo, c),
50
+ paused: $("paused", c)
39
51
  }
40
- }), h = f(() => {
41
- switch (p.type) {
52
+ }), A = P(() => {
53
+ switch (t.type) {
42
54
  case "info":
43
55
  return "sky";
44
56
  case "success":
@@ -49,9 +61,9 @@ const F = ["info", "success", "warning", "error"], G = /* @__PURE__ */ T({
49
61
  return "red";
50
62
  }
51
63
  return "primary";
52
- }), d = f(() => {
53
- if (p.icon) return p.icon;
54
- switch (p.type) {
64
+ }), g = P(() => {
65
+ if (t.icon) return t.icon;
66
+ switch (t.type) {
55
67
  case "info":
56
68
  return "tabler:info-circle";
57
69
  case "success":
@@ -61,95 +73,127 @@ const F = ["info", "success", "warning", "error"], G = /* @__PURE__ */ T({
61
73
  case "error":
62
74
  return "tabler:circle-x";
63
75
  }
64
- });
65
- return (o, m) => (a(), i("div", {
66
- class: t(e(r)(e($)({ type: o.type, paused: o.paused }), p.class))
76
+ }), z = () => {
77
+ var C;
78
+ const r = (C = o.icon) == null ? void 0 : C.call(o), u = !d(r);
79
+ if (u || g.value)
80
+ return s(
81
+ "div",
82
+ { class: l(c, "icon") },
83
+ s(
84
+ Z,
85
+ {
86
+ icon: g.value,
87
+ size: "sm",
88
+ style: { color: x("rouad") }
89
+ },
90
+ u ? { icon: r } : {}
91
+ )
92
+ );
93
+ }, H = () => {
94
+ const u = (() => {
95
+ var n;
96
+ const e = (n = o.description) == null ? void 0 : n.call(o), i = !d(e);
97
+ if (i || t.description)
98
+ return s(
99
+ "div",
100
+ {
101
+ class: a(l(c, "description"), t.descriptionCls, "paragraph")
102
+ },
103
+ i ? e : t.description
104
+ );
105
+ })(), v = (() => {
106
+ var n;
107
+ const e = (n = o.title) == null ? void 0 : n.call(o), i = !d(e);
108
+ if (t.title || i)
109
+ return s(
110
+ "div",
111
+ { class: a(l(c, "title"), t.titleCls, "paragraph") },
112
+ i ? e : t.title
113
+ );
114
+ })(), B = (() => {
115
+ var n;
116
+ const e = (n = o.closeButton) == null ? void 0 : n.call(o), i = !d(e);
117
+ if (t.closable || i)
118
+ return s(
119
+ "div",
120
+ { class: a(l(c, "close"), t.closeCls) },
121
+ i ? e : s(Y, {
122
+ icon: "tabler:x",
123
+ color: "neutral",
124
+ type: "ghost",
125
+ onClick: (m) => f("closeNotification", m)
126
+ })
127
+ );
128
+ })(), I = (() => {
129
+ var n;
130
+ const e = (n = o.link) == null ? void 0 : n.call(o);
131
+ if (!d(e)) return e;
132
+ })(), h = (() => {
133
+ var m;
134
+ const e = (m = o.actions) == null ? void 0 : m.call(o), i = !d(e);
135
+ let n;
136
+ if (i ? n = e : t.actions && (n = s(X, void 0, () => {
137
+ var _, b;
138
+ return [
139
+ (_ = t.cancelProps) != null && _.hide ? null : s(
140
+ D,
141
+ {
142
+ ...t.cancelProps ?? {},
143
+ onClick: (y) => f("cancel", y)
144
+ },
145
+ {
146
+ default: o.cancel,
147
+ preIcon: o.cancelPreIcon,
148
+ postIcon: o.cancelPostIcon
149
+ }
150
+ ),
151
+ (b = t.okProps) != null && b.hide ? null : s(
152
+ D,
153
+ {
154
+ ...t.okProps ?? {},
155
+ onClick: (y) => f("ok", y)
156
+ },
157
+ {
158
+ default: o.ok,
159
+ preIcon: o.okPreIcon,
160
+ postIcon: o.okPostIcon
161
+ }
162
+ )
163
+ ];
164
+ })), n)
165
+ return s("div", { class: a(l(c, "actions"), t.actionsCls) }, n);
166
+ })(), k = !I && !u, O = () => {
167
+ if (!v && !B && !(k && h)) return null;
168
+ const e = [v];
169
+ return k && e.push(h), e.push(B), s("div", { class: a(l(c, "header"), t.headerCls) }, e);
170
+ }, S = [s("div", { class: a(l(c, "content"), t.contentCls) }, [
171
+ O(),
172
+ u
173
+ ])];
174
+ return k || S.push(I, h), s("div", { class: a(l(c, "body"), t.bodyCls) }, S);
175
+ };
176
+ return (r, u) => (T(), q("div", {
177
+ class: w(p(a)(p(V)({ type: r.type, paused: r.paused }), t.class))
67
178
  }, [
68
- u(o.$slots, "render", {}, () => [
69
- l.icon || d.value ? (a(), i("div", {
179
+ F(r.$slots, "default", {}, () => [
180
+ N(z),
181
+ N(H),
182
+ r.progress && p(oo)(r.duration) && ![0, 1 / 0].includes(r.duration) ? (T(), G(p(to), {
70
183
  key: 0,
71
- class: t(e(n)(e(s), "icon"))
72
- }, [
73
- g(P, {
74
- icon: d.value,
75
- size: "sm",
76
- style: V({ color: e(R)("rouad") })
77
- }, S({ _: 2 }, [
78
- l.icon ? {
79
- name: "icon",
80
- fn: z(() => [
81
- u(o.$slots, "icon")
82
- ]),
83
- key: "0"
84
- } : void 0
85
- ]), 1032, ["icon", "style"])
86
- ], 2)) : c("", !0),
87
- y("div", {
88
- class: t(e(r)(e(n)(e(s), "body"), o.bodyCls))
89
- }, [
90
- y("div", {
91
- class: t(e(r)(e(n)(e(s), "content"), o.contentCls))
92
- }, [
93
- o.title || l.title ? (a(), i("div", {
94
- key: 0,
95
- class: t(e(r)(e(n)(e(s), "header"), o.headerCls))
96
- }, [
97
- o.title || l.title ? (a(), i("div", {
98
- key: 0,
99
- class: t(e(r)(e(n)(e(s), "title"), o.titleCls, "paragraph"))
100
- }, [
101
- u(o.$slots, "title", {}, () => [
102
- B(v(o.title), 1)
103
- ])
104
- ], 2)) : c("", !0),
105
- p.closable || l.closeButton ? (a(), i("div", {
106
- key: 1,
107
- class: t(e(r)(e(n)(e(s), "close"), o.closeCls))
108
- }, [
109
- u(o.$slots, "closeButton", {}, () => [
110
- g(O, {
111
- icon: "tabler:x",
112
- color: "neutral",
113
- type: "ghost",
114
- onClick: m[0] || (m[0] = (H) => {
115
- var C;
116
- return (C = o.onCloseNotification) == null ? void 0 : C.call(o);
117
- })
118
- })
119
- ])
120
- ], 2)) : c("", !0)
121
- ], 2)) : c("", !0),
122
- o.description || l.description ? (a(), i("div", {
123
- key: 1,
124
- class: t(e(r)(e(n)(e(s), "description"), o.descriptionCls, "paragraph"))
125
- }, [
126
- u(o.$slots, "description", {}, () => [
127
- B(v(o.description), 1)
128
- ])
129
- ], 2)) : c("", !0)
130
- ], 2),
131
- l.actions ? (a(), i("div", {
132
- key: 0,
133
- class: t(e(r)(e(n)(e(s), "actions"), o.actionsCls))
134
- }, [
135
- u(o.$slots, "actions")
136
- ], 2)) : c("", !0)
137
- ], 2),
138
- o.progress && e(j)(o.duration) && ![0, 1 / 0].includes(o.duration) ? (a(), w(e(q), {
139
- key: 1,
140
- class: t(e(r)(e(n)(e(s), "progress"), o.progressCls)),
184
+ class: w(p(a)(p(l)(p(c), "progress"), r.progressCls)),
141
185
  noTransition: "",
142
186
  notRounded: "",
143
- duration: o.duration,
144
- color: h.value
145
- }, null, 8, ["class", "duration", "color"])) : c("", !0)
187
+ duration: r.duration,
188
+ color: A.value
189
+ }, null, 8, ["class", "duration", "color"])) : J("", !0)
146
190
  ])
147
191
  ], 2));
148
192
  }
149
- }), x = A(G, L("Toast"));
193
+ }), So = W(no, U("Toast"));
150
194
  export {
151
- G as Toast,
152
- x as ToastPlugin,
153
- F as ToastTypes,
154
- G as default
195
+ no as Toast,
196
+ So as ToastPlugin,
197
+ eo as ToastTypes,
198
+ no as default
155
199
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("class-variance-authority"),n=require("@pantograph/utils"),f=require("../IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js"),B=require("../Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js");require("../Progress/index.umd.cjs");const g=require("@pantograph/tokens"),y=require("../isNumber-DMOjxgl8.js"),k=require("../Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js"),v=require("@pantograph/utils-vue"),u=["info","success","warning","error"],l=e.defineComponent({...n.getComponentOptions("Toast"),__name:"Toast",props:{type:{},duration:{default:3e3},progress:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},paused:{type:Boolean},title:{},description:{},icon:{},class:{},bodyCls:{},progressCls:{},contentCls:{},titleCls:{},descriptionCls:{},actionsCls:{},headerCls:{},closeCls:{},onCloseNotification:{}},setup(m){const s=m,t=e.useSlots(),r=n.getBemBlock("toast"),d=C.cva(r,{variants:{type:n.generateVariantClassList(u,r),paused:n.generateVariantClassList("paused",r)}}),p=e.computed(()=>{switch(s.type){case"info":return"sky";case"success":return"green";case"warning":return"yellow";case"error":return"red"}return"primary"}),a=e.computed(()=>{if(s.icon)return s.icon;switch(s.type){case"info":return"tabler:info-circle";case"success":return"tabler:circle-check";case"warning":return"tabler:alert-triangle";case"error":return"tabler:circle-x"}});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(d)({type:o.type,paused:o.paused}),s.class))},[e.renderSlot(o.$slots,"render",{},()=>[t.icon||a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.getBemElement)(e.unref(r),"icon"))},[e.createVNode(B._sfc_main,{icon:a.value,size:"sm",style:e.normalizeStyle({color:e.unref(g.getCssCoreVar)("rouad")})},e.createSlots({_:2},[t.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"icon")]),key:"0"}:void 0]),1032,["icon","style"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"body"),o.bodyCls))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"content"),o.contentCls))},[o.title||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"header"),o.headerCls))},[o.title||t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"title"),o.titleCls,"paragraph"))},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)):e.createCommentVNode("",!0),s.closable||t.closeButton?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"close"),o.closeCls))},[e.renderSlot(o.$slots,"closeButton",{},()=>[e.createVNode(f._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:i[0]||(i[0]=N=>{var c;return(c=o.onCloseNotification)==null?void 0:c.call(o)})})])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.description||t.description?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"description"),o.descriptionCls,"paragraph"))},[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(o.description),1)])],2)):e.createCommentVNode("",!0)],2),t.actions?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"actions"),o.actionsCls))},[e.renderSlot(o.$slots,"actions")],2)):e.createCommentVNode("",!0)],2),o.progress&&e.unref(y.isNumber)(o.duration)&&![0,1/0].includes(o.duration)?(e.openBlock(),e.createBlock(e.unref(k._sfc_main),{key:1,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(r),"progress"),o.progressCls)),noTransition:"",notRounded:"",duration:o.duration,color:p.value},null,8,["class","duration","color"])):e.createCommentVNode("",!0)])],2))}}),E=v.installComponent(l,n.getComponentName("Toast"));exports.Toast=l;exports.ToastPlugin=E;exports.ToastTypes=u;exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),D=require("class-variance-authority"),n=require("@pantograph/utils"),a=require("@pantograph/utils-vue"),A=require("../index-DzG8mnap.js"),z=require("../IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js"),S=require("../Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js"),M=require("../Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js");require("../Progress/index.umd.cjs");const O=require("@pantograph/tokens");require("../Button/index.umd.cjs");const j=require("../isNumber-DMOjxgl8.js"),G=require("../Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js"),T=["info","success","warning","error"],_=e.defineComponent({...n.getComponentOptions("Toast"),__name:"Toast",props:{type:{},duration:{default:3e3},progress:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},paused:{type:Boolean},actions:{type:Boolean},title:{},description:{},icon:{},class:{},bodyCls:{},progressCls:{},contentCls:{},titleCls:{},descriptionCls:{},actionsCls:{},headerCls:{},closeCls:{},okProps:{default:()=>({text:"Confirm"})},cancelProps:{default:()=>({text:"Dismiss",type:"ghost",color:"neutral"})}},emits:["ok","cancel","closeNotification"],setup(b,{emit:P}){const o=b,t=e.useSlots(),m=P,c=n.getBemBlock("toast"),q=D.cva(c,{variants:{type:n.generateVariantClassList(T,c),paused:n.generateVariantClassList("paused",c)}}),N=e.computed(()=>{switch(o.type){case"info":return"sky";case"success":return"green";case"warning":return"yellow";case"error":return"red"}return"primary"}),g=e.computed(()=>{if(o.icon)return o.icon;switch(o.type){case"info":return"tabler:info-circle";case"success":return"tabler:circle-check";case"warning":return"tabler:alert-triangle";case"error":return"tabler:circle-x"}}),V=()=>{var d;const i=(d=t.icon)==null?void 0:d.call(t),u=!a.isEmptyElement(i);if(u||g.value)return e.h("div",{class:n.getBemElement(c,"icon")},e.h(M._sfc_main,{icon:g.value,size:"sm",style:{color:O.getCssCoreVar("rouad")}},u?{icon:i}:{}))},w=()=>{const u=(()=>{var r;const s=(r=t.description)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(l||o.description)return e.h("div",{class:n.normCls(n.getBemElement(c,"description"),o.descriptionCls,"paragraph")},l?s:o.description)})(),y=(()=>{var r;const s=(r=t.title)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(o.title||l)return e.h("div",{class:n.normCls(n.getBemElement(c,"title"),o.titleCls,"paragraph")},l?s:o.title)})(),k=(()=>{var r;const s=(r=t.closeButton)==null?void 0:r.call(t),l=!a.isEmptyElement(s);if(o.closable||l)return e.h("div",{class:n.normCls(n.getBemElement(c,"close"),o.closeCls)},l?s:e.h(z._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:p=>m("closeNotification",p)}))})(),v=(()=>{var r;const s=(r=t.link)==null?void 0:r.call(t);if(!a.isEmptyElement(s))return s})(),f=(()=>{var p;const s=(p=t.actions)==null?void 0:p.call(t),l=!a.isEmptyElement(s);let r;if(l?r=s:o.actions&&(r=e.h(A._sfc_main,void 0,()=>{var E,I;return[(E=o.cancelProps)!=null&&E.hide?null:e.h(S._sfc_main,{...o.cancelProps??{},onClick:h=>m("cancel",h)},{default:t.cancel,preIcon:t.cancelPreIcon,postIcon:t.cancelPostIcon}),(I=o.okProps)!=null&&I.hide?null:e.h(S._sfc_main,{...o.okProps??{},onClick:h=>m("ok",h)},{default:t.ok,preIcon:t.okPreIcon,postIcon:t.okPostIcon})]})),r)return e.h("div",{class:n.normCls(n.getBemElement(c,"actions"),o.actionsCls)},r)})(),C=!v&&!u,L=()=>{if(!y&&!k&&!(C&&f))return null;const s=[y];return C&&s.push(f),s.push(k),e.h("div",{class:n.normCls(n.getBemElement(c,"header"),o.headerCls)},s)},B=[e.h("div",{class:n.normCls(n.getBemElement(c,"content"),o.contentCls)},[L(),u])];return C||B.push(v,f),e.h("div",{class:n.normCls(n.getBemElement(c,"body"),o.bodyCls)},B)};return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n.normCls)(e.unref(q)({type:i.type,paused:i.paused}),o.class))},[e.renderSlot(i.$slots,"default",{},()=>[e.createVNode(V),e.createVNode(w),i.progress&&e.unref(j.isNumber)(i.duration)&&![0,1/0].includes(i.duration)?(e.openBlock(),e.createBlock(e.unref(G._sfc_main),{key:0,class:e.normalizeClass(e.unref(n.normCls)(e.unref(n.getBemElement)(e.unref(c),"progress"),i.progressCls)),noTransition:"",notRounded:"",duration:i.duration,color:N.value},null,8,["class","duration","color"])):e.createCommentVNode("",!0)])],2))}}),H=a.installComponent(_,n.getComponentName("Toast"));exports.Toast=_;exports.ToastPlugin=H;exports.ToastTypes=T;exports.default=_;
@@ -64,7 +64,6 @@ declare const __VLS_component: import('vue').DefineComponent<TreeProps, {
64
64
  onChoose?: ((event: Sortable.SortableEvent) => any) | undefined;
65
65
  onUnchoose?: ((event: Sortable.SortableEvent) => any) | undefined;
66
66
  }>, {
67
- size: import('./Tree.model').TreeSize;
68
67
  disabled: boolean;
69
68
  selectionBehavior: "toggle" | "replace";
70
69
  focusable: boolean;
@@ -1,4 +1,4 @@
1
- import { _ as o, T as t, a as T, b as i, c as p, d, _ as n, i as l, p as m } from "../index-BdPkHVwS.js";
1
+ import { _ as o, T as t, a as T, b as i, c as p, d, _ as n, i as l, p as m } from "../index-Y3XMSR_o.js";
2
2
  import "@pantograph/utils-vue";
3
3
  import "@pantograph/utils";
4
4
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-J_dmgfpe.js");require("@pantograph/utils-vue");require("@pantograph/utils");exports.Tree=e._sfc_main;exports.TreeGaps=e.TreeGaps;exports.TreeNode=e._sfc_main$1;exports.TreeNodePlugin=e.TreeNodePlugin;exports.TreePlugin=e.TreePlugin;exports.TreeSizes=e.TreeSizes;exports.default=e._sfc_main;exports.injectTreeContext=e.injectTreeContext;exports.provideTreeContext=e.provideTreeContext;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-DBiL8Htz.js");require("@pantograph/utils-vue");require("@pantograph/utils");exports.Tree=e._sfc_main;exports.TreeGaps=e.TreeGaps;exports.TreeNode=e._sfc_main$1;exports.TreeNodePlugin=e.TreeNodePlugin;exports.TreePlugin=e.TreePlugin;exports.TreeSizes=e.TreeSizes;exports.default=e._sfc_main;exports.injectTreeContext=e.injectTreeContext;exports.provideTreeContext=e.provideTreeContext;
@@ -1,13 +1,13 @@
1
- import { defineComponent as V, createElementBlock as G, openBlock as U, Fragment as fe, createBlock as R, createCommentVNode as j, createVNode as q, unref as i, normalizeClass as D, createSlots as lt, withCtx as te, withModifiers as M, computed as x, h as K, createElementVNode as _e, mergeProps as Ce, useSlots as ze, useAttrs as Ie, ref as Y, watch as ce, nextTick as be, readonly as it, renderSlot as Le, normalizeProps as Te, guardReactiveProps as Re } from "vue";
1
+ import { defineComponent as V, createElementBlock as G, openBlock as U, Fragment as fe, createBlock as R, createCommentVNode as j, createVNode as D, unref as i, normalizeClass as q, createSlots as lt, withCtx as te, withModifiers as M, computed as x, h as K, createElementVNode as _e, mergeProps as Ce, useSlots as ze, useAttrs as Ie, ref as Y, watch as ce, nextTick as be, readonly as it, renderSlot as Le, normalizeProps as Te, guardReactiveProps as Re } from "vue";
2
2
  import { createContext as me } from "reka-ui";
3
3
  import { getBemBlock as at, getBemElement as B, getComponentOptions as W, normCls as ge, generateVariantClassList as H, usePCId as de, getComponentName as ve } from "@pantograph/utils";
4
4
  import { cva as Be } from "class-variance-authority";
5
5
  import { _ as Se } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
6
- import { _ as rt } from "../FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js";
7
- import { _ as J } from "../IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js";
6
+ import { _ as rt } from "../FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js";
7
+ import { _ as J } from "../IconButton.vue_vue_type_script_setup_true_lang-BwL7lOA2.js";
8
8
  import { _ as ut } from "../Image.vue_vue_type_style_index_0_lang-CQv-I6_G.js";
9
9
  import { isFunction as Z, isEqual as ct, throttle as pt, pick as dt, cloneDeep as C } from "es-toolkit";
10
- import { _ as ft } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js";
10
+ import { _ as ft } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js";
11
11
  import { isEmptyElement as N, useFormInput as mt, installComponent as he } from "@pantograph/utils-vue";
12
12
  import { _ as gt } from "../FormValidation.vue_vue_type_style_index_0_lang-5tWE2LgD.js";
13
13
  import { i as se } from "../isObject-vmP43YLW.js";
@@ -217,7 +217,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
217
217
  key: 0,
218
218
  src: i(Oe)(i(t).props.uploadFile) ? i(t).props.uploadFile.thumbUrl ?? i(t).props.uploadFile.url : void 0,
219
219
  aspectRatio: "1:1",
220
- class: D(i(B)(i(L), "image")),
220
+ class: q(i(B)(i(L), "image")),
221
221
  sizeRange: "xsm",
222
222
  alt: i(t).label.value,
223
223
  hovered: i(t).props.uploadFile.status === "uploading",
@@ -249,12 +249,12 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
249
249
  key: 1,
250
250
  type: "circle",
251
251
  size: i(s).progressSize.value,
252
- class: D(i(B)(i(L), "progress")),
252
+ class: q(i(B)(i(L), "progress")),
253
253
  indeterminate: i(t).props.uploadFile.status === "waiting",
254
254
  percent: ((g = i(t).props.uploadFile) == null ? void 0 : g.percent) ?? 0
255
255
  }, null, 8, ["size", "class", "indeterminate", "percent"])) : j("", !0),
256
- q(rt, {
257
- class: D(
256
+ D(rt, {
257
+ class: q(
258
258
  i(ge)(i(B)(i(L), "cancel"), "pantograph-tokens pantograph-dark")
259
259
  ),
260
260
  color: "neutral",
@@ -337,12 +337,12 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
337
337
  i(s).props.go ? (U(), R(zt, { key: 0 })) : j("", !0),
338
338
  ["error", "done"].includes(i(t).props.uploadFile.status) ? (U(), G("div", {
339
339
  key: 2,
340
- class: D(i(B)(i(L), "content"))
340
+ class: q(i(B)(i(L), "content"))
341
341
  }, [
342
342
  _e("div", {
343
- class: D(i(B)(i(L), "title"))
343
+ class: q(i(B)(i(L), "title"))
344
344
  }, [
345
- q(n)
345
+ D(n)
346
346
  ], 2),
347
347
  i(t).props.uploadFile.status === "error" ? (U(), R(gt, {
348
348
  key: 0,
@@ -351,18 +351,18 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
351
351
  })) : i(s).props.size !== "md" ? (U(), R(d, { key: 1 })) : j("", !0)
352
352
  ], 2)) : (U(), R(Se, {
353
353
  key: 1,
354
- class: D(i(B)(i(L), "progress")),
354
+ class: q(i(B)(i(L), "progress")),
355
355
  percent: ((o = i(t).props.uploadFile) == null ? void 0 : o.percent) ?? 0,
356
356
  label: i(t).label.value,
357
357
  helperText: g.value,
358
358
  helperTextCls: i(B)(i(L), "percent")
359
359
  }, {
360
360
  label: te(() => [
361
- q(n)
361
+ D(n)
362
362
  ]),
363
363
  _: 1
364
364
  }, 8, ["class", "percent", "label", "helperText", "helperTextCls"])),
365
- q(p, null, {
365
+ D(p, null, {
366
366
  default: te(() => {
367
367
  var h;
368
368
  return [
@@ -389,7 +389,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
389
389
  color: "neutral",
390
390
  onClick: c[0] || (c[0] = M((v) => i(s).resetRequest(i(t).props.uploadFile.uid), ["stop"]))
391
391
  }, null, 8, ["icon"])) : j("", !0),
392
- q(J, {
392
+ D(J, {
393
393
  icon: ["done", "error"].includes(i(t).props.uploadFile.status) ? "tabler:trash" : "tabler:x",
394
394
  size: "sm",
395
395
  type: "ghost",
@@ -443,7 +443,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
443
443
  status: (u = g.uploadFile) == null ? void 0 : u.status
444
444
  })
445
445
  }, { ...((o = (c = i(n).props).getUploadItemProps) == null ? void 0 : o.call(c, g.uploadFile)) ?? {} }), [
446
- q(r)
446
+ D(r)
447
447
  ], 16);
448
448
  };
449
449
  }
@@ -461,7 +461,7 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
461
461
  }), n = g, r++;
462
462
  }
463
463
  return d;
464
- }, qe = (e, { getUid: s, chunkFile: t, chunkSize: d }) => {
464
+ }, De = (e, { getUid: s, chunkFile: t, chunkSize: d }) => {
465
465
  if (se(e)) {
466
466
  let n;
467
467
  if (e instanceof File)
@@ -502,8 +502,8 @@ const Pe = at("upload"), ee = B(Pe, "list"), L = B(ee, "item"), [ht, yt] = me("B
502
502
  }
503
503
  }, Bt = (e, s) => {
504
504
  if (se(e))
505
- return e instanceof Blob || e instanceof File ? qe(e, s) : (!e.uid && !Object.isFrozen(e) && (e.uid = s.getUid()), e);
506
- }, De = (e, s) => {
505
+ return e instanceof Blob || e instanceof File ? De(e, s) : (!e.uid && !Object.isFrozen(e) && (e.uid = s.getUid()), e);
506
+ }, qe = (e, s) => {
507
507
  if (e && s) {
508
508
  const t = Array.isArray(s) ? s : s.split(","), d = (e == null ? void 0 : e.name) || "", n = (e == null ? void 0 : e.type) || "", r = n.replace(/\/.*$/, "");
509
509
  return t.some((g) => {
@@ -614,9 +614,9 @@ const Me = /* @__PURE__ */ V({
614
614
  });
615
615
  }
616
616
  }, Ve = (l) => {
617
- vt(l) && l.filter((m) => !c.value.directory || De(m, v.value)).forEach((m) => {
617
+ vt(l) && l.filter((m) => !c.value.directory || qe(m, v.value)).forEach((m) => {
618
618
  Ge(
619
- qe(m, {
619
+ De(m, {
620
620
  getUid: Fe,
621
621
  chunkFile: h.value,
622
622
  chunkSize: c.value.chunkSize
@@ -905,7 +905,7 @@ const Me = /* @__PURE__ */ V({
905
905
  var b;
906
906
  return (b = P.fileList.value) != null && b.length ? (U(), G("div", {
907
907
  key: 0,
908
- class: D(
908
+ class: q(
909
909
  i(ge)(
910
910
  i(Qe)({
911
911
  size: P.props.size,
@@ -915,7 +915,7 @@ const Me = /* @__PURE__ */ V({
915
915
  )
916
916
  )
917
917
  }, [
918
- q(et)
918
+ D(et)
919
919
  ], 2)) : j("", !0);
920
920
  };
921
921
  }
@@ -966,7 +966,9 @@ const Me = /* @__PURE__ */ V({
966
966
  },
967
967
  emits: ["addFiles"],
968
968
  setup(e, { emit: s }) {
969
- const t = s, d = e, { getDisabled: n } = mt(), r = Y(), g = (v) => {
969
+ const t = s, d = e, { getDisabled: n } = mt({
970
+ exports: ["getDisabled"]
971
+ }), r = Y(), g = (v) => {
970
972
  const { files: f } = v.target;
971
973
  t("addFiles", Array.prototype.slice.call(f)), p.value && (p.value.value = "");
972
974
  }, p = Y(), u = () => {
@@ -980,7 +982,7 @@ const Me = /* @__PURE__ */ V({
980
982
  let f = [];
981
983
  v.dataTransfer && (d.directory ? f = await jt(Array.prototype.slice.call(v.dataTransfer.items)) : f = Array.prototype.slice.call(v.dataTransfer.files)), d.multiple || (f = f.slice(0, 1)), t(
982
984
  "addFiles",
983
- f.filter((I) => De(I, d.accept))
985
+ f.filter((I) => qe(I, d.accept))
984
986
  );
985
987
  }, h = x(() => n.value ? {} : {
986
988
  onClick: u,
@@ -1083,14 +1085,14 @@ const Me = /* @__PURE__ */ V({
1083
1085
  disabled: o.disabled,
1084
1086
  accept: c.getAccept.value,
1085
1087
  onAddFiles: c.addFiles.value,
1086
- class: D(o.triggerCls)
1088
+ class: q(o.triggerCls)
1087
1089
  }, {
1088
1090
  default: te((v) => [
1089
1091
  Le(o.$slots, "default", Te(Re(v)))
1090
1092
  ]),
1091
1093
  _: 3
1092
1094
  }, 8, ["multiple", "directory", "disabled", "accept", "onAddFiles", "class"])),
1093
- q(Me, {
1095
+ D(Me, {
1094
1096
  action: o.action,
1095
1097
  ref_key: "listRef",
1096
1098
  ref: u