@pantograph/vue 0.23.3 → 0.23.4

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 (288) 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-BM-HiVKZ.js +1 -0
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C40QLnax.js → ActionButton.vue_vue_type_script_setup_true_lang-CoWtYp90.js} +2 -2
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js → Alert.vue_vue_type_style_index_0_lang-CsZWFSR_.js} +1 -1
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-DugtMNn6.js → Alert.vue_vue_type_style_index_0_lang-DmEdkb41.js} +4 -4
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-DTxpdu2k.js → Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js} +3 -3
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js → Avatar.vue_vue_type_style_index_0_lang-DTndXzmH.js} +1 -1
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Dc6rezGr.js → Badge.vue_vue_type_script_setup_true_lang-Blql7wH1.js} +2 -2
  18. package/dist/Badge.vue_vue_type_script_setup_true_lang-CsIGsGWg.js +1 -0
  19. package/dist/Base/BaseBadge/BaseBadge.d.ts +1 -1
  20. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-BMX9MX3W.js → BaseBadge.vue_vue_type_style_index_0_lang-Bhdde0lY.js} +14 -13
  21. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-CA4e9gEN.js +1 -0
  22. package/dist/BaseButton.vue_vue_type_style_index_0_lang-Ch3LDS1D.js +1 -0
  23. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BGYEuhbj.js → BaseButton.vue_vue_type_style_index_0_lang-stkOtvTd.js} +19 -18
  24. package/dist/Button/Button.d.ts +2 -2
  25. package/dist/Button/index.js +1 -1
  26. package/dist/Button/index.umd.cjs +1 -1
  27. package/dist/Button.vue_vue_type_script_setup_true_lang-BouXlBWO.js +1 -0
  28. package/dist/{Button.vue_vue_type_script_setup_true_lang-bjhWtH8H.js → Button.vue_vue_type_script_setup_true_lang-CIjMWs2s.js} +2 -2
  29. package/dist/Checkbox/Checkbox.d.ts +2 -2
  30. package/dist/Checkbox/index.js +1 -1
  31. package/dist/Checkbox/index.umd.cjs +1 -1
  32. package/dist/Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js +224 -0
  33. package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bo8DiMqm.js +1 -0
  34. package/dist/CheckboxGroup/CheckboxGroup.d.ts +7 -4
  35. package/dist/CheckboxGroup/index.js +1 -1
  36. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  37. package/dist/Chip/Chip.d.ts +1 -0
  38. package/dist/Chip/index.js +2 -2
  39. package/dist/Chip/index.umd.cjs +1 -1
  40. package/dist/{Chip.vue_vue_type_style_index_0_lang-Ci2Oqnfd.js → Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js} +24 -22
  41. package/dist/Chip.vue_vue_type_style_index_0_lang-qKiQbAUD.js +1 -0
  42. package/dist/ChipGroup/index.js +1 -1
  43. package/dist/ChipGroup/index.umd.cjs +1 -1
  44. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Bln1W3La.js → ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js} +1 -1
  45. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js → ChipGroup.vue_vue_type_style_index_0_lang-DmbWGoar.js} +1 -1
  46. package/dist/ColorPicker/index.js +1 -1
  47. package/dist/ColorPicker/index.umd.cjs +1 -1
  48. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-B8rVS60w.js → ColorPicker.vue_vue_type_style_index_0_lang-CxWDk_6b.js} +263 -263
  49. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js → ColorPicker.vue_vue_type_style_index_0_lang-DKGxK13w.js} +2 -2
  50. package/dist/ColorSwatch/ColorSwatch.d.ts +1 -1
  51. package/dist/ColorSwatch/index.js +1 -1
  52. package/dist/ColorSwatch/index.umd.cjs +1 -1
  53. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CABlbyiP.js +1 -0
  54. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-CjQa4I-g.js → ColorSwatch.vue_vue_type_style_index_0_lang-CAXvzEY_.js} +4 -5
  55. package/dist/ColorSwatchGroup/index.js +1 -1
  56. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  57. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-BxBlKgbC.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cjn4NZYK.js} +38 -36
  58. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-D8oB421I.js +1 -0
  59. package/dist/ColorTrigger/index.js +1 -1
  60. package/dist/ColorTrigger/index.umd.cjs +1 -1
  61. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BsexkD4u.js +1 -0
  62. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-BNTg203W.js → ColorTrigger.vue_vue_type_style_index_0_lang-XqnB_VGl.js} +25 -23
  63. package/dist/Combobox/Combobox.d.ts +82 -0
  64. package/dist/Combobox/Combobox.model.d.ts +4 -0
  65. package/dist/Combobox/ComboboxInput.d.ts +2 -0
  66. package/dist/Combobox/ComboboxLabel.d.ts +16 -0
  67. package/dist/Combobox/ComboboxOption.d.ts +19 -0
  68. package/dist/Combobox/ComboboxTrigger.d.ts +4 -0
  69. package/dist/Combobox/ComboboxWrapper.d.ts +4 -0
  70. package/dist/Combobox/context.d.ts +34 -0
  71. package/dist/Combobox/index.d.ts +4 -0
  72. package/dist/Combobox/index.js +8 -0
  73. package/dist/Combobox/index.umd.cjs +1 -0
  74. package/dist/Combobox/types.d.ts +111 -0
  75. package/dist/Combobox.vue_vue_type_style_index_0_lang-BM7QiXKH.js +831 -0
  76. package/dist/Combobox.vue_vue_type_style_index_0_lang-IdKdwJfN.js +1 -0
  77. package/dist/ConfigProvider/index.js +5 -5
  78. package/dist/ConfigProvider/index.umd.cjs +1 -1
  79. package/dist/DataTable/DataTable.d.ts +1 -1
  80. package/dist/DataTable/index.js +1 -1
  81. package/dist/DataTable/index.umd.cjs +1 -1
  82. package/dist/DataTable.vue_vue_type_style_index_0_lang-CnUiY5l1.js +1 -0
  83. package/dist/{DataTable.vue_vue_type_style_index_0_lang-9W9p_J1i.js → DataTable.vue_vue_type_style_index_0_lang-CpQ0Yn-D.js} +161 -156
  84. package/dist/DropZone/DropZone.d.ts +1 -1
  85. package/dist/DropZone/index.js +1 -1
  86. package/dist/DropZone/index.umd.cjs +1 -1
  87. package/dist/{DropZone.vue_vue_type_style_index_0_lang-CH23eQwT.js → DropZone.vue_vue_type_style_index_0_lang-BnrcUu_6.js} +2 -2
  88. package/dist/DropZone.vue_vue_type_style_index_0_lang-DVZrmQwL.js +1 -0
  89. package/dist/Empty/index.js +1 -1
  90. package/dist/Empty/index.umd.cjs +1 -1
  91. package/dist/Empty.vue_vue_type_style_index_0_lang-DidQV2p4.js +1 -0
  92. package/dist/{Empty.vue_vue_type_style_index_0_lang-C4a5JepF.js → Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js} +1 -1
  93. package/dist/FloatButton/index.js +1 -1
  94. package/dist/FloatButton/index.umd.cjs +1 -1
  95. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BOFSVjFP.js +1 -0
  96. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BGZBnlXi.js → FloatButton.vue_vue_type_script_setup_true_lang-Br1BEY7H.js} +2 -2
  97. package/dist/Form/Form.d.ts +2 -2
  98. package/dist/Form/index.js +1 -1
  99. package/dist/Form/index.umd.cjs +1 -1
  100. package/dist/FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js +2785 -0
  101. package/dist/FormItem.vue_vue_type_style_index_0_lang-s7o6crR0.js +9 -0
  102. package/dist/GOPicker/GOPicker.d.ts +13 -8
  103. package/dist/GOPicker/index.js +1 -1
  104. package/dist/GOPicker/index.umd.cjs +1 -1
  105. package/dist/GraphicalObject/index.js +1 -1
  106. package/dist/GraphicalObject/index.umd.cjs +1 -1
  107. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-BlFC2U5K.js +1 -0
  108. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-BZCn44kG.js → GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js} +3 -3
  109. package/dist/GraphicalObjectGroup/index.js +1 -1
  110. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  111. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-ChJsB7QV.js} +1 -1
  112. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-COvFyzfP.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js} +1 -1
  113. package/dist/Icon/index.js +1 -1
  114. package/dist/Icon/index.umd.cjs +1 -1
  115. package/dist/Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js +49 -0
  116. package/dist/Icon.vue_vue_type_style_index_0_lang-D3cRtJNJ.js +1 -0
  117. package/dist/IconButton/IconButton.d.ts +2 -2
  118. package/dist/IconButton/index.js +1 -1
  119. package/dist/IconButton/index.umd.cjs +1 -1
  120. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-BjFzPsUi.js → IconButton.vue_vue_type_script_setup_true_lang-DAX_14ed.js} +2 -2
  121. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DvbKC7wq.js +1 -0
  122. package/dist/Image/index.js +1 -1
  123. package/dist/Image/index.umd.cjs +1 -1
  124. package/dist/Image.vue_vue_type_style_index_0_lang-CGdnuyxZ.js +1 -0
  125. package/dist/{Image.vue_vue_type_style_index_0_lang-3vJwTwh4.js → Image.vue_vue_type_style_index_0_lang-CqilRo2A.js} +17 -16
  126. package/dist/IndentLevel/IndentLevel.d.ts +1 -1
  127. package/dist/IndentLevel/index.js +1 -1
  128. package/dist/IndentLevel/index.umd.cjs +1 -1
  129. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js → IndentLevel.vue_vue_type_style_index_0_lang-CjaQqD7w.js} +8 -8
  130. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DD2920xJ.js +1 -0
  131. package/dist/Indicator/index.js +1 -1
  132. package/dist/Indicator/index.umd.cjs +1 -1
  133. package/dist/Indicator.vue_vue_type_script_setup_true_lang-Bnqpi2bU.js +1 -0
  134. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-B1mn9s7i.js → Indicator.vue_vue_type_script_setup_true_lang-D5xqdZRn.js} +2 -2
  135. package/dist/Input/Input.d.ts +4 -4
  136. package/dist/Input/index.js +1 -1
  137. package/dist/Input/index.umd.cjs +1 -1
  138. package/dist/Input.vue_vue_type_style_index_0_lang-5iaTCkoa.js +1 -0
  139. package/dist/{Input.vue_vue_type_style_index_0_lang-BFNYYFfe.js → Input.vue_vue_type_style_index_0_lang-C-jEi11-.js} +48 -46
  140. package/dist/Kbd/index.js +1 -1
  141. package/dist/Kbd/index.umd.cjs +1 -1
  142. package/dist/{Kbd.vue_vue_type_style_index_0_lang-uEudChpD.js → Kbd.vue_vue_type_style_index_0_lang-BQkzD8ay.js} +1 -1
  143. package/dist/Kbd.vue_vue_type_style_index_0_lang-CjNtLg1e.js +1 -0
  144. package/dist/Label/index.js +1 -1
  145. package/dist/Label/index.umd.cjs +1 -1
  146. package/dist/Link/index.js +1 -1
  147. package/dist/Link/index.umd.cjs +1 -1
  148. package/dist/{Link.vue_vue_type_style_index_0_lang-AsoIRQm_.js → Link.vue_vue_type_style_index_0_lang-BrS3jRuX.js} +16 -15
  149. package/dist/Link.vue_vue_type_style_index_0_lang-C1i1VsGw.js +1 -0
  150. package/dist/Menu/Menu.d.ts +6 -13
  151. package/dist/Menu/MenuItemWrapper.d.ts +15 -0
  152. package/dist/Menu/index.js +1 -1
  153. package/dist/Menu/index.umd.cjs +1 -1
  154. package/dist/MenuItem/MenuItem.d.ts +2 -26
  155. package/dist/MenuItem/MenuItemContent.d.ts +2 -1
  156. package/dist/MenuItem/index.js +1 -1
  157. package/dist/MenuItem/index.umd.cjs +1 -1
  158. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js +579 -0
  159. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DL9Njg73.js +1 -0
  160. package/dist/Popover/Popover.d.ts +1 -1
  161. package/dist/Popover/index.js +1 -1
  162. package/dist/Popover/index.umd.cjs +1 -1
  163. package/dist/Popover/utils.d.ts +0 -1
  164. package/dist/Popover.vue_vue_type_style_index_0_lang-CZYvVeso.js +1 -0
  165. package/dist/Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js +241 -0
  166. package/dist/RadioGroup/RadioGroupItem.d.ts +2 -2
  167. package/dist/RadioGroup/index.js +1 -1
  168. package/dist/RadioGroup/index.umd.cjs +1 -1
  169. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-bWA97IMn.js → RadioGroup.vue_vue_type_script_setup_true_lang-Buet9dc2.js} +2 -2
  170. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-lIx8QQp8.js +1 -0
  171. package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
  172. package/dist/ScrollContainer/index.js +1 -1
  173. package/dist/ScrollContainer/index.umd.cjs +1 -1
  174. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BIoD2_5T.js +1 -0
  175. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-CZgFGbH_.js → ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js} +1 -1
  176. package/dist/Segmented/Segmented.d.ts +57 -0
  177. package/dist/Segmented/Segmented.model.d.ts +2 -0
  178. package/dist/Segmented/index.d.ts +2 -0
  179. package/dist/Segmented/index.js +6 -0
  180. package/dist/Segmented/index.umd.cjs +1 -0
  181. package/dist/Segmented.vue_vue_type_style_index_0_lang-DqaTvxYQ.js +1 -0
  182. package/dist/Segmented.vue_vue_type_style_index_0_lang-R_eXQ6g9.js +165 -0
  183. package/dist/Select/Select.d.ts +2 -2
  184. package/dist/Select/context.d.ts +1 -3
  185. package/dist/Select/index.js +1 -1
  186. package/dist/Select/index.umd.cjs +1 -1
  187. package/dist/Select/types.d.ts +1 -0
  188. package/dist/Select.vue_vue_type_style_index_0_lang-Bc9kyMDB.js +1 -0
  189. package/dist/Select.vue_vue_type_style_index_0_lang-BfUtCG_-.js +714 -0
  190. package/dist/Shortcut/index.js +1 -1
  191. package/dist/Shortcut/index.umd.cjs +1 -1
  192. package/dist/Shortcut.vue_vue_type_style_index_0_lang-DOhEtw_i.js +1 -0
  193. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DXBz4Ysp.js → Shortcut.vue_vue_type_style_index_0_lang-TtzM0gcb.js} +2 -2
  194. package/dist/Skeleton/Skeleton.d.ts +1 -1
  195. package/dist/Spinner/index.js +1 -1
  196. package/dist/Spinner/index.umd.cjs +1 -1
  197. package/dist/{Spinner.vue_vue_type_style_index_0_lang-DxV3D_9N.js → Spinner.vue_vue_type_style_index_0_lang-Dc9P7GsT.js} +13 -13
  198. package/dist/Spinner.vue_vue_type_style_index_0_lang-RE3hFFZA.js +1 -0
  199. package/dist/SubMenu/SubMenu.d.ts +44 -0
  200. package/dist/SubMenu/index.d.ts +1 -0
  201. package/dist/SubMenu/index.js +5 -0
  202. package/dist/SubMenu/index.umd.cjs +1 -0
  203. package/dist/Switch/Switch.d.ts +3 -3
  204. package/dist/Switch/index.js +1 -1
  205. package/dist/Switch/index.umd.cjs +1 -1
  206. package/dist/Switch.vue_vue_type_style_index_0_lang-DhuZK1wp.js +1 -0
  207. package/dist/{Switch.vue_vue_type_style_index_0_lang-BrkQxi9f.js → Switch.vue_vue_type_style_index_0_lang-jzphTPAF.js} +5 -4
  208. package/dist/{THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js → THead.vue_vue_type_style_index_0_lang-DtBQAI4D.js} +1 -1
  209. package/dist/THead.vue_vue_type_style_index_0_lang-Du3rBBec.js +1 -0
  210. package/dist/Table/index.js +1 -1
  211. package/dist/Table/index.umd.cjs +1 -1
  212. package/dist/Textarea/Textarea.d.ts +7 -7
  213. package/dist/Textarea/index.js +1 -1
  214. package/dist/Textarea/index.umd.cjs +1 -1
  215. package/dist/Textarea.vue_vue_type_style_index_0_lang-BMbkTBJu.js +1 -0
  216. package/dist/{Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js → Textarea.vue_vue_type_style_index_0_lang-Dbdx29In.js} +27 -25
  217. package/dist/Tree/Tree.model.d.ts +2 -1
  218. package/dist/Tree/TreeNode.d.ts +6 -6
  219. package/dist/Tree/index.js +1 -1
  220. package/dist/Tree/index.umd.cjs +1 -1
  221. package/dist/Tree/utils.d.ts +1 -0
  222. package/dist/{Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js → Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js} +678 -695
  223. package/dist/Tree.vue_vue_type_style_index_0_lang-BrJHHwGl.js +6 -0
  224. package/dist/_getTag-CIY3u1-e.js +1 -0
  225. package/dist/_getTag-MDQGqxLN.js +127 -0
  226. package/dist/{getEmojiList-BtCA6cyU.js → getEmojiList-DSYihWrO.js} +253 -215
  227. package/dist/getEmojiList-kI-Nn4xv.js +1 -0
  228. package/dist/index-DWw7aruo.js +1 -0
  229. package/dist/index-jwkhq8oW.js +188 -0
  230. package/dist/index.d.ts +3 -0
  231. package/dist/index.js +173 -161
  232. package/dist/index.umd.cjs +1 -1
  233. package/dist/isEmpty-bCllo8T9.js +1 -0
  234. package/dist/isEmpty-wdqPTIXx.js +21 -0
  235. package/dist/omit-B3e_dACs.js +629 -0
  236. package/dist/omit-DEPypqqe.js +1 -0
  237. package/dist/style/index.css +1 -1
  238. package/dist/{uniq-D8HAKpFq.js → uniq-BsN259vC.js} +17 -16
  239. package/dist/uniq-Dhcbw64V.js +1 -0
  240. package/dist/useInputDataStates-CtuCKcP6.js +57 -0
  241. package/dist/useInputDataStates-DEfYzXQl.js +1 -0
  242. package/dist/utils/index.js +1 -1
  243. package/dist/utils/index.umd.cjs +1 -1
  244. package/dist/utils/useInputDataStates.d.ts +1 -1
  245. package/package.json +16 -1
  246. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js +0 -1
  247. package/dist/Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js +0 -1
  248. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-VEdsFDiH.js +0 -1
  249. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CcVDY3yV.js +0 -1
  250. package/dist/Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js +0 -1
  251. package/dist/Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js +0 -215
  252. package/dist/Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js +0 -1
  253. package/dist/Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js +0 -1
  254. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js +0 -1
  255. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js +0 -1
  256. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js +0 -1
  257. package/dist/DataTable.vue_vue_type_style_index_0_lang-DOJv5evl.js +0 -1
  258. package/dist/DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js +0 -1
  259. package/dist/Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js +0 -1
  260. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js +0 -1
  261. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js +0 -1
  262. package/dist/Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js +0 -9
  263. package/dist/Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js +0 -3746
  264. package/dist/IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js +0 -1
  265. package/dist/Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js +0 -1
  266. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js +0 -1
  267. package/dist/Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js +0 -1
  268. package/dist/Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js +0 -1
  269. package/dist/Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js +0 -1
  270. package/dist/Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js +0 -1
  271. package/dist/Menu.vue_vue_type_style_index_0_lang-CFuwm984.js +0 -460
  272. package/dist/Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js +0 -1
  273. package/dist/Popover.vue_vue_type_style_index_0_lang-B-MX4Q7D.js +0 -242
  274. package/dist/Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js +0 -1
  275. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js +0 -1
  276. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js +0 -1
  277. package/dist/Select.vue_vue_type_style_index_0_lang-C4F2WmaG.js +0 -698
  278. package/dist/Select.vue_vue_type_style_index_0_lang-D8SgxILT.js +0 -1
  279. package/dist/Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js +0 -1
  280. package/dist/Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js +0 -1
  281. package/dist/Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js +0 -1
  282. package/dist/THead.vue_vue_type_style_index_0_lang-Ck81v68E.js +0 -1
  283. package/dist/Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js +0 -1
  284. package/dist/Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js +0 -6
  285. package/dist/getEmojiList-Cz4Rzfi1.js +0 -1
  286. package/dist/uniq-Ci_ZUo6O.js +0 -1
  287. package/dist/useInputDataStates-BVOCxFWp.js +0 -56
  288. package/dist/useInputDataStates-C6bS7MJv.js +0 -1
