@pantograph/vue 0.26.0 → 0.27.0

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 (395) 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-CCV0cEjJ.js +1 -0
  5. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DcyIRPRG.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-4NcndwYt.js +1 -0
  9. package/dist/Alert.vue_vue_type_script_setup_true_lang-B3d8P77F.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-B_MhEGg3.js} +57 -52
  13. package/dist/Avatar.vue_vue_type_script_setup_true_lang-CCjfTTXn.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-DvZc9U-W.js → Badge.vue_vue_type_script_setup_true_lang-B9bri5or.js} +20 -15
  19. package/dist/Badge.vue_vue_type_script_setup_true_lang-CNAZiqff.js +1 -0
  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_style_index_0_lang-Cekbj5do.js → BaseBadge.vue_vue_type_script_setup_true_lang-BEAMOqfY.js} +27 -21
  24. package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-DPNTPAXQ.js +1 -0
  25. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-Bwa2jAT_.js → BaseButton.vue_vue_type_script_setup_true_lang-BOEHDNrA.js} +53 -47
  26. package/dist/BaseButton.vue_vue_type_script_setup_true_lang-CfvlGfAR.js +1 -0
  27. package/dist/BaseInput.vue_vue_type_script_setup_true_lang-Co4deofh.js +141 -0
  28. package/dist/BaseInput.vue_vue_type_script_setup_true_lang-DkzD7d2O.js +1 -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-H1KQzfTW.js +1 -0
  33. package/dist/Button.vue_vue_type_script_setup_true_lang-b801s6x6.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-Bq7H8Hmk.js +1 -0
  40. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-CgvdLwu5.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 +1 -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-Bact--QN.js +1 -0
  48. package/dist/{Chip.vue_vue_type_style_index_0_lang-CRI3QwLZ.js → Chip.vue_vue_type_script_setup_true_lang-BfaS9elh.js} +61 -55
  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_script_setup_true_lang-7MtJ5jis.js +4 -0
  55. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CFWIxkoW.js → ColorPicker.vue_vue_type_script_setup_true_lang-CKpEjVT4.js} +765 -763
  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-DTpfqDKv.js +1 -0
  60. package/dist/ColorSwatch-DWwR0ENY.js +4 -0
  61. package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BOMHgBU8.js +1 -0
  62. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DsriVs5P.js → ColorSwatch.vue_vue_type_script_setup_true_lang-ChPF6zW_.js} +38 -29
  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-BY1ynbN8.js +176 -0
  67. package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-CIUtgzTs.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-D8K8ECOf.js +94 -0
  72. package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DZlk0Qqv.js +1 -0
  73. package/dist/Combobox/Combobox.d.ts +911 -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 +72 -49
  82. package/dist/Combobox.vue_vue_type_script_setup_true_lang-CWb0Rxdo.js +1123 -0
  83. package/dist/Combobox.vue_vue_type_script_setup_true_lang-Ds71BFeT.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 +323 -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-CkZYd-iy.js +1 -0
  97. package/dist/{DataTable.vue_vue_type_style_index_0_lang-DFOwpMxF.js → DataTable.vue_vue_type_script_setup_true_lang-koEhCeSV.js} +99 -94
  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-Bs3xi5Tz.js +1 -0
  101. package/dist/Divider.vue_vue_type_script_setup_true_lang-BxSyJj4Y.js +43 -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-DbviIH2J.js +131 -0
  106. package/dist/DropZone.vue_vue_type_script_setup_true_lang-Dr3W1Vf6.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_style_index_0_lang-Bk2nO0VN.js → Empty.vue_vue_type_script_setup_true_lang-Bll3iUYH.js} +41 -35
  110. package/dist/Empty.vue_vue_type_script_setup_true_lang-Cw-L4cfY.js +1 -0
  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-CpeEeXF5.js +67 -0
  115. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-_N0_n9cC.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-5XEIQyAw.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-BEVq_AiC.js} +160 -159
  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-DFogOMOj.js → GraphicalObject.vue_vue_type_script_setup_true_lang-D0_HCJjo.js} +9 -9
  129. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-okC2eyl7.js +1 -0
  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-BmFUF6Kt.js +1 -0
  133. package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DN_eN1aV.js +68 -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-BABPj0Qr.js +100 -0
  139. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-KbXPPPlZ.js +1 -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-CXwAf04H.js +9 -0
  144. package/dist/Icon.vue_vue_type_script_setup_true_lang-X8iOewkh.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-ByYlU8Jk.js +66 -0
  149. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DnxEc7O6.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-B6TIsMzF.js +131 -0
  153. package/dist/Image.vue_vue_type_script_setup_true_lang-C1wUq_TX.js +1 -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-B9koS5pw.js +1 -0
  158. package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-DVDr7sdq.js +105 -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-Bfc2cDZW.js → Indicator.vue_vue_type_script_setup_true_lang-Dqxgfs9Z.js} +6 -6
  162. package/dist/Indicator.vue_vue_type_script_setup_true_lang-L2FYpwoZ.js +1 -0
  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-BvWIuBEn.js +1 -0
  166. package/dist/{Input.vue_vue_type_script_setup_true_lang-BZidgKiU.js → Input.vue_vue_type_script_setup_true_lang-Cvw1sc65.js} +32 -27
  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-y1SYHqAR.js → InputNumber.vue_vue_type_script_setup_true_lang-BppO9sap.js} +20 -15
  170. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-ClnvvnEa.js +1 -0
  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-B4Zx_Cz7.js +1 -0
  174. package/dist/Kbd.vue_vue_type_script_setup_true_lang-DDQm9-8J.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-DJosUIxn.js +1 -0
  180. package/dist/{Link.vue_vue_type_style_index_0_lang-CXRcuM5F.js → Link.vue_vue_type_script_setup_true_lang-wnKyVT8F.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-3xnbhfN0.js +616 -0
  189. package/dist/MenuItem.vue_vue_type_script_setup_true_lang-Dz7WhsTd.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-C5AKq1DW.js +1 -0
  194. package/dist/Pagination.vue_vue_type_script_setup_true_lang-_FCEaPIU.js +247 -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-1pdG_U1y.js +281 -0
  203. package/dist/Popover.vue_vue_type_script_setup_true_lang-DZu6h5sn.js +1 -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_style_index_0_lang-DHMo6akY.js → Progress.vue_vue_type_script_setup_true_lang-BvwWC_7K.js} +106 -100
  207. package/dist/Progress.vue_vue_type_script_setup_true_lang-Cwyk5uVB.js +1 -0
  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-BADpfqTO.js +110 -0
  213. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BLfj2wLT.js +1 -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-BmQrQlax.js} +39 -36
  218. package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-WN0vUSFg.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-CCtmPmga.js +1 -0
  223. package/dist/Segmented.vue_vue_type_script_setup_true_lang-h3fMBqbf.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-CjWKTWNp.js +1 -0
  229. package/dist/Select.vue_vue_type_script_setup_true_lang-DCf6t4T7.js +786 -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-CZV3jJ5z.js +1 -0
  233. package/dist/Shortcut.vue_vue_type_script_setup_true_lang-LxDK1tVp.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-BscqKi2O.js +65 -0
  237. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DBb6fA3l.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_style_index_0_lang-Bflf_h7p.js → Spinner.vue_vue_type_script_setup_true_lang-C13qk_bV.js} +33 -27
  241. package/dist/Spinner.vue_vue_type_script_setup_true_lang-SdSGAS1h.js +1 -0
  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-BX5MeukB.js +1 -0
  248. package/dist/{Switch.vue_vue_type_style_index_0_lang-DprBpzXg.js → Switch.vue_vue_type_script_setup_true_lang-BY7LV3wY.js} +41 -37
  249. package/dist/THead.vue_vue_type_script_setup_true_lang-BZMNoSJC.js +1 -0
  250. package/dist/THead.vue_vue_type_script_setup_true_lang-BbIs0XD7.js +214 -0
  251. package/dist/TabContent.vue_vue_type_script_setup_true_lang-C2BdEFBQ.js +1 -0
  252. package/dist/TabContent.vue_vue_type_script_setup_true_lang-CPqtXohJ.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_script_setup_true_lang-DXSk1XyT.js +1 -0
  266. package/dist/{Textarea.vue_vue_type_style_index_0_lang-CYHt1v8A.js → Textarea.vue_vue_type_script_setup_true_lang-I3h9Qx60.js} +28 -25
  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-BExNSikU.js +1 -0
  273. package/dist/Tree.vue_vue_type_script_setup_true_lang-Drf23Cl_.js +726 -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-BeuZtxvi.js +1 -0
  283. package/dist/Upload.vue_vue_type_script_setup_true_lang-D1qk3zuI.js +1027 -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-BKZMdy8h.js +1 -0
  292. package/dist/isEmpty-Cqj4i6ou.js +40 -0
  293. package/dist/{options-Bh1s18jm.js → options-J8HfRMSU.js} +2 -2
  294. package/dist/style/index.css +1 -1
  295. package/dist/useInputDataStates-B2KtpFr0.js +1 -0
  296. package/dist/useInputDataStates-Db6zJZ1T.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 +8 -7
  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-z_hK7usq.js +0 -1
  326. package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CcSrQKRq.js +0 -4
  327. package/dist/ColorSwatch-B8Atg6sw.js +0 -4
  328. package/dist/ColorSwatch-Bjf8zaRk.js +0 -1
  329. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CXCshLKX.js +0 -1
  330. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CczGrgYd.js +0 -1
  331. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-amI55LMo.js +0 -156
  332. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BIaTcjVN.js +0 -90
  333. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Bny3csr4.js +0 -1
  334. package/dist/Combobox/ComboboxWrapper.d.ts +0 -4
  335. package/dist/Combobox.vue_vue_type_style_index_0_lang-C5lxH1Cg.js +0 -1
  336. package/dist/Combobox.vue_vue_type_style_index_0_lang-DLgal2Q-.js +0 -949
  337. package/dist/DataTable.vue_vue_type_style_index_0_lang-CRv9-elM.js +0 -1
  338. package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +0 -1
  339. package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +0 -36
  340. package/dist/DropZone.vue_vue_type_style_index_0_lang-B0T34FXZ.js +0 -124
  341. package/dist/DropZone.vue_vue_type_style_index_0_lang-CjskWVFc.js +0 -1
  342. package/dist/Empty.vue_vue_type_style_index_0_lang-2ZPIGpdZ.js +0 -1
  343. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CqI5GHuN.js +0 -58
  344. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DObfA5pf.js +0 -1
  345. package/dist/GOPicker.vue_vue_type_style_index_0_lang-BieXIwrY.js +0 -1
  346. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BqtvZ4Zu.js +0 -1
  347. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CFIKZKMj.js +0 -64
  348. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CnsHb2Lb.js +0 -1
  349. package/dist/HoverCard.vue_vue_type_style_index_0_lang-DGhlQaO0.js +0 -124
  350. package/dist/HoverCard.vue_vue_type_style_index_0_lang-tPtCNI95.js +0 -1
  351. package/dist/Icon.vue_vue_type_style_index_0_lang-26YK1SwL.js +0 -2909
  352. package/dist/Icon.vue_vue_type_style_index_0_lang-CRquOLJG.js +0 -9
  353. package/dist/IconButton.vue_vue_type_script_setup_true_lang-Dvu9WpEN.js +0 -58
  354. package/dist/IconButton.vue_vue_type_script_setup_true_lang-ZUsEmKon.js +0 -1
  355. package/dist/Image.vue_vue_type_style_index_0_lang-BabuXXFH.js +0 -126
  356. package/dist/Image.vue_vue_type_style_index_0_lang-Dcqwbt4T.js +0 -1
  357. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CZ95qLkr.js +0 -99
  358. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-LYssIii4.js +0 -1
  359. package/dist/Indicator.vue_vue_type_script_setup_true_lang-B-oDEbiu.js +0 -1
  360. package/dist/Input.vue_vue_type_script_setup_true_lang-BVbKTWVG.js +0 -1
  361. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DEgVgZ_0.js +0 -1
  362. package/dist/Kbd.vue_vue_type_style_index_0_lang-1ITCVp0q.js +0 -47
  363. package/dist/Kbd.vue_vue_type_style_index_0_lang-Cjc5Rk3l.js +0 -1
  364. package/dist/Link.vue_vue_type_style_index_0_lang-gFBGdIkN.js +0 -1
  365. package/dist/MenuItem.vue_vue_type_style_index_0_lang-BC0hNIHn.js +0 -1
  366. package/dist/MenuItem.vue_vue_type_style_index_0_lang-CK2KrtJa.js +0 -587
  367. package/dist/Pagination.vue_vue_type_style_index_0_lang-DOwVgreM.js +0 -1
  368. package/dist/Pagination.vue_vue_type_style_index_0_lang-Dgx-vviE.js +0 -235
  369. package/dist/Popover.vue_vue_type_style_index_0_lang-22ewjJ6F.js +0 -1
  370. package/dist/Popover.vue_vue_type_style_index_0_lang-BrLhsdZu.js +0 -247
  371. package/dist/Progress.vue_vue_type_style_index_0_lang-8m4aQ4CZ.js +0 -1
  372. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-B9rRuGDt.js +0 -1
  373. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Zo3ozdqk.js +0 -101
  374. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DRYmVHMT.js +0 -1
  375. package/dist/Segmented.vue_vue_type_style_index_0_lang-BPt9_TEH.js +0 -165
  376. package/dist/Segmented.vue_vue_type_style_index_0_lang-BSt3GUbV.js +0 -1
  377. package/dist/Select.vue_vue_type_style_index_0_lang-D7VjqOBv.js +0 -1
  378. package/dist/Select.vue_vue_type_style_index_0_lang-XLlU2Du1.js +0 -769
  379. package/dist/Shortcut.vue_vue_type_style_index_0_lang-CllMPygM.js +0 -1
  380. package/dist/Shortcut.vue_vue_type_style_index_0_lang-D9NQzaRd.js +0 -32
  381. package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +0 -58
  382. package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +0 -1
  383. package/dist/Spinner.vue_vue_type_style_index_0_lang-D0mZzwBr.js +0 -1
  384. package/dist/Switch.vue_vue_type_style_index_0_lang-CLIDvWMp.js +0 -1
  385. package/dist/THead.vue_vue_type_style_index_0_lang-Bk62FCuE.js +0 -1
  386. package/dist/THead.vue_vue_type_style_index_0_lang-CDQ98k-9.js +0 -200
  387. package/dist/Textarea.vue_vue_type_style_index_0_lang-CY82h4f9.js +0 -1
  388. package/dist/Tree.vue_vue_type_style_index_0_lang-BrdekqZ8.js +0 -1
  389. package/dist/Tree.vue_vue_type_style_index_0_lang-i9HBxbnw.js +0 -737
  390. package/dist/Upload.vue_vue_type_style_index_0_lang-Bej4zFFq.js +0 -1020
  391. package/dist/Upload.vue_vue_type_style_index_0_lang-CTtVPcxp.js +0 -1
  392. package/dist/style-BEhqkSEE.js +0 -20
  393. package/dist/style-CYb6EX2Q.js +0 -1
  394. package/dist/useInputDataStates-D-XvZURF.js +0 -52
  395. package/dist/useInputDataStates-DvfSqKSa.js +0 -1
