@pantograph/vue 0.27.4 → 0.27.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 (284) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-D3TR9Ar1.js +1 -0
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-B7a38s3f.js → ActionButton.vue_vue_type_script_setup_true_lang-D6GO-k30.js} +1 -1
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_script_setup_true_lang-DTnCnw4I.js → Alert.vue_vue_type_style_index_0_lang-Dy5qag1y.js} +15 -17
  8. package/dist/Alert.vue_vue_type_style_index_0_lang-qPl7g81O.js +1 -0
  9. package/dist/Avatar/Avatar.d.ts +1 -1
  10. package/dist/Avatar/index.js +1 -1
  11. package/dist/Avatar/index.umd.cjs +1 -1
  12. package/dist/Avatar.vue_vue_type_style_index_0_lang-BV977bUz.js +1 -0
  13. package/dist/{Avatar.vue_vue_type_script_setup_true_lang-D6M8USW4.js → Avatar.vue_vue_type_style_index_0_lang-DPrsRMvX.js} +32 -34
  14. package/dist/AvatarGroup/index.js +1 -1
  15. package/dist/AvatarGroup/index.umd.cjs +1 -1
  16. package/dist/Badge/index.js +1 -1
  17. package/dist/Badge/index.umd.cjs +1 -1
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-BP3OmkDG.js +1 -0
  19. package/dist/{Badge.vue_vue_type_script_setup_true_lang-CaAe4Yuz.js → Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js} +1 -1
  20. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-Cgdc_pvz.js +1 -0
  21. package/dist/{BaseBadge.vue_vue_type_script_setup_true_lang-D-XjAZLL.js → BaseBadge.vue_vue_type_style_index_0_lang-DwkMDLPp.js} +18 -20
  22. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CJ5cQhLc.js +1 -0
  23. package/dist/{BaseButton.vue_vue_type_script_setup_true_lang-C0M_v3YX.js → BaseButton.vue_vue_type_style_index_0_lang-D8UQiapO.js} +13 -15
  24. package/dist/{BaseInput.vue_vue_type_script_setup_true_lang-BIm-kBuJ.js → BaseInput.vue_vue_type_style_index_0_lang-C4NwIPPo.js} +40 -42
  25. package/dist/BaseInput.vue_vue_type_style_index_0_lang-Tx73X2wE.js +1 -0
  26. package/dist/Button/index.js +1 -1
  27. package/dist/Button/index.umd.cjs +1 -1
  28. package/dist/{Button.vue_vue_type_script_setup_true_lang-BwYhOQBC.js → Button.vue_vue_type_script_setup_true_lang-Mnltc7z6.js} +1 -1
  29. package/dist/Button.vue_vue_type_script_setup_true_lang-jL1v7uqc.js +1 -0
  30. package/dist/Checkbox/index.js +1 -1
  31. package/dist/Checkbox/index.umd.cjs +1 -1
  32. package/dist/{Checkbox.vue_vue_type_script_setup_true_lang-DVmFg39-.js → Checkbox.vue_vue_type_style_index_0_lang-DnfmdUgk.js} +58 -60
  33. package/dist/Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js +1 -0
  34. package/dist/CheckboxGroup/index.js +1 -1
  35. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  36. package/dist/Chip/index.js +1 -1
  37. package/dist/Chip/index.umd.cjs +1 -1
  38. package/dist/Chip.vue_vue_type_style_index_0_lang-85COdIHv.js +1 -0
  39. package/dist/{Chip.vue_vue_type_script_setup_true_lang-B0_Xt99k.js → Chip.vue_vue_type_style_index_0_lang-BTkjNPpY.js} +45 -49
  40. package/dist/ChipGroup/index.js +1 -1
  41. package/dist/ChipGroup/index.umd.cjs +1 -1
  42. package/dist/ColorPicker/index.js +1 -1
  43. package/dist/ColorPicker/index.umd.cjs +1 -1
  44. package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-Dj4xxf8o.js → ColorPicker.vue_vue_type_style_index_0_lang-BdOoCdNS.js} +188 -190
  45. package/dist/{ColorPicker.vue_vue_type_script_setup_true_lang-qMOFhEXd.js → ColorPicker.vue_vue_type_style_index_0_lang-DKKyeshn.js} +3 -3
  46. package/dist/ColorSwatch/index.js +1 -1
  47. package/dist/ColorSwatch/index.umd.cjs +1 -1
  48. package/dist/ColorSwatch-Ble3U3gh.js +1 -0
  49. package/dist/ColorSwatch-CvO0aEqV.js +4 -0
  50. package/dist/{ColorSwatch.vue_vue_type_script_setup_true_lang-DfJGNFtX.js → ColorSwatch.vue_vue_type_style_index_0_lang-D1iZGTU1.js} +29 -31
  51. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DV7_KzOo.js +1 -0
  52. package/dist/ColorSwatchGroup/index.js +1 -1
  53. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  54. package/dist/{ColorSwatchGroup.vue_vue_type_script_setup_true_lang-CKU8V4qd.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CVm2wACN.js} +27 -29
  55. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DVHeRwbA.js +1 -0
  56. package/dist/ColorTrigger/index.js +1 -1
  57. package/dist/ColorTrigger/index.umd.cjs +1 -1
  58. package/dist/{ColorTrigger.vue_vue_type_script_setup_true_lang-BkvtQ4zd.js → ColorTrigger.vue_vue_type_style_index_0_lang-BfBgZWIs.js} +23 -25
  59. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-D1LOnBjA.js +1 -0
  60. package/dist/Combobox/context.d.ts +1 -0
  61. package/dist/Combobox/index.js +1 -1
  62. package/dist/Combobox/index.umd.cjs +1 -1
  63. package/dist/{Combobox.vue_vue_type_script_setup_true_lang-DXwg6ANz.js → Combobox.vue_vue_type_style_index_0_lang-BA_I2GN7.js} +272 -261
  64. package/dist/Combobox.vue_vue_type_style_index_0_lang-C2gSuLRv.js +1 -0
  65. package/dist/Comment/CommentActions.d.ts +2 -2
  66. package/dist/Comment/CommentEditor.d.ts +4 -4
  67. package/dist/Comment/CommentReactions.d.ts +1 -1
  68. package/dist/Comment/index.js +99 -105
  69. package/dist/Comment/index.umd.cjs +1 -1
  70. package/dist/DataTable/index.js +1 -1
  71. package/dist/DataTable/index.umd.cjs +1 -1
  72. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-C1Y05q2y.js → DataTable.vue_vue_type_style_index_0_lang-Bk51mlZo.js} +35 -37
  73. package/dist/DataTable.vue_vue_type_style_index_0_lang-wedX7ZEP.js +1 -0
  74. package/dist/Divider/index.js +1 -1
  75. package/dist/Divider/index.umd.cjs +1 -1
  76. package/dist/Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js +36 -0
  77. package/dist/Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js +1 -0
  78. package/dist/DropZone/DropZone.d.ts +1 -1
  79. package/dist/DropZone/index.js +1 -1
  80. package/dist/DropZone/index.umd.cjs +1 -1
  81. package/dist/DropZone.vue_vue_type_style_index_0_lang-D2U8rqTy.js +1 -0
  82. package/dist/{DropZone.vue_vue_type_script_setup_true_lang-AN1jpLJz.js → DropZone.vue_vue_type_style_index_0_lang-ZfmWjf5_.js} +33 -35
  83. package/dist/Empty/index.js +1 -1
  84. package/dist/Empty/index.umd.cjs +1 -1
  85. package/dist/{Empty.vue_vue_type_script_setup_true_lang-BCQOhz-A.js → Empty.vue_vue_type_style_index_0_lang-GEhjGuWp.js} +25 -27
  86. package/dist/Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js +1 -0
  87. package/dist/FloatButton/index.js +1 -1
  88. package/dist/FloatButton/index.umd.cjs +1 -1
  89. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-D0b4JhQp.js → FloatButton.vue_vue_type_script_setup_true_lang-DH1hvvgb.js} +1 -1
  90. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Drvb_yGk.js +1 -0
  91. package/dist/Form/index.js +1 -1
  92. package/dist/Form/index.umd.cjs +1 -1
  93. package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BVTTJmKI.js → FormValidation.vue_vue_type_style_index_0_lang-ByTzoA28.js} +3 -3
  94. package/dist/{FormValidation.vue_vue_type_script_setup_true_lang-BJnTmqoo.js → FormValidation.vue_vue_type_style_index_0_lang-DmI2Cicu.js} +309 -313
  95. package/dist/GOPicker/index.js +1 -1
  96. package/dist/GOPicker/index.umd.cjs +1 -1
  97. package/dist/GOPicker.vue_vue_type_style_index_0_lang-CteKvBMt.js +1 -0
  98. package/dist/{GOPicker.vue_vue_type_script_setup_true_lang-UNRfZ8eW.js → GOPicker.vue_vue_type_style_index_0_lang-LCobQHEi.js} +21 -23
  99. package/dist/GraphicalObject/index.js +1 -1
  100. package/dist/GraphicalObject/index.umd.cjs +1 -1
  101. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-C6SGYINj.js +1 -0
  102. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-C45pbuL2.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DsNpKZ1Q.js} +2 -2
  103. package/dist/GraphicalObjectGroup/index.js +1 -1
  104. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  105. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DpUJtahs.js +1 -0
  106. package/dist/GraphicalObjectGroup.vue_vue_type_style_index_0_lang-hijTVsAM.js +62 -0
  107. package/dist/HoverCard/index.js +2 -2
  108. package/dist/HoverCard/index.umd.cjs +1 -1
  109. package/dist/HoverCard.vue_vue_type_style_index_0_lang-BXomv-C2.js +1 -0
  110. package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-CgDV1bGl.js → HoverCard.vue_vue_type_style_index_0_lang-CZjE-3yG.js} +15 -17
  111. package/dist/Icon/index.js +1 -1
  112. package/dist/Icon/index.umd.cjs +1 -1
  113. package/dist/Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js +1 -0
  114. package/dist/Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js +47 -0
  115. package/dist/IconButton/index.js +1 -1
  116. package/dist/IconButton/index.umd.cjs +1 -1
  117. package/dist/IconButton.vue_vue_type_script_setup_true_lang-Dk1TQJVA.js +1 -0
  118. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DbWKTcZc.js → IconButton.vue_vue_type_script_setup_true_lang-ahPqU4HJ.js} +1 -1
  119. package/dist/Image/index.js +1 -1
  120. package/dist/Image/index.umd.cjs +1 -1
  121. package/dist/Image.vue_vue_type_style_index_0_lang-6NV8jF6n.js +1 -0
  122. package/dist/Image.vue_vue_type_style_index_0_lang-CLuipQtA.js +126 -0
  123. package/dist/IndentLevel/index.js +1 -1
  124. package/dist/IndentLevel/index.umd.cjs +1 -1
  125. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-0YtmWnET.js +1 -0
  126. package/dist/{IndentLevel.vue_vue_type_script_setup_true_lang-gsLH8xYH.js → IndentLevel.vue_vue_type_style_index_0_lang-DGxzy3Fe.js} +29 -31
  127. package/dist/Indicator/index.js +1 -1
  128. package/dist/Indicator/index.umd.cjs +1 -1
  129. package/dist/Indicator.vue_vue_type_script_setup_true_lang-DAMwZQWn.js +1 -0
  130. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DXj4SwTV.js → Indicator.vue_vue_type_script_setup_true_lang-rKOaH8eB.js} +1 -1
  131. package/dist/Input/index.js +1 -1
  132. package/dist/Input/index.umd.cjs +1 -1
  133. package/dist/{Input.vue_vue_type_script_setup_true_lang-B6TZLtSK.js → Input.vue_vue_type_script_setup_true_lang-8xzs2Ugc.js} +1 -1
  134. package/dist/Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js +1 -0
  135. package/dist/InputNumber/index.js +1 -1
  136. package/dist/InputNumber/index.umd.cjs +1 -1
  137. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CKg_NSdF.js +1 -0
  138. package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Dk-jieRY.js → InputNumber.vue_vue_type_script_setup_true_lang-CNWtwCOO.js} +2 -2
  139. package/dist/Kbd/index.js +1 -1
  140. package/dist/Kbd/index.umd.cjs +1 -1
  141. package/dist/Kbd.vue_vue_type_style_index_0_lang-BCfWLm9R.js +1 -0
  142. package/dist/{Kbd.vue_vue_type_script_setup_true_lang-BjIP0HlW.js → Kbd.vue_vue_type_style_index_0_lang-D1FVFk72.js} +11 -13
  143. package/dist/Label/index.js +1 -1
  144. package/dist/Label/index.umd.cjs +1 -1
  145. package/dist/{Label.vue_vue_type_script_setup_true_lang-NFunrvyw.js → Label.vue_vue_type_style_index_0_lang-DCjjITld.js} +26 -28
  146. package/dist/Label.vue_vue_type_style_index_0_lang-DwExesoL.js +1 -0
  147. package/dist/Link/index.js +1 -1
  148. package/dist/Link/index.umd.cjs +1 -1
  149. package/dist/Link.vue_vue_type_style_index_0_lang-B1uxGXxI.js +1 -0
  150. package/dist/{Link.vue_vue_type_script_setup_true_lang-BISssWeB.js → Link.vue_vue_type_style_index_0_lang-brdTffbT.js} +18 -20
  151. package/dist/Menu/index.js +1 -1
  152. package/dist/Menu/index.umd.cjs +1 -1
  153. package/dist/MenuItem/index.js +1 -1
  154. package/dist/MenuItem/index.umd.cjs +1 -1
  155. package/dist/{MenuItem.vue_vue_type_script_setup_true_lang-CC0ZX8mk.js → MenuItem.vue_vue_type_style_index_0_lang-3CVlU74B.js} +99 -104
  156. package/dist/MenuItem.vue_vue_type_style_index_0_lang-BbAMfSHF.js +1 -0
  157. package/dist/Pagination/index.js +1 -1
  158. package/dist/Pagination/index.umd.cjs +1 -1
  159. package/dist/Pagination.vue_vue_type_style_index_0_lang-B0_VsOAZ.js +1 -0
  160. package/dist/{Pagination.vue_vue_type_script_setup_true_lang-BUlHheg6.js → Pagination.vue_vue_type_style_index_0_lang-CLsI3KAW.js} +54 -56
  161. package/dist/Popover/index.js +1 -1
  162. package/dist/Popover/index.umd.cjs +1 -1
  163. package/dist/{Popover.vue_vue_type_script_setup_true_lang-DhDzrGk6.js → Popover.vue_vue_type_style_index_0_lang-QNb3ngGr.js} +88 -90
  164. package/dist/Popover.vue_vue_type_style_index_0_lang-pl_b1loW.js +1 -0
  165. package/dist/Progress/index.js +1 -1
  166. package/dist/Progress/index.umd.cjs +1 -1
  167. package/dist/Progress.vue_vue_type_style_index_0_lang-B4GBo6sb.js +1 -0
  168. package/dist/{Progress.vue_vue_type_script_setup_true_lang-DDtJkd5S.js → Progress.vue_vue_type_style_index_0_lang-DtG1mmcQ.js} +34 -36
  169. package/dist/RadioGroup/index.js +1 -1
  170. package/dist/RadioGroup/index.umd.cjs +1 -1
  171. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Bpc9dmT5.js +1 -0
  172. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-wamsBRJy.js → RadioGroup.vue_vue_type_script_setup_true_lang-DwnLgUkZ.js} +27 -29
  173. package/dist/ScrollContainer/index.js +1 -1
  174. package/dist/ScrollContainer/index.umd.cjs +1 -1
  175. package/dist/{ScrollContainer.vue_vue_type_script_setup_true_lang-FKw-Hnvi.js → ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js} +24 -26
  176. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js +1 -0
  177. package/dist/Segmented/index.js +1 -1
  178. package/dist/Segmented/index.umd.cjs +1 -1
  179. package/dist/Segmented.vue_vue_type_style_index_0_lang-HKjApQIO.js +1 -0
  180. package/dist/{Segmented.vue_vue_type_script_setup_true_lang-C3_Tl2yp.js → Segmented.vue_vue_type_style_index_0_lang-q28c-KjP.js} +16 -18
  181. package/dist/Select/index.js +1 -1
  182. package/dist/Select/index.umd.cjs +1 -1
  183. package/dist/Select.vue_vue_type_style_index_0_lang-DK0gqVv1.js +1 -0
  184. package/dist/{Select.vue_vue_type_script_setup_true_lang-B_KHB5DB.js → Select.vue_vue_type_style_index_0_lang-DXCsSdMK.js} +66 -68
  185. package/dist/Shortcut/index.js +1 -1
  186. package/dist/Shortcut/index.umd.cjs +1 -1
  187. package/dist/Shortcut.vue_vue_type_style_index_0_lang-C-wsusvY.js +32 -0
  188. package/dist/Shortcut.vue_vue_type_style_index_0_lang-TFcjdHpb.js +1 -0
  189. package/dist/Skeleton/index.js +1 -1
  190. package/dist/Skeleton/index.umd.cjs +1 -1
  191. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-V3Y9sTi-.js → Skeleton.vue_vue_type_style_index_0_lang-BUizov_K.js} +16 -18
  192. package/dist/Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js +1 -0
  193. package/dist/Spinner/index.js +1 -1
  194. package/dist/Spinner/index.umd.cjs +1 -1
  195. package/dist/{Spinner.vue_vue_type_script_setup_true_lang-CMhmFqGC.js → Spinner.vue_vue_type_style_index_0_lang-COQRqpmY.js} +19 -21
  196. package/dist/Spinner.vue_vue_type_style_index_0_lang-k30PU_tO.js +1 -0
  197. package/dist/SubMenu/index.js +1 -1
  198. package/dist/SubMenu/index.umd.cjs +1 -1
  199. package/dist/Switch/index.js +1 -1
  200. package/dist/Switch/index.umd.cjs +1 -1
  201. package/dist/{Switch.vue_vue_type_script_setup_true_lang-C-mChuJl.js → Switch.vue_vue_type_style_index_0_lang-6euiPiT-.js} +19 -21
  202. package/dist/Switch.vue_vue_type_style_index_0_lang-Cc1XCDc2.js +1 -0
  203. package/dist/THead.vue_vue_type_style_index_0_lang-CnapuGqj.js +1 -0
  204. package/dist/THead.vue_vue_type_style_index_0_lang-DaCjVYIl.js +198 -0
  205. package/dist/TabContent.vue_vue_type_script_setup_true_lang-B6GAPEdf.js +1 -0
  206. package/dist/{TabContent.vue_vue_type_script_setup_true_lang-MacLlpoI.js → TabContent.vue_vue_type_script_setup_true_lang-B6gNekgT.js} +37 -39
  207. package/dist/Table/index.js +1 -1
  208. package/dist/Table/index.umd.cjs +1 -1
  209. package/dist/Tabs/index.js +1 -1
  210. package/dist/Tabs/index.umd.cjs +1 -1
  211. package/dist/Textarea/index.js +1 -1
  212. package/dist/Textarea/index.umd.cjs +1 -1
  213. package/dist/{Textarea.vue_vue_type_script_setup_true_lang-CvTs1oY9.js → Textarea.vue_vue_type_style_index_0_lang-CLhSsqGd.js} +41 -43
  214. package/dist/Textarea.vue_vue_type_style_index_0_lang-S0QXyiqu.js +1 -0
  215. package/dist/Tree/index.js +1 -1
  216. package/dist/Tree/index.umd.cjs +1 -1
  217. package/dist/{Tree.vue_vue_type_script_setup_true_lang-CjPUxT5q.js → Tree.vue_vue_type_style_index_0_lang-BpP1B-73.js} +36 -38
  218. package/dist/Tree.vue_vue_type_style_index_0_lang-CkWdHL4R.js +1 -0
  219. package/dist/Upload/index.js +1 -1
  220. package/dist/Upload/index.umd.cjs +1 -1
  221. package/dist/Upload.vue_vue_type_style_index_0_lang-DvL_F6Ye.js +1 -0
  222. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CwSlVjBi.js → Upload.vue_vue_type_style_index_0_lang-RRr-8pG3.js} +70 -72
  223. package/dist/index.js +50 -50
  224. package/dist/index.umd.cjs +1 -1
  225. package/dist/style/index.css +1 -1
  226. package/package.json +2 -2
  227. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-B95JGdI_.js +0 -1
  228. package/dist/Alert.vue_vue_type_script_setup_true_lang-CJna3KsH.js +0 -1
  229. package/dist/Avatar.vue_vue_type_script_setup_true_lang-Nn10rcGu.js +0 -1
  230. package/dist/Badge.vue_vue_type_script_setup_true_lang-DJej9nkJ.js +0 -1
  231. package/dist/BaseBadge.vue_vue_type_script_setup_true_lang-BKUITOpw.js +0 -1
  232. package/dist/BaseButton.vue_vue_type_script_setup_true_lang-Bo_ZJcOQ.js +0 -1
  233. package/dist/BaseInput.vue_vue_type_script_setup_true_lang-CpnBS-1D.js +0 -1
  234. package/dist/Button.vue_vue_type_script_setup_true_lang-CdtU8pJ8.js +0 -1
  235. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DdF-cXiP.js +0 -1
  236. package/dist/Chip.vue_vue_type_script_setup_true_lang-DerG27zp.js +0 -1
  237. package/dist/ColorSwatch-BrPkMitU.js +0 -4
  238. package/dist/ColorSwatch-By6c-JXm.js +0 -1
  239. package/dist/ColorSwatch.vue_vue_type_script_setup_true_lang-BJY6PbEL.js +0 -1
  240. package/dist/ColorSwatchGroup.vue_vue_type_script_setup_true_lang-ovLnyiXB.js +0 -1
  241. package/dist/ColorTrigger.vue_vue_type_script_setup_true_lang-DBwNGwz7.js +0 -1
  242. package/dist/Combobox.vue_vue_type_script_setup_true_lang-Cmor3uQM.js +0 -1
  243. package/dist/DataTable.vue_vue_type_script_setup_true_lang-CnRD6Q68.js +0 -1
  244. package/dist/Divider.vue_vue_type_script_setup_true_lang-BZRu0h3n.js +0 -38
  245. package/dist/Divider.vue_vue_type_script_setup_true_lang-D6Tc-M5M.js +0 -1
  246. package/dist/DropZone.vue_vue_type_script_setup_true_lang-dVL4HZVW.js +0 -1
  247. package/dist/Empty.vue_vue_type_script_setup_true_lang-BbliP7AT.js +0 -1
  248. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BhhowIQi.js +0 -1
  249. package/dist/GOPicker.vue_vue_type_script_setup_true_lang-DsZCv1Eu.js +0 -1
  250. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CudIoHnp.js +0 -1
  251. package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-Ciq5L_5z.js +0 -64
  252. package/dist/GraphicalObjectGroup.vue_vue_type_script_setup_true_lang-DlxMW3gN.js +0 -1
  253. package/dist/HoverCard.vue_vue_type_script_setup_true_lang-B6gl0uZH.js +0 -1
  254. package/dist/Icon.vue_vue_type_script_setup_true_lang-Be6ayltH.js +0 -1
  255. package/dist/Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js +0 -49
  256. package/dist/IconButton.vue_vue_type_script_setup_true_lang-mcs7CjOV.js +0 -1
  257. package/dist/Image.vue_vue_type_script_setup_true_lang-Bci9LkrG.js +0 -1
  258. package/dist/Image.vue_vue_type_script_setup_true_lang-C_MGypeV.js +0 -128
  259. package/dist/IndentLevel.vue_vue_type_script_setup_true_lang-D1ySGf-Z.js +0 -1
  260. package/dist/Indicator.vue_vue_type_script_setup_true_lang-BDGaDDdg.js +0 -1
  261. package/dist/Input.vue_vue_type_script_setup_true_lang-C7eXK7Z1.js +0 -1
  262. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-CyPMExCk.js +0 -1
  263. package/dist/Kbd.vue_vue_type_script_setup_true_lang-CxCXfVcU.js +0 -1
  264. package/dist/Label.vue_vue_type_script_setup_true_lang-DOIcDmSu.js +0 -1
  265. package/dist/Link.vue_vue_type_script_setup_true_lang-BKdeGQtS.js +0 -1
  266. package/dist/MenuItem.vue_vue_type_script_setup_true_lang-FR-W6X_P.js +0 -1
  267. package/dist/Pagination.vue_vue_type_script_setup_true_lang-DSzq-2Nd.js +0 -1
  268. package/dist/Popover.vue_vue_type_script_setup_true_lang-DlS1RQhN.js +0 -1
  269. package/dist/Progress.vue_vue_type_script_setup_true_lang-DpTDjzYC.js +0 -1
  270. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DlbOsulw.js +0 -1
  271. package/dist/ScrollContainer.vue_vue_type_script_setup_true_lang-CIXeFarD.js +0 -1
  272. package/dist/Segmented.vue_vue_type_script_setup_true_lang-v__5oumm.js +0 -1
  273. package/dist/Select.vue_vue_type_script_setup_true_lang-DgqUr22B.js +0 -1
  274. package/dist/Shortcut.vue_vue_type_script_setup_true_lang-B16kPcKe.js +0 -34
  275. package/dist/Shortcut.vue_vue_type_script_setup_true_lang-EJF2NtL_.js +0 -1
  276. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-ywJfG4ii.js +0 -1
  277. package/dist/Spinner.vue_vue_type_script_setup_true_lang-DO3B4TxR.js +0 -1
  278. package/dist/Switch.vue_vue_type_script_setup_true_lang-jd0vNflL.js +0 -1
  279. package/dist/THead.vue_vue_type_script_setup_true_lang-DCBqDoCR.js +0 -1
  280. package/dist/THead.vue_vue_type_script_setup_true_lang-DEiGZvbY.js +0 -209
  281. package/dist/TabContent.vue_vue_type_script_setup_true_lang-DmsuHY8J.js +0 -1
  282. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DiPxIJB_.js +0 -1
  283. package/dist/Tree.vue_vue_type_script_setup_true_lang-CjdtoEEK.js +0 -1
  284. package/dist/Upload.vue_vue_type_script_setup_true_lang-Di3zmtNn.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),_e=require("reka-ui"),x=require("es-toolkit"),c=require("@pantograph/utils-vue"),i=require("@pantograph/utils"),at=require("./Popover.vue_vue_type_style_index_0_lang-pl_b1loW.js"),we=require("class-variance-authority"),Ce=require("./Icon.vue_vue_type_style_index_0_lang-CMFYMG-2.js"),ye=require("./Avatar.vue_vue_type_style_index_0_lang-BV977bUz.js"),Me=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-C6SGYINj.js"),st=require("./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DpUJtahs.js"),Ie=require("./Chip.vue_vue_type_style_index_0_lang-85COdIHv.js"),it=require("./Input.vue_vue_type_script_setup_true_lang-C6YGbdin.js"),ut=require("@vueuse/core"),G=require("./isArray-Bin_5of_.js"),Ae=require("./MenuItem.vue_vue_type_style_index_0_lang-BbAMfSHF.js"),ct=require("./ScrollContainer.vue_vue_type_style_index_0_lang-Dti6qFXk.js"),pt=require("./Empty.vue_vue_type_style_index_0_lang-JL3Igq8r.js"),ee=require("./Tree.vue_vue_type_style_index_0_lang-CkWdHL4R.js"),dt=require("./Checkbox.vue_vue_type_style_index_0_lang-bWMji_p5.js");require("@pantograph/tokens");const gt=require("./Skeleton.vue_vue_type_style_index_0_lang-W1OLEfkY.js"),mt=require("./Divider.vue_vue_type_style_index_0_lang-jjCOfwfM.js"),ft=require("./isNumber-DMOjxgl8.js");function vt(v){return Array.isArray(v)?v:Array.from(v)}function ht(v){return Number.isSafeInteger(v)&&v>=0}function yt(v){return v!=null&&typeof v!="function"&&ht(v.length)}function _t(v){return v[0]}function Le(v){if(yt(v))return _t(vt(v))}const[pe,De]=_e.createContext("Combobox"),O=i.getBemBlock("combobox"),Re=i.getBemModifier(O,"value-placeholder"),ze=i.getBemElement(O,"option"),be=["sm","md","lg"],Ke=["error","warning","success"],ke=e.defineComponent({...c.getComponentOptions("ComboboxInput"),__name:"ComboboxInput",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},readonly:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:void 0},simple:{type:Boolean},size:{},status:{},steps:{type:Boolean}},setup(v){const o=v,n=e.useSlots(),s=pe();ut.whenever(()=>s.openModel.value&&s.inputRef.value,s.focusOnInput),e.onBeforeUnmount(()=>{s.comboboxInputFocused.value=!1});const W=e.computed(()=>{const r=o.placeholder??s.props.placeholder??"";return(s.props.headerSearch?r:s.placeholder.value)??r}),z=r=>{var f,b;if(s.props.headerSearch||r.stopPropagation(),r.key==="Backspace"&&s.props.multiple&&G.isArray(s.model.value)&&c.isEmptyLikeLodash(s.searchModel.value))s.model.value=s.model.value.slice(0,-1);else if(!s.openModel.value)(r.key==="ArrowDown"||r.key==="Enter")&&(s.openModel.value=!0);else if(s.openModel.value)if(r.key==="Escape")s.openModel.value=!1;else if(r.key==="Tab"&&!s.props.headerSearch)s.openModel.value=!1;else if(["ArrowDown","ArrowUp"].includes(r.key)){const u=s.getItems();if(u.length){const K=u.findIndex(_=>s.highlightedOptionKey.value&&_.value&&_.value===s.highlightedOptionKey.value);if(r.key==="ArrowDown"){const _=u[K+1];s.highlightedOptionKey.value=(_==null?void 0:_.value)??s.highlightedOptionKey.value??u[0].value}else if(r.key==="ArrowUp"){const _=u[K-1];s.highlightedOptionKey.value=(_==null?void 0:_.value)??u[0].value}(b=(f=u.find(_=>s.highlightedOptionKey.value&&_.value&&_.value===s.highlightedOptionKey.value))==null?void 0:f.ref)==null||b.scrollIntoView()}}else r.key==="Enter"&&s.highlightedOptionKey.value&&s.selectOption(s.getOptionByValue(s.highlightedOptionKey.value),!0)},y=i.getBemElement(O,"input");return(r,f)=>(e.openBlock(),e.createBlock(e.unref(it._sfc_main),e.mergeProps({...e.unref(s).comboboxInputBinding.value,...o},{placeholder:W.value,onKeydown:z,ref:e.unref(s).inputRef,class:e.unref(i.normCls)(e.unref(y),{[e.unref(Re)]:e.unref(s).valuePlaceholder.value},o.class),modelValue:e.unref(s).searchModel.value,"onUpdate:modelValue":f[0]||(f[0]=b=>e.unref(s).searchModel.value=b)}),e.createSlots({_:2},[e.renderList(Object.keys(e.unref(x.omit)(n,["leading"])),b=>({name:b,fn:e.withCtx(u=>[e.renderSlot(r.$slots,b,e.normalizeProps(e.guardReactiveProps(u)))])})),e.unref(s).props.headerSearch?{name:"leading",fn:e.withCtx(b=>[e.renderSlot(r.$slots,"leading",e.normalizeProps(e.guardReactiveProps(b)),()=>[e.createVNode(e.unref(Ce._sfc_main),{size:b.iconSize,icon:"tabler:search",flipOnDir:"rtl"},null,8,["size"])])]),key:"0"}:{name:"leading",fn:e.withCtx(b=>[e.renderSlot(r.$slots,"leading",e.normalizeProps(e.guardReactiveProps(b)))]),key:"1"}]),1040,["placeholder","class","modelValue"]))}}),Ct=e.defineComponent({...c.getComponentOptions("ComboboxTrigger"),__name:"ComboboxTrigger",setup(v){const o=pe(),n=({value:p})=>{p&&G.isArray(o.model.value)&&!o.getDisabled.value&&(o.model.value=o.model.value.filter(m=>m!==p))},s=e.computed(()=>{switch(o.getSize.value){case"sm":return"2xsm";case"md":default:return"xsm"}}),W=e.computed(()=>{if(!o.props.multiple&&x.isString(o.model.value)&&!c.isEmptyLikeLodash(o.model.value))return o.getOptionByValue(o.model.value)}),z=(p=W.value)=>{if(o.props.selectedItemIconAsTrailingIcon&&(p!=null&&p._icon))return p._icon},y=e.computed(()=>z()),r=e.computed(()=>{if(!o.props.noTrailing)return o.props.trailingIcon}),f=e.computed(()=>{var C,h;const p=x.cloneDeep(o.model.value),m=G.isArray(o.model.value);return{modelValue:p,open:x.cloneDeep(o.openModel.value),option:m?void 0:o.getOptionByValue(o.model.value),options:m?(h=(C=o.model.value).map)==null?void 0:h.call(C,o.getOptionByValue).filter(Boolean):void 0}}),b=p=>({...f.value,option:o.getOptionByValue(p)}),u=i.getBemElement(O,"trigger"),K=we.cva(u,{variants:{size:i.generateVariantClassList(be,u),headerSearch:i.generateVariantClassList("header-search",u),status:i.generateVariantClassList(Ke,u),bordered:i.generateVariantClassList("bordered",u),multiple:i.generateVariantClassList("multiple",u),contentFit:i.generateVariantClassList("content-fit",u),wrapped:i.generateVariantClassList("wrapped",u),filled:i.generateVariantClassList("filled",u)}}),_=e.computed(()=>({type:"button",disabled:o.getDisabled.value,tabindex:o.getDisabled.value||!o.props.headerSearch?-1:0,"data-disabled":o.getDisabled.value?"":void 0,"aria-disabled":o.getDisabled.value??void 0,"aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":o.openModel.value,"data-state":o.openModel.value?"open":"closed",class:i.normCls(K({size:o.getSize.value,status:o.getStatus.value==="success"&&c.isEmptyLikeLodash(o.model.value)?void 0:o.getStatus.value,bordered:o.props.bordered,multiple:o.props.multiple,contentFit:o.props.contentFit,wrapped:o.props.wrapped,filled:!c.isEmptyLikeLodash(o.model.value),headerSearch:o.props.headerSearch}),o.props.triggerCls),...o.comboboxTriggerBinding.value})),A=(p,m=s.value)=>e.h(Ce._sfc_main,{icon:p,size:m}),U=()=>{var C,h;let p;const m=(h=(C=o.slots).triggerTrailing)==null?void 0:h.call(C,f.value);if(c.isEmptyElement(m)?r.value&&(p=A(r.value)):p=m,p)return e.h("div",{class:i.normCls(i.getBemElement(u,"trailing"),o.props.triggerTrailingCls)},p)},F=p=>{var C,h;const m=o.getOptionByValue(p)??{_key:p};return e.h(ye._sfc_main,{size:o.getTagSize.value,...m?((h=(C=o.props).getTagProps)==null?void 0:h.call(C,m))??{}:{}})},T=p=>{var C,h;const m=o.getOptionByValue(p)??{_key:p};return e.h(Me._sfc_main,{...m?((h=(C=o.props).getTagProps)==null?void 0:h.call(C,m))??{}:{},size:o.getTagSize.value})},te=()=>{var p,m;if(!o.props.multiple&&!G.isArray(o.model.value)&&o.model.value){let C;x.isString(o.model.value)&&!c.isEmptyLikeLodash(o.model.value)&&(C=o.model.value);const h=C?(m=(p=o.slots).optionLeading)==null?void 0:m.call(p,Ae.getMenuContentSlotProps(o.props.size,b(C))):null,q=!c.isEmptyElement(h);if(q||o.props.tagRenderMode&&["avatar","go"].includes(o.props.tagRenderMode)||y.value||o.props.leadingIcon){let k;if(q?k=h:o.props.tagRenderMode==="avatar"?k=F(o.model.value):o.props.tagRenderMode==="go"?k=T(o.model.value):y.value?k=A(y.value):o.props.leadingIcon&&(k=A(o.props.leadingIcon)),!c.isEmptyElement(k))return e.h("div",{class:i.normCls(i.getBemElement(u,"leading"),o.props.triggerLeadingCls)},k)}}},N=()=>{var X,oe;const p=(oe=(X=o.slots).trigger)==null?void 0:oe.call(X,f.value);if(!c.isEmptyElement(p))return e.h(_e.Slot,x.omit(_.value,["class"]),()=>p);const C=()=>{const E=[],Y=[i.getBemElement(u,"tags"),o.props.triggerContentCls,o.props.triggerContentValueCls],Z=(()=>{if(o.props.multiple&&G.isArray(o.model.value)){if(o.props.tagRenderMode==="avatar")return e.h(ye._sfc_main$1,{maxCount:o.props.maxCount,size:o.getTagSize.value,closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y},()=>o.model.value.map(F));if(o.props.tagRenderMode==="go")return e.h(st._sfc_main,{maxCount:o.props.maxCount,size:o.getTagSize.value,closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y},()=>o.model.value.map(T));if(o.props.tagRenderMode==="chip")return e.h(Ie._sfc_main$1,{maxCount:o.props.maxCount,size:o.getTagSize.value,color:"primary",closeable:!o.getDisabled.value,noPopover:!0,noWrap:!o.props.wrapped,class:Y,onClose:n},()=>o.model.value.map(J=>{var V,D;const ne=()=>o.getLabelByValue(J),le=({size:de})=>{const ae=z(o.getOptionByValue(J))??o.props.leadingIcon;return ae?A(ae,de):null},re=o.getOptionByValue(J);return e.h(Ie._sfc_main,{...re?((D=(V=o.props).getTagProps)==null?void 0:D.call(V,re))??{}:{},value:J,class:i.normCls(i.getBemElement(u,"tag"),o.props.tagCls),closeIconCls:i.getBemElement(u,"tag__close")},{text:ne,leading:le})}))}})();return Z&&E.push(Z),o.props.headerSearch?(!o.props.noValueOnPlaceholder||o.props.placeholder)&&E.push(e.h("div",{class:i.normCls(i.getBemElement(u,"content__value"),{[Re]:o.valuePlaceholder.value})},o.placeholder.value??o.props.placeholder)):E.push(e.h(ke,{noValueOnPlaceholder:o.props.noValueOnPlaceholder,searchIcon:!1,bordered:!1,simple:!0})),e.h("div",{class:i.getBemElement(u,"content")},E)},h=[],q=te();c.isEmptyElement(q)||h.push(q),h.push(C());const k=U();return c.isEmptyElement(k)||h.push(k),e.h("button",_.value,h)};return(p,m)=>(e.openBlock(),e.createBlock(N))}}),Te=e.defineComponent({...c.getComponentOptions("ComboboxOption"),__name:"ComboboxOption",props:{option:{}},setup(v){const o=v,n=pe(),s=e.computed(()=>n.isOptionSelected(o.option._key)),W=r=>{var u,K,_,A,U,F;const f=[];!n.props.tree&&n.props.multiple&&n.props.checkbox&&!o.option._noCheckbox&&f.push(e.h(dt._sfc_main,{modelValue:s.value,size:r.checkboxSize,disabled:o.option._disabled}));const b=(K=(u=n.slots).optionLeading)==null?void 0:K.call(u,{...r,option:o.option});return c.isEmptyElement(b)?n.props.tagRenderMode==="avatar"&&n.props.showTriggerTagOnOption?f.push(e.h(ye._sfc_main,{size:r.avatarSize,...((A=(_=n.props).getTagProps)==null?void 0:A.call(_,o.option))??{}})):n.props.tagRenderMode==="go"&&n.props.showTriggerTagOnOption?f.push(e.h(Me._sfc_main,{size:r.iconSize,...((F=(U=n.props).getTagProps)==null?void 0:F.call(U,o.option))??{}})):o.option._icon&&f.push(e.h(Ce._sfc_main,{icon:o.option._icon,size:n.getIconSize.value})):f.push(b),c.isEmptyElement(f)?null:f},z=e.useAttrs(),y=()=>{const r=n.props.tree?void 0:o.option._description,f=(x.isFunction(n.props.getMenuItemProps)?n.props.getMenuItemProps(o.option):n.props.getMenuItemProps)??{};return e.h(Ae._sfc_main$1,{class:i.getBemElement(O,"option"),unFocusable:!0,staticStyle:n.props.tree,description:r,title:o.option._label,key:o.option._key,selected:s.value,leadingCenter:!!r,size:n.getSize.value,disabled:n.props.tree?!1:o.option._disabled,onClick:()=>n.selectOption(o.option),slotProps:o,...f,...z},{leading:W,trailing:n.slots.optionTrailing,title:n.slots.optionTitle,description:n.slots.optionDescription})};return(r,f)=>(e.openBlock(),e.createBlock(y))}}),bt=e.defineComponent({...c.getComponentOptions("ComboboxLabel"),__name:"ComboboxLabel",props:{label:{}},setup(v){return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"label"))},e.toDisplayString(o.label),3))}}),kt=e.defineComponent({...c.getComponentOptions("Combobox"),__name:"Combobox",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},highlightOnHover:{type:Boolean},resetSearchTermOnBlur:{type:Boolean,default:!0},resetSearchTermOnSelect:{type:Boolean,default:!0},size:{default:"md"},status:{},noValueOnPlaceholder:{type:Boolean},zIndex:{},checkbox:{type:Boolean,default:!0},tagRenderMode:{default:"chip"},getTagProps:{},tree:{type:Boolean},treeProps:{},contentFit:{type:Boolean},wrapped:{type:Boolean},sortSelectedItems:{type:Boolean},noTrailing:{type:Boolean},leadingIcon:{},trailingIcon:{default:"tabler:chevron-down"},selectedItemIconAsTrailingIcon:{type:Boolean,default:!0},maxCount:{},to:{},placeholder:{},indicatorIcon:{default:"tabler:check"},options:{},getDisabled:{},getLabel:{},getDescription:{},getValue:{},getNoCheckbox:{},getSingle:{},getClear:{},getOptions:{},getIcon:{},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:{},tagCls:{},popupCls:{},labelCls:{},optionsCls:{},optionTextCls:{},optionContentCls:{},emptyCls:{},skeletonCls:{},scrollContainerProps:{},emptyProps:{},samePopupWidth:{type:Boolean,default:!0},popupHeight:{default:384},popupWidth:{},minWidth:{},search:{},filterOptions:{},expandedKeys:{},noTrigger:{type:Boolean},headerSearch:{type:Boolean},headerSearchInputProps:{},virtual:{type:Boolean},showTriggerTagOnOption:{type:Boolean},disableOutsidePointerEvents:{type:Boolean,default:!0},getMenuItemProps:{},placement:{default:"bottom-start"},containerProps:{},reversePlacementOnDir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},sideOffset:{default:4},alignOffset:{},reference:{},prioritizePosition:{type:Boolean,default:!1},avoidCollisions:{type:Boolean,default:void 0},dir:{}},emits:["update:modelValue","update:expandedKeys","update:search","fetch","search","select","update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(v,{emit:o}){const n=v,s=o,W=x.debounce(t=>{s("search",t)},500),z=c.useVModel(n,"search",s,{passive:n.search===void 0,onChange:W}),y=c.useVModel(n,"open",s,{defaultValue:n.defaultOpen,passive:n.open===void 0,onChange(t){!t&&n.resetSearchTermOnBlur&&(z.value=void 0)}}),r=c.useVModel(n,"modelValue",s,{passive:n.modelValue===void 0,onChange:t=>{var l,a;y.value&&!n.multiple&&(y.value=!1),typeof V!==void 0&&(V!=null&&V.value)&&n.sortSelectedItems&&((a=(l=V==null?void 0:V.value)==null?void 0:l.measure)==null||a.call(l))}}),f=c.useVModel(n,"expandedKeys",s,{passive:n.expandedKeys===void 0}),b=x.debounce(t=>{f.value=t},500,{edges:["leading"]}),u=e.useSlots(),K=_e.useEmitAsProps(s),_=e.computed(()=>({...x.omit(K,["update:modelValue","update:search","select"]),...x.pick(n,["placement","reversePlacementOnDir","zIndex","to","sideOffset","alignOffset","reference","prioritizePosition","avoidCollisions","dir","size"])})),A=e.ref();c.useLazyLoading({target:A});const U=i.createOptionGetterFunc({key:"value",getter:n.getValue}),F={getDisabled:i.createOptionGetterFunc({key:"disabled",getter:n.getDisabled,noReturnOption:!0,defaultValue:!1}),getDescription:i.createOptionGetterFunc({key:"description",getter:n.getDescription,noReturnOption:!0}),getValue:U,getLabel:i.createOptionGetterFunc({key:"label",getter:n.getLabel,noReturnOption:!0,defaultValue:U}),getNoCheckbox:i.createOptionGetterFunc({key:"noCheckbox",getter:n.getNoCheckbox,noReturnOption:!0,defaultValue:!1}),getSingle:i.createOptionGetterFunc({key:"single",getter:n.getSingle,noReturnOption:!0,defaultValue:!1}),getClear:i.createOptionGetterFunc({key:"clear",getter:n.getClear,noReturnOption:!0,defaultValue:!1}),getOptions:i.createOptionGetterFunc({key:"options",getter:n.getOptions,noReturnOption:!0}),getIcon:i.createOptionGetterFunc({key:"icon",getter:n.getIcon,noReturnOption:!0})},T=(t,l)=>{var g;const a=`get${l[0].toUpperCase()+l.slice(1)}`;return(g=F[a])==null?void 0:g.call(F,t)},te=(t,l,a)=>!!(!n.tree&&!(l!=null&&l.length)&&(a!=null&&a.length)),N=e.computed(()=>ee.flattenBy_parentKeys({getValue:(t,l,a)=>{const g=T(t,"value");return c.isEmptyLikeLodash(g)&&te(t,l,a)?i.usePCId(ze):g},getDisabled:t=>T(t,"disabled"),arr:n.options??[],getChildren:(t,l)=>{if(!(l!=null&&l.length&&!n.tree))return T(t,"options")},getExtra:t=>{if(t){let l=T(t,"label");return c.isEmptyLikeLodash(l)||(l=String(l)),{_description:T(t,"description"),_label:l,_title:n.tree?l:void 0,_noCheckbox:T(t,"noCheckbox"),_single:T(t,"single"),_clear:T(t,"clear"),_icon:T(t,"icon")}}},allowNoValidKey:te})),p=(t,l=!1)=>t?N.value.filter(a=>{var g;if(l){const P=x.last(a._parentKeys??[]);return P&&P===t}return(g=a._parentKeys)==null?void 0:g.includes(t)}):[],m=t=>{var l;if((l=N.value)!=null&&l.length&&!c.isEmptyLikeLodash(t))return N.value.find(a=>a._key===t)},C=t=>{const l=m(t);return l&&(l._label||l._key)||t},h=t=>{const l=m(t);return l?l._single??!1:!1},q=t=>t===void 0?!1:Array.isArray(r.value)?!!(t&&r.value.includes(t)):r.value===t,k=e.computed(()=>{var g,P,se,ie;let t=[];const l=new Set,a=d=>{d!=null&&d._key&&!l.has(d._key)&&(t.push(x.cloneDeep(d)),l.add(d._key))};if(z.value?(N.value.forEach(d=>{var w,$;if(d._label&&d._label.toLowerCase().includes(z.value.toLowerCase())&&!l.has(d._key)){if(a(d),d._hasChildren&&p(d._key).forEach(a),(w=n.filterOptions)!=null&&w.strictNode)d._parentKeys&&d._parentKeys.forEach(I=>{if(!l.has(I)){const H=m(I);a(H)}});else if(($=d._parentKeys)!=null&&$.length){const I=Le(d._parentKeys);if(!c.isEmptyLikeLodash(I)){if(!l.has(I)){const j=m(I);a(j)}p(I).forEach(a)}}}}),t=t.sort((d,M)=>N.value.findIndex(w=>w._key===d._key)-N.value.findIndex(w=>w._key===M._key))):t=x.cloneDeep(N.value),n.sortSelectedItems&&!n.tree&&!c.isEmptyLikeLodash(r.value)){let d=x.cloneDeep(t);const M=d.filter(B=>q(B._key)),w=Symbol("root"),$=Symbol("rootGroup"),I={},H=(B,L,S=1)=>{const R=d.splice(B,S);d.splice(L,0,...R)},j=B=>B?d.findIndex(L=>L._key===B):-1,ue=B=>{const L=I[B],S=j(L==null?void 0:L.key);return L!=null&&L.length?S+L.length+1:S+1};M.forEach(B=>{var L;if((L=B._parentKeys)!=null&&L.length){const S=Le(B._parentKeys);let R=j(S);const Ve=Math.max(ue(w),ue($));if(R>Ve){const ce=p(S).length;H(R,Ve,ce+1)}if(I[$]={key:S,length:p(S).length},R=j(S),S&&R>-1){const ce=j(B._key);if(I[S]===void 0)H(ce,R+1);else{const rt=ue(S);H(ce,rt)}I[S]={length:void 0,key:B._key}}}else{const S=j(B._key),R=ue(w);S>R&&H(S,R),I[w]={key:B._key,length:B._hasChildren?p(B._key).length:void 0}}d=x.cloneDeep(d)}),t=d}if(n.tree)((g=n.filterOptions)==null?void 0:g.expandParent)==="collapse"?b([]):((P=n.filterOptions)==null?void 0:P.expandParent)==="expand"&&b(t.filter(d=>d._hasChildren).map(d=>d._key));else{let d=x.cloneDeep(t);for(let M=0;M<d.length-1;M++){const w=d[M],$=d[M+1];!$._divider&&($._hasChildren||(se=w._parentKeys)!=null&&se.length&&!((ie=$._parentKeys)!=null&&ie.length))&&(d.splice(M+1,0,{_key:i.usePCId(ze),_divider:!0}),M++)}t=d}return t}),{getDisabled:X,getStatus:oe,getSize:E}=c.useFormInput(),Y=e.computed(()=>{switch(E.value){case"sm":return"xsm";case"lg":return"md";case"md":default:return"sm"}}),xe=e.computed(()=>{switch(E.value){case"sm":return"2xsm";case"lg":return"sm";case"md":default:return"xsm"}}),Z=e.ref(),J={sm:4,md:6,lg:8},ne={sm:14,md:16},le={sm:32,md:50,lg:54},re=e.computed(()=>({get count(){return k.value.length},getScrollElement:()=>{var t;return(t=Z.value)==null?void 0:t.container.viewportElement},estimateSize:t=>{const l=k.value[t];if(!n.tree&&l){if(l._divider)return 1;if(l._label&&l._hasChildren)return 8+(ne[E.value]??ne.md);if(l._description)return le[E.value]??le.md}return ee.systemSizesMap[E.value]??ee.systemSizesMap.md},overscan:5,get gap(){return J[E.value]??0}}));let V,D;if(n.virtual){const{virtualizer:t,...l}=c.useVirtualScroll(re);V=t,D=l}const de=e.computed(()=>{var t;return n.virtual?(((t=V==null?void 0:V.value)==null?void 0:t.getVirtualItems())??[]).map(l=>k.value[l.index]):k.value}),ae=e.computed(()=>(D==null?void 0:D.containerStyles.value)??{}),{inputBindings:Fe,rootBindings:Ne,focused:qe}=c.useInputDataStates({getDisabled:()=>X.value}),Q=e.ref(),ge=()=>{var t;if(y.value&&Q.value&&document.activeElement!==((t=Q.value)==null?void 0:t.input)){Q.value.input.style.pointerEvents="auto";const l=setTimeout(()=>{var a,g;(g=(a=Q.value)==null?void 0:a.focus)==null||g.call(a),clearTimeout(l)},100);Q.value.input.style.pointerEvents=""}},Be=e.computed(()=>!n.noValueOnPlaceholder&&(G.isArray(r.value)?r.value.length===1&&!c.isEmptyLikeLodash(r.value[0]):!c.isEmptyLikeLodash(r.value))),$e=e.computed(()=>{if(Be.value){if(n.multiple&&G.isArray(r.value))return C(x.last(r.value));if(!n.multiple&&!G.isArray(r.value))return C(r.value)}}),{CollectionSlot:Ge,CollectionItem:Se,itemMap:We,getItems:Ue}=c.useCollection({isProvider:!0,key:O}),Oe=()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[],me=e.ref(),fe=t=>{me.value=t},Ee=t=>({"data-disabled":t._disabled?"":void 0,"data-highlighted":me.value===t._key?"":void 0}),ve=e.ref();De({props:n,emit:s,searchModel:z,openModel:y,model:r,slots:u,valuePlaceholder:Be,placeholder:$e,getOptionByValue:m,isOptionSelected:q,getLabelByValue:C,getSingleByValue:h,inputRef:Q,focusOnInput:ge,getDisabled:X,getStatus:oe,getSize:E,getTagSize:Y,getIconSize:xe,comboboxInputBinding:Fe,comboboxTriggerBinding:Ne,comboboxInputFocused:qe,selectOption:(t,l)=>{var a,g;if(l&&((a=ve.value)!=null&&a.onSelect)&&n.tree&&((g=ve.value)==null||g.onSelect(t,!q(t==null?void 0:t._key))),!(n.tree||!t||!t._key||t._disabled))if(n.multiple)if(t._clear)r.value=[],s("select",void 0,!1);else if(t._single)r.value=[t._key],s("select",t._key,!0,t);else{let P=G.isArray(r.value)?r.value:[];const se=P.includes(t._key);P.length===1&&h(P[0])&&t._key!==P[0]&&(P=[]),se?(r.value=P.filter(ie=>ie!==t._key),s("select",t._key,!0,t)):(r.value=[...P,t._key],s("select",t._key,!1,t))}else t._clear?(r.value=void 0,s("select",void 0,!1)):(r.value=t._key,s("select",t._key,!0,t))},itemMap:We,getItems:Ue,highlightedOptionKey:me}),e.watch(()=>[n.clearOnChangeMultiple,n.multiple],()=>{n.clearOnChangeMultiple&&(r.value=void 0)});const He=e.computed(()=>({defaultExpandAll:!0,showLine:!0,selectionBehavior:"replace",...n.treeProps??{},size:E.value,flattenData:!0,outerVirtualScroll:!0,selectable:!0,focusable:!1,multiple:n.multiple,checkable:n.multiple&&n.checkbox,virtual:V,syncCheckboxAndSelect:n.multiple,data:k.value,modelValue:Oe(),checkedKeys:Oe(),class:i.getBemElement(O,"tree")})),je=e.computed(()=>{const t=n.scrollContainerProps??{};return{...t,areaCls:[i.getBemElement(O,"scroll_area"),t==null?void 0:t.class,t==null?void 0:t.areaCls],wrapProps:{...(t==null?void 0:t.wrapProps)??{},style:(D==null?void 0:D.scrollWrapperStyles.value)??{}}}}),Pe=i.getBemElement(O,"popup"),Je=we.cva(Pe,{variants:{size:i.generateVariantClassList(be,Pe)}}),he=t=>{if(ft.isNumber(t))return`${t}px`;if(typeof t=="string")return t},Qe=e.computed(()=>he(n.popupWidth)),Xe=e.computed(()=>he(n.popupHeight)),Ye=e.computed(()=>he(n.minWidth)),Ze=()=>{var a,g;const t=(g=u.header)==null?void 0:g.call(u,{isEmpty:!((a=k.value)!=null&&a.length),search:z.value}),l=!c.isEmptyElement(t);if(l||n.headerSearch)return e.h("div",{class:i.getBemElement(O,"header")},l?t:e.h(ke,n.headerSearchInputProps||{}))},et=()=>{var a,g;const t=(g=u.footer)==null?void 0:g.call(u,{isEmpty:!((a=k.value)!=null&&a.length),search:z.value});if(!c.isEmptyElement(t))return e.h("div",{class:i.getBemElement(O,"footer")},t)},tt=()=>{var a;const t={type:E.value==="sm"?"simple":"advance",...x.omit(n.emptyProps??{},["class"]),class:i.normCls(i.getBemElement(O,"empty"),n.emptyCls)},l=(a=u.empty)==null?void 0:a.call(u,t);return c.isEmptyElement(l)?e.h(pt._sfc_main,t,{title:u.emptyTitle,description:u.emptyDescription,actions:u.emptyActions,image:u.emptyImage}):l},ot=()=>{var l;const t=(l=u.loading)==null?void 0:l.call(u,{});return c.isEmptyElement(t)?new Array(k.value.length?2:n.loadingRowCount).fill(1).map(()=>e.h(gt._sfc_main,{size:E.value,class:i.normCls(i.getBemElement(O,"skeleton"),n.skeletonCls),...x.omit(n.skeletonProps??{},["class"])})):t},nt=(t,l,a)=>{const g=t._clear;if(n.multiple){const P=t._single;g?r.value=[]:P?r.value=[t._key]:r.value=a}else g||!l?r.value=void 0:r.value=t._key;s("select",t._key,l,t)},lt=t=>{t.key==="ArrowDown"&&!y.value?y.value=!0:t.key==="Tab"&&y.value&&(y.value=!1)};return n.disableOutsidePointerEvents&&c.useDisableBodyPointerEvents(y),(t,l)=>(e.openBlock(),e.createBlock(e.unref(at._sfc_main),e.mergeProps({open:e.unref(y),"onUpdate:open":l[2]||(l[2]=a=>e.isRef(y)?y.value=a:null)},_.value,{containerProps:{...t.containerProps??{},onClick:ge},noPadding:!0,size:e.unref(E),containerStyle:{pointerEvents:"auto",display:e.unref(y)?void 0:"none",zIndex:t.zIndex,"--ptc-combobox-popup-width":t.samePopupWidth?void 0:Qe.value,"--ptc-combobox-popup-height":Xe.value,"--ptc-combobox-trigger-min-w":Ye.value},containerCls:e.unref(i.normCls)(e.unref(Je)(n),t.popupCls),onKeydown:lt}),e.createSlots({content:e.withCtx(()=>[e.createVNode(Ze),e.createVNode(e.unref(ct._sfc_main),e.mergeProps({ref_key:"scrollContainerRef",ref:Z},je.value),{default:e.withCtx(()=>[k.value.length||t.loading?(e.openBlock(),e.createBlock(e.unref(Ge),{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i.normCls)(e.unref(i.getBemElement)(e.unref(O),"options"),t.optionsCls)),style:e.normalizeStyle(t.virtual?ae.value:{}),onPointerleave:l[1]||(l[1]=a=>fe(void 0))},[t.tree?(e.openBlock(),e.createBlock(e.unref(ee._sfc_main),e.mergeProps({key:0,ref_key:"treeRef",ref:ve},He.value,{expandedKeys:e.unref(f),"onUpdate:expandedKeys":l[0]||(l[0]=a=>e.isRef(f)?f.value=a:null),onExpand:ge,onSelect:nt}),{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>(e.openBlock(),e.createBlock(e.unref(Se),{key:g._key,value:g._key},{default:e.withCtx(()=>[e.createVNode(e.unref(ee._sfc_main$1),e.mergeProps({node:g},{ref_for:!0},Ee(g),{onPointermove:P=>fe(g._key)}),{default:e.withCtx(()=>[e.createVNode(Te,{option:g},null,8,["option"])]),_:2},1040,["node","onPointermove"])]),_:2},1032,["value"]))),128))]),_:1},16,["expandedKeys"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(de.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a._key},[a._divider?(e.openBlock(),e.createBlock(mt._sfc_main,{key:0})):a._label&&a._hasChildren?(e.openBlock(),e.createBlock(bt,{key:1,label:a._label},null,8,["label"])):a._hasChildren?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(Se),{key:2,value:a._key},{default:e.withCtx(()=>[e.createVNode(Te,e.mergeProps({option:a},{ref_for:!0},Ee(a),{onPointermove:g=>fe(a._key)}),null,16,["option","onPointermove"])]),_:2},1032,["value"]))],64))),128)),t.loading?(e.openBlock(),e.createBlock(ot,{key:2})):e.createCommentVNode("",!0)],38)]),_:1})):(e.openBlock(),e.createBlock(tt,{key:1})),t.lazyLoading?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"lazy_loading"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i.getBemElement)(e.unref(O),"lazy_loading_trigger")),ref_key:"target",ref:A},null,2)],2)):e.createCommentVNode("",!0)]),_:1},16),e.createVNode(et)]),_:2},[t.noTrigger?void 0:{name:"default",fn:e.withCtx(()=>[e.createVNode(Ct)]),key:"0"}]),1040,["open","containerProps","size","containerStyle","containerCls"]))}});exports.ComboboxSizes=be;exports.ComboboxStatuses=Ke;exports._sfc_main=kt;exports._sfc_main$1=ke;exports.injectComboboxContext=pe;exports.provideComboboxContext=De;
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
8
8
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
9
9
  readonly type?: import('..').ButtonType | undefined;
