@pantograph/vue 0.23.4 → 0.23.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 (192) 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-CoWtYp90.js → ActionButton.vue_vue_type_script_setup_true_lang-7ImUgPOW.js} +2 -2
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BM-HiVKZ.js → ActionButton.vue_vue_type_script_setup_true_lang-D8DXU0Vb.js} +1 -1
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-DmEdkb41.js → Alert.vue_vue_type_style_index_0_lang-CqrPX_Iw.js} +3 -3
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-CsZWFSR_.js → Alert.vue_vue_type_style_index_0_lang-DtOx68kv.js} +1 -1
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTndXzmH.js → Avatar.vue_vue_type_style_index_0_lang-B0jPWS1n.js} +1 -1
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js → Avatar.vue_vue_type_style_index_0_lang-Dj-jkrYp.js} +2 -2
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/Badge.vue_vue_type_script_setup_true_lang-ChmvYjjQ.js +1 -0
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-PioR6WEK.js +57 -0
  19. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-stkOtvTd.js → BaseButton.vue_vue_type_style_index_0_lang-Cb5t50gO.js} +2 -2
  20. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-Ch3LDS1D.js → BaseButton.vue_vue_type_style_index_0_lang-CeHbEfy3.js} +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/Button/index.umd.cjs +1 -1
  23. package/dist/{Button.vue_vue_type_script_setup_true_lang-CIjMWs2s.js → Button.vue_vue_type_script_setup_true_lang-ChrdvyD2.js} +2 -2
  24. package/dist/{Button.vue_vue_type_script_setup_true_lang-BouXlBWO.js → Button.vue_vue_type_script_setup_true_lang-vJ7lfVy_.js} +1 -1
  25. package/dist/Checkbox/index.js +1 -1
  26. package/dist/Checkbox/index.umd.cjs +1 -1
  27. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Bo8DiMqm.js → Checkbox.vue_vue_type_style_index_0_lang-Dh2oLmt5.js} +1 -1
  28. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js → Checkbox.vue_vue_type_style_index_0_lang-Dhn_dWz7.js} +2 -2
  29. package/dist/CheckboxGroup/index.js +1 -1
  30. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  31. package/dist/Chip/index.js +2 -2
  32. package/dist/Chip/index.umd.cjs +1 -1
  33. package/dist/{Chip.vue_vue_type_style_index_0_lang-qKiQbAUD.js → Chip.vue_vue_type_style_index_0_lang-CEXKUJCj.js} +1 -1
  34. package/dist/{Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js → Chip.vue_vue_type_style_index_0_lang-Cr1_L0Lz.js} +2 -2
  35. package/dist/ChipGroup/index.js +1 -1
  36. package/dist/ChipGroup/index.umd.cjs +1 -1
  37. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-DmbWGoar.js → ChipGroup.vue_vue_type_style_index_0_lang-B945U8rL.js} +1 -1
  38. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js → ChipGroup.vue_vue_type_style_index_0_lang-j6Reg1S9.js} +1 -1
  39. package/dist/ColorPicker/index.js +1 -1
  40. package/dist/ColorPicker/index.umd.cjs +1 -1
  41. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CxWDk_6b.js → ColorPicker.vue_vue_type_style_index_0_lang-CcqGZq-b.js} +259 -259
  42. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DKGxK13w.js → ColorPicker.vue_vue_type_style_index_0_lang-Cdxk3fOe.js} +2 -2
  43. package/dist/ColorSwatch/index.js +1 -1
  44. package/dist/ColorSwatch/index.umd.cjs +1 -1
  45. package/dist/ColorSwatch-CH_N4TfV.js +1 -0
  46. package/dist/ColorSwatch-DkW6RvE7.js +4 -0
  47. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CABlbyiP.js → ColorSwatch.vue_vue_type_style_index_0_lang-WU4Q0TGg.js} +1 -1
  48. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CAXvzEY_.js → ColorSwatch.vue_vue_type_style_index_0_lang-r7jNc78g.js} +3 -3
  49. package/dist/ColorSwatchGroup/index.js +1 -1
  50. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  51. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cjn4NZYK.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DP1dT4Eq.js} +6 -6
  52. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-iWwvyQwp.js +1 -0
  53. package/dist/ColorTrigger/index.js +1 -1
  54. package/dist/ColorTrigger/index.umd.cjs +1 -1
  55. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-XqnB_VGl.js → ColorTrigger.vue_vue_type_style_index_0_lang-D7M2EQfc.js} +3 -3
  56. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BsexkD4u.js → ColorTrigger.vue_vue_type_style_index_0_lang-IwIexR_Y.js} +1 -1
  57. package/dist/Combobox/index.js +1 -1
  58. package/dist/Combobox/index.umd.cjs +1 -1
  59. package/dist/Combobox.vue_vue_type_style_index_0_lang-Cnl79xIk.js +1 -0
  60. package/dist/Combobox.vue_vue_type_style_index_0_lang-DIXSNQlS.js +924 -0
  61. package/dist/DataTable/index.js +1 -1
  62. package/dist/DataTable/index.umd.cjs +1 -1
  63. package/dist/DataTable.vue_vue_type_style_index_0_lang-DeDH_Kvd.js +1 -0
  64. package/dist/{DataTable.vue_vue_type_style_index_0_lang-CpQ0Yn-D.js → DataTable.vue_vue_type_style_index_0_lang-PXmil6LX.js} +12 -12
  65. package/dist/DropZone/index.js +1 -1
  66. package/dist/DropZone/index.umd.cjs +1 -1
  67. package/dist/{DropZone.vue_vue_type_style_index_0_lang-DVZrmQwL.js → DropZone.vue_vue_type_style_index_0_lang-CrBpJeKe.js} +1 -1
  68. package/dist/{DropZone.vue_vue_type_style_index_0_lang-BnrcUu_6.js → DropZone.vue_vue_type_style_index_0_lang-WmRKdmXK.js} +1 -1
  69. package/dist/FloatButton/index.js +1 -1
  70. package/dist/FloatButton/index.umd.cjs +1 -1
  71. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Br1BEY7H.js → FloatButton.vue_vue_type_script_setup_true_lang-DFHM_Tuo.js} +2 -2
  72. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BOFSVjFP.js → FloatButton.vue_vue_type_script_setup_true_lang-DpFewhq3.js} +1 -1
  73. package/dist/Form/index.js +1 -1
  74. package/dist/Form/index.umd.cjs +1 -1
  75. package/dist/{FormItem.vue_vue_type_style_index_0_lang-s7o6crR0.js → FormItem.vue_vue_type_style_index_0_lang-CTRszGlB.js} +3 -3
  76. package/dist/{FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js → FormItem.vue_vue_type_style_index_0_lang-DbMENNc4.js} +3 -3
  77. package/dist/GOPicker/GOItemSkeleton.d.ts +2 -0
  78. package/dist/GOPicker/GOPicker.d.ts +36 -96
  79. package/dist/GOPicker/GOPicker.model.d.ts +72 -0
  80. package/dist/GOPicker/index.d.ts +2 -1
  81. package/dist/GOPicker/index.js +1 -1
  82. package/dist/GOPicker/index.umd.cjs +1 -1
  83. package/dist/GraphicalObject/index.js +1 -1
  84. package/dist/GraphicalObject/index.umd.cjs +1 -1
  85. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-C4i8C-dP.js +65 -0
  86. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CmkmatJc.js +1 -0
  87. package/dist/GraphicalObjectGroup/index.js +1 -1
  88. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  89. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CB9Q1b9r.js} +1 -1
  90. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-ChJsB7QV.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CU2CrD-j.js} +1 -1
  91. package/dist/IconButton/index.js +1 -1
  92. package/dist/IconButton/index.umd.cjs +1 -1
  93. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DvbKC7wq.js → IconButton.vue_vue_type_script_setup_true_lang-Bq7Ed6Jl.js} +1 -1
  94. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DAX_14ed.js → IconButton.vue_vue_type_script_setup_true_lang-DJiG3_YJ.js} +2 -2
  95. package/dist/Image/index.js +1 -1
  96. package/dist/Image/index.umd.cjs +1 -1
  97. package/dist/{Image.vue_vue_type_style_index_0_lang-CGdnuyxZ.js → Image.vue_vue_type_style_index_0_lang-CgczUp3D.js} +1 -1
  98. package/dist/{Image.vue_vue_type_style_index_0_lang-CqilRo2A.js → Image.vue_vue_type_style_index_0_lang-Cmn0ijum.js} +1 -1
  99. package/dist/IndentLevel/index.js +1 -1
  100. package/dist/IndentLevel/index.umd.cjs +1 -1
  101. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js → IndentLevel.vue_vue_type_style_index_0_lang-ZmHvmKOS.js} +2 -2
  102. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-DD2920xJ.js → IndentLevel.vue_vue_type_style_index_0_lang-u9PJeCGr.js} +1 -1
  103. package/dist/Indicator/index.js +1 -1
  104. package/dist/Indicator/index.umd.cjs +1 -1
  105. package/dist/Indicator.vue_vue_type_script_setup_true_lang-CX3cY74r.js +1 -0
  106. package/dist/Indicator.vue_vue_type_script_setup_true_lang-CmKraTSB.js +38 -0
  107. package/dist/Input/index.js +1 -1
  108. package/dist/Input/index.umd.cjs +1 -1
  109. package/dist/{Input.vue_vue_type_style_index_0_lang-C-jEi11-.js → Input.vue_vue_type_style_index_0_lang-Ccow0nkI.js} +4 -4
  110. package/dist/Input.vue_vue_type_style_index_0_lang-yHgbuD_4.js +1 -0
  111. package/dist/Label/index.js +1 -1
  112. package/dist/Label/index.umd.cjs +1 -1
  113. package/dist/Menu/index.js +1 -1
  114. package/dist/Menu/index.umd.cjs +1 -1
  115. package/dist/MenuItem/index.js +1 -1
  116. package/dist/MenuItem/index.umd.cjs +1 -1
  117. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js → MenuItem.vue_vue_type_style_index_0_lang-C8ofBbNv.js} +4 -4
  118. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DL9Njg73.js → MenuItem.vue_vue_type_style_index_0_lang-pnm3rqME.js} +1 -1
  119. package/dist/Popover/Popover.d.ts +1 -0
  120. package/dist/Popover/index.js +1 -1
  121. package/dist/Popover/index.umd.cjs +1 -1
  122. package/dist/{Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js → Popover.vue_vue_type_style_index_0_lang-BGRXQmj3.js} +3 -3
  123. package/dist/{Popover.vue_vue_type_style_index_0_lang-CZYvVeso.js → Popover.vue_vue_type_style_index_0_lang-CZ_AaHDG.js} +1 -1
  124. package/dist/RadioGroup/index.js +1 -1
  125. package/dist/RadioGroup/index.umd.cjs +1 -1
  126. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-Buet9dc2.js → RadioGroup.vue_vue_type_script_setup_true_lang-03XUb7NC.js} +20 -21
  127. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-1clw8kVI.js +1 -0
  128. package/dist/ScrollContainer/ScrollContainer.d.ts +2 -0
  129. package/dist/Segmented/index.js +1 -1
  130. package/dist/Segmented/index.umd.cjs +1 -1
  131. package/dist/{Segmented.vue_vue_type_style_index_0_lang-R_eXQ6g9.js → Segmented.vue_vue_type_style_index_0_lang-906ZRFCK.js} +26 -26
  132. package/dist/Segmented.vue_vue_type_style_index_0_lang-B4aQCMXZ.js +1 -0
  133. package/dist/Select/index.js +1 -1
  134. package/dist/Select/index.umd.cjs +1 -1
  135. package/dist/{Select.vue_vue_type_style_index_0_lang-Bc9kyMDB.js → Select.vue_vue_type_style_index_0_lang-DX17VhqH.js} +1 -1
  136. package/dist/{Select.vue_vue_type_style_index_0_lang-BfUtCG_-.js → Select.vue_vue_type_style_index_0_lang-W3dk0Ug0.js} +6 -6
  137. package/dist/SubMenu/index.js +1 -1
  138. package/dist/SubMenu/index.umd.cjs +1 -1
  139. package/dist/Switch/index.js +1 -1
  140. package/dist/Switch/index.umd.cjs +1 -1
  141. package/dist/{Switch.vue_vue_type_style_index_0_lang-jzphTPAF.js → Switch.vue_vue_type_style_index_0_lang-BM-h82G0.js} +2 -2
  142. package/dist/{Switch.vue_vue_type_style_index_0_lang-DhuZK1wp.js → Switch.vue_vue_type_style_index_0_lang-DHT9utPp.js} +1 -1
  143. package/dist/{THead.vue_vue_type_style_index_0_lang-Du3rBBec.js → THead.vue_vue_type_style_index_0_lang-B6U8HrWi.js} +1 -1
  144. package/dist/{THead.vue_vue_type_style_index_0_lang-DtBQAI4D.js → THead.vue_vue_type_style_index_0_lang-CHicticP.js} +1 -1
  145. package/dist/Table/index.js +1 -1
  146. package/dist/Table/index.umd.cjs +1 -1
  147. package/dist/Textarea/index.js +1 -1
  148. package/dist/Textarea/index.umd.cjs +1 -1
  149. package/dist/Textarea.vue_vue_type_style_index_0_lang-DiCqcDyH.js +1 -0
  150. package/dist/{Textarea.vue_vue_type_style_index_0_lang-Dbdx29In.js → Textarea.vue_vue_type_style_index_0_lang-UyndJFBo.js} +4 -4
  151. package/dist/Tree/Tree.d.ts +3 -1
  152. package/dist/Tree/Tree.model.d.ts +11 -8
  153. package/dist/Tree/TreeNode.d.ts +2 -0
  154. package/dist/Tree/index.js +1 -1
  155. package/dist/Tree/index.umd.cjs +1 -1
  156. package/dist/Tree/utils.d.ts +14 -1
  157. package/dist/Tree.vue_vue_type_style_index_0_lang-B30b4oK2.js +6 -0
  158. package/dist/Tree.vue_vue_type_style_index_0_lang-DBDkYw9s.js +1757 -0
  159. package/dist/exports.d.ts +4 -0
  160. package/dist/{getEmojiList-DSYihWrO.js → getEmojiList-BiHAQqm6.js} +237 -227
  161. package/dist/getEmojiList-mUahBsHW.js +1 -0
  162. package/dist/index.d.ts +3 -6
  163. package/dist/index.js +60 -60
  164. package/dist/index.umd.cjs +1 -1
  165. package/dist/{omit-B3e_dACs.js → omit-BuBwx_M2.js} +182 -181
  166. package/dist/omit-CYbreqlf.js +1 -0
  167. package/dist/style/index.css +1 -1
  168. package/dist/{uniq-BsN259vC.js → uniq-BeFmBpYC.js} +1 -1
  169. package/dist/{uniq-Dhcbw64V.js → uniq-CezX8yQS.js} +1 -1
  170. package/dist/{useInputDataStates-CtuCKcP6.js → useInputDataStates-Bzs7T9xb.js} +2 -2
  171. package/dist/{useInputDataStates-DEfYzXQl.js → useInputDataStates-C1T7BL_V.js} +1 -1
  172. package/dist/utils/index.js +1 -1
  173. package/dist/utils/index.umd.cjs +1 -1
  174. package/package.json +4 -4
  175. package/dist/Badge.vue_vue_type_script_setup_true_lang-Blql7wH1.js +0 -66
  176. package/dist/Badge.vue_vue_type_script_setup_true_lang-CsIGsGWg.js +0 -1
  177. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-D8oB421I.js +0 -1
  178. package/dist/Combobox.vue_vue_type_style_index_0_lang-BM7QiXKH.js +0 -831
  179. package/dist/Combobox.vue_vue_type_style_index_0_lang-IdKdwJfN.js +0 -1
  180. package/dist/DataTable.vue_vue_type_style_index_0_lang-CnUiY5l1.js +0 -1
  181. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BlFC2U5K.js +0 -1
  182. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js +0 -68
  183. package/dist/Indicator.vue_vue_type_script_setup_true_lang-Bnqpi2bU.js +0 -1
  184. package/dist/Indicator.vue_vue_type_script_setup_true_lang-D5xqdZRn.js +0 -40
  185. package/dist/Input.vue_vue_type_style_index_0_lang-5iaTCkoa.js +0 -1
  186. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-lIx8QQp8.js +0 -1
  187. package/dist/Segmented.vue_vue_type_style_index_0_lang-DqaTvxYQ.js +0 -1
  188. package/dist/Textarea.vue_vue_type_style_index_0_lang-BMbkTBJu.js +0 -1
  189. package/dist/Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js +0 -1789
  190. package/dist/Tree.vue_vue_type_style_index_0_lang-BrJHHwGl.js +0 -6
  191. package/dist/getEmojiList-kI-Nn4xv.js +0 -1
  192. package/dist/omit-DEPypqqe.js +0 -1
