@pantograph/vue 0.30.4 → 0.30.6

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 (173) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-7KKRWq3t.js → ActionButton.vue_vue_type_script_setup_true_lang-CBomTo6K.js} +1 -1
  4. 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
  5. package/dist/Alert/index.js +2 -2
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/Avatar/index.js +2 -2
  8. package/dist/Avatar/index.umd.cjs +1 -1
  9. package/dist/{Avatar.vue_vue_type_style_index_0_lang-CzFkAcKT.js → Avatar.vue_vue_type_style_index_0_lang-Br3Z0y8H.js} +57 -57
  10. package/dist/Avatar.vue_vue_type_style_index_0_lang-DldQzFne.js +1 -0
  11. package/dist/AvatarGroup/index.js +1 -1
  12. package/dist/AvatarGroup/index.umd.cjs +1 -1
  13. package/dist/Badge/index.js +1 -1
  14. package/dist/Badge/index.umd.cjs +1 -1
  15. 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
  16. package/dist/{Badge.vue_vue_type_script_setup_true_lang-CxBSrreK.js → Badge.vue_vue_type_script_setup_true_lang-BYCiP2uS.js} +1 -1
  17. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-DQMQ2WbE.js +1 -0
  18. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-DAiX2m7y.js → BaseBadge.vue_vue_type_style_index_0_lang-Xgu4prlJ.js} +19 -19
  19. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CLFsLZTl.js +1 -0
  20. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-qkW0olhp.js → BaseButton.vue_vue_type_style_index_0_lang-f9XsnFlF.js} +66 -62
  21. package/dist/Blanket/index.js +1 -1
  22. package/dist/Blanket/index.umd.cjs +1 -1
  23. package/dist/{Blanket.vue_vue_type_style_index_0_lang-Dv68meO4.js → Blanket.vue_vue_type_style_index_0_lang-BZDbPoxP.js} +1 -1
  24. package/dist/{Blanket.vue_vue_type_style_index_0_lang-WKNPEuJI.js → Blanket.vue_vue_type_style_index_0_lang-CDrlnkqH.js} +1 -1
  25. package/dist/Button/Button.d.ts +1 -1
  26. package/dist/Button/index.js +1 -1
  27. package/dist/Button/index.umd.cjs +1 -1
  28. package/dist/{Button.vue_vue_type_script_setup_true_lang-BFY3zxov.js → Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js} +1 -1
  29. 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
  30. package/dist/ButtonGroup/ButtonGroup.d.ts +0 -1
  31. package/dist/ButtonGroup/index.js +1 -1
  32. package/dist/ButtonGroup/index.umd.cjs +1 -1
  33. package/dist/Checkbox/index.js +2 -2
  34. package/dist/Checkbox/index.umd.cjs +1 -1
  35. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CAdNvT8f.js → Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js} +1 -1
  36. 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
  37. package/dist/CheckboxGroup/index.js +1 -1
  38. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  39. package/dist/ColorPicker/index.js +2 -2
  40. package/dist/ColorPicker/index.umd.cjs +1 -1
  41. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Did8RS1T.js → ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js} +3 -3
  42. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BVjzmZnp.js → ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js} +1 -1
  43. package/dist/ColorSwatch/index.js +32 -34
  44. package/dist/ColorSwatch/index.umd.cjs +1 -1
  45. package/dist/ColorSwatchGroup/index.js +1 -1
  46. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  47. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +1 -0
  48. 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
  49. package/dist/ColorTrigger/ColorTrigger.d.ts +0 -1
  50. package/dist/ColorTrigger/index.js +2 -2
  51. package/dist/ColorTrigger/index.umd.cjs +1 -1
  52. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +89 -0
  53. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +1 -0
  54. package/dist/Combobox/Combobox.d.ts +2 -7
  55. package/dist/Combobox/index.js +73 -70
  56. package/dist/Combobox/index.umd.cjs +1 -1
  57. package/dist/Comment/CommentActions.d.ts +0 -8
  58. package/dist/Comment/CommentEditor.d.ts +0 -16
  59. package/dist/Comment/CommentMention.d.ts +4 -12
  60. package/dist/Comment/CommentReactions.d.ts +0 -4
  61. package/dist/Comment/CommentTrigger.d.ts +2 -1
  62. package/dist/Comment/index.js +12 -10
  63. package/dist/Comment/index.umd.cjs +1 -1
  64. package/dist/DataTable/index.js +7 -7
  65. package/dist/DataTable/index.umd.cjs +1 -1
  66. package/dist/DropZone/DropZone.d.ts +3 -0
  67. package/dist/DropZone/index.js +122 -84
  68. package/dist/DropZone/index.umd.cjs +1 -1
  69. package/dist/FloatButton/FloatButton.d.ts +1 -1
  70. package/dist/FloatButton/index.js +1 -1
  71. package/dist/FloatButton/index.umd.cjs +1 -1
  72. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js → FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js} +1 -1
  73. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Y3NGu4lx.js → FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js} +1 -1
  74. package/dist/Form/Form.d.ts +3 -1
  75. package/dist/Form/FormItem.d.ts +0 -1
  76. package/dist/Form/index.js +3 -3
  77. package/dist/Form/index.umd.cjs +2 -2
  78. package/dist/GOPicker/GOPicker.d.ts +0 -1
  79. package/dist/GOPicker/index.js +10 -7
  80. package/dist/GOPicker/index.umd.cjs +1 -1
  81. package/dist/GraphicalObject/index.js +1 -1
  82. package/dist/GraphicalObject/index.umd.cjs +1 -1
  83. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js → GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js} +1 -1
  84. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CgjAIWEo.js → GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js} +1 -1
  85. package/dist/IconButton/IconButton.d.ts +1 -1
  86. package/dist/IconButton/index.js +1 -1
  87. package/dist/IconButton/index.umd.cjs +1 -1
  88. 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
  89. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js → IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js} +1 -1
  90. package/dist/IndentLevel/index.js +2 -2
  91. package/dist/IndentLevel/index.umd.cjs +1 -1
  92. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUUUBn2Z.js → IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js} +1 -1
  93. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Bv3yL1Lk.js → IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js} +1 -1
  94. package/dist/Indicator/index.js +1 -1
  95. package/dist/Indicator/index.umd.cjs +1 -1
  96. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BYE7yX5H.js → Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js} +1 -1
  97. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Rv1Cz38f.js → Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js} +1 -1
  98. package/dist/Input/index.js +1 -1
  99. package/dist/Input/index.umd.cjs +1 -1
  100. package/dist/{Input.vue_vue_type_script_setup_true_lang-ByHGhDsA.js → Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js} +26 -25
  101. package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +1 -0
  102. package/dist/InputNumber/InputNumber.d.ts +9 -9
  103. package/dist/InputNumber/index.js +1 -1
  104. package/dist/InputNumber/index.umd.cjs +1 -1
  105. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +1 -0
  106. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-C4GMpH6O.js → InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js} +86 -85
  107. package/dist/Menu/index.js +2 -2
  108. package/dist/Menu/index.umd.cjs +1 -1
  109. package/dist/MenuItem/MenuItem.d.ts +5 -1
  110. package/dist/MenuItem/index.js +2 -2
  111. package/dist/MenuItem/index.umd.cjs +1 -1
  112. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-ByicYJot.js → MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js} +212 -209
  113. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +1 -0
  114. package/dist/Pagination/index.js +22 -20
  115. package/dist/Pagination/index.umd.cjs +1 -1
  116. package/dist/RadioGroup/index.js +1 -1
  117. package/dist/RadioGroup/index.umd.cjs +1 -1
  118. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js} +8 -6
  119. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js → RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js} +1 -1
  120. package/dist/Segmented/index.js +2 -2
  121. package/dist/Segmented/index.umd.cjs +1 -1
  122. package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +1 -0
  123. package/dist/{Segmented.vue_vue_type_style_index_0_lang-BXQbBiaE.js → Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js} +9 -7
  124. package/dist/Select/Select.d.ts +0 -1
  125. package/dist/Select/index.js +2 -2
  126. package/dist/Select/index.umd.cjs +1 -1
  127. package/dist/{Select.vue_vue_type_style_index_0_lang-7Tq97moQ.js → Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js} +114 -112
  128. 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
  129. package/dist/Steps/Step.d.ts +1 -0
  130. package/dist/Steps/index.js +1 -1
  131. package/dist/Steps/index.umd.cjs +1 -1
  132. package/dist/SubMenu/index.js +1 -1
  133. package/dist/SubMenu/index.umd.cjs +1 -1
  134. package/dist/Switch/index.js +2 -2
  135. package/dist/Switch/index.umd.cjs +1 -1
  136. package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +1 -0
  137. package/dist/{Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js → Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js} +17 -15
  138. package/dist/Tabs/index.js +2 -2
  139. package/dist/Tabs/index.umd.cjs +1 -1
  140. package/dist/Textarea/index.js +43 -42
  141. package/dist/Textarea/index.umd.cjs +1 -1
  142. package/dist/Toast/Toast.d.ts +39 -3
  143. package/dist/Toast/index.d.ts +2 -2
  144. package/dist/Toast/index.js +114 -83
  145. package/dist/Toast/index.umd.cjs +1 -1
  146. package/dist/Tree/Tree.d.ts +0 -1
  147. package/dist/Tree/index.js +1 -1
  148. package/dist/Tree/index.umd.cjs +1 -1
  149. package/dist/Upload/index.js +29 -27
  150. package/dist/Upload/index.umd.cjs +1 -1
  151. package/dist/{index-AwKp_D1S.js → index-ClFtJyYC.js} +2 -2
  152. package/dist/index-DBiL8Htz.js +1 -0
  153. package/dist/index-DzG8mnap.js +1 -0
  154. package/dist/{index-BdPkHVwS.js → index-Y3XMSR_o.js} +72 -69
  155. package/dist/index.js +25 -25
  156. package/dist/index.umd.cjs +1 -1
  157. package/dist/style/index.css +1 -1
  158. package/dist/use/index.js +26 -26
  159. package/dist/use/index.umd.cjs +1 -1
  160. package/package.json +3 -3
  161. package/dist/Avatar.vue_vue_type_style_index_0_lang-CX1z2Bid.js +0 -1
  162. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-O-9lK4KI.js +0 -1
  163. package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1jasaOz.js +0 -1
  164. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDF1AL9P.js +0 -1
  165. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BkJ15M1P.js +0 -88
  166. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bm5rLiVf.js +0 -1
  167. package/dist/Input.vue_vue_type_script_setup_true_lang-CTIaAkrW.js +0 -1
  168. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DW-JqPiv.js +0 -1
  169. package/dist/MenuItem.vue_vue_type_style_index_0_lang-zBvtuEx_.js +0 -1
  170. package/dist/Segmented.vue_vue_type_style_index_0_lang-CLYRU64q.js +0 -1
  171. package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +0 -1
  172. package/dist/index-CLWvy5OA.js +0 -1
  173. package/dist/index-J_dmgfpe.js +0 -1
