@pantograph/vue 0.30.4 → 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 (167) 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/Button/Button.d.ts +1 -1
  22. package/dist/Button/index.js +1 -1
  23. package/dist/Button/index.umd.cjs +1 -1
  24. package/dist/{Button.vue_vue_type_script_setup_true_lang-BFY3zxov.js → Button.vue_vue_type_script_setup_true_lang-BjM34N0T.js} +1 -1
  25. 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
  26. package/dist/ButtonGroup/ButtonGroup.d.ts +0 -1
  27. package/dist/ButtonGroup/index.js +1 -1
  28. package/dist/ButtonGroup/index.umd.cjs +1 -1
  29. package/dist/Checkbox/index.js +2 -2
  30. package/dist/Checkbox/index.umd.cjs +1 -1
  31. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CAdNvT8f.js → Checkbox.vue_vue_type_style_index_0_lang-BfiCl2A5.js} +1 -1
  32. 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
  33. package/dist/CheckboxGroup/index.js +1 -1
  34. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  35. package/dist/ColorPicker/index.js +2 -2
  36. package/dist/ColorPicker/index.umd.cjs +1 -1
  37. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Did8RS1T.js → ColorPicker.vue_vue_type_style_index_0_lang-BDXrVKWB.js} +3 -3
  38. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BVjzmZnp.js → ColorPicker.vue_vue_type_style_index_0_lang-BI2oaC3F.js} +1 -1
  39. package/dist/ColorSwatch/index.js +32 -34
  40. package/dist/ColorSwatch/index.umd.cjs +1 -1
  41. package/dist/ColorSwatchGroup/index.js +1 -1
  42. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  43. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-C4bagGpG.js +1 -0
  44. 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
  45. package/dist/ColorTrigger/ColorTrigger.d.ts +0 -1
  46. package/dist/ColorTrigger/index.js +2 -2
  47. package/dist/ColorTrigger/index.umd.cjs +1 -1
  48. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-CAok_I9N.js +89 -0
  49. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Yg82Jn5N.js +1 -0
  50. package/dist/Combobox/Combobox.d.ts +2 -7
  51. package/dist/Combobox/index.js +73 -70
  52. package/dist/Combobox/index.umd.cjs +1 -1
  53. package/dist/Comment/CommentActions.d.ts +0 -8
  54. package/dist/Comment/CommentEditor.d.ts +0 -16
  55. package/dist/Comment/CommentMention.d.ts +4 -12
  56. package/dist/Comment/CommentReactions.d.ts +0 -4
  57. package/dist/Comment/CommentTrigger.d.ts +2 -1
  58. package/dist/Comment/index.js +12 -10
  59. package/dist/Comment/index.umd.cjs +1 -1
  60. package/dist/DataTable/index.js +7 -7
  61. package/dist/DataTable/index.umd.cjs +1 -1
  62. package/dist/DropZone/index.js +11 -9
  63. package/dist/DropZone/index.umd.cjs +1 -1
  64. package/dist/FloatButton/FloatButton.d.ts +1 -1
  65. package/dist/FloatButton/index.js +1 -1
  66. package/dist/FloatButton/index.umd.cjs +1 -1
  67. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxiLfXCr.js → FloatButton.vue_vue_type_script_setup_true_lang-BuUin84o.js} +1 -1
  68. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Y3NGu4lx.js → FloatButton.vue_vue_type_script_setup_true_lang-D2jtoN59.js} +1 -1
  69. package/dist/Form/Form.d.ts +3 -1
  70. package/dist/Form/FormItem.d.ts +0 -1
  71. package/dist/Form/index.js +3 -3
  72. package/dist/Form/index.umd.cjs +2 -2
  73. package/dist/GOPicker/GOPicker.d.ts +0 -1
  74. package/dist/GOPicker/index.js +10 -7
  75. package/dist/GOPicker/index.umd.cjs +1 -1
  76. package/dist/GraphicalObject/index.js +1 -1
  77. package/dist/GraphicalObject/index.umd.cjs +1 -1
  78. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DBKQk4LJ.js → GraphicalObject.vue_vue_type_script_setup_true_lang-km5VsLBH.js} +1 -1
  79. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CgjAIWEo.js → GraphicalObject.vue_vue_type_script_setup_true_lang-mMrUHRm_.js} +1 -1
  80. package/dist/IconButton/IconButton.d.ts +1 -1
  81. package/dist/IconButton/index.js +1 -1
  82. package/dist/IconButton/index.umd.cjs +1 -1
  83. 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
  84. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CY2MXWF8.js → IconButton.vue_vue_type_script_setup_true_lang-CxiVq3Pa.js} +1 -1
  85. package/dist/IndentLevel/index.js +2 -2
  86. package/dist/IndentLevel/index.umd.cjs +1 -1
  87. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BUUUBn2Z.js → IndentLevel.vue_vue_type_style_index_0_lang-CkvTqlkt.js} +1 -1
  88. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-Bv3yL1Lk.js → IndentLevel.vue_vue_type_style_index_0_lang-ra2hBDxs.js} +1 -1
  89. package/dist/Indicator/index.js +1 -1
  90. package/dist/Indicator/index.umd.cjs +1 -1
  91. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BYE7yX5H.js → Indicator.vue_vue_type_script_setup_true_lang-Cd4asWR8.js} +1 -1
  92. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Rv1Cz38f.js → Indicator.vue_vue_type_script_setup_true_lang-DFuzzwXK.js} +1 -1
  93. package/dist/Input/index.js +1 -1
  94. package/dist/Input/index.umd.cjs +1 -1
  95. package/dist/{Input.vue_vue_type_script_setup_true_lang-ByHGhDsA.js → Input.vue_vue_type_script_setup_true_lang-CzKEJH7a.js} +26 -25
  96. package/dist/Input.vue_vue_type_script_setup_true_lang-DTTGUaRI.js +1 -0
  97. package/dist/InputNumber/index.js +1 -1
  98. package/dist/InputNumber/index.umd.cjs +1 -1
  99. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DDwIkrP0.js +1 -0
  100. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-C4GMpH6O.js → InputNumber.vue_vue_type_script_setup_true_lang-DcxalTaC.js} +86 -85
  101. package/dist/Menu/index.js +2 -2
  102. package/dist/Menu/index.umd.cjs +1 -1
  103. package/dist/MenuItem/MenuItem.d.ts +5 -1
  104. package/dist/MenuItem/index.js +2 -2
  105. package/dist/MenuItem/index.umd.cjs +1 -1
  106. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-ByicYJot.js → MenuItem.vue_vue_type_style_index_0_lang-BhdOsuVb.js} +212 -209
  107. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DYhvQVbp.js +1 -0
  108. package/dist/Pagination/index.js +22 -20
  109. package/dist/Pagination/index.umd.cjs +1 -1
  110. package/dist/RadioGroup/index.js +1 -1
  111. package/dist/RadioGroup/index.umd.cjs +1 -1
  112. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-dTuUkmBY.js → RadioGroup.vue_vue_type_script_setup_true_lang-Dnuebynm.js} +8 -6
  113. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-CaB3l3Qh.js → RadioGroup.vue_vue_type_script_setup_true_lang-MqvqH3uR.js} +1 -1
  114. package/dist/Segmented/index.js +2 -2
  115. package/dist/Segmented/index.umd.cjs +1 -1
  116. package/dist/Segmented.vue_vue_type_style_index_0_lang-CRoZKg2q.js +1 -0
  117. package/dist/{Segmented.vue_vue_type_style_index_0_lang-BXQbBiaE.js → Segmented.vue_vue_type_style_index_0_lang-D20lEgXh.js} +9 -7
  118. package/dist/Select/Select.d.ts +0 -1
  119. package/dist/Select/index.js +2 -2
  120. package/dist/Select/index.umd.cjs +1 -1
  121. package/dist/{Select.vue_vue_type_style_index_0_lang-7Tq97moQ.js → Select.vue_vue_type_style_index_0_lang-BiFW4jfz.js} +114 -112
  122. 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
  123. package/dist/Steps/Step.d.ts +1 -0
  124. package/dist/Steps/index.js +1 -1
  125. package/dist/Steps/index.umd.cjs +1 -1
  126. package/dist/SubMenu/index.js +1 -1
  127. package/dist/SubMenu/index.umd.cjs +1 -1
  128. package/dist/Switch/index.js +2 -2
  129. package/dist/Switch/index.umd.cjs +1 -1
  130. package/dist/Switch.vue_vue_type_style_index_0_lang-BWuuLt7A.js +1 -0
  131. package/dist/{Switch.vue_vue_type_style_index_0_lang-BFHMw2kq.js → Switch.vue_vue_type_style_index_0_lang-DM0BBZ3s.js} +17 -15
  132. package/dist/Tabs/index.js +2 -2
  133. package/dist/Tabs/index.umd.cjs +1 -1
  134. package/dist/Textarea/index.js +43 -42
  135. package/dist/Textarea/index.umd.cjs +1 -1
  136. package/dist/Toast/Toast.d.ts +39 -3
  137. package/dist/Toast/index.d.ts +2 -2
  138. package/dist/Toast/index.js +114 -83
  139. package/dist/Toast/index.umd.cjs +1 -1
  140. package/dist/Tree/Tree.d.ts +0 -1
  141. package/dist/Tree/index.js +1 -1
  142. package/dist/Tree/index.umd.cjs +1 -1
  143. package/dist/Upload/index.js +29 -27
  144. package/dist/Upload/index.umd.cjs +1 -1
  145. package/dist/{index-AwKp_D1S.js → index-ClFtJyYC.js} +2 -2
  146. package/dist/index-DBiL8Htz.js +1 -0
  147. package/dist/index-DzG8mnap.js +1 -0
  148. package/dist/{index-BdPkHVwS.js → index-Y3XMSR_o.js} +72 -69
  149. package/dist/index.js +24 -24
  150. package/dist/index.umd.cjs +1 -1
  151. package/dist/style/index.css +1 -1
  152. package/dist/use/index.js +25 -25
  153. package/dist/use/index.umd.cjs +1 -1
  154. package/package.json +3 -3
  155. package/dist/Avatar.vue_vue_type_style_index_0_lang-CX1z2Bid.js +0 -1
  156. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-O-9lK4KI.js +0 -1
  157. package/dist/BaseButton.vue_vue_type_style_index_0_lang-D1jasaOz.js +0 -1
  158. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CDF1AL9P.js +0 -1
  159. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BkJ15M1P.js +0 -88
  160. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bm5rLiVf.js +0 -1
  161. package/dist/Input.vue_vue_type_script_setup_true_lang-CTIaAkrW.js +0 -1
  162. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DW-JqPiv.js +0 -1
  163. package/dist/MenuItem.vue_vue_type_style_index_0_lang-zBvtuEx_.js +0 -1
  164. package/dist/Segmented.vue_vue_type_style_index_0_lang-CLYRU64q.js +0 -1
  165. package/dist/Switch.vue_vue_type_style_index_0_lang-B9pNw4SK.js +0 -1
  166. package/dist/index-CLWvy5OA.js +0 -1
  167. package/dist/index-J_dmgfpe.js +0 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as oe, createElementBlock as ze, openBlock as _e, normalizeClass as we, unref as pe, renderSlot as xe, computed as h, h as a, ref as ve, watch as ke, useSlots as De, useAttrs as Ae, createBlock as Fe, normalizeProps as Ce, guardReactiveProps as ye, withCtx as Se, createVNode as We, createSlots as Ee, renderList as $e } from "vue";
