@pantograph/vue 0.25.4 → 0.25.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/ActionButton/ActionButton.d.ts +174 -11
  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-uwPzOpXQ.js → ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js} +1 -1
  5. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DgRldvF-.js → ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js} +1 -1
  6. package/dist/Alert/Alert.d.ts +4 -3
  7. package/dist/Alert/index.js +1 -1
  8. package/dist/Alert/index.umd.cjs +1 -1
  9. package/dist/{Alert.vue_vue_type_style_index_0_lang-CsM-N2Dn.js → Alert.vue_vue_type_style_index_0_lang-B1JrRGlL.js} +21 -19
  10. package/dist/Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js +1 -0
  11. package/dist/Avatar/Avatar.d.ts +4 -4
  12. package/dist/Avatar/index.js +1 -1
  13. package/dist/Avatar/index.umd.cjs +1 -1
  14. package/dist/{Avatar.vue_vue_type_style_index_0_lang-BU_5Uc1h.js → Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js} +3 -3
  15. package/dist/{Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.js → Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js} +1 -1
  16. package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
  17. package/dist/AvatarGroup/index.js +1 -1
  18. package/dist/AvatarGroup/index.umd.cjs +1 -1
  19. package/dist/Badge/Badge.d.ts +2 -1
  20. package/dist/Badge/index.js +1 -1
  21. package/dist/Badge/index.umd.cjs +1 -1
  22. package/dist/{Badge.vue_vue_type_script_setup_true_lang-BNoY52kq.js → Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js} +1 -1
  23. package/dist/{Badge.vue_vue_type_script_setup_true_lang-D4qWXPmE.js → Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js} +1 -1
  24. package/dist/Base/BaseBadge/BaseBadge.d.ts +3 -2
  25. package/dist/Base/BaseButton/BaseButton.d.ts +45 -7
  26. package/dist/Base/BaseInput/BaseInput.d.ts +1 -1
  27. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-iBj3bp4f.js → BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js} +21 -21
  28. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js +1 -0
  29. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C_rzn0QQ.js → BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js} +1 -1
  30. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js → BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js} +5 -5
  31. package/dist/{BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js → BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js} +1 -1
  32. package/dist/{BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js → BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js} +1 -1
  33. package/dist/Button/Button.d.ts +179 -16
  34. package/dist/Button/index.js +1 -1
  35. package/dist/Button/index.umd.cjs +1 -1
  36. package/dist/{Button.vue_vue_type_script_setup_true_lang-DayZ7O-B.js → Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js} +1 -1
  37. package/dist/{Button.vue_vue_type_script_setup_true_lang-BEUgRSHQ.js → Button.vue_vue_type_script_setup_true_lang-iY6wC5I7.js} +1 -1
  38. package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
  39. package/dist/Checkbox/Checkbox.d.ts +3 -3
  40. package/dist/Checkbox/index.js +1 -1
  41. package/dist/Checkbox/index.umd.cjs +1 -1
  42. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-DIUFXgde.js → Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js} +2 -2
  43. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-B7TCf8DD.js → Checkbox.vue_vue_type_style_index_0_lang-srZfoj7r.js} +1 -1
  44. package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -2
  45. package/dist/CheckboxGroup/index.js +1 -1
  46. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  47. package/dist/Chip/Chip.d.ts +3 -2
  48. package/dist/Chip/index.js +2 -2
  49. package/dist/Chip/index.umd.cjs +1 -1
  50. package/dist/{Chip.vue_vue_type_style_index_0_lang-B4vliBhP.js → Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js} +1 -1
  51. package/dist/{Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js → Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js} +2 -2
  52. package/dist/ChipGroup/ChipGroup.d.ts +1 -1
  53. package/dist/ChipGroup/index.js +1 -1
  54. package/dist/ChipGroup/index.umd.cjs +1 -1
  55. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js → ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js} +2 -2
  56. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Dz90pq2v.js → ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js} +1 -1
  57. package/dist/ColorPicker/ColorPicker.d.ts +3 -1
  58. package/dist/ColorPicker/ColorPickerSpace.d.ts +1 -1
  59. package/dist/ColorPicker/index.js +1 -1
  60. package/dist/ColorPicker/index.umd.cjs +1 -1
  61. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Bbua4gDp.js → ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js} +2 -2
  62. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Cs_uP8_-.js → ColorPicker.vue_vue_type_style_index_0_lang-DL_ZJmhv.js} +27 -18
  63. package/dist/ColorSwatch/ColorSwatch.d.ts +3 -2
  64. package/dist/ColorSwatch/index.js +1 -1
  65. package/dist/ColorSwatch/index.umd.cjs +1 -1
  66. package/dist/{ColorSwatch-BVj268xm.js → ColorSwatch-BMQgaieC.js} +1 -1
  67. package/dist/{ColorSwatch-BTd2qIvs.js → ColorSwatch-BmsX5hTJ.js} +1 -1
  68. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-D9jCB_qS.js → ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js} +2 -2
  69. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DotrlbV2.js → ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js} +1 -1
  70. package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -2
  71. package/dist/ColorSwatchGroup/index.js +1 -1
  72. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  73. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-uGNt1Zw7.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcQU4Avw.js} +1 -1
  74. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CMUC9JP1.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js} +7 -6
  75. package/dist/ColorTrigger/ColorTrigger.d.ts +3 -2
  76. package/dist/ColorTrigger/index.js +1 -1
  77. package/dist/ColorTrigger/index.umd.cjs +1 -1
  78. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BphrM3jX.js → ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js} +1 -1
  79. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CjRJLrjc.js → ColorTrigger.vue_vue_type_style_index_0_lang-D7z5WQlE.js} +3 -3
  80. package/dist/Combobox/Combobox.d.ts +16 -15
  81. package/dist/Combobox/ComboboxLabel.d.ts +3 -2
  82. package/dist/Combobox/index.js +1 -1
  83. package/dist/Combobox/index.umd.cjs +1 -1
  84. package/dist/Combobox/types.d.ts +2 -2
  85. package/dist/Combobox.vue_vue_type_style_index_0_lang-AGxBlqh_.js +1 -0
  86. package/dist/{Combobox.vue_vue_type_style_index_0_lang-C1ceC-d6.js → Combobox.vue_vue_type_style_index_0_lang-CrMJYH_U.js} +410 -349
  87. package/dist/Comment/Comment.d.ts +1 -1
  88. package/dist/Comment/CommentActions.d.ts +384 -1
  89. package/dist/Comment/CommentEditor.d.ts +867 -81
  90. package/dist/Comment/CommentMention.d.ts +2 -1
  91. package/dist/Comment/CommentReactions.d.ts +193 -1
  92. package/dist/Comment/CommentTrigger.d.ts +3 -2
  93. package/dist/Comment/index.js +14 -14
  94. package/dist/Comment/index.umd.cjs +1 -1
  95. package/dist/ConfigProvider/index.js +1 -1
  96. package/dist/{ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js → ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js} +10 -10
  97. package/dist/DataTable/DataTable.d.ts +106 -12
  98. package/dist/DataTable/index.js +1 -1
  99. package/dist/DataTable/index.umd.cjs +1 -1
  100. package/dist/DataTable/useSelection.d.ts +1 -1
  101. package/dist/DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js +1 -0
  102. package/dist/{DataTable.vue_vue_type_style_index_0_lang-BIEqP-0I.js → DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js} +36 -30
  103. package/dist/Divider/Divider.d.ts +3 -2
  104. package/dist/DropZone/DropZone.d.ts +4 -3
  105. package/dist/DropZone/index.js +1 -1
  106. package/dist/DropZone/index.umd.cjs +1 -1
  107. package/dist/{DropZone.vue_vue_type_style_index_0_lang-B9y7TlwK.js → DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js} +1 -1
  108. package/dist/{DropZone.vue_vue_type_style_index_0_lang-EJIu65Kx.js → DropZone.vue_vue_type_style_index_0_lang-Dq0K__t6.js} +2 -2
  109. package/dist/Empty/Empty.d.ts +3 -2
  110. package/dist/Empty/index.js +1 -1
  111. package/dist/Empty/index.umd.cjs +1 -1
  112. package/dist/{Empty.vue_vue_type_style_index_0_lang-BUUZkqKK.js → Empty.vue_vue_type_style_index_0_lang-BkLWzc14.js} +1 -1
  113. package/dist/{Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js → Empty.vue_vue_type_style_index_0_lang-C1kPtilP.js} +1 -1
  114. package/dist/FloatButton/FloatButton.d.ts +178 -15
  115. package/dist/FloatButton/index.js +1 -1
  116. package/dist/FloatButton/index.umd.cjs +1 -1
  117. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BkkyOUA7.js → FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js} +1 -1
  118. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js → FloatButton.vue_vue_type_script_setup_true_lang-sIUaExTM.js} +1 -1
  119. package/dist/Form/Form.d.ts +18 -18
  120. package/dist/Form/FormItem.d.ts +1 -1
  121. package/dist/Form/index.js +1 -1
  122. package/dist/Form/index.umd.cjs +1 -1
  123. package/dist/FormValidation/FormValidation.d.ts +7 -6
  124. package/dist/GOPicker/GOItemSkeleton.d.ts +1 -1
  125. package/dist/GOPicker/GOPicker.d.ts +45 -44
  126. package/dist/GOPicker/index.js +1 -1
  127. package/dist/GOPicker/index.umd.cjs +1 -1
  128. package/dist/{GOPicker.vue_vue_type_style_index_0_lang-kynTp-m5.js → GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js} +17 -15
  129. package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js → GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js} +1 -1
  130. package/dist/GraphicalObject/GraphicalObject.d.ts +2 -1
  131. package/dist/GraphicalObject/index.js +1 -1
  132. package/dist/GraphicalObject/index.umd.cjs +1 -1
  133. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js → GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js} +2 -2
  134. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js → GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js} +1 -1
  135. package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +1 -1
  136. package/dist/GraphicalObjectGroup/index.js +1 -1
  137. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  138. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-eUYKt1g8.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BXpVeN5_.js} +2 -2
  139. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HhLovMZS.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js} +1 -1
  140. package/dist/Icon/Icon.d.ts +1 -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_style_index_0_lang-BMu3U4-l.js → Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js} +175 -172
  144. package/dist/{Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js → Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js} +3 -3
  145. package/dist/IconButton/IconButton.d.ts +179 -16
  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-DGXtxJVO.js → IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js} +1 -1
  149. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js → IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js} +1 -1
  150. package/dist/Image/Image.d.ts +3 -2
  151. package/dist/Image/index.js +1 -1
  152. package/dist/Image/index.umd.cjs +1 -1
  153. package/dist/{Image.vue_vue_type_style_index_0_lang-Dxp0n_0A.js → Image.vue_vue_type_style_index_0_lang-D7buZGTj.js} +1 -1
  154. package/dist/{Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js → Image.vue_vue_type_style_index_0_lang-D8BJOCro.js} +2 -2
  155. package/dist/IndentLevel/IndentLevel.d.ts +3 -2
  156. package/dist/IndentLevel/index.js +1 -1
  157. package/dist/IndentLevel/index.umd.cjs +1 -1
  158. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-DPL6yVwu.js → IndentLevel.vue_vue_type_style_index_0_lang-DkVpxqkS.js} +3 -3
  159. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BNXXU--A.js → IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js} +1 -1
  160. package/dist/Indicator/Indicator.d.ts +2 -1
  161. package/dist/Indicator/index.js +1 -1
  162. package/dist/Indicator/index.umd.cjs +1 -1
  163. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BAJid2ch.js → Indicator.vue_vue_type_script_setup_true_lang-BTt9LTh1.js} +1 -1
  164. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BZQujvXX.js → Indicator.vue_vue_type_script_setup_true_lang-C6C6qnFI.js} +1 -1
  165. package/dist/Input/Input.d.ts +9 -6
  166. package/dist/Input/index.js +2 -2
  167. package/dist/Input/index.umd.cjs +1 -1
  168. package/dist/{Input.vue_vue_type_script_setup_true_lang-BhpGixbX.js → Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js} +10 -10
  169. package/dist/{Input.vue_vue_type_script_setup_true_lang-P-pBp4sf.js → Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js} +1 -1
  170. package/dist/InputNumber/InputNumber.d.ts +16 -13
  171. package/dist/InputNumber/index.js +2 -2
  172. package/dist/InputNumber/index.umd.cjs +1 -1
  173. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-DcGG4i1C.js → InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js} +1 -1
  174. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js → InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js} +27 -27
  175. package/dist/Kbd/Kbd.d.ts +3 -2
  176. package/dist/Kbd/index.js +1 -1
  177. package/dist/Kbd/index.umd.cjs +1 -1
  178. package/dist/{Kbd.vue_vue_type_style_index_0_lang-q3jBcYir.js → Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js} +1 -1
  179. package/dist/{Kbd.vue_vue_type_style_index_0_lang-XS49-yX4.js → Kbd.vue_vue_type_style_index_0_lang-VXCAjXze.js} +1 -1
  180. package/dist/Label/Label.d.ts +3 -2
  181. package/dist/Label/index.js +1 -1
  182. package/dist/Label/index.umd.cjs +1 -1
  183. package/dist/Link/Link.d.ts +3 -2
  184. package/dist/Link/index.js +1 -1
  185. package/dist/Link/index.umd.cjs +1 -1
  186. package/dist/Link.vue_vue_type_style_index_0_lang-BRLBWpij.js +1 -0
  187. package/dist/{Link.vue_vue_type_style_index_0_lang-DAQr5LuP.js → Link.vue_vue_type_style_index_0_lang-DgvyW7Rs.js} +14 -13
  188. package/dist/Menu/Menu.d.ts +1 -1
  189. package/dist/Menu/MenuItemWrapper.d.ts +2 -1
  190. package/dist/Menu/index.js +1 -1
  191. package/dist/Menu/index.umd.cjs +1 -1
  192. package/dist/MenuItem/MenuItem.d.ts +1 -1
  193. package/dist/MenuItem/index.js +1 -1
  194. package/dist/MenuItem/index.umd.cjs +1 -1
  195. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-DRgLTDF9.js → MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js} +1 -1
  196. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-Tx1mw3fx.js → MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js} +13 -13
  197. package/dist/Pagination/Pagination.d.ts +1 -1
  198. package/dist/Pagination/index.js +1 -1
  199. package/dist/Pagination/index.umd.cjs +1 -1
  200. package/dist/{Pagination.vue_vue_type_style_index_0_lang-BJSH2nV1.js → Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js} +1 -1
  201. package/dist/{Pagination.vue_vue_type_style_index_0_lang-DdoGJbhR.js → Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js} +7 -6
  202. package/dist/Popover/Popover.d.ts +122 -20
  203. package/dist/Popover/index.js +1 -1
  204. package/dist/Popover/index.umd.cjs +1 -1
  205. package/dist/{Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js → Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js} +2 -2
  206. package/dist/{Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js → Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js} +1 -1
  207. package/dist/Progress/Progress.d.ts +6 -5
  208. package/dist/Progress/index.js +1 -1
  209. package/dist/Progress/index.umd.cjs +1 -1
  210. package/dist/{Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js → Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js} +24 -24
  211. package/dist/{Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js → Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js} +1 -1
  212. package/dist/RadioGroup/RadioGroup.d.ts +2 -1
  213. package/dist/RadioGroup/RadioGroupItem.d.ts +3 -3
  214. package/dist/RadioGroup/index.js +1 -1
  215. package/dist/RadioGroup/index.umd.cjs +1 -1
  216. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-D8f-sgna.js → RadioGroup.vue_vue_type_script_setup_true_lang-D-9WHezS.js} +1 -1
  217. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-Daq1nx9-.js → RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js} +1 -1
  218. package/dist/ScrollContainer/Mask.d.ts +1 -1
  219. package/dist/ScrollContainer/ScrollContainer.d.ts +184 -15
  220. package/dist/ScrollContainer/index.js +1 -1
  221. package/dist/ScrollContainer/index.umd.cjs +1 -1
  222. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-DqKhWsL2.js → ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js} +1 -1
  223. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js → ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js} +2 -2
  224. package/dist/Segmented/Segmented.d.ts +4 -3
  225. package/dist/Segmented/index.js +1 -1
  226. package/dist/Segmented/index.umd.cjs +1 -1
  227. package/dist/{Segmented.vue_vue_type_style_index_0_lang-3JqUJ0d7.js → Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js} +1 -1
  228. package/dist/{Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js → Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js} +2 -2
  229. package/dist/Select/Select.d.ts +8 -7
  230. package/dist/Select/SelectLabel.d.ts +3 -2
  231. package/dist/Select/SelectTrigger.d.ts +1 -1
  232. package/dist/Select/index.js +1 -1
  233. package/dist/Select/index.umd.cjs +1 -1
  234. package/dist/Select.vue_vue_type_style_index_0_lang-DzWX4QRp.js +770 -0
  235. package/dist/Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js +1 -0
  236. package/dist/Shortcut/Shortcut.d.ts +1 -1
  237. package/dist/Shortcut/index.js +1 -1
  238. package/dist/Shortcut/index.umd.cjs +1 -1
  239. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-QKWaOeSf.js → Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js} +2 -2
  240. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js → Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js} +1 -1
  241. package/dist/Skeleton/Skeleton.d.ts +2 -2
  242. package/dist/Spinner/Spinner.d.ts +4 -3
  243. package/dist/Spinner/index.js +1 -1
  244. package/dist/Spinner/index.umd.cjs +1 -1
  245. package/dist/{Spinner.vue_vue_type_style_index_0_lang-y2U5MnVr.js → Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js} +1 -1
  246. package/dist/{Spinner.vue_vue_type_style_index_0_lang-ypYtsXl_.js → Spinner.vue_vue_type_style_index_0_lang-NYJmdFpB.js} +1 -1
  247. package/dist/SubMenu/SubMenu.d.ts +4 -2
  248. package/dist/SubMenu/index.js +1 -1
  249. package/dist/SubMenu/index.umd.cjs +1 -1
  250. package/dist/Switch/Switch.d.ts +5 -4
  251. package/dist/Switch/index.js +1 -1
  252. package/dist/Switch/index.umd.cjs +1 -1
  253. package/dist/{Switch.vue_vue_type_style_index_0_lang-Dqy63Xsy.js → Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js} +2 -2
  254. package/dist/{Switch.vue_vue_type_style_index_0_lang-G67verEB.js → Switch.vue_vue_type_style_index_0_lang-BIe63Ak0.js} +1 -1
  255. package/dist/{THead.vue_vue_type_style_index_0_lang-Bbxgbizj.js → THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js} +1 -1
  256. package/dist/{THead.vue_vue_type_style_index_0_lang-Dg4UjN2s.js → THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js} +1 -1
  257. package/dist/Table/TBody.d.ts +3 -2
  258. package/dist/Table/THead.d.ts +3 -2
  259. package/dist/Table/Table.d.ts +1 -1
  260. package/dist/Table/Td.d.ts +3 -2
  261. package/dist/Table/Th.d.ts +3 -2
  262. package/dist/Table/Tr.d.ts +3 -2
  263. package/dist/Table/index.js +1 -1
  264. package/dist/Table/index.umd.cjs +1 -1
  265. package/dist/Textarea/Textarea.d.ts +462 -14
  266. package/dist/Textarea/index.js +1 -1
  267. package/dist/Textarea/index.umd.cjs +1 -1
  268. package/dist/{Textarea.vue_vue_type_style_index_0_lang-Crls15aj.js → Textarea.vue_vue_type_style_index_0_lang-BqUWj9j2.js} +1 -1
  269. package/dist/{Textarea.vue_vue_type_style_index_0_lang-95EkbeEZ.js → Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js} +7 -7
  270. package/dist/Tooltip/Tooltip.d.ts +2 -1
  271. package/dist/Tree/Tree.d.ts +3 -2
  272. package/dist/Tree/TreeNode.d.ts +3 -2
  273. package/dist/Tree/index.js +1 -1
  274. package/dist/Tree/index.umd.cjs +1 -1
  275. package/dist/{Tree.vue_vue_type_style_index_0_lang-DitveB9N.js → Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js} +1 -1
  276. package/dist/{Tree.vue_vue_type_style_index_0_lang-CauWPkMW.js → Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js} +6 -6
  277. package/dist/Upload/Upload.d.ts +5 -4
  278. package/dist/Upload/UploadListItem.d.ts +1 -1
  279. package/dist/Upload/UploadTrigger.d.ts +5 -2
  280. package/dist/Upload/index.js +1 -1
  281. package/dist/Upload/index.umd.cjs +1 -1
  282. package/dist/{Upload.vue_vue_type_style_index_0_lang-B9HYX_QI.js → Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js} +6 -6
  283. package/dist/{Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js → Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js} +1 -1
  284. package/dist/index.js +175 -174
  285. package/dist/index.umd.cjs +1 -1
  286. package/dist/style/index.css +1 -1
  287. package/dist/{useInputDataStates-COzmxWTw.js → useInputDataStates-BNwXgt9l.js} +1 -1
  288. package/dist/{useInputDataStates-BWZ4Q3rt.js → useInputDataStates-CM2GJM3c.js} +1 -1
  289. package/dist/utils/index.d.ts +1 -0
  290. package/dist/utils/index.js +10 -9
  291. package/dist/utils/index.umd.cjs +1 -1
  292. package/dist/utils/isEmpty.d.ts +1 -0
  293. package/dist/utils/useInputDataStates.d.ts +2 -2
  294. package/package.json +25 -33
  295. package/dist/Alert.vue_vue_type_style_index_0_lang-BWViURUx.js +0 -1
  296. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-MiT5JEP1.js +0 -1
  297. package/dist/Combobox.vue_vue_type_style_index_0_lang-BSCxn_dP.js +0 -1
  298. package/dist/DataTable.vue_vue_type_style_index_0_lang-itDia0W9.js +0 -1
  299. package/dist/Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js +0 -1
  300. package/dist/Select.vue_vue_type_style_index_0_lang-CarDXTu5.js +0 -712
  301. package/dist/Select.vue_vue_type_style_index_0_lang-ikZ5_KwB.js +0 -1
