@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,787 @@
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-DJv20Efl.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-CnJOScIi.js";
11
+ import { _ as rt } from "./Skeleton.vue_vue_type_script_setup_true_lang-BPGtJ7m9.js";
12
+ import { _ as xe } from "./Divider.vue_vue_type_script_setup_true_lang-BHkXVZCN.js";
13
+ import "@pantograph/tokens";
14
+ import { i as U } from "./isEmpty-CgVXdsCr.js";
15
+ import { u as it } from "./useInputDataStates-DCxDvkM-.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-D-Jebwr9.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-BU7qU1LR.js";
20
+ import { b as ct, _ as gt } from "./Chip.vue_vue_type_script_setup_true_lang-DOIPsHk_.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
+ closeTrigger: "pointer"
308
+ },
309
+ {
310
+ text: se,
311
+ leading: ie,
312
+ trailing: ae,
313
+ close: x
314
+ }
315
+ );
316
+ })
317
+ );
318
+ if (!Q(e.modelValue.value)) {
319
+ 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();
320
+ return p(c) ? p(x) ? ee(e.modelValue.value) ? e.getLabelByValue(e.modelValue.value) : e.modelValue.value : x : c;
321
+ }
322
+ })();
323
+ r && G.push(r);
324
+ }
325
+ return G;
326
+ }, K = [], ne = oe();
327
+ p(ne) || K.push(ne), K.push(
328
+ a(
329
+ je,
330
+ {
331
+ class: B(
332
+ S(u, "content"),
333
+ e.props.triggerContentCls,
334
+ U(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls
335
+ ),
336
+ as: "div",
337
+ key: String(b.value),
338
+ asChild: b.value
339
+ },
340
+ { default: pe }
341
+ )
342
+ );
343
+ const re = J();
344
+ return p(re) || K.push(re), K;
345
+ }
346
+ }
347
+ );
348
+ };
349
+ }
350
+ }), ht = te({
351
+ name: ge("SelectWrapper"),
352
+ setup(m, { slots: t }) {
353
+ const o = vt(), e = Ke(), A = ve();
354
+ at({ target: A });
355
+ const u = ve(), R = lt({ triggerRef: u, props: o.props }), { getFlipOnDir: q, getDir: I } = st(), H = q("reversePlacementOnDir"), W = I(), $ = pt({
356
+ props: o.props,
357
+ flip: H,
358
+ emitsAsProps: o.emitsAsProps,
359
+ _dir: W,
360
+ controlAutoFocus: !1,
361
+ extraPropNames: ["bodyLock", "position"]
362
+ }), z = ({
363
+ key: r,
364
+ getterKey: V,
365
+ defaultValue: P,
366
+ noReturnOption: v
367
+ }) => (g) => {
368
+ const c = Ve(P) ? P(g) : P;
369
+ if (Z(g)) {
370
+ const x = g[r] ?? c, k = V && o.props[V];
371
+ if (k) {
372
+ if (ee(k))
373
+ return g[k] ?? x;
374
+ if (Ve(k)) return k(g) ?? x;
375
+ }
376
+ return x;
377
+ }
378
+ return ee(g) && !v ? g ?? c : c;
379
+ }, b = z({
380
+ getterKey: "getValue",
381
+ key: "value"
382
+ }), f = z({
383
+ getterKey: "getLabel",
384
+ key: "label",
385
+ defaultValue: b
386
+ }), L = z({
387
+ getterKey: "getIcon",
388
+ key: "icon",
389
+ noReturnOption: !0
390
+ }), w = (r) => {
391
+ var V;
392
+ if ((V = o.props.options) != null && V.length)
393
+ for (const P of o.props.options) {
394
+ if (b(P) === r) return P;
395
+ const v = O(P);
396
+ if (v != null && v.length) {
397
+ for (const g of v)
398
+ if (b(g) === r) return g;
399
+ }
400
+ }
401
+ return r;
402
+ }, E = (r) => {
403
+ const V = w(r);
404
+ return V ? f(V) ?? r : r;
405
+ }, J = z({
406
+ getterKey: "getDisabled",
407
+ key: "disabled",
408
+ defaultValue: !1,
409
+ noReturnOption: !0
410
+ }), l = z({
411
+ getterKey: "getGroupLabel",
412
+ key: "label",
413
+ noReturnOption: !0
414
+ }), O = z({
415
+ getterKey: "getGroupOptions",
416
+ key: "options",
417
+ noReturnOption: !0
418
+ }), { getDisabled: _, getStatus: D, getSize: T } = it({
419
+ getDisabled: () => o.props.disabled,
420
+ getSize: () => o.props.size,
421
+ getStatus: () => o.props.status
422
+ });
423
+ ft({
424
+ props: o.props,
425
+ attrs: o.attrs,
426
+ emit: o.emit,
427
+ getOptionValue: b,
428
+ getOptionLabel: f,
429
+ getOptionDisabled: J,
430
+ getOptionIcon: L,
431
+ getOptionByValue: w,
432
+ getLabelByValue: E,
433
+ getDisabled: _,
434
+ getStatus: D,
435
+ getSize: T,
436
+ ...e,
437
+ modelValue: e.modelValue
438
+ }), we(
439
+ () => [o.props.clearOnChangeMultiple, o.props.multiple],
440
+ () => {
441
+ o.props.clearOnChangeMultiple && (e.modelValue.value = void 0, o.emit("update:modelValue", void 0));
442
+ }
443
+ );
444
+ const j = y(() => {
445
+ const r = o.props.scrollContainerProps ?? {};
446
+ return {
447
+ ...r,
448
+ areaCls: [
449
+ S(F, "scroll_area"),
450
+ r == null ? void 0 : r.class,
451
+ r == null ? void 0 : r.areaCls
452
+ ]
453
+ };
454
+ }), oe = S(F, "popup"), pe = de(oe, {
455
+ variants: {
456
+ size: N(me, oe)
457
+ }
458
+ }), K = (r) => {
459
+ if (et(r))
460
+ return `${r}px`;
461
+ if (typeof r == "string")
462
+ return r;
463
+ }, ne = y(() => K(o.props.popupWidth)), re = y(() => K(o.props.popupHeight)), X = y(() => K(o.props.minWidth)), G = y(() => ({
464
+ type: T.value === "sm" ? "simple" : "advance",
465
+ ...be(o.props.emptyProps ?? {}, ["class"])
466
+ })), M = y(() => be(o.props.skeletonProps ?? {}, ["class"]));
467
+ return () => {
468
+ var ie, ae, Y;
469
+ const r = (n) => {
470
+ var i;
471
+ if ((i = o.props.options) != null && i.length && n > 0)
472
+ return !!o.props.options[n - 1];
473
+ }, V = (n) => {
474
+ var i, C;
475
+ if ((i = o.props.options) != null && i.length && n > 0) {
476
+ const s = o.props.options[n - 1];
477
+ return !!(s && ((C = O(s)) != null && C.length));
478
+ }
479
+ }, P = (ie = t.default) == null ? void 0 : ie.call(t, {}), v = (ae = Le(P, ue)) == null ? void 0 : ae.filter(
480
+ (n) => {
481
+ var i;
482
+ return Z(n == null ? void 0 : n.props) && ((i = n == null ? void 0 : n.props) == null ? void 0 : i.option);
483
+ }
484
+ ), g = [];
485
+ (o.props.options ?? []).forEach((n, i) => {
486
+ const C = (h) => a(
487
+ ue,
488
+ {
489
+ option: h
490
+ },
491
+ {
492
+ default: () => {
493
+ var d;
494
+ return (d = t.option) == null ? void 0 : d.call(t, { option: h });
495
+ },
496
+ leading: () => {
497
+ var d;
498
+ return (d = t.optionLeading) == null ? void 0 : d.call(t, { option: h });
499
+ },
500
+ indicator: () => {
501
+ var d;
502
+ return (d = t.optionIndicator) == null ? void 0 : d.call(t, { option: h });
503
+ },
504
+ text: () => {
505
+ var d;
506
+ return (d = t.optionText) == null ? void 0 : d.call(t, { option: h });
507
+ }
508
+ }
509
+ ), s = O(n);
510
+ if (s != null && s.length) {
511
+ r(i) && g.push(a(xe));
512
+ const h = l(n);
513
+ h && g.push(
514
+ a(yt, { class: o.props.labelCls }, () => h)
515
+ ), s.forEach((d) => {
516
+ g.push(C(d));
517
+ });
518
+ } else V(i) ? g.push(a(xe)) : g.push(C(n));
519
+ });
520
+ const c = Le(g, ue).filter(
521
+ (n) => {
522
+ var i;
523
+ return Z(n == null ? void 0 : n.props) && ((i = n == null ? void 0 : n.props) == null ? void 0 : i.option);
524
+ }
525
+ ), x = !!(c != null && c.length || v != null && v.length), k = (n, i) => {
526
+ var C;
527
+ if (x && !U(i) && ee(i)) {
528
+ const s = v != null && v.length ? v : c;
529
+ if (s.length) {
530
+ const h = s.find(
531
+ (d) => {
532
+ var fe;
533
+ return Z(d.props) && b((fe = d.props) == null ? void 0 : fe.option) === i;
534
+ }
535
+ );
536
+ return (C = h == null ? void 0 : h.children) == null ? void 0 : C[n];
537
+ }
538
+ }
539
+ }, se = () => {
540
+ var i, C;
541
+ const n = [];
542
+ if (x || o.props.loading) {
543
+ const s = [];
544
+ if (x && (v != null && v.length ? s.push(P) : s.push(...g)), o.props.loading) {
545
+ const h = (i = t.loading) == null ? void 0 : i.call(t, {});
546
+ if (!p(h)) s.push(h);
547
+ else {
548
+ const d = new Array(x ? 2 : o.props.loadingRowCount).fill(1);
549
+ s.push(
550
+ ...d.map(
551
+ () => a(rt, {
552
+ size: T.value,
553
+ class: B(
554
+ S(F, "skeleton"),
555
+ o.props.skeletonCls
556
+ ),
557
+ ...M.value
558
+ })
559
+ )
560
+ );
561
+ }
562
+ }
563
+ n.push(
564
+ a(
565
+ "div",
566
+ {
567
+ class: B(S(F, "options"), o.props.optionsCls)
568
+ },
569
+ s
570
+ )
571
+ );
572
+ } else if (!x) {
573
+ const s = (C = t.empty) == null ? void 0 : C.call(t, G.value);
574
+ p(s) ? n.push(
575
+ a(
576
+ nt,
577
+ {
578
+ class: B(S(F, "empty"), o.props.emptyCls),
579
+ ...G.value
580
+ },
581
+ {
582
+ title: t.emptyTitle,
583
+ description: t.emptyDescription,
584
+ actions: t.emptyActions,
585
+ image: t.emptyImage
586
+ }
587
+ )
588
+ ) : n.push(s);
589
+ }
590
+ return o.props.lazyLoading && n.push(
591
+ a(
592
+ "div",
593
+ { class: S(F, "lazy_loading") },
594
+ a("div", { class: S(F, "lazy_loading_trigger"), ref: A })
595
+ )
596
+ ), n;
597
+ };
598
+ return [
599
+ a(
600
+ St,
601
+ {
602
+ getOptionSlot: k,
603
+ ref: u,
604
+ ...o.attrs,
605
+ style: {
606
+ ...((Y = o.attrs) == null ? void 0 : Y.style) ?? {},
607
+ "--ptc-select-trigger-min-w": X.value
608
+ }
609
+ },
610
+ {
611
+ trigger: t.trigger,
612
+ triggerLeading: t.triggerLeading,
613
+ placeholder: t.placeholder,
614
+ triggerValue: t.triggerValue,
615
+ triggerTrailing: t.triggerTrailing,
616
+ tagClose: t.tagClose,
617
+ tagTrailing: t.tagTrailing,
618
+ tagLeading: t.tagLeading,
619
+ tagText: t.tagText
620
+ }
621
+ ),
622
+ a(
623
+ Me,
624
+ R.value,
625
+ () => a(
626
+ qe,
627
+ {
628
+ ...$.value,
629
+ class: B(pe(o.props), o.props.popupCls),
630
+ style: {
631
+ display: e.open.value ? void 0 : "none",
632
+ zIndex: o.props.zIndex,
633
+ "--ptc-select-popup-width": o.props.samePopupWidth ? void 0 : ne.value,
634
+ "--ptc-select-popup-height": re.value,
635
+ "--ptc-select-trigger-min-w": X.value
636
+ }
637
+ },
638
+ () => a(ut, j.value, se)
639
+ )
640
+ )
641
+ ];
642
+ };
643
+ }
644
+ }), Rt = /* @__PURE__ */ te({
645
+ ...Te("Select"),
646
+ __name: "Select",
647
+ props: {
648
+ status: {},
649
+ size: { default: "md" },
650
+ multiple: { type: Boolean, default: void 0 },
651
+ contentFit: { type: Boolean },
652
+ wrapped: { type: Boolean },
653
+ noTrailing: { type: Boolean },
654
+ leadingIcon: {},
655
+ zIndex: {},
656
+ trailingIcon: { default: "tabler:chevron-down" },
657
+ selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
658
+ maxCount: {},
659
+ to: {},
660
+ placeholder: {},
661
+ indicatorIcon: { default: "tabler:check" },
662
+ options: {},
663
+ getDisabled: {},
664
+ getLabel: {},
665
+ getValue: {},
666
+ getGroupOptions: {},
667
+ getGroupLabel: {},
668
+ getIcon: {},
669
+ placement: { default: "bottom" },
670
+ reversePlacementOnDir: {},
671
+ loading: { type: Boolean },
672
+ skeletonProps: {},
673
+ loadingRowCount: { default: 10 },
674
+ lazyLoading: { type: Boolean },
675
+ bordered: { type: Boolean, default: !0 },
676
+ clearOnChangeMultiple: { type: Boolean, default: !0 },
677
+ triggerCls: {},
678
+ triggerLeadingCls: {},
679
+ triggerContentCls: {},
680
+ triggerContentPlaceholderCls: {},
681
+ triggerContentValueCls: {},
682
+ triggerTrailingCls: {},
683
+ itemLeadingCls: {},
684
+ optionCls: {},
685
+ tagListCls: {},
686
+ tagCls: {},
687
+ popupCls: {},
688
+ labelCls: {},
689
+ optionsCls: {},
690
+ optionTextCls: {},
691
+ optionContentCls: {},
692
+ emptyCls: {},
693
+ skeletonCls: {},
694
+ scrollContainerProps: {},
695
+ emptyProps: {},
696
+ samePopupWidth: { type: Boolean, default: !0 },
697
+ popupHeight: { default: 384 },
698
+ popupWidth: {},
699
+ minWidth: {},
700
+ open: { type: Boolean, default: void 0 },
701
+ defaultOpen: { type: Boolean, default: void 0 },
702
+ defaultValue: {},
703
+ modelValue: {},
704
+ by: {},
705
+ dir: {},
706
+ autocomplete: {},
707
+ disabled: { type: Boolean, default: void 0 },
708
+ name: {},
709
+ required: { type: Boolean },
710
+ reference: {},
711
+ forceMount: { type: Boolean, default: void 0 },
712
+ position: { default: "popper" },
713
+ bodyLock: { type: Boolean },
714
+ side: {},
715
+ sideOffset: { default: 4 },
716
+ sideFlip: { type: Boolean },
717
+ align: {},
718
+ alignOffset: {},
719
+ alignFlip: { type: Boolean },
720
+ avoidCollisions: { type: Boolean, default: void 0 },
721
+ collisionBoundary: {},
722
+ collisionPadding: { default: 4 },
723
+ arrowPadding: {},
724
+ sticky: {},
725
+ hideWhenDetached: { type: Boolean, default: void 0 },
726
+ positionStrategy: { default: "fixed" },
727
+ updatePositionStrategy: {},
728
+ disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
729
+ prioritizePosition: { type: Boolean, default: void 0 },
730
+ asChild: { type: Boolean },
731
+ as: {},
732
+ defer: { type: Boolean }
733
+ },
734
+ emits: ["change", "select", "update:modelValue", "update:open", "closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
735
+ setup(m, { emit: t }) {
736
+ tt("select", dt);
737
+ const o = m, e = t, A = Ue(e), u = y(
738
+ () => Je(
739
+ {
740
+ ...Oe(o, [
741
+ "open",
742
+ "defaultOpen",
743
+ "defaultValue",
744
+ "modelValue",
745
+ "by",
746
+ "dir",
747
+ "multiple",
748
+ "autocomplete",
749
+ "disabled"
750
+ ]),
751
+ ...Oe(A, [
752
+ "onUpdate:modelValue",
753
+ "onUpdate:open"
754
+ ])
755
+ },
756
+ Qe
757
+ )
758
+ ), R = De(), q = Fe();
759
+ return Ct({
760
+ attrs: q,
761
+ props: o,
762
+ emit: e,
763
+ emitsAsProps: A
764
+ }), (I, H) => (Be(), Ae(le(He), Ce(ye(u.value)), {
765
+ default: Se(() => [
766
+ We(le(ht), null, $e({ _: 2 }, [
767
+ Ee(Object.keys(R), (W) => ({
768
+ name: W,
769
+ fn: Se(($) => [
770
+ _e(I.$slots, W, Ce(ye($)))
771
+ ])
772
+ }))
773
+ ]), 1024)
774
+ ]),
775
+ _: 3
776
+ }, 16));
777
+ }
778
+ });
779
+ export {
780
+ ue as S,
781
+ Rt as _,
782
+ yt as a,
783
+ me as b,
784
+ mt as c,
785
+ Ie as i,
786
+ ft as p
787
+ };