@@ -1,15 +1,18 @@
1
- import { defineComponent as $, useSlots as z, computed as b, createElementBlock as P, openBlock as T, normalizeClass as I, unref as p, renderSlot as H, createVNode as _, createBlock as O, createCommentVNode as R, h as c } from "vue";
2
- import { cva as w } from "class-variance-authority";
3
- import { getComponentOptions as j, getBemBlock as q, generateVariantClassList as y, getBemElement as a, normCls as l, getComponentName as F } from "@pantograph/utils";
4
- import { isEmptyElement as d, installComponent as G } from "@pantograph/utils-vue";
5
- import { _ as J } from "../IconButton.vue_vue_type_script_setup_true_lang-DsSD_y63.js";
6
- import { _ as K } 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";
7
9
  import "../Progress/index.js";
8
- import { getCssCoreVar as M } from "@pantograph/tokens";
9
- import { i as Q } from "../isNumber-BduWbB-B.js";
10
- import { _ as U } from "../Progress.vue_vue_type_style_index_0_lang-Ba_Fby6M.js";
11
- const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
12
- ...j("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 W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
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,22 +33,24 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
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(N) {
35
- const o = N, t = z(), s = q("toast"), L = w(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: y(W, s),
38
- paused: y("paused", s)
49
+ type: $(eo, c),
50
+ paused: $("paused", c)
39
51
  }
40
- }), h = a(s, "body");
41
- w(h, {
42
- variants: {
43
- inline: y("inline", h)
44
- }
45
- });
46
- const A = b(() => {
47
- switch (o.type) {
52
+ }), A = P(() => {
53
+ switch (t.type) {
48
54
  case "info":
49
55
  return "sky";
50
56
  case "success":
@@ -55,9 +61,9 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
55
61
  return "red";
56
62
  }
57
63
  return "primary";
58
- }), g = b(() => {
59
- if (o.icon) return o.icon;
60
- switch (o.type) {
64
+ }), g = P(() => {
65
+ if (t.icon) return t.icon;
66
+ switch (t.type) {
61
67
  case "info":
62
68
  return "tabler:info-circle";
63
69
  case "success":
@@ -67,102 +73,127 @@ const W = ["info", "success", "warning", "error"], X = /* @__PURE__ */ $({
67
73
  case "error":
68
74
  return "tabler:circle-x";
69
75
  }
70
- }), D = () => {
71
- var m;
72
- const r = (m = t.icon) == null ? void 0 : m.call(t), u = !d(r);
76
+ }), z = () => {
77
+ var C;
78
+ const r = (C = o.icon) == null ? void 0 : C.call(o), u = !d(r);
73
79
  if (u || g.value)
74
- return c(
80
+ return s(
75
81
  "div",
76
- { class: a(s, "icon") },
77
- c(
78
- K,
82
+ { class: l(c, "icon") },
83
+ s(
84
+ Z,
79
85
  {
80
86
  icon: g.value,
81
87
  size: "sm",
82
- style: { color: M("rouad") }
88
+ style: { color: x("rouad") }
83
89
  },
84
90
  u ? { icon: r } : {}
85
91
  )
86
92
  );
87
- }, E = () => {
93
+ }, H = () => {
88
94
  const u = (() => {
89
95
  var n;
90
- const e = (n = t.description) == null ? void 0 : n.call(t), i = !d(e);
91
- if (i || o.description)
92
- return c(
96
+ const e = (n = o.description) == null ? void 0 : n.call(o), i = !d(e);
97
+ if (i || t.description)
98
+ return s(
93
99
  "div",
94
100
  {
95
- class: l(a(s, "description"), o.descriptionCls, "paragraph")
101
+ class: a(l(c, "description"), t.descriptionCls, "paragraph")
96
102
  },
97
- i ? e : o.description
103
+ i ? e : t.description
98
104
  );
99
105
  })(), v = (() => {
100
106
  var n;
101
- const e = (n = t.title) == null ? void 0 : n.call(t), i = !d(e);
102
- if (o.title || i)
103
- return c(
107
+ const e = (n = o.title) == null ? void 0 : n.call(o), i = !d(e);
108
+ if (t.title || i)
109
+ return s(
104
110
  "div",
105
- { class: l(a(s, "title"), o.titleCls, "paragraph") },
106
- i ? e : o.title
111
+ { class: a(l(c, "title"), t.titleCls, "paragraph") },
112
+ i ? e : t.title
107
113
  );
108
- })(), S = (() => {
114
+ })(), B = (() => {
109
115
  var n;
110
- const e = (n = t.closeButton) == null ? void 0 : n.call(t), i = !d(e);
111
- if (o.closable || i)
112
- return c(
116
+ const e = (n = o.closeButton) == null ? void 0 : n.call(o), i = !d(e);
117
+ if (t.closable || i)
118
+ return s(
113
119
  "div",
114
- { class: l(a(s, "close"), o.closeCls) },
115
- i ? e : c(J, {
120
+ { class: a(l(c, "close"), t.closeCls) },
121
+ i ? e : s(Y, {
116
122
  icon: "tabler:x",
117
123
  color: "neutral",
118
124
  type: "ghost",
119
- onClick: o.onCloseNotification
125
+ onClick: (m) => f("closeNotification", m)
120
126
  })
121
127
  );
122
- })(), k = (() => {
128
+ })(), I = (() => {
123
129
  var n;
124
- const e = (n = t.link) == null ? void 0 : n.call(t);
130
+ const e = (n = o.link) == null ? void 0 : n.call(o);
125
131
  if (!d(e)) return e;
126
- })(), f = (() => {
127
- var n;
128
- const e = (n = t.actions) == null ? void 0 : n.call(t);
129
- if (!d(e))
130
- return c(
131
- "div",
132
- { class: l(a(s, "actions"), o.actionsCls) },
133
- e
134
- );
135
- })(), C = !k && !u, V = () => {
136
- if (!v && !S && !(C && f)) return null;
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;
137
168
  const e = [v];
138
- return C && e.push(f), e.push(S), c("div", { class: l(a(s, "header"), o.headerCls) }, e);
139
- }, B = [c("div", { class: l(a(s, "content"), o.contentCls) }, [
140
- 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(),
141
172
  u
142
173
  ])];
143
- return C || B.push(k, f), c("div", { class: l(a(s, "body"), o.bodyCls) }, B);
174
+ return k || S.push(I, h), s("div", { class: a(l(c, "body"), t.bodyCls) }, S);
144
175
  };
145
- return (r, u) => (T(), P("div", {
146
- class: I(p(l)(p(L)({ type: r.type, paused: r.paused }), o.class))
176
+ return (r, u) => (T(), q("div", {
177
+ class: w(p(a)(p(V)({ type: r.type, paused: r.paused }), t.class))
147
178
  }, [
148
- H(r.$slots, "render", {}, () => [
149
- _(D),
150
- _(E),
151
- r.progress && p(Q)(r.duration) && ![0, 1 / 0].includes(r.duration) ? (T(), O(p(U), {
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), {
152
183
  key: 0,
153
- class: I(p(l)(p(a)(p(s), "progress"), r.progressCls)),
184
+ class: w(p(a)(p(l)(p(c), "progress"), r.progressCls)),
154
185
  noTransition: "",
155
186
  notRounded: "",
156
187
  duration: r.duration,
157
188
  color: A.value
158
- }, null, 8, ["class", "duration", "color"])) : R("", !0)
189
+ }, null, 8, ["class", "duration", "color"])) : J("", !0)
159
190
  ])
160
191
  ], 2));
161
192
  }
162
- }), mo = G(X, F("Toast"));
193
+ }), So = W(no, U("Toast"));
163
194
  export {
164
- X as Toast,
165
- mo as ToastPlugin,
166
- W as ToastTypes,
167
- X as default
195
+ no as Toast,
196
+ So as ToastPlugin,
197
+ eo as ToastTypes,
198
+ no as default
168
199
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("class-variance-authority"),t=require("@pantograph/utils"),a=require("@pantograph/utils-vue"),V=require("../IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js"),N=require("../Icon.vue_vue_type_style_index_0_lang-DOQsa_aO.js");require("../Progress/index.umd.cjs");const L=require("@pantograph/tokens"),w=require("../isNumber-DMOjxgl8.js"),A=require("../Progress.vue_vue_type_style_index_0_lang-D_g_XsJ4.js"),E=["info","success","warning","error"],C=e.defineComponent({...t.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(S){const n=S,s=e.useSlots(),i=t.getBemBlock("toast"),k=B.cva(i,{variants:{type:t.generateVariantClassList(E,i),paused:t.generateVariantClassList("paused",i)}}),g=t.getBemElement(i,"body");B.cva(g,{variants:{inline:t.generateVariantClassList("inline",g)}});const b=e.computed(()=>{switch(n.type){case"info":return"sky";case"success":return"green";case"warning":return"yellow";case"error":return"red"}return"primary"}),y=e.computed(()=>{if(n.icon)return n.icon;switch(n.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"}}),T=()=>{var p;const c=(p=s.icon)==null?void 0:p.call(s),u=!a.isEmptyElement(c);if(u||y.value)return e.h("div",{class:t.getBemElement(i,"icon")},e.h(N._sfc_main,{icon:y.value,size:"sm",style:{color:L.getCssCoreVar("rouad")}},u?{icon:c}:{}))},q=()=>{const u=(()=>{var r;const o=(r=s.description)==null?void 0:r.call(s),l=!a.isEmptyElement(o);if(l||n.description)return e.h("div",{class:t.normCls(t.getBemElement(i,"description"),n.descriptionCls,"paragraph")},l?o:n.description)})(),f=(()=>{var r;const o=(r=s.title)==null?void 0:r.call(s),l=!a.isEmptyElement(o);if(n.title||l)return e.h("div",{class:t.normCls(t.getBemElement(i,"title"),n.titleCls,"paragraph")},l?o:n.title)})(),h=(()=>{var r;const o=(r=s.closeButton)==null?void 0:r.call(s),l=!a.isEmptyElement(o);if(n.closable||l)return e.h("div",{class:t.normCls(t.getBemElement(i,"close"),n.closeCls)},l?o:e.h(V._sfc_main,{icon:"tabler:x",color:"neutral",type:"ghost",onClick:n.onCloseNotification}))})(),_=(()=>{var r;const o=(r=s.link)==null?void 0:r.call(s);if(!a.isEmptyElement(o))return o})(),m=(()=>{var r;const o=(r=s.actions)==null?void 0:r.call(s);if(!a.isEmptyElement(o))return e.h("div",{class:t.normCls(t.getBemElement(i,"actions"),n.actionsCls)},o)})(),d=!_&&!u,I=()=>{if(!f&&!h&&!(d&&m))return null;const o=[f];return d&&o.push(m),o.push(h),e.h("div",{class:t.normCls(t.getBemElement(i,"header"),n.headerCls)},o)},v=[e.h("div",{class:t.normCls(t.getBemElement(i,"content"),n.contentCls)},[I(),u])];return d||v.push(_,m),e.h("div",{class:t.normCls(t.getBemElement(i,"body"),n.bodyCls)},v)};return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t.normCls)(e.unref(k)({type:c.type,paused:c.paused}),n.class))},[e.renderSlot(c.$slots,"render",{},()=>[e.createVNode(T),e.createVNode(q),c.progress&&e.unref(w.isNumber)(c.duration)&&![0,1/0].includes(c.duration)?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,class:e.normalizeClass(e.unref(t.normCls)(e.unref(t.getBemElement)(e.unref(i),"progress"),c.progressCls)),noTransition:"",notRounded:"",duration:c.duration,color:b.value},null,8,["class","duration","color"])):e.createCommentVNode("",!0)])],2))}}),P=a.installComponent(C,t.getComponentName("Toast"));exports.Toast=C;exports.ToastPlugin=P;exports.ToastTypes=E;exports.default=C;
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