10
10
  readonly target?: string | undefined;
11
- readonly icon?: string | undefined;
12
11
  readonly size?: import('..').ButtonSize | undefined;
12
+ readonly icon?: string | undefined;
13
13
  readonly noRing?: boolean | undefined;
14
14
  readonly loading?: boolean | undefined;
15
15
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -206,8 +206,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
206
206
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
207
207
  readonly type?: import('..').ButtonType | undefined;
208
208
  readonly target?: string | undefined;
209
- readonly icon?: string | undefined;
210
209
  readonly size?: import('..').ButtonSize | undefined;
210
+ readonly icon?: string | undefined;
211
211
  readonly noRing?: boolean | undefined;
212
212
  readonly loading?: boolean | undefined;
213
213
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -182,8 +182,8 @@ declare function __VLS_template(): {
182
182
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
183
183
  readonly type?: import('..').ButtonType | undefined;
184
184
  readonly target?: string | undefined;
185
- readonly icon?: string | undefined;
186
185
  readonly size?: import('..').ButtonSize | undefined;
186
+ readonly icon?: string | undefined;
187
187
  readonly noRing?: boolean | undefined;
188
188
  readonly loading?: boolean | undefined;
189
189
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -380,8 +380,8 @@ declare function __VLS_template(): {
380
380
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
381
381
  readonly type?: import('..').ButtonType | undefined;
382
382
  readonly target?: string | undefined;
383
- readonly icon?: string | undefined;
384
383
  readonly size?: import('..').ButtonSize | undefined;
384
+ readonly icon?: string | undefined;
385
385
  readonly noRing?: boolean | undefined;
386
386
  readonly loading?: boolean | undefined;
387
387
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -754,8 +754,8 @@ declare const __VLS_component: import('vue').DefineComponent<CommentEditorProps,
754
754
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
755
755
  readonly type?: import('..').ButtonType | undefined;
756
756
  readonly target?: string | undefined;
757
- readonly icon?: string | undefined;
758
757
  readonly size?: import('..').ButtonSize | undefined;
758
+ readonly icon?: string | undefined;
759
759
  readonly noRing?: boolean | undefined;
760
760
  readonly loading?: boolean | undefined;
761
761
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -952,8 +952,8 @@ declare const __VLS_component: import('vue').DefineComponent<CommentEditorProps,
952
952
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
953
953
  readonly type?: import('..').ButtonType | undefined;
954
954
  readonly target?: string | undefined;
955
- readonly icon?: string | undefined;
956
955
  readonly size?: import('..').ButtonSize | undefined;
956
+ readonly icon?: string | undefined;
957
957
  readonly noRing?: boolean | undefined;
958
958
  readonly loading?: boolean | undefined;
959
959
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
8
8
  readonly flipOnDir?: import('..').FlipOnDir | undefined;
9
9
  readonly type?: import('..').ButtonType | undefined;
10
10
  readonly target?: string | undefined;
11
- readonly icon?: string | undefined;
12
11
  readonly size?: import('..').ButtonSize | undefined;
12
+ readonly icon?: string | undefined;
13
13
  readonly noRing?: boolean | undefined;
14
14
  readonly loading?: boolean | undefined;
15
15
  readonly htmlType?: "reset" | "submit" | "button" | undefined;
@@ -1,29 +1,28 @@
1
- import { defineComponent as A, ref as R, createElementBlock as F, createCommentVNode as I, unref as n, openBlock as P, normalizeClass as $, createBlock as E, withModifiers as H, createVNode as y, Fragment as de, renderList as q, withCtx as T, createTextVNode as ie, toDisplayString as Y, useSlots as J, createElementVNode as G, h as b, mergeProps as V, isRef as ae, createSlots as ee, renderSlot as U, normalizeProps as W, guardReactiveProps as Q, computed as L, normalizeStyle as ue, onMounted as me, onBeforeUnmount as fe } from "vue";
2
- import { getComponentOptions as z, useComponentStyle as K, useVModel as oe, isEmptyElement as O, useFormInput as he, useInputDataStates as Ce } from "@pantograph/utils-vue";
3
- import { _ as le } from "../Avatar.vue_vue_type_script_setup_true_lang-D6M8USW4.js";
4
- import { _ as ye } from "../Badge.vue_vue_type_script_setup_true_lang-CaAe4Yuz.js";
5
- import { cva as ge } from "class-variance-authority";
6
- import { _ as ve } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-C45pbuL2.js";
7
- import { _ as Z } from "../Icon.vue_vue_type_script_setup_true_lang-DBiBHDqC.js";
8
- import { normCls as C, getBemElement as m, getBemBlock as _e, generateVariantClassList as Be } from "@pantograph/utils";
9
- import { _ as D } from "../IconButton.vue_vue_type_script_setup_true_lang-DbWKTcZc.js";
10
- import { _ as be } from "../ActionButton.vue_vue_type_script_setup_true_lang-B7a38s3f.js";
11
- import N from "@pantograph/style/comment.css?raw";
12
- import { createContext as Re } from "reka-ui";
13
- import { _ as Pe } from "../Popover.vue_vue_type_script_setup_true_lang-DhDzrGk6.js";
14
- import { _ as Se, a as se } from "../MenuItem.vue_vue_type_script_setup_true_lang-CC0ZX8mk.js";
15
- import { _ as ke } from "../GOPicker.vue_vue_type_script_setup_true_lang-UNRfZ8eW.js";
16
- import { _ as xe } from "../Combobox.vue_vue_type_script_setup_true_lang-DXwg6ANz.js";
17
- import { _ as Te } from "../Divider.vue_vue_type_script_setup_true_lang-BZRu0h3n.js";
18
- import { _ as Oe } from "../ScrollContainer.vue_vue_type_script_setup_true_lang-FKw-Hnvi.js";
19
- import { _ as $e, a as Ee } from "../Upload.vue_vue_type_script_setup_true_lang-CwSlVjBi.js";
20
- import { omit as Me } from "es-toolkit";
21
- import { _ as we } from "../Shortcut.vue_vue_type_script_setup_true_lang-B16kPcKe.js";
22
- const De = /* @__PURE__ */ A({
1
+ import { defineComponent as A, ref as R, createElementBlock as F, createCommentVNode as I, unref as n, openBlock as P, normalizeClass as $, createBlock as E, withModifiers as H, createVNode as y, Fragment as pe, renderList as W, withCtx as T, createTextVNode as ne, toDisplayString as J, useSlots as Q, createElementVNode as K, h as b, mergeProps as V, isRef as se, createSlots as Y, renderSlot as U, normalizeProps as N, guardReactiveProps as G, computed as L, normalizeStyle as ce, onMounted as de, onBeforeUnmount as ue } from "vue";
2
+ import { getComponentOptions as z, useVModel as Z, isEmptyElement as O, useFormInput as me, useInputDataStates as fe } from "@pantograph/utils-vue";
3
+ import { _ as ie } from "../Avatar.vue_vue_type_style_index_0_lang-DPrsRMvX.js";
4
+ import { _ as he } from "../Badge.vue_vue_type_script_setup_true_lang-CjM2eHxl.js";
5
+ import { cva as Ce } from "class-variance-authority";
6
+ import { _ as ye } from "../GraphicalObject.vue_vue_type_script_setup_true_lang-DsNpKZ1Q.js";
7
+ import { _ as X } from "../Icon.vue_vue_type_style_index_0_lang-LLvjBJx0.js";
8
+ import { normCls as C, getBemElement as m, getBemBlock as ge, generateVariantClassList as ve } from "@pantograph/utils";
9
+ import { _ as D } from "../IconButton.vue_vue_type_script_setup_true_lang-ahPqU4HJ.js";
10
+ import { _ as _e } from "../ActionButton.vue_vue_type_script_setup_true_lang-D6GO-k30.js";
11
+ import { createContext as Be } from "reka-ui";
12
+ import { _ as be } from "../Popover.vue_vue_type_style_index_0_lang-QNb3ngGr.js";
13
+ import { _ as Re, a as te } from "../MenuItem.vue_vue_type_style_index_0_lang-3CVlU74B.js";
14
+ import { _ as Pe } from "../GOPicker.vue_vue_type_style_index_0_lang-LCobQHEi.js";
15
+ import { _ as Se } from "../Combobox.vue_vue_type_style_index_0_lang-BA_I2GN7.js";
16
+ import { _ as ke } from "../Divider.vue_vue_type_style_index_0_lang-Clrzj4R0.js";
17
+ import { _ as xe } from "../ScrollContainer.vue_vue_type_style_index_0_lang-CCEG6AjN.js";
18
+ import { _ as Te, a as Oe } from "../Upload.vue_vue_type_style_index_0_lang-RRr-8pG3.js";
19
+ import { omit as $e } from "es-toolkit";
20
+ import { _ as Ee } from "../Shortcut.vue_vue_type_style_index_0_lang-C-wsusvY.js";
21
+ const Me = /* @__PURE__ */ A({
23
22
  ...z("CommentActions"),
24
23
  __name: "CommentActions",
25
24
  setup(u) {
26
- const s = re(), t = R(), e = R(), d = () => {
25
+ const s = ae(), t = R(), e = R(), d = () => {
27
26
  s.emit("openActions", e.value);
28
27
  }, a = () => {
29
28
  s.emit("openReaction", t.value);
@@ -68,11 +67,11 @@ const De = /* @__PURE__ */ A({
68
67
  }, null, 512)) : I("", !0)
69
68
  ], 2)) : I("", !0);
70
69
  }
71
- }), Ae = /* @__PURE__ */ A({
70
+ }), we = /* @__PURE__ */ A({
72
71
  ...z("CommentReactions"),
73
72
  __name: "CommentReactions",
74
73
  setup(u) {
75
- const s = re(), t = R(), e = () => {
74
+ const s = ae(), t = R(), e = () => {
76
75
  s.emit("openReaction", t.value);
77
76
  }, d = (a) => {
78
77
  a && !a.active && s.emit("reaction", a.emoji);
@@ -83,13 +82,13 @@ const De = /* @__PURE__ */ A({
83
82
  key: 0,
84
83
  class: $(n(C)(n(m)(n(k), "reactions"), n(s).props.reactionsCls))
85
84
  }, [
86
- (P(!0), F(de, null, q(n(s).props.reactions, (o) => (P(), E(be, {
85
+ (P(!0), F(pe, null, W(n(s).props.reactions, (o) => (P(), E(_e, {
87
86
  key: o == null ? void 0 : o.emoji,
88
87
  active: o == null ? void 0 : o.active,
89
88
  onClick: (v) => d(o)
90
89
  }, {
91
90
  default: T(() => [
92
- ie(Y(o == null ? void 0 : o.emoji) + " " + Y(o == null ? void 0 : o.count), 1)
91
+ ne(J(o == null ? void 0 : o.emoji) + " " + J(o == null ? void 0 : o.count), 1)
93
92
  ]),
94
93
  _: 2
95
94
  }, 1032, ["active", "onClick"]))), 128)),
@@ -106,7 +105,7 @@ const De = /* @__PURE__ */ A({
106
105
  ], 2)) : I("", !0);
107
106
  };
108
107
  }
109
- }), k = _e("comment"), [re, ze] = Re("Comment"), io = /* @__PURE__ */ A({
108
+ }), k = ge("comment"), [ae, De] = Be("Comment"), to = /* @__PURE__ */ A({
110
109
  ...z("Comment"),
111
110
  __name: "Comment",
112
111
  props: {
@@ -139,8 +138,7 @@ const De = /* @__PURE__ */ A({
139
138
  },
140
139
  emits: ["update:open", "openActions", "reaction", "reply", "openReaction"],
141
140
  setup(u, { emit: s }) {
142
- K("comment", N);
143
- const t = u, e = J(), d = s, a = oe(t, "open", d, {
141
+ const t = u, e = Q(), d = s, a = Z(t, "open", d, {
144
142
  passive: t.open === void 0
145
143
  }), l = () => {
146
144
  var g;
@@ -172,7 +170,7 @@ const De = /* @__PURE__ */ A({
172
170
  else {
173
171
  c = [];
174
172
  const B = (_ = e.avatar) == null ? void 0 : _.call(e, {});
175
- !O(B) ? c.push(B) : t.avatar && c.push(b(le, { ...t.avatarProps ?? {}, src: t.avatar }));
173
+ !O(B) ? c.push(B) : t.avatar && c.push(b(ie, { ...t.avatarProps ?? {}, src: t.avatar }));
176
174
  const S = l(), w = p();
177
175
  (S || w) && c.push(
178
176
  b(
@@ -184,7 +182,7 @@ const De = /* @__PURE__ */ A({
184
182
  )
185
183
  ), c.length || (c = void 0);
186
184
  }
187
- return c ? (c.push(b(De)), b(
185
+ return c ? (c.push(b(Me)), b(
188
186
  "div",
189
187
  { class: C(m(k, "header"), t.headerCls) },
190
188
  c
@@ -201,9 +199,9 @@ const De = /* @__PURE__ */ A({
201
199
  },
202
200
  h ? r : void 0
203
201
  );
204
- }, f = m(k, "replies"), x = ge(f, {
202
+ }, f = m(k, "replies"), x = Ce(f, {
205
203
  variants: {
206
- open: Be("open", f)
204
+ open: ve("open", f)
207
205
  }
208
206
  }), M = () => {
209
207
  var _;
@@ -215,14 +213,14 @@ const De = /* @__PURE__ */ A({
215
213
  else {
216
214
  i.push(
217
215
  b(
218
- ve,
216
+ ye,
219
217
  {
220
218
  size: "xsm",
221
219
  bg: "transparent",
222
220
  br: "transparent"
223
221
  },
224
222
  {
225
- default: () => b(Z, {
223
+ default: () => b(X, {
226
224
  icon: "tabler:chevron-down",
227
225
  class: m(f, "icon"),
228
226
  size: "2xsm"
@@ -230,26 +228,26 @@ const De = /* @__PURE__ */ A({
230
228
  }
231
229
  )
232
230
  );
233
- const te = (w = e.repliesCount) == null ? void 0 : w.call(e, {}), pe = !O(te), ne = (j = e.repliesTitle) == null ? void 0 : j.call(e, {}), ce = !O(ne);
234
- let X;
235
- ce ? X = ne : X = t.repliesTitle, i.push(
231
+ const ee = (w = e.repliesCount) == null ? void 0 : w.call(e, {}), le = !O(ee), oe = (j = e.repliesTitle) == null ? void 0 : j.call(e, {}), re = !O(oe);
232
+ let q;
233
+ re ? q = oe : q = t.repliesTitle, i.push(
236
234
  b(
237
235
  "div",
238
236
  {
239
237
  class: C(m(f, "title"), t.repliesTitleCls)
240
238
  },
241
- X
239
+ q
242
240
  )
243
- ), (pe || t.repliesCount) && i.push(
241
+ ), (le || t.repliesCount) && i.push(
244
242
  b(
245
- ye,
243
+ he,
246
244
  {
247
245
  color: "primary-subtle",
248
246
  text: t.repliesCount,
249
247
  size: "xsm"
250
248
  },
251
249
  {
252
- text: () => te
250
+ text: () => ee
253
251
  }
254
252
  )
255
253
  );
@@ -292,7 +290,7 @@ const De = /* @__PURE__ */ A({
292
290
  [c(), g()]
293
291
  ) : null;
294
292
  };
295
- return ze({
293
+ return De({
296
294
  emit: d,
297
295
  props: t,
298
296
  slots: e
@@ -300,16 +298,16 @@ const De = /* @__PURE__ */ A({
300
298
  class: $(n(C)(n(k), t.class))
301
299
  }, [
302
300
  y(o),
303
- G("div", {
301
+ K("div", {
304
302
  class: $(n(C)(n(m)(n(k), "body"), t.bodyCls))
305
303
  }, [
306
304
  y(v),
307
- y(Ae),
305
+ y(we),
308
306
  y(M)
309
307
  ], 2)
310
308
  ], 2));
311
309
  }
312
- }), ao = /* @__PURE__ */ A({
310
+ }), no = /* @__PURE__ */ A({
313
311
  ...z("CommentAction"),
314
312
  __name: "CommentAction",
315
313
  props: {
@@ -355,45 +353,44 @@ const De = /* @__PURE__ */ A({
355
353
  },
356
354
  emits: ["edit", "delete", "update:open"],
357
355
  setup(u, { emit: s }) {
358
- K("comment", N);
359
356
  const t = u, e = s, d = () => {
360
357
  e("edit"), l.value = !1;
361
358
  }, a = () => {
362
359
  e("delete"), l.value = !1;
363
- }, l = oe(t, "open", e, {
360
+ }, l = Z(t, "open", e, {
364
361
  passive: t.open === void 0
365
362
  });
366
- return (p, o) => (P(), E(n(Pe), V(t, {
363
+ return (p, o) => (P(), E(n(be), V(t, {
367
364
  open: n(l),
368
- "onUpdate:open": o[0] || (o[0] = (v) => ae(l) ? l.value = v : null),
365
+ "onUpdate:open": o[0] || (o[0] = (v) => se(l) ? l.value = v : null),
369
366
  placement: "bottom-end",
370
367
  sideOffset: 3,
371
368
  openDelay: 0
372
369
  }), {
373
370
  content: T(() => [
374
- y(Se, { style: { width: "114px" } }, {
371
+ y(Re, { style: { width: "114px" } }, {
375
372
  default: T(() => [
376
- p.hasEdit ? (P(), E(se, {
373
+ p.hasEdit ? (P(), E(te, {
377
374
  key: "edit",
378
375
  title: p.editText,
379
376
  onClick: d
380
377
  }, {
381
378
  leading: T(({ iconSize: v }) => [
382
- y(Z, {
379
+ y(X, {
383
380
  icon: "tabler:edit",
384
381
  size: v
385
382
  }, null, 8, ["size"])
386
383
  ]),
387
384
  _: 1
388
385
  }, 8, ["title"])) : I("", !0),
389
- p.hasDelete ? (P(), E(se, {
386
+ p.hasDelete ? (P(), E(te, {
390
387
  key: "delete",
391
388
  title: p.deleteText,
392
389
  danger: "",
393
390
  onClick: a
394
391
  }, {
395
392
  leading: T(({ iconSize: v }) => [
396
- y(Z, {
393
+ y(X, {
397
394
  icon: "tabler:trash",
398
395
  size: v
399
396
  }, null, 8, ["size"])
@@ -407,7 +404,7 @@ const De = /* @__PURE__ */ A({
407
404
  _: 1
408
405
  }, 16, ["open"]));
409
406
  }
410
- }), lo = /* @__PURE__ */ A({
407
+ }), so = /* @__PURE__ */ A({
411
408
  ...z("CommentReaction"),
412
409
  __name: "CommentReaction",
413
410
  props: {
@@ -450,13 +447,12 @@ const De = /* @__PURE__ */ A({
450
447
  },
451
448
  emits: ["reaction", "update:open"],
452
449
  setup(u, { emit: s }) {
453
- K("comment", N);
454
450
  const t = u, e = s, d = (l) => {
455
451
  e("reaction", l.value), a.value = !1;
456
- }, a = oe(t, "open", e, {
452
+ }, a = Z(t, "open", e, {
457
453
  passive: t.open === void 0
458
454
  });
459
- return (l, p) => (P(), E(n(ke), V(t, {
455
+ return (l, p) => (P(), E(n(Pe), V(t, {
460
456
  noTrigger: "",
461
457
  hideClear: "",
462
458
  hideGroup: "",
@@ -472,10 +468,10 @@ const De = /* @__PURE__ */ A({
472
468
  noModel: "",
473
469
  onSelect: d,
474
470
  open: n(a),
475
- "onUpdate:open": p[0] || (p[0] = (o) => ae(a) ? a.value = o : null)
471
+ "onUpdate:open": p[0] || (p[0] = (o) => se(a) ? a.value = o : null)
476
472
  }), null, 16, ["popoverProps", "open"]));
477
473
  }
478
- }), ro = /* @__PURE__ */ A({
474
+ }), io = /* @__PURE__ */ A({
479
475
  ...z("CommentMention"),
480
476
  __name: "CommentMention",
481
477
  props: {
@@ -568,24 +564,24 @@ const De = /* @__PURE__ */ A({
568
564
  },
569
565
  emits: ["mention"],
570
566
  setup(u, { emit: s }) {
571
- const t = u, e = s, d = J(), a = (l, p, o) => {
567
+ const t = u, e = s, d = Q(), a = (l, p, o) => {
572
568
  e("mention", l, o);
573
569
  };
574
- return (l, p) => (P(), E(n(xe), V(t, {
570
+ return (l, p) => (P(), E(n(Se), V(t, {
575
571
  modelValue: "",
576
572
  onSelect: a,
577
573
  noTrigger: "",
578
574
  popupWidth: 200
579
- }), ee({ _: 2 }, [
580
- q(Object.keys(d), (o) => ({
575
+ }), Y({ _: 2 }, [
576
+ W(Object.keys(d), (o) => ({
581
577
  name: o,
582
578
  fn: T((v) => [
583
- U(l.$slots, o, W(Q(v)))
579
+ U(l.$slots, o, N(G(v)))
584
580
  ])
585
581
  }))
586
582
  ]), 1040));
587
583
  }
588
- }), po = /* @__PURE__ */ A({
584
+ }), ao = /* @__PURE__ */ A({
589
585
  ...z("CommentEditor"),
590
586
  __name: "CommentEditor",
591
587
  props: {
@@ -601,12 +597,11 @@ const De = /* @__PURE__ */ A({
601
597
  },
602
598
  emits: ["openReaction", "openMention", "blur", "focus", "mention", "submit"],
603
599
  setup(u, { emit: s }) {
604
- K("comment", N);
605
- const t = J(), e = u, d = s, a = m(k, "editor"), l = R(), p = () => {
600
+ const t = Q(), e = u, d = s, a = m(k, "editor"), l = R(), p = () => {
606
601
  d("openReaction", l.value);
607
602
  }, o = R(), v = () => {
608
603
  d("openMention", o.value);
609
- }, { getDisabled: f } = he(), { rootBindings: x, inputBindings: M } = Ce({
604
+ }, { getDisabled: f } = me(), { rootBindings: x, inputBindings: M } = fe({
610
605
  getDisabled: () => f.value,
611
606
  emit: d
612
607
  }), r = () => d("submit"), h = L(() => {
@@ -621,33 +616,33 @@ const De = /* @__PURE__ */ A({
621
616
  return (_, B) => (P(), F("div", V({
622
617
  class: n(C)(n(a), e.class)
623
618
  }, n(x)), [
624
- y(Oe, {
619
+ y(xe, {
625
620
  overlay: !1,
626
621
  hasMask: !1,
627
622
  class: $(n(C)(n(m)(n(a), "editor"), "paragraph", e.editorCls)),
628
- style: ue({ maxHeight: h.value })
623
+ style: ce({ maxHeight: h.value })
629
624
  }, {
630
625
  default: T(() => [
631
- U(_.$slots, "default", W(Q(n(M))))
626
+ U(_.$slots, "default", N(G(n(M))))
632
627
  ]),
633
628
  _: 3
634
629
  }, 8, ["class", "style"]),
635
- y($e, V({ noTrigger: "" }, _.uploadProps, {
630
+ y(Te, V({ noTrigger: "" }, _.uploadProps, {
636
631
  ref_key: "uploadRef",
637
632
  ref: c
638
- }), ee({ _: 2 }, [
639
- q(Object.keys(n(Me)(t, ["default"])), (i) => ({
633
+ }), Y({ _: 2 }, [
634
+ W(Object.keys(n($e)(t, ["default"])), (i) => ({
640
635
  name: i,
641
636
  fn: T((S) => [
642
- U(_.$slots, i, W(Q(S)))
637
+ U(_.$slots, i, N(G(S)))
643
638
  ])
644
639
  }))
645
640
  ]), 1040),
646
- G("div", {
641
+ K("div", {
647
642
  class: $(n(C)(n(m)(n(a), "footer"), e.footerCls))
648
643
  }, [
649
- y(Te),
650
- G("div", {
644
+ y(ke),
645
+ K("div", {
651
646
  class: $(n(C)(n(m)(n(a), "actions"), e.actionsCls))
652
647
  }, [
653
648
  y(D, {
@@ -660,7 +655,7 @@ const De = /* @__PURE__ */ A({
660
655
  }, ["stop"])),
661
656
  onClick: v
662
657
  }, null, 512),
663
- y(Ee, {
658
+ y(Oe, {
664
659
  accept: "image/*",
665
660
  multiple: "",
666
661
  onAddFiles: g
@@ -693,7 +688,7 @@ const De = /* @__PURE__ */ A({
693
688
  ], 2)
694
689
  ], 16));
695
690
  }
696
- }), Ie = ["tabindex", "disabled"], co = /* @__PURE__ */ A({
691
+ }), Ae = ["tabindex", "disabled"], lo = /* @__PURE__ */ A({
697
692
  ...z("CommentTrigger"),
698
693
  __name: "CommentTrigger",
699
694
  props: {
@@ -708,13 +703,12 @@ const De = /* @__PURE__ */ A({
708
703
  },
709
704
  emits: ["add"],
710
705
  setup(u, { emit: s }) {
711
- K("comment", N);
712
- const t = J(), e = u, d = s, a = m(k, "trigger"), l = (o) => {
706
+ const t = Q(), e = u, d = s, a = m(k, "trigger"), l = (o) => {
713
707
  !e.ignoeShortcut && o.code === "KeyC" && o.altKey && p(o);
714
708
  };
715
- me(() => {
709
+ de(() => {
716
710
  e.withShortcut && addEventListener("keyup", l);
717
- }), fe(() => {
711
+ }), ue(() => {
718
712
  e.withShortcut && removeEventListener("keyup", l);
719
713
  }), e.withShortcut;
720
714
  const p = (o) => d("add", o);
@@ -725,25 +719,25 @@ const De = /* @__PURE__ */ A({
725
719
  onPointerdown: H(p, ["stop"]),
726
720
  onKeyup: H(p, ["stop"])
727
721
  }, [
728
- y(le, V(o.avatarProps ?? {}, {
722
+ y(ie, V(o.avatarProps ?? {}, {
729
723
  size: "sm",
730
724
  src: o.src
731
- }), ee({ _: 2 }, [
732
- q(Object.keys(t), (f) => ({
725
+ }), Y({ _: 2 }, [
726
+ W(Object.keys(t), (f) => ({
733
727
  name: f,
734
728
  fn: T((x) => [
735
- U(o.$slots, f, W(Q(x)))
729
+ U(o.$slots, f, N(G(x)))
736
730
  ])
737
731
  }))
738
732
  ]), 1040, ["src"]),
739
- G("div", {
733
+ K("div", {
740
734
  class: $(n(m)(n(a), "text"))
741
735
  }, [
742
736
  U(o.$slots, "text", {}, () => [
743
- ie(Y(o.text), 1)
737
+ ne(J(o.text), 1)
744
738
  ])
745
739
  ], 2),
746
- y(we, V(o.shortcutProps ?? {}, { items: [
740
+ y(Ee, V(o.shortcutProps ?? {}, { items: [
747
741
  {
748
742
  text: "Alt"
749
743
  },
@@ -751,9 +745,9 @@ const De = /* @__PURE__ */ A({
751
745
  text: "C"
752
746
  }
753
747
  ] }), null, 16)
754
- ], 42, Ie));
748
+ ], 42, Ae));
755
749
  }
756
- }), uo = (u) => {
750
+ }), ro = (u) => {
757
751
  const s = R(!1), t = R(), e = R(!1), d = (i, S = !1) => {
758
752
  s.value = !0, e.value = S, t.value = i;
759
753
  }, a = R(!1), l = R(), p = (i) => {
@@ -814,14 +808,14 @@ const De = /* @__PURE__ */ A({
814
808
  };
815
809
  };
816
810
  export {
817
- io as Comment,
818
- ao as CommentAction,
819
- po as CommentEditor,
820
- ro as CommentMention,
821
- lo as CommentReaction,
822
- co as CommentTrigger,
811
+ to as Comment,
812
+ no as CommentAction,
813
+ ao as CommentEditor,
814
+ io as CommentMention,
815
+ so as CommentReaction,
816
+ lo as CommentTrigger,
823
817
  k as commentPrefix,
824
- re as injectCommentContext,
825
- ze as provideCommentContext,
826
- uo as useComment
818
+ ae as injectCommentContext,
819
+ De as provideCommentContext,
820
+ ro as useComment
827
821
  };