@@ -0,0 +1,831 @@
1
+ import { defineComponent as ne, computed as p, createBlock as be, openBlock as pe, unref as O, mergeProps as Le, withCtx as ge, createElementBlock as De, createVNode as Me, h as r, normalizeClass as Ue, renderSlot as Ee, ref as ve, watch as He, useSlots as qe, useAttrs as Je, createSlots as Qe, renderList as Xe, normalizeProps as Ye, guardReactiveProps as Ze } from "vue";
2
+ import { createContext as Re, ComboboxInput as eo, ComboboxAnchor as oo, injectComboboxRootContext as to, useFilter as ao, ComboboxPortal as no, ComboboxContent as ro, useEmitAsProps as lo, ComboboxRoot as so } from "reka-ui";
3
+ import { h as Pe, o as io, f as Te, j as po } from "./FormItem.vue_vue_type_style_index_0_lang-CwxlEgep.js";
4
+ import { a as Ve, g as uo } from "./options-D4et5euX.js";
5
+ import { getBemBlock as co, getBemElement as b, generateVariantClassList as N } from "@pantograph/utils";
6
+ import { i as j, a as ye, b as Ce, u as go, d as Ie } from "./index-jwkhq8oW.js";
7
+ import { cva as _e } from "class-variance-authority";
8
+ import { o as ze } from "./omit-B3e_dACs.js";
9
+ import { u as he } from "./uniq-BsN259vC.js";
10
+ import { _ as mo } from "./Empty.vue_vue_type_style_index_0_lang-jfObDGf0.js";
11
+ import { _ as fo } from "./Skeleton.vue_vue_type_style_index_0_lang-Xi8CteLp.js";
12
+ import { _ as ke } from "./Divider.vue_vue_type_style_index_0_lang-B6fQsp1Y.js";
13
+ import { b as R, f as vo, a as ho, i as bo, d as yo } from "./element-BfQuKSll.js";
14
+ import { u as Co, U as Vo } from "./useInputDataStates-CtuCKcP6.js";
15
+ import { u as _o } from "./useLazyLoading-Zo-PEp2E.js";
16
+ import { g as xo, b as Bo } from "./Popover.vue_vue_type_style_index_0_lang-ColyiCeV.js";
17
+ import { _ as Oo } from "./ScrollContainer.vue_vue_type_style_index_0_lang-DfMU1mTu.js";
18
+ import { _ as So } from "./Tree.vue_vue_type_style_index_0_lang-Bcy8moE2.js";
19
+ import { i as Z } from "./isEmpty-wdqPTIXx.js";
20
+ import { _ as Po } from "./Chip.vue_vue_type_style_index_0_lang-pkEj-IcZ.js";
21
+ import { _ as To } from "./ChipGroup.vue_vue_type_style_index_0_lang-BFHkFjPI.js";
22
+ import { _ as xe } from "./Icon.vue_vue_type_style_index_0_lang-CbLL-Ngi.js";
23
+ import { d as Io, _ as $e } from "./Avatar.vue_vue_type_style_index_0_lang-CcKQb0PA.js";
24
+ import { _ as zo } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DgjnAH0N.js";
25
+ import { _ as Ae } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-C7HScEPN.js";
26
+ import { _ as ko } from "./Input.vue_vue_type_style_index_0_lang-C-jEi11-.js";
27
+ import { whenever as wo, useVModel as Lo } from "@vueuse/core";
28
+ import { last as Do } from "lodash-es";
29
+ import { a as Mo } from "./MenuItem.vue_vue_type_style_index_0_lang-DGaSx-eQ.js";
30
+ import "@iconify/vue";
31
+ import { _ as Eo } from "./Checkbox.vue_vue_type_style_index_0_lang-2qQxhEQ0.js";
32
+ import "@pantograph/tokens";
33
+ const [Be, Ro] = Re("Combobox"), [$o, Ao] = Re("_Combobox"), S = co("combobox"), Ke = ["sm", "md", "lg"], Ko = ["error", "warning", "success"], Fo = { key: 1 }, Fe = /* @__PURE__ */ ne({
34
+ __name: "ComboboxInput",
35
+ setup(V) {
36
+ const t = Be();
37
+ wo(
38
+ () => t.open.value && t.headerInputElement.value,
39
+ () => {
40
+ t.headerInputElement.value && t.open.value && t.focusOnInput();
41
+ }
42
+ );
43
+ const o = p(() => !Z(t.modelValue.value)), e = p(() => o.value ? j(t.modelValue.value) ? t.getLabelByValue(Do(t.modelValue.value)) : t.getLabelByValue(t.modelValue.value) : t.props.placeholder), m = (k) => {
44
+ if (k.key === "Backspace" && t.props.multiple && j(t.modelValue.value) && Z(t.searchModel.value) && (t.setModelValue(t.modelValue.value.slice(0, -1)), Z(t.modelValue.value))) {
45
+ const x = setTimeout(() => {
46
+ t.focusOnInput(), clearTimeout(x);
47
+ }, 2);
48
+ }
49
+ }, c = b(S, "input"), $ = _e(c, {
50
+ variants: {
51
+ valuePlaceholder: N("value-placeholder", c)
52
+ }
53
+ });
54
+ return (k, x) => (pe(), be(O(eo), Le(O(t).comboboxInputBinding.value, {
55
+ disabled: O(t).getDisabled.value,
56
+ placeholder: e.value,
57
+ "as-child": "",
58
+ modelValue: O(t).searchModel.value,
59
+ "onUpdate:modelValue": x[0] || (x[0] = (P) => O(t).searchModel.value = P),
60
+ onKeydown: m,
61
+ class: O($)({
62
+ valuePlaceholder: o.value
63
+ }),
64
+ displayValue: () => ""
65
+ }), {
66
+ default: ge(() => [
67
+ O(t).props.headerSearch ? (pe(), be(ko, {
68
+ key: 0,
69
+ ref: O(t).headerInputElement,
70
+ placeholder: O(t).props.placeholder
71
+ }, {
72
+ leading: ge(({ iconSize: P }) => [
73
+ Me(xe, {
74
+ size: P,
75
+ icon: "tabler:search",
76
+ flipOnDir: "rtl"
77
+ }, null, 8, ["size"])
78
+ ]),
79
+ _: 1
80
+ }, 8, ["placeholder"])) : (pe(), De("input", Fo))
81
+ ]),
82
+ _: 1
83
+ }, 16, ["disabled", "placeholder", "modelValue", "class"]));
84
+ }
85
+ }), Wo = /* @__PURE__ */ ne({
86
+ name: Ve("ComboboxTrigger"),
87
+ props: {},
88
+ setup(V, {
89
+ slots: t,
90
+ attrs: o
91
+ }) {
92
+ const e = Be(), m = ({
93
+ value: s
94
+ }, _) => {
95
+ if (_.stopPropagation(), s && j(e.modelValue.value) && !e.getDisabled.value) {
96
+ const L = e.modelValue.value.filter((ee) => ee !== s);
97
+ e.setModelValue(L);
98
+ }
99
+ }, c = b(S, "trigger"), $ = _e(c, {
100
+ variants: {
101
+ size: N(Ke, c),
102
+ status: N(Ko, c),
103
+ bordered: N("bordered", c),
104
+ multiple: N("multiple", c),
105
+ contentFit: N("content-fit", c),
106
+ wrapped: N("wrapped", c),
107
+ filled: N("filled", c)
108
+ }
109
+ }), k = p(() => {
110
+ switch (e.getSize.value) {
111
+ case "sm":
112
+ return "2xsm";
113
+ case "md":
114
+ default:
115
+ return "xsm";
116
+ }
117
+ }), x = p(() => {
118
+ if (!e.props.multiple && ye(e.modelValue.value) && !Z(e.modelValue.value))
119
+ return e.getOptionByValue(e.modelValue.value);
120
+ }), P = (s = x.value) => {
121
+ if (e.props.selectedItemIconAsTrailingIcon && Ce(s) && "icon" in s)
122
+ return s.icon;
123
+ }, U = p(() => P()), F = p(() => {
124
+ if (!e.props.noTrailing)
125
+ return e.props.trailingIcon;
126
+ }), f = p(() => ({
127
+ modelValue: Pe(e.modelValue.value),
128
+ open: Pe(e.open.value)
129
+ })), A = () => {
130
+ e.onOpenChange(!e.open.value);
131
+ }, w = (s) => {
132
+ console.log("event ===>", s), e.props.headerSearch;
133
+ }, T = p(() => ({
134
+ disabled: e.getDisabled.value,
135
+ tabindex: e.getDisabled.value || !e.props.headerSearch ? -1 : 0,
136
+ reference: e.props.reference,
137
+ "data-disabled": e.getDisabled.value ? "" : void 0,
138
+ "aria-disabled": e.getDisabled.value ?? void 0,
139
+ "aria-label": "Show popup",
140
+ "aria-haspopup": "listbox",
141
+ "aria-expanded": e.open.value,
142
+ "aria-controls": e.contentId,
143
+ "data-state": e.open.value ? "open" : "closed",
144
+ class: [$({
145
+ size: e.getSize.value,
146
+ status: e.getStatus.value === "success" && Z(e.modelValue.value) ? void 0 : e.getStatus.value,
147
+ bordered: e.props.bordered,
148
+ multiple: e.props.multiple,
149
+ contentFit: e.props.contentFit,
150
+ wrapped: e.props.wrapped,
151
+ filled: !Z(e.modelValue.value)
152
+ }), e.props.triggerCls],
153
+ ...o
154
+ })), W = (s, _ = k.value) => r(xe, {
155
+ icon: s,
156
+ size: _
157
+ }), Q = () => {
158
+ var L;
159
+ let s;
160
+ const _ = (L = t.triggerTrailing) == null ? void 0 : L.call(t, f.value);
161
+ if (R(_) ? F.value && (s = W(F.value)) : s = _, s)
162
+ return r("div", {
163
+ class: [b(c, "trailing"), e.props.triggerTrailingCls]
164
+ }, s);
165
+ };
166
+ return () => {
167
+ var ee;
168
+ const s = (ee = t.trigger) == null ? void 0 : ee.call(t, f.value), L = (() => {
169
+ if (R(s)) return !1;
170
+ const H = vo(s) ?? null, q = H.length === 1 ? H[0] : H;
171
+ return q ? ho(q) && !bo(q) : !0;
172
+ })();
173
+ return r(oo, {
174
+ ...T.value,
175
+ ...e.comboboxTriggerBinding.value,
176
+ asChild: L,
177
+ as: L ? "template" : "button",
178
+ key: String(L),
179
+ onKeyUp: w,
180
+ onClick: A
181
+ }, () => {
182
+ if (!R(s))
183
+ return s;
184
+ const H = (y) => {
185
+ var M, z;
186
+ const D = e.getOptionByValue(y);
187
+ return r($e, {
188
+ ...D ? ((z = (M = e.props).getTagProps) == null ? void 0 : z.call(M, D)) ?? {} : {},
189
+ size: e.getTagSize.value
190
+ });
191
+ }, q = (y) => {
192
+ var M, z;
193
+ const D = e.getOptionByValue(y);
194
+ return r(Ae, {
195
+ ...D ? ((z = (M = e.props).getTagProps) == null ? void 0 : z.call(M, D)) ?? {} : {},
196
+ size: e.getTagSize.value
197
+ });
198
+ }, K = () => {
199
+ if (!e.props.multiple && !j(e.modelValue.value) && e.modelValue.value && (console.log("context.modelValue.value ===>", e.modelValue.value), e.props.tagRenderMode && ["avatar", "go"].includes(e.props.tagRenderMode) || U.value || e.props.leadingIcon)) {
200
+ let y;
201
+ if (e.props.tagRenderMode === "avatar" ? y = H(e.modelValue.value) : e.props.tagRenderMode === "go" ? y = q(e.modelValue.value) : U.value ? y = W(U.value) : e.props.leadingIcon && (y = W(e.props.leadingIcon)), !R(y))
202
+ return r("div", {
203
+ class: [b(c, "leading"), e.props.triggerLeadingCls]
204
+ }, y);
205
+ }
206
+ }, ue = () => {
207
+ const y = [], D = [b(c, "content"), e.props.triggerContentCls, Z(e.modelValue.value) ? e.props.triggerContentPlaceholderCls : e.props.triggerContentValueCls], z = (() => {
208
+ if (e.props.multiple && j(e.modelValue.value)) {
209
+ if (e.props.tagRenderMode === "avatar")
210
+ return r(Io, {
211
+ maxCount: e.props.maxCount,
212
+ size: e.getTagSize.value,
213
+ closeable: !e.getDisabled.value,
214
+ noPopover: !0,
215
+ noWrap: !e.props.wrapped,
216
+ class: D
217
+ }, () => e.modelValue.value.map(H));
218
+ if (e.props.tagRenderMode === "go")
219
+ return r(zo, {
220
+ maxCount: e.props.maxCount,
221
+ size: e.getTagSize.value,
222
+ closeable: !e.getDisabled.value,
223
+ noPopover: !0,
224
+ noWrap: !e.props.wrapped,
225
+ class: D
226
+ }, () => e.modelValue.value.map(q));
227
+ if (e.props.tagRenderMode === "chip")
228
+ return r(To, {
229
+ maxCount: e.props.maxCount,
230
+ size: e.getTagSize.value,
231
+ color: "primary",
232
+ closeable: !e.getDisabled.value,
233
+ noPopover: !0,
234
+ noWrap: !e.props.wrapped,
235
+ class: D,
236
+ onClose: m
237
+ }, () => e.modelValue.value.map((G) => {
238
+ const me = () => e.getLabelByValue(G), de = ({
239
+ size: fe
240
+ }) => {
241
+ const te = P(e.getOptionByValue(G)) ?? e.props.leadingIcon;
242
+ return te ? W(te, fe) : null;
243
+ };
244
+ return r(Po, {
245
+ value: G,
246
+ class: [b(c, "tag"), e.props.tagCls],
247
+ closeIconCls: b(c, "tag__close")
248
+ }, {
249
+ text: me,
250
+ leading: de
251
+ });
252
+ }));
253
+ }
254
+ })();
255
+ return z && y.push(z), e.props.headerSearch || y.push(r(Fe)), y;
256
+ }, oe = [], X = K();
257
+ R(X) || oe.push(X), oe.push(ue());
258
+ const ce = Q();
259
+ return R(ce) || oe.push(ce), oe;
260
+ });
261
+ };
262
+ }
263
+ }), Go = /* @__PURE__ */ ne({
264
+ __name: "ComboboxLabel",
265
+ setup(V) {
266
+ return (t, o) => (pe(), De("div", {
267
+ class: Ue(O(b)(O(S), "label"))
268
+ }, [
269
+ Ee(t.$slots, "default")
270
+ ], 2));
271
+ }
272
+ }), we = /* @__PURE__ */ ne({
273
+ name: Ve("SelectOption"),
274
+ props: {
275
+ option: {
276
+ type: [Object, String],
277
+ required: !0
278
+ }
279
+ },
280
+ slots: Object,
281
+ setup(V, {
282
+ slots: t
283
+ }) {
284
+ const o = Be(), e = p(() => {
285
+ switch (o.getSize.value) {
286
+ case "sm":
287
+ return "2xsm";
288
+ case "lg":
289
+ return "sm";
290
+ case "md":
291
+ default:
292
+ return "xsm";
293
+ }
294
+ }), m = p(() => o.getOptionValue(V.option)), c = p(() => o.getOptionLabel(V.option)), $ = p(() => o.getOptionIcon(V.option)), k = p(() => o.props.tree ? void 0 : o.getOptionDescription(V.option)), x = p(() => o.getOptionDisabled(V.option)), P = p(() => Array.isArray(o.modelValue.value) ? !!(m.value && o.modelValue.value.includes(m.value)) : o.modelValue.value === m.value), U = b(S, "option"), F = () => {
295
+ if (!(o.props.tree || !m.value || x.value))
296
+ if (o.props.multiple) {
297
+ const f = j(o.modelValue.value) ? o.modelValue.value : [];
298
+ f.includes(m.value) ? o.setModelValue(f.filter((w) => w !== m.value)) : o.setModelValue([...f, m.value]);
299
+ } else
300
+ o.setModelValue(m.value);
301
+ };
302
+ if (!V.option) throw new Error("option is required");
303
+ return () => {
304
+ const f = (w) => {
305
+ var W, Q, s, _;
306
+ const T = [];
307
+ return !o.props.tree && o.props.multiple && T.push(r(Eo, {
308
+ modelValue: P.value,
309
+ size: w.checkboxSize,
310
+ disabled: x.value
311
+ })), o.props.tagRenderMode === "avatar" ? T.push(r($e, {
312
+ ...((Q = (W = o.props).getTagProps) == null ? void 0 : Q.call(W, V.option)) ?? {},
313
+ size: o.getTagSize.value
314
+ })) : o.props.tagRenderMode === "go" ? T.push(r(Ae, {
315
+ ...((_ = (s = o.props).getTagProps) == null ? void 0 : _.call(s, V.option)) ?? {},
316
+ size: o.getTagSize.value
317
+ })) : $.value && T.push(r(xe, {
318
+ icon: $.value,
319
+ size: e.value
320
+ })), R(T) ? null : T;
321
+ };
322
+ return (() => {
323
+ const w = !!k.value;
324
+ return r(Mo, {
325
+ class: U,
326
+ description: k.value,
327
+ title: c.value,
328
+ key: m.value,
329
+ selected: P.value,
330
+ unFocusable: !0,
331
+ leadingCenter: !w,
332
+ size: o.getSize.value,
333
+ disabled: x.value,
334
+ onClick: F
335
+ }, {
336
+ leading: f,
337
+ trailing: () => {
338
+ var T;
339
+ return (T = t.trailing) == null ? void 0 : T.call(t, {
340
+ option: V.option
341
+ });
342
+ }
343
+ });
344
+ })();
345
+ };
346
+ }
347
+ }), No = /* @__PURE__ */ ne({
348
+ name: Ve("ComboboxWrapper"),
349
+ setup(V, {
350
+ slots: t
351
+ }) {
352
+ const o = $o(), e = to(), m = ve();
353
+ _o({
354
+ target: m
355
+ });
356
+ const c = ve(), $ = xo({
357
+ triggerRef: c,
358
+ props: o.props
359
+ }), {
360
+ getFlipOnDir: k,
361
+ getDir: x
362
+ } = go(), P = k("reversePlacementOnDir"), U = x(), F = Bo({
363
+ props: o.props,
364
+ flip: P,
365
+ emitsAsProps: o.emitsAsProps,
366
+ _dir: U,
367
+ controlAutoFocus: !1,
368
+ extraPropNames: ["bodyLock", "position"]
369
+ }), f = ({
370
+ key: n,
371
+ getterKey: g,
372
+ defaultValue: u,
373
+ noReturnOption: l
374
+ }) => (i) => {
375
+ const v = Ie(u) ? u(i) : u;
376
+ if (Ce(i)) {
377
+ const C = i[n] ?? v, I = g && o.props[g];
378
+ if (I) {
379
+ if (ye(I))
380
+ return i[I] ?? C;
381
+ if (Ie(I)) return I(i) ?? C;
382
+ }
383
+ return C;
384
+ }
385
+ return ye(i) && !l ? i ?? v : v;
386
+ }, A = f({
387
+ getterKey: "getValue",
388
+ key: "value"
389
+ }), w = f({
390
+ getterKey: "getLabel",
391
+ key: "label",
392
+ defaultValue: A
393
+ }), T = f({
394
+ getterKey: "getIcon",
395
+ key: "icon",
396
+ noReturnOption: !0
397
+ }), W = f({
398
+ getterKey: "getDescription",
399
+ key: "description",
400
+ noReturnOption: !0
401
+ }), Q = f({
402
+ getterKey: "getDisabled",
403
+ key: "disabled",
404
+ defaultValue: !1,
405
+ noReturnOption: !0
406
+ }), s = f({
407
+ getterKey: "getGroupLabel",
408
+ key: "label",
409
+ noReturnOption: !0
410
+ }), _ = f({
411
+ getterKey: "getGroupOptions",
412
+ key: "options",
413
+ noReturnOption: !0
414
+ }), L = (n) => {
415
+ var g;
416
+ if ((g = o.props.options) != null && g.length)
417
+ for (const u of o.props.options) {
418
+ if (A(u) === n) return u;
419
+ const l = _(u);
420
+ if (l != null && l.length) {
421
+ for (const i of l)
422
+ if (A(i) === n) return i;
423
+ }
424
+ }
425
+ return n;
426
+ }, ee = (n) => {
427
+ const g = L(n);
428
+ return g ? w(g) ?? n : n;
429
+ }, {
430
+ contains: H
431
+ } = ao({
432
+ sensitivity: "base"
433
+ }), q = p(() => {
434
+ const n = [], g = (u, l) => {
435
+ u.forEach((i) => {
436
+ const v = A(i), C = _(i);
437
+ if (v) {
438
+ const I = [...l ?? [], v];
439
+ n.push(I), C && g(C, I);
440
+ }
441
+ });
442
+ };
443
+ return o.props.options && g(o.props.options), n;
444
+ }), K = p(() => {
445
+ const n = (g) => g == null ? void 0 : g.map((u) => {
446
+ const l = w(u), i = A(u), v = Q(u), C = s(u), I = !o.searchModel.value || l && H(l, o.searchModel.value), re = _(u), le = !o.props.tree || i;
447
+ if (re && le) {
448
+ const a = n(re);
449
+ if (a != null && a.length || I)
450
+ return {
451
+ groupLabel: C,
452
+ title: l,
453
+ key: i,
454
+ disabled: v,
455
+ children: a,
456
+ _option: u
457
+ };
458
+ }
459
+ return I && le ? {
460
+ title: l,
461
+ key: i,
462
+ disabled: v,
463
+ _option: u
464
+ } : null;
465
+ }).filter(Boolean);
466
+ if (o.props.options)
467
+ return n(o.props.options);
468
+ }), {
469
+ getDisabled: ue,
470
+ getStatus: oe,
471
+ getSize: X
472
+ } = Co({
473
+ getDisabled: () => o.props.disabled,
474
+ getSize: () => o.props.size,
475
+ getStatus: () => o.props.status
476
+ }), ce = p(() => {
477
+ switch (X.value) {
478
+ case "sm":
479
+ return "xsm";
480
+ case "lg":
481
+ return "md";
482
+ case "md":
483
+ default:
484
+ return "sm";
485
+ }
486
+ }), {
487
+ inputBindings: y,
488
+ rootBindings: D
489
+ } = Vo({
490
+ getDisabled: () => ue.value
491
+ }), M = ve(), z = () => {
492
+ var n, g, u, l, i, v, C;
493
+ e.open.value && e.inputElement.value && (o.props.headerSearch && ((n = M.value) != null && n.input) ? document.activeElement !== ((g = M.value) == null ? void 0 : g.input) && ((i = (l = (u = M.value) == null ? void 0 : u.input) == null ? void 0 : l.focus) == null || i.call(l)) : document.activeElement !== e.inputElement.value && ((C = (v = e.inputElement.value) == null ? void 0 : v.focus) == null || C.call(v)));
494
+ }, G = (n) => {
495
+ e.modelValue.value = n, o.emit("update:modelValue", n);
496
+ };
497
+ Ro({
498
+ ...o,
499
+ getOptionValue: A,
500
+ getOptionLabel: w,
501
+ getOptionDescription: W,
502
+ getOptionDisabled: Q,
503
+ getOptionIcon: T,
504
+ getOptionByValue: L,
505
+ getLabelByValue: ee,
506
+ focusOnInput: z,
507
+ setModelValue: G,
508
+ headerInputElement: M,
509
+ getDisabled: ue,
510
+ getStatus: oe,
511
+ getSize: X,
512
+ getTagSize: ce,
513
+ comboboxInputBinding: y,
514
+ comboboxTriggerBinding: D,
515
+ ...e,
516
+ modelValue: e.modelValue
517
+ }), He(() => [o.props.clearOnChangeMultiple, o.props.multiple], () => {
518
+ o.props.clearOnChangeMultiple && G(void 0);
519
+ });
520
+ const me = p(() => {
521
+ const n = o.props.scrollContainerProps ?? {};
522
+ return {
523
+ ...n,
524
+ areaCls: [b(S, "scroll_area"), n == null ? void 0 : n.class, n == null ? void 0 : n.areaCls]
525
+ };
526
+ }), de = b(S, "popup"), fe = _e(de, {
527
+ variants: {
528
+ size: N(Ke, de)
529
+ }
530
+ }), te = (n) => {
531
+ if (Number(n) > 0)
532
+ return `${n}px`;
533
+ if (typeof n == "string")
534
+ return n;
535
+ }, We = p(() => te(o.props.popupWidth)), Ge = p(() => te(o.props.popupHeight)), Oe = p(() => te(o.props.minWidth)), Se = p(() => ({
536
+ type: X.value === "sm" ? "simple" : "advance",
537
+ ...ze(o.props.emptyProps ?? {}, "class")
538
+ })), Ne = p(() => ze(o.props.skeletonProps ?? {}, "class"));
539
+ return () => {
540
+ var re, le;
541
+ const n = (a) => {
542
+ var d;
543
+ if ((d = K.value) != null && d.length && a > 0)
544
+ return !!K.value[a - 1];
545
+ }, g = (a) => {
546
+ var d, B;
547
+ if ((d = K.value) != null && d.length && a > 0) {
548
+ const h = K.value[a - 1];
549
+ return !!(h && ((B = _(h)) != null && B.length));
550
+ }
551
+ }, u = (a) => r(we, {
552
+ option: a
553
+ }, {
554
+ trailing: () => {
555
+ var d;
556
+ return (d = t.optionTrailing) == null ? void 0 : d.call(t, {
557
+ option: a
558
+ });
559
+ }
560
+ }), l = [];
561
+ let i;
562
+ if (o.props.tree) {
563
+ const d = j(e.modelValue.value) ? e.modelValue.value : e.modelValue.value ? [e.modelValue.value] : [];
564
+ i = r(So, {
565
+ data: K.value ?? [],
566
+ selectable: !0,
567
+ checkbox: o.props.multiple,
568
+ multiple: o.props.multiple,
569
+ defaultExpandAll: !0,
570
+ syncCheckboxAndSelect: o.props.multiple,
571
+ showLine: !0,
572
+ modelValue: d,
573
+ checkedKeys: d,
574
+ onExpand: z,
575
+ onCheck: (B, h, E) => {
576
+ if (o.props.multiple) {
577
+ console.log("key ===>", E, h);
578
+ const Y = j(E) ? E : [E], se = he(q.value.filter((J) => J.some((ie) => Y.includes(ie))).map((J) => {
579
+ const ie = J.findIndex((je) => Y.includes(je));
580
+ return J.slice(ie);
581
+ }).reduce((J, ie) => [...J, ...ie], [])), ae = e.modelValue.value && j(e.modelValue.value) ? e.modelValue.value : [];
582
+ G(h ? he([...ae, ...se]).filter(Boolean) : he(ae).filter((J) => !se.includes(J)));
583
+ } else
584
+ G(E);
585
+ },
586
+ class: "w-full"
587
+ }, {
588
+ title: (B) => u(B._option)
589
+ }), l.push(i);
590
+ } else
591
+ (K.value ?? []).forEach((a, d) => {
592
+ var B;
593
+ (B = a.children) != null && B.length ? (n(d) && l.push(r(ke)), a.groupLabel && l.push(r(Go, {
594
+ class: o.props.labelCls
595
+ }, () => a.groupLabel)), a.children.forEach((h) => {
596
+ l.push(u(h._option));
597
+ })) : g(d) ? l.push(r(ke)) : l.push(u(a._option));
598
+ });
599
+ const v = yo(i ? [i] : l, we).filter((a) => {
600
+ var d;
601
+ return Ce(a == null ? void 0 : a.props) && ((d = a == null ? void 0 : a.props) == null ? void 0 : d.option);
602
+ }), C = !!(o.props.tree && ((re = K.value) != null && re.length) || v != null && v.length), I = () => {
603
+ var d, B;
604
+ const a = [];
605
+ if (C || o.props.loading) {
606
+ const h = [];
607
+ if (C && h.push(...l), o.props.loading) {
608
+ const E = (d = t.loading) == null ? void 0 : d.call(t, {});
609
+ if (!R(E)) h.push(E);
610
+ else {
611
+ const Y = new Array(C ? 2 : o.props.loadingRowCount).fill(1);
612
+ h.push(...Y.map(() => r(fo, {
613
+ size: X.value,
614
+ class: [b(S, "skeleton"), o.props.skeletonCls],
615
+ ...Ne.value
616
+ })));
617
+ }
618
+ }
619
+ a.push(r("div", {
620
+ class: [b(S, "options"), o.props.optionsCls]
621
+ }, h));
622
+ } else if (!C) {
623
+ const h = (B = t.empty) == null ? void 0 : B.call(t, Se.value);
624
+ R(h) ? a.push(r(mo, {
625
+ class: [b(S, "empty"), o.props.emptyCls],
626
+ ...Se.value
627
+ }, {
628
+ title: t.emptyTitle,
629
+ description: t.emptyDescription,
630
+ actions: t.emptyActions,
631
+ image: t.emptyImage
632
+ })) : a.push(h);
633
+ }
634
+ return o.props.lazyLoading && a.push(r("div", {
635
+ class: b(S, "lazy_loading")
636
+ }, r("div", {
637
+ class: b(S, "lazy_loading_trigger"),
638
+ ref: m
639
+ }))), a;
640
+ };
641
+ return [r(Wo, {
642
+ ref: c,
643
+ ...o.attrs,
644
+ style: {
645
+ ...((le = o.attrs) == null ? void 0 : le.style) ?? {},
646
+ "--ptc-combobox-trigger-min-w": Oe.value
647
+ }
648
+ }, {
649
+ trigger: t.trigger,
650
+ triggerTrailing: t.triggerTrailing
651
+ }), r(no, $.value, () => r(ro, {
652
+ ...F.value,
653
+ vShow: e.open.value,
654
+ class: [fe(o.props), o.props.popupCls],
655
+ style: {
656
+ "--ptc-combobox-popup-width": o.props.samePopupWidth ? void 0 : We.value,
657
+ "--ptc-combobox-popup-height": Ge.value,
658
+ "--ptc-combobox-trigger-min-w": Oe.value
659
+ },
660
+ onClick: z
661
+ }, () => {
662
+ var E, Y, se;
663
+ const a = [], d = (E = t.header) == null ? void 0 : E.call(t), B = !R(d);
664
+ if (o.props.headerSearch || B) {
665
+ const ae = [];
666
+ B && ae.push(d), ae.push(r(Fe)), a.push(r("div", {
667
+ class: b(S, "header")
668
+ }, ae));
669
+ }
670
+ a.push(r(Oo, me.value, I));
671
+ const h = (se = t.footer) == null ? void 0 : se.call(t, {
672
+ isEmpty: !((Y = K.value) != null && Y.length),
673
+ search: o.searchModel.value
674
+ });
675
+ return R(h) || a.push(r("div", {
676
+ class: b(S, "footer")
677
+ }, h)), a;
678
+ }))];
679
+ };
680
+ }
681
+ }), xt = /* @__PURE__ */ ne({
682
+ ...uo("Combobox"),
683
+ __name: "Combobox",
684
+ props: {
685
+ size: { default: "md" },
686
+ status: {},
687
+ multiple: { type: Boolean, default: void 0 },
688
+ tagRenderMode: { default: "chip" },
689
+ getTagProps: {},
690
+ tree: { type: Boolean },
691
+ contentFit: { type: Boolean },
692
+ wrapped: { type: Boolean },
693
+ noTrailing: { type: Boolean },
694
+ leadingIcon: {},
695
+ trailingIcon: { default: "tabler:chevron-down" },
696
+ selectedItemIconAsTrailingIcon: { type: Boolean, default: !0 },
697
+ maxCount: {},
698
+ to: {},
699
+ placeholder: {},
700
+ indicatorIcon: { default: "tabler:check" },
701
+ options: {},
702
+ getDisabled: {},
703
+ getLabel: {},
704
+ getDescription: {},
705
+ getValue: {},
706
+ getGroupOptions: {},
707
+ getGroupLabel: {},
708
+ getIcon: {},
709
+ placement: { default: "bottom" },
710
+ reversePlacementOnDir: {},
711
+ loading: { type: Boolean },
712
+ skeletonProps: {},
713
+ loadingRowCount: { default: 10 },
714
+ lazyLoading: { type: Boolean },
715
+ bordered: { type: Boolean, default: !0 },
716
+ clearOnChangeMultiple: { type: Boolean, default: !0 },
717
+ triggerCls: {},
718
+ triggerLeadingCls: {},
719
+ triggerContentCls: {},
720
+ triggerContentPlaceholderCls: {},
721
+ triggerContentValueCls: {},
722
+ triggerTrailingCls: {},
723
+ itemLeadingCls: {},
724
+ optionCls: {},
725
+ tagCls: {},
726
+ popupCls: {},
727
+ labelCls: {},
728
+ optionsCls: {},
729
+ optionTextCls: {},
730
+ optionContentCls: {},
731
+ emptyCls: {},
732
+ skeletonCls: {},
733
+ scrollContainerProps: {},
734
+ emptyProps: {},
735
+ samePopupWidth: { type: Boolean, default: !0 },
736
+ popupHeight: { default: 384 },
737
+ popupWidth: {},
738
+ minWidth: {},
739
+ headerSearch: { type: Boolean },
740
+ search: {},
741
+ open: { type: Boolean, default: void 0 },
742
+ defaultOpen: { type: Boolean, default: void 0 },
743
+ resetSearchTermOnBlur: { type: Boolean, default: !0 },
744
+ resetSearchTermOnSelect: { type: Boolean, default: !0 },
745
+ modelValue: {},
746
+ defaultValue: {},
747
+ dir: {},
748
+ disabled: { type: Boolean, default: void 0 },
749
+ highlightOnHover: { type: Boolean },
750
+ by: {},
751
+ asChild: { type: Boolean },
752
+ as: {},
753
+ name: {},
754
+ required: { type: Boolean },
755
+ reference: {},
756
+ forceMount: { type: Boolean, default: void 0 },
757
+ position: { default: "popper" },
758
+ bodyLock: { type: Boolean },
759
+ side: {},
760
+ sideOffset: { default: 4 },
761
+ align: {},
762
+ alignOffset: {},
763
+ avoidCollisions: { type: Boolean, default: void 0 },
764
+ collisionBoundary: {},
765
+ collisionPadding: { default: 4 },
766
+ arrowPadding: {},
767
+ sticky: {},
768
+ hideWhenDetached: { type: Boolean, default: void 0 },
769
+ positionStrategy: { default: "fixed" },
770
+ updatePositionStrategy: {},
771
+ disableUpdateOnLayoutShift: { type: Boolean, default: void 0 },
772
+ prioritizePosition: { type: Boolean, default: void 0 },
773
+ disableOutsidePointerEvents: { type: Boolean },
774
+ defer: { type: Boolean }
775
+ },
776
+ emits: ["update:search", "update:modelValue", "highlight", "update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
777
+ setup(V, { emit: t }) {
778
+ const o = V, e = t, m = lo(e), c = p(
779
+ () => io(
780
+ {
781
+ ...Te(
782
+ o,
783
+ "open",
784
+ "defaultOpen",
785
+ "defaultValue",
786
+ "modelValue",
787
+ "by",
788
+ "dir",
789
+ "multiple",
790
+ "disabled"
791
+ ),
792
+ ...Te(
793
+ m,
794
+ "onUpdate:modelValue",
795
+ "onUpdate:open"
796
+ ),
797
+ ignoreFilter: !0
798
+ },
799
+ po
800
+ )
801
+ ), $ = Lo(o, "search", e, {
802
+ passive: !1
803
+ }), k = qe(), x = Je();
804
+ return Ao({
805
+ attrs: x,
806
+ props: o,
807
+ emit: e,
808
+ searchModel: $,
809
+ emitsAsProps: m
810
+ }), (P, U) => (pe(), be(O(so), Le(c.value, { class: O(S) }), {
811
+ default: ge(() => [
812
+ Me(O(No), null, Qe({ _: 2 }, [
813
+ Xe(Object.keys(k), (F) => ({
814
+ name: F,
815
+ fn: ge((f) => [
816
+ Ee(P.$slots, F, Ye(Ze(f)))
817
+ ])
818
+ }))
819
+ ]), 1024)
820
+ ]),
821
+ _: 3
822
+ }, 16, ["class"]));
823
+ }
824
+ });
825
+ export {
826
+ Ke as C,
827
+ xt as _,
828
+ Ko as a,
829
+ Be as i,
830
+ Ro as p
831
+ };