@@ -0,0 +1,786 @@
1
+ import { defineComponent as te, createElementBlock as ze, openBlock as Be, normalizeClass as ke, unref as le, renderSlot as _e, computed as y, h as a, ref as ve, watch as we, useSlots as De, useAttrs as Fe, createBlock as Ae, normalizeProps as Ce, guardReactiveProps as ye, withCtx as Se, createVNode as We, createSlots as $e, renderList as Ee } from "vue";
2
+ import { createContext as Pe, SelectItem as Ge, SelectItemIndicator as Ne, SelectTrigger as Re, Primitive as je, injectSelectRootContext as Ke, SelectPortal as Me, SelectContent as qe, useEmitAsProps as Ue, SelectRoot as He } from "reka-ui";
3
+ import { isString as ee, cloneDeep as he, omit as be, isFunction as Ve, omitBy as Je, pick as Oe, isUndefined as Qe } from "es-toolkit";
4
+ import { a as Te, g as ge } from "./options-J8HfRMSU.js";
5
+ import { y as Q, g as p, e as ce, v as Z, j as Xe, k as Ye, h as Ze, m as Le, w as et, u as tt } from "./Icon.vue_vue_type_script_setup_true_lang-X8iOewkh.js";
6
+ import "@vueuse/core";
7
+ import "@tanstack/vue-virtual";
8
+ import { getBemBlock as ot, getBemElement as S, generateVariantClassList as N, normCls as B } from "@pantograph/utils";
9
+ import { cva as de } from "class-variance-authority";
10
+ import { _ as nt } from "./Empty.vue_vue_type_script_setup_true_lang-Bll3iUYH.js";
11
+ import { _ as rt } from "./Skeleton.vue_vue_type_script_setup_true_lang-BscqKi2O.js";
12
+ import { _ as xe } from "./Divider.vue_vue_type_script_setup_true_lang-BxSyJj4Y.js";
13
+ import "@pantograph/tokens";
14
+ import { i as U } from "./isEmpty-Cqj4i6ou.js";
15
+ import { u as it } from "./useInputDataStates-Db6zJZ1T.js";
16
+ import { u as at } from "./useLazyLoading-Zo-PEp2E.js";
17
+ import { g as lt, b as pt } from "./Popover.vue_vue_type_script_setup_true_lang-1pdG_U1y.js";
18
+ import { u as st } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-DiuPi_DT.js";
19
+ import { _ as ut } from "./ScrollContainer.vue_vue_type_script_setup_true_lang-BmQrQlax.js";
20
+ import { b as ct, _ as gt } from "./Chip.vue_vue_type_script_setup_true_lang-BfaS9elh.js";
21
+ import dt from "@pantograph/style/select.css?raw";
22
+ const me = ["sm", "md", "lg"], mt = ["error", "warning", "success"], [Ie, ft] = Pe("Select"), [vt, Ct] = Pe("_Select"), F = ot("select"), yt = /* @__PURE__ */ te({
23
+ ...Te("SelectLabel"),
24
+ __name: "SelectLabel",
25
+ setup(m) {
26
+ return (t, o) => (Be(), ze("div", {
27
+ class: ke(le(S)(le(F), "label"))
28
+ }, [
29
+ _e(t.$slots, "default")
30
+ ], 2));
31
+ }
32
+ }), ue = te({
33
+ name: ge("SelectOption"),
34
+ props: {
35
+ option: {
36
+ type: [Object, String],
37
+ required: !0
38
+ }
39
+ },
40
+ slots: Object,
41
+ setup(m, { slots: t }) {
42
+ const o = Ie(), e = y(() => {
43
+ switch (o.getSize.value) {
44
+ case "sm":
45
+ return "2xsm";
46
+ case "lg":
47
+ return "sm";
48
+ case "md":
49
+ default:
50
+ return "xsm";
51
+ }
52
+ }), A = y(() => o.getOptionValue(m.option)), u = y(() => o.getOptionLabel(m.option)), R = y(() => o.getOptionIcon(m.option)), q = y(() => o.getOptionDisabled(m.option)), I = S(F, "option"), H = de(I, {
53
+ variants: {
54
+ size: N(me, I)
55
+ }
56
+ }), W = (b) => {
57
+ var L, w;
58
+ const f = b.detail.value;
59
+ o.emit(
60
+ "select",
61
+ f,
62
+ Q(o.modelValue.value) ? !((w = (L = o.modelValue.value) == null ? void 0 : L.includes) != null && w.call(L, f)) : !0
63
+ );
64
+ };
65
+ if (!m.option) throw new Error("option is required");
66
+ const $ = () => {
67
+ var f;
68
+ const b = (f = t.indicator) == null ? void 0 : f.call(t, { option: m.option });
69
+ return p(b) ? a(
70
+ Ne,
71
+ { asChild: !0 },
72
+ () => a(ce, { icon: o.props.indicatorIcon, size: e.value })
73
+ ) : b;
74
+ }, z = () => {
75
+ var L, w, E;
76
+ const b = (L = t.default) == null ? void 0 : L.call(t, { option: m.option }), f = [];
77
+ if (!p(b)) f.push(b);
78
+ else {
79
+ const J = (w = t.leading) == null ? void 0 : w.call(t, { option: m.option }), l = !p(J);
80
+ if (R.value || l) {
81
+ let D;
82
+ l ? D = J : D = a(ce, { icon: R.value, size: e.value }), f.push(
83
+ a(
84
+ "div",
85
+ { class: B(S(I, "leading"), o.props.itemLeadingCls) },
86
+ D
87
+ )
88
+ );
89
+ }
90
+ let O;
91
+ const _ = (E = t.text) == null ? void 0 : E.call(t, { option: m.option });
92
+ p(_) ? O = u.value : O = _, f.push(
93
+ a(
94
+ "div",
95
+ {
96
+ class: B(S(I, "text"), o.props.optionTextCls)
97
+ },
98
+ O
99
+ )
100
+ );
101
+ }
102
+ return a(
103
+ "div",
104
+ { class: B(S(I, "content"), o.props.optionContentCls) },
105
+ f
106
+ );
107
+ };
108
+ return () => a(
109
+ Ge,
110
+ {
111
+ value: A.value,
112
+ textValue: u.value,
113
+ disabled: q.value,
114
+ class: B(
115
+ H({
116
+ size: o.getSize.value
117
+ }),
118
+ o.props.optionCls
119
+ ),
120
+ onSelect: W
121
+ },
122
+ () => [z(), $()]
123
+ );
124
+ }
125
+ }), St = te({
126
+ name: ge("SelectTrigger"),
127
+ props: {
128
+ getOptionSlot: {
129
+ type: Function,
130
+ required: !0
131
+ }
132
+ },
133
+ setup(m, { slots: t, attrs: o }) {
134
+ const e = Ie(), A = ({ value: l }, O) => {
135
+ if (O.stopPropagation(), l && Q(e.modelValue.value) && !e.getDisabled.value) {
136
+ const _ = e.modelValue.value.filter((D) => D !== l);
137
+ e.modelValue.value = _, e.emit("update:modelValue", _), e.emit("select", l, !1);
138
+ }
139
+ }, u = S(F, "trigger"), R = de(u, {
140
+ variants: {
141
+ size: N(me, u),
142
+ status: N(mt, u),
143
+ bordered: N("bordered", u),
144
+ multiple: N("multiple", u),
145
+ contentFit: N("content-fit", u),
146
+ wrapped: N("wrapped", u),
147
+ filled: N("filled", u)
148
+ }
149
+ }), q = y(() => {
150
+ switch (e.getSize.value) {
151
+ case "sm":
152
+ return "xsm";
153
+ case "lg":
154
+ return "md";
155
+ case "md":
156
+ default:
157
+ return "sm";
158
+ }
159
+ }), I = y(() => {
160
+ switch (e.getSize.value) {
161
+ case "sm":
162
+ return "2xsm";
163
+ case "md":
164
+ default:
165
+ return "xsm";
166
+ }
167
+ }), H = y(() => {
168
+ if (!e.props.multiple && ee(e.modelValue.value) && !U(e.modelValue.value))
169
+ return e.getOptionByValue(e.modelValue.value);
170
+ }), W = (l = H.value) => {
171
+ if (e.props.selectedItemIconAsTrailingIcon && Z(l) && "icon" in l)
172
+ return l.icon;
173
+ }, $ = y(() => W()), z = y(() => {
174
+ if (!e.props.noTrailing)
175
+ return e.props.trailingIcon;
176
+ }), b = y(
177
+ () => !U(e.modelValue.value) && e.props.multiple && Q(e.modelValue.value)
178
+ ), f = y(() => ({
179
+ modelValue: he(e.modelValue.value),
180
+ open: he(e.open.value)
181
+ })), L = (l) => ({
182
+ ...f.value,
183
+ option: e.getOptionByValue(l)
184
+ }), w = y(() => ({
185
+ disabled: e.getDisabled.value,
186
+ reference: e.props.reference,
187
+ tabindex: e.getDisabled.value ? void 0 : 0,
188
+ as: "div",
189
+ class: B(
190
+ R({
191
+ size: e.getSize.value,
192
+ status: e.getStatus.value === "success" && U(e.modelValue.value) ? void 0 : e.getStatus.value,
193
+ bordered: e.props.bordered,
194
+ multiple: e.props.multiple,
195
+ contentFit: e.props.contentFit,
196
+ wrapped: e.props.wrapped,
197
+ filled: !U(e.modelValue.value)
198
+ }),
199
+ e.props.triggerCls
200
+ ),
201
+ ...o
202
+ })), E = (l, O = I.value) => a(ce, { icon: l, size: O }), J = () => {
203
+ var _;
204
+ let l;
205
+ const O = (_ = t.triggerTrailing) == null ? void 0 : _.call(t, f.value);
206
+ if (p(O) ? z.value && (l = E(z.value)) : l = O, l)
207
+ return a(
208
+ "div",
209
+ { class: B(S(u, "trailing"), e.props.triggerTrailingCls) },
210
+ l
211
+ );
212
+ };
213
+ return () => {
214
+ var D;
215
+ const l = (D = t.trigger) == null ? void 0 : D.call(t, f.value), _ = (() => {
216
+ if (p(l)) return !1;
217
+ const T = Xe(l) ?? null, j = T.length === 1 ? T[0] : T;
218
+ return j ? Ye(j) && !Ze(j) : !0;
219
+ })();
220
+ return a(
221
+ Re,
222
+ { ...w.value, asChild: _, key: String(_) },
223
+ {
224
+ default: () => {
225
+ var X;
226
+ if (!p(l))
227
+ return l;
228
+ const T = (X = t.triggerLeading) == null ? void 0 : X.call(t, f.value), j = !p(T), oe = () => {
229
+ var G;
230
+ if (!e.props.multiple && !Q(e.modelValue.value)) {
231
+ const M = (G = m.getOptionSlot(
232
+ "leading",
233
+ e.modelValue.value
234
+ )) == null ? void 0 : G();
235
+ if (j || M || $.value || e.props.leadingIcon) {
236
+ let r;
237
+ return p(M) ? $.value ? r = E($.value) : j ? r = T : e.props.leadingIcon && (r = E(e.props.leadingIcon)) : r = M, a(
238
+ "div",
239
+ {
240
+ class: B(
241
+ S(u, "leading"),
242
+ e.props.triggerLeadingCls
243
+ )
244
+ },
245
+ r
246
+ );
247
+ }
248
+ }
249
+ }, pe = () => {
250
+ const G = [];
251
+ if (U(e.modelValue.value)) {
252
+ if (e.props.placeholder && !e.props.multiple) {
253
+ const M = () => {
254
+ var V;
255
+ const r = (V = t.placeholder) == null ? void 0 : V.call(t, f.value);
256
+ return p(r) ? e.props.placeholder : r;
257
+ };
258
+ G.push(M());
259
+ }
260
+ } else {
261
+ const r = (() => {
262
+ var P, v, g;
263
+ const V = (P = t.triggerValue) == null ? void 0 : P.call(t, f.value);
264
+ if (!p(V)) return V;
265
+ if (e.props.multiple && Q(e.modelValue.value))
266
+ return a(
267
+ ct,
268
+ {
269
+ maxCount: e.props.maxCount,
270
+ size: q.value,
271
+ color: "primary",
272
+ closeable: !e.getDisabled.value,
273
+ noPopover: !0,
274
+ noWrap: !e.props.wrapped,
275
+ class: B(S(u, "tag_list"), e.props.tagListCls),
276
+ onClose: A
277
+ },
278
+ () => e.modelValue.value.map((c) => {
279
+ var Y;
280
+ const x = (n) => {
281
+ var C;
282
+ const i = (C = t.tagClose) == null ? void 0 : C.call(t, {
283
+ ...L(c),
284
+ onClose: n
285
+ });
286
+ return p(i) ? null : i;
287
+ }, k = (Y = m.getOptionSlot("default", c)) == null ? void 0 : Y(), se = () => {
288
+ var C, s;
289
+ const n = (C = m.getOptionSlot("text", c)) == null ? void 0 : C(), i = (s = t.tagText) == null ? void 0 : s.call(t, L(c));
290
+ return p(i) ? p(k) ? p(n) ? e.getLabelByValue(c) : n : k : i;
291
+ }, ie = ({ size: n }) => {
292
+ var h, d;
293
+ if (!p(k)) return null;
294
+ const i = (h = m.getOptionSlot("leading", c)) == null ? void 0 : h(), C = (d = t.tagLeading) == null ? void 0 : d.call(t, L(c)), s = W(e.getOptionByValue(c)) ?? e.props.leadingIcon;
295
+ return p(C) ? p(i) ? s ? E(s, n) : p(T) ? null : T : i : C;
296
+ }, ae = () => {
297
+ var i;
298
+ const n = (i = t.tagTrailing) == null ? void 0 : i.call(t, L(c));
299
+ return p(n) ? null : n;
300
+ };
301
+ return a(
302
+ gt,
303
+ {
304
+ value: c,
305
+ class: B(S(u, "tag"), e.props.tagCls),
306
+ closeIconCls: S(u, "tag__close")
307
+ },
308
+ {
309
+ text: se,
310
+ leading: ie,
311
+ trailing: ae,
312
+ close: x
313
+ }
314
+ );
315
+ })
316
+ );
317
+ if (!Q(e.modelValue.value)) {
318
+ const c = (v = m.getOptionSlot("default", e.modelValue.value)) == null ? void 0 : v(), x = (g = m.getOptionSlot("text", e.modelValue.value)) == null ? void 0 : g();
319
+ return p(c) ? p(x) ? ee(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : x : c;
320
+ }
321
+ })();
322
+ r && G.push(r);
323
+ }
324
+ return G;
325
+ }, K = [], ne = oe();
326
+ p(ne) || K.push(ne), K.push(
327
+ a(
328
+ je,
329
+ {
330
+ class: B(
331
+ S(u, "content"),
332
+ e.props.triggerContentCls,
333
+ U(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls
334
+ ),
335
+ as: "div",
336
+ key: String(b.value),
337
+ asChild: b.value
338
+ },
339
+ { default: pe }
340
+ )
341
+ );
342
+ const re = J();
343
+ return p(re) || K.push(re), K;
344
+ }
345
+ }
346
+ );
347
+ };
348
+ }
349
+ }), ht = te({
350
+ name: ge("SelectWrapper"),
351
+ setup(m, { slots: t }) {
352
+ const o = vt(), e = Ke(), A = ve();
353
+ at({ target: A });
354
+ const u = ve(), R = lt({ triggerRef: u, props: o.props }), { getFlipOnDir: q, getDir: I } = st(), H = q("reversePlacementOnDir"), W = I(), $ = pt({
355
+ props: o.props,
356
+ flip: H,
357
+ emitsAsProps: o.emitsAsProps,
358
+ _dir: W,
359
+ controlAutoFocus: !1,
360
+ extraPropNames: ["bodyLock", "position"]
361
+ }), z = ({
362
+ key: r,
363
+ getterKey: V,
364
+ defaultValue: P,
365
+ noReturnOption: v
366
+ }) => (g) => {
367
+ const c = Ve(P) ? P(g) : P;
368
+ if (Z(g)) {
369
+ const x = g[r] ?? c, k = V && o.props[V];
370
+ if (k) {
371
+ if (ee(k))
372
+ return g[k] ?? x;
373
+ if (Ve(k)) return k(g) ?? x;
374
+ }
375
+ return x;
376
+ }
377
+ return ee(g) && !v ? g ?? c : c;
378
+ }, b = z({
379
+ getterKey: "getValue",
380
+ key: "value"
381
+ }), f = z({
382
+ getterKey: "getLabel",
383
+ key: "label",
384
+ defaultValue: b
385
+ }), L = z({
386
+ getterKey: "getIcon",
387
+ key: "icon",
388
+ noReturnOption: !0
389
+ }), w = (r) => {
390
+ var V;
391
+ if ((V = o.props.options) != null && V.length)
392
+ for (const P of o.props.options) {
393
+ if (b(P) === r) return P;
394
+ const v = O(P);
395
+ if (v != null && v.length) {
396
+ for (const g of v)
397
+ if (b(g) === r) return g;
398
+ }
399
+ }
400
+ return r;
401
+ }, E = (r) => {
402
+ const V = w(r);
403
+ return V ? f(V) ?? r : r;
404
+ }, J = z({
405
+ getterKey: "getDisabled",
406
+ key: "disabled",
407
+ defaultValue: !1,
408
+ noReturnOption: !0
409
+ }), l = z({
410
+ getterKey: "getGroupLabel",
411
+ key: "label",
412
+ noReturnOption: !0
413
+ }), O = z({
414
+ getterKey: "getGroupOptions",
415
+ key: "options",
416
+ noReturnOption: !0
417
+ }), { getDisabled: _, getStatus: D, getSize: T } = it({
418
+ getDisabled: () => o.props.disabled,
419
+ getSize: () => o.props.size,
420
+ getStatus: () => o.props.status
421
+ });
422
+ ft({
423
+ props: o.props,
424
+ attrs: o.attrs,
425
+ emit: o.emit,
426
+ getOptionValue: b,
427
+ getOptionLabel: f,
428
+ getOptionDisabled: J,
429
+ getOptionIcon: L,
430
+ getOptionByValue: w,
431
+ getLabelByValue: E,
432
+ getDisabled: _,
433
+ getStatus: D,
434
+ getSize: T,
435
+ ...e,
436
+ modelValue: e.modelValue
437
+ }), we(
438
+ () => [o.props.clearOnChangeMultiple, o.props.multiple],
439
+ () => {
440
+ o.props.clearOnChangeMultiple && (e.modelValue.value = void 0, o.emit("update:modelValue", void 0));
441
+ }
442
+ );
443
+ const j = y(() => {
444
+ const r = o.props.scrollContainerProps ?? {};
445
+ return {
446
+ ...r,
447
+ areaCls: [
448
+ S(F, "scroll_area"),
449
+ r == null ? void 0 : r.class,
450
+ r == null ? void 0 : r.areaCls
451
+ ]
452
+ };
453
+ }), oe = S(F, "popup"), pe = de(oe, {
454
+ variants: {
455
+ size: N(me, oe)
456
+ }
457
+ }), K = (r) => {
458
+ if (et(r))
459
+ return `${r}px`;
460
+ if (typeof r == "string")
461
+ return r;
462
+ }, ne = y(() => K(o.props.popupWidth)), re = y(() => K(o.props.popupHeight)), X = y(() => K(o.props.minWidth)), G = y(() => ({
463
+ type: T.value === "sm" ? "simple" : "advance",
464
+ ...be(o.props.emptyProps ?? {}, ["class"])
465
+ })), M = y(() => be(o.props.skeletonProps ?? {}, ["class"]));
466
+ return () => {
467
+ var ie, ae, Y;
468
+ const r = (n) => {
469
+ var i;
470
+ if ((i = o.props.options) != null && i.length && n > 0)
471
+ return !!o.props.options[n - 1];
472
+ }, V = (n) => {
473
+ var i, C;
474
+ if ((i = o.props.options) != null && i.length && n > 0) {
475
+ const s = o.props.options[n - 1];
476
+ return !!(s && ((C = O(s)) != null && C.length));
477
+ }
478
+ }, P = (ie = t.default) == null ? void 0 : ie.call(t, {}), v = (ae = Le(P, ue)) == null ? void 0 : ae.filter(
479
+ (n) => {
480
+ var i;
481
+ return Z(n == null ? void 0 : n.props) && ((i = n == null ? void 0 : n.props) == null ? void 0 : i.option);
482
+ }
483
+ ), g = [];
484
+ (o.props.options ?? []).forEach((n, i) => {
485
+ const C = (h) => a(
486
+ ue,
487
+ {
488
+ option: h
489
+ },
490
+ {
491
+ default: () => {
492
+ var d;
493
+ return (d = t.option) == null ? void 0 : d.call(t, { option: h });
494
+ },
495
+ leading: () => {
496
+ var d;
497
+ return (d = t.optionLeading) == null ? void 0 : d.call(t, { option: h });
498
+ },
499
+ indicator: () => {
500
+ var d;
501
+ return (d = t.optionIndicator) == null ? void 0 : d.call(t, { option: h });
502
+ },
503
+ text: () => {
504
+ var d;
505
+ return (d = t.optionText) == null ? void 0 : d.call(t, { option: h });
506
+ }
507
+ }
508
+ ), s = O(n);
509
+ if (s != null && s.length) {
510
+ r(i) && g.push(a(xe));
511
+ const h = l(n);
512
+ h && g.push(
513
+ a(yt, { class: o.props.labelCls }, () => h)
514
+ ), s.forEach((d) => {
515
+ g.push(C(d));
516
+ });
517
+ } else V(i) ? g.push(a(xe)) : g.push(C(n));
518
+ });
519
+ const c = Le(g, ue).filter(
520
+ (n) => {
521
+ var i;
522
+ return Z(n == null ? void 0 : n.props) && ((i = n == null ? void 0 : n.props) == null ? void 0 : i.option);
523
+ }
524
+ ), x = !!(c != null && c.length || v != null && v.length), k = (n, i) => {
525
+ var C;
526
+ if (x && !U(i) && ee(i)) {
527
+ const s = v != null && v.length ? v : c;
528
+ if (s.length) {
529
+ const h = s.find(
530
+ (d) => {
531
+ var fe;
532
+ return Z(d.props) && b((fe = d.props) == null ? void 0 : fe.option) === i;
533
+ }
534
+ );
535
+ return (C = h == null ? void 0 : h.children) == null ? void 0 : C[n];
536
+ }
537
+ }
538
+ }, se = () => {
539
+ var i, C;
540
+ const n = [];
541
+ if (x || o.props.loading) {
542
+ const s = [];
543
+ if (x && (v != null && v.length ? s.push(P) : s.push(...g)), o.props.loading) {
544
+ const h = (i = t.loading) == null ? void 0 : i.call(t, {});
545
+ if (!p(h)) s.push(h);
546
+ else {
547
+ const d = new Array(x ? 2 : o.props.loadingRowCount).fill(1);
548
+ s.push(
549
+ ...d.map(
550
+ () => a(rt, {
551
+ size: T.value,
552
+ class: B(
553
+ S(F, "skeleton"),
554
+ o.props.skeletonCls
555
+ ),
556
+ ...M.value
557
+ })
558
+ )
559
+ );
560
+ }
561
+ }
562
+ n.push(
563
+ a(
564
+ "div",
565
+ {
566
+ class: B(S(F, "options"), o.props.optionsCls)
567
+ },
568
+ s
569
+ )
570
+ );
571
+ } else if (!x) {
572
+ const s = (C = t.empty) == null ? void 0 : C.call(t, G.value);
573
+ p(s) ? n.push(
574
+ a(
575
+ nt,
576
+ {
577
+ class: B(S(F, "empty"), o.props.emptyCls),
578
+ ...G.value
579
+ },
580
+ {
581
+ title: t.emptyTitle,
582
+ description: t.emptyDescription,
583
+ actions: t.emptyActions,
584
+ image: t.emptyImage
585
+ }
586
+ )
587
+ ) : n.push(s);
588
+ }
589
+ return o.props.lazyLoading && n.push(
590
+ a(
591
+ "div",
592
+ { class: S(F, "lazy_loading") },
593
+ a("div", { class: S(F, "lazy_loading_trigger"), ref: A })
594
+ )
595
+ ), n;
596
+ };
597
+ return [
598
+ a(
599
+ St,
600
+ {
601
+ getOptionSlot: k,
602
+ ref: u,
603
+ ...o.attrs,
604
+ style: {
605
+ ...((Y = o.attrs) == null ? void 0 : Y.style) ?? {},
606
+ "--ptc-select-trigger-min-w": X.value
607
+ }
608
+ },
609
+ {
610
+ trigger: t.trigger,
611
+ triggerLeading: t.triggerLeading,
612
+ placeholder: t.placeholder,
613
+ triggerValue: t.triggerValue,
614
+ triggerTrailing: t.triggerTrailing,
615
+ tagClose: t.tagClose,
616
+ tagTrailing: t.tagTrailing,
617
+ tagLeading: t.tagLeading,
618
+ tagText: t.tagText
619
+ }
620
+ ),
621
+ a(
622
+ Me,
623
+ R.value,
624
+ () => a(
625
+ qe,
626
+ {
627
+ ...$.value,
628
+ class: B(pe(o.props), o.props.popupCls),
629
+ style: {
630
+ display: e.open.value ? void 0 : "none",
631
+ zIndex: o.props.zIndex,
632
+ "--ptc-select-popup-width": o.props.samePopupWidth ? void 0 : ne.value,
633
+ "--ptc-select-popup-height": re.value,
634
+ "--ptc-select-trigger-min-w": X.value
635
+ }
636
+ },
637
+ () => a(ut, j.value, se)
638
+ )
639
+ )
640
+ ];
641
+ };
642
+ }
643
+ }), Rt = /* @__PURE__ */ te({
644
+ ...Te("Select"),
645
+ __name: "Select",
646
+ props: {
647
+ status: {},
648
+ size: { default: "md" },
649
+ multiple: { type: Boolean, default: void 0 },
650
+ contentFit: { type: Boolean },
651
+ wrapped: { type: Boolean },
652
+ noTrailing: { type: Boolean },
653
+ leadingIcon: {},
654
+ zIndex: {},
655
+ trailingIcon: { default: "tabler:chevron-down" },
656
+ selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
657
+ maxCount: {},
658
+ to: {},
659
+ placeholder: {},
660
+ indicatorIcon: { default: "tabler:check" },
661
+ options: {},
662
+ getDisabled: {},
663
+ getLabel: {},
664
+ getValue: {},
665
+ getGroupOptions: {},
666
+ getGroupLabel: {},
667
+ getIcon: {},
668
+ placement: { default: "bottom" },
669
+ reversePlacementOnDir: {},
670
+ loading: { type: Boolean },
671
+ skeletonProps: {},
672
+ loadingRowCount: { default: 10 },
673
+ lazyLoading: { type: Boolean },
674
+ bordered: { type: Boolean, default: !0 },
675
+ clearOnChangeMultiple: { type: Boolean, default: !0 },
676
+ triggerCls: {},
677
+ triggerLeadingCls: {},
678
+ triggerContentCls: {},
679
+ triggerContentPlaceholderCls: {},
680
+ triggerContentValueCls: {},
681
+ triggerTrailingCls: {},
682
+ itemLeadingCls: {},
683
+ optionCls: {},
684
+ tagListCls: {},
685
+ tagCls: {},
686
+ popupCls: {},
687
+ labelCls: {},
688
+ optionsCls: {},
689
+ optionTextCls: {},
690
+ optionContentCls: {},
691
+ emptyCls: {},
692
+ skeletonCls: {},
693
+ scrollContainerProps: {},
694
+ emptyProps: {},
695
+ samePopupWidth: { type: Boolean, default: !0 },
696
+ popupHeight: { default: 384 },
697
+ popupWidth: {},
698
+ minWidth: {},
699
+ open: { type: Boolean, default: void 0 },
700
+ defaultOpen: { type: Boolean, default: void 0 },
701
+ defaultValue: {},
702
+ modelValue: {},
703
+ by: {},
704
+ dir: {},
705
+ autocomplete: {},
706
+ disabled: { type: Boolean, default: void 0 },
707
+ name: {},
708
+ required: { type: Boolean },
709
+ reference: {},
710
+ forceMount: { type: Boolean, default: void 0 },
711
+ position: { default: "popper" },
712
+ bodyLock: { type: Boolean },
713
+ side: {},
714
+ sideOffset: { default: 4 },
715
+ sideFlip: { type: Boolean },
716
+ align: {},
717
+ alignOffset: {},
718
+ alignFlip: { type: Boolean },
719
+ avoidCollisions: { type: Boolean, default: void 0 },
720
+ collisionBoundary: {},
721
+ collisionPadding: { default: 4 },
722
+ arrowPadding: {},
723
+ sticky: {},
724
+ hideWhenDetached: { type: Boolean, default: void 0 },
725
+ positionStrategy: { default: "fixed" },
726
+ updatePositionStrategy: {},
727
+ disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
728
+ prioritizePosition: { type: Boolean, default: void 0 },
729
+ asChild: { type: Boolean },
730
+ as: {},
731
+ defer: { type: Boolean }
732
+ },
733
+ emits: ["change", "select", "update:modelValue", "update:open", "closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
734
+ setup(m, { emit: t }) {
735
+ tt("select", dt);
736
+ const o = m, e = t, A = Ue(e), u = y(
737
+ () => Je(
738
+ {
739
+ ...Oe(o, [
740
+ "open",
741
+ "defaultOpen",
742
+ "defaultValue",
743
+ "modelValue",
744
+ "by",
745
+ "dir",
746
+ "multiple",
747
+ "autocomplete",
748
+ "disabled"
749
+ ]),
750
+ ...Oe(A, [
751
+ "onUpdate:modelValue",
752
+ "onUpdate:open"
753
+ ])
754
+ },
755
+ Qe
756
+ )
757
+ ), R = De(), q = Fe();
758
+ return Ct({
759
+ attrs: q,
760
+ props: o,
761
+ emit: e,
762
+ emitsAsProps: A
763
+ }), (I, H) => (Be(), Ae(le(He), Ce(ye(u.value)), {
764
+ default: Se(() => [
765
+ We(le(ht), null, $e({ _: 2 }, [
766
+ Ee(Object.keys(R), (W) => ({
767
+ name: W,
768
+ fn: Se(($) => [
769
+ _e(I.$slots, W, Ce(ye($)))
770
+ ])
771
+ }))
772
+ ]), 1024)
773
+ ]),
774
+ _: 3
775
+ }, 16));
776
+ }
777
+ });
778
+ export {
779
+ ue as S,
780
+ Rt as _,
781
+ yt as a,
782
+ me as b,
783
+ mt as c,
784
+ Ie as i,
785
+ ft as p
786
+ };