1
+ import { defineComponent as oe, createElementBlock as Ie, openBlock as xe, normalizeClass as we, unref as pe, renderSlot as _e, computed as h, h as a, ref as ve, watch as ke, useSlots as De, useAttrs as Ae, createBlock as Fe, normalizeProps as Ce, guardReactiveProps as Se, withCtx as ye, createVNode as We, createSlots as Ee, renderList as $e } from "vue";
2
2
  import { createContext as Pe, SelectItem as Ge, SelectItemIndicator as Re, SelectTrigger as Ne, Primitive as je, injectSelectRootContext as Ke, SelectPortal as Me, SelectContent as qe, useEmitAsProps as Ue, SelectRoot as He } from "reka-ui";
3
- import { isString as te, cloneDeep as he, omit as Ve, isFunction as be, omitBy as Je, pick as Oe, isUndefined as Qe } from "es-toolkit";
4
- import { getBemBlock as Xe, getComponentOptions as Te, getBemElement as V, getComponentName as de, generateVariantClassList as G, normCls as _, isEmptyLikeLodash as M, getPxSize as ue } from "@pantograph/utils";
3
+ import { isString as te, cloneDeep as he, omit as be, isFunction as Ve, omitBy as Je, pick as Oe, isUndefined as Qe } from "es-toolkit";
4
+ import { getBemBlock as Xe, getComponentOptions as Te, getBemElement as b, getComponentName as de, generateVariantClassList as G, normCls as x, isEmptyLikeLodash as M, getPxSize as ue } from "@pantograph/utils";
5
5
  import { cva as me } from "class-variance-authority";
