@pantograph/vue 0.26.0 → 0.27.1

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 (396) hide show
  1. package/dist/ActionButton/ActionButton.d.ts +20 -12
  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-BVeWGfr7.js +1 -0
  5. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-D4l05YZz.js +69 -0
  6. package/dist/Alert/index.js +1 -1
  7. package/dist/Alert/index.umd.cjs +1 -1
  8. package/dist/Alert.vue_vue_type_script_setup_true_lang-CZzHeneB.js +1 -0
  9. package/dist/Alert.vue_vue_type_script_setup_true_lang-D5F_9ZwU.js +128 -0
  10. package/dist/Avatar/index.js +1 -1
  11. package/dist/Avatar/index.umd.cjs +1 -1
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-DmIuHoi3.js → Avatar.vue_vue_type_script_setup_true_lang-CH_6o8dq.js} +57 -52
  13. package/dist/Avatar.vue_vue_type_script_setup_true_lang-QZhssZnQ.js +1 -0
  14. package/dist/AvatarGroup/index.js +1 -1
  15. package/dist/AvatarGroup/index.umd.cjs +1 -1
  16. package/dist/Badge/index.js +1 -1
  17. package/dist/Badge/index.umd.cjs +1 -1
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-DKswgB1B.js +1 -0
  19. package/dist/{Badge.vue_vue_type_script_setup_true_lang-DvZc9U-W.js → Badge.vue_vue_type_script_setup_true_lang-GQnZqeaV.js} +20 -15
  20. package/dist/Base/BaseButton/BaseButton.d.ts +2 -0
  21. package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
  22. package/dist/{BaseBadge.model-D4ZfMIfM.js → BaseBadge.model-CahZXsyM.js} +2 -2
  23. package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-8tuJTjkU.js +1 -0
  24. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Cekbj5do.js → BaseBadge.vue_vue_type_script_setup_true_lang-BVEnU-L5.js} +27 -21
  25. package/dist/BaseButton.vue_vue_type_script_setup_true_lang-B6fHU-br.js +1 -0
  26. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-Bwa2jAT_.js → BaseButton.vue_vue_type_script_setup_true_lang-u4Fvon7Z.js} +53 -47
  27. package/dist/BaseInput.vue_vue_type_script_setup_true_lang-BEeid52h.js +1 -0
  28. package/dist/BaseInput.vue_vue_type_script_setup_true_lang-Ca0LOJfn.js +141 -0
  29. package/dist/Button/Button.d.ts +29 -21
  30. package/dist/Button/index.js +1 -1
  31. package/dist/Button/index.umd.cjs +1 -1
  32. package/dist/Button.vue_vue_type_script_setup_true_lang-3EriUXFH.js +1 -0
  33. package/dist/Button.vue_vue_type_script_setup_true_lang-CSKn-kYb.js +72 -0
  34. package/dist/ButtonGroup/index.js +1 -1
  35. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js → ButtonGroup.vue_vue_type_script_setup_true_lang-BWfa7L2L.js} +4 -4
  36. package/dist/Checkbox/Checkbox.d.ts +1 -0
  37. package/dist/Checkbox/index.js +1 -1
  38. package/dist/Checkbox/index.umd.cjs +1 -1
  39. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-B5hrYP5E.js +1 -0
  40. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DiG3cLmy.js +226 -0
  41. package/dist/CheckboxGroup/CheckboxGroup.d.ts +4 -4
  42. package/dist/CheckboxGroup/index.js +1 -1
  43. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  44. package/dist/Chip/Chip.d.ts +4 -1
  45. package/dist/Chip/index.js +1 -1
  46. package/dist/Chip/index.umd.cjs +1 -1
  47. package/dist/Chip.vue_vue_type_script_setup_true_lang-DOIPsHk_.js +217 -0
  48. package/dist/Chip.vue_vue_type_script_setup_true_lang-Dn-EkG3e.js +1 -0
  49. package/dist/ChipGroup/index.js +1 -1
  50. package/dist/ChipGroup/index.umd.cjs +1 -1
  51. package/dist/ColorPicker/ColorPicker.d.ts +1 -0
  52. package/dist/ColorPicker/index.js +1 -1
  53. package/dist/ColorPicker/index.umd.cjs +1 -1
  54. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CFWIxkoW.js → ColorPicker.vue_vue_type_script_setup_true_lang-Bz_mnMXB.js} +765 -763
  55. package/dist/ColorPicker.vue_vue_type_script_setup_true_lang-D6k_f_bV.js +4 -0
  56. package/dist/ColorSwatch/ColorSwatch.d.ts +2 -0
  57. package/dist/ColorSwatch/index.js +1 -1
  58. package/dist/ColorSwatch/index.umd.cjs +1 -1
  59. package/dist/ColorSwatch-BUx8Adlm.js +4 -0
  60. package/dist/ColorSwatch-CyLiiscO.js +1 -0
  61. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DsriVs5P.js → ColorSwatch.vue_vue_type_script_setup_true_lang-DBTZCpNP.js} +38 -29
  62. package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-mEt98xi2.js +1 -0
  63. package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -1
  64. package/dist/ColorSwatchGroup/index.js +1 -1
  65. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  66. package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-B-cLoom6.js +175 -0
  67. package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-D1yZXDV3.js +1 -0
  68. package/dist/ColorTrigger/ColorTrigger.d.ts +1 -0
  69. package/dist/ColorTrigger/index.js +1 -1
  70. package/dist/ColorTrigger/index.umd.cjs +1 -1
  71. package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-BbT6N2FL.js +94 -0
  72. package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DIzDCzvv.js +1 -0
  73. package/dist/Combobox/Combobox.d.ts +912 -31
  74. package/dist/Combobox/ComboboxInput.d.ts +20 -1
  75. package/dist/Combobox/ComboboxLabel.d.ts +3 -15
  76. package/dist/Combobox/ComboboxOption.d.ts +4 -17
  77. package/dist/Combobox/ComboboxTrigger.d.ts +1 -3
  78. package/dist/Combobox/context.d.ts +22 -25
  79. package/dist/Combobox/index.js +1 -1
  80. package/dist/Combobox/index.umd.cjs +1 -1
  81. package/dist/Combobox/types.d.ts +73 -49
  82. package/dist/Combobox.vue_vue_type_script_setup_true_lang-CSN9cqZh.js +1120 -0
  83. package/dist/Combobox.vue_vue_type_script_setup_true_lang-NkTBG9kI.js +1 -0
  84. package/dist/Comment/Comment.d.ts +1 -1
  85. package/dist/Comment/CommentActions.d.ts +58 -44
  86. package/dist/Comment/CommentEditor.d.ts +248 -215
  87. package/dist/Comment/CommentMention.d.ts +1 -1
  88. package/dist/Comment/CommentReaction.d.ts +1 -1
  89. package/dist/Comment/CommentReactions.d.ts +29 -22
  90. package/dist/Comment/index.js +325 -327
  91. package/dist/Comment/index.umd.cjs +1 -1
  92. package/dist/ConfigProvider/index.js +1 -1
  93. package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js → ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js} +1 -1
  94. package/dist/DataTable/index.js +1 -1
  95. package/dist/DataTable/index.umd.cjs +1 -1
  96. package/dist/DataTable.vue_vue_type_script_setup_true_lang-BbVKnjxN.js +1 -0
  97. package/dist/{DataTable.vue_vue_type_style_index_0_lang-DFOwpMxF.js → DataTable.vue_vue_type_script_setup_true_lang-BfTiBQMt.js} +105 -106
  98. package/dist/Divider/index.js +1 -1
  99. package/dist/Divider/index.umd.cjs +1 -1
  100. package/dist/Divider.vue_vue_type_script_setup_true_lang-BHkXVZCN.js +43 -0
  101. package/dist/Divider.vue_vue_type_script_setup_true_lang-BfrE098V.js +1 -0
  102. package/dist/DropZone/DropZone.d.ts +1 -0
  103. package/dist/DropZone/index.js +1 -1
  104. package/dist/DropZone/index.umd.cjs +1 -1
  105. package/dist/DropZone.vue_vue_type_script_setup_true_lang-C8PIE0KC.js +131 -0
  106. package/dist/DropZone.vue_vue_type_script_setup_true_lang-DEK0OBo2.js +1 -0
  107. package/dist/Empty/index.js +1 -1
  108. package/dist/Empty/index.umd.cjs +1 -1
  109. package/dist/Empty.vue_vue_type_script_setup_true_lang-BHsAnkd7.js +1 -0
  110. package/dist/{Empty.vue_vue_type_style_index_0_lang-Bk2nO0VN.js → Empty.vue_vue_type_script_setup_true_lang-CnJOScIi.js} +41 -35
  111. package/dist/FloatButton/FloatButton.d.ts +28 -20
  112. package/dist/FloatButton/index.js +1 -1
  113. package/dist/FloatButton/index.umd.cjs +1 -1
  114. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-D03EBWv5.js +67 -0
  115. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-t22bWN9j.js +1 -0
  116. package/dist/Form/Form.d.ts +35 -29
  117. package/dist/Form/FormItem.d.ts +14 -3
  118. package/dist/Form/index.js +1 -1
  119. package/dist/Form/index.umd.cjs +1 -1
  120. package/dist/FormValidation/FormValidation.d.ts +1 -1
  121. package/dist/GOPicker/GOPicker.d.ts +44 -43
  122. package/dist/GOPicker/index.js +1 -1
  123. package/dist/GOPicker/index.umd.cjs +1 -1
  124. package/dist/GOPicker.vue_vue_type_script_setup_true_lang-BOyOH_qb.js +1 -0
  125. package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CJ-yY8X0.js → GOPicker.vue_vue_type_script_setup_true_lang-Cx2WQErE.js} +162 -163
  126. package/dist/GraphicalObject/index.js +1 -1
  127. package/dist/GraphicalObject/index.umd.cjs +1 -1
  128. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-D6ppQA4I.js +1 -0
  129. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-DFogOMOj.js → GraphicalObject.vue_vue_type_script_setup_true_lang-Dwf4A9T3.js} +9 -9
  130. package/dist/GraphicalObjectGroup/index.js +1 -1
  131. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  132. package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CAvd-28M.js +68 -0
  133. package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CXyuthQS.js +1 -0
  134. package/dist/HoverCard/HoverCard.d.ts +12 -133
  135. package/dist/HoverCard/index.d.ts +1 -1
  136. package/dist/HoverCard/index.js +2 -2
  137. package/dist/HoverCard/index.umd.cjs +1 -1
  138. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-CbT9IDH_.js +1 -0
  139. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DBOk4tYh.js +100 -0
  140. package/dist/Icon/Icon.d.ts +18 -1
  141. package/dist/Icon/index.js +1 -1
  142. package/dist/Icon/index.umd.cjs +1 -1
  143. package/dist/Icon.vue_vue_type_script_setup_true_lang-BDTw4CRD.js +9 -0
  144. package/dist/Icon.vue_vue_type_script_setup_true_lang-DJv20Efl.js +2839 -0
  145. package/dist/IconButton/IconButton.d.ts +27 -21
  146. package/dist/IconButton/index.js +1 -1
  147. package/dist/IconButton/index.umd.cjs +1 -1
  148. package/dist/IconButton.vue_vue_type_script_setup_true_lang-CRdinhW6.js +66 -0
  149. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DtB1BlrH.js +1 -0
  150. package/dist/Image/index.js +1 -1
  151. package/dist/Image/index.umd.cjs +1 -1
  152. package/dist/Image.vue_vue_type_script_setup_true_lang-C8IFCQ1Z.js +1 -0
  153. package/dist/Image.vue_vue_type_script_setup_true_lang-DUAcgVt3.js +131 -0
  154. package/dist/IndentLevel/IndentLevel.d.ts +1 -1
  155. package/dist/IndentLevel/index.js +1 -1
  156. package/dist/IndentLevel/index.umd.cjs +1 -1
  157. package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-CZIskYG5.js +105 -0
  158. package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-DejchDVl.js +1 -0
  159. package/dist/Indicator/index.js +1 -1
  160. package/dist/Indicator/index.umd.cjs +1 -1
  161. package/dist/Indicator.vue_vue_type_script_setup_true_lang-C5X3Ptal.js +1 -0
  162. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Bfc2cDZW.js → Indicator.vue_vue_type_script_setup_true_lang-CUzJo6Dq.js} +6 -6
  163. package/dist/Input/index.js +2 -2
  164. package/dist/Input/index.umd.cjs +1 -1
  165. package/dist/{Input.vue_vue_type_script_setup_true_lang-BZidgKiU.js → Input.vue_vue_type_script_setup_true_lang-BBOWLata.js} +32 -27
  166. package/dist/Input.vue_vue_type_script_setup_true_lang-DQaTM8t7.js +1 -0
  167. package/dist/InputNumber/index.js +2 -2
  168. package/dist/InputNumber/index.umd.cjs +1 -1
  169. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-B2XDVABX.js +1 -0
  170. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-y1SYHqAR.js → InputNumber.vue_vue_type_script_setup_true_lang-Dg-C7-Gw.js} +20 -15
  171. package/dist/Kbd/index.js +1 -1
  172. package/dist/Kbd/index.umd.cjs +1 -1
  173. package/dist/Kbd.vue_vue_type_script_setup_true_lang-Bts8h3Rc.js +1 -0
  174. package/dist/Kbd.vue_vue_type_script_setup_true_lang-CZvbn4oA.js +53 -0
  175. package/dist/Label/index.js +1 -1
  176. package/dist/Label/index.umd.cjs +1 -1
  177. package/dist/Link/index.js +1 -1
  178. package/dist/Link/index.umd.cjs +1 -1
  179. package/dist/Link.vue_vue_type_script_setup_true_lang-B9UfwACd.js +1 -0
  180. package/dist/{Link.vue_vue_type_style_index_0_lang-CXRcuM5F.js → Link.vue_vue_type_script_setup_true_lang-Dc6IcnzY.js} +26 -20
  181. package/dist/Menu/Menu.d.ts +5 -3
  182. package/dist/Menu/index.js +1 -1
  183. package/dist/Menu/index.umd.cjs +1 -1
  184. package/dist/MenuItem/MenuItem.d.ts +5 -5
  185. package/dist/MenuItem/MenuItemContent.d.ts +16 -10
  186. package/dist/MenuItem/index.js +1 -1
  187. package/dist/MenuItem/index.umd.cjs +1 -1
  188. package/dist/MenuItem.vue_vue_type_script_setup_true_lang-BhAWfw04.js +616 -0
  189. package/dist/MenuItem.vue_vue_type_script_setup_true_lang-DweYhLgr.js +1 -0
  190. package/dist/Pagination/Pagination.d.ts +3 -1
  191. package/dist/Pagination/index.js +1 -1
  192. package/dist/Pagination/index.umd.cjs +1 -1
  193. package/dist/Pagination.vue_vue_type_script_setup_true_lang-CH2sZBOw.js +246 -0
  194. package/dist/Pagination.vue_vue_type_script_setup_true_lang-qyR_Occn.js +1 -0
  195. package/dist/Popover/Popover.d.ts +10 -131
  196. package/dist/Popover/Popover.model.d.ts +1 -1
  197. package/dist/Popover/index.d.ts +2 -1
  198. package/dist/Popover/index.js +1 -1
  199. package/dist/Popover/index.umd.cjs +1 -1
  200. package/dist/Popover/type.d.ts +27 -0
  201. package/dist/Popover/utils.d.ts +48 -4
  202. package/dist/Popover.vue_vue_type_script_setup_true_lang-Bye1k1gb.js +1 -0
  203. package/dist/Popover.vue_vue_type_script_setup_true_lang-D-Jebwr9.js +281 -0
  204. package/dist/Progress/index.js +1 -1
  205. package/dist/Progress/index.umd.cjs +1 -1
  206. package/dist/Progress.vue_vue_type_script_setup_true_lang-QIJAJeT9.js +1 -0
  207. package/dist/{Progress.vue_vue_type_style_index_0_lang-DHMo6akY.js → Progress.vue_vue_type_script_setup_true_lang-fxFcm9WO.js} +106 -100
  208. package/dist/RadioGroup/RadioGroup.d.ts +7 -1
  209. package/dist/RadioGroup/RadioGroupItem.d.ts +1 -1
  210. package/dist/RadioGroup/index.js +1 -1
  211. package/dist/RadioGroup/index.umd.cjs +1 -1
  212. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-B_-7GgYM.js +1 -0
  213. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-w2aa6VhW.js +110 -0
  214. package/dist/ScrollContainer/ScrollContainer.d.ts +13 -17
  215. package/dist/ScrollContainer/index.js +1 -1
  216. package/dist/ScrollContainer/index.umd.cjs +1 -1
  217. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-ioHY1esc.js → ScrollContainer.vue_vue_type_script_setup_true_lang-BU7qU1LR.js} +39 -36
  218. package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-u50YBozy.js +1 -0
  219. package/dist/Segmented/Segmented.d.ts +4 -2
  220. package/dist/Segmented/index.js +1 -1
  221. package/dist/Segmented/index.umd.cjs +1 -1
  222. package/dist/Segmented.vue_vue_type_script_setup_true_lang-CoJCKPrs.js +1 -0
  223. package/dist/Segmented.vue_vue_type_script_setup_true_lang-D7yf-Ezy.js +171 -0
  224. package/dist/Select/Select.d.ts +9 -5
  225. package/dist/Select/index.js +1 -1
  226. package/dist/Select/index.umd.cjs +1 -1
  227. package/dist/Select/types.d.ts +6 -5
  228. package/dist/Select.vue_vue_type_script_setup_true_lang-B8L_locv.js +787 -0
  229. package/dist/Select.vue_vue_type_script_setup_true_lang-BxOgh92J.js +1 -0
  230. package/dist/Shortcut/index.js +1 -1
  231. package/dist/Shortcut/index.umd.cjs +1 -1
  232. package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CByKa08f.js +1 -0
  233. package/dist/Shortcut.vue_vue_type_script_setup_true_lang-CPeD8ZFo.js +38 -0
  234. package/dist/Skeleton/index.js +1 -1
  235. package/dist/Skeleton/index.umd.cjs +1 -1
  236. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BPGtJ7m9.js +65 -0
  237. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CZd6jGSK.js +1 -0
  238. package/dist/Spinner/index.js +1 -1
  239. package/dist/Spinner/index.umd.cjs +1 -1
  240. package/dist/Spinner.vue_vue_type_script_setup_true_lang-BLbh3cW9.js +1 -0
  241. package/dist/{Spinner.vue_vue_type_style_index_0_lang-Bflf_h7p.js → Spinner.vue_vue_type_script_setup_true_lang-plOMCeJw.js} +33 -27
  242. package/dist/SubMenu/SubMenu.d.ts +2 -2
  243. package/dist/SubMenu/index.js +1 -1
  244. package/dist/SubMenu/index.umd.cjs +1 -1
  245. package/dist/Switch/index.js +1 -1
  246. package/dist/Switch/index.umd.cjs +1 -1
  247. package/dist/Switch.vue_vue_type_script_setup_true_lang--nKqQaQz.js +1 -0
  248. package/dist/{Switch.vue_vue_type_style_index_0_lang-DprBpzXg.js → Switch.vue_vue_type_script_setup_true_lang-Br5agMiY.js} +41 -37
  249. package/dist/THead.vue_vue_type_script_setup_true_lang-B8EBMO33.js +214 -0
  250. package/dist/THead.vue_vue_type_script_setup_true_lang-midXJwsE.js +1 -0
  251. package/dist/TabContent.vue_vue_type_script_setup_true_lang-B3v-gPTa.js +1 -0
  252. package/dist/TabContent.vue_vue_type_script_setup_true_lang-DUqgKpvl.js +379 -0
  253. package/dist/Table/index.js +1 -1
  254. package/dist/Table/index.umd.cjs +1 -1
  255. package/dist/Tabs/TabContent.d.ts +18 -0
  256. package/dist/Tabs/TabList.d.ts +302 -0
  257. package/dist/Tabs/TabTrigger.d.ts +41 -0
  258. package/dist/Tabs/Tabs.d.ts +53 -0
  259. package/dist/Tabs/index.d.ts +5 -1
  260. package/dist/Tabs/index.js +11 -1
  261. package/dist/Tabs/index.umd.cjs +1 -1
  262. package/dist/Textarea/Textarea.d.ts +32 -36
  263. package/dist/Textarea/index.js +1 -1
  264. package/dist/Textarea/index.umd.cjs +1 -1
  265. package/dist/{Textarea.vue_vue_type_style_index_0_lang-CYHt1v8A.js → Textarea.vue_vue_type_script_setup_true_lang-BTywGT0W.js} +28 -25
  266. package/dist/Textarea.vue_vue_type_script_setup_true_lang-ZvXSpOuD.js +1 -0
  267. package/dist/Tree/Tree.d.ts +34 -5
  268. package/dist/Tree/Tree.model.d.ts +34 -13
  269. package/dist/Tree/index.js +1 -1
  270. package/dist/Tree/index.umd.cjs +1 -1
  271. package/dist/Tree/utils.d.ts +29 -13
  272. package/dist/Tree.vue_vue_type_script_setup_true_lang-B5khp8Fw.js +726 -0
  273. package/dist/Tree.vue_vue_type_script_setup_true_lang-C7AJKgHE.js +1 -0
  274. package/dist/Upload/Upload.d.ts +2 -1
  275. package/dist/Upload/UploadListItem.d.ts +1 -1
  276. package/dist/Upload/UploadTrigger.d.ts +5 -3
  277. package/dist/Upload/index.js +1 -1
  278. package/dist/Upload/index.umd.cjs +1 -1
  279. package/dist/Upload/types.d.ts +2 -2
  280. package/dist/Upload/utils/extension.d.ts +1 -1
  281. package/dist/Upload/utils/transformFile.d.ts +1 -1
  282. package/dist/Upload.vue_vue_type_script_setup_true_lang-BNiFkx47.js +1027 -0
  283. package/dist/Upload.vue_vue_type_script_setup_true_lang-ClLueLCg.js +1 -0
  284. package/dist/bodyLock-DBGsJvTg.js +14 -0
  285. package/dist/bodyLock-DM_fELbd.js +1 -0
  286. package/dist/collection-BFrS9-RP.js +1 -0
  287. package/dist/collection-DUgtxIW2.js +70 -0
  288. package/dist/exports.d.ts +1 -6
  289. package/dist/index.js +272 -257
  290. package/dist/index.umd.cjs +1 -1
  291. package/dist/isEmpty-CgVXdsCr.js +40 -0
  292. package/dist/isEmpty-cyU2mCRb.js +1 -0
  293. package/dist/{options-Bh1s18jm.js → options-J8HfRMSU.js} +2 -2
  294. package/dist/style/index.css +1 -1
  295. package/dist/useInputDataStates-CVQJAe1K.js +1 -0
  296. package/dist/useInputDataStates-DCxDvkM-.js +50 -0
  297. package/dist/useVirtualScroll-3vEZzPrF.js +1 -0
  298. package/dist/useVirtualScroll-CXkmR_v2.js +32 -0
  299. package/dist/useVmodel-BU5qtyne.js +1 -0
  300. package/dist/useVmodel-DlyNieM5.js +52 -0
  301. package/dist/utils/bodyLock.d.ts +2 -0
  302. package/dist/utils/collection.d.ts +32 -0
  303. package/dist/utils/index.d.ts +10 -5
  304. package/dist/utils/index.js +32 -15
  305. package/dist/utils/index.umd.cjs +1 -1
  306. package/dist/utils/style.d.ts +1 -0
  307. package/dist/utils/useInputDataStates.d.ts +1 -1
  308. package/dist/utils/useVirtualScroll.d.ts +23 -0
  309. package/dist/utils/useVmodel.d.ts +69 -0
  310. package/package.json +9 -8
  311. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-C-yubDE0.js +0 -1
  312. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-C8Q6waTJ.js +0 -56
  313. package/dist/Alert.vue_vue_type_style_index_0_lang-DxlwdpVq.js +0 -123
  314. package/dist/Alert.vue_vue_type_style_index_0_lang-Q2swor45.js +0 -1
  315. package/dist/Avatar.vue_vue_type_style_index_0_lang-UzInGmo8.js +0 -1
  316. package/dist/Badge.vue_vue_type_script_setup_true_lang-BBMB72Mz.js +0 -1
  317. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNlyoiRz.js +0 -1
  318. package/dist/BaseButton.vue_vue_type_style_index_0_lang-DQGK3rUl.js +0 -1
  319. package/dist/BaseInput.vue_vue_type_style_index_0_lang-CalBdGIB.js +0 -133
  320. package/dist/BaseInput.vue_vue_type_style_index_0_lang-b7Cyp0zn.js +0 -1
  321. package/dist/Button.vue_vue_type_script_setup_true_lang-BGNxRN3s.js +0 -53
  322. package/dist/Button.vue_vue_type_script_setup_true_lang-C_XW_RxE.js +0 -1
  323. package/dist/Checkbox.vue_vue_type_style_index_0_lang-BftwQBSo.js +0 -1
  324. package/dist/Checkbox.vue_vue_type_style_index_0_lang-QBA04hd1.js +0 -223
  325. package/dist/Chip.vue_vue_type_style_index_0_lang-CRI3QwLZ.js +0 -192
  326. package/dist/Chip.vue_vue_type_style_index_0_lang-z_hK7usq.js +0 -1
  327. package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CcSrQKRq.js +0 -4
  328. package/dist/ColorSwatch-B8Atg6sw.js +0 -4
  329. package/dist/ColorSwatch-Bjf8zaRk.js +0 -1
  330. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CXCshLKX.js +0 -1
  331. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CczGrgYd.js +0 -1
  332. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-amI55LMo.js +0 -156
  333. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BIaTcjVN.js +0 -90
  334. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bny3csr4.js +0 -1
  335. package/dist/Combobox/ComboboxWrapper.d.ts +0 -4
  336. package/dist/Combobox.vue_vue_type_style_index_0_lang-C5lxH1Cg.js +0 -1
  337. package/dist/Combobox.vue_vue_type_style_index_0_lang-DLgal2Q-.js +0 -949
  338. package/dist/DataTable.vue_vue_type_style_index_0_lang-CRv9-elM.js +0 -1
  339. package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +0 -1
  340. package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +0 -36
  341. package/dist/DropZone.vue_vue_type_style_index_0_lang-B0T34FXZ.js +0 -124
  342. package/dist/DropZone.vue_vue_type_style_index_0_lang-CjskWVFc.js +0 -1
  343. package/dist/Empty.vue_vue_type_style_index_0_lang-2ZPIGpdZ.js +0 -1
  344. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CqI5GHuN.js +0 -58
  345. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DObfA5pf.js +0 -1
  346. package/dist/GOPicker.vue_vue_type_style_index_0_lang-BieXIwrY.js +0 -1
  347. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BqtvZ4Zu.js +0 -1
  348. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CFIKZKMj.js +0 -64
  349. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CnsHb2Lb.js +0 -1
  350. package/dist/HoverCard.vue_vue_type_style_index_0_lang-DGhlQaO0.js +0 -124
  351. package/dist/HoverCard.vue_vue_type_style_index_0_lang-tPtCNI95.js +0 -1
  352. package/dist/Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js +0 -2909
  353. package/dist/Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js +0 -9
  354. package/dist/IconButton.vue_vue_type_script_setup_true_lang-Dvu9WpEN.js +0 -58
  355. package/dist/IconButton.vue_vue_type_script_setup_true_lang-ZUsEmKon.js +0 -1
  356. package/dist/Image.vue_vue_type_style_index_0_lang-BabuXXFH.js +0 -126
  357. package/dist/Image.vue_vue_type_style_index_0_lang-Dcqwbt4T.js +0 -1
  358. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CZ95qLkr.js +0 -99
  359. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-LYssIii4.js +0 -1
  360. package/dist/Indicator.vue_vue_type_script_setup_true_lang-B-oDEbiu.js +0 -1
  361. package/dist/Input.vue_vue_type_script_setup_true_lang-BVbKTWVG.js +0 -1
  362. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DEgVgZ_0.js +0 -1
  363. package/dist/Kbd.vue_vue_type_style_index_0_lang-1ITCVp0q.js +0 -47
  364. package/dist/Kbd.vue_vue_type_style_index_0_lang-Cjc5Rk3l.js +0 -1
  365. package/dist/Link.vue_vue_type_style_index_0_lang-gFBGdIkN.js +0 -1
  366. package/dist/MenuItem.vue_vue_type_style_index_0_lang-BC0hNIHn.js +0 -1
  367. package/dist/MenuItem.vue_vue_type_style_index_0_lang-CK2KrtJa.js +0 -587
  368. package/dist/Pagination.vue_vue_type_style_index_0_lang-DOwVgreM.js +0 -1
  369. package/dist/Pagination.vue_vue_type_style_index_0_lang-Dgx-vviE.js +0 -235
  370. package/dist/Popover.vue_vue_type_style_index_0_lang-22ewjJ6F.js +0 -1
  371. package/dist/Popover.vue_vue_type_style_index_0_lang-BrLhsdZu.js +0 -247
  372. package/dist/Progress.vue_vue_type_style_index_0_lang-8m4aQ4CZ.js +0 -1
  373. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-B9rRuGDt.js +0 -1
  374. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Zo3ozdqk.js +0 -101
  375. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DRYmVHMT.js +0 -1
  376. package/dist/Segmented.vue_vue_type_style_index_0_lang-BPt9_TEH.js +0 -165
  377. package/dist/Segmented.vue_vue_type_style_index_0_lang-BSt3GUbV.js +0 -1
  378. package/dist/Select.vue_vue_type_style_index_0_lang-D7VjqOBv.js +0 -1
  379. package/dist/Select.vue_vue_type_style_index_0_lang-XLlU2Du1.js +0 -769
  380. package/dist/Shortcut.vue_vue_type_style_index_0_lang-CllMPygM.js +0 -1
  381. package/dist/Shortcut.vue_vue_type_style_index_0_lang-D9NQzaRd.js +0 -32
  382. package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +0 -58
  383. package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +0 -1
  384. package/dist/Spinner.vue_vue_type_style_index_0_lang-D0mZzwBr.js +0 -1
  385. package/dist/Switch.vue_vue_type_style_index_0_lang-CLIDvWMp.js +0 -1
  386. package/dist/THead.vue_vue_type_style_index_0_lang-Bk62FCuE.js +0 -1
  387. package/dist/THead.vue_vue_type_style_index_0_lang-CDQ98k-9.js +0 -200
  388. package/dist/Textarea.vue_vue_type_style_index_0_lang-CY82h4f9.js +0 -1
  389. package/dist/Tree.vue_vue_type_style_index_0_lang-BrdekqZ8.js +0 -1
  390. package/dist/Tree.vue_vue_type_style_index_0_lang-i9HBxbnw.js +0 -737
  391. package/dist/Upload.vue_vue_type_style_index_0_lang-Bej4zFFq.js +0 -1020
  392. package/dist/Upload.vue_vue_type_style_index_0_lang-CTtVPcxp.js +0 -1
  393. package/dist/style-BEhqkSEE.js +0 -20
  394. package/dist/style-CYb6EX2Q.js +0 -1
  395. package/dist/useInputDataStates-D-XvZURF.js +0 -52
  396. package/dist/useInputDataStates-DvfSqKSa.js +0 -1
