@pantograph/vue 0.23.32 → 0.23.35

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 (352) hide show
  1. package/dist/ActionButton/ActionButton.d.ts +4 -3
  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-YPrkYEHL.js → ActionButton.vue_vue_type_script_setup_true_lang-BGrL1xRj.js} +1 -1
  5. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-CDY-S7kB.js → ActionButton.vue_vue_type_script_setup_true_lang-jhaE9j9X.js} +3 -3
  6. package/dist/Alert/Alert.d.ts +7 -7
  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-89bXo9jG.js +121 -0
  10. package/dist/Alert.vue_vue_type_style_index_0_lang-BdhEOwG7.js +1 -0
  11. package/dist/Avatar/Avatar.d.ts +2 -2
  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-YkXWR99l.js +1 -0
  15. package/dist/{Avatar.vue_vue_type_style_index_0_lang-Cu0myQ2q.js → Avatar.vue_vue_type_style_index_0_lang-kaq1iN2X.js} +55 -55
  16. package/dist/AvatarGroup/AvatarGroup.d.ts +2 -2
  17. package/dist/AvatarGroup/index.js +1 -1
  18. package/dist/AvatarGroup/index.umd.cjs +1 -1
  19. package/dist/Badge/index.js +1 -1
  20. package/dist/Badge/index.umd.cjs +1 -1
  21. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Cn39UXpc.js → Badge.vue_vue_type_script_setup_true_lang-BAQIKtam.js} +1 -1
  22. package/dist/{Badge.vue_vue_type_script_setup_true_lang-xUkbs4Ce.js → Badge.vue_vue_type_script_setup_true_lang-C6x4r-P7.js} +3 -3
  23. package/dist/Base/BaseBadge/BaseBadge.d.ts +2 -2
  24. package/dist/Base/BaseButton/BaseButton.d.ts +3 -2
  25. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BFkYFuq2.js → BaseBadge.vue_vue_type_style_index_0_lang-CAdrPXmH.js} +4 -4
  26. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-uB5-HVX9.js → BaseBadge.vue_vue_type_style_index_0_lang-Clv4Io8O.js} +1 -1
  27. package/dist/BaseButton.vue_vue_type_style_index_0_lang-Cc9byFK5.js +1 -0
  28. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BPityrBM.js → BaseButton.vue_vue_type_style_index_0_lang-favf_C7t.js} +35 -32
  29. package/dist/Button/Button.d.ts +7 -6
  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-DzN5OhXV.js → Button.vue_vue_type_script_setup_true_lang-DTZUw0pf.js} +19 -18
  33. package/dist/Button.vue_vue_type_script_setup_true_lang-dyN0fBVx.js +1 -0
  34. package/dist/ButtonGroup/ButtonGroup.d.ts +2 -2
  35. package/dist/ButtonGroup/index.js +1 -1
  36. package/dist/ButtonGroup/index.umd.cjs +1 -1
  37. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BflgAkUi.js +58 -0
  38. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-DL19WEBS.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DwaBBOgk.js} +1 -1
  39. package/dist/Checkbox/Checkbox.d.ts +6 -6
  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-D_UcZD7p.js +1 -0
  43. package/dist/Checkbox.vue_vue_type_style_index_0_lang-Dzren1pf.js +223 -0
  44. package/dist/CheckboxGroup/index.js +1 -1
  45. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  46. package/dist/Chip/Chip.d.ts +6 -6
  47. package/dist/Chip/index.js +2 -2
  48. package/dist/Chip/index.umd.cjs +1 -1
  49. package/dist/Chip.vue_vue_type_style_index_0_lang-BLjUJgbj.js +1 -0
  50. package/dist/Chip.vue_vue_type_style_index_0_lang-BPdU3Pgk.js +123 -0
  51. package/dist/ChipGroup/ChipGroup.d.ts +2 -2
  52. package/dist/ChipGroup/index.js +1 -1
  53. package/dist/ChipGroup/index.umd.cjs +1 -1
  54. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-BHE3G-1b.js → ChipGroup.vue_vue_type_style_index_0_lang-D4A14AxB.js} +19 -19
  55. package/dist/ChipGroup.vue_vue_type_style_index_0_lang-vXOtvFCA.js +1 -0
  56. package/dist/ColorPicker/ColorPicker.d.ts +2 -2
  57. package/dist/ColorPicker/index.js +1 -1
  58. package/dist/ColorPicker/index.umd.cjs +1 -1
  59. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-hkEm8s8Y.js → ColorPicker.vue_vue_type_style_index_0_lang-CAzVW3da.js} +748 -755
  60. package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CYPF-q6f.js +4 -0
  61. package/dist/ColorSwatch/index.js +1 -1
  62. package/dist/ColorSwatch/index.umd.cjs +1 -1
  63. package/dist/{ColorSwatch-BvLJgm8t.js → ColorSwatch-BRe9OLTq.js} +1 -1
  64. package/dist/{ColorSwatch-BFwCCGkk.js → ColorSwatch-LVdDBugO.js} +1 -1
  65. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BnpzS5m2.js +1 -0
  66. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-sxIVsDtk.js → ColorSwatch.vue_vue_type_style_index_0_lang-htOyCGxU.js} +31 -31
  67. package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +2 -2
  68. package/dist/ColorSwatchGroup/index.js +1 -1
  69. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  70. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BH3ul93i.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cv2D2XJ5.js} +58 -59
  71. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DFUXE61f.js +1 -0
  72. package/dist/ColorTrigger/index.js +1 -1
  73. package/dist/ColorTrigger/index.umd.cjs +1 -1
  74. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DYsDt2q7.js → ColorTrigger.vue_vue_type_style_index_0_lang-CNeFfFIE.js} +33 -31
  75. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-nVzcYP7q.js +1 -0
  76. package/dist/Combobox/index.d.ts +1 -1
  77. package/dist/Combobox/index.js +1 -1
  78. package/dist/Combobox/index.umd.cjs +1 -1
  79. package/dist/Combobox/types.d.ts +21 -19
  80. package/dist/{Combobox.vue_vue_type_style_index_0_lang-acRV8Hk_.js → Combobox.vue_vue_type_style_index_0_lang-Cj3maBpd.js} +231 -229
  81. package/dist/Combobox.vue_vue_type_style_index_0_lang-Dtf_JcyR.js +1 -0
  82. package/dist/Comment/Comment.d.ts +19 -14
  83. package/dist/Comment/CommentAction.d.ts +1 -1
  84. package/dist/Comment/CommentEditor.d.ts +29 -27
  85. package/dist/Comment/CommentTrigger.d.ts +2 -2
  86. package/dist/Comment/index.js +1772 -341
  87. package/dist/Comment/index.umd.cjs +1 -1
  88. package/dist/ConfigProvider/index.d.ts +2 -2
  89. package/dist/ConfigProvider/index.js +2 -2
  90. package/dist/ConfigProvider/index.umd.cjs +1 -1
  91. package/dist/DataTable/DataTable.d.ts +2 -2
  92. package/dist/DataTable/DataTable.model.d.ts +2 -2
  93. package/dist/DataTable/index.js +1 -1
  94. package/dist/DataTable/index.umd.cjs +1 -1
  95. package/dist/DataTable/types.d.ts +7 -7
  96. package/dist/{DataTable.vue_vue_type_style_index_0_lang-DeFWy19J.js → DataTable.vue_vue_type_style_index_0_lang-CW2i09wf.js} +170 -170
  97. package/dist/DataTable.vue_vue_type_style_index_0_lang-rouccC9l.js +1 -0
  98. package/dist/Divider/Divider.d.ts +2 -2
  99. package/dist/Divider/index.js +1 -1
  100. package/dist/Divider/index.umd.cjs +1 -1
  101. package/dist/Divider.vue_vue_type_style_index_0_lang-B1VnMpBg.js +1 -0
  102. package/dist/Divider.vue_vue_type_style_index_0_lang-CfBklijs.js +36 -0
  103. package/dist/DropZone/DropZone.d.ts +5 -5
  104. package/dist/DropZone/index.js +1 -1
  105. package/dist/DropZone/index.umd.cjs +1 -1
  106. package/dist/DropZone.vue_vue_type_style_index_0_lang-4zdO8B11.js +1 -0
  107. package/dist/DropZone.vue_vue_type_style_index_0_lang-CF9qXlg0.js +126 -0
  108. package/dist/Empty/Empty.d.ts +8 -8
  109. package/dist/Empty/index.js +1 -1
  110. package/dist/Empty/index.umd.cjs +1 -1
  111. package/dist/{Empty.vue_vue_type_style_index_0_lang-7tbvqB1R.js → Empty.vue_vue_type_style_index_0_lang-BAbEBeZo.js} +66 -64
  112. package/dist/Empty.vue_vue_type_style_index_0_lang-CLG9v3ny.js +1 -0
  113. package/dist/FloatButton/FloatButton.d.ts +5 -4
  114. package/dist/FloatButton/index.js +1 -1
  115. package/dist/FloatButton/index.umd.cjs +1 -1
  116. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BVJZNZm4.js +1 -0
  117. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CyPn7BP9.js → FloatButton.vue_vue_type_script_setup_true_lang-PYw1Yz9o.js} +16 -15
  118. package/dist/Form/Form.d.ts +4 -4
  119. package/dist/Form/FormItem.d.ts +6 -6
  120. package/dist/Form/index.js +1 -1
  121. package/dist/Form/index.umd.cjs +1 -1
  122. package/dist/FormValidation/FormValidation.d.ts +2 -2
  123. package/dist/GOPicker/GOPicker.d.ts +6 -6
  124. package/dist/GOPicker/GOPicker.model.d.ts +8 -8
  125. package/dist/GOPicker/index.js +1 -1
  126. package/dist/GOPicker/index.umd.cjs +1 -1
  127. package/dist/GOPicker.vue_vue_type_style_index_0_lang-Bb05nUVP.js +1 -0
  128. package/dist/{GOPicker.vue_vue_type_style_index_0_lang-BVoqsUSP.js → GOPicker.vue_vue_type_style_index_0_lang-DVZ2wSgV.js} +134 -138
  129. package/dist/GraphicalObject/index.js +1 -1
  130. package/dist/GraphicalObject/index.umd.cjs +1 -1
  131. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-wa2gzF3h.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C949W-Ro.js} +4 -4
  132. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-C8xqfzNN.js → GraphicalObject.vue_vue_type_script_setup_true_lang-EviuZ52W.js} +1 -1
  133. package/dist/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +2 -2
  134. package/dist/GraphicalObjectGroup/index.js +1 -1
  135. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  136. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DNZCFMGG.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-CYUJM_Vv.js} +15 -15
  137. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DAXoXPPu.js +1 -0
  138. package/dist/Icon/Icon.d.ts +2 -2
  139. package/dist/Icon/index.js +1 -1
  140. package/dist/Icon/index.umd.cjs +1 -1
  141. package/dist/{Icon.vue_vue_type_style_index_0_lang-B5G5kKKT.js → Icon.vue_vue_type_style_index_0_lang-BUvEzzua.js} +1284 -1286
  142. package/dist/Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js +9 -0
  143. package/dist/IconButton/IconButton.d.ts +7 -6
  144. package/dist/IconButton/index.js +1 -1
  145. package/dist/IconButton/index.umd.cjs +1 -1
  146. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-C2rb5OIv.js → IconButton.vue_vue_type_script_setup_true_lang-BBnCpnF1.js} +7 -6
  147. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DynLmo_n.js +1 -0
  148. package/dist/Image/Image.d.ts +4 -4
  149. package/dist/Image/index.js +1 -1
  150. package/dist/Image/index.umd.cjs +1 -1
  151. package/dist/Image.vue_vue_type_style_index_0_lang-B43Rg3w7.js +1 -0
  152. package/dist/Image.vue_vue_type_style_index_0_lang-UVOAmZXt.js +125 -0
  153. package/dist/IndentLevel/IndentLevel.d.ts +2 -2
  154. package/dist/IndentLevel/index.js +1 -1
  155. package/dist/IndentLevel/index.umd.cjs +1 -1
  156. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-59akXJBr.js +96 -0
  157. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CELNQ3jz.js +1 -0
  158. package/dist/Indicator/index.js +1 -1
  159. package/dist/Indicator/index.umd.cjs +1 -1
  160. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CLTWioGg.js → Indicator.vue_vue_type_script_setup_true_lang-AJV4EFOO.js} +3 -3
  161. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-CElSyzf2.js → Indicator.vue_vue_type_script_setup_true_lang-BQqMdFAx.js} +1 -1
  162. package/dist/Input/index.js +1 -1
  163. package/dist/Input/index.umd.cjs +1 -1
  164. package/dist/{Input.vue_vue_type_style_index_0_lang-xmespk2m.js → Input.vue_vue_type_style_index_0_lang-D4aCRGW6.js} +4 -4
  165. package/dist/{Input.vue_vue_type_style_index_0_lang-lTJ9hmcg.js → Input.vue_vue_type_style_index_0_lang-DEQgofJ1.js} +1 -1
  166. package/dist/Kbd/Kbd.d.ts +3 -3
  167. package/dist/Kbd/index.js +1 -1
  168. package/dist/Kbd/index.umd.cjs +1 -1
  169. package/dist/Kbd.vue_vue_type_style_index_0_lang-CUGyyeHh.js +1 -0
  170. package/dist/Kbd.vue_vue_type_style_index_0_lang-DpjuML9o.js +47 -0
  171. package/dist/Label/Label.d.ts +9 -9
  172. package/dist/Label/index.js +1 -1
  173. package/dist/Label/index.umd.cjs +1 -1
  174. package/dist/Link/Link.d.ts +3 -3
  175. package/dist/Link/index.js +1 -1
  176. package/dist/Link/index.umd.cjs +1 -1
  177. package/dist/Link.vue_vue_type_style_index_0_lang-BfC3SwbG.js +1 -0
  178. package/dist/Link.vue_vue_type_style_index_0_lang-CsBkek74.js +77 -0
  179. package/dist/Menu/Menu.d.ts +3 -3
  180. package/dist/Menu/index.js +1 -1
  181. package/dist/Menu/index.umd.cjs +1 -1
  182. package/dist/MenuItem/MenuItemContent.d.ts +9 -9
  183. package/dist/MenuItem/index.js +1 -1
  184. package/dist/MenuItem/index.umd.cjs +1 -1
  185. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-CbDniwiC.js → MenuItem.vue_vue_type_style_index_0_lang-DNlGDoyp.js} +85 -85
  186. package/dist/MenuItem.vue_vue_type_style_index_0_lang-fYybuhKO.js +1 -0
  187. package/dist/Pagination/index.d.ts +1 -1
  188. package/dist/Pagination/index.js +1 -5
  189. package/dist/Pagination/index.umd.cjs +1 -1
  190. package/dist/Popover/Popover.d.ts +4 -3
  191. package/dist/Popover/index.js +1 -1
  192. package/dist/Popover/index.umd.cjs +1 -1
  193. package/dist/{Popover.vue_vue_type_style_index_0_lang-Dk4VAxwA.js → Popover.vue_vue_type_style_index_0_lang-Bdu86hho.js} +15 -14
  194. package/dist/Popover.vue_vue_type_style_index_0_lang-qJ0psPTx.js +1 -0
  195. package/dist/RadioGroup/RadioGroup.d.ts +2 -2
  196. package/dist/RadioGroup/RadioGroupItem.d.ts +4 -4
  197. package/dist/RadioGroup/index.js +1 -1
  198. package/dist/RadioGroup/index.umd.cjs +1 -1
  199. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BVfQx8wD.js +101 -0
  200. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CQ_nySHu.js +1 -0
  201. package/dist/ScrollContainer/Mask.d.ts +2 -2
  202. package/dist/ScrollContainer/ScrollContainer.d.ts +29 -130
  203. package/dist/ScrollContainer/index.js +1 -1
  204. package/dist/ScrollContainer/index.umd.cjs +1 -1
  205. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BLFtmUwR.js +1 -0
  206. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DGUSuq_n.js +224 -0
  207. package/dist/Segmented/index.d.ts +1 -2
  208. package/dist/Segmented/index.js +1 -6
  209. package/dist/Segmented/index.umd.cjs +1 -1
  210. package/dist/Select/index.d.ts +1 -1
  211. package/dist/Select/index.js +1 -1
  212. package/dist/Select/index.umd.cjs +1 -1
  213. package/dist/Select/types.d.ts +19 -18
  214. package/dist/{Select.vue_vue_type_style_index_0_lang-B34UEEAj.js → Select.vue_vue_type_style_index_0_lang-D-dLDaBy.js} +264 -263
  215. package/dist/Select.vue_vue_type_style_index_0_lang-Dk38gPKw.js +1 -0
  216. package/dist/Shortcut/Shortcut.d.ts +2 -2
  217. package/dist/Shortcut/index.js +1 -1
  218. package/dist/Shortcut/index.umd.cjs +1 -1
  219. package/dist/Shortcut.vue_vue_type_style_index_0_lang-BXy0S1__.js +32 -0
  220. package/dist/Shortcut.vue_vue_type_style_index_0_lang-maaUKoPJ.js +1 -0
  221. package/dist/Skeleton/Skeleton.d.ts +3 -3
  222. package/dist/Skeleton/index.js +1 -1
  223. package/dist/Skeleton/index.umd.cjs +1 -1
  224. package/dist/Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js +58 -0
  225. package/dist/Skeleton.vue_vue_type_style_index_0_lang-vYeWc1nI.js +1 -0
  226. package/dist/Spinner/Spinner.d.ts +2 -2
  227. package/dist/Spinner/index.js +1 -1
  228. package/dist/Spinner/index.umd.cjs +1 -1
  229. package/dist/{Spinner.vue_vue_type_style_index_0_lang-CAgX6rYO.js → Spinner.vue_vue_type_style_index_0_lang-BacaASPe.js} +23 -21
  230. package/dist/Spinner.vue_vue_type_style_index_0_lang-D9QAUh3y.js +1 -0
  231. package/dist/SubMenu/index.js +1 -1
  232. package/dist/SubMenu/index.umd.cjs +1 -1
  233. package/dist/Switch/Switch.d.ts +4 -4
  234. package/dist/Switch/index.js +1 -1
  235. package/dist/Switch/index.umd.cjs +1 -1
  236. package/dist/Switch.vue_vue_type_style_index_0_lang--RYeL-jW.js +137 -0
  237. package/dist/Switch.vue_vue_type_style_index_0_lang-gKEdPPxG.js +1 -0
  238. package/dist/THead.vue_vue_type_style_index_0_lang-D0RuVLmr.js +1 -0
  239. package/dist/THead.vue_vue_type_style_index_0_lang-DfOi9-Nh.js +199 -0
  240. package/dist/Table/TBody.d.ts +2 -2
  241. package/dist/Table/THead.d.ts +2 -2
  242. package/dist/Table/Table.d.ts +2 -2
  243. package/dist/Table/Td.d.ts +2 -2
  244. package/dist/Table/Th.d.ts +2 -2
  245. package/dist/Table/Tr.d.ts +2 -2
  246. package/dist/Table/index.js +1 -1
  247. package/dist/Table/index.umd.cjs +1 -1
  248. package/dist/Tabs/Tabs.model.d.ts +2 -0
  249. package/dist/Tabs/index.d.ts +1 -0
  250. package/dist/Tabs/index.js +1 -0
  251. package/dist/Tabs/index.umd.cjs +1 -0
  252. package/dist/Textarea/Textarea.d.ts +46 -23
  253. package/dist/Textarea/index.js +1 -1
  254. package/dist/Textarea/index.umd.cjs +1 -1
  255. package/dist/Textarea.vue_vue_type_style_index_0_lang-0wTOqfhB.js +1 -0
  256. package/dist/Textarea.vue_vue_type_style_index_0_lang-CPto-5VY.js +164 -0
  257. package/dist/Tree/Tree.model.d.ts +3 -3
  258. package/dist/Tree/TreeNode.d.ts +2 -2
  259. package/dist/Tree/index.js +1 -1
  260. package/dist/Tree/index.umd.cjs +1 -1
  261. package/dist/{Tree.vue_vue_type_style_index_0_lang-BALb4dHG.js → Tree.vue_vue_type_style_index_0_lang-D-mTy1Es.js} +336 -334
  262. package/dist/{Tree.vue_vue_type_style_index_0_lang-D-ZM2mYK.js → Tree.vue_vue_type_style_index_0_lang-ZoSOcaY2.js} +2 -2
  263. package/dist/Upload/UploadTrigger.d.ts +12 -0
  264. package/dist/Upload/index.d.ts +1 -4
  265. package/dist/Upload/index.js +1 -14
  266. package/dist/Upload/index.umd.cjs +1 -1
  267. package/dist/Upload/types.d.ts +12 -2
  268. package/dist/{index-C7THkhcc.js → index-BTuMaS--.js} +1 -1
  269. package/dist/{index-DWw7aruo.js → index-BmcHqJPl.js} +1 -1
  270. package/dist/index-DEgppVnR.js +1 -0
  271. package/dist/{index-BbGUveIH.js → index-T3jqfug4.js} +450 -502
  272. package/dist/index.d.ts +1 -0
  273. package/dist/index.js +130 -147
  274. package/dist/index.umd.cjs +1 -1
  275. package/dist/options-Bh1s18jm.js +11 -0
  276. package/dist/options-CY2uxp5A.js +1 -0
  277. package/dist/{sortBy-Cw_YX22p.js → sortBy-BoHPhPoZ.js} +2 -2
  278. package/dist/{sortBy-UQMixpNq.js → sortBy-NRZqvtuE.js} +1 -1
  279. package/dist/style/index.css +1 -1
  280. package/dist/types/index.d.ts +0 -1
  281. package/dist/{uniq-CDvn5hSU.js → uniq-DA_VCwGV.js} +1 -1
  282. package/dist/{uniq-Cc6HQWip.js → uniq-iuU6YkEW.js} +1 -1
  283. package/dist/{useInputDataStates-BqxUx2nG.js → useInputDataStates-CJoP9BXy.js} +1 -1
  284. package/dist/{useInputDataStates-B9FItrY8.js → useInputDataStates-CXaVG_o2.js} +1 -1
  285. package/dist/utils/index.js +3 -3
  286. package/dist/utils/index.umd.cjs +1 -1
  287. package/dist/utils/options.d.ts +1 -1
  288. package/package.json +16 -13
  289. package/dist/Alert.vue_vue_type_style_index_0_lang-BKNHgs7z.js +0 -1
  290. package/dist/Alert.vue_vue_type_style_index_0_lang-utLLIbpv.js +0 -120
  291. package/dist/Avatar.vue_vue_type_style_index_0_lang-G90FXPBR.js +0 -1
  292. package/dist/BaseButton.vue_vue_type_style_index_0_lang-Bzr3TLbe.js +0 -1
  293. package/dist/Button.vue_vue_type_script_setup_true_lang-_7yxLkPD.js +0 -1
  294. package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CF56RzMa.js +0 -56
  295. package/dist/Checkbox.vue_vue_type_style_index_0_lang-BSsP-Szx.js +0 -1
  296. package/dist/Checkbox.vue_vue_type_style_index_0_lang-CIEUNDOh.js +0 -223
  297. package/dist/Chip.vue_vue_type_style_index_0_lang-BevhC8XN.js +0 -121
  298. package/dist/Chip.vue_vue_type_style_index_0_lang-CSXDmtPl.js +0 -1
  299. package/dist/ChipGroup.vue_vue_type_style_index_0_lang-DYYDoMlH.js +0 -1
  300. package/dist/ColorPicker.vue_vue_type_style_index_0_lang-BFK_myw9.js +0 -4
  301. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DN81zMHX.js +0 -1
  302. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcEvU-D9.js +0 -1
  303. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DGgpwSzC.js +0 -1
  304. package/dist/Combobox.vue_vue_type_style_index_0_lang-BMiNF3DO.js +0 -1
  305. package/dist/DataTable.vue_vue_type_style_index_0_lang-DHyx61rt.js +0 -1
  306. package/dist/Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js +0 -34
  307. package/dist/Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js +0 -1
  308. package/dist/DropZone.vue_vue_type_style_index_0_lang-Ddc_87XC.js +0 -1
  309. package/dist/DropZone.vue_vue_type_style_index_0_lang-xtdiUX0n.js +0 -124
  310. package/dist/Empty.vue_vue_type_style_index_0_lang-DtRaCeHm.js +0 -1
  311. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BAsjSEup.js +0 -1
  312. package/dist/GOPicker.vue_vue_type_style_index_0_lang-DSRAMWIl.js +0 -1
  313. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-Ds6xYzA-.js +0 -1
  314. package/dist/Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js +0 -9
  315. package/dist/IconButton.vue_vue_type_script_setup_true_lang-CJJt93Jx.js +0 -1
  316. package/dist/Image.vue_vue_type_style_index_0_lang-CTyk96Kv.js +0 -1
  317. package/dist/Image.vue_vue_type_style_index_0_lang-Ccy469Gw.js +0 -121
  318. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-B7inh8GW.js +0 -1
  319. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DwNLmANl.js +0 -94
  320. package/dist/Kbd.vue_vue_type_style_index_0_lang-9AEhO33W.js +0 -1
  321. package/dist/Kbd.vue_vue_type_style_index_0_lang-DnQHHSjf.js +0 -47
  322. package/dist/Link.vue_vue_type_style_index_0_lang-037gFMMU.js +0 -77
  323. package/dist/Link.vue_vue_type_style_index_0_lang-CrSclTt_.js +0 -1
  324. package/dist/MenuItem.vue_vue_type_style_index_0_lang-CZ_1Uprs.js +0 -1
  325. package/dist/Pagination/Pagination.d.ts +0 -59
  326. package/dist/Pagination.vue_vue_type_style_index_0_lang-BtclbfAa.js +0 -221
  327. package/dist/Pagination.vue_vue_type_style_index_0_lang-DTCTZSTa.js +0 -1
  328. package/dist/Popover.vue_vue_type_style_index_0_lang-DA6_4Z_q.js +0 -1
  329. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Bbs0ouQg.js +0 -101
  330. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CuQsvlwM.js +0 -1
  331. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BAxwM8rQ.js +0 -189
  332. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +0 -1
  333. package/dist/Segmented/Segmented.d.ts +0 -57
  334. package/dist/Segmented.vue_vue_type_style_index_0_lang-BrNeOty8.js +0 -1
  335. package/dist/Segmented.vue_vue_type_style_index_0_lang-NSpJMsMu.js +0 -161
  336. package/dist/Select.vue_vue_type_style_index_0_lang-CiDQsRzV.js +0 -1
  337. package/dist/Shortcut.vue_vue_type_style_index_0_lang-Ar0DIocH.js +0 -1
  338. package/dist/Shortcut.vue_vue_type_style_index_0_lang-DaEXMuLd.js +0 -32
  339. package/dist/Skeleton.vue_vue_type_style_index_0_lang-CWNX_-Jl.js +0 -1
  340. package/dist/Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js +0 -58
  341. package/dist/Spinner.vue_vue_type_style_index_0_lang-CZP1YaOb.js +0 -1
  342. package/dist/Switch.vue_vue_type_style_index_0_lang-CnyL4HP7.js +0 -1
  343. package/dist/Switch.vue_vue_type_style_index_0_lang-D7SXKifF.js +0 -137
  344. package/dist/THead.vue_vue_type_style_index_0_lang-4qfibbiA.js +0 -191
  345. package/dist/THead.vue_vue_type_style_index_0_lang-BhGY_St8.js +0 -1
  346. package/dist/Textarea.vue_vue_type_style_index_0_lang-C4kStxln.js +0 -164
  347. package/dist/Textarea.vue_vue_type_style_index_0_lang-Dp2UcWz4.js +0 -1
  348. package/dist/Upload.vue_vue_type_style_index_0_lang-C8T8U6MX.js +0 -1403
  349. package/dist/Upload.vue_vue_type_style_index_0_lang-D3wWY8lo.js +0 -1
  350. package/dist/index-zMkg_RCw.js +0 -1
  351. package/dist/options-CWrQ7gsa.js +0 -1
  352. package/dist/options-D4et5euX.js +0 -10