@@ -1,712 +0,0 @@
1
- import { defineComponent as te, createElementBlock as ze, openBlock as _e, normalizeClass as ke, unref as le, renderSlot as Be, computed as C, h as a, ref as ve, watch as we, useSlots as De, useAttrs as Ae, createBlock as Fe, 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 { g as Te, a as ge } from "./options-Bh1s18jm.js";
5
- import { k as p, e as ce, l as q, s as Y, m as Z, h as Xe, j as Ye, g as Ze, t as Le, o as et } from "./Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js";
6
- import { getBemBlock as tt, getBemElement as y, generateVariantClassList as E, normCls as _ } from "@pantograph/utils";
7
- import { cva as de } from "class-variance-authority";
8
- import { _ as nt } from "./Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js";
9
- import { _ as ot } from "./Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js";
10
- import { _ as xe } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
11
- import { u as rt } from "./useInputDataStates-COzmxWTw.js";
12
- import { u as it } from "./useLazyLoading-Zo-PEp2E.js";
13
- import { g as at, b as lt } from "./Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js";
14
- import { u as pt } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js";
15
- import { _ as st } from "./ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js";
16
- import { _ as ut } from "./Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js";
17
- import { _ as ct } from "./ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js";
18
- const fe = ["sm", "md", "lg"], gt = ["error", "warning", "success"], [Ie, dt] = Pe("Select"), [ft, mt] = Pe("_Select"), k = tt("select"), vt = /* @__PURE__ */ te({
19
- ...Te("SelectLabel"),
20
- __name: "SelectLabel",
21
- setup(f) {
22
- return (e, n) => (_e(), ze("div", {
23
- class: ke(le(y)(le(k), "label"))
24
- }, [
25
- Be(e.$slots, "default")
26
- ], 2));
27
- }
28
- }), ue = /* @__PURE__ */ te({
29
- name: ge("SelectOption"),
30
- props: {
31
- option: {
32
- type: [Object, String],
33
- required: !0
34
- }
35
- },
36
- slots: Object,
37
- setup(f, {
38
- slots: e
39
- }) {
40
- const n = Ie(), t = C(() => {
41
- switch (n.getSize.value) {
42
- case "sm":
43
- return "2xsm";
44
- case "lg":
45
- return "sm";
46
- case "md":
47
- default:
48
- return "xsm";
49
- }
50
- }), w = C(() => n.getOptionValue(f.option)), u = C(() => n.getOptionLabel(f.option)), G = C(() => n.getOptionIcon(f.option)), K = C(() => n.getOptionDisabled(f.option)), I = y(k, "option"), U = de(I, {
51
- variants: {
52
- size: E(fe, I)
53
- }
54
- });
55
- if (!f.option) throw new Error("option is required");
56
- const D = () => {
57
- var h;
58
- const V = (h = e.indicator) == null ? void 0 : h.call(e, {
59
- option: f.option
60
- });
61
- return p(V) ? a(Ne, {
62
- asChild: !0
63
- }, () => a(ce, {
64
- icon: n.props.indicatorIcon,
65
- size: t.value
66
- })) : V;
67
- }, A = () => {
68
- var P, F, M;
69
- const V = (P = e.default) == null ? void 0 : P.call(e, {
70
- option: f.option
71
- }), h = [];
72
- if (!p(V)) h.push(V);
73
- else {
74
- const W = (F = e.leading) == null ? void 0 : F.call(e, {
75
- option: f.option
76
- }), H = !p(W);
77
- if (G.value || H) {
78
- let L;
79
- H ? L = W : L = a(ce, {
80
- icon: G.value,
81
- size: t.value
82
- }), h.push(a("div", {
83
- class: _(y(I, "leading"), n.props.itemLeadingCls)
84
- }, L));
85
- }
86
- let l;
87
- const O = (M = e.text) == null ? void 0 : M.call(e, {
88
- option: f.option
89
- });
90
- p(O) ? l = u.value : l = O, h.push(a("div", {
91
- class: _(y(I, "text"), n.props.optionTextCls)
92
- }, l));
93
- }
94
- return a("div", {
95
- class: _(y(I, "content"), n.props.optionContentCls)
96
- }, h);
97
- };
98
- return () => a(Ge, {
99
- value: w.value,
100
- textValue: u.value,
101
- disabled: K.value,
102
- class: _(U({
103
- size: n.getSize.value
104
- }), n.props.optionCls)
105
- }, () => [A(), D()]);
106
- }
107
- }), Ct = /* @__PURE__ */ te({
108
- name: ge("SelectTrigger"),
109
- props: {
110
- getOptionSlot: {
111
- type: Function,
112
- required: !0
113
- }
114
- },
115
- setup(f, {
116
- slots: e,
117
- attrs: n
118
- }) {
119
- const t = Ie(), w = ({
120
- value: l
121
- }, O) => {
122
- if (O.stopPropagation(), l && Y(t.modelValue.value) && !t.getDisabled.value) {
123
- const L = t.modelValue.value.filter((J) => J !== l);
124
- t.modelValue.value = L, t.emit("update:modelValue", L);
125
- }
126
- }, u = y(k, "trigger"), G = de(u, {
127
- variants: {
128
- size: E(fe, u),
129
- status: E(gt, u),
130
- bordered: E("bordered", u),
131
- multiple: E("multiple", u),
132
- contentFit: E("content-fit", u),
133
- wrapped: E("wrapped", u),
134
- filled: E("filled", u)
135
- }
136
- }), K = C(() => {
137
- switch (t.getSize.value) {
138
- case "sm":
139
- return "xsm";
140
- case "lg":
141
- return "md";
142
- case "md":
143
- default:
144
- return "sm";
145
- }
146
- }), I = C(() => {
147
- switch (t.getSize.value) {
148
- case "sm":
149
- return "2xsm";
150
- case "md":
151
- default:
152
- return "xsm";
153
- }
154
- }), U = C(() => {
155
- if (!t.props.multiple && ee(t.modelValue.value) && !q(t.modelValue.value))
156
- return t.getOptionByValue(t.modelValue.value);
157
- }), D = (l = U.value) => {
158
- if (t.props.selectedItemIconAsTrailingIcon && Z(l) && "icon" in l)
159
- return l.icon;
160
- }, A = C(() => D()), V = C(() => {
161
- if (!t.props.noTrailing)
162
- return t.props.trailingIcon;
163
- }), h = C(() => !q(t.modelValue.value) && t.props.multiple && Y(t.modelValue.value)), P = C(() => ({
164
- modelValue: he(t.modelValue.value),
165
- open: he(t.open.value)
166
- })), F = (l) => ({
167
- ...P.value,
168
- option: t.getOptionByValue(l)
169
- }), M = C(() => ({
170
- disabled: t.getDisabled.value,
171
- reference: t.props.reference,
172
- tabindex: t.getDisabled.value ? void 0 : 0,
173
- as: "div",
174
- class: _(G({
175
- size: t.getSize.value,
176
- status: t.getStatus.value === "success" && q(t.modelValue.value) ? void 0 : t.getStatus.value,
177
- bordered: t.props.bordered,
178
- multiple: t.props.multiple,
179
- contentFit: t.props.contentFit,
180
- wrapped: t.props.wrapped,
181
- filled: !q(t.modelValue.value)
182
- }), t.props.triggerCls),
183
- ...n
184
- })), W = (l, O = I.value) => a(ce, {
185
- icon: l,
186
- size: O
187
- }), H = () => {
188
- var L;
189
- let l;
190
- const O = (L = e.triggerTrailing) == null ? void 0 : L.call(e, P.value);
191
- if (p(O) ? V.value && (l = W(V.value)) : l = O, l)
192
- return a("div", {
193
- class: _(y(u, "trailing"), t.props.triggerTrailingCls)
194
- }, l);
195
- };
196
- return () => {
197
- var J;
198
- const l = (J = e.trigger) == null ? void 0 : J.call(e, P.value), L = (() => {
199
- if (p(l)) return !1;
200
- const T = Xe(l) ?? null, N = T.length === 1 ? T[0] : T;
201
- return N ? Ye(N) && !Ze(N) : !0;
202
- })();
203
- return a(Re, {
204
- ...M.value,
205
- asChild: L,
206
- key: String(L)
207
- }, {
208
- default: () => {
209
- var Q;
210
- if (!p(l))
211
- return l;
212
- const T = (Q = e.triggerLeading) == null ? void 0 : Q.call(e, P.value), N = !p(T), ne = () => {
213
- var $;
214
- if (!t.props.multiple && !Y(t.modelValue.value)) {
215
- const j = ($ = f.getOptionSlot("leading", t.modelValue.value)) == null ? void 0 : $();
216
- if (N || j || A.value || t.props.leadingIcon) {
217
- let r;
218
- return p(j) ? A.value ? r = W(A.value) : N ? r = T : t.props.leadingIcon && (r = W(t.props.leadingIcon)) : r = j, a("div", {
219
- class: _(y(u, "leading"), t.props.triggerLeadingCls)
220
- }, r);
221
- }
222
- }
223
- }, pe = () => {
224
- const $ = [];
225
- if (q(t.modelValue.value)) {
226
- if (t.props.placeholder && !t.props.multiple) {
227
- const j = () => {
228
- var b;
229
- const r = (b = e.placeholder) == null ? void 0 : b.call(e, P.value);
230
- return p(r) ? t.props.placeholder : r;
231
- };
232
- $.push(j());
233
- }
234
- } else {
235
- const r = (() => {
236
- var B, m, g;
237
- const b = (B = e.triggerValue) == null ? void 0 : B.call(e, P.value);
238
- if (!p(b)) return b;
239
- if (t.props.multiple && Y(t.modelValue.value))
240
- return a(ct, {
241
- maxCount: t.props.maxCount,
242
- size: K.value,
243
- color: "primary",
244
- closeable: !t.getDisabled.value,
245
- noPopover: !0,
246
- noWrap: !t.props.wrapped,
247
- class: _(y(u, "tag_list"), t.props.tagListCls),
248
- onClose: w
249
- }, () => t.modelValue.value.map((c) => {
250
- var X;
251
- const x = (o) => {
252
- var v;
253
- const i = (v = e.tagClose) == null ? void 0 : v.call(e, {
254
- ...F(c),
255
- onClose: o
256
- });
257
- return p(i) ? null : i;
258
- }, z = (X = f.getOptionSlot("default", c)) == null ? void 0 : X(), se = () => {
259
- var v, s;
260
- const o = (v = f.getOptionSlot("text", c)) == null ? void 0 : v(), i = (s = e.tagText) == null ? void 0 : s.call(e, F(c));
261
- return p(i) ? p(z) ? p(o) ? t.getLabelByValue(c) : o : z : i;
262
- }, ie = ({
263
- size: o
264
- }) => {
265
- var S, d;
266
- if (!p(z)) return null;
267
- const i = (S = f.getOptionSlot("leading", c)) == null ? void 0 : S(), v = (d = e.tagLeading) == null ? void 0 : d.call(e, F(c)), s = D(t.getOptionByValue(c)) ?? t.props.leadingIcon;
268
- return p(v) ? p(i) ? s ? W(s, o) : p(T) ? null : T : i : v;
269
- }, ae = () => {
270
- var i;
271
- const o = (i = e.tagTrailing) == null ? void 0 : i.call(e, F(c));
272
- return p(o) ? null : o;
273
- };
274
- return a(ut, {
275
- value: c,
276
- class: _(y(u, "tag"), t.props.tagCls),
277
- closeIconCls: y(u, "tag__close")
278
- }, {
279
- text: se,
280
- leading: ie,
281
- trailing: ae,
282
- close: x
283
- });
284
- }));
285
- if (!Y(t.modelValue.value)) {
286
- const c = (m = f.getOptionSlot("default", t.modelValue.value)) == null ? void 0 : m(), x = (g = f.getOptionSlot("text", t.modelValue.value)) == null ? void 0 : g();
287
- return p(c) ? p(x) ? ee(t.modelValue.value) ? t.getLabelByValue(t.modelValue.value) : t.modelValue.value : x : c;
288
- }
289
- })();
290
- r && $.push(r);
291
- }
292
- return $;
293
- }, R = [], oe = ne();
294
- p(oe) || R.push(oe), R.push(a(je, {
295
- class: _(y(u, "content"), t.props.triggerContentCls, q(t.modelValue.value) ? t.props.triggerContentPlaceholderCls : t.props.triggerContentValueCls),
296
- as: "div",
297
- key: String(h.value),
298
- asChild: h.value
299
- }, {
300
- default: pe
301
- }));
302
- const re = H();
303
- return p(re) || R.push(re), R;
304
- }
305
- });
306
- };
307
- }
308
- }), yt = /* @__PURE__ */ te({
309
- name: ge("SelectWrapper"),
310
- setup(f, {
311
- slots: e
312
- }) {
313
- const n = ft(), t = Ke(), w = ve();
314
- it({
315
- target: w
316
- });
317
- const u = ve(), G = at({
318
- triggerRef: u,
319
- props: n.props
320
- }), {
321
- getFlipOnDir: K,
322
- getDir: I
323
- } = pt(), U = K("reversePlacementOnDir"), D = I(), A = lt({
324
- props: n.props,
325
- flip: U,
326
- emitsAsProps: n.emitsAsProps,
327
- _dir: D,
328
- controlAutoFocus: !1,
329
- extraPropNames: ["bodyLock", "position"]
330
- }), V = ({
331
- key: r,
332
- getterKey: b,
333
- defaultValue: B,
334
- noReturnOption: m
335
- }) => (g) => {
336
- const c = Ve(B) ? B(g) : B;
337
- if (Z(g)) {
338
- const x = g[r] ?? c, z = b && n.props[b];
339
- if (z) {
340
- if (ee(z))
341
- return g[z] ?? x;
342
- if (Ve(z)) return z(g) ?? x;
343
- }
344
- return x;
345
- }
346
- return ee(g) && !m ? g ?? c : c;
347
- }, h = V({
348
- getterKey: "getValue",
349
- key: "value"
350
- }), P = V({
351
- getterKey: "getLabel",
352
- key: "label",
353
- defaultValue: h
354
- }), F = V({
355
- getterKey: "getIcon",
356
- key: "icon",
357
- noReturnOption: !0
358
- }), M = (r) => {
359
- var b;
360
- if ((b = n.props.options) != null && b.length)
361
- for (const B of n.props.options) {
362
- if (h(B) === r) return B;
363
- const m = O(B);
364
- if (m != null && m.length) {
365
- for (const g of m)
366
- if (h(g) === r) return g;
367
- }
368
- }
369
- return r;
370
- }, W = (r) => {
371
- const b = M(r);
372
- return b ? P(b) ?? r : r;
373
- }, H = V({
374
- getterKey: "getDisabled",
375
- key: "disabled",
376
- defaultValue: !1,
377
- noReturnOption: !0
378
- }), l = V({
379
- getterKey: "getGroupLabel",
380
- key: "label",
381
- noReturnOption: !0
382
- }), O = V({
383
- getterKey: "getGroupOptions",
384
- key: "options",
385
- noReturnOption: !0
386
- }), {
387
- getDisabled: L,
388
- getStatus: J,
389
- getSize: T
390
- } = rt({
391
- getDisabled: () => n.props.disabled,
392
- getSize: () => n.props.size,
393
- getStatus: () => n.props.status
394
- });
395
- dt({
396
- props: n.props,
397
- attrs: n.attrs,
398
- emit: n.emit,
399
- getOptionValue: h,
400
- getOptionLabel: P,
401
- getOptionDisabled: H,
402
- getOptionIcon: F,
403
- getOptionByValue: M,
404
- getLabelByValue: W,
405
- getDisabled: L,
406
- getStatus: J,
407
- getSize: T,
408
- ...t,
409
- modelValue: t.modelValue
410
- }), we(() => [n.props.clearOnChangeMultiple, n.props.multiple], () => {
411
- n.props.clearOnChangeMultiple && (t.modelValue.value = void 0, n.emit("update:modelValue", void 0));
412
- });
413
- const N = C(() => {
414
- const r = n.props.scrollContainerProps ?? {};
415
- return {
416
- ...r,
417
- areaCls: [y(k, "scroll_area"), r == null ? void 0 : r.class, r == null ? void 0 : r.areaCls]
418
- };
419
- }), ne = y(k, "popup"), pe = de(ne, {
420
- variants: {
421
- size: E(fe, ne)
422
- }
423
- }), R = (r) => {
424
- if (et(r))
425
- return `${r}px`;
426
- if (typeof r == "string")
427
- return r;
428
- }, oe = C(() => R(n.props.popupWidth)), re = C(() => R(n.props.popupHeight)), Q = C(() => R(n.props.minWidth)), $ = C(() => ({
429
- type: T.value === "sm" ? "simple" : "advance",
430
- ...be(n.props.emptyProps ?? {}, ["class"])
431
- })), j = C(() => be(n.props.skeletonProps ?? {}, ["class"]));
432
- return () => {
433
- var ie, ae, X;
434
- const r = (o) => {
435
- var i;
436
- if ((i = n.props.options) != null && i.length && o > 0)
437
- return !!n.props.options[o - 1];
438
- }, b = (o) => {
439
- var i, v;
440
- if ((i = n.props.options) != null && i.length && o > 0) {
441
- const s = n.props.options[o - 1];
442
- return !!(s && ((v = O(s)) != null && v.length));
443
- }
444
- }, B = (ie = e.default) == null ? void 0 : ie.call(e, {}), m = (ae = Le(B, ue)) == null ? void 0 : ae.filter((o) => {
445
- var i;
446
- return Z(o == null ? void 0 : o.props) && ((i = o == null ? void 0 : o.props) == null ? void 0 : i.option);
447
- }), g = [];
448
- (n.props.options ?? []).forEach((o, i) => {
449
- const v = (S) => a(ue, {
450
- option: S
451
- }, {
452
- default: () => {
453
- var d;
454
- return (d = e.option) == null ? void 0 : d.call(e, {
455
- option: S
456
- });
457
- },
458
- leading: () => {
459
- var d;
460
- return (d = e.optionLeading) == null ? void 0 : d.call(e, {
461
- option: S
462
- });
463
- },
464
- indicator: () => {
465
- var d;
466
- return (d = e.optionIndicator) == null ? void 0 : d.call(e, {
467
- option: S
468
- });
469
- },
470
- text: () => {
471
- var d;
472
- return (d = e.optionText) == null ? void 0 : d.call(e, {
473
- option: S
474
- });
475
- }
476
- }), s = O(o);
477
- if (s != null && s.length) {
478
- r(i) && g.push(a(xe));
479
- const S = l(o);
480
- S && g.push(a(vt, {
481
- class: n.props.labelCls
482
- }, () => S)), s.forEach((d) => {
483
- g.push(v(d));
484
- });
485
- } else b(i) ? g.push(a(xe)) : g.push(v(o));
486
- });
487
- const c = Le(g, ue).filter((o) => {
488
- var i;
489
- return Z(o == null ? void 0 : o.props) && ((i = o == null ? void 0 : o.props) == null ? void 0 : i.option);
490
- }), x = !!(c != null && c.length || m != null && m.length), z = (o, i) => {
491
- var v;
492
- if (x && !q(i) && ee(i)) {
493
- const s = m != null && m.length ? m : c;
494
- if (s.length) {
495
- const S = s.find((d) => {
496
- var me;
497
- return Z(d.props) && h((me = d.props) == null ? void 0 : me.option) === i;
498
- });
499
- return (v = S == null ? void 0 : S.children) == null ? void 0 : v[o];
500
- }
501
- }
502
- }, se = () => {
503
- var i, v;
504
- const o = [];
505
- if (x || n.props.loading) {
506
- const s = [];
507
- if (x && (m != null && m.length ? s.push(B) : s.push(...g)), n.props.loading) {
508
- const S = (i = e.loading) == null ? void 0 : i.call(e, {});
509
- if (!p(S)) s.push(S);
510
- else {
511
- const d = new Array(x ? 2 : n.props.loadingRowCount).fill(1);
512
- s.push(...d.map(() => a(ot, {
513
- size: T.value,
514
- class: _(y(k, "skeleton"), n.props.skeletonCls),
515
- ...j.value
516
- })));
517
- }
518
- }
519
- o.push(a("div", {
520
- class: _(y(k, "options"), n.props.optionsCls)
521
- }, s));
522
- } else if (!x) {
523
- const s = (v = e.empty) == null ? void 0 : v.call(e, $.value);
524
- p(s) ? o.push(a(nt, {
525
- class: _(y(k, "empty"), n.props.emptyCls),
526
- ...$.value
527
- }, {
528
- title: e.emptyTitle,
529
- description: e.emptyDescription,
530
- actions: e.emptyActions,
531
- image: e.emptyImage
532
- })) : o.push(s);
533
- }
534
- return n.props.lazyLoading && o.push(a("div", {
535
- class: y(k, "lazy_loading")
536
- }, a("div", {
537
- class: y(k, "lazy_loading_trigger"),
538
- ref: w
539
- }))), o;
540
- };
541
- return [a(Ct, {
542
- getOptionSlot: z,
543
- ref: u,
544
- ...n.attrs,
545
- style: {
546
- ...((X = n.attrs) == null ? void 0 : X.style) ?? {},
547
- "--ptc-select-trigger-min-w": Q.value
548
- }
549
- }, {
550
- trigger: e.trigger,
551
- triggerLeading: e.triggerLeading,
552
- placeholder: e.placeholder,
553
- triggerValue: e.triggerValue,
554
- triggerTrailing: e.triggerTrailing,
555
- tagClose: e.tagClose,
556
- tagTrailing: e.tagTrailing,
557
- tagLeading: e.tagLeading,
558
- tagText: e.tagText
559
- }), a(Me, G.value, () => a(qe, {
560
- ...A.value,
561
- class: _(pe(n.props), n.props.popupCls),
562
- style: {
563
- display: t.open.value ? void 0 : "none",
564
- zIndex: n.props.zIndex,
565
- "--ptc-select-popup-width": n.props.samePopupWidth ? void 0 : oe.value,
566
- "--ptc-select-popup-height": re.value,
567
- "--ptc-select-trigger-min-w": Q.value
568
- }
569
- }, () => a(st, N.value, se)))];
570
- };
571
- }
572
- }), Ft = /* @__PURE__ */ te({
573
- ...Te("Select"),
574
- __name: "Select",
575
- props: {
576
- status: {},
577
- size: { default: "md" },
578
- multiple: { type: Boolean, default: void 0 },
579
- contentFit: { type: Boolean },
580
- wrapped: { type: Boolean },
581
- noTrailing: { type: Boolean },
582
- leadingIcon: {},
583
- zIndex: {},
584
- trailingIcon: { default: "tabler:chevron-down" },
585
- selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
586
- maxCount: {},
587
- to: {},
588
- placeholder: {},
589
- indicatorIcon: { default: "tabler:check" },
590
- options: {},
591
- getDisabled: {},
592
- getLabel: {},
593
- getValue: {},
594
- getGroupOptions: {},
595
- getGroupLabel: {},
596
- getIcon: {},
597
- placement: { default: "bottom" },
598
- reversePlacementOnDir: {},
599
- loading: { type: Boolean },
600
- skeletonProps: {},
601
- loadingRowCount: { default: 10 },
602
- lazyLoading: { type: Boolean },
603
- bordered: { type: Boolean, default: !0 },
604
- clearOnChangeMultiple: { type: Boolean, default: !0 },
605
- triggerCls: {},
606
- triggerLeadingCls: {},
607
- triggerContentCls: {},
608
- triggerContentPlaceholderCls: {},
609
- triggerContentValueCls: {},
610
- triggerTrailingCls: {},
611
- itemLeadingCls: {},
612
- optionCls: {},
613
- tagListCls: {},
614
- tagCls: {},
615
- popupCls: {},
616
- labelCls: {},
617
- optionsCls: {},
618
- optionTextCls: {},
619
- optionContentCls: {},
620
- emptyCls: {},
621
- skeletonCls: {},
622
- scrollContainerProps: {},
623
- emptyProps: {},
624
- samePopupWidth: { type: Boolean, default: !0 },
625
- popupHeight: { default: 384 },
626
- popupWidth: {},
627
- minWidth: {},
628
- open: { type: Boolean, default: void 0 },
629
- defaultOpen: { type: Boolean, default: void 0 },
630
- defaultValue: {},
631
- modelValue: {},
632
- by: {},
633
- dir: {},
634
- autocomplete: {},
635
- disabled: { type: Boolean, default: void 0 },
636
- name: {},
637
- required: { type: Boolean },
638
- reference: {},
639
- forceMount: { type: Boolean, default: void 0 },
640
- position: { default: "popper" },
641
- bodyLock: { type: Boolean },
642
- side: {},
643
- sideOffset: { default: 4 },
644
- align: {},
645
- alignOffset: {},
646
- avoidCollisions: { type: Boolean, default: void 0 },
647
- collisionBoundary: {},
648
- collisionPadding: { default: 4 },
649
- arrowPadding: {},
650
- sticky: {},
651
- hideWhenDetached: { type: Boolean, default: void 0 },
652
- positionStrategy: { default: "fixed" },
653
- updatePositionStrategy: {},
654
- disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
655
- prioritizePosition: { type: Boolean, default: void 0 },
656
- asChild: { type: Boolean },
657
- as: {},
658
- defer: { type: Boolean }
659
- },
660
- emits: ["update:modelValue", "update:open", "closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
661
- setup(f, { emit: e }) {
662
- const n = f, t = e, w = Ue(t), u = C(
663
- () => Je(
664
- {
665
- ...Oe(n, [
666
- "open",
667
- "defaultOpen",
668
- "defaultValue",
669
- "modelValue",
670
- "by",
671
- "dir",
672
- "multiple",
673
- "autocomplete",
674
- "disabled"
675
- ]),
676
- ...Oe(w, [
677
- "onUpdate:modelValue",
678
- "onUpdate:open"
679
- ])
680
- },
681
- Qe
682
- )
683
- ), G = De(), K = Ae();
684
- return mt({
685
- attrs: K,
686
- props: n,
687
- emit: t,
688
- emitsAsProps: w
689
- }), (I, U) => (_e(), Fe(le(He), Ce(ye(u.value)), {
690
- default: Se(() => [
691
- We(le(yt), null, $e({ _: 2 }, [
692
- Ee(Object.keys(G), (D) => ({
693
- name: D,
694
- fn: Se((A) => [
695
- Be(I.$slots, D, Ce(ye(A)))
696
- ])
697
- }))
698
- ]), 1024)
699
- ]),
700
- _: 3
701
- }, 16));
702
- }
703
- });
704
- export {
705
- ue as S,
706
- Ft as _,
707
- vt as a,
708
- fe as b,
709
- gt as c,
710
- Ie as i,
711
- dt as p
712
- };