@@ -0,0 +1,1120 @@
1
+ import { defineComponent as ge, useSlots as nt, computed as m, createBlock as E, openBlock as O, unref as c, mergeProps as se, createSlots as rt, renderList as $e, withCtx as K, renderSlot as Le, normalizeProps as De, guardReactiveProps as Ee, createVNode as Z, h as f, useAttrs as wt, createElementBlock as de, normalizeClass as Pe, toDisplayString as Mt, ref as ce, watch as Lt, isRef as Je, createCommentVNode as Re, createElementVNode as Qe, normalizeStyle as Dt, Fragment as Ae } from "vue";
2
+ import { createContext as Et, useEmitAsProps as Rt } from "reka-ui";
3
+ import { omit as Be, isString as Xe, cloneDeep as ae, isFunction as At, debounce as Ye, pick as $t, last as Ze } from "es-toolkit";
4
+ import { e as Ke, y as Y, g as A, u as Kt, w as Ft } from "./Icon.vue_vue_type_script_setup_true_lang-DJv20Efl.js";
5
+ import { a as me } from "./options-J8HfRMSU.js";
6
+ import { a as Nt, i as R } from "./isEmpty-CgVXdsCr.js";
7
+ import { u as Wt } from "./bodyLock-DBGsJvTg.js";
8
+ import { u as Ut, U as Ht } from "./useInputDataStates-DCxDvkM-.js";
9
+ import { a as Gt } from "./collection-DUgtxIW2.js";
10
+ import { u as Oe } from "./useVmodel-DlyNieM5.js";
11
+ import { u as jt } from "./useVirtualScroll-CXkmR_v2.js";
12
+ import { getBemBlock as qt, getBemModifier as Jt, getBemElement as h, normCls as U, generateVariantClassList as X, createOptionGetterFunc as Q, usePCId as et } from "@pantograph/utils";
13
+ import { _ as Qt } from "./Popover.vue_vue_type_script_setup_true_lang-D-Jebwr9.js";
14
+ import "@pantograph/tokens";
15
+ import { whenever as Xt } from "@vueuse/core";
16
+ import "@tanstack/vue-virtual";
17
+ import { cva as st } from "class-variance-authority";
18
+ import { d as Yt, _ as it } from "./Avatar.vue_vue_type_script_setup_true_lang-CH_6o8dq.js";
19
+ import { _ as ut } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Dwf4A9T3.js";
20
+ import { _ as Zt } from "./GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-CAvd-28M.js";
21
+ import { b as eo, _ as to } from "./Chip.vue_vue_type_script_setup_true_lang-DOIPsHk_.js";
22
+ import { _ as oo } from "./Input.vue_vue_type_script_setup_true_lang-BBOWLata.js";
23
+ import { g as lo, a as ao } from "./MenuItem.vue_vue_type_script_setup_true_lang-BhAWfw04.js";
24
+ import { u as no } from "./useLazyLoading-Zo-PEp2E.js";
25
+ import { _ as ro } from "./ScrollContainer.vue_vue_type_script_setup_true_lang-BU7qU1LR.js";
26
+ import { _ as so } from "./Empty.vue_vue_type_script_setup_true_lang-CnJOScIi.js";
27
+ import { f as io, s as tt, _ as uo, a as po } from "./Tree.vue_vue_type_script_setup_true_lang-B5khp8Fw.js";
28
+ import { _ as co } from "./Checkbox.vue_vue_type_script_setup_true_lang-DiG3cLmy.js";
29
+ import { _ as go } from "./Skeleton.vue_vue_type_script_setup_true_lang-BPGtJ7m9.js";
30
+ import { _ as mo } from "./Divider.vue_vue_type_script_setup_true_lang-BHkXVZCN.js";
31
+ import fo from "@pantograph/style/combobox.css?raw";
32
+ function vo(B) {
33
+ return Array.isArray(B) ? B : Array.from(B);
34
+ }
35
+ function ho(B) {
36
+ return B[0];
37
+ }
38
+ function ot(B) {
39
+ if (Nt(B))
40
+ return ho(vo(B));
41
+ }
42
+ const [Fe, yo] = Et("Combobox"), P = qt("combobox"), pt = Jt(P, "value-placeholder"), lt = h(P, "option"), ct = ["sm", "md", "lg"], _o = ["error", "warning", "success"], dt = /* @__PURE__ */ ge({
43
+ ...me("ComboboxInput"),
44
+ __name: "ComboboxInput",
45
+ props: {
46
+ id: {},
47
+ maxlength: {},
48
+ type: {},
49
+ placeholder: {},
50
+ disabled: { type: Boolean, default: void 0 },
51
+ required: { type: Boolean },
52
+ readonly: { type: Boolean },
53
+ modelValue: {},
54
+ defaultValue: {},
55
+ leading: {},
56
+ trailing: {},
57
+ clearIcon: {},
58
+ trailingCls: {},
59
+ clearIconCls: {},
60
+ dividerCls: {},
61
+ leadingCls: {},
62
+ class: {},
63
+ allowClear: { type: Boolean },
64
+ bordered: { type: Boolean, default: void 0 },
65
+ simple: { type: Boolean },
66
+ size: {},
67
+ status: {},
68
+ steps: { type: Boolean }
69
+ },
70
+ setup(B) {
71
+ const t = B, o = nt(), r = Fe();
72
+ Xt(() => r.openModel.value && r.inputRef.value, r.focusOnInput);
73
+ const ee = m(() => r.placeholder.value ?? t.placeholder ?? r.props.placeholder ?? ""), M = (n) => {
74
+ var g, b;
75
+ if (r.props.headerSearch || n.stopPropagation(), n.key === "Backspace" && r.props.multiple && Y(r.model.value) && R(r.searchModel.value))
76
+ r.model.value = r.model.value.slice(0, -1);
77
+ else if (!r.openModel.value)
78
+ (n.key === "ArrowDown" || n.key === "Enter") && (r.openModel.value = !0);
79
+ else if (r.openModel.value)
80
+ if (n.key === "Escape") r.openModel.value = !1;
81
+ else if (n.key === "Tab" && !r.props.headerSearch) r.openModel.value = !1;
82
+ else if (["ArrowDown", "ArrowUp"].includes(n.key)) {
83
+ const s = r.getItems();
84
+ if (s.length) {
85
+ const H = s.findIndex(
86
+ (C) => r.highlightedOptionKey.value && C.value && C.value === r.highlightedOptionKey.value
87
+ );
88
+ if (n.key === "ArrowDown") {
89
+ const C = s[H + 1];
90
+ r.highlightedOptionKey.value = (C == null ? void 0 : C.value) ?? r.highlightedOptionKey.value ?? s[0].value;
91
+ } else if (n.key === "ArrowUp") {
92
+ const C = s[H - 1];
93
+ r.highlightedOptionKey.value = (C == null ? void 0 : C.value) ?? s[0].value;
94
+ }
95
+ (b = (g = s.find(
96
+ (C) => r.highlightedOptionKey.value && C.value && C.value === r.highlightedOptionKey.value
97
+ )) == null ? void 0 : g.ref) == null || b.scrollIntoView();
98
+ }
99
+ } else n.key === "Enter" && r.highlightedOptionKey.value && r.selectOption(r.getOptionByValue(r.highlightedOptionKey.value), !0);
100
+ }, y = h(P, "input");
101
+ return (n, g) => (O(), E(c(oo), se({ ...c(r).comboboxInputBinding.value, ...t }, {
102
+ placeholder: ee.value,
103
+ onKeydown: M,
104
+ ref: c(r).inputRef,
105
+ class: c(U)(c(y), { [c(pt)]: c(r).valuePlaceholder.value }, t.class),
106
+ modelValue: c(r).searchModel.value,
107
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => c(r).searchModel.value = b)
108
+ }), rt({ _: 2 }, [
109
+ $e(Object.keys(c(Be)(o, ["leading"])), (b) => ({
110
+ name: b,
111
+ fn: K((s) => [
112
+ Le(n.$slots, b, De(Ee(s)))
113
+ ])
114
+ })),
115
+ c(r).props.headerSearch ? {
116
+ name: "leading",
117
+ fn: K((b) => [
118
+ Le(n.$slots, "leading", De(Ee(b)), () => [
119
+ Z(c(Ke), {
120
+ size: b.iconSize,
121
+ icon: "tabler:search",
122
+ flipOnDir: "rtl"
123
+ }, null, 8, ["size"])
124
+ ])
125
+ ]),
126
+ key: "0"
127
+ } : {
128
+ name: "leading",
129
+ fn: K((b) => [
130
+ Le(n.$slots, "leading", De(Ee(b)))
131
+ ]),
132
+ key: "1"
133
+ }
134
+ ]), 1040, ["placeholder", "class", "modelValue"]));
135
+ }
136
+ }), bo = /* @__PURE__ */ ge({
137
+ ...me("ComboboxTrigger"),
138
+ __name: "ComboboxTrigger",
139
+ setup(B) {
140
+ const t = Fe(), o = ({ value: i }) => {
141
+ i && Y(t.model.value) && !t.getDisabled.value && (t.model.value = t.model.value.filter((d) => d !== i));
142
+ }, r = m(() => {
143
+ switch (t.getSize.value) {
144
+ case "sm":
145
+ return "2xsm";
146
+ case "md":
147
+ default:
148
+ return "xsm";
149
+ }
150
+ }), ee = m(() => {
151
+ if (!t.props.multiple && Xe(t.model.value) && !R(t.model.value))
152
+ return t.getOptionByValue(t.model.value);
153
+ }), M = (i = ee.value) => {
154
+ if (t.props.selectedItemIconAsTrailingIcon && (i != null && i._icon))
155
+ return i._icon;
156
+ }, y = m(() => M()), n = m(() => {
157
+ if (!t.props.noTrailing)
158
+ return t.props.trailingIcon;
159
+ }), g = m(() => {
160
+ var _, v;
161
+ const i = ae(t.model.value), d = Y(t.model.value);
162
+ return {
163
+ modelValue: i,
164
+ open: ae(t.openModel.value),
165
+ option: d ? void 0 : t.getOptionByValue(t.model.value),
166
+ options: d ? (v = (_ = t.model.value).map) == null ? void 0 : v.call(_, t.getOptionByValue).filter(Boolean) : void 0
167
+ };
168
+ }), b = (i) => ({
169
+ ...g.value,
170
+ option: t.getOptionByValue(i)
171
+ }), s = h(P, "trigger"), H = st(s, {
172
+ variants: {
173
+ size: X(ct, s),
174
+ headerSearch: X("header-search", s),
175
+ status: X(_o, s),
176
+ bordered: X("bordered", s),
177
+ multiple: X("multiple", s),
178
+ contentFit: X("content-fit", s),
179
+ wrapped: X("wrapped", s),
180
+ filled: X("filled", s)
181
+ }
182
+ }), C = m(() => ({
183
+ type: "button",
184
+ disabled: t.getDisabled.value,
185
+ tabindex: t.getDisabled.value || !t.props.headerSearch ? -1 : 0,
186
+ reference: t.props.reference,
187
+ "data-disabled": t.getDisabled.value ? "" : void 0,
188
+ "aria-disabled": t.getDisabled.value ?? void 0,
189
+ "aria-label": "Show popup",
190
+ "aria-haspopup": "listbox",
191
+ "aria-expanded": t.openModel.value,
192
+ "data-state": t.openModel.value ? "open" : "closed",
193
+ class: U(
194
+ H({
195
+ size: t.getSize.value,
196
+ status: t.getStatus.value === "success" && R(t.model.value) ? void 0 : t.getStatus.value,
197
+ bordered: t.props.bordered,
198
+ multiple: t.props.multiple,
199
+ contentFit: t.props.contentFit,
200
+ wrapped: t.props.wrapped,
201
+ filled: !R(t.model.value),
202
+ headerSearch: t.props.headerSearch
203
+ }),
204
+ t.props.triggerCls
205
+ ),
206
+ ...t.comboboxTriggerBinding.value
207
+ })), F = (i, d = r.value) => f(Ke, { icon: i, size: d }), te = () => {
208
+ var _, v;
209
+ let i;
210
+ const d = (v = (_ = t.slots).triggerTrailing) == null ? void 0 : v.call(
211
+ _,
212
+ g.value
213
+ );
214
+ if (A(d) ? n.value && (i = F(n.value)) : i = d, i)
215
+ return f(
216
+ "div",
217
+ { class: U(h(s, "trailing"), t.props.triggerTrailingCls) },
218
+ i
219
+ );
220
+ }, G = (i) => {
221
+ var _, v;
222
+ const d = t.getOptionByValue(i) ?? { _key: i };
223
+ return f(it, {
224
+ size: t.getTagSize.value,
225
+ ...d ? ((v = (_ = t.props).getTagProps) == null ? void 0 : v.call(_, d)) ?? {} : {}
226
+ });
227
+ }, L = (i) => {
228
+ var _, v;
229
+ const d = t.getOptionByValue(i) ?? { _key: i };
230
+ return f(ut, {
231
+ ...d ? ((v = (_ = t.props).getTagProps) == null ? void 0 : v.call(_, d)) ?? {} : {},
232
+ size: t.getTagSize.value
233
+ });
234
+ }, fe = () => {
235
+ var i, d;
236
+ if (!t.props.multiple && !Y(t.model.value) && t.model.value) {
237
+ let _;
238
+ Xe(t.model.value) && !R(t.model.value) && (_ = t.model.value);
239
+ const v = _ ? (d = (i = t.slots).optionLeading) == null ? void 0 : d.call(
240
+ i,
241
+ lo(
242
+ t.props.size,
243
+ b(_)
244
+ )
245
+ ) : null, q = !A(v);
246
+ if (q || t.props.tagRenderMode && ["avatar", "go"].includes(t.props.tagRenderMode) || y.value || t.props.leadingIcon) {
247
+ let k;
248
+ if (q ? k = v : t.props.tagRenderMode === "avatar" ? k = G(t.model.value) : t.props.tagRenderMode === "go" ? k = L(t.model.value) : y.value ? k = F(y.value) : t.props.leadingIcon && (k = F(t.props.leadingIcon)), !A(k))
249
+ return f(
250
+ "div",
251
+ {
252
+ class: U(h(s, "leading"), t.props.triggerLeadingCls)
253
+ },
254
+ k
255
+ );
256
+ }
257
+ }
258
+ }, j = () => {
259
+ var ie, ve;
260
+ const i = (ve = (ie = t.slots).trigger) == null ? void 0 : ve.call(ie, g.value);
261
+ if (!A(i))
262
+ return i;
263
+ const _ = () => {
264
+ const I = [], ue = [
265
+ h(s, "tags"),
266
+ t.props.triggerContentCls,
267
+ t.props.triggerContentValueCls
268
+ ], pe = (() => {
269
+ if (t.props.multiple && Y(t.model.value)) {
270
+ if (t.props.tagRenderMode === "avatar")
271
+ return f(
272
+ Yt,
273
+ {
274
+ maxCount: t.props.maxCount,
275
+ size: t.getTagSize.value,
276
+ closeable: !t.getDisabled.value,
277
+ noPopover: !0,
278
+ noWrap: !t.props.wrapped,
279
+ class: ue
280
+ },
281
+ () => t.model.value.map(G)
282
+ );
283
+ if (t.props.tagRenderMode === "go")
284
+ return f(
285
+ Zt,
286
+ {
287
+ maxCount: t.props.maxCount,
288
+ size: t.getTagSize.value,
289
+ closeable: !t.getDisabled.value,
290
+ noPopover: !0,
291
+ noWrap: !t.props.wrapped,
292
+ class: ue
293
+ },
294
+ () => t.model.value.map(L)
295
+ );
296
+ if (t.props.tagRenderMode === "chip")
297
+ return f(
298
+ eo,
299
+ {
300
+ maxCount: t.props.maxCount,
301
+ size: t.getTagSize.value,
302
+ color: "primary",
303
+ closeable: !t.getDisabled.value,
304
+ noPopover: !0,
305
+ noWrap: !t.props.wrapped,
306
+ class: ue,
307
+ onClose: o
308
+ },
309
+ () => t.model.value.map((ne) => {
310
+ var V, N;
311
+ const he = () => t.getLabelByValue(ne), ye = ({ size: Ie }) => {
312
+ const be = M(t.getOptionByValue(ne)) ?? t.props.leadingIcon;
313
+ return be ? F(be, Ie) : null;
314
+ }, _e = t.getOptionByValue(ne);
315
+ return f(
316
+ to,
317
+ {
318
+ ..._e ? ((N = (V = t.props).getTagProps) == null ? void 0 : N.call(V, _e)) ?? {} : {},
319
+ value: ne,
320
+ class: U(h(s, "tag"), t.props.tagCls),
321
+ closeIconCls: h(s, "tag__close")
322
+ },
323
+ {
324
+ text: he,
325
+ leading: ye
326
+ }
327
+ );
328
+ })
329
+ );
330
+ }
331
+ })();
332
+ return pe && I.push(pe), t.props.headerSearch ? (!t.props.noValueOnPlaceholder || t.props.placeholder) && I.push(
333
+ f(
334
+ "div",
335
+ {
336
+ class: U(h(s, "content__value"), {
337
+ [pt]: t.valuePlaceholder.value
338
+ })
339
+ },
340
+ t.placeholder.value ?? t.props.placeholder
341
+ )
342
+ ) : I.push(
343
+ f(dt, {
344
+ noValueOnPlaceholder: t.props.noValueOnPlaceholder,
345
+ searchIcon: !1,
346
+ bordered: !1,
347
+ simple: !0
348
+ })
349
+ ), f("div", { class: h(s, "content") }, I);
350
+ }, v = [], q = fe();
351
+ A(q) || v.push(q), v.push(_());
352
+ const k = te();
353
+ return A(k) || v.push(k), f("button", C.value, v);
354
+ };
355
+ return (i, d) => (O(), E(j));
356
+ }
357
+ }), at = /* @__PURE__ */ ge({
358
+ ...me("ComboboxOption"),
359
+ __name: "ComboboxOption",
360
+ props: {
361
+ option: {}
362
+ },
363
+ setup(B) {
364
+ const t = B, o = Fe(), r = m(() => o.isOptionSelected(t.option._key)), ee = (n) => {
365
+ var s, H, C, F, te, G;
366
+ const g = [];
367
+ !o.props.tree && o.props.multiple && o.props.checkbox && !t.option._noCheckbox && g.push(
368
+ f(co, {
369
+ modelValue: r.value,
370
+ size: n.checkboxSize,
371
+ disabled: t.option._disabled
372
+ })
373
+ );
374
+ const b = (H = (s = o.slots).optionLeading) == null ? void 0 : H.call(s, { ...n, option: t.option });
375
+ return A(b) ? o.props.tagRenderMode === "avatar" && o.props.showTriggerTagOnOption ? g.push(
376
+ f(it, {
377
+ size: n.avatarSize,
378
+ ...((F = (C = o.props).getTagProps) == null ? void 0 : F.call(C, t.option)) ?? {}
379
+ })
380
+ ) : o.props.tagRenderMode === "go" && o.props.showTriggerTagOnOption ? g.push(
381
+ f(ut, {
382
+ size: n.iconSize,
383
+ ...((G = (te = o.props).getTagProps) == null ? void 0 : G.call(te, t.option)) ?? {}
384
+ })
385
+ ) : t.option._icon && g.push(f(Ke, { icon: t.option._icon, size: o.getIconSize.value })) : g.push(b), A(g) ? null : g;
386
+ }, M = wt(), y = () => {
387
+ const n = o.props.tree ? void 0 : t.option._description, g = (At(o.props.getMenuItemProps) ? o.props.getMenuItemProps(t.option) : o.props.getMenuItemProps) ?? {};
388
+ return f(
389
+ ao,
390
+ {
391
+ class: h(P, "option"),
392
+ unFocusable: !0,
393
+ staticStyle: o.props.tree,
394
+ description: n,
395
+ title: t.option._label,
396
+ key: t.option._key,
397
+ selected: r.value,
398
+ leadingCenter: !!n,
399
+ size: o.getSize.value,
400
+ disabled: o.props.tree ? !1 : t.option._disabled,
401
+ onClick: () => o.selectOption(t.option),
402
+ slotProps: t,
403
+ ...g,
404
+ ...M
405
+ },
406
+ {
407
+ leading: ee,
408
+ trailing: o.slots.optionTrailing,
409
+ title: o.slots.optionTitle,
410
+ description: o.slots.optionDescription
411
+ }
412
+ );
413
+ };
414
+ return (n, g) => (O(), E(y));
415
+ }
416
+ }), Co = /* @__PURE__ */ ge({
417
+ ...me("ComboboxLabel"),
418
+ __name: "ComboboxLabel",
419
+ props: {
420
+ label: {}
421
+ },
422
+ setup(B) {
423
+ return (t, o) => (O(), de("div", {
424
+ class: Pe(c(h)(c(P), "label"))
425
+ }, Mt(t.label), 3));
426
+ }
427
+ }), el = /* @__PURE__ */ ge({
428
+ ...me("Combobox"),
429
+ __name: "Combobox",
430
+ props: {
431
+ modelValue: {},
432
+ defaultValue: {},
433
+ multiple: { type: Boolean, default: void 0 },
434
+ disabled: { type: Boolean, default: void 0 },
435
+ highlightOnHover: { type: Boolean },
436
+ resetSearchTermOnBlur: { type: Boolean, default: !0 },
437
+ resetSearchTermOnSelect: { type: Boolean, default: !0 },
438
+ size: { default: "md" },
439
+ status: {},
440
+ noValueOnPlaceholder: { type: Boolean },
441
+ zIndex: {},
442
+ checkbox: { type: Boolean, default: !0 },
443
+ tagRenderMode: { default: "chip" },
444
+ getTagProps: {},
445
+ tree: { type: Boolean },
446
+ treeProps: {},
447
+ contentFit: { type: Boolean },
448
+ wrapped: { type: Boolean },
449
+ sortSelectedItems: { type: Boolean },
450
+ noTrailing: { type: Boolean },
451
+ leadingIcon: {},
452
+ trailingIcon: { default: "tabler:chevron-down" },
453
+ selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
454
+ maxCount: {},
455
+ to: {},
456
+ placeholder: {},
457
+ indicatorIcon: { default: "tabler:check" },
458
+ options: {},
459
+ getDisabled: {},
460
+ getLabel: {},
461
+ getDescription: {},
462
+ getValue: {},
463
+ getNoCheckbox: {},
464
+ getSingle: {},
465
+ getClear: {},
466
+ getOptions: {},
467
+ getIcon: {},
468
+ loading: { type: Boolean },
469
+ skeletonProps: {},
470
+ loadingRowCount: { default: 10 },
471
+ lazyLoading: { type: Boolean },
472
+ bordered: { type: Boolean, default: !0 },
473
+ clearOnChangeMultiple: { type: Boolean, default: !0 },
474
+ triggerCls: {},
475
+ triggerLeadingCls: {},
476
+ triggerContentCls: {},
477
+ triggerContentPlaceholderCls: {},
478
+ triggerContentValueCls: {},
479
+ triggerTrailingCls: {},
480
+ itemLeadingCls: {},
481
+ optionCls: {},
482
+ tagCls: {},
483
+ popupCls: {},
484
+ labelCls: {},
485
+ optionsCls: {},
486
+ optionTextCls: {},
487
+ optionContentCls: {},
488
+ emptyCls: {},
489
+ skeletonCls: {},
490
+ scrollContainerProps: {},
491
+ emptyProps: {},
492
+ samePopupWidth: { type: Boolean, default: !0 },
493
+ popupHeight: { default: 384 },
494
+ popupWidth: {},
495
+ minWidth: {},
496
+ search: {},
497
+ filterOptions: {},
498
+ expandedKeys: {},
499
+ noTrigger: { type: Boolean },
500
+ headerSearch: { type: Boolean },
501
+ headerSearchInputProps: {},
502
+ virtual: { type: Boolean },
503
+ showTriggerTagOnOption: { type: Boolean },
504
+ disableOutsidePointerEvents: { type: Boolean, default: !0 },
505
+ getMenuItemProps: {},
506
+ placement: { default: "bottom-start" },
507
+ containerProps: {},
508
+ reversePlacementOnDir: {},
509
+ open: { type: Boolean, default: void 0 },
510
+ defaultOpen: { type: Boolean, default: void 0 },
511
+ sideOffset: { default: 4 },
512
+ alignOffset: {},
513
+ reference: {},
514
+ prioritizePosition: { type: Boolean, default: !1 },
515
+ avoidCollisions: { type: Boolean, default: void 0 },
516
+ dir: {}
517
+ },
518
+ emits: ["update:modelValue", "update:expandedKeys", "update:search", "fetch", "search", "select", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
519
+ setup(B, { emit: t }) {
520
+ Kt("combobox", fo);
521
+ const o = B, r = t, ee = Ye((e) => {
522
+ r("search", e);
523
+ }, 500), M = Oe(o, "search", r, {
524
+ passive: o.search === void 0,
525
+ onChange: ee
526
+ }), y = Oe(o, "open", r, {
527
+ defaultValue: o.defaultOpen,
528
+ passive: o.open === void 0,
529
+ onChange(e) {
530
+ !e && o.resetSearchTermOnBlur && (M.value = void 0);
531
+ }
532
+ }), n = Oe(
533
+ o,
534
+ "modelValue",
535
+ r,
536
+ {
537
+ passive: o.modelValue === void 0,
538
+ onChange: (e) => {
539
+ var l, a;
540
+ y.value && !o.multiple && (y.value = !1), typeof V !== void 0 && (V != null && V.value) && o.sortSelectedItems && ((a = (l = V == null ? void 0 : V.value) == null ? void 0 : l.measure) == null || a.call(l));
541
+ }
542
+ }
543
+ ), g = Oe(
544
+ o,
545
+ "expandedKeys",
546
+ r,
547
+ {
548
+ passive: o.expandedKeys === void 0
549
+ }
550
+ ), b = Ye((e) => {
551
+ g.value = e;
552
+ }, 500), s = nt(), H = Rt(r), C = m(() => ({
553
+ ...Be(H, ["update:modelValue", "update:search", "select"]),
554
+ ...$t(o, [
555
+ "placement",
556
+ "reversePlacementOnDir",
557
+ "zIndex",
558
+ "to",
559
+ "dir",
560
+ "size",
561
+ "sideOffset",
562
+ "alignOffset",
563
+ "prioritizePosition",
564
+ "avoidCollisions"
565
+ ])
566
+ // modal: true,
567
+ })), F = ce();
568
+ no({ target: F });
569
+ const te = Q({
570
+ key: "value",
571
+ getter: o.getValue
572
+ }), G = {
573
+ getDisabled: Q({
574
+ key: "disabled",
575
+ getter: o.getDisabled,
576
+ noReturnOption: !0,
577
+ defaultValue: !1
578
+ }),
579
+ getDescription: Q({
580
+ key: "description",
581
+ getter: o.getDescription,
582
+ noReturnOption: !0
583
+ }),
584
+ getValue: te,
585
+ getLabel: Q({
586
+ key: "label",
587
+ getter: o.getLabel,
588
+ noReturnOption: !0,
589
+ defaultValue: te
590
+ }),
591
+ getNoCheckbox: Q({
592
+ key: "noCheckbox",
593
+ getter: o.getNoCheckbox,
594
+ noReturnOption: !0,
595
+ defaultValue: !1
596
+ }),
597
+ getSingle: Q({
598
+ key: "single",
599
+ getter: o.getSingle,
600
+ noReturnOption: !0,
601
+ defaultValue: !1
602
+ }),
603
+ getClear: Q({
604
+ key: "clear",
605
+ getter: o.getClear,
606
+ noReturnOption: !0,
607
+ defaultValue: !1
608
+ }),
609
+ getOptions: Q({
610
+ key: "options",
611
+ getter: o.getOptions,
612
+ noReturnOption: !0
613
+ }),
614
+ getIcon: Q({
615
+ key: "icon",
616
+ getter: o.getIcon,
617
+ noReturnOption: !0
618
+ })
619
+ }, L = (e, l) => {
620
+ var p;
621
+ const a = `get${l[0].toUpperCase() + l.slice(1)}`;
622
+ return (p = G[a]) == null ? void 0 : p.call(G, e);
623
+ }, fe = (e, l, a) => !!(!o.tree && !(l != null && l.length) && (a != null && a.length)), j = m(
624
+ () => io({
625
+ getValue: (e, l, a) => {
626
+ const p = L(e, "value");
627
+ return R(p) && fe(e, l, a) ? et(lt) : p;
628
+ },
629
+ getDisabled: (e) => L(e, "disabled"),
630
+ arr: o.options ?? [],
631
+ getChildren: (e, l) => {
632
+ if (!(l != null && l.length && !o.tree))
633
+ return L(e, "options");
634
+ },
635
+ getExtra: (e) => {
636
+ if (e) {
637
+ let l = L(e, "label");
638
+ return R(l) || (l = String(l)), {
639
+ _description: L(e, "description"),
640
+ _label: l,
641
+ _title: o.tree ? l : void 0,
642
+ _noCheckbox: L(e, "noCheckbox"),
643
+ _single: L(e, "single"),
644
+ _clear: L(e, "clear"),
645
+ _icon: L(e, "icon")
646
+ };
647
+ }
648
+ },
649
+ allowNoValidKey: fe
650
+ })
651
+ ), i = (e, l = !1) => e ? j.value.filter((a) => {
652
+ var p;
653
+ if (l) {
654
+ const T = Ze(a._parentKeys ?? []);
655
+ return T && T === e;
656
+ }
657
+ return (p = a._parentKeys) == null ? void 0 : p.includes(e);
658
+ }) : [], d = (e) => {
659
+ var l;
660
+ if ((l = j.value) != null && l.length && !R(e))
661
+ return j.value.find((a) => a._key === e);
662
+ }, _ = (e) => {
663
+ const l = d(e);
664
+ return l && (l._label || l._key) || e;
665
+ }, v = (e) => {
666
+ const l = d(e);
667
+ return l ? l._single ?? !1 : !1;
668
+ }, q = (e) => e === void 0 ? !1 : Array.isArray(n.value) ? !!(e && n.value.includes(e)) : n.value === e, k = m(() => {
669
+ var p, T, Ce, ke;
670
+ let e = [];
671
+ const l = /* @__PURE__ */ new Set(), a = (u) => {
672
+ u != null && u._key && !l.has(u._key) && (e.push(ae(u)), l.add(u._key));
673
+ };
674
+ if (M.value ? (j.value.forEach((u) => {
675
+ var D, J;
676
+ if (u._label && u._label.toLowerCase().includes(M.value.toLowerCase()) && !l.has(u._key)) {
677
+ if (a(u), u._hasChildren && i(u._key).forEach(a), (D = o.filterOptions) != null && D.strictNode)
678
+ u._parentKeys && u._parentKeys.forEach((z) => {
679
+ if (!l.has(z)) {
680
+ const oe = d(z);
681
+ a(oe);
682
+ }
683
+ });
684
+ else if ((J = u._parentKeys) != null && J.length) {
685
+ const z = ot(u._parentKeys);
686
+ if (!R(z)) {
687
+ if (!l.has(z)) {
688
+ const le = d(z);
689
+ a(le);
690
+ }
691
+ i(z).forEach(a);
692
+ }
693
+ }
694
+ }
695
+ }), e = e.sort(
696
+ (u, $) => j.value.findIndex((D) => D._key === u._key) - j.value.findIndex((D) => D._key === $._key)
697
+ )) : e = ae(j.value), o.sortSelectedItems && !o.tree && !R(n.value)) {
698
+ let u = ae(e);
699
+ const $ = u.filter((S) => q(S._key)), D = Symbol("root"), J = Symbol("rootGroup"), z = {}, oe = (S, w, x = 1) => {
700
+ const W = u.splice(S, x);
701
+ u.splice(w, 0, ...W);
702
+ }, le = (S) => S ? u.findIndex((w) => w._key === S) : -1, Se = (S) => {
703
+ const w = z[S], x = le(w == null ? void 0 : w.key);
704
+ return w != null && w.length ? x + w.length + 1 : x + 1;
705
+ };
706
+ $.forEach((S) => {
707
+ var w;
708
+ if ((w = S._parentKeys) != null && w.length) {
709
+ const x = ot(S._parentKeys);
710
+ let W = le(x);
711
+ const qe = Math.max(
712
+ Se(D),
713
+ Se(J)
714
+ );
715
+ if (W > qe) {
716
+ const xe = i(x).length;
717
+ oe(W, qe, xe + 1);
718
+ }
719
+ if (z[J] = {
720
+ key: x,
721
+ length: i(x).length
722
+ }, W = le(x), x && W > -1) {
723
+ const xe = le(S._key);
724
+ if (z[x] === void 0)
725
+ oe(xe, W + 1);
726
+ else {
727
+ const zt = Se(x);
728
+ oe(xe, zt);
729
+ }
730
+ z[x] = {
731
+ length: void 0,
732
+ key: S._key
733
+ };
734
+ }
735
+ } else {
736
+ const x = le(S._key), W = Se(D);
737
+ x > W && oe(x, W), z[D] = {
738
+ key: S._key,
739
+ length: S._hasChildren ? i(S._key).length : void 0
740
+ };
741
+ }
742
+ u = ae(u);
743
+ }), e = u;
744
+ }
745
+ if (o.tree)
746
+ ((p = o.filterOptions) == null ? void 0 : p.expandParent) === "collapse" ? b([]) : ((T = o.filterOptions) == null ? void 0 : T.expandParent) === "expand" && b(e.filter((u) => u._hasChildren).map((u) => u._key));
747
+ else {
748
+ let u = ae(e);
749
+ for (let $ = 0; $ < u.length - 1; $++) {
750
+ const D = u[$], J = u[$ + 1];
751
+ !J._divider && (J._hasChildren || (Ce = D._parentKeys) != null && Ce.length && !((ke = J._parentKeys) != null && ke.length)) && (u.splice($ + 1, 0, { _key: et(lt), _divider: !0 }), $++);
752
+ }
753
+ e = u;
754
+ }
755
+ return e;
756
+ }), { getDisabled: ie, getStatus: ve, getSize: I } = Ut(), ue = m(() => {
757
+ switch (I.value) {
758
+ case "sm":
759
+ return "xsm";
760
+ case "lg":
761
+ return "md";
762
+ case "md":
763
+ default:
764
+ return "sm";
765
+ }
766
+ }), Ne = m(() => {
767
+ switch (I.value) {
768
+ case "sm":
769
+ return "2xsm";
770
+ case "lg":
771
+ return "sm";
772
+ case "md":
773
+ default:
774
+ return "xsm";
775
+ }
776
+ }), pe = ce(), ne = {
777
+ sm: 4,
778
+ md: 6,
779
+ lg: 8
780
+ }, he = {
781
+ sm: 14,
782
+ md: 16
783
+ }, ye = {
784
+ sm: 32,
785
+ md: 50,
786
+ lg: 54
787
+ }, _e = m(() => ({
788
+ get count() {
789
+ return k.value.length;
790
+ },
791
+ getScrollElement: () => {
792
+ var e;
793
+ return (e = pe.value) == null ? void 0 : e.container.viewportElement;
794
+ },
795
+ estimateSize: (e) => {
796
+ const l = k.value[e];
797
+ if (!o.tree && l) {
798
+ if (l._divider)
799
+ return 1;
800
+ if (l._label && l._hasChildren)
801
+ return 8 + (he[I.value] ?? he.md);
802
+ if (l._description)
803
+ return ye[I.value] ?? ye.md;
804
+ }
805
+ return tt[I.value] ?? tt.md;
806
+ },
807
+ overscan: 5,
808
+ get gap() {
809
+ return ne[I.value] ?? 0;
810
+ }
811
+ }));
812
+ let V, N;
813
+ if (o.virtual) {
814
+ const { virtualizer: e, ...l } = jt(
815
+ _e
816
+ );
817
+ V = e, N = l;
818
+ }
819
+ const Ie = m(
820
+ () => {
821
+ var e;
822
+ return o.virtual ? (((e = V == null ? void 0 : V.value) == null ? void 0 : e.getVirtualItems()) ?? []).map((l) => k.value[l.index]) : k.value;
823
+ }
824
+ ), be = m(() => (N == null ? void 0 : N.containerStyles.value) ?? {}), { inputBindings: gt, rootBindings: mt } = Ht({
825
+ getDisabled: () => ie.value
826
+ }), re = ce(), Te = () => {
827
+ var e;
828
+ if (y.value && re.value && document.activeElement !== ((e = re.value) == null ? void 0 : e.input)) {
829
+ re.value.input.style.pointerEvents = "auto";
830
+ const l = setTimeout(() => {
831
+ var a, p;
832
+ (p = (a = re.value) == null ? void 0 : a.focus) == null || p.call(a), clearTimeout(l);
833
+ }, 100);
834
+ re.value.input.style.pointerEvents = "";
835
+ }
836
+ }, We = m(
837
+ () => !o.noValueOnPlaceholder && (Y(n.value) ? n.value.length === 1 && !R(n.value[0]) : !R(n.value))
838
+ ), ft = m(() => {
839
+ if (We.value) {
840
+ if (o.multiple && Y(n.value))
841
+ return _(Ze(n.value));
842
+ if (!o.multiple && !Y(n.value))
843
+ return _(n.value);
844
+ }
845
+ }), { CollectionSlot: vt, CollectionItem: Ue, itemMap: ht, getItems: yt } = Gt({
846
+ isProvider: !0,
847
+ key: P
848
+ }), He = () => n.value ? Array.isArray(n.value) ? n.value : [n.value] : [], Ve = ce(), ze = (e) => {
849
+ Ve.value = e;
850
+ }, Ge = (e) => ({
851
+ "data-disabled": e._disabled ? "" : void 0,
852
+ "data-highlighted": Ve.value === e._key ? "" : void 0
853
+ }), we = ce();
854
+ yo({
855
+ props: o,
856
+ emit: r,
857
+ searchModel: M,
858
+ openModel: y,
859
+ model: n,
860
+ slots: s,
861
+ valuePlaceholder: We,
862
+ placeholder: ft,
863
+ getOptionByValue: d,
864
+ isOptionSelected: q,
865
+ getLabelByValue: _,
866
+ getSingleByValue: v,
867
+ inputRef: re,
868
+ focusOnInput: Te,
869
+ getDisabled: ie,
870
+ getStatus: ve,
871
+ getSize: I,
872
+ getTagSize: ue,
873
+ getIconSize: Ne,
874
+ comboboxInputBinding: gt,
875
+ comboboxTriggerBinding: mt,
876
+ selectOption: (e, l) => {
877
+ var a, p;
878
+ if (l && ((a = we.value) != null && a.onSelect) && o.tree && ((p = we.value) == null || p.onSelect(e, !q(e == null ? void 0 : e._key))), !(o.tree || !e || !e._key || e._disabled))
879
+ if (o.multiple)
880
+ if (e._clear)
881
+ n.value = [], r("select", void 0, !1);
882
+ else if (e._single)
883
+ n.value = [e._key], r("select", e._key, !0, e);
884
+ else {
885
+ let T = Y(n.value) ? n.value : [];
886
+ const Ce = T.includes(e._key);
887
+ T.length === 1 && v(T[0]) && e._key !== T[0] && (T = []), Ce ? (n.value = T.filter((ke) => ke !== e._key), r("select", e._key, !0, e)) : (n.value = [...T, e._key], r("select", e._key, !1, e));
888
+ }
889
+ else e._clear ? (n.value = void 0, r("select", void 0, !1)) : (n.value = e._key, r("select", e._key, !0, e));
890
+ },
891
+ itemMap: ht,
892
+ getItems: yt,
893
+ highlightedOptionKey: Ve
894
+ }), Lt(
895
+ () => [o.clearOnChangeMultiple, o.multiple],
896
+ () => {
897
+ o.clearOnChangeMultiple && (n.value = void 0);
898
+ }
899
+ );
900
+ const _t = m(() => ({
901
+ defaultExpandAll: !0,
902
+ showLine: !0,
903
+ selectionBehavior: "replace",
904
+ ...o.treeProps ?? {},
905
+ size: I.value,
906
+ flattenData: !0,
907
+ outerVirtualScroll: !0,
908
+ selectable: !0,
909
+ focusable: !1,
910
+ multiple: o.multiple,
911
+ checkable: o.multiple && o.checkbox,
912
+ virtual: V,
913
+ syncCheckboxAndSelect: o.multiple,
914
+ data: k.value,
915
+ modelValue: He(),
916
+ checkedKeys: He(),
917
+ class: h(P, "tree")
918
+ })), bt = m(() => {
919
+ const e = o.scrollContainerProps ?? {};
920
+ return {
921
+ ...e,
922
+ areaCls: [
923
+ h(P, "scroll_area"),
924
+ e == null ? void 0 : e.class,
925
+ e == null ? void 0 : e.areaCls
926
+ ],
927
+ wrapProps: {
928
+ ...(e == null ? void 0 : e.wrapProps) ?? {},
929
+ style: (N == null ? void 0 : N.scrollWrapperStyles.value) ?? {}
930
+ }
931
+ };
932
+ }), je = h(P, "popup"), Ct = st(je, {
933
+ variants: {
934
+ size: X(ct, je)
935
+ }
936
+ }), Me = (e) => {
937
+ if (Ft(e))
938
+ return `${e}px`;
939
+ if (typeof e == "string")
940
+ return e;
941
+ }, kt = m(() => Me(o.popupWidth)), St = m(() => Me(o.popupHeight)), xt = m(() => Me(o.minWidth)), Ot = () => {
942
+ var a, p;
943
+ const e = (p = s.header) == null ? void 0 : p.call(s, {
944
+ isEmpty: !((a = k.value) != null && a.length),
945
+ search: M.value
946
+ }), l = !A(e);
947
+ if (l || o.headerSearch)
948
+ return f(
949
+ "div",
950
+ { class: h(P, "header") },
951
+ l ? e : f(dt, o.headerSearchInputProps || {})
952
+ );
953
+ }, Pt = () => {
954
+ var a, p;
955
+ const e = (p = s.footer) == null ? void 0 : p.call(s, {
956
+ isEmpty: !((a = k.value) != null && a.length),
957
+ search: M.value
958
+ });
959
+ if (!A(e))
960
+ return f("div", { class: h(P, "footer") }, e);
961
+ }, Bt = () => {
962
+ var a;
963
+ const e = {
964
+ type: I.value === "sm" ? "simple" : "advance",
965
+ ...Be(o.emptyProps ?? {}, ["class"]),
966
+ class: U(h(P, "empty"), o.emptyCls)
967
+ }, l = (a = s.empty) == null ? void 0 : a.call(s, e);
968
+ return A(l) ? f(so, e, {
969
+ title: s.emptyTitle,
970
+ description: s.emptyDescription,
971
+ actions: s.emptyActions,
972
+ image: s.emptyImage
973
+ }) : l;
974
+ }, It = () => {
975
+ var l;
976
+ const e = (l = s.loading) == null ? void 0 : l.call(s, {});
977
+ return A(e) ? new Array(k.value.length ? 2 : o.loadingRowCount).fill(1).map(
978
+ () => f(go, {
979
+ size: I.value,
980
+ class: U(h(P, "skeleton"), o.skeletonCls),
981
+ ...Be(o.skeletonProps ?? {}, ["class"])
982
+ })
983
+ ) : e;
984
+ }, Tt = (e, l, a) => {
985
+ const p = e._clear;
986
+ if (o.multiple) {
987
+ const T = e._single;
988
+ p ? n.value = [] : T ? n.value = [e._key] : n.value = a;
989
+ } else
990
+ p || !l ? n.value = void 0 : n.value = e._key;
991
+ r(
992
+ "select",
993
+ e._key,
994
+ l,
995
+ e
996
+ );
997
+ }, Vt = (e) => {
998
+ e.key === "ArrowDown" && !y.value ? y.value = !0 : e.key === "Tab" && y.value && (y.value = !1);
999
+ };
1000
+ return o.disableOutsidePointerEvents && Wt(y), (e, l) => (O(), E(c(Qt), se({
1001
+ open: c(y),
1002
+ "onUpdate:open": l[2] || (l[2] = (a) => Je(y) ? y.value = a : null)
1003
+ }, C.value, {
1004
+ containerProps: {
1005
+ ...e.containerProps ?? {},
1006
+ onClick: Te
1007
+ },
1008
+ noPadding: !0,
1009
+ size: c(I),
1010
+ containerStyle: {
1011
+ pointerEvents: "auto",
1012
+ display: c(y) ? void 0 : "none",
1013
+ zIndex: e.zIndex,
1014
+ "--ptc-combobox-popup-width": e.samePopupWidth ? void 0 : kt.value,
1015
+ "--ptc-combobox-popup-height": St.value,
1016
+ "--ptc-combobox-trigger-min-w": xt.value
1017
+ },
1018
+ containerCls: c(U)(c(Ct)(o), e.popupCls),
1019
+ onKeydown: Vt
1020
+ }), rt({
1021
+ content: K(() => [
1022
+ Z(Ot),
1023
+ Z(c(ro), se({
1024
+ ref_key: "scrollContainerRef",
1025
+ ref: pe
1026
+ }, bt.value), {
1027
+ default: K(() => [
1028
+ k.value.length || e.loading ? (O(), E(c(vt), { key: 0 }, {
1029
+ default: K(() => [
1030
+ Qe("div", {
1031
+ class: Pe(c(U)(c(h)(c(P), "options"), e.optionsCls)),
1032
+ style: Dt(e.virtual ? be.value : {}),
1033
+ onPointerleave: l[1] || (l[1] = (a) => ze(void 0))
1034
+ }, [
1035
+ e.tree ? (O(), E(c(uo), se({
1036
+ key: 0,
1037
+ ref_key: "treeRef",
1038
+ ref: we
1039
+ }, _t.value, {
1040
+ expandedKeys: c(g),
1041
+ "onUpdate:expandedKeys": l[0] || (l[0] = (a) => Je(g) ? g.value = a : null),
1042
+ onExpand: Te,
1043
+ onSelect: Tt
1044
+ }), {
1045
+ default: K(({ items: a }) => [
1046
+ (O(!0), de(Ae, null, $e(a, (p) => (O(), E(c(Ue), {
1047
+ key: p._key,
1048
+ value: p._key
1049
+ }, {
1050
+ default: K(() => [
1051
+ Z(c(po), se({ node: p }, { ref_for: !0 }, Ge(p), {
1052
+ onPointermove: (T) => ze(p._key)
1053
+ }), {
1054
+ default: K(() => [
1055
+ Z(at, { option: p }, null, 8, ["option"])
1056
+ ]),
1057
+ _: 2
1058
+ }, 1040, ["node", "onPointermove"])
1059
+ ]),
1060
+ _: 2
1061
+ }, 1032, ["value"]))), 128))
1062
+ ]),
1063
+ _: 1
1064
+ }, 16, ["expandedKeys"])) : (O(!0), de(Ae, { key: 1 }, $e(Ie.value, (a) => (O(), de(Ae, {
1065
+ key: a._key
1066
+ }, [
1067
+ a._divider ? (O(), E(mo, { key: 0 })) : a._label && a._hasChildren ? (O(), E(Co, {
1068
+ key: 1,
1069
+ label: a._label
1070
+ }, null, 8, ["label"])) : a._hasChildren ? Re("", !0) : (O(), E(c(Ue), {
1071
+ key: 2,
1072
+ value: a._key
1073
+ }, {
1074
+ default: K(() => [
1075
+ Z(at, se({ option: a }, { ref_for: !0 }, Ge(a), {
1076
+ onPointermove: (p) => ze(a._key)
1077
+ }), null, 16, ["option", "onPointermove"])
1078
+ ]),
1079
+ _: 2
1080
+ }, 1032, ["value"]))
1081
+ ], 64))), 128)),
1082
+ e.loading ? (O(), E(It, { key: 2 })) : Re("", !0)
1083
+ ], 38)
1084
+ ]),
1085
+ _: 1
1086
+ })) : (O(), E(Bt, { key: 1 })),
1087
+ e.lazyLoading ? (O(), de("div", {
1088
+ key: 2,
1089
+ class: Pe(c(h)(c(P), "lazy_loading"))
1090
+ }, [
1091
+ Qe("div", {
1092
+ class: Pe(c(h)(c(P), "lazy_loading_trigger")),
1093
+ ref_key: "target",
1094
+ ref: F
1095
+ }, null, 2)
1096
+ ], 2)) : Re("", !0)
1097
+ ]),
1098
+ _: 1
1099
+ }, 16),
1100
+ Z(Pt)
1101
+ ]),
1102
+ _: 2
1103
+ }, [
1104
+ e.noTrigger ? void 0 : {
1105
+ name: "default",
1106
+ fn: K(() => [
1107
+ Z(bo)
1108
+ ]),
1109
+ key: "0"
1110
+ }
1111
+ ]), 1040, ["open", "containerProps", "size", "containerStyle", "containerCls"]));
1112
+ }
1113
+ });
1114
+ export {
1115
+ ct as C,
1116
+ el as _,
1117
+ _o as a,
1118
+ Fe as i,
1119
+ yo as p
1120
+ };