@@ -1,831 +0,0 @@
1
- import { defineComponent as ne, computed as p, createBlock as be, openBlock as pe, unref as O, mergeProps as Le, withCtx as ge, createElementBlock as De, createVNode as Me, h as r, normalizeClass as Ue, renderSlot as Ee, ref as ve, watch as He, useSlots as qe, useAttrs as Je, createSlots as Qe, renderList as Xe, normalizeProps as Ye, guardReactiveProps as Ze } from "vue";
2
- import { createContext as Re, ComboboxInput as eo, ComboboxAnchor as oo, injectComboboxRootContext as to, useFilter as ao, ComboboxPortal as no, ComboboxContent as ro, useEmitAsProps as lo, ComboboxRoot as so } from "reka-ui";
3
- import { h as Pe, o as io, f as Te, j as po } from "./FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js";
4
- import { a as Ve, g as uo } from "./options-D4et5euX.js";
5
- import { getBemBlock as co, getBemElement as b, generateVariantClassList as N } from "@pantograph/utils";
6
- import { i as j, a as ye, b as Ce, u as go, d as Ie } from "./index-jwkhq8oW.js";
7
- import { cva as _e } from "class-variance-authority";
8
- import { o as ze } from "./omit-B3e_dACs.js";
9
- import { u as he } from "./uniq-BsN259vC.js";
10
- import { _ as mo } from "./Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js";
11
- import { _ as fo } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
12
- import { _ as ke } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
13
- import { b as R, f as vo, a as ho, i as bo, d as yo } from "./element-BfQuKSll.js";
14
- import { u as Co, U as Vo } from "./useInputDataStates-CtuCKcP6.js";
15
- import { u as _o } from "./useLazyLoading-Zo-PEp2E.js";
16
- import { g as xo, b as Bo } from "./Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js";
17
- import { _ as Oo } from "./ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js";
18
- import { _ as So } from "./Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js";
19
- import { i as Z } from "./isEmpty-wdqPTIXx.js";
20
- import { _ as Po } from "./Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js";
21
- import { _ as To } from "./ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js";
22
- import { _ as xe } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
23
- import { d as Io, _ as $e } from "./Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js";
24
- import { _ as zo } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js";
25
- import { _ as Ae } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js";
26
- import { _ as ko } from "./Input.vue_vue_type_style_index_0_lang-C-jEi11-.js";
27
- import { whenever as wo, useVModel as Lo } from "@vueuse/core";
28
- import { last as Do } from "lodash-es";
29
- import { a as Mo } from "./MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js";
30
- import "@iconify/vue";
31
- import { _ as Eo } from "./Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js";
32
- import "@pantograph/tokens";
33
- const [Be, Ro] = Re("Combobox"), [$o, Ao] = Re("_Combobox"), S = co("combobox"), Ke = ["sm", "md", "lg"], Ko = ["error", "warning", "success"], Fo = { key: 1 }, Fe = /* @__PURE__ */ ne({
34
- __name: "ComboboxInput",
35
- setup(V) {
36
- const t = Be();
37
- wo(
38
- () => t.open.value && t.headerInputElement.value,
39
- () => {
40
- t.headerInputElement.value && t.open.value && t.focusOnInput();
41
- }
42
- );
43
- const o = p(() => !Z(t.modelValue.value)), e = p(() => o.value ? j(t.modelValue.value) ? t.getLabelByValue(Do(t.modelValue.value)) : t.getLabelByValue(t.modelValue.value) : t.props.placeholder), m = (k) => {
44
- if (k.key === "Backspace" && t.props.multiple && j(t.modelValue.value) && Z(t.searchModel.value) && (t.setModelValue(t.modelValue.value.slice(0, -1)), Z(t.modelValue.value))) {
45
- const x = setTimeout(() => {
46
- t.focusOnInput(), clearTimeout(x);
47
- }, 2);
48
- }
49
- }, c = b(S, "input"), $ = _e(c, {
50
- variants: {
51
- valuePlaceholder: N("value-placeholder", c)
52
- }
53
- });
54
- return (k, x) => (pe(), be(O(eo), Le(O(t).comboboxInputBinding.value, {
55
- disabled: O(t).getDisabled.value,
56
- placeholder: e.value,
57
- "as-child": "",
58
- modelValue: O(t).searchModel.value,
59
- "onUpdate:modelValue": x[0] || (x[0] = (P) => O(t).searchModel.value = P),
60
- onKeydown: m,
61
- class: O($)({
62
- valuePlaceholder: o.value
63
- }),
64
- displayValue: () => ""
65
- }), {
66
- default: ge(() => [
67
- O(t).props.headerSearch ? (pe(), be(ko, {
68
- key: 0,
69
- ref: O(t).headerInputElement,
70
- placeholder: O(t).props.placeholder
71
- }, {
72
- leading: ge(({ iconSize: P }) => [
73
- Me(xe, {
74
- size: P,
75
- icon: "tabler:search",
76
- flipOnDir: "rtl"
77
- }, null, 8, ["size"])
78
- ]),
79
- _: 1
80
- }, 8, ["placeholder"])) : (pe(), De("input", Fo))
81
- ]),
82
- _: 1
83
- }, 16, ["disabled", "placeholder", "modelValue", "class"]));
84
- }
85
- }), Wo = /* @__PURE__ */ ne({
86
- name: Ve("ComboboxTrigger"),
87
- props: {},
88
- setup(V, {
89
- slots: t,
90
- attrs: o
91
- }) {
92
- const e = Be(), m = ({
93
- value: s
94
- }, _) => {
95
- if (_.stopPropagation(), s && j(e.modelValue.value) && !e.getDisabled.value) {
96
- const L = e.modelValue.value.filter((ee) => ee !== s);
97
- e.setModelValue(L);
98
- }
99
- }, c = b(S, "trigger"), $ = _e(c, {
100
- variants: {
101
- size: N(Ke, c),
102
- status: N(Ko, c),
103
- bordered: N("bordered", c),
104
- multiple: N("multiple", c),
105
- contentFit: N("content-fit", c),
106
- wrapped: N("wrapped", c),
107
- filled: N("filled", c)
108
- }
109
- }), k = p(() => {
110
- switch (e.getSize.value) {
111
- case "sm":
112
- return "2xsm";
113
- case "md":
114
- default:
115
- return "xsm";
116
- }
117
- }), x = p(() => {
118
- if (!e.props.multiple && ye(e.modelValue.value) && !Z(e.modelValue.value))
119
- return e.getOptionByValue(e.modelValue.value);
120
- }), P = (s = x.value) => {
121
- if (e.props.selectedItemIconAsTrailingIcon && Ce(s) && "icon" in s)
122
- return s.icon;
123
- }, U = p(() => P()), F = p(() => {
124
- if (!e.props.noTrailing)
125
- return e.props.trailingIcon;
126
- }), f = p(() => ({
127
- modelValue: Pe(e.modelValue.value),
128
- open: Pe(e.open.value)
129
- })), A = () => {
130
- e.onOpenChange(!e.open.value);
131
- }, w = (s) => {
132
- console.log("event ===>", s), e.props.headerSearch;
133
- }, T = p(() => ({
134
- disabled: e.getDisabled.value,
135
- tabindex: e.getDisabled.value || !e.props.headerSearch ? -1 : 0,
136
- reference: e.props.reference,
137
- "data-disabled": e.getDisabled.value ? "" : void 0,
138
- "aria-disabled": e.getDisabled.value ?? void 0,
139
- "aria-label": "Show popup",
140
- "aria-haspopup": "listbox",
141
- "aria-expanded": e.open.value,
142
- "aria-controls": e.contentId,
143
- "data-state": e.open.value ? "open" : "closed",
144
- class: [$({
145
- size: e.getSize.value,
146
- status: e.getStatus.value === "success" && Z(e.modelValue.value) ? void 0 : e.getStatus.value,
147
- bordered: e.props.bordered,
148
- multiple: e.props.multiple,
149
- contentFit: e.props.contentFit,
150
- wrapped: e.props.wrapped,
151
- filled: !Z(e.modelValue.value)
152
- }), e.props.triggerCls],
153
- ...o
154
- })), W = (s, _ = k.value) => r(xe, {
155
- icon: s,
156
- size: _
157
- }), Q = () => {
158
- var L;
159
- let s;
160
- const _ = (L = t.triggerTrailing) == null ? void 0 : L.call(t, f.value);
161
- if (R(_) ? F.value && (s = W(F.value)) : s = _, s)
162
- return r("div", {
163
- class: [b(c, "trailing"), e.props.triggerTrailingCls]
164
- }, s);
165
- };
166
- return () => {
167
- var ee;
168
- const s = (ee = t.trigger) == null ? void 0 : ee.call(t, f.value), L = (() => {
169
- if (R(s)) return !1;
170
- const H = vo(s) ?? null, q = H.length === 1 ? H[0] : H;
171
- return q ? ho(q) && !bo(q) : !0;
172
- })();
173
- return r(oo, {
174
- ...T.value,
175
- ...e.comboboxTriggerBinding.value,
176
- asChild: L,
177
- as: L ? "template" : "button",
178
- key: String(L),
179
- onKeyUp: w,
180
- onClick: A
181
- }, () => {
182
- if (!R(s))
183
- return s;
184
- const H = (y) => {
185
- var M, z;
186
- const D = e.getOptionByValue(y);
187
- return r($e, {
188
- ...D ? ((z = (M = e.props).getTagProps) == null ? void 0 : z.call(M, D)) ?? {} : {},
189
- size: e.getTagSize.value
190
- });
191
- }, q = (y) => {
192
- var M, z;
193
- const D = e.getOptionByValue(y);
194
- return r(Ae, {
195
- ...D ? ((z = (M = e.props).getTagProps) == null ? void 0 : z.call(M, D)) ?? {} : {},
196
- size: e.getTagSize.value
197
- });
198
- }, K = () => {
199
- if (!e.props.multiple && !j(e.modelValue.value) && e.modelValue.value && (console.log("context.modelValue.value ===>", e.modelValue.value), e.props.tagRenderMode && ["avatar", "go"].includes(e.props.tagRenderMode) || U.value || e.props.leadingIcon)) {
200
- let y;
201
- if (e.props.tagRenderMode === "avatar" ? y = H(e.modelValue.value) : e.props.tagRenderMode === "go" ? y = q(e.modelValue.value) : U.value ? y = W(U.value) : e.props.leadingIcon && (y = W(e.props.leadingIcon)), !R(y))
202
- return r("div", {
203
- class: [b(c, "leading"), e.props.triggerLeadingCls]
204
- }, y);
205
- }
206
- }, ue = () => {
207
- const y = [], D = [b(c, "content"), e.props.triggerContentCls, Z(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls], z = (() => {
208
- if (e.props.multiple && j(e.modelValue.value)) {
209
- if (e.props.tagRenderMode === "avatar")
210
- return r(Io, {
211
- maxCount: e.props.maxCount,
212
- size: e.getTagSize.value,
213
- closeable: !e.getDisabled.value,
214
- noPopover: !0,
215
- noWrap: !e.props.wrapped,
216
- class: D
217
- }, () => e.modelValue.value.map(H));
218
- if (e.props.tagRenderMode === "go")
219
- return r(zo, {
220
- maxCount: e.props.maxCount,
221
- size: e.getTagSize.value,
222
- closeable: !e.getDisabled.value,
223
- noPopover: !0,
224
- noWrap: !e.props.wrapped,
225
- class: D
226
- }, () => e.modelValue.value.map(q));
227
- if (e.props.tagRenderMode === "chip")
228
- return r(To, {
229
- maxCount: e.props.maxCount,
230
- size: e.getTagSize.value,
231
- color: "primary",
232
- closeable: !e.getDisabled.value,
233
- noPopover: !0,
234
- noWrap: !e.props.wrapped,
235
- class: D,
236
- onClose: m
237
- }, () => e.modelValue.value.map((G) => {
238
- const me = () => e.getLabelByValue(G), de = ({
239
- size: fe
240
- }) => {
241
- const te = P(e.getOptionByValue(G)) ?? e.props.leadingIcon;
242
- return te ? W(te, fe) : null;
243
- };
244
- return r(Po, {
245
- value: G,
246
- class: [b(c, "tag"), e.props.tagCls],
247
- closeIconCls: b(c, "tag__close")
248
- }, {
249
- text: me,
250
- leading: de
251
- });
252
- }));
253
- }
254
- })();
255
- return z && y.push(z), e.props.headerSearch || y.push(r(Fe)), y;
256
- }, oe = [], X = K();
257
- R(X) || oe.push(X), oe.push(ue());
258
- const ce = Q();
259
- return R(ce) || oe.push(ce), oe;
260
- });
261
- };
262
- }
263
- }), Go = /* @__PURE__ */ ne({
264
- __name: "ComboboxLabel",
265
- setup(V) {
266
- return (t, o) => (pe(), De("div", {
267
- class: Ue(O(b)(O(S), "label"))
268
- }, [
269
- Ee(t.$slots, "default")
270
- ], 2));
271
- }
272
- }), we = /* @__PURE__ */ ne({
273
- name: Ve("SelectOption"),
274
- props: {
275
- option: {
276
- type: [Object, String],
277
- required: !0
278
- }
279
- },
280
- slots: Object,
281
- setup(V, {
282
- slots: t
283
- }) {
284
- const o = Be(), e = p(() => {
285
- switch (o.getSize.value) {
286
- case "sm":
287
- return "2xsm";
288
- case "lg":
289
- return "sm";
290
- case "md":
291
- default:
292
- return "xsm";
293
- }
294
- }), m = p(() => o.getOptionValue(V.option)), c = p(() => o.getOptionLabel(V.option)), $ = p(() => o.getOptionIcon(V.option)), k = p(() => o.props.tree ? void 0 : o.getOptionDescription(V.option)), x = p(() => o.getOptionDisabled(V.option)), P = p(() => Array.isArray(o.modelValue.value) ? !!(m.value && o.modelValue.value.includes(m.value)) : o.modelValue.value === m.value), U = b(S, "option"), F = () => {
295
- if (!(o.props.tree || !m.value || x.value))
296
- if (o.props.multiple) {
297
- const f = j(o.modelValue.value) ? o.modelValue.value : [];
298
- f.includes(m.value) ? o.setModelValue(f.filter((w) => w !== m.value)) : o.setModelValue([...f, m.value]);
299
- } else
300
- o.setModelValue(m.value);
301
- };
302
- if (!V.option) throw new Error("option is required");
303
- return () => {
304
- const f = (w) => {
305
- var W, Q, s, _;
306
- const T = [];
307
- return !o.props.tree && o.props.multiple && T.push(r(Eo, {
308
- modelValue: P.value,
309
- size: w.checkboxSize,
310
- disabled: x.value
311
- })), o.props.tagRenderMode === "avatar" ? T.push(r($e, {
312
- ...((Q = (W = o.props).getTagProps) == null ? void 0 : Q.call(W, V.option)) ?? {},
313
- size: o.getTagSize.value
314
- })) : o.props.tagRenderMode === "go" ? T.push(r(Ae, {
315
- ...((_ = (s = o.props).getTagProps) == null ? void 0 : _.call(s, V.option)) ?? {},
316
- size: o.getTagSize.value
317
- })) : $.value && T.push(r(xe, {
318
- icon: $.value,
319
- size: e.value
320
- })), R(T) ? null : T;
321
- };
322
- return (() => {
323
- const w = !!k.value;
324
- return r(Mo, {
325
- class: U,
326
- description: k.value,
327
- title: c.value,
328
- key: m.value,
329
- selected: P.value,
330
- unFocusable: !0,
331
- leadingCenter: !w,
332
- size: o.getSize.value,
333
- disabled: x.value,
334
- onClick: F
335
- }, {
336
- leading: f,
337
- trailing: () => {
338
- var T;
339
- return (T = t.trailing) == null ? void 0 : T.call(t, {
340
- option: V.option
341
- });
342
- }
343
- });
344
- })();
345
- };
346
- }
347
- }), No = /* @__PURE__ */ ne({
348
- name: Ve("ComboboxWrapper"),
349
- setup(V, {
350
- slots: t
351
- }) {
352
- const o = $o(), e = to(), m = ve();
353
- _o({
354
- target: m
355
- });
356
- const c = ve(), $ = xo({
357
- triggerRef: c,
358
- props: o.props
359
- }), {
360
- getFlipOnDir: k,
361
- getDir: x
362
- } = go(), P = k("reversePlacementOnDir"), U = x(), F = Bo({
363
- props: o.props,
364
- flip: P,
365
- emitsAsProps: o.emitsAsProps,
366
- _dir: U,
367
- controlAutoFocus: !1,
368
- extraPropNames: ["bodyLock", "position"]
369
- }), f = ({
370
- key: n,
371
- getterKey: g,
372
- defaultValue: u,
373
- noReturnOption: l
374
- }) => (i) => {
375
- const v = Ie(u) ? u(i) : u;
376
- if (Ce(i)) {
377
- const C = i[n] ?? v, I = g && o.props[g];
378
- if (I) {
379
- if (ye(I))
380
- return i[I] ?? C;
381
- if (Ie(I)) return I(i) ?? C;
382
- }
383
- return C;
384
- }
385
- return ye(i) && !l ? i ?? v : v;
386
- }, A = f({
387
- getterKey: "getValue",
388
- key: "value"
389
- }), w = f({
390
- getterKey: "getLabel",
391
- key: "label",
392
- defaultValue: A
393
- }), T = f({
394
- getterKey: "getIcon",
395
- key: "icon",
396
- noReturnOption: !0
397
- }), W = f({
398
- getterKey: "getDescription",
399
- key: "description",
400
- noReturnOption: !0
401
- }), Q = f({
402
- getterKey: "getDisabled",
403
- key: "disabled",
404
- defaultValue: !1,
405
- noReturnOption: !0
406
- }), s = f({
407
- getterKey: "getGroupLabel",
408
- key: "label",
409
- noReturnOption: !0
410
- }), _ = f({
411
- getterKey: "getGroupOptions",
412
- key: "options",
413
- noReturnOption: !0
414
- }), L = (n) => {
415
- var g;
416
- if ((g = o.props.options) != null && g.length)
417
- for (const u of o.props.options) {
418
- if (A(u) === n) return u;
419
- const l = _(u);
420
- if (l != null && l.length) {
421
- for (const i of l)
422
- if (A(i) === n) return i;
423
- }
424
- }
425
- return n;
426
- }, ee = (n) => {
427
- const g = L(n);
428
- return g ? w(g) ?? n : n;
429
- }, {
430
- contains: H
431
- } = ao({
432
- sensitivity: "base"
433
- }), q = p(() => {
434
- const n = [], g = (u, l) => {
435
- u.forEach((i) => {
436
- const v = A(i), C = _(i);
437
- if (v) {
438
- const I = [...l ?? [], v];
439
- n.push(I), C && g(C, I);
440
- }
441
- });
442
- };
443
- return o.props.options && g(o.props.options), n;
444
- }), K = p(() => {
445
- const n = (g) => g == null ? void 0 : g.map((u) => {
446
- const l = w(u), i = A(u), v = Q(u), C = s(u), I = !o.searchModel.value || l && H(l, o.searchModel.value), re = _(u), le = !o.props.tree || i;
447
- if (re && le) {
448
- const a = n(re);
449
- if (a != null && a.length || I)
450
- return {
451
- groupLabel: C,
452
- title: l,
453
- key: i,
454
- disabled: v,
455
- children: a,
456
- _option: u
457
- };
458
- }
459
- return I && le ? {
460
- title: l,
461
- key: i,
462
- disabled: v,
463
- _option: u
464
- } : null;
465
- }).filter(Boolean);
466
- if (o.props.options)
467
- return n(o.props.options);
468
- }), {
469
- getDisabled: ue,
470
- getStatus: oe,
471
- getSize: X
472
- } = Co({
473
- getDisabled: () => o.props.disabled,
474
- getSize: () => o.props.size,
475
- getStatus: () => o.props.status
476
- }), ce = p(() => {
477
- switch (X.value) {
478
- case "sm":
479
- return "xsm";
480
- case "lg":
481
- return "md";
482
- case "md":
483
- default:
484
- return "sm";
485
- }
486
- }), {
487
- inputBindings: y,
488
- rootBindings: D
489
- } = Vo({
490
- getDisabled: () => ue.value
491
- }), M = ve(), z = () => {
492
- var n, g, u, l, i, v, C;
493
- e.open.value && e.inputElement.value && (o.props.headerSearch && ((n = M.value) != null && n.input) ? document.activeElement !== ((g = M.value) == null ? void 0 : g.input) && ((i = (l = (u = M.value) == null ? void 0 : u.input) == null ? void 0 : l.focus) == null || i.call(l)) : document.activeElement !== e.inputElement.value && ((C = (v = e.inputElement.value) == null ? void 0 : v.focus) == null || C.call(v)));
494
- }, G = (n) => {
495
- e.modelValue.value = n, o.emit("update:modelValue", n);
496
- };
497
- Ro({
498
- ...o,
499
- getOptionValue: A,
500
- getOptionLabel: w,
501
- getOptionDescription: W,
502
- getOptionDisabled: Q,
503
- getOptionIcon: T,
504
- getOptionByValue: L,
505
- getLabelByValue: ee,
506
- focusOnInput: z,
507
- setModelValue: G,
508
- headerInputElement: M,
509
- getDisabled: ue,
510
- getStatus: oe,
511
- getSize: X,
512
- getTagSize: ce,
513
- comboboxInputBinding: y,
514
- comboboxTriggerBinding: D,
515
- ...e,
516
- modelValue: e.modelValue
517
- }), He(() => [o.props.clearOnChangeMultiple, o.props.multiple], () => {
518
- o.props.clearOnChangeMultiple && G(void 0);
519
- });
520
- const me = p(() => {
521
- const n = o.props.scrollContainerProps ?? {};
522
- return {
523
- ...n,
524
- areaCls: [b(S, "scroll_area"), n == null ? void 0 : n.class, n == null ? void 0 : n.areaCls]
525
- };
526
- }), de = b(S, "popup"), fe = _e(de, {
527
- variants: {
528
- size: N(Ke, de)
529
- }
530
- }), te = (n) => {
531
- if (Number(n) > 0)
532
- return `${n}px`;
533
- if (typeof n == "string")
534
- return n;
535
- }, We = p(() => te(o.props.popupWidth)), Ge = p(() => te(o.props.popupHeight)), Oe = p(() => te(o.props.minWidth)), Se = p(() => ({
536
- type: X.value === "sm" ? "simple" : "advance",
537
- ...ze(o.props.emptyProps ?? {}, "class")
538
- })), Ne = p(() => ze(o.props.skeletonProps ?? {}, "class"));
539
- return () => {
540
- var re, le;
541
- const n = (a) => {
542
- var d;
543
- if ((d = K.value) != null && d.length && a > 0)
544
- return !!K.value[a - 1];
545
- }, g = (a) => {
546
- var d, B;
547
- if ((d = K.value) != null && d.length && a > 0) {
548
- const h = K.value[a - 1];
549
- return !!(h && ((B = _(h)) != null && B.length));
550
- }
551
- }, u = (a) => r(we, {
552
- option: a
553
- }, {
554
- trailing: () => {
555
- var d;
556
- return (d = t.optionTrailing) == null ? void 0 : d.call(t, {
557
- option: a
558
- });
559
- }
560
- }), l = [];
561
- let i;
562
- if (o.props.tree) {
563
- const d = j(e.modelValue.value) ? e.modelValue.value : e.modelValue.value ? [e.modelValue.value] : [];
564
- i = r(So, {
565
- data: K.value ?? [],
566
- selectable: !0,
567
- checkbox: o.props.multiple,
568
- multiple: o.props.multiple,
569
- defaultExpandAll: !0,
570
- syncCheckboxAndSelect: o.props.multiple,
571
- showLine: !0,
572
- modelValue: d,
573
- checkedKeys: d,
574
- onExpand: z,
575
- onCheck: (B, h, E) => {
576
- if (o.props.multiple) {
577
- console.log("key ===>", E, h);
578
- const Y = j(E) ? E : [E], se = he(q.value.filter((J) => J.some((ie) => Y.includes(ie))).map((J) => {
579
- const ie = J.findIndex((je) => Y.includes(je));
580
- return J.slice(ie);
581
- }).reduce((J, ie) => [...J, ...ie], [])), ae = e.modelValue.value && j(e.modelValue.value) ? e.modelValue.value : [];
582
- G(h ? he([...ae, ...se]).filter(Boolean) : he(ae).filter((J) => !se.includes(J)));
583
- } else
584
- G(E);
585
- },
586
- class: "w-full"
587
- }, {
588
- title: (B) => u(B._option)
589
- }), l.push(i);
590
- } else
591
- (K.value ?? []).forEach((a, d) => {
592
- var B;
593
- (B = a.children) != null && B.length ? (n(d) && l.push(r(ke)), a.groupLabel && l.push(r(Go, {
594
- class: o.props.labelCls
595
- }, () => a.groupLabel)), a.children.forEach((h) => {
596
- l.push(u(h._option));
597
- })) : g(d) ? l.push(r(ke)) : l.push(u(a._option));
598
- });
599
- const v = yo(i ? [i] : l, we).filter((a) => {
600
- var d;
601
- return Ce(a == null ? void 0 : a.props) && ((d = a == null ? void 0 : a.props) == null ? void 0 : d.option);
602
- }), C = !!(o.props.tree && ((re = K.value) != null && re.length) || v != null && v.length), I = () => {
603
- var d, B;
604
- const a = [];
605
- if (C || o.props.loading) {
606
- const h = [];
607
- if (C && h.push(...l), o.props.loading) {
608
- const E = (d = t.loading) == null ? void 0 : d.call(t, {});
609
- if (!R(E)) h.push(E);
610
- else {
611
- const Y = new Array(C ? 2 : o.props.loadingRowCount).fill(1);
612
- h.push(...Y.map(() => r(fo, {
613
- size: X.value,
614
- class: [b(S, "skeleton"), o.props.skeletonCls],
615
- ...Ne.value
616
- })));
617
- }
618
- }
619
- a.push(r("div", {
620
- class: [b(S, "options"), o.props.optionsCls]
621
- }, h));
622
- } else if (!C) {
623
- const h = (B = t.empty) == null ? void 0 : B.call(t, Se.value);
624
- R(h) ? a.push(r(mo, {
625
- class: [b(S, "empty"), o.props.emptyCls],
626
- ...Se.value
627
- }, {
628
- title: t.emptyTitle,
629
- description: t.emptyDescription,
630
- actions: t.emptyActions,
631
- image: t.emptyImage
632
- })) : a.push(h);
633
- }
634
- return o.props.lazyLoading && a.push(r("div", {
635
- class: b(S, "lazy_loading")
636
- }, r("div", {
637
- class: b(S, "lazy_loading_trigger"),
638
- ref: m
639
- }))), a;
640
- };
641
- return [r(Wo, {
642
- ref: c,
643
- ...o.attrs,
644
- style: {
645
- ...((le = o.attrs) == null ? void 0 : le.style) ?? {},
646
- "--ptc-combobox-trigger-min-w": Oe.value
647
- }
648
- }, {
649
- trigger: t.trigger,
650
- triggerTrailing: t.triggerTrailing
651
- }), r(no, $.value, () => r(ro, {
652
- ...F.value,
653
- vShow: e.open.value,
654
- class: [fe(o.props), o.props.popupCls],
655
- style: {
656
- "--ptc-combobox-popup-width": o.props.samePopupWidth ? void 0 : We.value,
657
- "--ptc-combobox-popup-height": Ge.value,
658
- "--ptc-combobox-trigger-min-w": Oe.value
659
- },
660
- onClick: z
661
- }, () => {
662
- var E, Y, se;
663
- const a = [], d = (E = t.header) == null ? void 0 : E.call(t), B = !R(d);
664
- if (o.props.headerSearch || B) {
665
- const ae = [];
666
- B && ae.push(d), ae.push(r(Fe)), a.push(r("div", {
667
- class: b(S, "header")
668
- }, ae));
669
- }
670
- a.push(r(Oo, me.value, I));
671
- const h = (se = t.footer) == null ? void 0 : se.call(t, {
672
- isEmpty: !((Y = K.value) != null && Y.length),
673
- search: o.searchModel.value
674
- });
675
- return R(h) || a.push(r("div", {
676
- class: b(S, "footer")
677
- }, h)), a;
678
- }))];
679
- };
680
- }
681
- }), xt = /* @__PURE__ */ ne({
682
- ...uo("Combobox"),
683
- __name: "Combobox",
684
- props: {
685
- size: { default: "md" },
686
- status: {},
687
- multiple: { type: Boolean, default: void 0 },
688
- tagRenderMode: { default: "chip" },
689
- getTagProps: {},
690
- tree: { type: Boolean },
691
- contentFit: { type: Boolean },
692
- wrapped: { type: Boolean },
693
- noTrailing: { type: Boolean },
694
- leadingIcon: {},
695
- trailingIcon: { default: "tabler:chevron-down" },
696
- selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
697
- maxCount: {},
698
- to: {},
699
- placeholder: {},
700
- indicatorIcon: { default: "tabler:check" },
701
- options: {},
702
- getDisabled: {},
703
- getLabel: {},
704
- getDescription: {},
705
- getValue: {},
706
- getGroupOptions: {},
707
- getGroupLabel: {},
708
- getIcon: {},
709
- placement: { default: "bottom" },
710
- reversePlacementOnDir: {},
711
- loading: { type: Boolean },
712
- skeletonProps: {},
713
- loadingRowCount: { default: 10 },
714
- lazyLoading: { type: Boolean },
715
- bordered: { type: Boolean, default: !0 },
716
- clearOnChangeMultiple: { type: Boolean, default: !0 },
717
- triggerCls: {},
718
- triggerLeadingCls: {},
719
- triggerContentCls: {},
720
- triggerContentPlaceholderCls: {},
721
- triggerContentValueCls: {},
722
- triggerTrailingCls: {},
723
- itemLeadingCls: {},
724
- optionCls: {},
725
- tagCls: {},
726
- popupCls: {},
727
- labelCls: {},
728
- optionsCls: {},
729
- optionTextCls: {},
730
- optionContentCls: {},
731
- emptyCls: {},
732
- skeletonCls: {},
733
- scrollContainerProps: {},
734
- emptyProps: {},
735
- samePopupWidth: { type: Boolean, default: !0 },
736
- popupHeight: { default: 384 },
737
- popupWidth: {},
738
- minWidth: {},
739
- headerSearch: { type: Boolean },
740
- search: {},
741
- open: { type: Boolean, default: void 0 },
742
- defaultOpen: { type: Boolean, default: void 0 },
743
- resetSearchTermOnBlur: { type: Boolean, default: !0 },
744
- resetSearchTermOnSelect: { type: Boolean, default: !0 },
745
- modelValue: {},
746
- defaultValue: {},
747
- dir: {},
748
- disabled: { type: Boolean, default: void 0 },
749
- highlightOnHover: { type: Boolean },
750
- by: {},
751
- asChild: { type: Boolean },
752
- as: {},
753
- name: {},
754
- required: { type: Boolean },
755
- reference: {},
756
- forceMount: { type: Boolean, default: void 0 },
757
- position: { default: "popper" },
758
- bodyLock: { type: Boolean },
759
- side: {},
760
- sideOffset: { default: 4 },
761
- align: {},
762
- alignOffset: {},
763
- avoidCollisions: { type: Boolean, default: void 0 },
764
- collisionBoundary: {},
765
- collisionPadding: { default: 4 },
766
- arrowPadding: {},
767
- sticky: {},
768
- hideWhenDetached: { type: Boolean, default: void 0 },
769
- positionStrategy: { default: "fixed" },
770
- updatePositionStrategy: {},
771
- disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
772
- prioritizePosition: { type: Boolean, default: void 0 },
773
- disableOutsidePointerEvents: { type: Boolean },
774
- defer: { type: Boolean }
775
- },
776
- emits: ["update:search", "update:modelValue", "highlight", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
777
- setup(V, { emit: t }) {
778
- const o = V, e = t, m = lo(e), c = p(
779
- () => io(
780
- {
781
- ...Te(
782
- o,
783
- "open",
784
- "defaultOpen",
785
- "defaultValue",
786
- "modelValue",
787
- "by",
788
- "dir",
789
- "multiple",
790
- "disabled"
791
- ),
792
- ...Te(
793
- m,
794
- "onUpdate:modelValue",
795
- "onUpdate:open"
796
- ),
797
- ignoreFilter: !0
798
- },
799
- po
800
- )
801
- ), $ = Lo(o, "search", e, {
802
- passive: !1
803
- }), k = qe(), x = Je();
804
- return Ao({
805
- attrs: x,
806
- props: o,
807
- emit: e,
808
- searchModel: $,
809
- emitsAsProps: m
810
- }), (P, U) => (pe(), be(O(so), Le(c.value, { class: O(S) }), {
811
- default: ge(() => [
812
- Me(O(No), null, Qe({ _: 2 }, [
813
- Xe(Object.keys(k), (F) => ({
814
- name: F,
815
- fn: ge((f) => [
816
- Ee(P.$slots, F, Ye(Ze(f)))
817
- ])
818
- }))
819
- ]), 1024)
820
- ]),
821
- _: 3
822
- }, 16, ["class"]));
823
- }
824
- });
825
- export {
826
- Ke as C,
827
- xt as _,
828
- Ko as a,
829
- Be as i,
830
- Ro as p
831
- };