@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,6 +1,6 @@
1
- import { defineComponent as U, useSlots as Q, computed as C, useAttrs as ee, createBlock as E, openBlock as B, h as P, ref as J, getCurrentInstance as ae, unref as c, resolveDynamicComponent as ye, mergeProps as A, withCtx as $, createElementVNode as Ce, createVNode as fe, createSlots as N, renderList as F, renderSlot as D, normalizeProps as T, guardReactiveProps as V, createElementBlock as w, Fragment as oe, watch as ne, withModifiers as he, normalizeClass as q, createCommentVNode as Y, createTextVNode as be, toDisplayString as ke } from "vue";
2
- import { getBemBlock as se, getComponentOptions as X, generateVariantClassList as _, normCls as S, getBemElement as z, usePCId as re, isEmptyLikeLodash as Se } from "@pantograph/utils";
3
- import { isEmptyElement as L, useInputDataStates as ie, useFormInput as Be } from "@pantograph/utils-vue";
1
+ import { defineComponent as U, useSlots as Q, computed as C, useAttrs as ee, createBlock as E, openBlock as k, h as $, ref as J, getCurrentInstance as ae, unref as c, resolveDynamicComponent as ye, mergeProps as A, withCtx as T, createElementVNode as Ce, createVNode as fe, createSlots as N, renderList as j, renderSlot as D, normalizeProps as F, guardReactiveProps as V, createElementBlock as w, Fragment as oe, watch as ne, withModifiers as he, normalizeClass as q, createCommentVNode as Y, createTextVNode as be, toDisplayString as ke } from "vue";
2
+ import { getBemBlock as se, getComponentOptions as X, generateVariantClassList as _, normCls as b, getBemElement as M, usePCId as ie, isEmptyLikeLodash as Se } from "@pantograph/utils";
3
+ import { isEmptyElement as L, useInputDataStates as re, useFormInput as Be } from "@pantograph/utils-vue";
4
4
  import { cva as ue } from "class-variance-authority";
5
5
  import { omit as Me, cloneDeep as Z, isString as ze } from "es-toolkit";
6
6
  import { _ as Ke } from "./Icon.vue_vue_type_style_index_0_lang-CD9EvvB5.js";
@@ -8,7 +8,7 @@ import { _ as Ie } from "./index--fAgg2DC.js";
8
8
  import { HoverCard as _e } from "./HoverCard/index.js";
9
9
  import { createContext as de } from "reka-ui";
10
10
  import { i as De } from "./isNumber-BduWbB-B.js";