6
6
  import { _ as Ye } from "./Empty.vue_vue_type_style_index_0_lang-DnH-eKDp.js";
7
7
  import { _ as Ze } from "./Skeleton.vue_vue_type_style_index_0_lang-DOsf2SEN.js";
@@ -16,14 +16,14 @@ import { _ as pt } from "./Chip.vue_vue_type_style_index_0_lang-CmXECWtq.js";
16
16
  import { _ as st } from "./index-BCPptNhu.js";
17
17
  import { i as ee } from "./isObject-vmP43YLW.js";
18
18
  import { _ as ut } from "./ScrollContainer.vue_vue_type_style_index_0_lang-CRjnv1ii.js";
19
- const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] = Pe("Select"), [dt, mt] = Pe("_Select"), A = Xe("select"), ft = /* @__PURE__ */ oe({
19
+ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [ze, gt] = Pe("Select"), [dt, mt] = Pe("_Select"), A = Xe("select"), ft = /* @__PURE__ */ oe({
20
20
  ...Te("SelectLabel"),
21
21
  __name: "SelectLabel",
22
22
  setup(C) {
23
- return (t, o) => (_e(), ze("div", {
24
- class: we(pe(V)(pe(A), "label"))
23
+ return (t, o) => (xe(), Ie("div", {
24
+ class: we(pe(b)(pe(A), "label"))
25
25
  }, [
26
- xe(t.$slots, "default")
26
+ _e(t.$slots, "default")
27
27
  ], 2));
28
28
  }
29
29
  }), ce = oe({
@@ -36,7 +36,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
36
36
  },
37
37
  slots: Object,
38
38
  setup(C, { slots: t }) {
39
- const o = Ie(), e = h(() => {
39
+ const o = ze(), e = h(() => {
40
40
  switch (o.getSize.value) {
41
41
  case "sm":
42
42
  return "2xsm";
@@ -46,51 +46,51 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
46
46
  default:
47
47
  return "xsm";
48
48
  }
49
- }), F = h(() => o.getOptionValue(C.option)), g = h(() => o.getOptionLabel(C.option)), R = h(() => o.getOptionIcon(C.option)), K = h(() => o.getOptionDisabled(C.option)), w = V(A, "option"), q = me(w, {
49
+ }), F = h(() => o.getOptionValue(C.option)), g = h(() => o.getOptionLabel(C.option)), R = h(() => o.getOptionIcon(C.option)), K = h(() => o.getOptionDisabled(C.option)), w = b(A, "option"), q = me(w, {
50
50
  variants: {
51
51
  size: G(fe, w)
52
52
  }
53
- }), W = (b) => {
53
+ }), W = (V) => {
54
54
  var B, D;
55
- const y = b.detail.value;
55
+ const S = V.detail.value;
56
56
  o.emit(
57
57
  "select",
58
- y,
59
- J(o.modelValue.value) ? !((D = (B = o.modelValue.value) == null ? void 0 : B.includes) != null && D.call(B, y)) : !0
58
+ S,
59
+ J(o.modelValue.value) ? !((D = (B = o.modelValue.value) == null ? void 0 : B.includes) != null && D.call(B, S)) : !0
60
60
  );
61
61
  };
62
62
  if (!C.option) throw new Error("option is required");
63
63
  const E = () => {
64
- var y;
65
- const b = (y = t.indicator) == null ? void 0 : y.call(t, { option: C.option });
66
- return s(b) ? a(
64
+ var S;
65
+ const V = (S = t.indicator) == null ? void 0 : S.call(t, { option: C.option });
66
+ return s(V) ? a(
67
67
  Re,
68
68
  { asChild: !0 },
69
69
  () => a(ge, { icon: o.props.indicatorIcon, size: e.value })
70
- ) : b;
71
- }, x = () => {
70
+ ) : V;
71
+ }, _ = () => {
72
72
  var B, D, $;
73
- const b = (B = t.default) == null ? void 0 : B.call(t, { option: C.option }), y = [];
74
- if (!s(b)) y.push(b);
73
+ const V = (B = t.default) == null ? void 0 : B.call(t, { option: C.option }), S = [];
74
+ if (!s(V)) S.push(V);
75
75
  else {
76
76
  const U = (D = t.leading) == null ? void 0 : D.call(t, { option: C.option }), l = !s(U);
77
77
  if (R.value || l) {
78
78
  let T;
79
- l ? T = U : T = a(ge, { icon: R.value, size: e.value }), y.push(
79
+ l ? T = U : T = a(ge, { icon: R.value, size: e.value }), S.push(
80
80
  a(
81
81
  "div",
82
- { class: _(V(w, "leading"), o.props.itemLeadingCls) },
82
+ { class: x(b(w, "leading"), o.props.itemLeadingCls) },
83
83
  T
84
84
  )
85
85
  );
86
86
  }
87
87
  let L;
88
88
  const P = ($ = t.text) == null ? void 0 : $.call(t, { option: C.option });
89
- s(P) ? L = g.value : L = P, y.push(
89
+ s(P) ? L = g.value : L = P, S.push(
90
90
  a(
91
91
  "div",
92
92
  {
93
- class: _(V(w, "text"), o.props.optionTextCls)
93
+ class: x(b(w, "text"), o.props.optionTextCls)
94
94
  },
95
95
  L
96
96
  )
@@ -98,8 +98,8 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
98
98
  }
99
99
  return a(
100
100
  "div",
101
- { class: _(V(w, "content"), o.props.optionContentCls) },
102
- y
101
+ { class: x(b(w, "content"), o.props.optionContentCls) },
102
+ S
103
103
  );
104
104
  };
105
105
  return () => a(
@@ -108,7 +108,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
108
108
  value: F.value,
109
109
  textValue: g.value,
110
110
  disabled: K.value,
111
- class: _(
111
+ class: x(
112
112
  q({
113
113
  size: o.getSize.value
114
114
  }),
@@ -116,7 +116,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
116
116
  ),
117
117
  onSelect: W
118
118
  },
119
- () => [x(), E()]
119
+ () => [_(), E()]
120
120
  );
121
121
  }
122
122
  }), vt = oe({
@@ -128,12 +128,12 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
128
128
  }
129
129
  },
130
130
  setup(C, { slots: t, attrs: o }) {
131
- const e = Ie(), F = ({ value: l }, L) => {
131
+ const e = ze(), F = ({ value: l }, L) => {
132
132
  if (L.stopPropagation(), l && J(e.modelValue.value) && !e.getDisabled.value) {
133
133
  const P = e.modelValue.value.filter((T) => T !== l);
134
134
  e.modelValue.value = P, e.emit("update:modelValue", P), e.emit("select", l, !1);
135
135
  }
136
- }, g = V(A, "trigger"), R = me(g, {
136
+ }, g = b(A, "trigger"), R = me(g, {
137
137
  variants: {
138
138
  size: G(fe, g),
139
139
  status: G(ct, g),
@@ -167,23 +167,23 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
167
167
  }), W = (l = q.value) => {
168
168
  if (e.props.selectedItemIconAsTrailingIcon && ee(l) && "icon" in l)
169
169
  return l.icon;
170
- }, E = h(() => W()), x = h(() => {
170
+ }, E = h(() => W()), _ = h(() => {
171
171
  if (!e.props.noTrailing)
172
172
  return e.props.trailingIcon ?? "tabler:chevron-down";
173
- }), b = h(
173
+ }), V = h(
174
174
  () => !M(e.modelValue.value) && e.props.multiple && J(e.modelValue.value)
175
- ), y = h(() => ({
175
+ ), S = h(() => ({
176
176
  modelValue: he(e.modelValue.value),
177
177
  open: he(e.open.value)
178
178
  })), B = (l) => ({
179
- ...y.value,
179
+ ...S.value,
180
180
  option: e.getOptionByValue(l)
181
181
  }), D = h(() => ({
182
182
  disabled: e.getDisabled.value,
183
183
  reference: e.props.reference,
184
184
  tabindex: e.getDisabled.value ? void 0 : 0,
185
185
  as: "div",
186
- class: _(
186
+ class: x(
187
187
  R({
188
188
  size: e.getSize.value,
189
189
  status: e.getStatus.value === "success" && M(e.modelValue.value) ? void 0 : e.getStatus.value,
@@ -199,24 +199,24 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
199
199
  })), $ = (l, L = w.value) => a(ge, { icon: l, size: L }), U = () => {
200
200
  var P;
201
201
  let l;
202
- const L = (P = t.triggerTrailing) == null ? void 0 : P.call(t, y.value);
202
+ const L = (P = t.triggerTrailing) == null ? void 0 : P.call(t, S.value);
203
203
  if (!s(L)) l = L;
204
- else if (x.value && x.value) {
205
- const T = x.value === !0 ? "tabler:chevron-down" : x.value;
204
+ else if (_.value && _.value) {
205
+ const T = _.value === !0 ? "tabler:chevron-down" : _.value;
206
206
  l = $(T);
207
207
  }
208
208
  if (l)
209
209
  return a(
210
210
  "div",
211
- { class: _(V(g, "trailing"), e.props.triggerTrailingCls) },
211
+ { class: x(b(g, "trailing"), e.props.triggerTrailingCls) },
212
212
  l
213
213
  );
214
214
  };
215
215
  return () => {
216
216
  var T;
217
- const l = (T = t.trigger) == null ? void 0 : T.call(t, y.value), P = (() => {
217
+ const l = (T = t.trigger) == null ? void 0 : T.call(t, S.value), P = (() => {
218
218
  if (s(l)) return !1;
219
- const I = et(l) ?? null, N = I.length === 1 ? I[0] : I;
219
+ const z = et(l) ?? null, N = z.length === 1 ? z[0] : z;
220
220
  return N ? tt(N) && !ot(N) : !0;
221
221
  })();
222
222
  return a(
@@ -227,7 +227,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
227
227
  var X;
228
228
  if (!s(l))
229
229
  return l;
230
- const I = (X = t.triggerLeading) == null ? void 0 : X.call(t, y.value), N = !s(I), ne = () => {
230
+ const z = (X = t.triggerLeading) == null ? void 0 : X.call(t, S.value), N = !s(z), ne = () => {
231
231
  var j;
232
232
  if (!e.props.multiple && !J(e.modelValue.value)) {
233
233
  const p = (j = C.getOptionSlot(
@@ -236,11 +236,11 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
236
236
  )) == null ? void 0 : j();
237
237
  if (N || p || E.value || e.props.leadingIcon) {
238
238
  let d;
239
- return s(p) ? E.value ? d = $(E.value) : N ? d = I : e.props.leadingIcon && (d = $(e.props.leadingIcon)) : d = p, a(
239
+ return s(p) ? E.value ? d = $(E.value) : N ? d = z : e.props.leadingIcon && (d = $(e.props.leadingIcon)) : d = p, a(
240
240
  "div",
241
241
  {
242
- class: _(
243
- V(g, "leading"),
242
+ class: x(
243
+ b(g, "leading"),
244
244
  e.props.triggerLeadingCls
245
245
  )
246
246
  },
@@ -254,15 +254,15 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
254
254
  if (e.props.placeholder && !e.props.multiple) {
255
255
  const p = () => {
256
256
  var O;
257
- const d = (O = t.placeholder) == null ? void 0 : O.call(t, y.value);
257
+ const d = (O = t.placeholder) == null ? void 0 : O.call(t, S.value);
258
258
  return s(d) ? e.props.placeholder : d;
259
259
  };
260
260
  j.push(p());
261
261
  }
262
262
  } else {
263
263
  const d = (() => {
264
- var S, m, k;
265
- const O = (S = t.triggerValue) == null ? void 0 : S.call(t, y.value);
264
+ var y, m, k;
265
+ const O = (y = t.triggerValue) == null ? void 0 : y.call(t, S.value);
266
266
  if (!s(O)) return O;
267
267
  if (e.props.multiple && J(e.modelValue.value))
268
268
  return a(
@@ -274,12 +274,12 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
274
274
  closeable: !e.getDisabled.value,
275
275
  noPopover: !0,
276
276
  noWrap: !e.props.wrapped,
277
- class: _(V(g, "tag_list"), e.props.tagListCls),
277
+ class: x(b(g, "tag_list"), e.props.tagListCls),
278
278
  onClose: F
279
279
  },
280
280
  () => e.modelValue.value.map((u) => {
281
281
  var n;
282
- const z = (r) => {
282
+ const I = (r) => {
283
283
  var i;
284
284
  const c = (i = t.tagClose) == null ? void 0 : i.call(t, {
285
285
  ...B(u),
@@ -294,7 +294,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
294
294
  var v, Z;
295
295
  if (!s(Y)) return null;
296
296
  const c = (v = C.getOptionSlot("leading", u)) == null ? void 0 : v(), i = (Z = t.tagLeading) == null ? void 0 : Z.call(t, B(u)), f = W(e.getOptionByValue(u)) ?? e.props.leadingIcon;
297
- return s(i) ? s(c) ? f ? $(f, r) : s(I) ? null : I : c : i;
297
+ return s(i) ? s(c) ? f ? $(f, r) : s(z) ? null : z : c : i;
298
298
  }, le = () => {
299
299
  var c;
300
300
  const r = (c = t.tagTrailing) == null ? void 0 : c.call(t, B(u));
@@ -304,22 +304,22 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
304
304
  pt,
305
305
  {
306
306
  value: u,
307
- class: _(V(g, "tag"), e.props.tagCls),
308
- closeIconCls: V(g, "tag__close"),
307
+ class: x(b(g, "tag"), e.props.tagCls),
308
+ closeIconCls: b(g, "tag__close"),
309
309
  closeTrigger: "pointer"
310
310
  },
311
311
  {
312
312
  text: ie,
313
313
  leading: ae,
314
314
  trailing: le,
315
- close: z
315
+ close: I
316
316
  }
317
317
  );
318
318
  })
319
319
  );
320
320
  if (!J(e.modelValue.value)) {
321
- const u = (m = C.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : m(), z = (k = C.getOptionSlot("text", e.modelValue.value)) == null ? void 0 : k();
322
- return s(u) ? s(z) ? te(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : z : u;
321
+ const u = (m = C.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : m(), I = (k = C.getOptionSlot("text", e.modelValue.value)) == null ? void 0 : k();
322
+ return s(u) ? s(I) ? te(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : I : u;
323
323
  }
324
324
  })();
325
325
  d && j.push(d);
@@ -330,14 +330,14 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
330
330
  a(
331
331
  je,
332
332
  {
333
- class: _(
334
- V(g, "content"),
333
+ class: x(
334
+ b(g, "content"),
335
335
  e.props.triggerContentCls,
336
336
  M(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls
337
337
  ),
338
338
  as: "div",
339
- key: String(b.value),
340
- asChild: b.value
339
+ key: String(V.value),
340
+ asChild: V.value
341
341
  },
342
342
  { default: se }
343
343
  )
@@ -361,31 +361,31 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
361
361
  _dir: W,
362
362
  controlAutoFocus: !1,
363
363
  extraPropNames: ["bodyLock", "position"]
364
- }), x = ({
364
+ }), _ = ({
365
365
  key: p,
366
366
  getterKey: d,
367
367
  defaultValue: O,
368
- noReturnOption: S
368
+ noReturnOption: y
369
369
  }) => (m) => {
370
- const k = be(O) ? O(m) : O;
370
+ const k = Ve(O) ? O(m) : O;
371
371
  if (ee(m)) {
372
- const u = m[p] ?? k, z = d && o.props[d];
373
- if (z) {
374
- if (te(z))
375
- return m[z] ?? u;
376
- if (be(z)) return z(m) ?? u;
372
+ const u = m[p] ?? k, I = d && o.props[d];
373
+ if (I) {
374
+ if (te(I))
375
+ return m[I] ?? u;
376
+ if (Ve(I)) return I(m) ?? u;
377
377
  }
378
378
  return u;
379
379
  }
380
- return te(m) && !S ? m ?? k : k;
381
- }, b = x({
380
+ return te(m) && !y ? m ?? k : k;
381
+ }, V = _({
382
382
  getterKey: "getValue",
383
383
  key: "value"
384
- }), y = x({
384
+ }), S = _({
385
385
  getterKey: "getLabel",
386
386
  key: "label",
387
- defaultValue: b
388
- }), B = x({
387
+ defaultValue: V
388
+ }), B = _({
389
389
  getterKey: "getIcon",
390
390
  key: "icon",
391
391
  noReturnOption: !0
@@ -393,48 +393,50 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
393
393
  var d;
394
394
  if ((d = o.props.options) != null && d.length)
395
395
  for (const O of o.props.options) {
396
- if (b(O) === p) return O;
397
- const S = L(O);
398
- if (S != null && S.length) {
399
- for (const m of S)
400
- if (b(m) === p) return m;
396
+ if (V(O) === p) return O;
397
+ const y = L(O);
398
+ if (y != null && y.length) {
399
+ for (const m of y)
400
+ if (V(m) === p) return m;
401
401
  }
402
402
  }
403
403
  return p;
404
404
  }, $ = (p) => {
405
405
  const d = D(p);
406
- return d ? y(d) ?? p : p;
407
- }, U = x({
406
+ return d ? S(d) ?? p : p;
407
+ }, U = _({
408
408
  getterKey: "getDisabled",
409
409
  key: "disabled",
410
410
  defaultValue: !1,
411
411
  noReturnOption: !0
412
- }), l = x({
412
+ }), l = _({
413
413
  getterKey: "getGroupLabel",
414
414
  key: "label",
415
415
  noReturnOption: !0
416
- }), L = x({
416
+ }), L = _({
417
417
  getterKey: "getGroupOptions",
418
418
  key: "options",
419
419
  noReturnOption: !0
420
- }), { getDisabled: P, getStatus: T, getSize: I } = rt({
420
+ }), { getDisabled: P, getStatus: T, getSize: z } = rt({
421
421
  getDisabled: () => o.props.disabled,
422
422
  getSize: () => o.props.size,
423
- getStatus: () => o.props.status
423
+ getStatus: () => o.props.status,
424
+ defaults: { size: "md" },
425
+ exports: ["getDisabled", "getSize", "getStatus"]
424
426
  });
425
427
  gt({
426
428
  props: o.props,
427
429
  attrs: o.attrs,
428
430
  emit: o.emit,
429
- getOptionValue: b,
430
- getOptionLabel: y,
431
+ getOptionValue: V,
432
+ getOptionLabel: S,
431
433
  getOptionDisabled: U,
432
434
  getOptionIcon: B,
433
435
  getOptionByValue: D,
434
436
  getLabelByValue: $,
435
437
  getDisabled: P,
436
438
  getStatus: T,
437
- getSize: I,
439
+ getSize: z,
438
440
  ...e,
439
441
  modelValue: e.modelValue
440
442
  }), ke(
@@ -448,19 +450,19 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
448
450
  return {
449
451
  ...p,
450
452
  areaCls: [
451
- V(A, "scroll_area"),
453
+ b(A, "scroll_area"),
452
454
  p == null ? void 0 : p.class,
453
455
  p == null ? void 0 : p.areaCls
454
456
  ]
455
457
  };
456
- }), ne = V(A, "popup"), se = me(ne, {
458
+ }), ne = b(A, "popup"), se = me(ne, {
457
459
  variants: {
458
460
  size: G(fe, ne)
459
461
  }
460
462
  }), H = h(() => ue(o.props.popupWidth, !0)), re = h(() => ue(o.props.popupHeight, !0)), Q = h(() => ue(o.props.minWidth, !0)), X = h(() => ({
461
- type: I.value === "sm" ? "simple" : "advance",
462
- ...Ve(o.props.emptyProps ?? {}, ["class"])
463
- })), j = h(() => Ve(o.props.skeletonProps ?? {}, ["class"]));
463
+ type: z.value === "sm" ? "simple" : "advance",
464
+ ...be(o.props.emptyProps ?? {}, ["class"])
465
+ })), j = h(() => be(o.props.skeletonProps ?? {}, ["class"]));
464
466
  return () => {
465
467
  var ie, ae, le;
466
468
  const p = (n) => {
@@ -473,7 +475,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
473
475
  const i = o.props.options[n - 1];
474
476
  return !!(i && ((c = L(i)) != null && c.length));
475
477
  }
476
- }, O = (ie = t.default) == null ? void 0 : ie.call(t, {}), S = (ae = Be(O, ce)) == null ? void 0 : ae.filter(
478
+ }, O = (ie = t.default) == null ? void 0 : ie.call(t, {}), y = (ae = Be(O, ce)) == null ? void 0 : ae.filter(
477
479
  (n) => {
478
480
  var r;
479
481
  return ee(n == null ? void 0 : n.props) && ((r = n == null ? void 0 : n.props) == null ? void 0 : r.option);
@@ -519,15 +521,15 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
519
521
  var r;
520
522
  return ee(n == null ? void 0 : n.props) && ((r = n == null ? void 0 : n.props) == null ? void 0 : r.option);
521
523
  }
522
- ), u = !!(k != null && k.length || S != null && S.length), z = (n, r) => {
524
+ ), u = !!(k != null && k.length || y != null && y.length), I = (n, r) => {
523
525
  var c;
524
526
  if (u && !M(r) && te(r)) {
525
- const i = S != null && S.length ? S : k;
527
+ const i = y != null && y.length ? y : k;
526
528
  if (i.length) {
527
529
  const f = i.find(
528
530
  (v) => {
529
531
  var Z;
530
- return ee(v.props) && b((Z = v.props) == null ? void 0 : Z.option) === r;
532
+ return ee(v.props) && V((Z = v.props) == null ? void 0 : Z.option) === r;
531
533
  }
532
534
  );
533
535
  return (c = f == null ? void 0 : f.children) == null ? void 0 : c[n];
@@ -538,7 +540,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
538
540
  const n = [];
539
541
  if (u || o.props.loading) {
540
542
  const i = [];
541
- if (u && (S != null && S.length ? i.push(O) : i.push(...m)), o.props.loading) {
543
+ if (u && (y != null && y.length ? i.push(O) : i.push(...m)), o.props.loading) {
542
544
  const f = (r = t.loading) == null ? void 0 : r.call(t, {});
543
545
  if (!s(f)) i.push(f);
544
546
  else {
@@ -546,9 +548,9 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
546
548
  i.push(
547
549
  ...v.map(
548
550
  () => a(Ze, {
549
- size: I.value,
550
- class: _(
551
- V(A, "skeleton"),
551
+ size: z.value,
552
+ class: x(
553
+ b(A, "skeleton"),
552
554
  o.props.skeletonCls
553
555
  ),
554
556
  ...j.value
@@ -561,7 +563,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
561
563
  a(
562
564
  "div",
563
565
  {
564
- class: _(V(A, "options"), o.props.optionsCls)
566
+ class: x(b(A, "options"), o.props.optionsCls)
565
567
  },
566
568
  i
567
569
  )
@@ -572,7 +574,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
572
574
  a(
573
575
  Ye,
574
576
  {
575
- class: _(V(A, "empty"), o.props.emptyCls),
577
+ class: x(b(A, "empty"), o.props.emptyCls),
576
578
  ...X.value
577
579
  },
578
580
  {
@@ -587,8 +589,8 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
587
589
  return o.props.lazyLoading && n.push(
588
590
  a(
589
591
  "div",
590
- { class: V(A, "lazy_loading") },
591
- a("div", { class: V(A, "lazy_loading_trigger"), ref: F })
592
+ { class: b(A, "lazy_loading") },
593
+ a("div", { class: b(A, "lazy_loading_trigger"), ref: F })
592
594
  )
593
595
  ), n;
594
596
  };
@@ -596,7 +598,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
596
598
  a(
597
599
  vt,
598
600
  {
599
- getOptionSlot: z,
601
+ getOptionSlot: I,
600
602
  ref: g,
601
603
  ...o.attrs,
602
604
  style: {
@@ -623,7 +625,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
623
625
  qe,
624
626
  {
625
627
  ...E.value,
626
- class: _(se(o.props), o.props.popupCls),
628
+ class: x(se(o.props), o.props.popupCls),
627
629
  style: {
628
630
  display: e.open.value ? void 0 : "none",
629
631
  zIndex: o.props.zIndex,
@@ -643,7 +645,7 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
643
645
  __name: "Select",
644
646
  props: {
645
647
  status: {},
646
- size: { default: "md" },
648
+ size: {},
647
649
  multiple: { type: Boolean, default: void 0 },
648
650
  contentFit: { type: Boolean },
649
651
  wrapped: { type: Boolean },
@@ -757,13 +759,13 @@ const fe = ["sm", "md", "lg"], ct = ["error", "warning", "success"], [Ie, gt] =
757
759
  props: o,
758
760
  emit: e,
759
761
  emitsAsProps: F
760
- }), (w, q) => (_e(), Fe(pe(He), Ce(ye(g.value)), {
761
- default: Se(() => [
762
+ }), (w, q) => (xe(), Fe(pe(He), Ce(Se(g.value)), {
763
+ default: ye(() => [
762
764
  We(pe(Ct), null, Ee({ _: 2 }, [
763
765
  $e(Object.keys(R), (W) => ({
764
766
  name: W,
765
- fn: Se((E) => [
766
- xe(w.$slots, W, Ce(ye(E)))
767
+ fn: ye((E) => [
768
+ _e(w.$slots, W, Ce(Se(E)))
767
769
  ])
768
770
  }))
769
771
  ]), 1024)
@@ -778,6 +780,6 @@ export {
778
780
  ft as a,
779
781
  fe as b,
780
782
  ct as c,
781
- Ie as i,
783
+ ze as i,
782
784
  gt as p
783
785
  };