@@ -1,189 +0,0 @@
1
- import { defineComponent as q, createElementBlock as G, openBlock as p, normalizeClass as l, unref as e, createElementVNode as a, computed as le, ref as c, shallowRef as V, onBeforeUnmount as oe, onMounted as re, createBlock as F, mergeProps as T, withCtx as v, createVNode as f, createCommentVNode as W, renderSlot as I, Fragment as te } from "vue";
2
- import { ScrollAreaRoot as ae, ScrollAreaViewport as ie, ScrollAreaScrollbar as L, ScrollAreaThumb as U, ScrollAreaCorner as ne } from "reka-ui";
3
- import { cva as J } from "class-variance-authority";
4
- import { getBemBlock as ce, getBemElement as r, generateVariantClassList as i } from "@pantograph/utils";
5
- import { useElementVisibility as k, useIntersectionObserver as ue, useDebounceFn as fe, useResizeObserver as j } from "@vueuse/core";
6
- import { u as ve } from "./index-C7THkhcc.js";
7
- const o = ce("scroll_container"), pe = /* @__PURE__ */ q({
8
- __name: "Mask",
9
- props: {
10
- topVisible: { type: Boolean },
11
- bottomVisible: { type: Boolean },
12
- endVisible: { type: Boolean },
13
- startVisible: { type: Boolean }
14
- },
15
- setup(d) {
16
- const b = d, t = r(o, "mask"), u = J(t, {
17
- variants: {
18
- topVisible: i("top-visible", t),
19
- bottomVisible: i("bottom-visible", t),
20
- startVisible: i("start-visible", t),
21
- endVisible: i("end-visible", t)
22
- }
23
- });
24
- return (w, _) => (p(), G("div", {
25
- class: l(e(u)(b))
26
- }, [
27
- a("div", {
28
- class: l(e(r)(e(t), "top"))
29
- }, null, 2),
30
- a("div", {
31
- class: l(e(r)(e(t), "bottom"))
32
- }, null, 2),
33
- a("div", {
34
- class: l(e(r)(e(t), "start"))
35
- }, null, 2),
36
- a("div", {
37
- class: l(e(r)(e(t), "end"))
38
- }, null, 2)
39
- ], 2));
40
- }
41
- }), ke = ["auto", "always", "scroll", "hover"], de = ["sm", "md", "lg"], we = /* @__PURE__ */ q({
42
- inheritAttrs: !1,
43
- __name: "ScrollContainer",
44
- props: {
45
- scrollDistance: { default: 10 },
46
- scrollHideDelay: { default: 200 },
47
- dir: {},
48
- type: { default: "hover" },
49
- hasMask: { type: Boolean },
50
- size: { default: "md" },
51
- scrollbarCls: {},
52
- wrapCls: {},
53
- areaCls: {},
54
- rootCls: {},
55
- thumbCls: {},
56
- cornerCls: {},
57
- rootProps: {},
58
- overlay: { type: Boolean, default: !0 },
59
- color: {}
60
- },
61
- emits: ["loadMore"],
62
- setup(d, { expose: b, emit: t }) {
63
- const u = d, w = t, _ = J(o, {
64
- variants: {
65
- size: i(de, o),
66
- overlay: i("overlay", o),
67
- isOverflowX: i("overflowed-x", o),
68
- isOverflowY: i("overflowed-y", o),
69
- hasMask: i("has-mask", o)
70
- }
71
- }), m = r(o, "scroll_bar"), B = r(m, "thumb"), { config: K } = ve(), Q = le(() => u.dir ? u.dir : K.dir.value), S = c(), Z = k(S), g = c(), x = k(g), z = c(), ee = k(z), M = c(), y = V(!1), { stop: se } = ue(M, ([{ isIntersecting: s }]) => {
72
- s ? (w("loadMore"), y.value = !0) : y.value = !1;
73
- });
74
- oe(se);
75
- const n = c(), O = c(), A = c(), D = V(!1), H = V(!1), h = fe(() => {
76
- var s, C, E, P, R, $, N, X, Y;
77
- e((s = n.value) == null ? void 0 : s.viewport) && (D.value = (((E = (C = e(n.value)) == null ? void 0 : C.viewport) == null ? void 0 : E.offsetWidth) || 0) < (((R = (P = e(n.value)) == null ? void 0 : P.viewport) == null ? void 0 : R.scrollWidth) || 0), H.value = (((N = ($ = e(n.value)) == null ? void 0 : $.viewport) == null ? void 0 : N.offsetHeight) || 0) < (((Y = (X = e(n.value)) == null ? void 0 : X.viewport) == null ? void 0 : Y.scrollHeight) || 0));
78
- }, 10);
79
- return re(() => h()), j(n, h), j(A, h), b({
80
- container: O,
81
- root: n
82
- }), (s, C) => (p(), F(e(ae), T({
83
- class: [
84
- e(_)({
85
- overlay: s.overlay,
86
- isOverflowX: D.value,
87
- isOverflowY: H.value,
88
- hasMask: s.hasMask,
89
- size: s.size
90
- }),
91
- s.rootCls
92
- ],
93
- scrollHideDelay: u.scrollHideDelay,
94
- dir: Q.value,
95
- type: u.type
96
- }, s.rootProps, {
97
- style: {
98
- "--ptc-scroll-container-color": s.color
99
- },
100
- ref_key: "root",
101
- ref: n
102
- }), {
103
- default: v(() => [
104
- f(e(ie), T({
105
- class: [e(r)(e(o), "area"), s.areaCls]
106
- }, s.$attrs, {
107
- ref_key: "container",
108
- ref: O,
109
- "as-child": ""
110
- }), {
111
- default: v(() => [
112
- a("div", {
113
- class: l([e(r)(e(o), "area__wrap"), s.wrapCls]),
114
- ref_key: "wrap",
115
- ref: A
116
- }, [
117
- I(s.$slots, "default"),
118
- s.hasMask ? (p(), G(te, { key: 0 }, [
119
- a("div", {
120
- ref_key: "top",
121
- ref: S,
122
- class: l(e(r)(e(o), "top_observer"))
123
- }, null, 2),
124
- a("div", {
125
- ref_key: "end",
126
- ref: g,
127
- class: l(e(r)(e(o), "end_observer"))
128
- }, null, 2),
129
- a("div", {
130
- ref_key: "start",
131
- ref: z,
132
- class: l(e(r)(e(o), "start_observer"))
133
- }, null, 2),
134
- a("div", {
135
- ref_key: "bottom",
136
- ref: M,
137
- class: l(e(r)(e(o), "bottom_observer"))
138
- }, null, 2)
139
- ], 64)) : W("", !0)
140
- ], 2)
141
- ]),
142
- _: 3
143
- }, 16, ["class"]),
144
- s.hasMask ? (p(), F(pe, {
145
- key: 0,
146
- topVisible: e(Z),
147
- bottomVisible: y.value,
148
- endVisible: e(x),
149
- startVisible: e(ee)
150
- }, null, 8, ["topVisible", "bottomVisible", "endVisible", "startVisible"])) : W("", !0),
151
- f(e(L), {
152
- class: l([e(m), s.scrollbarCls]),
153
- orientation: "vertical",
154
- ref: "vertical"
155
- }, {
156
- default: v(() => [
157
- f(e(U), {
158
- class: l([e(B), s.thumbCls])
159
- }, null, 8, ["class"])
160
- ]),
161
- _: 1
162
- }, 8, ["class"]),
163
- f(e(L), {
164
- class: l([e(m), s.scrollbarCls]),
165
- orientation: "horizontal",
166
- ref: "horizontal"
167
- }, {
168
- default: v(() => [
169
- f(e(U), {
170
- class: l([e(B), s.thumbCls])
171
- }, null, 8, ["class"])
172
- ]),
173
- _: 1
174
- }, 8, ["class"]),
175
- f(e(ne), {
176
- ref: "corner",
177
- class: l(s.cornerCls)
178
- }, null, 8, ["class"]),
179
- I(s.$slots, "root")
180
- ]),
181
- _: 3
182
- }, 16, ["class", "scrollHideDelay", "dir", "type", "style"]));
183
- }
184
- });
185
- export {
186
- ke as S,
187
- we as _,
188
- de as a
189
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),a=require("reka-ui"),O=require("class-variance-authority"),s=require("@pantograph/utils"),n=require("@vueuse/core"),X=require("./index-DWw7aruo.js"),l=s.getBemBlock("scroll_container"),Y=e.defineComponent({__name:"Mask",props:{topVisible:{type:Boolean},bottomVisible:{type:Boolean},endVisible:{type:Boolean},startVisible:{type:Boolean}},setup(c){const u=c,t=s.getBemElement(l,"mask"),i=O.cva(t,{variants:{topVisible:s.generateVariantClassList("top-visible",t),bottomVisible:s.generateVariantClassList("bottom-visible",t),startVisible:s.generateVariantClassList("start-visible",t),endVisible:s.generateVariantClassList("end-visible",t)}});return(b,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i)(u))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"top"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"bottom"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"start"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"end"))},null,2)],2))}}),F=["auto","always","scroll","hover"],R=["sm","md","lg"],U=e.defineComponent({inheritAttrs:!1,__name:"ScrollContainer",props:{scrollDistance:{default:10},scrollHideDelay:{default:200},dir:{},type:{default:"hover"},hasMask:{type:Boolean},size:{default:"md"},scrollbarCls:{},wrapCls:{},areaCls:{},rootCls:{},thumbCls:{},cornerCls:{},rootProps:{},overlay:{type:Boolean,default:!0},color:{}},emits:["loadMore"],setup(c,{expose:u,emit:t}){const i=c,b=t,p=O.cva(l,{variants:{size:s.generateVariantClassList(R,l),overlay:s.generateVariantClassList("overlay",l),isOverflowX:s.generateVariantClassList("overflowed-x",l),isOverflowY:s.generateVariantClassList("overflowed-y",l),hasMask:s.generateVariantClassList("has-mask",l)}}),f=s.getBemElement(l,"scroll_bar"),C=s.getBemElement(f,"thumb"),{config:q}=X.useConfig(),D=e.computed(()=>i.dir?i.dir:q.dir.value),V=e.ref(),H=n.useElementVisibility(V),y=e.ref(),P=n.useElementVisibility(y),h=e.ref(),T=n.useElementVisibility(h),g=e.ref(),m=e.shallowRef(!1),{stop:$}=n.useIntersectionObserver(g,([{isIntersecting:r}])=>{r?(b("loadMore"),m.value=!0):m.value=!1});e.onBeforeUnmount($);const o=e.ref(),B=e.ref(),k=e.ref(),w=e.shallowRef(!1),E=e.shallowRef(!1),d=n.useDebounceFn(()=>{var r,v,z,S,N,_,M,A,L;e.unref((r=o.value)==null?void 0:r.viewport)&&(w.value=(((z=(v=e.unref(o.value))==null?void 0:v.viewport)==null?void 0:z.offsetWidth)||0)<(((N=(S=e.unref(o.value))==null?void 0:S.viewport)==null?void 0:N.scrollWidth)||0),E.value=(((M=(_=e.unref(o.value))==null?void 0:_.viewport)==null?void 0:M.offsetHeight)||0)<(((L=(A=e.unref(o.value))==null?void 0:A.viewport)==null?void 0:L.scrollHeight)||0))},10);return e.onMounted(()=>d()),n.useResizeObserver(o,d),n.useResizeObserver(k,d),u({container:B,root:o}),(r,v)=>(e.openBlock(),e.createBlock(e.unref(a.ScrollAreaRoot),e.mergeProps({class:[e.unref(p)({overlay:r.overlay,isOverflowX:w.value,isOverflowY:E.value,hasMask:r.hasMask,size:r.size}),r.rootCls],scrollHideDelay:i.scrollHideDelay,dir:D.value,type:i.type},r.rootProps,{style:{"--ptc-scroll-container-color":r.color},ref_key:"root",ref:o}),{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaViewport),e.mergeProps({class:[e.unref(s.getBemElement)(e.unref(l),"area"),r.areaCls]},r.$attrs,{ref_key:"container",ref:B,"as-child":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(l),"area__wrap"),r.wrapCls]),ref_key:"wrap",ref:k},[e.renderSlot(r.$slots,"default"),r.hasMask?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{ref_key:"top",ref:V,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"top_observer"))},null,2),e.createElementVNode("div",{ref_key:"end",ref:y,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"end_observer"))},null,2),e.createElementVNode("div",{ref_key:"start",ref:h,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"start_observer"))},null,2),e.createElementVNode("div",{ref_key:"bottom",ref:g,class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(l),"bottom_observer"))},null,2)],64)):e.createCommentVNode("",!0)],2)]),_:3},16,["class"]),r.hasMask?(e.openBlock(),e.createBlock(Y,{key:0,topVisible:e.unref(H),bottomVisible:m.value,endVisible:e.unref(P),startVisible:e.unref(T)},null,8,["topVisible","bottomVisible","endVisible","startVisible"])):e.createCommentVNode("",!0),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),r.scrollbarCls]),orientation:"vertical",ref:"vertical"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),r.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaScrollbar),{class:e.normalizeClass([e.unref(f),r.scrollbarCls]),orientation:"horizontal",ref:"horizontal"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ScrollAreaThumb),{class:e.normalizeClass([e.unref(C),r.thumbCls])},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(a.ScrollAreaCorner),{ref:"corner",class:e.normalizeClass(r.cornerCls)},null,8,["class"]),e.renderSlot(r.$slots,"root")]),_:3},16,["class","scrollHideDelay","dir","type","style"]))}});exports.ScrollContainerSizes=R;exports.ScrollContainerTypes=F;exports._sfc_main=U;
@@ -1,57 +0,0 @@
1
- import { RovingFocusGroupProps, RovingFocusGroupEmits } from 'reka-ui';
2
- import { SegmentedSize } from './Segmented.model.js';
3
- import { ClassValue } from 'class-variance-authority/types';
4
- type SegmentOption = (Record<string, any> & {
5
- value: string;
6
- disabled?: boolean;
7
- text?: string;
8
- icon?: string;
9
- }) | string | number;
10
- export interface SegmentedProps extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'as' | 'asChild'> {
11
- options: SegmentOption[];
12
- size?: SegmentedSize;
13
- class?: ClassValue;
14
- selectionIndicatorCls?: ClassValue;
15
- optionCls?: ClassValue;
16
- optionIconCls?: ClassValue;
17
- optionTextCls?: ClassValue;
18
- block?: boolean;
19
- modelValue?: string | number;
20
- defaultModelValue?: string | number;
21
- }
22
- export interface SegmentedEmits extends Omit<RovingFocusGroupEmits, 'update:currentTabStopId'> {
23
- 'update:modelValue': [event: string | number];
24
- }
25
- interface SlotProps {
26
- selected: boolean;
27
- disabled: boolean;
28
- option: SegmentOption;
29
- }
30
- type SlotItem = (data: SlotProps) => never;
31
- export interface SegmentedSlots {
32
- option: SlotItem;
33
- icon: SlotItem;
34
- text: SlotItem;
35
- }
36
- declare function __VLS_template(): {
37
- slots: Readonly<SegmentedSlots> & SegmentedSlots;
38
- refs: {};
39
- attrs: Partial<{}>;
40
- };
41
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
- declare const __VLS_component: import('vue').DefineComponent<SegmentedProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
- "update:modelValue": (event: string | number) => any;
44
- entryFocus: (event: Event) => any;
45
- }, string, import('vue').PublicProps, Readonly<SegmentedProps> & Readonly<{
46
- "onUpdate:modelValue"?: ((event: string | number) => any) | undefined;
47
- onEntryFocus?: ((event: Event) => any) | undefined;
48
- }>, {
49
- size: SegmentedSize;
50
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
- export default _default;
53
- type __VLS_WithTemplateSlots<T, S> = T & {
54
- new (): {
55
- $slots: S;
56
- };
57
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),x=require("reka-ui"),i=require("@pantograph/utils"),r=require("./Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js"),T=require("class-variance-authority"),m=require("./index-DWw7aruo.js"),K=require("./options-CWrQ7gsa.js");require("@iconify/vue");const F=["sm","md","lg"],Q=e.defineComponent({...K.getComponentOptions("Segmented"),__name:"Segmented",props:{options:{},size:{default:"md"},class:{},selectionIndicatorCls:{},optionCls:{},optionIconCls:{},optionTextCls:{},block:{type:Boolean},modelValue:{},defaultModelValue:{},orientation:{},dir:{},loop:{type:Boolean},preventScrollOnEntryFocus:{type:Boolean}},emits:["update:modelValue","entryFocus"],setup(j,{emit:w}){const n=j,S=w,a=e.useSlots(),L=e.computed(()=>r.pick(n,"orientation","dir","loop","preventScrollOnEntryFocus")),M=x.useForwardPropsEmits(L,S),g=i.getBemBlock("segmented"),P=T.cva(g,{variants:{size:i.generateVariantClassList(F,g),block:i.generateVariantClassList("block",g)}}),p=i.getBemElement(g,"option"),R=T.cva(p,{variants:{icon:i.generateVariantClassList("icon",p),text:i.generateVariantClassList("text",p)}}),{getDir:D}=m.useConfig(),N=D(),U=e.computed(()=>{switch(n.size){case"lg":return"xsm";default:return"2xsm"}}),c=r.useVModel(n,"modelValue",S,{defaultValue:n.defaultModelValue,passive:n.modelValue===void 0}),C=t=>[null,void 0].includes(t),u=t=>m.isObject(t)?t.value:t,$=t=>!!(m.isObject(t)&&t.disabled),A=t=>m.isObject(t)?t.icon:void 0,G=t=>m.isObject(t)?t.text:u(t);e.watch(()=>n.options,()=>{var s,o;const t=(s=n.options)==null?void 0:s.find(l=>{const d=u(l);return!C(d)&&d===c.value});if(!t||C(u(t))){const l=(o=n.options)==null?void 0:o.find(d=>{const f=u(d);return!C(f)});l&&(c.value=u(l))}},{immediate:!0,deep:!0});const H=()=>{var t;return(t=n.options)==null?void 0:t.map(s=>{var z,k,q;const o=u(s);if(C(o))return;const l=$(s),d=m.isObject(s)?r.omit(s,"icon","value","text"):{},f=c.value===o;let v;const V=(z=a.option)==null?void 0:z.call(a,{disabled:l,selected:f,option:s});r.isEmptyElement(V)||(v=V);const b=A(s),_=(k=a.icon)==null?void 0:k.call(a,{disabled:l,selected:f,option:s}),h=G(s),y=(q=a.text)==null?void 0:q.call(a,{disabled:l,selected:f,option:s});v=[];const B=!r.isEmptyElement(_),E=!!(b||B),I=!r.isEmptyElement(y),O=!!(h||I);E&&v.push(e.h(r._sfc_main$3,{icon:b,size:U.value,class:i.normCls(i.getBemElement(p,"icon"),n.optionIconCls)},B?_:void 0)),O&&v.push(e.h("div",{class:i.normCls(i.getBemElement(p,"text"),n.optionTextCls)},I?y:h));const J=c.value===o;return e.h(x.RovingFocusItem,{as:"button",active:J,focusable:!l,disabled:l,tabStopId:o,value:o,...d,class:i.normCls(R({icon:E,text:O}),n.optionCls)},()=>v)})};return(t,s)=>(e.openBlock(),e.createBlock(e.unref(x.RovingFocusGroup),e.mergeProps(e.unref(M),{dir:e.unref(N),"current-tab-stop-id":e.unref(c),"onUpdate:currentTabStopId":s[0]||(s[0]=o=>e.isRef(c)?c.value=o:null),asChild:""}),{default:e.withCtx(()=>{var o;return[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i.normCls)(e.unref(P)({...n}),n.class)),style:e.normalizeStyle({gridTemplateColumns:`repeat(${((o=n.options)==null?void 0:o.length)??1}, minmax(0, 1fr))`})},[e.createVNode(H)],6)]}),_:1},16,["dir","current-tab-stop-id"]))}});exports.SegmentedSizes=F;exports._sfc_main=Q;
@@ -1,161 +0,0 @@
1
- import { defineComponent as W, useSlots as X, computed as M, watch as Y, createBlock as Z, openBlock as ee, unref as r, mergeProps as te, isRef as oe, withCtx as se, createElementVNode as ne, normalizeStyle as ae, normalizeClass as ie, createVNode as le, h as C } from "vue";
2
- import { useForwardPropsEmits as ce, RovingFocusGroup as re, RovingFocusItem as ue } from "reka-ui";
3
- import { getBemBlock as de, generateVariantClassList as g, getBemElement as S, normCls as x } from "@pantograph/utils";
4
- import { l as me, u as pe, o as fe, j as V, k as ve } from "./Icon.vue_vue_type_style_index_0_lang-B5G5kKKT.js";
5
- import { cva as P } from "class-variance-authority";
6
- import { u as ge, a as p } from "./index-C7THkhcc.js";
7
- import { g as xe } from "./options-D4et5euX.js";
8
- import "@iconify/vue";
9
- const Ce = ["sm", "md", "lg"], ke = /* @__PURE__ */ W({
10
- ...xe("Segmented"),
11
- __name: "Segmented",
12
- props: {
13
- options: {},
14
- size: { default: "md" },
15
- class: {},
16
- selectionIndicatorCls: {},
17
- optionCls: {},
18
- optionIconCls: {},
19
- optionTextCls: {},
20
- block: { type: Boolean },
21
- modelValue: {},
22
- defaultModelValue: {},
23
- orientation: {},
24
- dir: {},
25
- loop: { type: Boolean },
26
- preventScrollOnEntryFocus: { type: Boolean }
27
- },
28
- emits: ["update:modelValue", "entryFocus"],
29
- setup(R, { emit: j }) {
30
- const t = R, b = j, a = X(), D = M(
31
- () => me(t, "orientation", "dir", "loop", "preventScrollOnEntryFocus")
32
- ), N = ce(D, b), f = de("segmented"), $ = P(f, {
33
- variants: {
34
- size: g(Ce, f),
35
- block: g("block", f)
36
- // style: generateVariantClassList('absolute-selected-indicator', prefix),
37
- }
38
- }), u = S(f, "option"), G = P(u, {
39
- variants: {
40
- icon: g("icon", u),
41
- text: g("text", u)
42
- }
43
- }), { getDir: L } = ge(), U = L(), q = M(() => {
44
- switch (t.size) {
45
- case "lg":
46
- return "xsm";
47
- default:
48
- return "2xsm";
49
- }
50
- }), i = pe(
51
- t,
52
- "modelValue",
53
- b,
54
- {
55
- defaultValue: t.defaultModelValue,
56
- passive: t.modelValue === void 0
57
- }
58
- ), v = (e) => [null, void 0].includes(e), l = (e) => p(e) ? e.value : e, A = (e) => !!(p(e) && e.disabled), H = (e) => p(e) ? e.icon : void 0, J = (e) => p(e) ? e.text : l(e);
59
- Y(
60
- () => t.options,
61
- () => {
62
- var o, s;
63
- const e = (o = t.options) == null ? void 0 : o.find((n) => {
64
- const c = l(n);
65
- return !v(c) && c === i.value;
66
- });
67
- if (!e || v(l(e))) {
68
- const n = (s = t.options) == null ? void 0 : s.find((c) => {
69
- const d = l(c);
70
- return !v(d);
71
- });
72
- n && (i.value = l(n));
73
- }
74
- },
75
- { immediate: !0, deep: !0 }
76
- );
77
- const K = () => {
78
- var e;
79
- return (e = t.options) == null ? void 0 : e.map((o) => {
80
- var T, F, w;
81
- const s = l(o);
82
- if (v(s)) return;
83
- const n = A(o), c = p(o) ? fe(o, "icon", "value", "text") : {}, d = i.value === s;
84
- let m;
85
- const h = (T = a.option) == null ? void 0 : T.call(a, { disabled: n, selected: d, option: o });
86
- V(h) || (m = h);
87
- const B = H(o), I = (F = a.icon) == null ? void 0 : F.call(a, { disabled: n, selected: d, option: o }), _ = J(o), y = (w = a.text) == null ? void 0 : w.call(a, { disabled: n, selected: d, option: o });
88
- m = [];
89
- const k = !V(I), z = !!(B || k), O = !V(y), E = !!(_ || O);
90
- z && m.push(
91
- C(
92
- ve,
93
- {
94
- icon: B,
95
- size: q.value,
96
- class: x(S(u, "icon"), t.optionIconCls)
97
- },
98
- k ? I : void 0
99
- )
100
- ), E && m.push(
101
- C(
102
- "div",
103
- {
104
- class: x(S(u, "text"), t.optionTextCls)
105
- },
106
- O ? y : _
107
- )
108
- );
109
- const Q = i.value === s;
110
- return C(
111
- ue,
112
- {
113
- as: "button",
114
- active: Q,
115
- focusable: !n,
116
- disabled: n,
117
- tabStopId: s,
118
- value: s,
119
- ...c,
120
- class: x(
121
- G({
122
- icon: z,
123
- text: E
124
- }),
125
- t.optionCls
126
- )
127
- },
128
- () => m
129
- );
130
- });
131
- };
132
- return (e, o) => (ee(), Z(r(re), te(r(N), {
133
- dir: r(U),
134
- "current-tab-stop-id": r(i),
135
- "onUpdate:currentTabStopId": o[0] || (o[0] = (s) => oe(i) ? i.value = s : null),
136
- asChild: ""
137
- }), {
138
- default: se(() => {
139
- var s;
140
- return [
141
- ne("div", {
142
- class: ie(r(x)(r($)({
143
- ...t
144
- /*, style: !style*/
145
- }), t.class)),
146
- style: ae({
147
- gridTemplateColumns: `repeat(${((s = t.options) == null ? void 0 : s.length) ?? 1}, minmax(0, 1fr))`
148
- })
149
- }, [
150
- le(K)
151
- ], 6)
152
- ];
153
- }),
154
- _: 1
155
- }, 16, ["dir", "current-tab-stop-id"]));
156
- }
157
- });
158
- export {
159
- Ce as S,
160
- ke as _
161
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),I=require("reka-ui"),r=require("./Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js"),ne=require("./options-CWrQ7gsa.js"),h=require("./index-DWw7aruo.js"),p=require("@pantograph/utils"),ae=require("class-variance-authority"),me=require("./Empty.vue_vue_type_style_index_0_lang-DtRaCeHm.js"),fe=require("./Skeleton.vue_vue_type_style_index_0_lang-CWNX_-Jl.js"),se=require("./Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js"),ye=require("./useInputDataStates-B9FItrY8.js"),ve=require("./useLazyLoading-H6VG5aE-.js"),ue=require("./Popover.vue_vue_type_style_index_0_lang-DA6_4Z_q.js"),Ce=require("./ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js"),he=require("./Chip.vue_vue_type_style_index_0_lang-CSXDmtPl.js"),_e=require("./ChipGroup.vue_vue_type_style_index_0_lang-DYYDoMlH.js"),oe=["sm","md","lg"],ce=["error","warning","success"],[le,ge]=I.createContext("Select"),[Se,Ee]=I.createContext("_Select"),z=p.getBemBlock("select"),de=n.defineComponent({__name:"SelectLabel",setup(f){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(p.getBemElement)(n.unref(z),"label"))},[n.renderSlot(e.$slots,"default")],2))}}),te=n.defineComponent({name:ne.getComponentName("SelectOption"),props:{option:{type:[Object,String],required:!0}},slots:Object,setup(f,{slots:e}){const o=le(),t=n.computed(()=>{switch(o.getSize.value){case"sm":return"2xsm";case"lg":return"sm";case"md":default:return"xsm"}}),k=n.computed(()=>o.getOptionValue(f.option)),c=n.computed(()=>o.getOptionLabel(f.option)),j=n.computed(()=>o.getOptionIcon(f.option)),R=n.computed(()=>o.getOptionDisabled(f.option)),P=p.getBemElement(z,"option"),K=ae.cva(P,{variants:{size:p.generateVariantClassList(oe,P)}});if(!f.option)throw new Error("option is required");const w=()=>{var _;const E=(_=e.indicator)==null?void 0:_.call(e,{option:f.option});return r.isEmptyElement(E)?n.h(I.SelectItemIndicator,{asChild:!0},()=>n.h(r._sfc_main$3,{icon:o.props.indicatorIcon,size:t.value})):E},D=()=>{var x,q,$;const E=(x=e.default)==null?void 0:x.call(e,{option:f.option}),_=[];if(!r.isEmptyElement(E))_.push(E);else{const A=(q=e.leading)==null?void 0:q.call(e,{option:f.option}),M=!r.isEmptyElement(A);if(j.value||M){let B;M?B=A:B=n.h(r._sfc_main$3,{icon:j.value,size:t.value}),_.push(n.h("div",{class:[p.getBemElement(P,"leading"),o.props.itemLeadingCls]},B))}let s;const V=($=e.text)==null?void 0:$.call(e,{option:f.option});r.isEmptyElement(V)?s=c.value:s=V,_.push(n.h("div",{class:[p.getBemElement(P,"text"),o.props.optionTextCls]},s))}return n.h("div",{class:[p.getBemElement(P,"content"),o.props.optionContentCls]},_)};return()=>n.h(I.SelectItem,{value:k.value,textValue:c.value,disabled:R.value,class:[K({size:o.getSize.value}),o.props.optionCls]},()=>[D(),w()])}}),Ve=n.defineComponent({name:ne.getComponentName("SelectTrigger"),props:{getOptionSlot:{type:Function,required:!0}},setup(f,{slots:e,attrs:o}){const t=le(),k=({value:s},V)=>{if(V.stopPropagation(),s&&h.isArray(t.modelValue.value)&&!t.getDisabled.value){const B=t.modelValue.value.filter(U=>U!==s);t.modelValue.value=B,t.emit("update:modelValue",B)}},c=p.getBemElement(z,"trigger"),j=ae.cva(c,{variants:{size:p.generateVariantClassList(oe,c),status:p.generateVariantClassList(ce,c),bordered:p.generateVariantClassList("bordered",c),multiple:p.generateVariantClassList("multiple",c),contentFit:p.generateVariantClassList("content-fit",c),wrapped:p.generateVariantClassList("wrapped",c),filled:p.generateVariantClassList("filled",c)}}),R=n.computed(()=>{switch(t.getSize.value){case"sm":return"xsm";case"lg":return"md";case"md":default:return"sm"}}),P=n.computed(()=>{switch(t.getSize.value){case"sm":return"2xsm";case"md":default:return"xsm"}}),K=n.computed(()=>{if(!t.props.multiple&&h.isString(t.modelValue.value)&&!r.isEmpty(t.modelValue.value))return t.getOptionByValue(t.modelValue.value)}),w=(s=K.value)=>{if(t.props.selectedItemIconAsTrailingIcon&&h.isObject(s)&&"icon"in s)return s.icon},D=n.computed(()=>w()),E=n.computed(()=>{if(!t.props.noTrailing)return t.props.trailingIcon}),_=n.computed(()=>!r.isEmpty(t.modelValue.value)&&t.props.multiple&&h.isArray(t.modelValue.value)),x=n.computed(()=>({modelValue:r.cloneDeep(t.modelValue.value),open:r.cloneDeep(t.open.value)})),q=s=>({...x.value,option:t.getOptionByValue(s)}),$=n.computed(()=>({disabled:t.getDisabled.value,reference:t.props.reference,tabindex:t.getDisabled.value?void 0:0,as:"div",class:[j({size:t.getSize.value,status:t.getStatus.value==="success"&&r.isEmpty(t.modelValue.value)?void 0:t.getStatus.value,bordered:t.props.bordered,multiple:t.props.multiple,contentFit:t.props.contentFit,wrapped:t.props.wrapped,filled:!r.isEmpty(t.modelValue.value)}),t.props.triggerCls],...o})),A=(s,V=P.value)=>n.h(r._sfc_main$3,{icon:s,size:V}),M=()=>{var B;let s;const V=(B=e.triggerTrailing)==null?void 0:B.call(e,x.value);if(r.isEmptyElement(V)?E.value&&(s=A(E.value)):s=V,s)return n.h("div",{class:[p.getBemElement(c,"trailing"),t.props.triggerTrailingCls]},s)};return()=>{var U;const s=(U=e.trigger)==null?void 0:U.call(e,x.value),B=(()=>{if(r.isEmptyElement(s))return!1;const L=r.filterEmpty(s)??null,N=L.length===1?L[0]:L;return N?r.isValidElement(N)&&!r.isFragment(N):!0})();return n.h(I.SelectTrigger,{...$.value,asChild:B,key:String(B)},{default:()=>{var H;if(!r.isEmptyElement(s))return s;const L=(H=e.triggerLeading)==null?void 0:H.call(e,x.value),N=!r.isEmptyElement(L),Q=()=>{var F;if(!t.props.multiple&&!h.isArray(t.modelValue.value)){const G=(F=f.getOptionSlot("leading",t.modelValue.value))==null?void 0:F();if(N||G||D.value||t.props.leadingIcon){let a;return r.isEmptyElement(G)?D.value?a=A(D.value):N?a=L:t.props.leadingIcon&&(a=A(t.props.leadingIcon)):a=G,n.h("div",{class:[p.getBemElement(c,"leading"),t.props.triggerLeadingCls]},a)}}},re=()=>{const F=[];if(r.isEmpty(t.modelValue.value)){if(t.props.placeholder&&!t.props.multiple){const G=()=>{var S;const a=(S=e.placeholder)==null?void 0:S.call(e,x.value);return r.isEmptyElement(a)?t.props.placeholder:a};F.push(G())}}else{const a=(()=>{var O,y,d;const S=(O=e.triggerValue)==null?void 0:O.call(e,x.value);if(!r.isEmptyElement(S))return S;if(t.props.multiple&&h.isArray(t.modelValue.value))return n.h(_e._sfc_main,{maxCount:t.props.maxCount,size:R.value,color:"primary",closeable:!t.getDisabled.value,noPopover:!0,noWrap:!t.props.wrapped,class:[p.getBemElement(c,"tag_list"),t.props.tagListCls],onClose:k},()=>t.modelValue.value.map(g=>{var J;const b=i=>{var v;const l=(v=e.tagClose)==null?void 0:v.call(e,{...q(g),onClose:i});return r.isEmptyElement(l)?null:l},T=(J=f.getOptionSlot("default",g))==null?void 0:J(),ie=()=>{var v,u;const i=(v=f.getOptionSlot("text",g))==null?void 0:v(),l=(u=e.tagText)==null?void 0:u.call(e,q(g));return r.isEmptyElement(l)?r.isEmptyElement(T)?r.isEmptyElement(i)?t.getLabelByValue(g):i:T:l},Z=({size:i})=>{var C,m;if(!r.isEmptyElement(T))return null;const l=(C=f.getOptionSlot("leading",g))==null?void 0:C(),v=(m=e.tagLeading)==null?void 0:m.call(e,q(g)),u=w(t.getOptionByValue(g))??t.props.leadingIcon;return r.isEmptyElement(v)?r.isEmptyElement(l)?u?A(u,i):r.isEmptyElement(L)?null:L:l:v},ee=()=>{var l;const i=(l=e.tagTrailing)==null?void 0:l.call(e,q(g));return r.isEmptyElement(i)?null:i};return n.h(he._sfc_main,{value:g,class:[p.getBemElement(c,"tag"),t.props.tagCls],closeIconCls:p.getBemElement(c,"tag__close")},{text:ie,leading:Z,trailing:ee,close:b})}));if(!h.isArray(t.modelValue.value)){const g=(y=f.getOptionSlot("default",t.modelValue.value))==null?void 0:y(),b=(d=f.getOptionSlot("text",t.modelValue.value))==null?void 0:d();return r.isEmptyElement(g)?r.isEmptyElement(b)?h.isString(t.modelValue.value)?t.getLabelByValue(t.modelValue.value):t.modelValue.value:b:g}})();a&&F.push(a)}return F},W=[],X=Q();r.isEmptyElement(X)||W.push(X),W.push(n.h(I.Primitive,{class:[p.getBemElement(c,"content"),t.props.triggerContentCls,r.isEmpty(t.modelValue.value)?t.props.triggerContentPlaceholderCls:t.props.triggerContentValueCls],as:"div",key:String(_.value),asChild:_.value},{default:re}));const Y=M();return r.isEmptyElement(Y)||W.push(Y),W}})}}}),Be=n.defineComponent({name:ne.getComponentName("SelectWrapper"),setup(f,{slots:e}){const o=Se(),t=I.injectSelectRootContext(),k=n.ref();ve.useLazyLoading({target:k});const c=n.ref(),j=ue.getPopoverPortalProps({triggerRef:c,props:o.props}),{getFlipOnDir:R,getDir:P}=h.useConfig(),K=R("reversePlacementOnDir"),w=P(),D=ue.getPopoverContentProps({props:o.props,flip:K,emitsAsProps:o.emitsAsProps,_dir:w,controlAutoFocus:!1,extraPropNames:["bodyLock","position"]}),E=({key:a,getterKey:S,defaultValue:O,noReturnOption:y})=>d=>{const g=h.isFunction(O)?O(d):O;if(h.isObject(d)){const b=d[a]??g,T=S&&o.props[S];if(T){if(h.isString(T))return d[T]??b;if(h.isFunction(T))return T(d)??b}return b}return h.isString(d)&&!y?d??g:g},_=E({getterKey:"getValue",key:"value"}),x=E({getterKey:"getLabel",key:"label",defaultValue:_}),q=E({getterKey:"getIcon",key:"icon",noReturnOption:!0}),$=a=>{var S;if((S=o.props.options)!=null&&S.length)for(const O of o.props.options){if(_(O)===a)return O;const y=V(O);if(y!=null&&y.length){for(const d of y)if(_(d)===a)return d}}return a},A=a=>{const S=$(a);return S?x(S)??a:a},M=E({getterKey:"getDisabled",key:"disabled",defaultValue:!1,noReturnOption:!0}),s=E({getterKey:"getGroupLabel",key:"label",noReturnOption:!0}),V=E({getterKey:"getGroupOptions",key:"options",noReturnOption:!0}),{getDisabled:B,getStatus:U,getSize:L}=ye.useFormInput({getDisabled:()=>o.props.disabled,getSize:()=>o.props.size,getStatus:()=>o.props.status});ge({props:o.props,attrs:o.attrs,emit:o.emit,getOptionValue:_,getOptionLabel:x,getOptionDisabled:M,getOptionIcon:q,getOptionByValue:$,getLabelByValue:A,getDisabled:B,getStatus:U,getSize:L,...t,modelValue:t.modelValue}),n.watch(()=>[o.props.clearOnChangeMultiple,o.props.multiple],()=>{o.props.clearOnChangeMultiple&&(t.modelValue.value=void 0,o.emit("update:modelValue",void 0))});const N=n.computed(()=>{const a=o.props.scrollContainerProps??{};return{...a,areaCls:[p.getBemElement(z,"scroll_area"),a==null?void 0:a.class,a==null?void 0:a.areaCls]}}),Q=p.getBemElement(z,"popup"),re=ae.cva(Q,{variants:{size:p.generateVariantClassList(oe,Q)}}),W=a=>{if(Number(a)>0)return`${a}px`;if(typeof a=="string")return a},X=n.computed(()=>W(o.props.popupWidth)),Y=n.computed(()=>W(o.props.popupHeight)),H=n.computed(()=>W(o.props.minWidth)),F=n.computed(()=>({type:L.value==="sm"?"simple":"advance",...r.omit(o.props.emptyProps??{},"class")})),G=n.computed(()=>r.omit(o.props.skeletonProps??{},"class"));return()=>{var Z,ee,J;const a=i=>{var l;if((l=o.props.options)!=null&&l.length&&i>0)return!!o.props.options[i-1]},S=i=>{var l,v;if((l=o.props.options)!=null&&l.length&&i>0){const u=o.props.options[i-1];return!!(u&&((v=V(u))!=null&&v.length))}},O=(Z=e.default)==null?void 0:Z.call(e,{}),y=(ee=r.flattenChildrenByType(O,te))==null?void 0:ee.filter(i=>{var l;return h.isObject(i==null?void 0:i.props)&&((l=i==null?void 0:i.props)==null?void 0:l.option)}),d=[];(o.props.options??[]).forEach((i,l)=>{const v=C=>n.h(te,{option:C},{default:()=>{var m;return(m=e.option)==null?void 0:m.call(e,{option:C})},leading:()=>{var m;return(m=e.optionLeading)==null?void 0:m.call(e,{option:C})},indicator:()=>{var m;return(m=e.optionIndicator)==null?void 0:m.call(e,{option:C})},text:()=>{var m;return(m=e.optionText)==null?void 0:m.call(e,{option:C})}}),u=V(i);if(u!=null&&u.length){a(l)&&d.push(n.h(se._sfc_main));const C=s(i);C&&d.push(n.h(de,{class:o.props.labelCls},()=>C)),u.forEach(m=>{d.push(v(m))})}else S(l)?d.push(n.h(se._sfc_main)):d.push(v(i))});const g=r.flattenChildrenByType(d,te).filter(i=>{var l;return h.isObject(i==null?void 0:i.props)&&((l=i==null?void 0:i.props)==null?void 0:l.option)}),b=!!(g!=null&&g.length||y!=null&&y.length),T=(i,l)=>{var v;if(b&&!r.isEmpty(l)&&h.isString(l)){const u=y!=null&&y.length?y:g;if(u.length){const C=u.find(m=>{var pe;return h.isObject(m.props)&&_((pe=m.props)==null?void 0:pe.option)===l});return(v=C==null?void 0:C.children)==null?void 0:v[i]}}},ie=()=>{var l,v;const i=[];if(b||o.props.loading){const u=[];if(b&&(y!=null&&y.length?u.push(O):u.push(...d)),o.props.loading){const C=(l=e.loading)==null?void 0:l.call(e,{});if(!r.isEmptyElement(C))u.push(C);else{const m=new Array(b?2:o.props.loadingRowCount).fill(1);u.push(...m.map(()=>n.h(fe._sfc_main,{size:L.value,class:[p.getBemElement(z,"skeleton"),o.props.skeletonCls],...G.value})))}}i.push(n.h("div",{class:[p.getBemElement(z,"options"),o.props.optionsCls]},u))}else if(!b){const u=(v=e.empty)==null?void 0:v.call(e,F.value);r.isEmptyElement(u)?i.push(n.h(me._sfc_main,{class:[p.getBemElement(z,"empty"),o.props.emptyCls],...F.value},{title:e.emptyTitle,description:e.emptyDescription,actions:e.emptyActions,image:e.emptyImage})):i.push(u)}return o.props.lazyLoading&&i.push(n.h("div",{class:p.getBemElement(z,"lazy_loading")},n.h("div",{class:p.getBemElement(z,"lazy_loading_trigger"),ref:k}))),i};return[n.h(Ve,{getOptionSlot:T,ref:c,...o.attrs,style:{...((J=o.attrs)==null?void 0:J.style)??{},"--ptc-select-trigger-min-w":H.value}},{trigger:e.trigger,triggerLeading:e.triggerLeading,placeholder:e.placeholder,triggerValue:e.triggerValue,triggerTrailing:e.triggerTrailing,tagClose:e.tagClose,tagTrailing:e.tagTrailing,tagLeading:e.tagLeading,tagText:e.tagText}),n.h(I.SelectPortal,j.value,()=>n.h(I.SelectContent,{...D.value,vShow:t.open.value,class:[re(o.props),o.props.popupCls],style:{zIndex:o.props.zIndex,"--ptc-select-popup-width":o.props.samePopupWidth?void 0:X.value,"--ptc-select-popup-height":Y.value,"--ptc-select-trigger-min-w":H.value}},()=>n.h(Ce._sfc_main,N.value,ie)))]}}}),be=n.defineComponent({...ne.getComponentOptions("Select"),__name:"Select",props:{status:{},size:{default:"md"},multiple:{type:Boolean,default:void 0},contentFit:{type:Boolean},wrapped:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},zIndex:{},trailingIcon:{default:"tabler:chevron-down"},selectedItemIconAsTrailingIcon:{type:Boolean,default:!0},maxCount:{},to:{},placeholder:{},indicatorIcon:{default:"tabler:check"},options:{},getDisabled:{},getLabel:{},getValue:{},getGroupOptions:{},getGroupLabel:{},getIcon:{},placement:{default:"bottom"},reversePlacementOnDir:{},loading:{type:Boolean},skeletonProps:{},loadingRowCount:{default:10},lazyLoading:{type:Boolean},bordered:{type:Boolean,default:!0},clearOnChangeMultiple:{type:Boolean,default:!0},triggerCls:{},triggerLeadingCls:{},triggerContentCls:{},triggerContentPlaceholderCls:{},triggerContentValueCls:{},triggerTrailingCls:{},itemLeadingCls:{},optionCls:{},tagListCls:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean,default:!0},popupHeight:{default:384},popupWidth:{},minWidth:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},defaultValue:{},modelValue:{},by:{},dir:{},autocomplete:{},disabled:{type:Boolean,default:void 0},name:{},required:{type:Boolean},reference:{},forceMount:{type:Boolean,default:void 0},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean,default:void 0},collisionBoundary:{},collisionPadding:{default:4},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean,default:void 0},positionStrategy:{default:"fixed"},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean,default:void 0},prioritizePosition:{type:Boolean,default:void 0},asChild:{type:Boolean},as:{},defer:{type:Boolean}},emits:["update:modelValue","update:open","closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(f,{emit:e}){const o=f,t=e,k=I.useEmitAsProps(t),c=n.computed(()=>r.omitBy({...r.pick(o,"open","defaultOpen","defaultValue","modelValue","by","dir","multiple","autocomplete","disabled"),...r.pick(k,"onUpdate:modelValue","onUpdate:open")},r.isUndefined)),j=n.useSlots(),R=n.useAttrs();return Ee({attrs:R,props:o,emit:t,emitsAsProps:k}),(P,K)=>(n.openBlock(),n.createBlock(n.unref(I.SelectRoot),n.normalizeProps(n.guardReactiveProps(c.value)),{default:n.withCtx(()=>[n.createVNode(n.unref(Be),null,n.createSlots({_:2},[n.renderList(Object.keys(j),w=>({name:w,fn:n.withCtx(D=>[n.renderSlot(P.$slots,w,n.normalizeProps(n.guardReactiveProps(D)))])}))]),1024)]),_:3},16))}});exports.SelectOption=te;exports.SelectSizes=oe;exports.SelectStatuses=ce;exports._sfc_main=be;exports._sfc_main$1=de;exports.injectSelectContext=le;exports.provideSelectContext=ge;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),c=require("@pantograph/utils"),u=require("./options-CWrQ7gsa.js"),i=require("./Kbd.vue_vue_type_style_index_0_lang-9AEhO33W.js"),a=require("./Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js"),_=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(n){const r=n,o=c.getBemBlock("shortcut");return(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o),r.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i._sfc_main),e.mergeProps({ref_for:!0},s),null,16),t.items.length>1&&l<t.items.length-1&&t.plus?(e.openBlock(),e.createBlock(a._sfc_main$3,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=_;
@@ -1,32 +0,0 @@
1
- import { defineComponent as c, createElementBlock as r, openBlock as t, normalizeClass as i, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as g, mergeProps as d } from "vue";
2
- import { getBemBlock as h } from "@pantograph/utils";
3
- import { g as k } from "./options-D4et5euX.js";
4
- import { _ as B } from "./Kbd.vue_vue_type_style_index_0_lang-DnQHHSjf.js";
5
- import { k as C } from "./Icon.vue_vue_type_style_index_0_lang-B5G5kKKT.js";
6
- const b = /* @__PURE__ */ c({
7
- ...k("Shortcut"),
8
- __name: "Shortcut",
9
- props: {
10
- class: {},
11
- items: {},
12
- plus: { type: Boolean, default: !0 }
13
- },
14
- setup(n) {
15
- const m = n, l = h("shortcut");
16
- return (e, y) => (t(), r("div", {
17
- class: i([o(l), m.class])
18
- }, [
19
- (t(!0), r(s, null, u(e.items, (a, p) => (t(), r(s, null, [
20
- f(o(B), d({ ref_for: !0 }, a), null, 16),
21
- e.items.length > 1 && p < e.items.length - 1 && e.plus ? (t(), _(C, {
22
- key: 0,
23
- icon: "tabler:plus",
24
- size: "3xsm"
25
- })) : g("", !0)
26
- ], 64))), 256))
27
- ], 2));
28
- }
29
- });
30
- export {
31
- b as _
32
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),n=require("@pantograph/utils"),m=require("class-variance-authority"),p=require("./options-CWrQ7gsa.js"),a=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],r=["2xsm","sm","md","lg"],k=e.defineComponent({...p.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},inactive:{type:Boolean,default:!1},class:{},itemCls:{},itemsCount:{}},setup(i){const s=n.getBemBlock("skeleton"),t=i,o=m.cva(s,{variants:{inactive:n.generateVariantClassList("inactive",s),size:n.generateVariantClassList(r,s),type:n.generateVariantClassList(a,s)}}),l=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o)(t),t.class])},[["paragraph","list","custom-items"].includes(c.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n.getBemElement)(e.unref(s),"item"),t.itemCls]),key:u},null,2))),128)):e.createCommentVNode("",!0)],2))}});exports.SkeletonSizes=r;exports.SkeletonTypes=a;exports._sfc_main=k;
@@ -1,58 +0,0 @@
1
- import { defineComponent as u, computed as d, createElementBlock as s, openBlock as a, normalizeClass as r, unref as n, createCommentVNode as f, Fragment as C, renderList as g } from "vue";
2
- import { getBemBlock as v, generateVariantClassList as o, getBemElement as k } from "@pantograph/utils";
3
- import { cva as y } from "class-variance-authority";
4
- import { g as h } from "./options-D4et5euX.js";
5
- const B = [
6
- "avatar",
7
- "input",
8
- "button",
9
- "paragraph",
10
- "headline",
11
- "list",
12
- "base",
13
- "custom",
14
- "custom-items"
15
- ], S = ["2xsm", "sm", "md", "lg"], L = /* @__PURE__ */ u({
16
- ...h("Skeleton"),
17
- __name: "Skeleton",
18
- props: {
19
- type: { default: "base" },
20
- size: { default: "md" },
21
- inactive: { type: Boolean, default: !1 },
22
- class: {},
23
- itemCls: {},
24
- itemsCount: {}
25
- },
26
- setup(i) {
27
- const t = v("skeleton"), e = i, m = y(t, {
28
- variants: {
29
- inactive: o("inactive", t),
30
- size: o(S, t),
31
- type: o(B, t)
32
- }
33
- }), l = d(() => {
34
- if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
35
- switch (e.type) {
36
- case "paragraph":
37
- return 4;
38
- case "list":
39
- return 2;
40
- default:
41
- return 0;
42
- }
43
- });
44
- return (c, _) => (a(), s("div", {
45
- class: r([n(m)(e), e.class])
46
- }, [
47
- ["paragraph", "list", "custom-items"].includes(c.type) ? (a(!0), s(C, { key: 0 }, g(l.value, (p) => (a(), s("div", {
48
- class: r([n(k)(n(t), "item"), e.itemCls]),
49
- key: p
50
- }, null, 2))), 128)) : f("", !0)
51
- ], 2));
52
- }
53
- });
54
- export {
55
- B as S,
56
- L as _,
57
- S as a
58
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),o=require("@pantograph/utils"),C=require("class-variance-authority"),p=require("./Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js"),d=require("./options-CWrQ7gsa.js"),a=["3xsm","2xsm","xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...d.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{}},setup(l){const s=l,n=o.getBemBlock("spinner"),c=C.cva(n,{variants:{size:o.generateVariantClassList(a,n),icon:o.generateVariantClassList("icon",n)}}),i=e.useSlots(),u=e.computed(()=>!!s.text||!!i.default),m=e.computed(()=>s.text);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)({size:t.size,icon:!!t.icon||!!i.icon}),s.class])},[e.createVNode(p._sfc_main$3,{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"icon")),size:t.size,icon:t.icon},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},()=>[t.icon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",f,r[0]||(r[0]=[e.createElementVNode("path",{d:"M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",fill:"currentColor"},[e.createElementVNode("animateTransform",{attributeName:"transform",dur:"1s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)])))])]),_:3},8,["class","size","icon"]),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"text"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.value),1)])],2)):e.createCommentVNode("",!0)],2))}});exports.SpinnerSizes=a;exports._sfc_main=B;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),l=require("@pantograph/utils"),I=require("class-variance-authority"),i=require("reka-ui"),v=require("./Icon.vue_vue_type_style_index_0_lang-UTawvSSk.js"),w=require("./options-CWrQ7gsa.js");require("@iconify/vue");const k=require("./useInputDataStates-B9FItrY8.js"),g=["2xsm","xsm","sm"],x=["for"],_=e.defineComponent({...w.getComponentOptions("Switch"),__name:"Switch",props:{checked:{type:[Boolean,null],default:void 0},size:{default:"xsm"},class:{},rootCls:{},labelCls:{},label:{},defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean,default:void 0},id:{},value:{},as:{},name:{},required:{type:Boolean,default:void 0}},emits:["update:checked","change","blur","focus","update:modelValue"],setup(B,{emit:C}){const n=B,o=C,V=i.useEmitAsProps(o),s=l.getBemBlock("switch"),b=I.cva(s,{variants:{size:l.generateVariantClassList(g,s),innerText:l.generateVariantClassList("inner-text",s),innerIcon:l.generateVariantClassList("inner-icon",s)}}),a=e.useSlots(),d=e.computed(()=>n.id??l.usePCId(s)),{getDisabled:m}=k.useFormInput(),{rootBindings:z,inputBindings:S}=k.UseInputDataStates({getDisabled:()=>m.value,emit:o}),y=e.computed(()=>({...v.omit(n,"size","class","id","rootCls","labelCls","label","disabled","modelValue","checked"),disabled:m.value,...v.omit(V,"onUpdate:modelValue","onUpdate:checked"),id:d.value,...S.value})),u=e.computed(()=>n.size==="xsm"?"3xsm":"2xsm"),p=e.computed(()=>!!(a.label||n.label)),r=e.computed(()=>n.modelValue??n.checked),c=e.ref(r.value??!1);e.watch(()=>[n.modelValue,n.checked],()=>{c.value=r.value??!1});const f=e.computed({get(){return r.value!==void 0?r.value:c.value},set(t){r.value===void 0&&(c.value=t),o("update:checked",t),o("update:modelValue",t),o("change",t)}});return(t,h)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:p.value,class:[e.unref(l.getBemElement)(e.unref(s),"root"),n.rootCls]},e.unref(z)),[e.createVNode(e.unref(i.SwitchRoot),e.mergeProps({class:[e.unref(b)({size:t.size,innerText:!!(a.checkedText||a.uncheckedText),innerIcon:!!(a.checkedIcon||a.uncheckedIcon)}),n.class]},y.value,{modelValue:f.value,"onUpdate:modelValue":h[0]||(h[0]=E=>f.value=E)}),{default:e.withCtx(()=>[e.createVNode(e.unref(i.SwitchThumb),{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"thumb"))},{default:e.withCtx(()=>[["xsm","sm"].includes(t.size)?e.renderSlot(t.$slots,"thumb",{key:0,size:u.value}):e.createCommentVNode("",!0)]),_:3},8,["class"]),["xsm","sm"].includes(t.size)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner__checked"))},[e.renderSlot(t.$slots,"checkedText",{},()=>[e.renderSlot(t.$slots,"checkedIcon",{size:u.value})])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l.getBemElement)(e.unref(s),"inner__unchecked"))},[e.renderSlot(t.$slots,"uncheckedText",{},()=>[e.renderSlot(t.$slots,"uncheckedIcon",{size:u.value})])],2)],2)):e.createCommentVNode("",!0)]),_:3},16,["class","modelValue"]),p.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(l.getBemElement)(e.unref(s),"label"),t.labelCls]),for:d.value},[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],10,x)):e.createCommentVNode("",!0)],16))}});exports.SwitchSizes=g;exports._sfc_main=_;