11
- const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
11
+ const ce = ["sm", "md", "lg"], m = se("menu_item"), te = (o) => {
12
12
  switch (o) {
13
13
  case "sm":
14
14
  return "2xsm";
@@ -80,99 +80,99 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
80
80
  slotProps: {}
81
81
  },
82
82
  setup(o) {
83
- const s = o, l = Q(), t = ue(v, {
83
+ const s = o, t = Q(), v = ue(m, {
84
84
  variants: {
85
- size: _(ce, v),
86
- selected: _("selected", v),
87
- unFocusable: _("un-focusable", v),
88
- danger: _("danger", v),
89
- disabled: _("disabled", v),
90
- hoverTrailing: _("hover-trailing", v),
91
- description: _("description", v),
92
- leadingCenter: _("leading-center", v),
93
- staticStyle: _("static-style", v)
85
+ size: _(ce, m),
86
+ selected: _("selected", m),
87
+ unFocusable: _("un-focusable", m),
88
+ danger: _("danger", m),
89
+ disabled: _("disabled", m),
90
+ hoverTrailing: _("hover-trailing", m),
91
+ description: _("description", m),
92
+ leadingCenter: _("leading-center", m),
93
+ staticStyle: _("static-style", m)
94
94
  }
95
- }), i = C(() => Pe(s.size, s.slotProps)), e = ee(), m = () => {
96
- var p;
97
- const g = (p = l.description) == null ? void 0 : p.call(l, s.slotProps ?? {}), b = !L(g), K = () => {
98
- var j, G, H, R;
99
- const f = [], u = (j = l.leading) == null ? void 0 : j.call(l, i.value), n = !L(u);
95
+ }), i = C(() => Pe(s.size, s.slotProps)), e = ee(), y = () => {
96
+ var u;
97
+ const p = (u = t.description) == null ? void 0 : u.call(t, s.slotProps ?? {}), S = !L(p), z = () => {
98
+ var K, G, H, R;
99
+ const f = [], O = (K = t.leading) == null ? void 0 : K.call(t, i.value), n = !L(O);
100
100
  (n || s.leading) && f.push(
101
- P(
101
+ $(
102
102
  "div",
103
- { class: S(z(v, "leading"), s.leadingCls) },
104
- P(
103
+ { class: b(M(m, "leading"), s.leadingCls) },
104
+ $(
105
105
  "div",
106
106
  {
107
- class: S(
108
- z(v, "leading_content"),
107
+ class: b(
108
+ M(m, "leading_content"),
109
109
  s.leadingContentCls
110
110
  )
111
111
  },
112
- n ? u : s.leading
112
+ n ? O : s.leading
113
113
  )
114
114
  )
115
115
  );
116
- const d = (G = l.title) == null ? void 0 : G.call(l, s.slotProps ?? {}), r = !L(d);
117
- if (r || s.title || b || s.description) {
118
- const O = [];
119
- (r || s.title) && O.push(
120
- P(
116
+ const a = (G = t.title) == null ? void 0 : G.call(t, s.slotProps ?? {}), r = !L(a);
117
+ if (r || s.title || S || s.description) {
118
+ const P = [];
119
+ (r || s.title) && P.push(
120
+ $(
121
121
  "div",
122
- { class: S(z(v, "title"), s.titleCls) },
123
- r ? d : s.title
122
+ { class: b(M(m, "title"), s.titleCls) },
123
+ r ? a : s.title
124
124
  )
125
- ), (b || s.description) && O.push(
126
- P(
125
+ ), (S || s.description) && P.push(
126
+ $(
127
127
  "div",
128
128
  {
129
- class: S(z(v, "description"), s.descriptionCls)
129
+ class: b(M(m, "description"), s.descriptionCls)
130
130
  },
131
- b ? g : s.description
131
+ S ? p : s.description
132
132
  )
133
133
  ), f.push(
134
- P(
134
+ $(
135
135
  "div",
136
- { class: S(z(v, "content"), s.contentCls) },
137
- O
136
+ { class: b(M(m, "content"), s.contentCls) },
137
+ P
138
138
  )
139
139
  );
140
140
  }
141
- const y = (H = l.trailing) == null ? void 0 : H.call(l, i.value), h = !L(y);
141
+ const g = (H = t.trailing) == null ? void 0 : H.call(t, i.value), d = !L(g);
142
142
  if (s.hasChildren) {
143
- const O = (R = l.branchIcon) == null ? void 0 : R.call(l, i.value);
143
+ const P = (R = t.branchIcon) == null ? void 0 : R.call(t, i.value);
144
144
  f.push(
145
- P(
145
+ $(
146
146
  Ke,
147
147
  {
148
- class: S(z(v, "branch"), s.branchCls ?? ""),
148
+ class: b(M(m, "branch"), s.branchCls ?? ""),
149
149
  flipOnDir: "rtl",
150
150
  size: i.value.checkIconSize,
151
151
  icon: s.branchIcon
152
152
  },
153
153
  {
154
- default: L(O) ? null : O
154
+ default: L(P) ? null : P
155
155
  }
156
156
  )
157
157
  );
158
- } else (h || s.trailing) && f.push(
159
- P(
158
+ } else (d || s.trailing) && f.push(
159
+ $(
160
160
  "div",
161
- { class: S(z(v, "trailing"), s.trailingCls) },
162
- h ? y : s.trailing
161
+ { class: b(M(m, "trailing"), s.trailingCls) },
162
+ d ? g : s.trailing
163
163
  )
164
164
  );
165
165
  return f;
166
166
  };
167
- return P(
167
+ return $(
168
168
  "div",
169
169
  {
170
170
  ...e,
171
171
  role: "menuitem",
172
172
  tabindex: s.unFocusable ? void 0 : e.tabindex ?? 0,
173
173
  "data-hover": s.hover ? "" : void 0,
174
- class: S(
175
- t({
174
+ class: b(
175
+ v({
176
176
  size: s.size,
177
177
  selected: s.selected,
178
178
  unFocusable: s.unFocusable,
@@ -181,15 +181,15 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
181
181
  disabled: s.disabled,
182
182
  hoverTrailing: s.hoverTrailing,
183
183
  leadingCenter: s.leadingCenter,
184
- description: !!(b || s.description)
184
+ description: !!(S || s.description)
185
185
  }),
186
186
  s.class
187
187
  )
188
188
  },
189
- K()
189
+ z()
190
190
  );
191
191
  };
192
- return (g, b) => (B(), E(m));
192
+ return (p, S) => (k(), E(y));
193
193
  }
194
194
  }), $e = [...ce, "none"], [Te, Fe] = de("SubMenu"), je = /* @__PURE__ */ U({
195
195
  ...X("SubMenu"),
@@ -228,7 +228,7 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
228
228
  slotProps: {}
229
229
  },
230
230
  setup(o) {
231
- const s = o, l = Q(), t = C(() => {
231
+ const s = o, t = Q(), v = C(() => {
232
232
  switch (s.size) {
233
233
  case "lg":
234
234
  return 10;
@@ -237,39 +237,39 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
237
237
  default:
238
238
  return 6;
239
239
  }
240
- }), i = J(), e = s.unExtendParent ? void 0 : ve(), m = C(() => {
241
- var a;
242
- return s.triggerSubMenuAction ?? ((a = e == null ? void 0 : e.props) == null ? void 0 : a.triggerSubMenuAction);
243
- }), g = Te({
240
+ }), i = J(), e = s.unExtendParent ? void 0 : ve(), y = C(() => {
241
+ var l;
242
+ return s.triggerSubMenuAction ?? ((l = e == null ? void 0 : e.props) == null ? void 0 : l.triggerSubMenuAction);
243
+ }), p = Te({
244
244
  parentKeys: []
245
- }), b = (a) => {
245
+ }), S = (l) => {
246
246
  var I;
247
- (m.value === "click" || (I = c(g.parentKeys)) != null && I.length) && (a.stopPropagation(), a.preventDefault());
248
- }, K = se("sub_menu"), p = re(K), f = C(() => {
249
- var a;
250
- return ((a = ae()) == null ? void 0 : a.vnode.key) ?? p;
247
+ (y.value === "click" || (I = c(p.parentKeys)) != null && I.length) && (l.stopPropagation(), l.preventDefault());
248
+ }, z = se("sub_menu"), u = ie(z), f = C(() => {
249
+ var l;
250
+ return ((l = ae()) == null ? void 0 : l.vnode.key) ?? u;
251
251
  });
252
252
  Fe({
253
- parentKeys: C(() => [...c(g.parentKeys), f.value])
253
+ parentKeys: C(() => [...c(p.parentKeys), f.value])
254
254
  });
255
- const u = C(() => ({
255
+ const O = C(() => ({
256
256
  ...s,
257
257
  key: f.value,
258
258
  hasChildren: !0,
259
- parentKeys: c(g.parentKeys)
259
+ parentKeys: c(p.parentKeys)
260
260
  })), n = C(() => {
261
- var a;
262
- return ((a = e == null ? void 0 : e.props) == null ? void 0 : a.size) ?? s.size;
263
- }), d = () => {
264
- var a;
265
- return !!((a = e == null ? void 0 : e.getDisabled) != null && a.value || s.disabled);
266
- }, { rootBindings: r, inputBindings: y } = ie({
267
- getDisabled: d
268
- }), h = J(!1), j = C(() => {
269
- var a;
270
- return ((a = e == null ? void 0 : e.isOpen) == null ? void 0 : a.call(e, f.value)) ?? h.value;
261
+ var l;
262
+ return ((l = e == null ? void 0 : e.props) == null ? void 0 : l.size) ?? s.size;
263
+ }), a = () => {
264
+ var l;
265
+ return !!((l = e == null ? void 0 : e.getDisabled) != null && l.value || s.disabled);
266
+ }, { rootBindings: r, inputBindings: g } = re({
267
+ getDisabled: a
268
+ }), d = J(!1), K = C(() => {
269
+ var l;
270
+ return ((l = e == null ? void 0 : e.isOpen) == null ? void 0 : l.call(e, f.value)) ?? d.value;
271
271
  }), G = C(() => {
272
- var a, I, k;
272
+ var l, I, h;
273
273
  return {
274
274
  ...Me(s, [
275
275
  "subMenuOpenDelay",
@@ -280,77 +280,77 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
280
280
  "items"
281
281
  ]),
282
282
  size: n.value,
283
- selected: ((a = e == null ? void 0 : e.isItemSelected) == null ? void 0 : a.call(e, u.value)) ?? s.selected,
283
+ selected: ((l = e == null ? void 0 : e.isItemSelected) == null ? void 0 : l.call(e, O.value)) ?? s.selected,
284
284
  hoverTrailing: s.hoverTrailing ?? ((I = e == null ? void 0 : e.props) == null ? void 0 : I.hoverTrailing),
285
- leadingCenter: s.leadingCenter ?? ((k = e == null ? void 0 : e.props) == null ? void 0 : k.leadingCenter),
285
+ leadingCenter: s.leadingCenter ?? ((h = e == null ? void 0 : e.props) == null ? void 0 : h.leadingCenter),
286
286
  hasChildren: !0,
287
- unFocusable: d(),
288
- disabled: d(),
289
- onClick: (M) => {
287
+ unFocusable: a(),
288
+ disabled: a(),
289
+ onClick: (B) => {
290
290
  var W;
291
- return (W = e == null ? void 0 : e.onClick) == null ? void 0 : W.call(e, u.value, M);
291
+ return (W = e == null ? void 0 : e.onClick) == null ? void 0 : W.call(e, O.value, B);
292
292
  },
293
- hover: j.value,
294
- ...y.value
293
+ hover: K.value,
294
+ ...g.value
295
295
  };
296
- }), H = (a) => {
297
- var k, M;
298
- (((k = e == null ? void 0 : e.isOpen) == null ? void 0 : k.call(e, f.value)) ?? h.value) !== a && (e != null && e.onChildrenOpenChange ? (M = e == null ? void 0 : e.onChildrenOpenChange) == null || M.call(e, u.value, a) : h.value = a);
296
+ }), H = (l) => {
297
+ var h, B;
298
+ (((h = e == null ? void 0 : e.isOpen) == null ? void 0 : h.call(e, f.value)) ?? d.value) !== l && (e != null && e.onChildrenOpenChange ? (B = e == null ? void 0 : e.onChildrenOpenChange) == null || B.call(e, O.value, l) : d.value = l);
299
299
  }, R = C(() => {
300
- var a, I, k, M;
300
+ var l, I, h, B;
301
301
  return {
302
302
  size: n.value,
303
303
  containerProps: {
304
- onClick: b
304
+ onClick: S
305
305
  },
306
306
  to: i.value,
307
307
  reversePlacementOnDir: "rtl",
308
308
  placement: "right-start",
309
309
  containerCls: [
310
- z(K, "items"),
311
- (a = e == null ? void 0 : e.props) == null ? void 0 : a.submenuCls,
310
+ M(z, "items"),
311
+ (l = e == null ? void 0 : e.props) == null ? void 0 : l.submenuCls,
312
312
  s.submenuCls
313
313
  ],
314
- sideOffset: t.value,
314
+ sideOffset: v.value,
315
315
  forceMount: s.forceMountSubmenu ?? ((I = e == null ? void 0 : e.props) == null ? void 0 : I.forceMountSubmenu),
316
- trigger: m.value,
317
- closeDelay: ((k = e == null ? void 0 : e.props) == null ? void 0 : k.subMenuCloseDelay) ?? s.subMenuCloseDelay,
318
- openDelay: ((M = e == null ? void 0 : e.props) == null ? void 0 : M.subMenuOpenDelay) ?? s.subMenuOpenDelay,
319
- open: j.value
316
+ trigger: y.value,
317
+ closeDelay: ((h = e == null ? void 0 : e.props) == null ? void 0 : h.subMenuCloseDelay) ?? s.subMenuCloseDelay,
318
+ openDelay: ((B = e == null ? void 0 : e.props) == null ? void 0 : B.subMenuOpenDelay) ?? s.subMenuOpenDelay,
319
+ open: K.value
320
320
  };
321
- }), O = C(() => m.value === "click" ? Ie : _e), me = ee();
322
- return (a, I) => (B(), E(ye(O.value), A(R.value, {
321
+ }), P = C(() => y.value === "click" ? Ie : _e), me = ee();
322
+ return (l, I) => (k(), E(ye(P.value), A(R.value, {
323
323
  "onUpdate:open": H,
324
- key: String(m.value)
324
+ key: String(y.value)
325
325
  }), {
326
- content: $(() => [
327
- D(a.$slots, "items", T(V({ ...s, key: f.value })), () => [
328
- (B(!0), w(oe, null, F(a.items, (k) => (B(), E(ge, { item: k }, N({ _: 2 }, [
329
- F(Object.keys(l), (M) => ({
330
- name: M,
331
- fn: $((W) => [
332
- D(a.$slots, M, A({ ref_for: !0 }, W))
326
+ content: T(() => [
327
+ D(l.$slots, "items", F(V({ ...s, key: f.value })), () => [
328
+ (k(!0), w(oe, null, j(l.items, (h) => (k(), E(ge, { item: h }, N({ _: 2 }, [
329
+ j(Object.keys(t), (B) => ({
330
+ name: B,
331
+ fn: T((W) => [
332
+ D(l.$slots, B, A({ ref_for: !0 }, W))
333
333
  ])
334
334
  }))
335
335
  ]), 1032, ["item"]))), 256))
336
336
  ])
337
337
  ]),
338
- default: $(() => [
338
+ default: T(() => [
339
339
  Ce("div", A({
340
- class: c(S)(c(K), s.submenuTriggerCls),
340
+ class: c(b)(c(z), s.submenuTriggerCls),
341
341
  ref_key: "root",
342
342
  ref: i
343
343
  }, c(r)), [
344
344
  fe(pe, A(G.value, {
345
- class: c(z)(c(K), "trigger")
345
+ class: c(M)(c(z), "trigger")
346
346
  }), N({ _: 2 }, [
347
- F(Object.keys(l), (k) => ({
348
- name: k,
349
- fn: $((M) => [
350
- D(a.$slots, k, T(V({
347
+ j(Object.keys(t), (h) => ({
348
+ name: h,
349
+ fn: T((B) => [
350
+ D(l.$slots, h, F(V({
351
351
  ...c(me),
352
352
  ...s,
353
- ...M,
353
+ ...B,
354
354
  key: f.value
355
355
  })))
356
356
  ])
@@ -367,22 +367,22 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
367
367
  item: {}
368
368
  },
369
369
  setup(o) {
370
- const s = o, l = Q(), t = C(() => {
370
+ const s = o, t = Q(), v = C(() => {
371
371
  var i, e;
372
- return !!((e = (i = s.item) == null ? void 0 : i.items) != null && e.length || l.items);
372
+ return !!((e = (i = s.item) == null ? void 0 : i.items) != null && e.length || t.items);
373
373
  });
374
- return (i, e) => t.value ? (B(), E(je, T(A({ key: 0 }, i.item)), N({ _: 2 }, [
375
- F(Object.keys(i.$slots), (m) => ({
376
- name: m,
377
- fn: $((g) => [
378
- D(i.$slots, m, T(V(g)))
374
+ return (i, e) => v.value ? (k(), E(je, F(A({ key: 0 }, i.item)), N({ _: 2 }, [
375
+ j(Object.keys(i.$slots), (y) => ({
376
+ name: y,
377
+ fn: T((p) => [
378
+ D(i.$slots, y, F(V(p)))
379
379
  ])
380
380
  }))
381
- ]), 1040)) : (B(), E(we, T(A({ key: 1 }, i.item)), N({ _: 2 }, [
382
- F(Object.keys(i.$slots), (m) => ({
383
- name: m,
384
- fn: $((g) => [
385
- D(i.$slots, m, T(V(g)))
381
+ ]), 1040)) : (k(), E(we, F(A({ key: 1 }, i.item)), N({ _: 2 }, [
382
+ j(Object.keys(i.$slots), (y) => ({
383
+ name: y,
384
+ fn: T((p) => [
385
+ D(i.$slots, y, F(V(p)))
386
386
  ])
387
387
  }))
388
388
  ]), 1040));
@@ -419,83 +419,85 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
419
419
  "select"
420
420
  ],
421
421
  setup(o, { emit: s }) {
422
- const l = o, t = s, { getDisabled: i } = Be(), e = se("menu"), m = ue(e, {
422
+ const t = o, v = s, { getDisabled: i } = Be({
423
+ exports: ["getDisabled"]
424
+ }), e = se("menu"), y = ue(e, {
423
425
  variants: {
424
426
  gap: _($e, e)
425
427
  }
426
- }), g = J(l.openKeys ?? []);
428
+ }), p = J(t.openKeys ?? []);
427
429
  ne(
428
- () => l.openKeys,
430
+ () => t.openKeys,
429
431
  () => {
430
- g.value = l.openKeys ?? [];
432
+ p.value = t.openKeys ?? [];
431
433
  }
432
434
  );
433
- const b = (n, d) => {
434
- let r = Z(g.value);
435
- d ? r = [...n.parentKeys ?? [], n.key] : r = r.filter((y) => y !== n.key), l.openKeys || (g.value = r), t("update:openKeys", r), t("openChange", r);
436
- }, K = (n) => g.value.includes(n), p = J(l.selectedKeys ?? []);
435
+ const S = (n, a) => {
436
+ let r = Z(p.value);
437
+ a ? r = [...n.parentKeys ?? [], n.key] : r = r.filter((g) => g !== n.key), t.openKeys || (p.value = r), v("update:openKeys", r), v("openChange", r);
438
+ }, z = (n) => p.value.includes(n), u = J(t.selectedKeys ?? []);
437
439
  return ne(
438
- () => l.selectedKeys,
440
+ () => t.selectedKeys,
439
441
  () => {
440
- p.value = l.selectedKeys ?? [];
442
+ u.value = t.selectedKeys ?? [];
441
443
  }
442
444
  ), Ee({
443
- props: l,
445
+ props: t,
444
446
  getDisabled: i,
445
- onClick: (n, d) => {
447
+ onClick: (n, a) => {
446
448
  const r = ![void 0, null].includes(n.key) && (ze(n.key) && !Se(n.key) || De(n.key));
447
- if (!i.value && !n.danger && !n.disabled && r && l.selectable && !n.hasChildren) {
448
- if (l.multiple)
449
- if (p.value.indexOf(n.key) > -1) {
450
- if (p.value.length > 1) {
451
- const h = Z(p.value).filter((j) => j !== n.key);
452
- l.selectedKeys || (p.value = h), t("update:selectedKeys", h), t("deselect", { item: n, selectedKeys: p.value });
449
+ if (!i.value && !n.danger && !n.disabled && r && t.selectable && !n.hasChildren) {
450
+ if (t.multiple)
451
+ if (u.value.indexOf(n.key) > -1) {
452
+ if (u.value.length > 1) {
453
+ const d = Z(u.value).filter((K) => K !== n.key);
454
+ t.selectedKeys || (u.value = d), v("update:selectedKeys", d), v("deselect", { item: n, selectedKeys: u.value });
453
455
  }
454
456
  } else {
455
- const h = [...Z(p.value), n.key];
456
- l.selectedKeys || (p.value = h), t("update:selectedKeys", h), t("select", { item: n, selectedKeys: p.value });
457
+ const d = [...Z(u.value), n.key];
458
+ t.selectedKeys || (u.value = d), v("update:selectedKeys", d), v("select", { item: n, selectedKeys: u.value });
457
459
  }
458
460
  else {
459
- const y = [n.key];
460
- l.selectedKeys || (p.value = y), t("update:selectedKeys", y), t("select", { item: n, selectedKeys: p.value });
461
+ const g = [n.key];
462
+ t.selectedKeys || (u.value = g), v("update:selectedKeys", g), v("select", { item: n, selectedKeys: u.value });
461
463
  }
462
- t("click", n, d);
464
+ v("click", n, a);
463
465
  }
464
466
  },
465
- isItemSelected: (n) => !i.value && !n.danger && !n.disabled && p.value.includes(n.key),
466
- onChildrenOpenChange: b,
467
- isOpen: K
468
- }), (n, d) => (B(), w("div", {
469
- class: q(c(S)(c(m)({ gap: n.gap ?? n.size }), l.class)),
470
- onClick: d[1] || (d[1] = he(() => {
467
+ isItemSelected: (n) => !i.value && !n.danger && !n.disabled && u.value.includes(n.key),
468
+ onChildrenOpenChange: S,
469
+ isOpen: z
470
+ }), (n, a) => (k(), w("div", {
471
+ class: q(c(b)(c(y)({ gap: n.gap ?? n.size }), t.class)),
472
+ onClick: a[1] || (a[1] = he(() => {
471
473
  }, ["stop"]))
472
474
  }, [
473
- n.$slots.header || n.header || n.$slots.headerActions ? (B(), w("div", {
475
+ n.$slots.header || n.header || n.$slots.headerActions ? (k(), w("div", {
474
476
  key: 0,
475
- class: q(c(S)(c(z)(c(e), "header"))),
476
- onClick: d[0] || (d[0] = (r) => t("headerClick", r))
477
+ class: q(c(b)(c(M)(c(e), "header"))),
478
+ onClick: a[0] || (a[0] = (r) => v("headerClick", r))
477
479
  }, [
478
- n.$slots.header || n.header ? (B(), w("div", {
480
+ n.$slots.header || n.header ? (k(), w("div", {
479
481
  key: 0,
480
- class: q(c(S)(c(z)(c(e), "header__title")))
482
+ class: q(c(b)(c(M)(c(e), "header__title")))
481
483
  }, [
482
484
  D(n.$slots, "header", {}, () => [
483
485
  be(ke(n.header), 1)
484
486
  ])
485
487
  ], 2)) : Y("", !0),
486
- n.$slots.headerActions ? (B(), w("div", {
488
+ n.$slots.headerActions ? (k(), w("div", {
487
489
  key: 1,
488
- class: q(c(S)(c(z)(c(e), "header__actions")))
490
+ class: q(c(b)(c(M)(c(e), "header__actions")))
489
491
  }, [
490
492
  D(n.$slots, "headerActions")
491
493
  ], 2)) : Y("", !0)
492
494
  ], 2)) : Y("", !0),
493
495
  D(n.$slots, "default", {}, () => [
494
- (B(!0), w(oe, null, F(n.items, (r) => (B(), E(ge, { item: r }, N({ _: 2 }, [
495
- F(Object.keys(n.$slots), (y) => ({
496
- name: y,
497
- fn: $((h) => [
498
- D(n.$slots, y, A({ ref_for: !0 }, h))
496
+ (k(!0), w(oe, null, j(n.items, (r) => (k(), E(ge, { item: r }, N({ _: 2 }, [
497
+ j(Object.keys(n.$slots), (g) => ({
498
+ name: g,
499
+ fn: T((d) => [
500
+ D(n.$slots, g, A({ ref_for: !0 }, d))
499
501
  ])
500
502
  }))
501
503
  ]), 1032, ["item"]))), 256))
@@ -529,51 +531,52 @@ const ce = ["sm", "md", "lg"], v = se("menu_item"), te = (o) => {
529
531
  slotProps: {},
530
532
  unExtendParent: { type: Boolean, default: !1 }
531
533
  },
532
- setup(o) {
533
- const s = o, l = Q(), t = s.unExtendParent ? void 0 : ve(), i = re(v), e = C(() => {
534
- var u;
535
- return ((u = ae()) == null ? void 0 : u.vnode.key) ?? i;
536
- }), m = C(() => ({
537
- ...s,
538
- key: e.value
539
- })), g = C(() => {
540
- var u;
541
- return ((u = t == null ? void 0 : t.props) == null ? void 0 : u.size) ?? s.size;
542
- }), b = () => {
543
- var u;
544
- return s.disabled ?? ((u = t == null ? void 0 : t.getDisabled) == null ? void 0 : u.value);
545
- }, { inputBindings: K } = ie({
546
- getDisabled: b
547
- }), p = C(() => {
548
- var u, n, d;
534
+ emits: ["click"],
535
+ setup(o, { emit: s }) {
536
+ const t = o, v = Q(), i = s, e = t.unExtendParent ? void 0 : ve(), y = ie(m), p = C(() => {
537
+ var a;
538
+ return ((a = ae()) == null ? void 0 : a.vnode.key) ?? y;
539
+ }), S = C(() => ({
540
+ ...t,
541
+ key: p.value
542
+ })), z = C(() => {
543
+ var a;
544
+ return ((a = e == null ? void 0 : e.props) == null ? void 0 : a.size) ?? t.size;
545
+ }), u = () => {
546
+ var a;
547
+ return t.disabled ?? ((a = e == null ? void 0 : e.getDisabled) == null ? void 0 : a.value);
548
+ }, { inputBindings: f } = re({
549
+ getDisabled: u
550
+ }), O = C(() => {
551
+ var a, r, g;
549
552
  return {
550
- ...s,
551
- size: g.value,
552
- selected: ((u = t == null ? void 0 : t.isItemSelected) == null ? void 0 : u.call(t, m.value)) ?? s.selected,
553
- unFocusable: t != null && t.onClick ? void 0 : s.unFocusable,
554
- hoverTrailing: s.hoverTrailing ?? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.hoverTrailing),
555
- leadingCenter: s.leadingCenter ?? ((d = t == null ? void 0 : t.props) == null ? void 0 : d.leadingCenter),
556
- disabled: b(),
557
- onClick: (r) => {
558
- var y;
559
- if (b()) {
560
- r.preventDefault(), r.stopPropagation();
553
+ ...t,
554
+ size: z.value,
555
+ selected: ((a = e == null ? void 0 : e.isItemSelected) == null ? void 0 : a.call(e, S.value)) ?? t.selected,
556
+ unFocusable: e != null && e.onClick ? void 0 : t.unFocusable,
557
+ hoverTrailing: t.hoverTrailing ?? ((r = e == null ? void 0 : e.props) == null ? void 0 : r.hoverTrailing),
558
+ leadingCenter: t.leadingCenter ?? ((g = e == null ? void 0 : e.props) == null ? void 0 : g.leadingCenter),
559
+ disabled: u(),
560
+ onClick: (d) => {
561
+ var K;
562
+ if (u()) {
563
+ d.preventDefault(), d.stopPropagation();
561
564
  return;
562
565
  }
563
- (y = t == null ? void 0 : t.onClick) == null || y.call(t, m.value, r);
566
+ (K = e == null ? void 0 : e.onClick) == null || K.call(e, S.value, d), i("click", d);
564
567
  },
565
- ...K.value
568
+ ...f.value
566
569
  };
567
- }), f = ee();
568
- return (u, n) => (B(), E(pe, T(V(p.value)), N({ _: 2 }, [
569
- F(Object.keys(l), (d) => ({
570
- name: d,
571
- fn: $((r) => [
572
- D(u.$slots, d, T(V({
573
- ...c(f),
574
- ...s,
575
- ...r,
576
- key: e.value
570
+ }), n = ee();
571
+ return (a, r) => (k(), E(pe, F(V(O.value)), N({ _: 2 }, [
572
+ j(Object.keys(v), (g) => ({
573
+ name: g,
574
+ fn: T((d) => [
575
+ D(a.$slots, g, F(V({
576
+ ...c(n),
577
+ ...t,
578
+ ...d,
579
+ key: p.value
577
580
  })))
578
581
  ])
579
582
  }))